Esempio n. 1
0
 public void FromCustomObject(SqlConnection con, IntPtr pUdt)
 {
     if (ID != null)
     {
         SqlUdt.SetValue(con, pUdt, "ID", ID.ToSqlValue());
     }
     if (CheckNo != null)
     {
         SqlUdt.SetValue(con, pUdt, "CheckNo", CheckNo.ToSqlValue());
     }
     if (CheckType != null)
     {
         SqlUdt.SetValue(con, pUdt, "CheckType", CheckType.ToSqlValue());
     }
     if (DutyUser != null)
     {
         SqlUdt.SetValue(con, pUdt, "DutyUser", DutyUser.ToSqlValue());
     }
     if (CheckDesc != null)
     {
         SqlUdt.SetValue(con, pUdt, "CheckDesc", CheckDesc.ToSqlValue());
     }
     if (CheckStatus != null)
     {
         SqlUdt.SetValue(con, pUdt, "CheckStatus", CheckStatus.ToSqlValue());
     }
     if (BeginTime != null)
     {
         SqlUdt.SetValue(con, pUdt, "BeginTime", BeginTime.ToSqlValue());
     }
     if (DoneTime != null)
     {
         SqlUdt.SetValue(con, pUdt, "DoneTime", DoneTime.ToSqlValue());
     }
     if (Remarks != null)
     {
         SqlUdt.SetValue(con, pUdt, "Remarks", Remarks.ToSqlValue());
     }
     if (IsDel != null)
     {
         SqlUdt.SetValue(con, pUdt, "IsDel", IsDel.ToSqlValue());
     }
     if (Creater != null)
     {
         SqlUdt.SetValue(con, pUdt, "Creater", Creater.ToSqlValue());
     }
     if (CreateTime != null)
     {
         SqlUdt.SetValue(con, pUdt, "CreateTime", CreateTime.ToSqlValue());
     }
     if (Modifyer != null)
     {
         SqlUdt.SetValue(con, pUdt, "Modifyer", Modifyer.ToSqlValue());
     }
     if (ModifyTime != null)
     {
         SqlUdt.SetValue(con, pUdt, "ModifyTime", ModifyTime.ToSqlValue());
     }
 }
Esempio n. 2
0
 public void FromCustomObject(SqlConnection con, IntPtr pUdt)
 {
     SqlUdt.SetValue(con, pUdt, "ID", ID.ToSqlValue());
     SqlUdt.SetValue(con, pUdt, "CheckID", CheckID.ToSqlValue());
     SqlUdt.SetValue(con, pUdt, "WarehouseNo", WarehouseNo.ToSqlValue());
     SqlUdt.SetValue(con, pUdt, "HouseNo", HouseNo.ToSqlValue());
     SqlUdt.SetValue(con, pUdt, "AreaNo", AreaNo.ToSqlValue());
     SqlUdt.SetValue(con, pUdt, "MaterialNo", MaterialNo.ToSqlValue());
     SqlUdt.SetValue(con, pUdt, "MaterialDesc", MaterialDesc.ToSqlValue());
     SqlUdt.SetValue(con, pUdt, "AccountQty", AccountQty.ToSqlValue());
     SqlUdt.SetValue(con, pUdt, "ScanQty", ScanQty.ToSqlValue());
     SqlUdt.SetValue(con, pUdt, "Status", Status.ToSqlValue());
     SqlUdt.SetValue(con, pUdt, "StockTime", StockTime.ToSqlValue());
     SqlUdt.SetValue(con, pUdt, "Operator", Operator.ToSqlValue());
     SqlUdt.SetValue(con, pUdt, "OperationTime", OperationTime.ToSqlValue());
     SqlUdt.SetValue(con, pUdt, "ProfitLoss", ProfitLoss.ToSqlValue());
     SqlUdt.SetValue(con, pUdt, "DifferenceQty", DifferenceQty.ToSqlValue());
     SqlUdt.SetValue(con, pUdt, "IsDel", IsDel.ToSqlValue());
     SqlUdt.SetValue(con, pUdt, "Creater", Creater.ToSqlValue());
     SqlUdt.SetValue(con, pUdt, "CreateTime", CreateTime.ToSqlValue());
     SqlUdt.SetValue(con, pUdt, "Modifyer", Modifyer.ToSqlValue());
     SqlUdt.SetValue(con, pUdt, "ModifyTime", ModifyTime.ToSqlValue());
 }