using RB_MES_API.Context;
using System.ComponentModel.DataAnnotations;
namespace RB_MES_API.Models.Cloud
{
///
/// 直接调拨单
///
public class STK_TransferDirect
{
///
/// 实体主键(无需填写,保存时自动添加)
///
public int FID { get; set; }
///
/// 单据编号
///
[StringLength(36)]
public string FBillNo { get; set; }
///
/// 单据类型 (必填项)
///
public Dictionary FBillTypeID { get; set; } = new Dictionary() {
{ "FNUMBER","ZJDB01_SYS"}
};
/////
///// 调拨方向 (必填项)
/////
//[StringLength(36)]
//public string FTransferDirect { get; set; } = "GENERAL";
///
/// 调拨类型 (必填项)
///
[StringLength(36)]
public string FTransferBizType { get; set; } //= "InnerOrgTransfer";
///
/// 调拨类型 (必填项)
///
[StringLength(36)]
public string FBizType { get; set; } //= "InnerOrgTransfer";
///
/// 调出库存组织 (必填项)
///
public Dictionary FStockOutOrgId { get; set; } = new Dictionary() {
{ "FNUMBER",LocalStaticRequest.DefaultOrg}
};
///
/// 调出货主类型 (必填项)
///
[StringLength(36)]
public string FOwnerTypeOutIdHead { get; set; }
///
/// 调出货主
///
public Dictionary FOwnerOutIdHead { get; set; } = new Dictionary() {
{ "FNUMBER",LocalStaticRequest.DefaultOrg}
};
///
/// 调入库存组织 (必填项)
///
public Dictionary FStockOrgId { get; set; } = new Dictionary() {
{ "FNUMBER",LocalStaticRequest.DefaultOrg}
};
///
/// 是否含税
///
public bool FIsIncludedTax { get; set; } = false;
///
/// 价外税
///
public bool FIsPriceExcludeTax { get; set; } = false;
///
/// 汇率类型
///
public Dictionary FExchangeTypeId { get; set; } = new Dictionary() {
{ "FNUMBER","HLTX01_SYS"}
};
///
/// 调入货主类型 (必填项)
///
[StringLength(36)]
public string FOwnerTypeIdHead { get; set; } = "BD_OwnerOrg";
///
/// 汇率
///
public decimal FExchangeRate { get; set; }
///
/// 调入货主
///
public Dictionary FOwnerIdHead { get; set; } = new Dictionary() {
{ "FNUMBER",LocalStaticRequest.DefaultOrg}
};
///
/// 仓管员
///
public Dictionary FStockerId { get; set; } = new Dictionary() {
{ "FNUMBER",""}
};
///
/// 库存组
///
public Dictionary FStockerGroupId { get; set; } = new Dictionary() {
{ "FNUMBER",""}
};
///
/// 日期 (必填项)
///
[DataType(DataType.DateTime)]
public string FDate { get; set; } = DateTime.Now.ToShortDateString();
///
/// 备注
///
[StringLength(36)]
public string FNote { get; set; }
///
/// MES唯一标识
///
[StringLength(36)]
public string F_SBMI_QUEUE_ID { get; set; }
///
/// 销售部门
///
[StringLength(36)]
public Dictionary FSaleDeptId { get; set; } = new Dictionary() { { "FNUMBER", "" } };
///
/// 销售组
///
[StringLength(36)]
public Dictionary FSaleGroupId { get; set; } = new Dictionary() { { "FNUMBER", "" } };
///
/// 销售员
///
[StringLength(36)]
public Dictionary FSalerId { get; set; } = new Dictionary() { { "FNUMBER", "" } };
///
/// 序列号上传
///
//[StringLength(36)]
//public string FScanBox { get; set; } = "";
///
/// 冲减普通寄售调拔单结算数量
///
public bool FWriteOffConsign { get; set; } = false;
///
/// 客户 必录项
///
public Dictionary F_PKGR_CustomerID { get; set; } = new Dictionary() { { "FNUMBER", "" } };
public List FBillEntry { get; set; } = new List();
///
/// 明细
///
public class BillEntry
{
///
/// 实体主键
///
public int FEntryID { get; set; }
///
/// 物料编码 (必填项)
///
public Dictionary FMaterialId { get; set; } = new Dictionary() {
{ "FNUMBER",""}
};
///
/// 单位 (必填项)
///
public Dictionary FUnitID { get; set; } = new Dictionary() {
{ "FNUMBER",""}
};
///
/// 销售单位 (必填项)
///
public Dictionary FSaleUnitId { get; set; } = new Dictionary() {
{ "FNUMBER",""}
};
///
/// 基本单位
///
public Dictionary FBaseUnitId { get; set; } = new Dictionary() {
{ "FNUMBER",""}
};
///
/// 调拨数量
///
public decimal FQty { get; set; }
///
/// 销售基本数量
///
public decimal FSalBaseQty { get; set; }
///
/// 调出批号
///
public Dictionary FLot { get; set; } = new Dictionary() {
{ "FNUMBER",""}
};
///
/// 调出仓库
///
public Dictionary FSrcStockId { get; set; } = new Dictionary() {
{ "FNUMBER",""}
};
///
/// 调出仓位
///
public StockLocId FStockLocId { get; set; } = new StockLocId();
public class StockLocId
{
public Dictionary FSRCSTOCKLOCID__FF100001 { get; set; } = new Dictionary() {
{ "FNumber",""}
};
public Dictionary FSRCSTOCKLOCID__FF100002 { get; set; } = new Dictionary() {
{ "FNumber",""}
};
}
///
/// 调入仓库
///
public Dictionary FDestStockId { get; set; } = new Dictionary() {
{ "FNUMBER",""}
};
///
/// BOM版本
///
public Dictionary FBomId { get; set; } = new Dictionary() {
{ "FNUMBER",""}
};
///
/// 调出库存状态
///
public Dictionary FSrcStockStatusId { get; set; } = new Dictionary() {
{ "FNUMBER","KCZT01_SYS"}
};
///
/// 调入库存状态
///
public Dictionary FDestStockStatusId { get; set; } = new Dictionary() {
{ "FNUMBER","KCZT01_SYS"}
};
///
/// 计划跟踪号
///
[StringLength(36)]
public string FMtoNo { get; set; } = "";
///
/// 入库日期
///
//public DateTime FBusinessDate { get; set; }
///
/// 有效期至
///
//[DataType(DataType.Date)]
//public string FExpiryDate { get; set; }
///
/// 调出货主类型 (必填项)
///
[StringLength(36)]
public string FOwnerTypeOutId { get; set; }
///
/// 调出货主 (必填项)
///
public Dictionary FOwnerOutId { get; set; } = new Dictionary() {
{ "FNUMBER",""}
};
///
/// 调入货主类型 (必填项)
///
[StringLength(36)]
public string FOwnerTypeId { get; set; } = "BD_OwnerOrg";
///
/// 调入货主 (必填项)
///
public Dictionary FOwnerId { get; set; } = new Dictionary() {
{ "FNUMBER",LocalStaticRequest.DefaultOrg}
};
///
/// 结算组织 (VMI必填项)
///
public Dictionary FSettleOrgId { get; set; } = new Dictionary() {
{ "FNUMBER",""}
};
///
/// 备注
///
[StringLength(36)]
public string FNoteEntry { get; set; }
///
/// 项目编号
///
[StringLength(36)]
public string FProjectNo { get; set; }
///
/// 调入保管者类型 (必填项)
///
[StringLength(36)]
public string FKeeperTypeId { get; set; } = "BD_KeeperOrg";
///
/// 实收数量
///
public decimal FActQty { get; set; }
///
/// 调入保管者 (必填项)
///
public Dictionary FKeeperId { get; set; } = new Dictionary() {
{ "FNUMBER",LocalStaticRequest.DefaultOrg}
};
///
/// 调出保管者类型 (必填项)
///
[StringLength(36)]
public string FKeeperTypeOutId { get; set; } = "BD_KeeperOrg";
///
/// 调出保管者 (必填项)
///
public Dictionary FKeeperOutId { get; set; } = new Dictionary() {
{ "FNUMBER",LocalStaticRequest.DefaultOrg}
};
///
/// 折扣率%
///
public decimal FDiscountRate { get; set; }
///
/// 补货数量
///
public decimal FRepairQty { get; set; }
///
/// 退货备注
///
[StringLength(36)]
public string FRETURNNOTE { get; set; }
///
/// 调入批号
///
public Dictionary FDestLot { get; set; } = new Dictionary() {
{ "FNUMBER",""}
};
///
/// 调入BOM
///
public Dictionary FDestBomId { get; set; } = new Dictionary() {
{ "FNUMBER",""}
};
///
/// 销售数量
///
public decimal FSaleQty { get; set; }
///
/// 基本单位数量
///
public decimal FBaseQty { get; set; }
///
/// 转移预留关系
///
public bool FTransReserveLink { get; set; } = false;
///
/// 发货检验
///
public bool FCheckDelivery { get; set; } = false;
///
/// BOM分录内码
///
public int FBomEntryId { get; set; }
/////
///// 更新库存标志
/////
//public string FStockOutFlag { get; set; } = "1";
/////
///// 更新库存标志
/////
//public string FStockInFlag { get; set; } = "1";
///
/// 辅助属性
///
public AuxpropId FAuxPropId { get; set; }
public class AuxpropId
{
public Dictionary FAUXPROPID__FF100001 { get; set; } = new Dictionary() {
{ "FNumber",""}
};
}
///
/// 关联关系表
///
public List FBillEntry_Link { get; set; } = new List();
public class BillEntry_Link
{
///
/// 实体主键,新建时为空,由系统自动填充
///
public string FLinkId { get; set; }
public string FBillEntry_Link_FFlowId { get; set; }
public string FBillEntry_Link_FFlowLineId { get; set; }
public string FBillEntry_Link_FRuleId { get; set; }// = "DeliveryNotice-StkTransferDirect"; /这是发货通知转调拨单的...
public int FBillEntry_Link_FSTableId { get; set; } = 0;
public string FBillEntry_Link_FSTableName { get; set; } //= "T_SAL_DELIVERYNOTICE";
///
/// 系统源单内码
///
public int FBillEntry_Link_FSBillId { get; set; } //要二次查询,或者由MES提供。一般二次查询...
///
/// 系统源单分录内码
///
public int FBillEntry_Link_FSId { get; set; } //要二次查询,或者由MES提供。一般二次查询...
public decimal FBillEntry_Link_FBaseQtyOld { get; set; } //原始携带量
public decimal FBillEntry_Link_FBaseQty { get; set; } //修改携带量
public decimal FBillEntry_Link_FSalBaseQtyOld { get; set; } //原始携带量
public decimal FBillEntry_Link_FSalBaseQty { get; set; } //修改携带量
}
}
///
/// 序列号子单据体
///
public class FSerialSubEntity
{
///
/// 实体主键(无需填写,保存时自动添加)
///
public int FDetailID { get; set; }
///
/// 序列号
///
[StringLength(36)]
public string FSerialNo { get; set; }
///
/// 备注
///
[StringLength(36)]
public string FSerialNote { get; set; }
}
}
}