Exemplo n.º 1
0
 /// <summary>
 /// Build a minimal row from a class (key fields only)
 /// </summary>
 public static void BuildMinimalRow(ref DataRow row, IcamueBase entity)
 {
     row.SetField("cono", entity.cono);
     row.SetField("whse", entity.whse);
     row.SetField("prod", entity.prod);
     row.SetField("buyer", entity.buyer);
     row.SetField("frozentype", entity.frozentype);
     row.SetField("frozenmmyy", entity.frozenmmyy);
     row.SetField("activefl", entity.activefl);
     row.SetField("exctype", entity.exctype);
     row.SetField("icamueRowID", entity.rowID.ToByteArray());
 }
Exemplo n.º 2
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromIcamueBase(ref DataRow row, IcamueBase entity)
 {
     row.SetField("cono", entity.cono);
     row.SetField("whse", entity.whse);
     row.SetField("prod", entity.prod);
     row.SetField("buyer", entity.buyer);
     row.SetField("frozentype", entity.frozentype);
     row.SetField("frozenmmyy", entity.frozenmmyy);
     row.SetField("activefl", entity.activefl);
     row.SetField("exctype", entity.exctype);
     row.SetField("excdesc", entity.excdesc);
     row.SetField("excmsg", entity.excmsg);
     row.SetField("excde1", entity.excde1);
     row.SetField("excde2", entity.excde2);
     row.SetField("excde3", entity.excde3);
     row.SetField("excde4", entity.excde4);
     row.SetField("excde5", entity.excde5);
     row.SetField("excde6", entity.excde6);
     row.SetField("excde7", entity.excde7);
     row.SetField("excde8", entity.excde8);
     row.SetField("excde9", entity.excde9);
     row.SetField("excde10", entity.excde10);
     row.SetField("exci1", entity.exci1);
     row.SetField("exci2", entity.exci2);
     row.SetField("exci3", entity.exci3);
     row.SetField("exci4", entity.exci4);
     row.SetField("exci5", entity.exci5);
     row.SetField("exci6", entity.exci6);
     row.SetField("excda1", entity.excda1);
     row.SetField("excda2", entity.excda2);
     row.SetField("excda3", entity.excda3);
     row.SetField("excda4", entity.excda4);
     row.SetField("excda5", entity.excda5);
     row.SetField("excda6", entity.excda6);
     row.SetField("excc1", entity.excc1);
     row.SetField("excc2", entity.excc2);
     row.SetField("excc3", entity.excc3);
     row.SetField("excc4", entity.excc4);
     row.SetField("excc5", entity.excc5);
     row.SetField("excc6", entity.excc6);
     row.SetField("transdt", entity.transdt);
     row.SetField("transtm", entity.transtm);
     row.SetField("operinit", entity.operinit);
     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("excc7", entity.excc7);
     row.SetField("excc8", entity.excc8);
     row.SetField("excc9", entity.excc9);
     row.SetField("excc10", entity.excc10);
     row.SetField("excc11", entity.excc11);
     row.SetField("excc12", entity.excc12);
     row.SetField("exci7", entity.exci7);
     row.SetField("exci8", entity.exci8);
     row.SetField("exci9", entity.exci9);
     row.SetField("exci10", entity.exci10);
     row.SetField("icamueRowID", entity.rowID.ToByteArray());
 }