Example #1
0
 /// <summary>
 /// Build a minimal row from a class (key fields only)
 /// </summary>
 public static void BuildMinimalRow(ref DataRow row, PoeleBase entity)
 {
     row.SetField("cono", entity.cono);
     row.SetField("edicd", entity.edicd);
     row.SetField("pono", entity.pono);
     row.SetField("posuf", entity.posuf);
     row.SetField("seqno", entity.seqno);
     row.SetField("lineno", entity.lineno);
     row.SetField("poeleRowID", entity.rowID.ToByteArray());
 }
Example #2
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromPoeleBase(ref DataRow row, PoeleBase entity)
 {
     row.SetField("cono", entity.cono);
     row.SetField("duedtold", entity.duedtold);
     row.SetField("duedtupdfl", entity.duedtupdfl);
     row.SetField("edicd", entity.edicd);
     row.SetField("operinit", entity.operinit);
     row.SetField("pono", entity.pono);
     row.SetField("posuf", entity.posuf);
     row.SetField("seqno", entity.seqno);
     row.SetField("transdt", entity.transdt);
     row.SetField("transtm", entity.transtm);
     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("lineno", entity.lineno);
     row.SetField("priceold", entity.priceold);
     row.SetField("priceupdfl", entity.priceupdfl);
     row.SetField("prodold", entity.prodold);
     row.SetField("produpdfl", entity.produpdfl);
     row.SetField("qtyold", entity.qtyold);
     row.SetField("qtyupdfl", entity.qtyupdfl);
     row.SetField("uomold", entity.uomold);
     row.SetField("uomupdfl", entity.uomupdfl);
     row.SetField("vendno", entity.vendno);
     row.SetField("vendpono", entity.vendpono);
     row.SetField("vendposuf", entity.vendposuf);
     row.SetField("vendlineno", entity.vendlineno);
     row.SetField("vendpriceuom", entity.vendpriceuom);
     row.SetField("asnshipid", entity.asnshipid);
     row.SetField("asnqtyrcv", entity.asnqtyrcv);
     row.SetField("asnuom", entity.asnuom);
     row.SetField("asnprod", entity.asnprod);
     row.SetField("poeiqtyrcv", entity.poeiqtyrcv);
     row.SetField("poeiuom", entity.poeiuom);
     row.SetField("poeireasunav", entity.poeireasunav);
     row.SetField("poeiqtyunav", entity.poeiqtyunav);
     row.SetField("rpt861fl", entity.rpt861fl);
     row.SetField("rpt861dt", entity.rpt861dt);
     row.SetField("transproc", entity.transproc);
     row.SetField("asnpkgid", entity.asnpkgid);
     row.SetField("poeleRowID", entity.rowID.ToByteArray());
 }