Beispiel #1
0
 /// <summary>
 /// Build a minimal row from a class (key fields only)
 /// </summary>
 public static void BuildMinimalRow(ref DataRow row, SastchBase entity)
 {
     row.SetField("changedt", entity.changedt);
     row.SetField("changety", entity.changety);
     row.SetField("cono", entity.cono);
     row.SetField("currencyty", entity.currencyty);
     row.SetField("changetm", entity.changetm);
     row.SetField("sastchRowID", entity.rowID.ToByteArray());
 }
Beispiel #2
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromSastchBase(ref DataRow row, SastchBase entity)
 {
     row.SetField("changedt", entity.changedt);
     row.SetField("changent", entity.changent);
     row.SetField("changety", entity.changety);
     row.SetField("cono", entity.cono);
     row.SetField("currencyty", entity.currencyty);
     row.SetField("draftfl", entity.draftfl);
     row.SetField("edicurrency", entity.edicurrency);
     row.SetField("glacctno", entity.glacctno);
     row.SetField("gldeptno", entity.gldeptno);
     row.SetField("gldivno", entity.gldivno);
     row.SetField("glsubno", entity.glsubno);
     row.SetField("newexrate", entity.newexrate);
     row.SetField("oldexrate", entity.oldexrate);
     row.SetField("operinit", entity.operinit);
     row.SetField("ratesource", entity.ratesource);
     row.SetField("rvglacctno", entity.rvglacctno);
     row.SetField("rvgldeptno", entity.rvgldeptno);
     row.SetField("rvgldivno", entity.rvgldivno);
     row.SetField("rvglsubno", entity.rvglsubno);
     row.SetField("transdt", entity.transdt);
     row.SetField("transtm", entity.transtm);
     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("glexrate", entity.glexrate);
     row.SetField("changetm", entity.changetm);
     row.SetField("transproc", entity.transproc);
     row.SetField("sastchRowID", entity.rowID.ToByteArray());
 }