Exemplo n.º 1
0
 /// <summary>
 /// Build a minimal row from a class (key fields only)
 /// </summary>
 public static void BuildMinimalRow(ref DataRow row, SwewhBase entity)
 {
     row.SetField("cono", entity.cono);
     row.SetField("intclaimno", entity.intclaimno);
     row.SetField("swewhRowID", entity.rowID.ToByteArray());
 }
Exemplo n.º 2
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromSwewhBase(ref DataRow row, SwewhBase entity)
 {
     row.SetField("cono", entity.cono);
     row.SetField("operinit", entity.operinit);
     row.SetField("transdt", entity.transdt);
     row.SetField("transtm", entity.transtm);
     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("enginedetail", entity.enginedetail);
     row.SetField("selldt", entity.selldt);
     row.SetField("faildt", entity.faildt);
     row.SetField("vendno", entity.vendno);
     row.SetField("repairordno", entity.repairordno);
     row.SetField("vendclaimno", entity.vendclaimno);
     row.SetField("claimstage", entity.claimstage);
     row.SetField("disputefl", entity.disputefl);
     row.SetField("totclaimamt", entity.totclaimamt);
     row.SetField("totcreditamt", entity.totcreditamt);
     row.SetField("printdt", entity.printdt);
     row.SetField("vendname", entity.vendname);
     row.SetField("vendaddr1", entity.vendaddr1);
     row.SetField("vendaddr2", entity.vendaddr2);
     row.SetField("vendcity", entity.vendcity);
     row.SetField("vendstate", entity.vendstate);
     row.SetField("vendzipcd", entity.vendzipcd);
     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("recjrnlno", entity.recjrnlno);
     row.SetField("subjrnlno", entity.subjrnlno);
     row.SetField("orderno", entity.orderno);
     row.SetField("ordersuf", entity.ordersuf);
     row.SetField("repairordsuf", entity.repairordsuf);
     row.SetField("prod", entity.prod);
     row.SetField("serialno", entity.serialno);
     row.SetField("lotno", entity.lotno);
     row.SetField("bulletinno", entity.bulletinno);
     row.SetField("createdt", entity.createdt);
     row.SetField("intclaimno", entity.intclaimno);
     row.SetField("prodcat", entity.prodcat);
     row.SetField("failcd", entity.failcd);
     row.SetField("probfailcd", entity.probfailcd);
     row.SetField("qty", entity.qty);
     row.SetField("custno", entity.custno);
     row.SetField("subsetno", entity.subsetno);
     row.SetField("recsetno", entity.recsetno);
     row.SetField("equiptype", entity.equiptype);
     row.SetField("authservno", entity.authservno);
     row.SetField("woamt", entity.woamt);
     row.SetField("whse", entity.whse);
     row.SetField("claimtype", entity.claimtype);
     row.SetField("manualfl", entity.manualfl);
     row.SetField("notesfl", entity.notesfl);
     row.SetField("problemtxt", entity.problemtxt);
     row.SetField("causetxt", entity.causetxt);
     row.SetField("workperftxt", entity.workperftxt);
     row.SetField("textfl", entity.textfl);
     row.SetField("printcnt", entity.printcnt);
     row.SetField("printfl", entity.printfl);
     row.SetField("resubamt", entity.resubamt);
     row.SetField("transproc", entity.transproc);
     row.SetField("vendaddr3", entity.vendaddr3);
     row.SetField("addr3", entity.addr3);
     row.SetField("user10", entity.user10);
     row.SetField("user11", entity.user11);
     row.SetField("user12", entity.user12);
     row.SetField("user13", entity.user13);
     row.SetField("user14", entity.user14);
     row.SetField("user15", entity.user15);
     row.SetField("user16", entity.user16);
     row.SetField("user17", entity.user17);
     row.SetField("user18", entity.user18);
     row.SetField("user19", entity.user19);
     row.SetField("user20", entity.user20);
     row.SetField("user21", entity.user21);
     row.SetField("user22", entity.user22);
     row.SetField("user23", entity.user23);
     row.SetField("user24", entity.user24);
     row.SetField("swewhRowID", entity.rowID.ToByteArray());
 }