Esempio n. 1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromWterahBase(ref DataRow row, WterahBase entity)
 {
     row.SetField("cono", entity.cono);
     row.SetField("transdt", entity.transdt);
     row.SetField("transtm", entity.transtm);
     row.SetField("operinit", entity.operinit);
     row.SetField("reportno", entity.reportno);
     row.SetField("shiptonm", entity.shiptonm);
     row.SetField("shiptoaddr1", entity.shiptoaddr1);
     row.SetField("shiptoaddr2", entity.shiptoaddr2);
     row.SetField("shiptocity", entity.shiptocity);
     row.SetField("shiptost", entity.shiptost);
     row.SetField("shiptozip", entity.shiptozip);
     row.SetField("shipinstr", entity.shipinstr);
     row.SetField("refer", entity.refer);
     row.SetField("duedt", entity.duedt);
     row.SetField("shipviaty", entity.shipviaty);
     row.SetField("ignoreltfl", entity.ignoreltfl);
     row.SetField("totlineamt", entity.totlineamt);
     row.SetField("totweight", entity.totweight);
     row.SetField("totcubes", entity.totcubes);
     row.SetField("totqtyord", entity.totqtyord);
     row.SetField("transtype", entity.transtype);
     row.SetField("oper2", entity.oper2);
     row.SetField("reportnm", entity.reportnm);
     row.SetField("nextlineno", entity.nextlineno);
     row.SetField("cono2", entity.cono2);
     row.SetField("reqshipdt", entity.reqshipdt);
     row.SetField("shipfmwhse", entity.shipfmwhse);
     row.SetField("shiptowhse", entity.shiptowhse);
     row.SetField("wtauth", entity.wtauth);
     row.SetField("addonamt1", entity.addonamt1);
     row.SetField("addonamt2", entity.addonamt2);
     row.SetField("addontype1", entity.addontype1);
     row.SetField("addontype2", entity.addontype2);
     row.SetField("pushfl", entity.pushfl);
     row.SetField("user1", entity.user1);
     row.SetField("user2", entity.user2);
     row.SetField("mergefl", entity.mergefl);
     row.SetField("rushfl", entity.rushfl);
     row.SetField("user3", entity.user3);
     row.SetField("user4", entity.user4);
     row.SetField("user5", entity.user5);
     row.SetField("user6", entity.user6);
     row.SetField("user7", entity.user7);
     row.SetField("user8", entity.user8);
     row.SetField("user9", entity.user9);
     row.SetField("transproc", entity.transproc);
     row.SetField("shiptoaddr3", entity.shiptoaddr3);
     row.SetField("totsuper", entity.totsuper);
     row.SetField("automrgfl", entity.automrgfl);
     row.SetField("reasoncode", entity.reasoncode);
     row.SetField("wterahRowID", entity.rowID.ToByteArray());
 }
Esempio n. 2
0
 /// <summary>
 /// Build a minimal row from a class (key fields only)
 /// </summary>
 public static void BuildMinimalRow(ref DataRow row, WterahBase entity)
 {
     row.SetField("cono", entity.cono);
     row.SetField("reportno", entity.reportno);
     row.SetField("wterahRowID", entity.rowID.ToByteArray());
 }