示例#1
0
 /// <summary>
 /// Build a minimal row from a class (key fields only)
 /// </summary>
 public static void BuildMinimalRow(ref DataRow row, PvPdspsBase entity)
 {
     row.SetField("cono", entity.cono);
     row.SetField("prod", entity.prod);
     row.SetField("pricesheet", entity.pricesheet);
     row.SetField("whse", entity.whse);
     row.SetField("pv_pdspsRowID", entity.rowID.ToByteArray());
 }
示例#2
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromPvPdspsBase(ref DataRow row, PvPdspsBase entity)
 {
     row.SetField("baseprice", entity.baseprice);
     row.SetField("cono", entity.cono);
     row.SetField("effectivedt", entity.effectivedt);
     row.SetField("listprice", entity.listprice);
     row.SetField("custmatrix1", entity.custmatrix1);
     row.SetField("custmatrix2", entity.custmatrix2);
     row.SetField("custmatrix3", entity.custmatrix3);
     row.SetField("custmatrix4", entity.custmatrix4);
     row.SetField("custmatrix5", entity.custmatrix5);
     row.SetField("custmatrix6", entity.custmatrix6);
     row.SetField("custmatrix7", entity.custmatrix7);
     row.SetField("custmatrix8", entity.custmatrix8);
     row.SetField("custmatrix9", entity.custmatrix9);
     row.SetField("version", entity.version);
     row.SetField("prod", entity.prod);
     row.SetField("rebatecost", entity.rebatecost);
     row.SetField("replcost", entity.replcost);
     row.SetField("pricesheet", entity.pricesheet);
     row.SetField("stndcost", entity.stndcost);
     row.SetField("vendmatrix1", entity.vendmatrix1);
     row.SetField("vendmatrix2", entity.vendmatrix2);
     row.SetField("vendmatrix3", entity.vendmatrix3);
     row.SetField("vendmatrix4", entity.vendmatrix4);
     row.SetField("vendmatrix5", entity.vendmatrix5);
     row.SetField("vendmatrix6", entity.vendmatrix6);
     row.SetField("vendmatrix7", entity.vendmatrix7);
     row.SetField("vendmatrix8", entity.vendmatrix8);
     row.SetField("vendmatrix9", entity.vendmatrix9);
     row.SetField("whse", entity.whse);
     row.SetField("zone", entity.zone);
     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("operinit", entity.operinit);
     row.SetField("transdt", entity.transdt);
     row.SetField("transtm", entity.transtm);
     row.SetField("transproc", entity.transproc);
     row.SetField("slchgdt", entity.slchgdt);
     row.SetField("pv_pdspsRowID", entity.rowID.ToByteArray());
 }