Example #1
0
 /// <summary>
 /// Build a minimal row from a class (key fields only)
 /// </summary>
 public static void BuildMinimalRow(ref DataRow row, IcsruBase entity)
 {
     row.SetField("cono", entity.cono);
     row.SetField("vendno", entity.vendno);
     row.SetField("prodline", entity.prodline);
     row.SetField("whse", entity.whse);
     row.SetField("usagelevel", entity.usagelevel);
     row.SetField("icsruRowID", entity.rowID.ToByteArray());
 }
Example #2
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromIcsruBase(ref DataRow row, IcsruBase entity)
 {
     row.SetField("cono", entity.cono);
     row.SetField("vendno", entity.vendno);
     row.SetField("prodline", entity.prodline);
     row.SetField("whse", entity.whse);
     row.SetField("usagelevel", entity.usagelevel);
     row.SetField("operinit", entity.operinit);
     row.SetField("transdt", entity.transdt);
     row.SetField("transtm", entity.transtm);
     row.SetField("transproc", entity.transproc);
     row.SetField("costge1", entity.costge1);
     row.SetField("costge2", entity.costge2);
     row.SetField("costge3", entity.costge3);
     row.SetField("costge4", entity.costge4);
     row.SetField("costge5", entity.costge5);
     row.SetField("costge6", entity.costge6);
     row.SetField("costge7", entity.costge7);
     row.SetField("costge8", entity.costge8);
     row.SetField("costge9", entity.costge9);
     row.SetField("costge10", entity.costge10);
     row.SetField("newop1", entity.newop1);
     row.SetField("newop2", entity.newop2);
     row.SetField("newop3", entity.newop3);
     row.SetField("newop4", entity.newop4);
     row.SetField("newop5", entity.newop5);
     row.SetField("newop6", entity.newop6);
     row.SetField("newop7", entity.newop7);
     row.SetField("newop8", entity.newop8);
     row.SetField("newop9", entity.newop9);
     row.SetField("newop10", entity.newop10);
     row.SetField("newlp1", entity.newlp1);
     row.SetField("newlp2", entity.newlp2);
     row.SetField("newlp3", entity.newlp3);
     row.SetField("newlp4", entity.newlp4);
     row.SetField("newlp5", entity.newlp5);
     row.SetField("newlp6", entity.newlp6);
     row.SetField("newlp7", entity.newlp7);
     row.SetField("newlp8", entity.newlp8);
     row.SetField("newlp9", entity.newlp9);
     row.SetField("newlp10", entity.newlp10);
     row.SetField("newqty1", entity.newqty1);
     row.SetField("newqty2", entity.newqty2);
     row.SetField("newqty3", entity.newqty3);
     row.SetField("newqty4", entity.newqty4);
     row.SetField("newqty5", entity.newqty5);
     row.SetField("newqty6", entity.newqty6);
     row.SetField("newqty7", entity.newqty7);
     row.SetField("newqty8", entity.newqty8);
     row.SetField("newqty9", entity.newqty9);
     row.SetField("newqty10", entity.newqty10);
     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("usagerate", entity.usagerate);
     row.SetField("icsruRowID", entity.rowID.ToByteArray());
 }