Example #1
0
 /// <summary>
 /// Build a minimal row from a class (key fields only)
 /// </summary>
 public static void BuildMinimalRow(ref DataRow row, GlsaBase entity)
 {
     row.SetField("yr", entity.yr);
     row.SetField("gldivno", entity.gldivno);
     row.SetField("gldeptno", entity.gldeptno);
     row.SetField("glacctno", entity.glacctno);
     row.SetField("glsubno", entity.glsubno);
     row.SetField("cono", entity.cono);
     row.SetField("glsaRowID", entity.rowID.ToByteArray());
     row.SetField("rowpointer", entity.rowpointer);
 }
Example #2
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromGlsaBase(ref DataRow row, GlsaBase entity)
 {
     row.SetField("yr", entity.yr);
     row.SetField("gldivno", entity.gldivno);
     row.SetField("gldeptno", entity.gldeptno);
     row.SetField("glacctno", entity.glacctno);
     row.SetField("glsubno", entity.glsubno);
     row.SetField("gltitle", entity.gltitle);
     row.SetField("lookupnm", entity.lookupnm);
     row.SetField("accttype", entity.accttype);
     row.SetField("baltype", entity.baltype);
     row.SetField("printtype", entity.printtype);
     row.SetField("fwdbal", entity.fwdbal);
     row.SetField("peramt1", entity.peramt1);
     row.SetField("peramt2", entity.peramt2);
     row.SetField("peramt3", entity.peramt3);
     row.SetField("peramt4", entity.peramt4);
     row.SetField("peramt5", entity.peramt5);
     row.SetField("peramt6", entity.peramt6);
     row.SetField("peramt7", entity.peramt7);
     row.SetField("peramt8", entity.peramt8);
     row.SetField("peramt9", entity.peramt9);
     row.SetField("peramt10", entity.peramt10);
     row.SetField("peramt11", entity.peramt11);
     row.SetField("peramt12", entity.peramt12);
     row.SetField("peramt13", entity.peramt13);
     row.SetField("cono", entity.cono);
     row.SetField("transdt", entity.transdt);
     row.SetField("transtm", entity.transtm);
     row.SetField("operinit", entity.operinit);
     row.SetField("yrcn", entity.yrcn);
     row.SetField("acctsub", entity.acctsub);
     row.SetField("glrptgroup", entity.glrptgroup);
     row.SetField("currencyty", entity.currencyty);
     row.SetField("user1", entity.user1);
     row.SetField("user2", entity.user2);
     row.SetField("notesfl", entity.notesfl);
     row.SetField("manpostfl", entity.manpostfl);
     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("cofwdbal", entity.cofwdbal);
     row.SetField("coperamt1", entity.coperamt1);
     row.SetField("coperamt2", entity.coperamt2);
     row.SetField("coperamt3", entity.coperamt3);
     row.SetField("coperamt4", entity.coperamt4);
     row.SetField("coperamt5", entity.coperamt5);
     row.SetField("coperamt6", entity.coperamt6);
     row.SetField("coperamt7", entity.coperamt7);
     row.SetField("coperamt8", entity.coperamt8);
     row.SetField("coperamt9", entity.coperamt9);
     row.SetField("coperamt10", entity.coperamt10);
     row.SetField("coperamt11", entity.coperamt11);
     row.SetField("coperamt12", entity.coperamt12);
     row.SetField("coperamt13", entity.coperamt13);
     row.SetField("keywords", entity.keywords);
     row.SetField("acctgrp", entity.acctgrp);
     row.SetField("totamt", entity.totamt);
     row.SetField("cototamt", entity.cototamt);
     row.SetField("avgexratefl", entity.avgexratefl);
     row.SetField("rowpointer", entity.rowpointer);
     row.SetField("transdttmz", entity.transdttmz);
     row.SetField("glsaRowID", entity.rowID.ToByteArray());
 }