Esempio n. 1
0
 public void ToCustomObject(SqlConnection con, IntPtr pUdt)
 {
     ID          = SqlUdt.GetValue(con, pUdt, "ID").ToInt32();
     CheckNo     = SqlUdt.GetValue(con, pUdt, "CheckNo").ToDBString();
     CheckType   = SqlUdt.GetValue(con, pUdt, "CheckType").ToInt32();
     DutyUser    = SqlUdt.GetValue(con, pUdt, "DutyUser").ToDBString();
     CheckDesc   = SqlUdt.GetValue(con, pUdt, "CheckDesc").ToDBString();
     CheckStatus = SqlUdt.GetValue(con, pUdt, "CheckStatus").ToInt32();
     BeginTime   = SqlUdt.GetValue(con, pUdt, "BeginTime").ToDateTimeNull();
     DoneTime    = SqlUdt.GetValue(con, pUdt, "DoneTime").ToDateTimeNull();
     Remarks     = SqlUdt.GetValue(con, pUdt, "Remarks").ToDBString();
     IsDel       = SqlUdt.GetValue(con, pUdt, "ISDEL").ToInt32();
     Creater     = SqlUdt.GetValue(con, pUdt, "CREATER").ToDBString();
     CreateTime  = SqlUdt.GetValue(con, pUdt, "CREATETIME").ToDateTime();
     Modifyer    = SqlUdt.GetValue(con, pUdt, "MODIFYER").ToDBString();
     ModifyTime  = SqlUdt.GetValue(con, pUdt, "MODIFYTIME").ToDateTimeNull();
 }
Esempio n. 2
0
 public void ToCustomObject(SqlConnection con, IntPtr pUdt)
 {
     ID            = SqlUdt.GetValue(con, pUdt, "ID").ToInt32();
     CheckID       = SqlUdt.GetValue(con, pUdt, "CheckID").ToInt32();
     WarehouseNo   = SqlUdt.GetValue(con, pUdt, "WarehouseNo").ToDBString();
     HouseNo       = SqlUdt.GetValue(con, pUdt, "HouseNo").ToDBString();
     AreaNo        = SqlUdt.GetValue(con, pUdt, "AreaNo").ToDBString();
     MaterialNo    = SqlUdt.GetValue(con, pUdt, "MaterialNo").ToDBString();
     MaterialDesc  = SqlUdt.GetValue(con, pUdt, "MaterialDesc").ToDBString();
     AccountQty    = SqlUdt.GetValue(con, pUdt, "AccountQty").ToDecimal();
     ScanQty       = SqlUdt.GetValue(con, pUdt, "ScanQty").ToDecimal();
     Status        = SqlUdt.GetValue(con, pUdt, "Status").ToInt32();
     StockTime     = SqlUdt.GetValue(con, pUdt, "StockTime").ToDateTimeNull();
     Operator      = SqlUdt.GetValue(con, pUdt, "Operator").ToDBString();
     OperationTime = SqlUdt.GetValue(con, pUdt, "OperationTime").ToDateTimeNull();
     ProfitLoss    = SqlUdt.GetValue(con, pUdt, "ProfitLoss").ToInt32();
     DifferenceQty = SqlUdt.GetValue(con, pUdt, "DifferenceQty").ToDecimal();
     IsDel         = SqlUdt.GetValue(con, pUdt, "ISDEL").ToInt32();
     Creater       = SqlUdt.GetValue(con, pUdt, "CREATER").ToDBString();
     CreateTime    = SqlUdt.GetValue(con, pUdt, "CREATETIME").ToDateTime();
     Modifyer      = SqlUdt.GetValue(con, pUdt, "MODIFYER").ToDBString();
     ModifyTime    = SqlUdt.GetValue(con, pUdt, "MODIFYTIME").ToDateTimeNull();
 }