Exemple #1
0
 /// <summary>
 /// Build a minimal row from a class (key fields only)
 /// </summary>
 public static void BuildMinimalRow(ref DataRow row, ArsgBase entity)
 {
     row.SetField("cono", entity.cono);
     row.SetField("groupid", entity.groupid);
     row.SetField("arsgRowID", entity.rowID.ToByteArray());
     row.SetField("rowpointer", entity.rowpointer);
 }
Exemple #2
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromArsgBase(ref DataRow row, ArsgBase entity)
 {
     row.SetField("addr1", entity.addr1);
     row.SetField("addr2", entity.addr2);
     row.SetField("addr3", entity.addr3);
     row.SetField("apmgr", entity.apmgr);
     row.SetField("apphoneno", entity.apphoneno);
     row.SetField("city", entity.city);
     row.SetField("comment", entity.comment);
     row.SetField("cono", entity.cono);
     row.SetField("countrycd", entity.countrycd);
     row.SetField("creditmgr", entity.creditmgr);
     row.SetField("credlim", entity.credlim);
     row.SetField("credlimappty", entity.credlimappty);
     row.SetField("crestdt", entity.crestdt);
     row.SetField("currencyty", entity.currencyty);
     row.SetField("email", entity.email);
     row.SetField("faxphoneno", entity.faxphoneno);
     row.SetField("geocd", entity.geocd);
     row.SetField("groupid", entity.groupid);
     row.SetField("holdpercd", entity.holdpercd);
     row.SetField("lastrevdt", entity.lastrevdt);
     row.SetField("lookupnm", entity.lookupnm);
     row.SetField("name", entity.name);
     row.SetField("nextrevdt", entity.nextrevdt);
     row.SetField("operinit", entity.operinit);
     row.SetField("phoneno", entity.phoneno);
     row.SetField("pocontctnm", entity.pocontctnm);
     row.SetField("pophoneno", entity.pophoneno);
     row.SetField("selltype", entity.selltype);
     row.SetField("servchgty", entity.servchgty);
     row.SetField("state", entity.state);
     row.SetField("statusdt", entity.statusdt);
     row.SetField("statustype", entity.statustype);
     row.SetField("transdt", entity.transdt);
     row.SetField("transtm", entity.transtm);
     row.SetField("transproc", entity.transproc);
     row.SetField("unearnedty", entity.unearnedty);
     row.SetField("zipcd", entity.zipcd);
     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("rowpointer", entity.rowpointer);
     row.SetField("outofcityfl", entity.outofcityfl);
     row.SetField("transdttmz", entity.transdttmz);
     row.SetField("arsgRowID", entity.rowID.ToByteArray());
 }