Example #1
0
 /// <summary>
 /// Build a minimal row from a class (key fields only)
 /// </summary>
 public static void BuildMinimalRow(ref DataRow row, DealphBase entity)
 {
     row.SetField("cono", entity.cono);
     row.SetField("qualtype", entity.qualtype);
     row.SetField("pricetype", entity.pricetype);
     row.SetField("qualentity", entity.qualentity);
     row.SetField("startdt", entity.startdt);
     row.SetField("whse", entity.whse);
     row.SetField("dealphRowID", entity.rowID.ToByteArray());
 }
Example #2
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromDealphBase(ref DataRow row, DealphBase entity)
 {
     row.SetField("cono", entity.cono);
     row.SetField("qualtype", entity.qualtype);
     row.SetField("autodealfl", entity.autodealfl);
     row.SetField("autodealty", entity.autodealty);
     row.SetField("dealamt", entity.dealamt);
     row.SetField("dealcom1", entity.dealcom1);
     row.SetField("dealcom2", entity.dealcom2);
     row.SetField("dealcom3", entity.dealcom3);
     row.SetField("dealcom4", entity.dealcom4);
     row.SetField("dealcom5", entity.dealcom5);
     row.SetField("dealcom6", entity.dealcom6);
     row.SetField("dealcom7", entity.dealcom7);
     row.SetField("dealcom8", entity.dealcom8);
     row.SetField("dealcom9", entity.dealcom9);
     row.SetField("dealcom10", entity.dealcom10);
     row.SetField("dealcomprtfl", entity.dealcomprtfl);
     row.SetField("dealmethfl", entity.dealmethfl);
     row.SetField("dealrecno", entity.dealrecno);
     row.SetField("descrip", entity.descrip);
     row.SetField("enddt", entity.enddt);
     row.SetField("freedealfl", entity.freedealfl);
     row.SetField("multfl", entity.multfl);
     row.SetField("operinit", entity.operinit);
     row.SetField("pricelvlfl1", entity.pricelvlfl1);
     row.SetField("pricelvlfl2", entity.pricelvlfl2);
     row.SetField("pricelvlfl3", entity.pricelvlfl3);
     row.SetField("pricelvlfl4", entity.pricelvlfl4);
     row.SetField("pricelvlfl5", entity.pricelvlfl5);
     row.SetField("pricelvlfl6", entity.pricelvlfl6);
     row.SetField("pricelvlfl7", entity.pricelvlfl7);
     row.SetField("pricelvlfl8", entity.pricelvlfl8);
     row.SetField("pricelvlfl9", entity.pricelvlfl9);
     row.SetField("pricelvlfl10", entity.pricelvlfl10);
     row.SetField("pricetype", entity.pricetype);
     row.SetField("qualamt", entity.qualamt);
     row.SetField("qualcom1", entity.qualcom1);
     row.SetField("qualcom2", entity.qualcom2);
     row.SetField("qualcom3", entity.qualcom3);
     row.SetField("qualcom4", entity.qualcom4);
     row.SetField("qualcom5", entity.qualcom5);
     row.SetField("qualcom6", entity.qualcom6);
     row.SetField("qualcom7", entity.qualcom7);
     row.SetField("qualcom8", entity.qualcom8);
     row.SetField("qualcom9", entity.qualcom9);
     row.SetField("qualcom10", entity.qualcom10);
     row.SetField("qualcomprtfl", entity.qualcomprtfl);
     row.SetField("qualentity", entity.qualentity);
     row.SetField("qualmethfl", entity.qualmethfl);
     row.SetField("qualprice", entity.qualprice);
     row.SetField("showdiscfl", entity.showdiscfl);
     row.SetField("startdt", entity.startdt);
     row.SetField("whse", entity.whse);
     row.SetField("transdt", entity.transdt);
     row.SetField("transtm", entity.transtm);
     row.SetField("transproc", entity.transproc);
     row.SetField("openinit", entity.openinit);
     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("dealphRowID", entity.rowID.ToByteArray());
 }