Esempio n. 1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromSastcBase(ref DataRow row, SastcBase entity)
 {
     row.SetField("currencyty", entity.currencyty);
     row.SetField("shortdesc", entity.shortdesc);
     row.SetField("descrip", entity.descrip);
     row.SetField("bankno", entity.bankno);
     row.SetField("draftfl", entity.draftfl);
     row.SetField("vouchexrate", entity.vouchexrate);
     row.SetField("purchexrate", entity.purchexrate);
     row.SetField("gldivno", entity.gldivno);
     row.SetField("gldeptno", entity.gldeptno);
     row.SetField("glacctno", entity.glacctno);
     row.SetField("glsubno", entity.glsubno);
     row.SetField("operinit", entity.operinit);
     row.SetField("transdt", entity.transdt);
     row.SetField("transtm", entity.transtm);
     row.SetField("decimalfl", entity.decimalfl);
     row.SetField("cono", entity.cono);
     row.SetField("edicurrency", entity.edicurrency);
     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("salesexrate", entity.salesexrate);
     row.SetField("arexrate", entity.arexrate);
     row.SetField("wtinvexrate1", entity.wtinvexrate1);
     row.SetField("wtinvexrate2", entity.wtinvexrate2);
     row.SetField("wtexpaddexrate1", entity.wtexpaddexrate1);
     row.SetField("wtexpaddexrate2", entity.wtexpaddexrate2);
     row.SetField("wtcapaddexrate1", entity.wtcapaddexrate1);
     row.SetField("wtcapaddexrate2", entity.wtcapaddexrate2);
     row.SetField("glexrate1", entity.glexrate1);
     row.SetField("glexrate2", entity.glexrate2);
     row.SetField("icexrate1", entity.icexrate1);
     row.SetField("icexrate2", entity.icexrate2);
     row.SetField("budgetexrate", entity.budgetexrate);
     row.SetField("stndcurrcd", entity.stndcurrcd);
     row.SetField("currsymbol", entity.currsymbol);
     row.SetField("rvglacctno", entity.rvglacctno);
     row.SetField("rvgldeptno", entity.rvgldeptno);
     row.SetField("rvgldivno", entity.rvgldivno);
     row.SetField("rvglexchrate", entity.rvglexchrate);
     row.SetField("rvglsubno", entity.rvglsubno);
     row.SetField("sastcRowID", entity.rowID.ToByteArray());
 }
Esempio n. 2
0
 /// <summary>
 /// Build a minimal row from a class (key fields only)
 /// </summary>
 public static void BuildMinimalRow(ref DataRow row, SastcBase entity)
 {
     row.SetField("currencyty", entity.currencyty);
     row.SetField("cono", entity.cono);
     row.SetField("sastcRowID", entity.rowID.ToByteArray());
 }