Ejemplo n.º 1
0
 /// <summary>
 /// Build a minimal row from a class (key fields only)
 /// </summary>
 public static void BuildMinimalRow(ref DataRow row, VaspslvBase entity)
 {
     row.SetField("cono", entity.cono);
     row.SetField("shipprod", entity.shipprod);
     row.SetField("whse", entity.whse);
     row.SetField("verno", entity.verno);
     row.SetField("seqno", entity.seqno);
     row.SetField("lineno", entity.lineno);
     row.SetField("vaspslvRowID", entity.rowID.ToByteArray());
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromVaspslvBase(ref DataRow row, VaspslvBase entity)
 {
     row.SetField("cono", entity.cono);
     row.SetField("shipprod", entity.shipprod);
     row.SetField("whse", entity.whse);
     row.SetField("verno", entity.verno);
     row.SetField("seqno", entity.seqno);
     row.SetField("lineno", entity.lineno);
     row.SetField("qtybasetotfl", entity.qtybasetotfl);
     row.SetField("nonstockty", entity.nonstockty);
     row.SetField("compprod", entity.compprod);
     row.SetField("unit", entity.unit);
     row.SetField("unitconv", entity.unitconv);
     row.SetField("qtyneeded", entity.qtyneeded);
     row.SetField("arpvendno", entity.arpvendno);
     row.SetField("arpprodline", entity.arpprodline);
     row.SetField("arpwhse", entity.arpwhse);
     row.SetField("proddesc", entity.proddesc);
     row.SetField("prodcat", entity.prodcat);
     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("proddesc2", entity.proddesc2);
     row.SetField("transdt", entity.transdt);
     row.SetField("transtm", entity.transtm);
     row.SetField("operinit", entity.operinit);
     row.SetField("prodcost", entity.prodcost);
     row.SetField("laborflatrtfl", entity.laborflatrtfl);
     row.SetField("labortype", entity.labortype);
     row.SetField("laborunits", entity.laborunits);
     row.SetField("timeelapsed", entity.timeelapsed);
     row.SetField("timeactty", entity.timeactty);
     row.SetField("costoverfl", entity.costoverfl);
     row.SetField("intermprodfl", entity.intermprodfl);
     row.SetField("commentfl", entity.commentfl);
     row.SetField("directfl", entity.directfl);
     row.SetField("usagefl", entity.usagefl);
     row.SetField("timecomment", entity.timecomment);
     row.SetField("cubes", entity.cubes);
     row.SetField("weight", entity.weight);
     row.SetField("transproc", entity.transproc);
     row.SetField("lgthcompfl", entity.lgthcompfl);
     row.SetField("scrapfctr", entity.scrapfctr);
     row.SetField("maxlaborcalcqty", entity.maxlaborcalcqty);
     row.SetField("cutoffty", entity.cutoffty);
     row.SetField("leadtm", entity.leadtm);
     row.SetField("vaspslvRowID", entity.rowID.ToByteArray());
 }