Пример #1
0
 /// <summary>
 /// Build a minimal row from a class (key fields only)
 /// </summary>
 public static void BuildMinimalRow(ref DataRow row, ComBase entity)
 {
     row.SetField("cono", entity.cono);
     row.SetField("comtype", entity.comtype);
     row.SetField("printfl", entity.printfl);
     row.SetField("orderno", entity.orderno);
     row.SetField("ordersuf", entity.ordersuf);
     row.SetField("lineno", entity.lineno);
     row.SetField("comRowID", entity.rowID.ToByteArray());
 }
Пример #2
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromComBase(ref DataRow row, ComBase entity)
 {
     row.SetField("cono", entity.cono);
     row.SetField("comtype", entity.comtype);
     row.SetField("printfl", entity.printfl);
     row.SetField("printfl2", entity.printfl2);
     row.SetField("noteln1", entity.noteln1);
     row.SetField("noteln2", entity.noteln2);
     row.SetField("noteln3", entity.noteln3);
     row.SetField("noteln4", entity.noteln4);
     row.SetField("noteln5", entity.noteln5);
     row.SetField("noteln6", entity.noteln6);
     row.SetField("noteln7", entity.noteln7);
     row.SetField("noteln8", entity.noteln8);
     row.SetField("noteln9", entity.noteln9);
     row.SetField("noteln10", entity.noteln10);
     row.SetField("noteln11", entity.noteln11);
     row.SetField("noteln12", entity.noteln12);
     row.SetField("noteln13", entity.noteln13);
     row.SetField("noteln14", entity.noteln14);
     row.SetField("noteln15", entity.noteln15);
     row.SetField("noteln16", entity.noteln16);
     row.SetField("transdt", entity.transdt);
     row.SetField("transtm", entity.transtm);
     row.SetField("operinit", entity.operinit);
     row.SetField("orderno", entity.orderno);
     row.SetField("ordersuf", entity.ordersuf);
     row.SetField("lineno", entity.lineno);
     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("transproc", entity.transproc);
     row.SetField("comRowID", entity.rowID.ToByteArray());
 }