Exemple #1
0
 /// <summary>
 /// Build a minimal row from a class (key fields only)
 /// </summary>
 public static void BuildMinimalRow(ref DataRow row, IceamBase entity)
 {
     row.SetField("cono", entity.cono);
     row.SetField("transty", entity.transty);
     row.SetField("orderno", entity.orderno);
     row.SetField("ordersuf", entity.ordersuf);
     row.SetField("lineno", entity.lineno);
     row.SetField("seqno", entity.seqno);
     row.SetField("iceamRowID", entity.rowID.ToByteArray());
 }
Exemple #2
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromIceamBase(ref DataRow row, IceamBase entity)
 {
     row.SetField("cono", entity.cono);
     row.SetField("transty", entity.transty);
     row.SetField("orderno", entity.orderno);
     row.SetField("ordersuf", entity.ordersuf);
     row.SetField("lineno", entity.lineno);
     row.SetField("whse", entity.whse);
     row.SetField("origprod", entity.origprod);
     row.SetField("coreprod", entity.coreprod);
     row.SetField("vendno", entity.vendno);
     row.SetField("custno", entity.custno);
     row.SetField("statusfl", entity.statusfl);
     row.SetField("pfpfl", entity.pfpfl);
     row.SetField("qty", entity.qty);
     row.SetField("qtybank", entity.qtybank);
     row.SetField("qtywarr", entity.qtywarr);
     row.SetField("qtyalloc", entity.qtyalloc);
     row.SetField("intclaimno", entity.intclaimno);
     row.SetField("vendclaimno", entity.vendclaimno);
     row.SetField("repairordno", entity.repairordno);
     row.SetField("repairordsuf", entity.repairordsuf);
     row.SetField("repairlineno", entity.repairlineno);
     row.SetField("corechg", entity.corechg);
     row.SetField("corevalue", entity.corevalue);
     row.SetField("coreduedt", entity.coreduedt);
     row.SetField("invoicedt", entity.invoicedt);
     row.SetField("transdt", entity.transdt);
     row.SetField("transtm", entity.transtm);
     row.SetField("operinit", entity.operinit);
     row.SetField("manadjfl", entity.manadjfl);
     row.SetField("manoper", entity.manoper);
     row.SetField("mandt", entity.mandt);
     row.SetField("mantm", entity.mantm);
     row.SetField("user1", entity.user1);
     row.SetField("user2", entity.user2);
     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("implyqty", entity.implyqty);
     row.SetField("transproc", entity.transproc);
     row.SetField("implylineno", entity.implylineno);
     row.SetField("implyprod", entity.implyprod);
     row.SetField("price", entity.price);
     row.SetField("implyreplineno", entity.implyreplineno);
     row.SetField("seqno", entity.seqno);
     row.SetField("iceamRowID", entity.rowID.ToByteArray());
 }