Exemple #1
0
 /// <summary>
 /// Build a minimal row from a class (key fields only)
 /// </summary>
 public static void BuildMinimalRow(ref DataRow row, SlehBase entity)
 {
     row.SetField("imptype", entity.imptype);
     row.SetField("slupdtno", entity.slupdtno);
     row.SetField("cono", entity.cono);
     row.SetField("seqno", entity.seqno);
     row.SetField("statustype", entity.statustype);
     row.SetField("slehRowID", entity.rowID.ToByteArray());
 }
Exemple #2
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromSlehBase(ref DataRow row, SlehBase entity)
 {
     row.SetField("amountcr", entity.amountcr);
     row.SetField("amountdr", entity.amountdr);
     row.SetField("imptype", entity.imptype);
     row.SetField("issuedt", entity.issuedt);
     row.SetField("jrnlno", entity.jrnlno);
     row.SetField("noadded", entity.noadded);
     row.SetField("nochanged", entity.nochanged);
     row.SetField("nodecreases", entity.nodecreases);
     row.SetField("nodeleted", entity.nodeleted);
     row.SetField("nodiscontinued", entity.nodiscontinued);
     row.SetField("noerrors", entity.noerrors);
     row.SetField("noincreases", entity.noincreases);
     row.SetField("noreviews", entity.noreviews);
     row.SetField("norevisions", entity.norevisions);
     row.SetField("nounlisted", entity.nounlisted);
     row.SetField("operinit", entity.operinit);
     row.SetField("percal", entity.percal);
     row.SetField("perfisc", entity.perfisc);
     row.SetField("slupdtno", entity.slupdtno);
     row.SetField("readdt", entity.readdt);
     row.SetField("transdt", entity.transdt);
     row.SetField("transtm", entity.transtm);
     row.SetField("updatedt", entity.updatedt);
     row.SetField("cono", entity.cono);
     row.SetField("reportdt", entity.reportdt);
     row.SetField("seqno", entity.seqno);
     row.SetField("statustype", entity.statustype);
     row.SetField("setno", entity.setno);
     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("slehRowID", entity.rowID.ToByteArray());
 }