!提交代码

This commit is contained in:
hehaibing-1996
2024-04-15 18:43:28 +08:00
commit e89b64ea3a
232 changed files with 22292 additions and 0 deletions

View 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; }
}
}

View 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; }
}
}

View 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;
}
}

View 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; }
}
}

View 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; }
}
}

View 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));
}
}
}