using RB_MES_API.Context;
using System.ComponentModel.DataAnnotations;
namespace RB_MES_API.Models.Cloud
{
///
/// 销售出库单
///
public class SAL_OUTSTOCK
{
///
/// 实体主键(无需填写,保存时自动添加)
///
public int FID { get; set; }
///
/// 单据类型 (必填项)
///
[StringLength(36)]
public Dictionary FBillTypeID { get; set; } = new Dictionary() {
{ "FNUMBER",""}
};
///
/// 单据编号
///
public string FBillNo { get; set; }
///
/// 日期 (必填项)
///
[DataType(DataType.DateTime)]
public string FDate { get; set; } = DateTime.Now.ToShortDateString();
///
/// 销售组织 (必填项)
///
[StringLength(36)]
public Dictionary FSaleOrgId { get; set; } = new Dictionary() {
{ "FNUMBER",""}
};
///
/// 客户 (必填项)
///
[StringLength(36)]
public Dictionary FCustomerID { get; set; } = new Dictionary() {
{ "FNUMBER",""}
};
///
/// 销售部门
///
[StringLength(36)]
public Dictionary FSaledeptid { get; set; } = new Dictionary() {
{ "FNUMBER",""}
};
///
/// 对应组织
///
[StringLength(36)]
public Dictionary FCorrespondOrgId { get; set; } = new Dictionary() {
{ "FNUMBER",""}
};
///
/// 销售员
///
[StringLength(36)]
public Dictionary FSalesManId { get; set; } = new Dictionary() {
{ "FNUMBER",""}
};
///
/// 发货组织 (必填项)
///
[StringLength(36)]
public Dictionary FStockOrgId { get; set; } = new Dictionary() {
{ "FNUMBER",""}
};
///
/// 库存组
///
[StringLength(36)]
public Dictionary FStockerGroupId { get; set; } = new Dictionary() {
{ "FNUMBER",""}
};
///
/// 仓管员
///
[StringLength(36)]
public Dictionary FStockerId { get; set; } = new Dictionary() {
{ "FNUMBER",""}
};
///
/// 收货方地址
///
public string FReceiveAddress { get; set; }
///
/// 货主类型
///
public string FOwnerTypeIdHead { get; set; }
///
/// 货主
///
[StringLength(36)]
public Dictionary FOwnerIdHead { get; set; } = new Dictionary() {
{ "FNUMBER",LocalStaticRequest.DefaultOrg}
};
///
/// 收货人姓名
///
public string FLinkMan { get; set; }
///
/// 联系电话
///
public string FLinkPhone { get; set; }
///
/// MES唯一标识
///
[StringLength(36)]
public string F_SBMI_QUEUE_ID { get; set; }
public FSubHeadEntity SubHeadEntity { get; set; } = new FSubHeadEntity();
///
/// 财务信息
///
public class FSubHeadEntity
{
///
/// 实体主键(无需填写,保存时自动添加)
///
public int FEntryId { get; set; }
///
/// 结算币别 (必填项)
///
[StringLength(36)]
public Dictionary FSettleCurrId { get; set; } = new Dictionary() {
{ "FNUMBER",""}
};
///
/// 结算组织 (必填项)
///
[StringLength(36)]
public Dictionary FSettleOrgId { get; set; } = new Dictionary() {
{ "FNUMBER",""}
};
///
/// 结算方式
///
[StringLength(36)]
public Dictionary FSettleTypeId { get; set; } = new Dictionary() {
{ "FNUMBER",""}
};
///
/// 价目表
///
[StringLength(36)]
public Dictionary FPriceListId { get; set; } = new Dictionary() {
{ "FNUMBER",""}
};
///
/// 折扣表
///
[StringLength(36)]
public Dictionary FDiscountListId { get; set; } = new Dictionary() {
{ "FNUMBER",""}
};
///
/// 本位币
///
[StringLength(36)]
public Dictionary FLocalCurrId { get; set; } = new Dictionary() {
{ "FNUMBER",""}
};
///
/// 汇率类型
///
[StringLength(36)]
public Dictionary FExchangeTypeId { get; set; } = new Dictionary() {
{ "FNUMBER",""}
};
///
/// 汇率
///
public decimal FExchangeRate { get; set; }
}
public List FEntity { get; set; } = new List();
///
/// 明细信息
///
public class Entity
{
///
/// 源单单号
///
public string FSrcBillNo { get; set; }
///
/// 实体主键(无需填写,保存时自动添加)
///
public int FENTRYID { get; set; }
///
/// 产品类型
///
public string FRowType { get; set; } = "Standard";
///
/// 物料编码 (必填项)
///
[StringLength(36)]
public Dictionary FMaterialId { get; set; } = new Dictionary() {
{ "FNumber",""}
};
///
/// 辅助属性
///
public Dictionary FAuxpropId { get; set; } = new Dictionary() {
{ "FNUMBER",""}
};
///
/// 库存单位 (必填项)
///
[StringLength(36)]
public Dictionary FUnitID { get; set; } = new Dictionary() {
{ "FNumber",""}
};
///
/// 应发数量
///
public decimal FMustQty { get; set; }
///
/// 基本单位应发数量
///
public decimal FBaseMustQty { get; set; }
///
/// 实发数量
///
public decimal FRealQty { get; set; }
///
/// 计价数量
///
public decimal FPriceUnitQty { get; set; }
///
/// 父项产品
///
[StringLength(36)]
public Dictionary FParentMatId { get; set; } = new Dictionary() {
{ "FNumber",""}
};
///
/// 单价
///
public decimal FPrice { get; set; }
///
/// 含税单价
///
public decimal FTaxPrice { get; set; }
///
/// 是否赠品
///
public bool FIsFree { get; set; } = false;
///
/// 税组合
///
[StringLength(36)]
public Dictionary FTaxCombination { get; set; } = new Dictionary() {
{ "FNumber",""}
};
///
/// 税率%
///
public int FEntryTaxRate { get; set; }
///
/// 货主类型 (必填项)
///
public string FOwnerTypeId { get; set; }
///
/// 货主 (必填项)
///
[StringLength(36)]
public Dictionary FOwnerId { get; set; } = new Dictionary() {
{ "FNumber",LocalStaticRequest.DefaultOrg}
};
///
/// 仓库
///
[StringLength(36)]
public Dictionary FStockId { get; set; } = new Dictionary() {
{ "FNumber",""}
};
public StocklocId FStocklocId { get; set; } = new StocklocId();
///
/// 仓位
///
public class StocklocId
{
[StringLength(36)]
public Dictionary FSTOCKLOCID__FF100001 { get; set; } = new Dictionary() {
{ "FNumber",""}
};
[StringLength(36)]
public Dictionary FSTOCKLOCID__FF100002 { get; set; } = new Dictionary() {
{ "FNumber",""}
};
}
///
/// 库存状态
///
[StringLength(36)]
public Dictionary FStockstatusId { get; set; } = new Dictionary() {
{ "FNumber","KCZT01_SYS"}
};
///
/// 批号
///
[StringLength(36)]
public Dictionary FLot { get; set; } = new Dictionary() {
{ "FNumber",""}
};
///
/// 备注
///
public string FNote { get; set; }
///
/// 折扣率%
///
public decimal FDiscountRate { get; set; }
///
/// 单价折扣
///
public decimal FPriceDiscount { get; set; }
///
/// 库存辅单位数量
///
public decimal FAuxUnitQty { get; set; }
///
/// 基本单位
///
[StringLength(36)]
public Dictionary FBaseUnitID { get; set; } = new Dictionary() {
{ "FNumber",""}
};
///
/// 实收数量(辅单位)
///
public decimal FExtAuxUnitQty { get; set; }
///
/// 消耗汇总
///
public string FISCONSUMESUM { get; set; }
///
/// 销售单位
///
[StringLength(36)]
public Dictionary FSalUnitID { get; set; } = new Dictionary() {
{ "FNumber",""}
};
///
/// 销售数量
///
public decimal FSalUnitQty { get; set; }
///
/// 销售基本数量
///
public decimal FSalBaseQty { get; set; }
///
/// 计价基本数量
///
public decimal FPriceBaseQty { get; set; }
///
/// 销售订单EntryId
///
public int FSOEntryId { get; set; }
///
/// 更新库存标志
///
//public string FStockFlag { get; set; } = "0";
///
/// 行价目表
///
[StringLength(36)]
public Dictionary FPriceListEntry { get; set; } = new Dictionary() {
{ "FNUMBER",""}
};
///
/// 关联关系表
///
public List FEntity_Link { get; set; } = new List();
public class Entity_Link
{
///
/// 实体主键,新建时为空,由系统自动填充
///
public string FLinkId { get; set; }
public string FEntity_Link_FFlowId { get; set; } //= "f3e2a946-0f56-465c-8547-2b20a3bf9b7e";
public string FEntity_Link_FFlowLineId { get; set; }
public string FEntity_Link_FRuleId { get; set; } = "DeliveryNotice-OutStock";
public int FEntity_Link_FSTableId { get; set; } = 0;
public string FEntity_Link_FSTableName { get; set; } = "T_SAL_DELIVERYNOTICEENTRY";
///
/// 系统源单内码
///
public int FEntity_Link_FSBillId { get; set; } //要二次查询,或者由MES提供。一般二次查询...
///
/// 系统源单分录内码
///
public int FEntity_Link_FSId { get; set; } //要二次查询,或者由MES提供。一般二次查询...
public decimal FEntity_Link_FBaseActualQtyOld { get; set; } //应发数量
public decimal FEntity_Link_FBaseActualQty { get; set; } //实发数量
}
}
///
/// 税务明细
///
public class FTaxDetailSubEntity
{
///
/// 实体主键(无需填写,保存时自动添加)
///
public int FDetailID { get; set; }
///
/// 税率%
///
public decimal FTaxRate { get; set; }
}
///
/// 序列号子单据体
///
public class FSerialSubEntity
{
///
/// 实体主键(无需填写,保存时自动添加)
///
public int FDetailID { get; set; }
///
/// 序列号
///
public string FSerialNo { get; set; }
///
/// 备注
///
public string FSerialNote { get; set; }
}
///
/// 物流跟踪明细
///
public class FRetStockTrace
{
///
/// 实体主键(无需填写,保存时自动添加)
///
public int FEntryID { get; set; }
///
/// 物流公司
///
[StringLength(36)]
public Dictionary FLogComId { get; set; } = new Dictionary() {
{ "FCODE",""}
};
///
/// 物流单号 (必填项)
///
public string FCarryBillNo { get; set; }
///
/// 寄件人手机号
///
public string FPhoneNumber { get; set; }
///
/// 起始地点
///
public string FFrom { get; set; }
///
/// 终止地点
///
public string FTo { get; set; }
///
/// 发货日期
///
public DateTime FDelTime { get; set; }
///
/// 物流状态
///
public string FTraceStatus { get; set; }
///
/// 签收时间
///
public DateTime FReceiptTime { get; set; }
}
///
/// 物流详细信息
///
public class FReturnStockTraceDetail
{
///
/// 实体主键(无需填写,保存时自动添加)
///
public int FDetailID { get; set; }
///
/// 时间
///
public string FTraceTime { get; set; }
///
/// 物流详情
///
public string FTraceDetail { get; set; }
}
}
}