コード例 #1
0
 /// <summary>
 /// Build a minimal row from a class (key fields only)
 /// </summary>
 public static void BuildMinimalRow(ref DataRow row, PoelaBase entity)
 {
     row.SetField("cono", entity.cono);
     row.SetField("addonno", entity.addonno);
     row.SetField("pono", entity.pono);
     row.SetField("posuf", entity.posuf);
     row.SetField("lineno", entity.lineno);
     row.SetField("jrnlno", entity.jrnlno);
     row.SetField("setno", entity.setno);
     row.SetField("bundleid", entity.bundleid);
     row.SetField("compseqno", entity.compseqno);
     row.SetField("poelaRowID", entity.rowID.ToByteArray());
 }
コード例 #2
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromPoelaBase(ref DataRow row, PoelaBase entity)
 {
     row.SetField("cono", entity.cono);
     row.SetField("vendno", entity.vendno);
     row.SetField("addonno", entity.addonno);
     row.SetField("pono", entity.pono);
     row.SetField("posuf", entity.posuf);
     row.SetField("lineno", entity.lineno);
     row.SetField("jrnlno", entity.jrnlno);
     row.SetField("setno", entity.setno);
     row.SetField("currencyty", entity.currencyty);
     row.SetField("addonamt", entity.addonamt);
     row.SetField("updatefl", entity.updatefl);
     row.SetField("transdt", entity.transdt);
     row.SetField("transtm", entity.transtm);
     row.SetField("operinit", entity.operinit);
     row.SetField("bundleid", entity.bundleid);
     row.SetField("src", entity.src);
     row.SetField("exchgrate1", entity.exchgrate1);
     row.SetField("exchgrate2", entity.exchgrate2);
     row.SetField("alloctype", entity.alloctype);
     row.SetField("uninvamt", entity.uninvamt);
     row.SetField("compseqno", entity.compseqno);
     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("apetjrnlno", entity.apetjrnlno);
     row.SetField("apetsetno", entity.apetsetno);
     row.SetField("poelaRowID", entity.rowID.ToByteArray());
 }