You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

998 lines
39 KiB

1 year ago
using System.Data.Entity.Infrastructure;
using System.Data.Entity;
using CK.SCP.Models;
namespace ChangKeTec.Wms.Models.Wms
{
[DbConfigurationType(typeof(SqlDbConfiguration))]
public partial class WmsEntities : DbContext
{
public WmsEntities(string strConn)
: base(strConn)
{
}
public WmsEntities()
: base("name=ModelWms")
{
// Database.SetInitializer(new CreateDatabaseIfNotExists<WmsEntities>());
}
public virtual DbSet<VIEW_PRODUCT_DETAIL> VIEW_PRODUCT_DETAIL { get; set; }
public virtual DbSet<VIEW_STOCK_VEND> VIEW_STOCK_VEND { get; set; }
public virtual DbSet<TA_BILLTYPE> TA_BILLTYPE { get; set; }
public virtual DbSet<TA_BOM> TA_BOM { get; set; }
public virtual DbSet<TA_CELL> TA_CELL { get; set; }
public virtual DbSet<TA_CELL1> TA_CELL1 { get; set; }
public virtual DbSet<TA_CELL_PART> TA_CELL_PART { get; set; }
public virtual DbSet<TA_CONFIG> TA_CONFIG { get; set; }
public virtual DbSet<TA_CUST_BOM> TA_CUST_BOM { get; set; }
public virtual DbSet<TA_CUST_PART> TA_CUST_PART { get; set; }
public virtual DbSet<TA_CUSTOMER> TA_CUSTOMER { get; set; }
public virtual DbSet<TA_DELIVER_DEST> TA_DELIVER_DEST { get; set; }
public virtual DbSet<TA_ERP_LOC> TA_ERP_LOC { get; set; }
public virtual DbSet<TA_ERP_STANDARD_COST> TA_ERP_STANDARD_COST { get; set; }
public virtual DbSet<TA_PART> TA_PART { get; set; }
public virtual DbSet<TA_PART_UNIT_CONVERSION> TA_PART_UNIT_CONVERSION { get; set; }
public virtual DbSet<TA_PAYMENT_DAY> TA_PAYMENT_DAY { get; set; }
public virtual DbSet<TA_PURCHASE_PRICE> TA_PURCHASE_PRICE { get; set; }
public virtual DbSet<TA_SALE_PRICE> TA_SALE_PRICE { get; set; }
public virtual DbSet<TA_STORE_GROUP> TA_STORE_GROUP { get; set; }
public virtual DbSet<TA_STORE_LOCATION> TA_STORE_LOCATION { get; set; }
public virtual DbSet<TA_STORE_WHSE> TA_STORE_WHSE { get; set; }
public virtual DbSet<TA_TEAM> TA_TEAM { get; set; }
public virtual DbSet<TA_VEND_PART> TA_VEND_PART { get; set; }
public virtual DbSet<TA_VENDER> TA_VENDER { get; set; }
public virtual DbSet<TA_WORKLINE> TA_WORKLINE { get; set; }
public virtual DbSet<TA_DEST_LOC> TA_DEST_LOC { get; set; }
public virtual DbSet<TB_BILL> TB_BILL { get; set; }
public virtual DbSet<TB_CONTAINER_INOUT> TB_CONTAINER_INOUT { get; set; }
public virtual DbSet<TB_DELIVER_ASK> TB_DELIVER_ASK { get; set; }
public virtual DbSet<TB_DELIVER_PLAN> TB_DELIVER_PLAN { get; set; }
public virtual DbSet<TB_DETAIL> TB_DETAIL { get; set; }
public virtual DbSet<TB_INSPECT> TB_INSPECT { get; set; }
public virtual DbSet<TB_INSPECT_FAIL> TB_INSPECT_FAIL { get; set; }
public virtual DbSet<TB_CHECK_DETAIL> TB_CHECK_DETAIL { get; set; }
public virtual DbSet<TB_CHECK> TB_CHECK { get; set; }
public virtual DbSet<TB_CHECK_LOC> TB_CHECK_LOC { get; set; }
public virtual DbSet<TB_MATERIAL_ASK> TB_MATERIAL_ASK { get; set; }
public virtual DbSet<TB_MATERIAL_RECEIVE> TB_MATERIAL_RECEIVE { get; set; }
public virtual DbSet<TB_MATERIAL_RETURN> TB_MATERIAL_RETURN { get; set; }
public virtual DbSet<TB_OTHER_INOUT> TB_OTHER_INOUT { get; set; }
public virtual DbSet<TB_OTHER_INOUT_SHEET> TB_OTHER_INOUT_SHEET { get; set; }
public virtual DbSet<TB_OFFICE_OUT> TB_OFFICE_OUT { get; set; }
public virtual DbSet<TB_OFFICE_RECIVE> TB_OFFICE_RECIVE { get; set; }
public virtual DbSet<TB_PACK_UNPACK> TB_PACK_UNPACK { get; set; }
public virtual DbSet<TB_PICK_FACT> TB_PICK_FACT { get; set; }
public virtual DbSet<TB_PICK_PLAN> TB_PICK_PLAN { get; set; }
public virtual DbSet<TB_PRODUCE_PLAN> TB_PRODUCE_PLAN { get; set; }
public virtual DbSet<TB_PRODUCT_RECEIVE> TB_PRODUCT_RECEIVE { get; set; }
public virtual DbSet<TB_PRODUCT_REPAIR> TB_PRODUCT_REPAIR { get; set; }
// public virtual DbSet<TB_PRODUCT_RETURN> TB_PRODUCT_RETURN { get; set; }
public virtual DbSet<TB_PRODUCT_SELL> TB_PRODUCT_SELL { get; set; }
public virtual DbSet<TB_STOCK_MOVE> TB_STOCK_MOVE { get; set; }
public virtual DbSet<TF_ASN> TF_ASN { get; set; }
public virtual DbSet<TF_ASN_DETAIL> TF_ASN_DETAIL { get; set; }
public virtual DbSet<TF_PO> TF_PO { get; set; }
public virtual DbSet<TF_PO_DETAIL> TF_PO_DETAIL { get; set; }
public virtual DbSet<TF_SO> TF_SO { get; set; }
public virtual DbSet<TF_SO_DETAIL> TF_SO_DETAIL { get; set; }
public virtual DbSet<TL_BASEDATA> TL_BASEDATA { get; set; }
public virtual DbSet<TL_INTERFACE> TL_INTERFACE { get; set; }
public virtual DbSet<TL_BILL> TL_BILL { get; set; }
public virtual DbSet<TL_EXCEPTION> TL_EXCEPTION { get; set; }
public virtual DbSet<TL_OPER> TL_OPER { get; set; }
public virtual DbSet<TL_TRANSACTION> TL_TRANSACTION { get; set; }
public virtual DbSet<TR_BALANCE_COMPARE> TR_BALANCE_COMPARE { get; set; }
public virtual DbSet<TR_BALANCE_COMPARE_PART> TR_BALANCE_COMPARE_PART { get; set; }
public virtual DbSet<TR_BALANCE_COMPARE_VIN> TR_BALANCE_COMPARE_VIN { get; set; }
// public virtual DbSet<TR_SCM> TR_SCM { get; set; }
public virtual DbSet<TS_BARCODE> TS_BARCODE { get; set; }
public virtual DbSet<TS_BARCODE_RULE> TS_BARCODE_RULE { get; set; }
public virtual DbSet<TS_CONTAINER> TS_CONTAINER { get; set; }
public virtual DbSet<TS_EQUIPMENT> TS_EQUIPMENT { get; set; }
public virtual DbSet<TS_EQUIPMENT_BARCODE> TS_EQUIPMENT_BARCODE { get; set; }
public virtual DbSet<TS_ERP_STOCK> TS_ERP_STOCK { get; set; }
public virtual DbSet<TS_NOTIFY> TS_NOTIFY { get; set; }
// public virtual DbSet<TS_SORT_BILL> TS_SORT_BILL { get; set; }
public virtual DbSet<TS_SORT_DETAIL> TS_SORT_DETAIL { get; set; }
public virtual DbSet<TS_SEQ_DETAIL> TS_SEQ_DETAIL { get; set; }
public virtual DbSet<TS_STOCK_DETAIL> TS_STOCK_DETAIL { get; set; }
public virtual DbSet<TS_STOCK_CUST> TS_STOCK_CUST { get; set; }
public virtual DbSet<VS_STOCK_DETAIL> VS_STOCK_DETAIL { get; set; }
public virtual DbSet<TM_CQBMPT_PART_RELATION> TM_CQBMPT_PART_RELATION { get; set; }
public virtual DbSet<TM_CQBMPT_SCAN_LOG> TM_CQBMPT_SCAN_LOG { get; set; }
public virtual DbSet<TM_CQBMPT_INJECTION_RAW_TANK> TM_CQBMPT_INJECTION_RAW_TANK { get; set; }
public virtual DbSet<TM_CQBMPT_INJECTION_MACHINE> TM_CQBMPT_INJECTION_MACHINE { get; set; }
public virtual DbSet<TM_CQBMPT_INJECTION_REPORT> TM_CQBMPT_INJECTION_REPORT { get; set; }
public virtual DbSet<TM_CQBMPT_TRACEBACK> TM_CQBMPT_TRACEBACK { get; set; }
public virtual DbSet<TM_CQBMPT_PAINT_FAILEDREASON> TM_CQBMPT_PAINT_FAILEDREASON { get; set; }
public virtual DbSet<TM_CQBMPT_PRODUCE_PLAN> TM_CQBMPT_PRODUCE_PLAN { get; set; }
//public virtual DbSet<TM_CQBMPT_RECEIVE_DETAIL> TM_CQBMPT_RECEIVE_DETAIL { get; set; }
public virtual DbSet<TM_CQBMPT_AQLSTANDARD> TM_CQBMPT_AQLSTANDARD { get; set; }
public virtual DbSet<TM_TJANTOLIN_PRODUCE_PLAN> TM_TJANTOLIN_PRODUCE_PLAN { get; set; }
public virtual DbSet<TM_TJANTOLIN_MATERIAL_INIT> TM_TJANTOLIN_MATERIAL_INIT { get; set; }
public virtual DbSet<TM_TJANTOLIN_ASK> TM_TJANTOLIN_ASK { get; set; }
public virtual DbSet<TM_TJANTOLIN_PICK> TM_TJANTOLIN_PICK { get; set; }
public virtual DbSet<TS_VIN_STOCK> TS_VIN_STOCK { get; set; }
public virtual DbSet<TS_STOCK_FREEZE> TS_STOCK_FREEZE { get; set; }
public virtual DbSet<TS_TRACEBACK> TS_TRACEBACK { get; set; }
public virtual DbSet<TS_TRACEBACK_MATERIAL> TS_TRACEBACK_MATERIAL { get; set; }
public virtual DbSet<TS_UNI_API> TS_UNI_API { get; set; }
public virtual DbSet<TS_UNI_API_HIS> TS_UNI_API_HIS { get; set; }
public virtual DbSet<TS_UNKNOW_CUSTPART> TS_UNKNOW_CUSTPART { get; set; }
public virtual DbSet<TS_VIN> TS_VIN { get; set; }
public virtual DbSet<TS_VIN_HIS> TS_VIN_HIS { get; set; }
public virtual DbSet<TS_VIN_PART> TS_VIN_PART { get; set; }
public virtual DbSet<TS_VIN_PART_MOVE> TS_VIN_PART_MOVE { get; set; }
public virtual DbSet<EDI_ASN_DETAIL> EDI_ASN_DETAIL { get; set; }
public virtual DbSet<TT_CONTAINER_TYPE> TT_CONTAINER_TYPE { get; set; }
public virtual DbSet<TT_CURRENCY> TT_CURRENCY { get; set; }
public virtual DbSet<TT_FAIL_TYPE> TT_FAIL_TYPE { get; set; }
public virtual DbSet<TT_PROJECT> TT_PROJECT { get; set; }
public virtual DbSet<TT_SHIFT> TT_SHIFT { get; set; }
public virtual DbSet<TT_PART_GROUP> TT_PART_GROUP { get; set; }
public virtual DbSet<TA_OTHER_INOUT_REASON> TA_OTHER_INOUT_REASON { get; set; }
public virtual DbSet<TT_UNIT> TT_UNIT { get; set; }
public virtual DbSet<TB_EQPT_LOAD> TB_EQPT_LOAD { get; set; }
public virtual DbSet<TB_OM_PLAN> TB_OM_PLAN { get; set; }
public virtual DbSet<TA_PARTGROUP_INSPECTER> TA_PARTGROUP_INSPECTER { get; set; }
// public virtual DbSet<VB_INSPECT> VB_INSPECT { get; set; }
// public virtual DbSet<VB_STOCK_MOVE> VB_STOCK_MOVE { get; set; }
// public virtual DbSet<VIEW_ASN> VIEW_ASN { get; set; }
// public virtual DbSet<VIEW_ASN_DETAIL> VIEW_ASN_DETAIL { get; set; }
// public virtual DbSet<VIEW_BASEDATA_LOG> VIEW_BASEDATA_LOG { get; set; }
// public virtual DbSet<VIEW_BILL> VIEW_BILL { get; set; }
// public virtual DbSet<VIEW_BILL_LOG> VIEW_BILL_LOG { get; set; }
public virtual DbSet<VIEW_CalOverdue_DAYS> VIEW_CalOverdue_DAYS { get; set; }
// public virtual DbSet<VIEW_DELIVER_PLAN> VIEW_DELIVER_PLAN { get; set; }
// public virtual DbSet<VIEW_EQPT_LOAD> VIEW_EQPT_LOAD { get; set; }
// public virtual DbSet<VIEW_INSPECT> VIEW_INSPECT { get; set; }
// public virtual DbSet<VIEW_INTERFACE> VIEW_INTERFACE { get; set; }
// public virtual DbSet<VIEW_INTERFACE_HIS> VIEW_INTERFACE_HIS { get; set; }
// public virtual DbSet<VIEW_MATERIAL_ASK> VIEW_MATERIAL_ASK { get; set; }
// public virtual DbSet<VIEW_MATERIAL_BACK> VIEW_MATERIAL_BACK { get; set; }
// public virtual DbSet<VIEW_MATERIAL_RECEIVE> VIEW_MATERIAL_RECEIVE { get; set; }
// public virtual DbSet<VIEW_MATERIAL_RETURN> VIEW_MATERIAL_RETURN { get; set; }
// public virtual DbSet<VIEW_NOTIFY> VIEW_NOTIFY { get; set; }
// public virtual DbSet<VIEW_OM_PLAN> VIEW_OM_PLAN { get; set; }
// public virtual DbSet<VIEW_OPER_LOG> VIEW_OPER_LOG { get; set; }
// public virtual DbSet<VIEW_OTHER_INOUT> VIEW_OTHER_INOUT { get; set; }
// public virtual DbSet<VIEW_PACK_UNPACK> VIEW_PACK_UNPACK { get; set; }
// public virtual DbSet<VIEW_PICK_FACT> VIEW_PICK_FACT { get; set; }
// public virtual DbSet<VIEW_PICK_PLAN> VIEW_PICK_PLAN { get; set; }
// public virtual DbSet<VIEW_PO> VIEW_PO { get; set; }
// public virtual DbSet<VIEW_PO_DETAIL> VIEW_PO_DETAIL { get; set; }
// public virtual DbSet<VIEW_PRODUCE_PLAN> VIEW_PRODUCE_PLAN { get; set; }
// public virtual DbSet<VIEW_PRODUCT_RECEIVE> VIEW_PRODUCT_RECEIVE { get; set; }
// public virtual DbSet<VIEW_PRODUCT_REPAIR> VIEW_PRODUCT_REPAIR { get; set; }
// public virtual DbSet<VIEW_PRODUCT_RETURN> VIEW_PRODUCT_RETURN { get; set; }
// public virtual DbSet<VIEW_PRODUCT_SELL> VIEW_PRODUCT_SELL { get; set; }
// public virtual DbSet<VIEW_SO> VIEW_SO { get; set; }
// public virtual DbSet<VIEW_SO_DETAIL> VIEW_SO_DETAIL { get; set; }
// public virtual DbSet<VIEW_SORT_BILL> VIEW_SORT_BILL { get; set; }
// public virtual DbSet<VIEW_SORT_DETAIL> VIEW_SORT_DETAIL { get; set; }
// public virtual DbSet<VIEW_SEQ_DETAIL> VIEW_SEQ_DETAIL { get; set; }
// public virtual DbSet<VIEW_STOCK> VIEW_STOCK { get; set; }
// public virtual DbSet<VIEW_STOCK_DETAIL> VIEW_STOCK_DETAIL { get; set; }
// public virtual DbSet<VIEW_STOCK_FREEZE> VIEW_STOCK_FREEZE { get; set; }
public virtual DbSet<VIEW_STOCK_GROUP> VIEW_STOCK_GROUP { get; set; }
// public virtual DbSet<VIEW_STOCK_MOVE> VIEW_STOCK_MOVE { get; set; }
public virtual DbSet<VIEW_STOCKDETAIL_DAYS> VIEW_STOCKDETAIL_DAYS { get; set; }
// public virtual DbSet<VIEW_STOCK_DETAIL_SUM> VIEW_STOCK_DETAIL_SUM { get; set; }
// public virtual DbSet<VIEW_STORE_WHSE> VIEW_STORE_WHSE { get; set; }
// public virtual DbSet<VIEW_TRANSACTION> VIEW_TRANSACTION { get; set; }
public virtual DbSet<VS_STOCK> VS_STOCK { get; set; }
public virtual DbSet<VIEW_DELIVER_PICK_SUM> VIEW_DELIVER_PICK_SUM { get; set; }
public virtual DbSet<TS_LINE_ROTATE> TS_LINE_ROTATE { get; set; }
public virtual DbSet<VS_STOCK_CONVERSION> VS_STOCK_CONVERSION { get; set; }
public virtual DbSet<TS_PART_WHSE_STOCK> TS_PART_WHSE_STOCK { get; set; }
public virtual DbSet<VIEW_CQWKSAFEQTY> VIEW_CQWKSAFEQTY { get; set; }
protected override void OnModelCreating(DbModelBuilder modelBuilder)
{
modelBuilder.Conventions.Add(new DecimalPrecisionAttributeConvention());
base.OnModelCreating(modelBuilder);
modelBuilder.Entity<TA_BILLTYPE>()
.Property(e => e.Sep)
.IsUnicode(false);
modelBuilder.Entity<TA_BOM>()
.Property(e => e.Qty)
.HasPrecision(19, 4);
modelBuilder.Entity<TA_CUST_BOM>()
.Property(e => e.Qty)
.HasPrecision(19, 4);
modelBuilder.Entity<TA_CUST_PART>()
.Property(e => e.CustPackQty)
.HasPrecision(18, 5);
modelBuilder.Entity<TA_CUST_PART>()
.Property(e => e.CustPalletCapacity)
.HasPrecision(19, 4);
modelBuilder.Entity<TA_ERP_STANDARD_COST>()
.Property(e => e.StandardCost)
.HasPrecision(18, 5);
modelBuilder.Entity<TA_PART>()
.Property(e => e.State)
.IsUnicode(false);
modelBuilder.Entity<TA_PART>()
.Property(e => e.MaxQty)
.HasPrecision(19, 4);
modelBuilder.Entity<TA_PART>()
.Property(e => e.MinQty)
.HasPrecision(19, 4);
modelBuilder.Entity<TA_PART>()
.Property(e => e.SafeQty)
.HasPrecision(19, 4);
modelBuilder.Entity<TA_PART>()
.Property(e => e.ContainerQty)
.HasPrecision(19, 4);
modelBuilder.Entity<TA_PART>()
.Property(e => e.StockPackQty)
.HasPrecision(19, 4);
modelBuilder.Entity<TA_PART>()
.Property(e => e.LinesidePackQty)
.HasPrecision(19, 4);
modelBuilder.Entity<TA_PART>()
.Property(e => e.SamplePercent)
.HasPrecision(19, 4);
modelBuilder.Entity<TA_PART>()
.Property(e => e.SingleWeight)
.HasPrecision(19, 4);
modelBuilder.Entity<TA_PART_UNIT_CONVERSION>()
.Property(e => e.Conversion)
.HasPrecision(19, 4);
// modelBuilder.Entity<TA_PAYMENT_DAY>()
// .Property(e => e.BillYear)
// .IsUnicode(false);
//
// modelBuilder.Entity<TA_PAYMENT_DAY>()
// .Property(e => e.BillMonth)
// .IsUnicode(false);
//
// modelBuilder.Entity<TA_PAYMENT_DAY>()
// .Property(e => e.BillDay)
// .IsUnicode(false);
//
// modelBuilder.Entity<TA_PAYMENT_DAY>()
// .Property(e => e.BillHour)
// .IsUnicode(false);
modelBuilder.Entity<TA_PURCHASE_PRICE>()
.Property(e => e.Price)
.HasPrecision(19, 4);
modelBuilder.Entity<TA_SALE_PRICE>()
.Property(e => e.Price)
.HasPrecision(19, 4);
modelBuilder.Entity<TA_STORE_LOCATION>()
.Property(e => e.StoredPercent)
.HasPrecision(19, 4);
modelBuilder.Entity<TA_VEND_PART>()
.Property(e => e.VendPackQty)
.HasPrecision(18, 5);
modelBuilder.Entity<TA_VENDER>()
.Property(e => e.VendAbbCode)
.IsUnicode(false);
modelBuilder.Entity<TB_DELIVER_ASK>()
.Property(e => e.Qty)
.HasPrecision(19, 4);
modelBuilder.Entity<TB_DETAIL>()
.Property(e => e.Qty)
.HasPrecision(19, 4);
modelBuilder.Entity<TB_INSPECT>()
.Property(e => e.ReceiveQty)
.HasPrecision(19, 4);
modelBuilder.Entity<TB_INSPECT>()
.Property(e => e.InspQty)
.HasPrecision(19, 4);
modelBuilder.Entity<TB_INSPECT>()
.Property(e => e.SampleQty)
.HasPrecision(19, 4);
modelBuilder.Entity<TB_INSPECT>()
.Property(e => e.PassQty)
.HasPrecision(19, 4);
modelBuilder.Entity<TB_INSPECT>()
.Property(e => e.FailQty)
.HasPrecision(19, 4);
modelBuilder.Entity<TB_INSPECT>()
.Property(e => e.CrackQty)
.HasPrecision(19, 4);
modelBuilder.Entity<TB_INSPECT_FAIL>()
.Property(e => e.FailQty)
.HasPrecision(19, 4);
modelBuilder.Entity<TB_CHECK_DETAIL>()
.Property(e => e.BookQty)
.HasPrecision(19, 4);
modelBuilder.Entity<TB_CHECK_DETAIL>()
.Property(e => e.CheckQty)
.HasPrecision(19, 4);
modelBuilder.Entity<TB_CHECK_DETAIL>()
.Property(e => e.ReCheckQty)
.HasPrecision(19, 4);
modelBuilder.Entity<TB_MATERIAL_ASK>()
.Property(e => e.Qty)
.HasPrecision(19, 4);
modelBuilder.Entity<TB_MATERIAL_RECEIVE>()
.Property(e => e.Qty)
.HasPrecision(19, 4);
modelBuilder.Entity<TB_MATERIAL_RETURN>()
.Property(e => e.Qty)
.HasPrecision(19, 4);
modelBuilder.Entity<TB_OTHER_INOUT>()
.Property(e => e.Qty)
.HasPrecision(19, 4);
modelBuilder.Entity<TB_PACK_UNPACK>()
.Property(e => e.Qty)
.HasPrecision(19, 4);
modelBuilder.Entity<TB_PICK_FACT>()
.Property(e => e.Qty)
.HasPrecision(19, 4);
modelBuilder.Entity<TB_PICK_PLAN>()
.Property(e => e.Qty)
.HasPrecision(19, 4);
modelBuilder.Entity<TB_PRODUCE_PLAN>()
.Property(e => e.PlanQty)
.HasPrecision(19, 4);
modelBuilder.Entity<TB_PRODUCE_PLAN>()
.Property(e => e.OpenQty)
.HasPrecision(19, 4);
modelBuilder.Entity<TB_PRODUCE_PLAN>()
.Property(e => e.ClosedQty)
.HasPrecision(19, 4);
modelBuilder.Entity<TB_PRODUCT_RECEIVE>()
.Property(e => e.Qty)
.HasPrecision(19, 4);
modelBuilder.Entity<TB_PRODUCT_REPAIR>()
.Property(e => e.Qty)
.HasPrecision(19, 4);
modelBuilder.Entity<TB_PRODUCT_SELL>()
.Property(e => e.Qty)
.HasPrecision(19, 4);
modelBuilder.Entity<TB_STOCK_MOVE>()
.Property(e => e.Qty)
.HasPrecision(19, 4);
modelBuilder.Entity<TF_ASN_DETAIL>()
.Property(e => e.BillQty)
.HasPrecision(19, 4);
modelBuilder.Entity<TF_ASN_DETAIL>()
.Property(e => e.ClosedQty)
.HasPrecision(19, 4);
modelBuilder.Entity<TF_ASN_DETAIL>()
.Property(e => e.Price)
.HasPrecision(19, 4);
modelBuilder.Entity<TF_PO_DETAIL>()
.Property(e => e.BillQty)
.HasPrecision(19, 4);
modelBuilder.Entity<TF_PO_DETAIL>()
.Property(e => e.ClosedQty)
.HasPrecision(19, 4);
modelBuilder.Entity<TF_PO_DETAIL>()
.Property(e => e.PackQty)
.HasPrecision(19, 4);
modelBuilder.Entity<TF_PO_DETAIL>()
.Property(e => e.Price)
.HasPrecision(19, 4);
modelBuilder.Entity<TF_SO_DETAIL>()
.Property(e => e.BillQty)
.HasPrecision(19, 4);
modelBuilder.Entity<TF_SO_DETAIL>()
.Property(e => e.ClosedQty)
.HasPrecision(19, 4);
modelBuilder.Entity<TF_SO_DETAIL>()
.Property(e => e.Price)
.HasPrecision(19, 4);
modelBuilder.Entity<TL_BASEDATA>()
.Property(e => e.LogType)
.IsUnicode(false);
modelBuilder.Entity<TL_BASEDATA>()
.Property(e => e.DataType)
.IsUnicode(false);
modelBuilder.Entity<TL_OPER>()
.Property(e => e.LogType)
.IsUnicode(false);
modelBuilder.Entity<TL_TRANSACTION>()
.Property(e => e.Qty)
.HasPrecision(19, 4);
modelBuilder.Entity<TR_BALANCE_COMPARE_PART>()
.Property(e => e.SendPrice)
.HasPrecision(19, 4);
modelBuilder.Entity<TR_BALANCE_COMPARE_PART>()
.Property(e => e.BalancePrice)
.HasPrecision(19, 4);
modelBuilder.Entity<TR_BALANCE_COMPARE_PART>()
.Property(e => e.DiffPrice)
.HasPrecision(19, 4);
modelBuilder.Entity<TR_BALANCE_COMPARE_PART>()
.Property(e => e.SendQty)
.HasPrecision(19, 4);
modelBuilder.Entity<TR_BALANCE_COMPARE_PART>()
.Property(e => e.BalanceQty)
.HasPrecision(19, 4);
modelBuilder.Entity<TR_BALANCE_COMPARE_PART>()
.Property(e => e.DiffQty)
.HasPrecision(19, 4);
modelBuilder.Entity<TR_BALANCE_COMPARE_PART>()
.Property(e => e.SendAmount)
.HasPrecision(19, 4);
modelBuilder.Entity<TR_BALANCE_COMPARE_PART>()
.Property(e => e.BalanceAmount)
.HasPrecision(19, 4);
modelBuilder.Entity<TR_BALANCE_COMPARE_PART>()
.Property(e => e.DiffAmount)
.HasPrecision(19, 4);
modelBuilder.Entity<TR_BALANCE_COMPARE_VIN>()
.Property(e => e.SendQty)
.HasPrecision(19, 4);
modelBuilder.Entity<TR_BALANCE_COMPARE_VIN>()
.Property(e => e.BalanceQty)
.HasPrecision(19, 4);
modelBuilder.Entity<TR_BALANCE_COMPARE_VIN>()
.Property(e => e.DiffQty)
.HasPrecision(19, 4);
/* modelBuilder.Entity<TS_BARCODE>()
.Property(e => e.BarCode)
.IsUnicode(false);
modelBuilder.Entity<TS_BARCODE>()
.Property(e => e.FullBarCode)
.IsUnicode(false);
modelBuilder.Entity<TS_BARCODE>()
.Property(e => e.PartCode)
.IsUnicode(false);
modelBuilder.Entity<TS_BARCODE>()
.Property(e => e.VendPartCode)
.IsUnicode(false);
modelBuilder.Entity<TS_BARCODE>()
.Property(e => e.CustPartCode)
.IsUnicode(false);
modelBuilder.Entity<TS_BARCODE>()
.Property(e => e.Batch)
.IsUnicode(false);
modelBuilder.Entity<TS_BARCODE>()
.Property(e => e.SerialNum)
.IsUnicode(false);
modelBuilder.Entity<TS_BARCODE>()
.Property(e => e.Qty)
.HasPrecision(19, 4);
modelBuilder.Entity<TS_BARCODE>()
.Property(e => e.EnumPartKind)
.IsUnicode(false);
modelBuilder.Entity<TS_BARCODE>()
.Property(e => e.BillNum)
.IsUnicode(false);
modelBuilder.Entity<TS_BARCODE>()
.Property(e => e.VendId)
.IsUnicode(false);
modelBuilder.Entity<TS_BARCODE>()
.Property(e => e.EqptCode)
.IsUnicode(false);
modelBuilder.Entity<TS_BARCODE>()
.Property(e => e.EqptType)
.IsUnicode(false);
modelBuilder.Entity<TS_BARCODE>()
.Property(e => e.UpdateQty)
.HasPrecision(19, 4);
modelBuilder.Entity<TS_EQUIPMENT>()
.Property(e => e.EqptCode)
.IsUnicode(false);
*/
modelBuilder.Entity<TS_EQUIPMENT_BARCODE>()
.Property(e => e.BarCode)
.IsUnicode(false);
modelBuilder.Entity<TS_EQUIPMENT_BARCODE>()
.Property(e => e.FullBarCode)
.IsUnicode(false);
modelBuilder.Entity<TS_EQUIPMENT_BARCODE>()
.Property(e => e.PartCode)
.IsUnicode(false);
modelBuilder.Entity<TS_EQUIPMENT_BARCODE>()
.Property(e => e.VendPartCode)
.IsUnicode(false);
modelBuilder.Entity<TS_EQUIPMENT_BARCODE>()
.Property(e => e.CustPartCode)
.IsUnicode(false);
modelBuilder.Entity<TS_EQUIPMENT_BARCODE>()
.Property(e => e.Batch)
.IsUnicode(false);
modelBuilder.Entity<TS_EQUIPMENT_BARCODE>()
.Property(e => e.SerialNum)
.IsUnicode(false);
modelBuilder.Entity<TS_EQUIPMENT_BARCODE>()
.Property(e => e.Qty)
.HasPrecision(19, 4);
modelBuilder.Entity<TS_EQUIPMENT_BARCODE>()
.Property(e => e.PartKind)
.IsUnicode(false);
modelBuilder.Entity<TS_EQUIPMENT_BARCODE>()
.Property(e => e.BillNum)
.IsUnicode(false);
modelBuilder.Entity<TS_EQUIPMENT_BARCODE>()
.Property(e => e.VendId)
.IsUnicode(false);
modelBuilder.Entity<TS_EQUIPMENT_BARCODE>()
.Property(e => e.EqptCode)
.IsUnicode(false);
modelBuilder.Entity<TS_EQUIPMENT_BARCODE>()
.Property(e => e.EqptType)
.IsUnicode(false);
modelBuilder.Entity<TS_EQUIPMENT_BARCODE>()
.Property(e => e.UpdateQty)
.HasPrecision(19, 4);
modelBuilder.Entity<TS_EQUIPMENT_BARCODE>()
.Property(e => e.EachWeight)
.HasPrecision(19, 4);
modelBuilder.Entity<TS_EQUIPMENT_BARCODE>()
.Property(e => e.BinSize)
.IsUnicode(false);
modelBuilder.Entity<TS_ERP_STOCK>()
.Property(e => e.Qty)
.HasPrecision(19, 4);
modelBuilder.Entity<TM_CQBMPT_AQLSTANDARD>()
.Property(e => e.AQL)
.HasPrecision(19, 4);
/* modelBuilder.Entity<TS_INTERFACE>()
.Property(e => e.BillNum)
.IsUnicode(false);
modelBuilder.Entity<TS_INTERFACE>()
.Property(e => e.EnumBillType)
.IsUnicode(false);
modelBuilder.Entity<TS_INTERFACE>()
.Property(e => e.p01)
.IsUnicode(false);
modelBuilder.Entity<TS_INTERFACE>()
.Property(e => e.p02)
.IsUnicode(false);
modelBuilder.Entity<TS_INTERFACE>()
.Property(e => e.p03)
.IsUnicode(false);
modelBuilder.Entity<TS_INTERFACE>()
.Property(e => e.p04)
.IsUnicode(false);
modelBuilder.Entity<TS_INTERFACE>()
.Property(e => e.p05)
.IsUnicode(false);
modelBuilder.Entity<TS_INTERFACE>()
.Property(e => e.p06)
.IsUnicode(false);
modelBuilder.Entity<TS_INTERFACE>()
.Property(e => e.p07)
.IsUnicode(false);
modelBuilder.Entity<TS_INTERFACE>()
.Property(e => e.p08)
.IsUnicode(false);
modelBuilder.Entity<TS_INTERFACE>()
.Property(e => e.p09)
.IsUnicode(false);
modelBuilder.Entity<TS_INTERFACE>()
.Property(e => e.p10)
.IsUnicode(false);
modelBuilder.Entity<TS_INTERFACE>()
.Property(e => e.p11)
.IsUnicode(false);
modelBuilder.Entity<TS_INTERFACE>()
.Property(e => e.p12)
.IsUnicode(false);
modelBuilder.Entity<TS_INTERFACE>()
.Property(e => e.p13)
.IsUnicode(false);
modelBuilder.Entity<TS_INTERFACE>()
.Property(e => e.p14)
.IsUnicode(false);
modelBuilder.Entity<TS_INTERFACE>()
.Property(e => e.p15)
.IsUnicode(false);
modelBuilder.Entity<TS_INTERFACE>()
.Property(e => e.p16)
.IsUnicode(false);
modelBuilder.Entity<TS_INTERFACE>()
.Property(e => e.p17)
.IsUnicode(false);
modelBuilder.Entity<TS_INTERFACE>()
.Property(e => e.p18)
.IsUnicode(false);
modelBuilder.Entity<TS_INTERFACE>()
.Property(e => e.p19)
.IsUnicode(false);
modelBuilder.Entity<TS_INTERFACE>()
.Property(e => e.p20)
.IsUnicode(false);
modelBuilder.Entity<TS_INTERFACE_HIS>()
.Property(e => e.BillNum)
.IsUnicode(false);
modelBuilder.Entity<TS_INTERFACE_HIS>()
.Property(e => e.EnumBillType)
.IsUnicode(false);
modelBuilder.Entity<TS_INTERFACE_HIS>()
.Property(e => e.p01)
.IsUnicode(false);
modelBuilder.Entity<TS_INTERFACE_HIS>()
.Property(e => e.p02)
.IsUnicode(false);
modelBuilder.Entity<TS_INTERFACE_HIS>()
.Property(e => e.p03)
.IsUnicode(false);
modelBuilder.Entity<TS_INTERFACE_HIS>()
.Property(e => e.p04)
.IsUnicode(false);
modelBuilder.Entity<TS_INTERFACE_HIS>()
.Property(e => e.p05)
.IsUnicode(false);
modelBuilder.Entity<TS_INTERFACE_HIS>()
.Property(e => e.p06)
.IsUnicode(false);
modelBuilder.Entity<TS_INTERFACE_HIS>()
.Property(e => e.p07)
.IsUnicode(false);
modelBuilder.Entity<TS_INTERFACE_HIS>()
.Property(e => e.p08)
.IsUnicode(false);
modelBuilder.Entity<TS_INTERFACE_HIS>()
.Property(e => e.p09)
.IsUnicode(false);
modelBuilder.Entity<TS_INTERFACE_HIS>()
.Property(e => e.p10)
.IsUnicode(false);
modelBuilder.Entity<TS_INTERFACE_HIS>()
.Property(e => e.p11)
.IsUnicode(false);
modelBuilder.Entity<TS_INTERFACE_HIS>()
.Property(e => e.p12)
.IsUnicode(false);
modelBuilder.Entity<TS_INTERFACE_HIS>()
.Property(e => e.p13)
.IsUnicode(false);
modelBuilder.Entity<TS_INTERFACE_HIS>()
.Property(e => e.p14)
.IsUnicode(false);
modelBuilder.Entity<TS_INTERFACE_HIS>()
.Property(e => e.p15)
.IsUnicode(false);
modelBuilder.Entity<TS_INTERFACE_HIS>()
.Property(e => e.p16)
.IsUnicode(false);
modelBuilder.Entity<TS_INTERFACE_HIS>()
.Property(e => e.p17)
.IsUnicode(false);
modelBuilder.Entity<TS_INTERFACE_HIS>()
.Property(e => e.p18)
.IsUnicode(false);
modelBuilder.Entity<TS_INTERFACE_HIS>()
.Property(e => e.p19)
.IsUnicode(false);
modelBuilder.Entity<TS_INTERFACE_HIS>()
.Property(e => e.p20)
.IsUnicode(false);
*/
// modelBuilder.Entity<TS_STOCK_DETAIL>()
// .Property(e => e.Qty)
// .HasPrecision(19, 4);
modelBuilder.Entity<TS_STOCK_DETAIL>()
.Property(e => e.Amount)
.HasPrecision(19, 4);
modelBuilder.Entity<TS_STOCK_DETAIL>()
.Property(e => e.UpdateQty)
.HasPrecision(19, 4);
modelBuilder.Entity<TS_STOCK_FREEZE>()
.Property(e => e.Qty)
.HasPrecision(19, 4);
modelBuilder.Entity<TS_TRACEBACK>()
.Property(e => e.Qty)
.HasPrecision(19, 4);
modelBuilder.Entity<TS_TRACEBACK_MATERIAL>()
.Property(e => e.Qty)
.HasPrecision(19, 4);
modelBuilder.Entity<TS_TRACEBACK_MATERIAL>()
.Property(e => e.SubQty)
.HasPrecision(19, 4);
modelBuilder.Entity<TS_UNI_API>()
.Property(e => e.FromErpLoc)
.IsUnicode(false);
modelBuilder.Entity<TS_UNI_API>()
.Property(e => e.ToErpLoc)
.IsUnicode(false);
modelBuilder.Entity<TS_UNI_API>()
.Property(e => e.Qty)
.HasPrecision(18, 5);
modelBuilder.Entity<TS_UNI_API_HIS>()
.Property(e => e.FromErpLoc)
.IsUnicode(false);
modelBuilder.Entity<TS_UNI_API_HIS>()
.Property(e => e.ToErpLoc)
.IsUnicode(false);
modelBuilder.Entity<TS_UNI_API_HIS>()
.Property(e => e.Qty)
.HasPrecision(18, 5);
modelBuilder.Entity<TS_VIN_PART>()
.Property(e => e.Qty)
.HasPrecision(19, 4);
modelBuilder.Entity<TS_VIN_PART>()
.Property(e => e.UnitPrice)
.HasPrecision(19, 4);
modelBuilder.Entity<TS_VIN_PART>()
.Property(e => e.Amount)
.HasPrecision(19, 4);
modelBuilder.Entity<TS_VIN_PART_MOVE>()
.Property(e => e.Qty)
.HasPrecision(19, 4);
modelBuilder.Entity<TB_EQPT_LOAD>()
.Property(e => e.Qty)
.HasPrecision(19, 4);
modelBuilder.Entity<TB_OM_PLAN>()
.Property(e => e.PlanQty)
.HasPrecision(19, 4);
modelBuilder.Entity<TB_OM_PLAN>()
.Property(e => e.OpenQty)
.HasPrecision(19, 4);
modelBuilder.Entity<TB_OM_PLAN>()
.Property(e => e.ClosedQty)
.HasPrecision(19, 4);
// modelBuilder.Entity<VB_INSPECT>()
// .Property(e => e.ReceiveQty)
// .HasPrecision(19, 4);
//
// modelBuilder.Entity<VB_INSPECT>()
// .Property(e => e.InspQty)
// .HasPrecision(19, 4);
//
// modelBuilder.Entity<VB_INSPECT>()
// .Property(e => e.SampleQty)
// .HasPrecision(19, 4);
//
// modelBuilder.Entity<VB_INSPECT>()
// .Property(e => e.PassQty)
// .HasPrecision(19, 4);
//
// modelBuilder.Entity<VB_INSPECT>()
// .Property(e => e.FailQty)
// .HasPrecision(19, 4);
//
// modelBuilder.Entity<VB_INSPECT>()
// .Property(e => e.CrackQty)
// .HasPrecision(19, 4);
modelBuilder.Entity<VIEW_CalOverdue_DAYS>()
.Property(e => e.)
.HasPrecision(19, 4);
// modelBuilder.Entity<VIEW_OM_PLAN>()
// .Property(e => e.计划数)
// .HasPrecision(19, 4);
//
// modelBuilder.Entity<VIEW_OM_PLAN>()
// .Property(e => e.未完成数)
// .HasPrecision(19, 4);
//
// modelBuilder.Entity<VIEW_OM_PLAN>()
// .Property(e => e.完成数)
// .HasPrecision(19, 4);
modelBuilder.Entity<VIEW_STOCK_GROUP>()
.Property(e => e.)
.HasPrecision(19, 4);
modelBuilder.Entity<VIEW_STOCK_GROUP>()
.Property(e => e.)
.HasPrecision(19, 4);
modelBuilder.Entity<VIEW_STOCK_GROUP>()
.Property(e => e.)
.HasPrecision(19, 4);
modelBuilder.Entity<VIEW_STOCK_GROUP>()
.Property(e => e.)
.HasPrecision(19, 4);
modelBuilder.Entity<VIEW_STOCKDETAIL_DAYS>()
.Property(e => e.)
.HasPrecision(19, 4);
// modelBuilder.Entity<VIEW_TRANSACTION>()
// .Property(e => e.数量)
// .HasPrecision(19, 4);
modelBuilder.Entity<VS_STOCK>()
.Property(e => e.Qty)
.HasPrecision(19, 4);
modelBuilder.Entity<VS_STOCK>()
.Property(e => e.MaxQty)
.HasPrecision(19, 4);
modelBuilder.Entity<VS_STOCK>()
.Property(e => e.MinQty)
.HasPrecision(19, 4);
modelBuilder.Entity<VS_STOCK>()
.Property(e => e.SafeQty)
.HasPrecision(19, 4);
modelBuilder.Entity<VS_STOCK_CONVERSION>()
.Property(e => e.Qty)
.HasPrecision(19, 4);
modelBuilder.Entity<VS_STOCK_CONVERSION>()
.Property(e => e.Qty2)
.HasPrecision(19, 4);
modelBuilder.Entity<VS_STOCK_CONVERSION>()
.Property(e => e.Conversion)
.HasPrecision(19, 2);
}
}
}