コード例 #1
0
 /// <summary>
 /// Build a minimal row from a class (key fields only)
 /// </summary>
 public static void BuildMinimalRow(ref DataRow row, PderBase entity)
 {
     row.SetField("cono", entity.cono);
     row.SetField("rebatecd", entity.rebatecd);
     row.SetField("orderno", entity.orderno);
     row.SetField("ordersuf", entity.ordersuf);
     row.SetField("lineno", entity.lineno);
     row.SetField("seqno", entity.seqno);
     row.SetField("pdersuf", entity.pdersuf);
     row.SetField("pderRowID", entity.rowID.ToByteArray());
 }
コード例 #2
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromPderBase(ref DataRow row, PderBase entity)
 {
     row.SetField("cono", entity.cono);
     row.SetField("statustype", entity.statustype);
     row.SetField("rebatecd", entity.rebatecd);
     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("icspecrecno", entity.icspecrecno);
     row.SetField("rebrecno", entity.rebrecno);
     row.SetField("rebcost", entity.rebcost);
     row.SetField("orderno", entity.orderno);
     row.SetField("ordersuf", entity.ordersuf);
     row.SetField("lineno", entity.lineno);
     row.SetField("transdt", entity.transdt);
     row.SetField("transtm", entity.transtm);
     row.SetField("operinit", entity.operinit);
     row.SetField("stkqtyship", entity.stkqtyship);
     row.SetField("actcost", entity.actcost);
     row.SetField("actstkqty", entity.actstkqty);
     row.SetField("whse", entity.whse);
     row.SetField("vendno", entity.vendno);
     row.SetField("contractno", entity.contractno);
     row.SetField("custno", entity.custno);
     row.SetField("shipto", entity.shipto);
     row.SetField("dropshipty", entity.dropshipty);
     row.SetField("seqno", entity.seqno);
     row.SetField("frzrebty", entity.frzrebty);
     row.SetField("rptexrate", entity.rptexrate);
     row.SetField("reconexrate", entity.reconexrate);
     row.SetField("shipprod", entity.shipprod);
     row.SetField("unitconv", entity.unitconv);
     row.SetField("qtyship", entity.qtyship);
     row.SetField("invpodt", entity.invpodt);
     row.SetField("speccostty", entity.speccostty);
     row.SetField("csunperstk", entity.csunperstk);
     row.SetField("specconv", entity.specconv);
     row.SetField("prccostper", entity.prccostper);
     row.SetField("rebateamt", entity.rebateamt);
     row.SetField("rptrebamt", entity.rptrebamt);
     row.SetField("postdt", entity.postdt);
     row.SetField("refer", entity.refer);
     row.SetField("slsrepin", entity.slsrepin);
     row.SetField("slsrepout", entity.slsrepout);
     row.SetField("actcostto", entity.actcostto);
     row.SetField("rebcostto", entity.rebcostto);
     row.SetField("rebcalcty", entity.rebcalcty);
     row.SetField("rebatepct", entity.rebatepct);
     row.SetField("returnfl", entity.returnfl);
     row.SetField("commexcpty", entity.commexcpty);
     row.SetField("intclaimno", entity.intclaimno);
     row.SetField("srcupdtty", entity.srcupdtty);
     row.SetField("unit", entity.unit);
     row.SetField("netamt", entity.netamt);
     row.SetField("jrnlno", entity.jrnlno);
     row.SetField("setno", entity.setno);
     row.SetField("pdersuf", entity.pdersuf);
     row.SetField("divno", entity.divno);
     row.SetField("prodcat", entity.prodcat);
     row.SetField("transproc", entity.transproc);
     row.SetField("altrebrecno", entity.altrebrecno);
     row.SetField("transdttmz", entity.transdttmz);
     row.SetField("pderRowID", entity.rowID.ToByteArray());
 }