using System;
using SqlSugar;
using System.Linq;
using System.ComponentModel;
using System.Collections.Generic;
namespace Tiger.Model
{
///
/// ʵÌ壺Í깤Èë¿âÅú´Î±í
///
[Description("Primary:ID")]
[DisplayName("Í깤Èë¿âÅú´Î±í")]
[Serializable]
[SugarTable("BIZ_ERP_PROD_IN_BTH")]
public class BIZ_ERP_PROD_IN_BTH : DbEntityWithAuth
{
#region ¹¹Ô캯Êý
///
/// ʵÌ壺Í깤Èë¿âÅú´Î±í
///
public BIZ_ERP_PROD_IN_BTH() {}
#endregion
#region ¹«¹²ÊôÐÔ
///
/// Èë¿âµ¥ºÅ
///
[DisplayName("Èë¿âµ¥ºÅ")]
public string ORDER_NO { get; set; }
///
/// ¹¤µ¥Åú´ÎºÅ
///
[DisplayName("¹¤µ¥Åú´ÎºÅ")]
public string BATCH_NO { get; set; }
///
/// ¹¤µ¥ºÅ
///
[DisplayName("¹¤µ¥ºÅ")]
public string WORK_ORDER { get; set; }
///
/// ÎïÁϱàÂë
///
[DisplayName("ÎïÁϱàÂë")]
public string ITEM_CODE { get; set; }
///
/// ÎïÁÏÃû³Æ
///
[DisplayName("ÎïÁÏÃû³Æ")]
public string ITEM_NAME { get; set; }
///
/// ÒÑɨÃèÊýÁ¿
///
[DisplayName("ÒÑɨÃèÊýÁ¿")]
public double SCAN_QTY { get; set; }
///
/// ÊÇ·ñɨÃèÍê³É(Y/N)
///
[DisplayName("ÊÇ·ñɨÃèÍê³É(Y/N)")]
public string IS_SCANED { get; set; }
///
/// ɨÃèÍê³Éʱ¼ä
///
[DisplayName("ɨÃèÍê³Éʱ¼ä")]
public DateTime SCANED_DATE { get; set; } = DateTime.MinValue;
///
/// ÊÇ·ñ²Ö¿âµãÊÕ(Y/N)
///
[DisplayName("ÊÇ·ñ²Ö¿âµãÊÕ(Y/N)")]
public string IS_RECEIVED { get; set; }
///
/// ²Ö¿âµãÊÕʱ¼ä
///
[DisplayName("²Ö¿âµãÊÕʱ¼ä")]
public DateTime RECEIVED_DATE { get; set; } = DateTime.MinValue;
///
/// ÊÇ·ñÉϼÜÍê³É(Y/N)
///
[DisplayName("ÊÇ·ñÉϼÜÍê³É(Y/N)")]
public string IS_IN_STORE { get; set; }
///
/// ÉϼÜÍê³Éʱ¼ä
///
[DisplayName("ÉϼÜÍê³Éʱ¼ä")]
public DateTime IN_STORE_DATE { get; set; } = DateTime.MinValue;
///
/// ÊÇ·ñÒÑͬ²½ERP(Y/N)
///
[DisplayName("ÊÇ·ñÒÑͬ²½ERP(Y/N)")]
public string IS_HANDLED { get; set; }
///
/// ͬ²½ERPʱ¼ä
///
[DisplayName("ͬ²½ERPʱ¼ä")]
public DateTime HANDLED_DATE { get; set; } = DateTime.MinValue;
///
/// ±¸×¢
///
[DisplayName("±¸×¢")]
public string REMARK { get; set; }
#endregion
#region ÐéÄâÊôÐÔ
/*Àý×Ó
[SugarColumn(IsIgnore = true)]
public string FieldName { get; set; }
*/
#endregion
#region Íâ¼üÊôÐÔ
/*Àý×Ó
//Ò»¶ÔÒ»Íâ¼üµ¼º½
[Navigate(NavigateType.OneToOne, nameof(ClassAId))]//Ò»¶ÔÒ» ClassAIdÊÇBIZ_ERP_PROD_IN_BTHÀàÀïÃæµÄÍâ¼üID×Ö¶Î
public ClassA ClassA { get; set; } //×¢Òâ½ûÖ¹ÊÖ¶¯¸³Öµ£¬Ö»ÄÜÊÇnull
//Ò»¶Ô¶àÍâ¼üµ¼º½
[Navigate(NavigateType.OneToMany, nameof(ClassA.BIZ_ERP_PROD_IN_BTHId))]//ClassA±íÖеÄBIZ_ERP_PROD_IN_BTHId
public List ClassAList { get; set; }//×¢Òâ½ûÖ¹ÊÖ¶¯¸³Öµ£¬Ö»ÄÜÊÇnull
//¶à¶Ô¶àÍâ¼üµ¼º½
[Navigate(typeof(MappingClass), nameof(MappingClass.BIZ_ERP_PROD_IN_BTHId), nameof(MappingClass.ClassAId))]//×¢Òâ˳Ðò
public List ClassAList { get; set; } //×¢Òâ½ûÖ¹ÊÖ¶¯¸³Öµ£¬Ö»ÄÜÊÇnull
*/
#endregion
#region ö¾Ù±äÁ¿
/*Àý×Ó
public enum FieldNames
{
[Description("ö¾ÙÃèÊö0")]
Enum0,
[Description("ö¾ÙÃèÊö1")]
Enum1,
}
*/
#endregion
#region ¹«¹²·½·¨
#endregion
}//endClass
public class ProdInBatch
{
///
/// Èë¿âµ¥ºÅ
///
[DisplayName("Èë¿âµ¥ºÅ")]
public string ORDER_NO { get; set; }
public string SALES_ORDER { get; set; }
///
/// ¹¤µ¥Åú´ÎºÅ
///
[DisplayName("¹¤µ¥Åú´ÎºÅ")]
public string BATCH_NO { get; set; }
///
/// ¹¤µ¥ºÅ
///
[DisplayName("¹¤µ¥ºÅ")]
public string WORK_ORDER { get; set; }
///
/// ÎïÁϱàÂë
///
[DisplayName("ÎïÁϱàÂë")]
public string ITEM_CODE { get; set; }
///
/// ÎïÁÏÃû³Æ
///
[DisplayName("ÎïÁÏÃû³Æ")]
public string ITEM_NAME { get; set; }
///
/// ¼Æ»®ÊýÁ¿
///
[DisplayName("¼Æ»®ÊýÁ¿")]
public double PLAN_QTY { get; set; }
///
/// ÒÑɨÃèÊýÁ¿
///
[DisplayName("ÒÑɨÃèÊýÁ¿")]
public double SCAN_QTY { get; set; }
}
public class InStoreScanInfo
{
///
/// ÌõÂë
///
[DisplayName("ÌõÂë")]
public string SN { get; set; }
public string SALES_ORDER { get; set; }
[DisplayName("¹¤µ¥Åú´ÎºÅ")]
public string BATCH_NO { get; set; }
///
/// ¹¤µ¥ºÅ
///
[DisplayName("¹¤µ¥ºÅ")]
public string WORK_ORDER { get; set; }
///
/// ÒÑɨÃèÊýÁ¿
///
[DisplayName("ÒÑɨÃèÊýÁ¿")]
public double SCAN_QTY { get; set; }
}
public class InStoreInfo {
public BIZ_ERP_PROD_IN_BTH ErpProdInBth { get; set; }
public ProdInBatch ProdInBatch { get; set; }
public InStoreScanInfo InStoreScanInfo { get; set; }
}
}