Пример #1
0
 /// <summary>
 /// Build a minimal row from a class (key fields only)
 /// </summary>
 public static void BuildMinimalRow(ref DataRow row, SastnBase entity)
 {
     row.SetField("cono", entity.cono);
     row.SetField("codeiden", entity.codeiden);
     row.SetField("codeval", entity.codeval);
     row.SetField("sastnRowID", entity.rowID.ToByteArray());
 }
Пример #2
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromSastnBase(ref DataRow row, SastnBase entity)
 {
     row.SetField("cono", entity.cono);
     row.SetField("codeiden", entity.codeiden);
     row.SetField("codeval", entity.codeval);
     row.SetField("descrip", entity.descrip);
     row.SetField("addtaxfl", entity.addtaxfl);
     row.SetField("addontype", entity.addontype);
     row.SetField("operinit", entity.operinit);
     row.SetField("transdt", entity.transdt);
     row.SetField("transtm", entity.transtm);
     row.SetField("addonamt", entity.addonamt);
     row.SetField("gldivno", entity.gldivno);
     row.SetField("gldeptno", entity.gldeptno);
     row.SetField("ediaddoncd", entity.ediaddoncd);
     row.SetField("glacctno", entity.glacctno);
     row.SetField("frghtcalcty", entity.frghtcalcty);
     row.SetField("glsubno", entity.glsubno);
     row.SetField("refundtype", entity.refundtype);
     row.SetField("fedtaxid", entity.fedtaxid);
     row.SetField("addr1", entity.addr1);
     row.SetField("addr2", entity.addr2);
     row.SetField("ccaddontype", entity.ccaddontype);
     row.SetField("name", entity.name);
     row.SetField("user1", entity.user1);
     row.SetField("city", entity.city);
     row.SetField("user2", entity.user2);
     row.SetField("state", entity.state);
     row.SetField("user3", entity.user3);
     row.SetField("zipcd", entity.zipcd);
     row.SetField("user4", entity.user4);
     row.SetField("addonmin", entity.addonmin);
     row.SetField("user5", entity.user5);
     row.SetField("addonzero", entity.addonzero);
     row.SetField("user6", entity.user6);
     row.SetField("taxgroup", entity.taxgroup);
     row.SetField("user7", entity.user7);
     row.SetField("gldivno2", entity.gldivno2);
     row.SetField("user8", entity.user8);
     row.SetField("gldeptno2", entity.gldeptno2);
     row.SetField("user9", entity.user9);
     row.SetField("glacctno2", entity.glacctno2);
     row.SetField("glsubno2", entity.glsubno2);
     row.SetField("cctendfl", entity.cctendfl);
     row.SetField("processor", entity.processor);
     row.SetField("ccaddon", entity.ccaddon);
     row.SetField("cccustnm", entity.cccustnm);
     row.SetField("authmin", entity.authmin);
     row.SetField("chgcat", entity.chgcat);
     row.SetField("ccedit", entity.ccedit);
     row.SetField("boappdays", entity.boappdays);
     row.SetField("chkauthty", entity.chkauthty);
     row.SetField("arpost", entity.arpost);
     row.SetField("preauthppt", entity.preauthppt);
     row.SetField("catppt", entity.catppt);
     row.SetField("ccidppt", entity.ccidppt);
     row.SetField("addveri", entity.addveri);
     row.SetField("chkauth", entity.chkauth);
     row.SetField("transproc", entity.transproc);
     row.SetField("bankno", entity.bankno);
     row.SetField("currencyty", entity.currencyty);
     row.SetField("addr3", entity.addr3);
     row.SetField("glimpactfl", entity.glimpactfl);
     row.SetField("frtaddonfl", entity.frtaddonfl);
     row.SetField("merchantid", entity.merchantid);
     row.SetField("addonmax", entity.addonmax);
     row.SetField("tiedoeaddonno", entity.tiedoeaddonno);
     row.SetField("ehffl", entity.ehffl);
     row.SetField("sastnRowID", entity.rowID.ToByteArray());
 }