Ejemplo n.º 1
0
 /// <summary>
 /// Build a minimal row from a class (key fields only)
 /// </summary>
 public static void BuildMinimalRow(ref DataRow row, GlsbBase entity)
 {
     row.SetField("cono", entity.cono);
     row.SetField("gldivno", entity.gldivno);
     row.SetField("gldeptno", entity.gldeptno);
     row.SetField("glacctno", entity.glacctno);
     row.SetField("glsubno", entity.glsubno);
     row.SetField("revno", entity.revno);
     row.SetField("yr", entity.yr);
     row.SetField("glsbRowID", entity.rowID.ToByteArray());
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromGlsbBase(ref DataRow row, GlsbBase entity)
 {
     row.SetField("cono", entity.cono);
     row.SetField("gldivno", entity.gldivno);
     row.SetField("gldeptno", entity.gldeptno);
     row.SetField("glacctno", entity.glacctno);
     row.SetField("glsubno", entity.glsubno);
     row.SetField("transdt", entity.transdt);
     row.SetField("transtm", entity.transtm);
     row.SetField("operinit", entity.operinit);
     row.SetField("revno", entity.revno);
     row.SetField("yr", entity.yr);
     row.SetField("frozenfl", entity.frozenfl);
     row.SetField("frozendt", entity.frozendt);
     row.SetField("annbud", entity.annbud);
     row.SetField("budgettype", entity.budgettype);
     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("budpct1", entity.budpct1);
     row.SetField("budpct2", entity.budpct2);
     row.SetField("budpct3", entity.budpct3);
     row.SetField("budpct4", entity.budpct4);
     row.SetField("budpct5", entity.budpct5);
     row.SetField("budpct6", entity.budpct6);
     row.SetField("budpct7", entity.budpct7);
     row.SetField("budpct8", entity.budpct8);
     row.SetField("budpct9", entity.budpct9);
     row.SetField("budpct10", entity.budpct10);
     row.SetField("budpct11", entity.budpct11);
     row.SetField("budpct12", entity.budpct12);
     row.SetField("budpct13", entity.budpct13);
     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("glsbRowID", entity.rowID.ToByteArray());
 }