Пример #1
0
 /// <summary>
 /// Build a minimal row from a class (key fields only)
 /// </summary>
 public static void BuildMinimalRow(ref DataRow row, IceatBase 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("compseqno", entity.compseqno);
     row.SetField("iceatRowID", entity.rowID.ToByteArray());
 }
Пример #2
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromIceatBase(ref DataRow row, IceatBase 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("whse", entity.whse);
     row.SetField("warrchfl", entity.warrchfl);
     row.SetField("vendno", entity.vendno);
     row.SetField("claimpdfl", entity.claimpdfl);
     row.SetField("claimpddt", entity.claimpddt);
     row.SetField("repairordno", entity.repairordno);
     row.SetField("repairordsuf", entity.repairordsuf);
     row.SetField("repairlineno", entity.repairlineno);
     row.SetField("prod", entity.prod);
     row.SetField("subfl", entity.subfl);
     row.SetField("retorderno", entity.retorderno);
     row.SetField("retordersuf", entity.retordersuf);
     row.SetField("retlineno", entity.retlineno);
     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("snsold", entity.snsold);
     row.SetField("snreturn", entity.snreturn);
     row.SetField("expiredt", entity.expiredt);
     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("transproc", entity.transproc);
     row.SetField("implylineno", entity.implylineno);
     row.SetField("implyprod", entity.implyprod);
     row.SetField("implyreplineno", entity.implyreplineno);
     row.SetField("compseqno", entity.compseqno);
     row.SetField("iceatRowID", entity.rowID.ToByteArray());
 }