Example #1
0
 /// <summary>
 /// Build a minimal row from a class (key fields only)
 /// </summary>
 public static void BuildMinimalRow(ref DataRow row, BpelBase entity)
 {
     row.SetField("cono", entity.cono);
     row.SetField("bpid", entity.bpid);
     row.SetField("revno", entity.revno);
     row.SetField("lineno", entity.lineno);
     row.SetField("bpelRowID", entity.rowID.ToByteArray());
 }
Example #2
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromBpelBase(ref DataRow row, BpelBase entity)
 {
     row.SetField("cono", entity.cono);
     row.SetField("bpid", entity.bpid);
     row.SetField("revno", entity.revno);
     row.SetField("user9", entity.user9);
     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("lineno", entity.lineno);
     row.SetField("linetype", entity.linetype);
     row.SetField("prod", entity.prod);
     row.SetField("reqprod", entity.reqprod);
     row.SetField("xrefprodty", entity.xrefprodty);
     row.SetField("itemid", entity.itemid);
     row.SetField("nonstockty", entity.nonstockty);
     row.SetField("qtyord", entity.qtyord);
     row.SetField("unit", entity.unit);
     row.SetField("price", entity.price);
     row.SetField("baseprice", entity.baseprice);
     row.SetField("listprice", entity.listprice);
     row.SetField("awardprice", entity.awardprice);
     row.SetField("pdcost", entity.pdcost);
     row.SetField("prcformty", entity.prcformty);
     row.SetField("icspecrecno", entity.icspecrecno);
     row.SetField("cstformty", entity.cstformty);
     row.SetField("prodline", entity.prodline);
     row.SetField("descrip1", entity.descrip1);
     row.SetField("descrip2", entity.descrip2);
     row.SetField("descrip3", entity.descrip3);
     row.SetField("descrip4", entity.descrip4);
     row.SetField("descrip5", entity.descrip5);
     row.SetField("lockprfl", entity.lockprfl);
     row.SetField("lockcsfl", entity.lockcsfl);
     row.SetField("linestat", entity.linestat);
     row.SetField("vendno", entity.vendno);
     row.SetField("lockvnfl", entity.lockvnfl);
     row.SetField("minmargin", entity.minmargin);
     row.SetField("printtype", entity.printtype);
     row.SetField("user5", entity.user5);
     row.SetField("cost", entity.cost);
     row.SetField("cstform1", entity.cstform1);
     row.SetField("cstform2", entity.cstform2);
     row.SetField("cstform3", entity.cstform3);
     row.SetField("cstform4", entity.cstform4);
     row.SetField("cstform5", entity.cstform5);
     row.SetField("cstform6", entity.cstform6);
     row.SetField("cstform7", entity.cstform7);
     row.SetField("cstform8", entity.cstform8);
     row.SetField("cstform9", entity.cstform9);
     row.SetField("cstform10", entity.cstform10);
     row.SetField("cstform11", entity.cstform11);
     row.SetField("cstform12", entity.cstform12);
     row.SetField("cstform13", entity.cstform13);
     row.SetField("cstform14", entity.cstform14);
     row.SetField("cstform15", entity.cstform15);
     row.SetField("prcform1", entity.prcform1);
     row.SetField("prcform2", entity.prcform2);
     row.SetField("prcform3", entity.prcform3);
     row.SetField("prcform4", entity.prcform4);
     row.SetField("prcform5", entity.prcform5);
     row.SetField("prcform6", entity.prcform6);
     row.SetField("prcform7", entity.prcform7);
     row.SetField("prcform8", entity.prcform8);
     row.SetField("prcform9", entity.prcform9);
     row.SetField("prcform10", entity.prcform10);
     row.SetField("prcform11", entity.prcform11);
     row.SetField("prcform12", entity.prcform12);
     row.SetField("prcform13", entity.prcform13);
     row.SetField("prcform14", entity.prcform14);
     row.SetField("prcform15", entity.prcform15);
     row.SetField("pricetype", entity.pricetype);
     row.SetField("pricecd", entity.pricecd);
     row.SetField("prcformfl", entity.prcformfl);
     row.SetField("marginpct", entity.marginpct);
     row.SetField("priceoverfl", entity.priceoverfl);
     row.SetField("costoverfl", entity.costoverfl);
     row.SetField("taxablety", entity.taxablety);
     row.SetField("specnstype", entity.specnstype);
     row.SetField("whse", entity.whse);
     row.SetField("notimeschg", entity.notimeschg);
     row.SetField("convertstg", entity.convertstg);
     row.SetField("prodcat", entity.prodcat);
     row.SetField("commtype", entity.commtype);
     row.SetField("lastcost", entity.lastcost);
     row.SetField("lastprice", entity.lastprice);
     row.SetField("lastmargin", entity.lastmargin);
     row.SetField("awardty", entity.awardty);
     row.SetField("disccd", entity.disccd);
     row.SetField("priceclty", entity.priceclty);
     row.SetField("kitfl", entity.kitfl);
     row.SetField("kitrollty", entity.kitrollty);
     row.SetField("pdrecno", entity.pdrecno);
     row.SetField("lastcstovfl", entity.lastcstovfl);
     row.SetField("lastprcovfl", entity.lastprcovfl);
     row.SetField("lastvendno", entity.lastvendno);
     row.SetField("qtybreakty", entity.qtybreakty);
     row.SetField("commentfl", entity.commentfl);
     row.SetField("promofl", entity.promofl);
     row.SetField("extprice", entity.extprice);
     row.SetField("extcost", entity.extcost);
     row.SetField("lastextprc", entity.lastextprc);
     row.SetField("lastextcst", entity.lastextcst);
     row.SetField("unitconv", entity.unitconv);
     row.SetField("prodcost", entity.prodcost);
     row.SetField("pricecostty", entity.pricecostty);
     row.SetField("lastlockfl", entity.lastlockfl);
     row.SetField("user3", entity.user3);
     row.SetField("user4", entity.user4);
     row.SetField("user6", entity.user6);
     row.SetField("user7", entity.user7);
     row.SetField("user8", entity.user8);
     row.SetField("seqid", entity.seqid);
     row.SetField("prccostty", entity.prccostty);
     row.SetField("relprocessfl", entity.relprocessfl);
     row.SetField("accepttype", entity.accepttype);
     row.SetField("jobno", entity.jobno);
     row.SetField("usepricefl", entity.usepricefl);
     row.SetField("maxqty", entity.maxqty);
     row.SetField("minqty", entity.minqty);
     row.SetField("termsdiscfl", entity.termsdiscfl);
     row.SetField("termspct", entity.termspct);
     row.SetField("ordertype", entity.ordertype);
     row.SetField("cataddfl", entity.cataddfl);
     row.SetField("reqshipdt", entity.reqshipdt);
     row.SetField("promisedt", entity.promisedt);
     row.SetField("qtyopen", entity.qtyopen);
     row.SetField("qtyrel", entity.qtyrel);
     row.SetField("qtybr", entity.qtybr);
     row.SetField("speclinedo", entity.speclinedo);
     row.SetField("duedt", entity.duedt);
     row.SetField("shipfmno", entity.shipfmno);
     row.SetField("arpwhse", entity.arpwhse);
     row.SetField("transproc", entity.transproc);
     row.SetField("bpelRowID", entity.rowID.ToByteArray());
 }