Exemplo n.º 1
0
 /// <summary>
 /// Build a minimal row from a class (key fields only)
 /// </summary>
 public static void BuildMinimalRow(ref DataRow row, SasgmBase entity)
 {
     row.SetField("cono", entity.cono);
     row.SetField("recty", entity.recty);
     row.SetField("taxgroup", entity.taxgroup);
     row.SetField("statecd", entity.statecd);
     row.SetField("countycd", entity.countycd);
     row.SetField("citycd", entity.citycd);
     row.SetField("othercd", entity.othercd);
     row.SetField("sasgmRowID", entity.rowID.ToByteArray());
 }
Exemplo n.º 2
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromSasgmBase(ref DataRow row, SasgmBase entity)
 {
     row.SetField("cono", entity.cono);
     row.SetField("recty", entity.recty);
     row.SetField("taxgroup", entity.taxgroup);
     row.SetField("statecd", entity.statecd);
     row.SetField("countycd", entity.countycd);
     row.SetField("citycd", entity.citycd);
     row.SetField("othercd", entity.othercd);
     row.SetField("operinit", entity.operinit);
     row.SetField("taxsalert", entity.taxsalert);
     row.SetField("transtm", entity.transtm);
     row.SetField("taxusert", entity.taxusert);
     row.SetField("maxtaxty", entity.maxtaxty);
     row.SetField("taxtransrt", entity.taxtransrt);
     row.SetField("user1", entity.user1);
     row.SetField("taxexcrt", entity.taxexcrt);
     row.SetField("taxexcflat", entity.taxexcflat);
     row.SetField("taxexcflatfl", entity.taxexcflatfl);
     row.SetField("countytaxfl", entity.countytaxfl);
     row.SetField("citytaxfl", entity.citytaxfl);
     row.SetField("othertaxfl", entity.othertaxfl);
     row.SetField("maxtaxamt", entity.maxtaxamt);
     row.SetField("orgdestcd", entity.orgdestcd);
     row.SetField("taxrptfl", entity.taxrptfl);
     row.SetField("glacctno1", entity.glacctno1);
     row.SetField("glacctno2", entity.glacctno2);
     row.SetField("glacctno3", entity.glacctno3);
     row.SetField("glacctno4", entity.glacctno4);
     row.SetField("glacctno5", entity.glacctno5);
     row.SetField("glacctno6", entity.glacctno6);
     row.SetField("glacctno7", entity.glacctno7);
     row.SetField("glacctno8", entity.glacctno8);
     row.SetField("glacctno9", entity.glacctno9);
     row.SetField("glacctno10", entity.glacctno10);
     row.SetField("gldeptno1", entity.gldeptno1);
     row.SetField("gldeptno2", entity.gldeptno2);
     row.SetField("gldeptno3", entity.gldeptno3);
     row.SetField("gldeptno4", entity.gldeptno4);
     row.SetField("gldeptno5", entity.gldeptno5);
     row.SetField("gldeptno6", entity.gldeptno6);
     row.SetField("gldeptno7", entity.gldeptno7);
     row.SetField("gldeptno8", entity.gldeptno8);
     row.SetField("gldeptno9", entity.gldeptno9);
     row.SetField("gldeptno10", entity.gldeptno10);
     row.SetField("gldivno1", entity.gldivno1);
     row.SetField("gldivno2", entity.gldivno2);
     row.SetField("gldivno3", entity.gldivno3);
     row.SetField("gldivno4", entity.gldivno4);
     row.SetField("gldivno5", entity.gldivno5);
     row.SetField("gldivno6", entity.gldivno6);
     row.SetField("gldivno7", entity.gldivno7);
     row.SetField("gldivno8", entity.gldivno8);
     row.SetField("gldivno9", entity.gldivno9);
     row.SetField("gldivno10", entity.gldivno10);
     row.SetField("glsubno1", entity.glsubno1);
     row.SetField("glsubno2", entity.glsubno2);
     row.SetField("glsubno3", entity.glsubno3);
     row.SetField("glsubno4", entity.glsubno4);
     row.SetField("glsubno5", entity.glsubno5);
     row.SetField("glsubno6", entity.glsubno6);
     row.SetField("glsubno7", entity.glsubno7);
     row.SetField("glsubno8", entity.glsubno8);
     row.SetField("glsubno9", entity.glsubno9);
     row.SetField("glsubno10", entity.glsubno10);
     row.SetField("transdt", entity.transdt);
     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("descrip", entity.descrip);
     row.SetField("taxid", entity.taxid);
     row.SetField("addontaxgroup1", entity.addontaxgroup1);
     row.SetField("addontaxgroup2", entity.addontaxgroup2);
     row.SetField("addontaxgroup3", entity.addontaxgroup3);
     row.SetField("addontaxgroup4", entity.addontaxgroup4);
     row.SetField("addontaxgroup5", entity.addontaxgroup5);
     row.SetField("addontaxgroup6", entity.addontaxgroup6);
     row.SetField("addontaxgroup7", entity.addontaxgroup7);
     row.SetField("addontaxgroup8", entity.addontaxgroup8);
     row.SetField("addontaxgroup9", entity.addontaxgroup9);
     row.SetField("addontaxfl1", entity.addontaxfl1);
     row.SetField("addontaxfl2", entity.addontaxfl2);
     row.SetField("addontaxfl3", entity.addontaxfl3);
     row.SetField("addontaxfl4", entity.addontaxfl4);
     row.SetField("addontaxfl5", entity.addontaxfl5);
     row.SetField("addontaxfl6", entity.addontaxfl6);
     row.SetField("addontaxfl7", entity.addontaxfl7);
     row.SetField("addontaxfl8", entity.addontaxfl8);
     row.SetField("addontaxfl9", entity.addontaxfl9);
     row.SetField("transproc", entity.transproc);
     row.SetField("taxexcflatty", entity.taxexcflatty);
     row.SetField("sasgmRowID", entity.rowID.ToByteArray());
 }