Ejemplo n.º 1
0
 /// <summary>
 /// Build a minimal row from a class (key fields only)
 /// </summary>
 public static void BuildMinimalRow(ref DataRow row, PmscBase entity)
 {
     row.SetField("carrierid", entity.carrierid);
     row.SetField("pmscRowID", entity.rowID.ToByteArray());
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromPmscBase(ref DataRow row, PmscBase entity)
 {
     row.SetField("carrierid", entity.carrierid);
     row.SetField("name", entity.name);
     row.SetField("addr1", entity.addr1);
     row.SetField("addr2", entity.addr2);
     row.SetField("city", entity.city);
     row.SetField("state", entity.state);
     row.SetField("zipcd", entity.zipcd);
     row.SetField("manifestno", entity.manifestno);
     row.SetField("roundtype", entity.roundtype);
     row.SetField("extrahdr1", entity.extrahdr1);
     row.SetField("extrahdr2", entity.extrahdr2);
     row.SetField("extrahdr3", entity.extrahdr3);
     row.SetField("extrahdr4", entity.extrahdr4);
     row.SetField("extrahdr5", entity.extrahdr5);
     row.SetField("extrahdr6", entity.extrahdr6);
     row.SetField("extrahdr7", entity.extrahdr7);
     row.SetField("extrahdr8", entity.extrahdr8);
     row.SetField("extrahdr9", entity.extrahdr9);
     row.SetField("extrahdr10", entity.extrahdr10);
     row.SetField("extrahdr11", entity.extrahdr11);
     row.SetField("extrahdr12", entity.extrahdr12);
     row.SetField("extrahdr13", entity.extrahdr13);
     row.SetField("extrahdr14", entity.extrahdr14);
     row.SetField("extrahdr15", entity.extrahdr15);
     row.SetField("extrahdr16", entity.extrahdr16);
     row.SetField("extrahdr17", entity.extrahdr17);
     row.SetField("extrahdr18", entity.extrahdr18);
     row.SetField("extrahdr19", entity.extrahdr19);
     row.SetField("extrahdr20", entity.extrahdr20);
     row.SetField("extraamt1", entity.extraamt1);
     row.SetField("extraamt2", entity.extraamt2);
     row.SetField("extraamt3", entity.extraamt3);
     row.SetField("extraamt4", entity.extraamt4);
     row.SetField("extraamt5", entity.extraamt5);
     row.SetField("extraamt6", entity.extraamt6);
     row.SetField("extraamt7", entity.extraamt7);
     row.SetField("extraamt8", entity.extraamt8);
     row.SetField("extraamt9", entity.extraamt9);
     row.SetField("extraamt10", entity.extraamt10);
     row.SetField("extraamt11", entity.extraamt11);
     row.SetField("extraamt12", entity.extraamt12);
     row.SetField("extraamt13", entity.extraamt13);
     row.SetField("extraamt14", entity.extraamt14);
     row.SetField("extraamt15", entity.extraamt15);
     row.SetField("extraamt16", entity.extraamt16);
     row.SetField("extraamt17", entity.extraamt17);
     row.SetField("extraamt18", entity.extraamt18);
     row.SetField("extraamt19", entity.extraamt19);
     row.SetField("extraamt20", entity.extraamt20);
     row.SetField("inssource", entity.inssource);
     row.SetField("inspkgchg", entity.inspkgchg);
     row.SetField("insminval", entity.insminval);
     row.SetField("insrate", entity.insrate);
     row.SetField("insperamt", entity.insperamt);
     row.SetField("endpkgno", entity.endpkgno);
     row.SetField("printvalfl", entity.printvalfl);
     row.SetField("begpkgno", entity.begpkgno);
     row.SetField("nomaxpkg", entity.nomaxpkg);
     row.SetField("hundredwtfl", entity.hundredwtfl);
     row.SetField("specsvcfl1", entity.specsvcfl1);
     row.SetField("specsvcfl2", entity.specsvcfl2);
     row.SetField("specsvcfl3", entity.specsvcfl3);
     row.SetField("codchg", entity.codchg);
     row.SetField("user1", entity.user1);
     row.SetField("pkgcom", entity.pkgcom);
     row.SetField("user2", entity.user2);
     row.SetField("transdt", entity.transdt);
     row.SetField("user3", entity.user3);
     row.SetField("transtm", entity.transtm);
     row.SetField("user4", entity.user4);
     row.SetField("operinit", entity.operinit);
     row.SetField("user5", entity.user5);
     row.SetField("maxwght", entity.maxwght);
     row.SetField("user6", entity.user6);
     row.SetField("maxdimen", entity.maxdimen);
     row.SetField("user7", entity.user7);
     row.SetField("nextpkgno", entity.nextpkgno);
     row.SetField("user8", entity.user8);
     row.SetField("insroundty", entity.insroundty);
     row.SetField("user9", entity.user9);
     row.SetField("standardty", entity.standardty);
     row.SetField("effdate", entity.effdate);
     row.SetField("preferred", entity.preferred);
     row.SetField("transproc", entity.transproc);
     row.SetField("addr3", entity.addr3);
     row.SetField("pmscRowID", entity.rowID.ToByteArray());
 }