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