323 lines
11 KiB
C#
323 lines
11 KiB
C#
using RB_MES_API.Context;
|
|
using System.ComponentModel.DataAnnotations;
|
|
namespace RB_MES_API.Models.Cloud
|
|
{
|
|
/// <summary>
|
|
/// 其他出库单
|
|
/// </summary>
|
|
public class STK_MisDelivery
|
|
{
|
|
/// <summary>
|
|
/// 实体主键(无需填写,保存时自动添加)
|
|
/// </summary>
|
|
public int FID { get; set; }
|
|
/// <summary>
|
|
/// 业务类型
|
|
/// </summary>
|
|
public int FBizType { get; set; } = 0;
|
|
/// <summary>
|
|
/// 单据编号
|
|
/// </summary>
|
|
[StringLength(36)]
|
|
public string FBillNo { get; set; }
|
|
/// <summary>
|
|
/// 单据类型 (必填项)
|
|
/// </summary>
|
|
public Dictionary<string, string> FBillTypeID { get; set; } = new Dictionary<string, string>() {
|
|
{ "FNUMBER","QTCKD01_SYS"}
|
|
};
|
|
/// <summary>
|
|
/// 库存组织 (必填项)
|
|
/// </summary>
|
|
public Dictionary<string, string> FStockOrgId { get; set; } = new Dictionary<string, string>() {
|
|
{ "FNUMBER",LocalStaticRequest.DefaultOrg}
|
|
};
|
|
/// <summary>
|
|
/// 领用组织
|
|
/// </summary>
|
|
public Dictionary<string, string> FPickOrgId { get; set; } = new Dictionary<string, string>() {
|
|
{ "FNUMBER",LocalStaticRequest.DefaultOrg}
|
|
};
|
|
/// <summary>
|
|
/// 库存方向 (必填项)
|
|
/// </summary>
|
|
[StringLength(36)]
|
|
public string FStockDirect { get; set; } = "GENERAL";
|
|
/// <summary>
|
|
/// 日期 (必填项)
|
|
/// </summary>
|
|
[DataType(DataType.DateTime)]
|
|
public string FDate { get; set; } = DateTime.Now.ToShortDateString();
|
|
/// <summary>
|
|
/// 客户
|
|
/// </summary>
|
|
public Dictionary<string, string> FCustId { get; set; } = new Dictionary<string, string>() {
|
|
{ "FNUMBER",""}
|
|
};
|
|
/// <summary>
|
|
/// 领料部门
|
|
/// </summary>
|
|
public Dictionary<string, string> FDeptId { get; set; } = new Dictionary<string, string>() {
|
|
{ "FNUMBER","20-9"}
|
|
};
|
|
/// <summary>
|
|
/// 领料人
|
|
/// </summary>
|
|
public Dictionary<string, string> FPickerId { get; set; } = new Dictionary<string, string>() {
|
|
{ "FStaffNumber ","0012_07301_1"}
|
|
};
|
|
/// <summary>
|
|
/// 仓管员
|
|
/// </summary>
|
|
public Dictionary<string, string> FStockerId { get; set; } = new Dictionary<string, string>() {
|
|
{ "FNUMBER",""}
|
|
};
|
|
/// <summary>
|
|
/// 库存组
|
|
/// </summary>
|
|
public Dictionary<string, string> FStockerGroupId { get; set; } = new Dictionary<string, string>() {
|
|
{ "FNUMBER",""}
|
|
};
|
|
/// <summary>
|
|
/// 货主类型 (必填项)
|
|
/// </summary>
|
|
[StringLength(36)]
|
|
public string FOwnerTypeIdHead { get; set; } = "BD_OwnerOrg";
|
|
/// <summary>
|
|
/// 货主
|
|
/// </summary>
|
|
public Dictionary<string, string> FOwnerIdHead { get; set; } = new Dictionary<string, string>() {
|
|
{ "FNUMBER",LocalStaticRequest.DefaultOrg}
|
|
};
|
|
/// <summary>
|
|
/// 备注
|
|
/// </summary>
|
|
[StringLength(36)]
|
|
public string FNote { get; set; } = "";
|
|
/// <summary>
|
|
/// 本位币
|
|
/// </summary>
|
|
public Dictionary<string, string> FBaseCurrId { get; set; } = new Dictionary<string, string>() {
|
|
{ "FNUMBER","PRE001"}
|
|
};
|
|
/// <summary>
|
|
/// 序列号上传
|
|
/// </summary>
|
|
[StringLength(36)]
|
|
public string FScanBox { get; set; }
|
|
/// <summary>
|
|
/// MES唯一标识
|
|
/// </summary>
|
|
[StringLength(36)]
|
|
public string F_SBMI_QUEUE_ID { get; set; }
|
|
|
|
/// <summary>
|
|
/// 合同项目#
|
|
/// </summary>
|
|
public Dictionary<string, string> F_PNDR_Assistant_HTXM { get; set; } = new Dictionary<string, string>() { { "FNUMBER", "" } };
|
|
|
|
|
|
public List<Entity> FEntity { get; set; } = new List<Entity>();
|
|
/// <summary>
|
|
/// 明细信息
|
|
/// </summary>
|
|
public class Entity
|
|
{
|
|
/// <summary>
|
|
/// 实体主键(无需填写,保存时自动添加)
|
|
/// </summary>
|
|
public int FEntryID { get; set; }
|
|
/// <summary>
|
|
/// 物料编码 (必填项)
|
|
/// </summary>
|
|
public Dictionary<string, string> FMaterialId { get; set; } = new Dictionary<string, string>() {
|
|
{ "FNUMBER",""}
|
|
};
|
|
/// <summary>
|
|
/// 辅助属性
|
|
/// </summary>
|
|
public AuxpropId FAuxPropId { get; set; }
|
|
public class AuxpropId
|
|
{
|
|
public Dictionary<string, string> FAUXPROPID__FF100001 { get; set; } = new Dictionary<string, string>() {
|
|
{ "FNumber",""} };
|
|
}
|
|
/// <summary>
|
|
/// 单位 (必填项)
|
|
/// </summary>
|
|
public Dictionary<string, string> FUnitID { get; set; } = new Dictionary<string, string>() {
|
|
{ "FNUMBER",""}
|
|
};
|
|
/// <summary>
|
|
/// 实发数量
|
|
/// </summary>
|
|
public decimal FQty { get; set; }
|
|
/// <summary>
|
|
/// 基本单位 (必填项)
|
|
/// </summary>
|
|
public Dictionary<string, string> FBaseUnitId { get; set; } = new Dictionary<string, string>() {
|
|
{ "FNUMBER",""}
|
|
};
|
|
/// <summary>
|
|
/// 发货仓库 (必填项)
|
|
/// </summary>
|
|
public Dictionary<string, string> FStockId { get; set; } = new Dictionary<string, string>() {
|
|
{ "FNUMBER",""}
|
|
};
|
|
public StockLocId FStockLocId { get; set; } = new StockLocId();
|
|
/// <summary>
|
|
/// 仓位
|
|
/// </summary>
|
|
public class StockLocId
|
|
{
|
|
public Dictionary<string, string> FSTOCKLOCID__FF100001 { get; set; } = new Dictionary<string, string>() {
|
|
{ "FNUMBER",""}
|
|
|
|
};
|
|
public Dictionary<string, string> FSTOCKLOCID__FF100002 { get; set; } = new Dictionary<string, string>() {
|
|
{ "FNUMBER",""}
|
|
|
|
};
|
|
}
|
|
/// <summary>
|
|
/// 批号
|
|
/// </summary>
|
|
public Dictionary<string, string> FLOT { get; set; } = new Dictionary<string, string>() {
|
|
{ "FNUMBER",""}
|
|
};
|
|
/// <summary>
|
|
/// 货主类型 (必填项)
|
|
/// </summary>
|
|
[StringLength(36)]
|
|
public string FOwnerTypeId { get; set; } = "BD_OwnerOrg";
|
|
/// <summary>
|
|
/// 产品组
|
|
/// </summary>
|
|
public Dictionary<string, string> FPRODUCTGROUPID { get; set; } = new Dictionary<string, string>() {
|
|
{ "FNUMBER",""}
|
|
};
|
|
/// <summary>
|
|
/// 货主 (必填项)
|
|
/// </summary>
|
|
public Dictionary<string, string> FOwnerId { get; set; } = new Dictionary<string, string>() {
|
|
{ "FNUMBER",LocalStaticRequest.DefaultOrg}
|
|
};
|
|
/// <summary>
|
|
/// BOM版本
|
|
/// </summary>
|
|
public Dictionary<string, string> FBomId { get; set; } = new Dictionary<string, string>() {
|
|
{ "FNUMBER",""}
|
|
};
|
|
/// <summary>
|
|
/// 备注
|
|
/// </summary>
|
|
[StringLength(36)]
|
|
public string FEntryNote { get; set; }
|
|
/// <summary>
|
|
/// 项目编号
|
|
/// </summary>
|
|
[StringLength(36)]
|
|
public string FProjectNo { get; set; }
|
|
/// <summary>
|
|
/// 生产日期
|
|
/// </summary>
|
|
[DataType(DataType.DateTime)]
|
|
public string FProduceDate { get; set; }
|
|
/// <summary>
|
|
/// 服务上下文
|
|
/// </summary>
|
|
[StringLength(36)]
|
|
public string FServiceContext { get; set; }
|
|
/// <summary>
|
|
/// 库存状态 (必填项)
|
|
/// </summary>
|
|
public Dictionary<string, string> FStockStatusId { get; set; } = new Dictionary<string, string>() {
|
|
{ "FNUMBER","KCZT01_SYS"}
|
|
};
|
|
/// <summary>
|
|
/// 计划跟踪号
|
|
/// </summary>
|
|
[StringLength(36)]
|
|
public string FMtoNo { get; set; } = "";
|
|
/// <summary>
|
|
/// 成本项目
|
|
/// </summary>
|
|
public Dictionary<string, string> FCostItem { get; set; } = new Dictionary<string, string>() {
|
|
{ "FNUMBER",""}
|
|
};
|
|
/// <summary>
|
|
/// 保管者类型 (必填项)
|
|
/// </summary>
|
|
[StringLength(36)]
|
|
public string FKeeperTypeId { get; set; } = "BD_KeeperOrg";
|
|
/// <summary>
|
|
/// 参加费用分配
|
|
/// </summary>
|
|
public bool FDistribution { get; set; } = false;
|
|
/// <summary>
|
|
/// 保管者 (必填项)
|
|
/// </summary>
|
|
public Dictionary<string, string> FKeeperId { get; set; } = new Dictionary<string, string>() { { "FNUMBER", LocalStaticRequest.DefaultOrg } };
|
|
/// <summary>
|
|
/// 辅单位
|
|
/// </summary>
|
|
public Dictionary<string, string> FExtAuxUnitId { get; set; } = new Dictionary<string, string>() { { "FNUMBER", "" } };
|
|
/// <summary>
|
|
/// 实发数量(辅单位)
|
|
/// </summary>
|
|
public decimal FExtAuxUnitQty { get; set; }
|
|
///// <summary>
|
|
///// 更新库存标志
|
|
///// </summary>
|
|
//public string FStockFlag { get; set; } = "1";
|
|
|
|
/// <summary>
|
|
/// 项目编号#
|
|
/// </summary>
|
|
public string F_PNDR_Remarks_YFBH { get; set; }
|
|
|
|
/// <summary>
|
|
/// 项目名称#
|
|
/// </summary>
|
|
public string F_PNDR_Remarks_YFMC { get; set; }
|
|
|
|
/// <summary>
|
|
/// 项目阶段#
|
|
/// </summary>
|
|
public string F_PNDR_Text_XMJD { get; set; }
|
|
|
|
/// <summary>
|
|
/// OA流程号(行)#
|
|
/// </summary>
|
|
public string F_PNDR_Text_OALCH { get; set; }
|
|
|
|
|
|
}
|
|
/// <summary>
|
|
/// 序列号子单据体
|
|
/// </summary>
|
|
public class FSerialSubEntity
|
|
{
|
|
/// <summary>
|
|
/// 实体主键(无需填写,保存时自动添加)
|
|
/// </summary>
|
|
public int FDetailID { get; set; }
|
|
/// <summary>
|
|
/// 序列号
|
|
/// </summary>
|
|
[StringLength(36)]
|
|
public string FSerialNo { get; set; }
|
|
/// <summary>
|
|
/// 备注
|
|
/// </summary>
|
|
[StringLength(36)]
|
|
public string FSerialNote { get; set; }
|
|
/// <summary>
|
|
/// 源单分录行号 FSrcBillEntrySeq
|
|
/// </summary>
|
|
public string FSeq { get; set; }
|
|
|
|
}
|
|
}
|
|
}
|