示例#1
0
 /// <summary>
 /// Build a minimal row from a class (key fields only)
 /// </summary>
 public static void BuildMinimalRow(ref DataRow row, EventTransBase entity)
 {
     row.SetField("cono", entity.cono);
     row.SetField("eventname", entity.eventname);
     row.SetField("eventdt", entity.eventdt);
     row.SetField("eventtm", entity.eventtm);
     row.SetField("recordno", entity.recordno);
     row.SetField("event_transRowID", entity.rowID.ToByteArray());
 }
示例#2
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromEventTransBase(ref DataRow row, EventTransBase entity)
 {
     row.SetField("cono", entity.cono);
     row.SetField("eventname", entity.eventname);
     row.SetField("eventdt", entity.eventdt);
     row.SetField("eventtm", entity.eventtm);
     row.SetField("recordno", entity.recordno);
     row.SetField("whse", entity.whse);
     row.SetField("prod", entity.prod);
     row.SetField("vendno", entity.vendno);
     row.SetField("lineno", entity.lineno);
     row.SetField("custno", entity.custno);
     row.SetField("proddesc", entity.proddesc);
     row.SetField("proddesc2", entity.proddesc2);
     row.SetField("refer", entity.refer);
     row.SetField("jrnlno", entity.jrnlno);
     row.SetField("doctype", entity.doctype);
     row.SetField("docorderno", entity.docorderno);
     row.SetField("docordersuf", entity.docordersuf);
     row.SetField("unit", entity.unit);
     row.SetField("shipto", entity.shipto);
     row.SetField("transtype", entity.transtype);
     row.SetField("qtyord", entity.qtyord);
     row.SetField("stkqtyord", entity.stkqtyord);
     row.SetField("qtyship", entity.qtyship);
     row.SetField("stkqtyship", entity.stkqtyship);
     row.SetField("unitconv", entity.unitconv);
     row.SetField("icspecrecno", entity.icspecrecno);
     row.SetField("prodcost", entity.prodcost);
     row.SetField("price", entity.price);
     row.SetField("stagecd", entity.stagecd);
     row.SetField("slsrepin", entity.slsrepin);
     row.SetField("slsrepout", entity.slsrepout);
     row.SetField("shipfmno", entity.shipfmno);
     row.SetField("amount", entity.amount);
     row.SetField("oper2", entity.oper2);
     row.SetField("region", entity.region);
     row.SetField("slctamountflds1", entity.slctamountflds1);
     row.SetField("slctamountflds2", entity.slctamountflds2);
     row.SetField("slctamountflds3", entity.slctamountflds3);
     row.SetField("slctamountflds4", entity.slctamountflds4);
     row.SetField("slctamountflds5", entity.slctamountflds5);
     row.SetField("slctamountflds6", entity.slctamountflds6);
     row.SetField("slctamountflds7", entity.slctamountflds7);
     row.SetField("slctamountflds8", entity.slctamountflds8);
     row.SetField("slctamountflds9", entity.slctamountflds9);
     row.SetField("slctamountflds10", entity.slctamountflds10);
     row.SetField("slctamountflds11", entity.slctamountflds11);
     row.SetField("slctamountflds12", entity.slctamountflds12);
     row.SetField("slctamountflds13", entity.slctamountflds13);
     row.SetField("slctamountflds14", entity.slctamountflds14);
     row.SetField("slctamountflds15", entity.slctamountflds15);
     row.SetField("slctamountflds16", entity.slctamountflds16);
     row.SetField("slctpriceflds1", entity.slctpriceflds1);
     row.SetField("slctpriceflds2", entity.slctpriceflds2);
     row.SetField("slctpriceflds3", entity.slctpriceflds3);
     row.SetField("slctpriceflds4", entity.slctpriceflds4);
     row.SetField("slctcharflds1", entity.slctcharflds1);
     row.SetField("slctcharflds2", entity.slctcharflds2);
     row.SetField("slctcharflds3", entity.slctcharflds3);
     row.SetField("slctcharflds4", entity.slctcharflds4);
     row.SetField("slctcharflds5", entity.slctcharflds5);
     row.SetField("slctcharflds6", entity.slctcharflds6);
     row.SetField("slctcharflds7", entity.slctcharflds7);
     row.SetField("slctcharflds8", entity.slctcharflds8);
     row.SetField("slctcharflds9", entity.slctcharflds9);
     row.SetField("slctcharflds10", entity.slctcharflds10);
     row.SetField("slctcharflds11", entity.slctcharflds11);
     row.SetField("slctcharflds12", entity.slctcharflds12);
     row.SetField("slctcharflds13", entity.slctcharflds13);
     row.SetField("slctcharflds14", entity.slctcharflds14);
     row.SetField("slctcharflds15", entity.slctcharflds15);
     row.SetField("slctcharflds16", entity.slctcharflds16);
     row.SetField("slctdateflds1", entity.slctdateflds1);
     row.SetField("slctdateflds2", entity.slctdateflds2);
     row.SetField("slctdateflds3", entity.slctdateflds3);
     row.SetField("slctdateflds4", entity.slctdateflds4);
     row.SetField("slctdateflds5", entity.slctdateflds5);
     row.SetField("slctdateflds6", entity.slctdateflds6);
     row.SetField("takenby", entity.takenby);
     row.SetField("contactid", entity.contactid);
     row.SetField("prodcat", entity.prodcat);
     row.SetField("transdt", entity.transdt);
     row.SetField("transtm", entity.transtm);
     row.SetField("transproc", entity.transproc);
     row.SetField("operinit", entity.operinit);
     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("docjobid", entity.docjobid);
     row.SetField("event_transRowID", entity.rowID.ToByteArray());
 }