!提交代码
This commit is contained in:
14
WCS.Model/ApiModel/MatBaseInfo/AddMatBaseInfoRequest.cs
Normal file
14
WCS.Model/ApiModel/MatBaseInfo/AddMatBaseInfoRequest.cs
Normal file
@ -0,0 +1,14 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using WCS.Model.ApiModel.User;
|
||||
|
||||
namespace WCS.Model.ApiModel.MatBaseInfo
|
||||
{
|
||||
public class AddMatBaseInfoRequest<T> : RequestBase
|
||||
{
|
||||
public T MatBaseInfo { get; set; }
|
||||
public AddOrUpdate AddOrUpdate { get; set; }
|
||||
}
|
||||
|
||||
}
|
13
WCS.Model/ApiModel/MatBaseInfo/DeleteMatBaseInfosRequest.cs
Normal file
13
WCS.Model/ApiModel/MatBaseInfo/DeleteMatBaseInfosRequest.cs
Normal file
@ -0,0 +1,13 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using WCS.Model.ApiModel.User;
|
||||
|
||||
namespace WCS.Model.ApiModel.MatBaseInfo
|
||||
{
|
||||
public class DeleteMatBaseInfosRequest : RequestBase
|
||||
{
|
||||
public List<int> MatBaseInfoIds { get; set; }
|
||||
}
|
||||
|
||||
}
|
17
WCS.Model/ApiModel/MatBaseInfo/GetMatBaseInfoRequest.cs
Normal file
17
WCS.Model/ApiModel/MatBaseInfo/GetMatBaseInfoRequest.cs
Normal file
@ -0,0 +1,17 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace WCS.Model.ApiModel.MatBaseInfo
|
||||
{
|
||||
public class GetMatBaseInfoRequest : PageQueryRequestBase
|
||||
{
|
||||
public string MatCode { get; set; }
|
||||
|
||||
public string MatName { get; set; }
|
||||
|
||||
public string MatSpec { get; set; }
|
||||
|
||||
public bool? IsEnable { get; set; } = null;
|
||||
}
|
||||
}
|
12
WCS.Model/ApiModel/MatBaseInfo/GetMatCodeListRequest.cs
Normal file
12
WCS.Model/ApiModel/MatBaseInfo/GetMatCodeListRequest.cs
Normal file
@ -0,0 +1,12 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace WCS.Model.ApiModel.MatBaseInfo
|
||||
{
|
||||
public class GetMatCodeListRequest : RequestBase
|
||||
{
|
||||
//是否是从基础数据返回 如果为false 从库存数据返回
|
||||
public bool IsFromBaseData { get; set; }
|
||||
}
|
||||
}
|
16
WCS.Model/ApiModel/MatBaseInfo/MatBaseInfoImportModel.cs
Normal file
16
WCS.Model/ApiModel/MatBaseInfo/MatBaseInfoImportModel.cs
Normal file
@ -0,0 +1,16 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace WCS.Model.ApiModel.MatBaseInfo
|
||||
{
|
||||
public class MatBaseInfoImportModel
|
||||
{
|
||||
public string 物料编码 { get; set; }
|
||||
public string 名称 { get; set; }
|
||||
public string 规格 { get; set; }
|
||||
public string 单位 { get; set; }
|
||||
public string 客户 { get; set; }
|
||||
public string 状态 { get; set; }
|
||||
}
|
||||
}
|
64
WCS.Model/ApiModel/MatBaseInfo/MatBaseInfoModel.cs
Normal file
64
WCS.Model/ApiModel/MatBaseInfo/MatBaseInfoModel.cs
Normal file
@ -0,0 +1,64 @@
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
|
||||
namespace WCS.BLL.DbModels
|
||||
{
|
||||
///<summary>
|
||||
///物料基础信息
|
||||
///</summary>
|
||||
public partial class MatBaseInfoModel: INotifyPropertyChanged
|
||||
{
|
||||
|
||||
public int Id { get; set; }
|
||||
|
||||
public string MatCode { get; set; }
|
||||
|
||||
public string MatName { get; set; }
|
||||
|
||||
public string MatSpec { get; set; }
|
||||
|
||||
public string MatUnit { get; set; }
|
||||
|
||||
public string MatBatch { get; set; }
|
||||
|
||||
public string MatSupplier { get; set; }
|
||||
|
||||
public string MatCustomer { get; set; }
|
||||
|
||||
public string ModifyUser { get; set; }
|
||||
|
||||
public DateTime? ModifyTime { get; set; } = DateTime.Now;
|
||||
|
||||
public bool IsEnable { get; set; } = true;
|
||||
|
||||
public string IsEnableStr
|
||||
{
|
||||
get
|
||||
{
|
||||
if (IsEnable)
|
||||
return "启用";
|
||||
else
|
||||
return "禁用";
|
||||
}
|
||||
}
|
||||
|
||||
public bool IsSelected
|
||||
{
|
||||
get { return isSelected; }
|
||||
set
|
||||
{
|
||||
isSelected = value;
|
||||
OnPropertyChanged(nameof(IsSelected));
|
||||
}
|
||||
}
|
||||
public bool isSelected;
|
||||
|
||||
public int RowNumber { get; set; }
|
||||
|
||||
public event PropertyChangedEventHandler PropertyChanged;
|
||||
protected virtual void OnPropertyChanged(string propertyName)
|
||||
{
|
||||
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user