예제 #1
0
 /// <summary>
 /// Build a minimal row from a class (key fields only)
 /// </summary>
 public static void BuildMinimalRow(ref DataRow row, BpehBase entity)
 {
     row.SetField("cono", entity.cono);
     row.SetField("bpid", entity.bpid);
     row.SetField("revno", entity.revno);
     row.SetField("bpehRowID", entity.rowID.ToByteArray());
 }
예제 #2
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromBpehBase(ref DataRow row, BpehBase entity)
 {
     row.SetField("cono", entity.cono);
     row.SetField("bpid", entity.bpid);
     row.SetField("revno", entity.revno);
     row.SetField("quoteno", entity.quoteno);
     row.SetField("shipto", entity.shipto);
     row.SetField("custpros", entity.custpros);
     row.SetField("bptype", entity.bptype);
     row.SetField("cptype", entity.cptype);
     row.SetField("whse", entity.whse);
     row.SetField("descrip1", entity.descrip1);
     row.SetField("descrip2", entity.descrip2);
     row.SetField("enterdt", entity.enterdt);
     row.SetField("entertm", entity.entertm);
     row.SetField("takenby", entity.takenby);
     row.SetField("duedt", entity.duedt);
     row.SetField("begindt", entity.begindt);
     row.SetField("expiredt", entity.expiredt);
     row.SetField("awarddt", entity.awarddt);
     row.SetField("commtype", entity.commtype);
     row.SetField("lettercd1", entity.lettercd1);
     row.SetField("lettercd2", entity.lettercd2);
     row.SetField("lettercd3", entity.lettercd3);
     row.SetField("lettercd4", entity.lettercd4);
     row.SetField("lettercd5", entity.lettercd5);
     row.SetField("lettercd6", entity.lettercd6);
     row.SetField("stagecd", entity.stagecd);
     row.SetField("awardnm", entity.awardnm);
     row.SetField("awarddesc", entity.awarddesc);
     row.SetField("custpo", entity.custpo);
     row.SetField("user9", entity.user9);
     row.SetField("revision", entity.revision);
     row.SetField("user1", entity.user1);
     row.SetField("user2", entity.user2);
     row.SetField("transdt", entity.transdt);
     row.SetField("transtm", entity.transtm);
     row.SetField("operinit", entity.operinit);
     row.SetField("contact", entity.contact);
     row.SetField("contactphno", entity.contactphno);
     row.SetField("notesfl", entity.notesfl);
     row.SetField("lostbusty", entity.lostbusty);
     row.SetField("openinit", entity.openinit);
     row.SetField("termstype", entity.termstype);
     row.SetField("slsrepin", entity.slsrepin);
     row.SetField("slsrepout", entity.slsrepout);
     row.SetField("hirevno", entity.hirevno);
     row.SetField("pricetype", entity.pricetype);
     row.SetField("pricecd", entity.pricecd);
     row.SetField("disccd", entity.disccd);
     row.SetField("submitfl", entity.submitfl);
     row.SetField("origcustpros", entity.origcustpros);
     row.SetField("origcptype", entity.origcptype);
     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("relprocessfl", entity.relprocessfl);
     row.SetField("relcompfl", entity.relcompfl);
     row.SetField("relinit", entity.relinit);
     row.SetField("refer", entity.refer);
     row.SetField("useshiptofl", entity.useshiptofl);
     row.SetField("usewhsefl", entity.usewhsefl);
     row.SetField("overpdscfl", entity.overpdscfl);
     row.SetField("transtype", entity.transtype);
     row.SetField("restrictty", entity.restrictty);
     row.SetField("orderdisp", entity.orderdisp);
     row.SetField("reqshipdt", entity.reqshipdt);
     row.SetField("promisedt", entity.promisedt);
     row.SetField("opentorelfl", entity.opentorelfl);
     row.SetField("shipviaty", entity.shipviaty);
     row.SetField("lumpbillamt", entity.lumpbillamt);
     row.SetField("lumpbillfl", entity.lumpbillfl);
     row.SetField("lumppricefl", entity.lumppricefl);
     row.SetField("arpwhse", entity.arpwhse);
     row.SetField("approvty", entity.approvty);
     row.SetField("fpcustno", entity.fpcustno);
     row.SetField("transproc", entity.transproc);
     row.SetField("bpehRowID", entity.rowID.ToByteArray());
 }