Ejemplo n.º 1
0
 /// <summary>
 /// Build a minimal row from a class (key fields only)
 /// </summary>
 public static void BuildMinimalRow(ref DataRow row, PvSrolnBase entity)
 {
     row.SetField("cono", entity.cono);
     row.SetField("repairordno", entity.repairordno);
     row.SetField("repairordsuf", entity.repairordsuf);
     row.SetField("lineno", entity.lineno);
     row.SetField("pv_srolnRowID", entity.rowID.ToByteArray());
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromPvSrolnBase(ref DataRow row, PvSrolnBase entity)
 {
     row.SetField("cono", entity.cono);
     row.SetField("repairordno", entity.repairordno);
     row.SetField("repairordsuf", entity.repairordsuf);
     row.SetField("price", entity.price);
     row.SetField("warrantycd", entity.warrantycd);
     row.SetField("invclaimcd", entity.invclaimcd);
     row.SetField("srtqty", entity.srtqty);
     row.SetField("srtoverfl", entity.srtoverfl);
     row.SetField("damagecd", entity.damagecd);
     row.SetField("orderno", entity.orderno);
     row.SetField("ordersuf", entity.ordersuf);
     row.SetField("prodcat", entity.prodcat);
     row.SetField("prodline", entity.prodline);
     row.SetField("specnstype", entity.specnstype);
     row.SetField("vendno", entity.vendno);
     row.SetField("vvendno", entity.vvendno);
     row.SetField("orgprod", entity.orgprod);
     row.SetField("orgprodcat", entity.orgprodcat);
     row.SetField("orgprodcost", entity.orgprodcost);
     row.SetField("orgspecnstype", entity.orgspecnstype);
     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("maint-l", entity.maintL);
     row.SetField("swlnno", entity.swlnno);
     row.SetField("workperfdt", entity.workperfdt);
     row.SetField("lineno", entity.lineno);
     row.SetField("orgprice", entity.orgprice);
     row.SetField("orgprodline", entity.orgprodline);
     row.SetField("prodcost", entity.prodcost);
     row.SetField("srtfl", entity.srtfl);
     row.SetField("srthrs", entity.srthrs);
     row.SetField("swertrecid", entity.swertrecid);
     row.SetField("swertrowid", entity.swertrowid);
     row.SetField("swpriceoverfl", entity.swpriceoverfl);
     row.SetField("typecd", entity.typecd);
     row.SetField("unit", entity.unit);
     row.SetField("orgvendno", entity.orgvendno);
     row.SetField("orgvvendno", entity.orgvvendno);
     row.SetField("orgtypecd", entity.orgtypecd);
     row.SetField("orgvendnosw", entity.orgvendnosw);
     row.SetField("orgwarrantycd", entity.orgwarrantycd);
     row.SetField("prod", entity.prod);
     row.SetField("vendnosw", entity.vendnosw);
     row.SetField("userchr1", entity.userchr1);
     row.SetField("userchr2", entity.userchr2);
     row.SetField("userchr3", entity.userchr3);
     row.SetField("userchr4", entity.userchr4);
     row.SetField("userdec1", entity.userdec1);
     row.SetField("userdec2", entity.userdec2);
     row.SetField("userdt1", entity.userdt1);
     row.SetField("userdt2", entity.userdt2);
     row.SetField("user10", entity.user10);
     row.SetField("user11", entity.user11);
     row.SetField("user12", entity.user12);
     row.SetField("user13", entity.user13);
     row.SetField("user14", entity.user14);
     row.SetField("user15", entity.user15);
     row.SetField("user16", entity.user16);
     row.SetField("user17", entity.user17);
     row.SetField("user18", entity.user18);
     row.SetField("user19", entity.user19);
     row.SetField("user20", entity.user20);
     row.SetField("user21", entity.user21);
     row.SetField("user22", entity.user22);
     row.SetField("user23", entity.user23);
     row.SetField("user24", entity.user24);
     row.SetField("printpricefl", entity.printpricefl);
     row.SetField("pv_srolnRowID", entity.rowID.ToByteArray());
 }