Exemplo n.º 1
0
 /// <summary>
 /// Build a minimal row from a class (key fields only)
 /// </summary>
 public static void BuildMinimalRow(ref DataRow row, BpelvBase entity)
 {
     row.SetField("cono", entity.cono);
     row.SetField("bpid", entity.bpid);
     row.SetField("lineno", entity.lineno);
     row.SetField("vendno", entity.vendno);
     row.SetField("revno", entity.revno);
     row.SetField("bpelvRowID", entity.rowID.ToByteArray());
 }
Exemplo n.º 2
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromBpelvBase(ref DataRow row, BpelvBase entity)
 {
     row.SetField("cono", entity.cono);
     row.SetField("bpid", entity.bpid);
     row.SetField("user9", entity.user9);
     row.SetField("user1", entity.user1);
     row.SetField("user2", entity.user2);
     row.SetField("transdt", entity.transdt);
     row.SetField("transtm", entity.transtm);
     row.SetField("operinit", entity.operinit);
     row.SetField("lineno", entity.lineno);
     row.SetField("vendno", entity.vendno);
     row.SetField("leadtime", entity.leadtime);
     row.SetField("cstform1", entity.cstform1);
     row.SetField("cstform2", entity.cstform2);
     row.SetField("cstform3", entity.cstform3);
     row.SetField("cstform4", entity.cstform4);
     row.SetField("cstform5", entity.cstform5);
     row.SetField("cstform6", entity.cstform6);
     row.SetField("cstform7", entity.cstform7);
     row.SetField("cstform8", entity.cstform8);
     row.SetField("cstform9", entity.cstform9);
     row.SetField("cstform10", entity.cstform10);
     row.SetField("cstform11", entity.cstform11);
     row.SetField("cstform12", entity.cstform12);
     row.SetField("cstform13", entity.cstform13);
     row.SetField("cstform14", entity.cstform14);
     row.SetField("cstform15", entity.cstform15);
     row.SetField("vendquote", entity.vendquote);
     row.SetField("quotedt", entity.quotedt);
     row.SetField("expiredt", entity.expiredt);
     row.SetField("linedisp", entity.linedisp);
     row.SetField("cstformty", entity.cstformty);
     row.SetField("cost", entity.cost);
     row.SetField("prod", entity.prod);
     row.SetField("user3", entity.user3);
     row.SetField("prodcost", entity.prodcost);
     row.SetField("user5", entity.user5);
     row.SetField("revno", entity.revno);
     row.SetField("notesfl", entity.notesfl);
     row.SetField("pdcost", entity.pdcost);
     row.SetField("user4", entity.user4);
     row.SetField("user6", entity.user6);
     row.SetField("user7", entity.user7);
     row.SetField("user8", entity.user8);
     row.SetField("vendorprod", entity.vendorprod);
     row.SetField("transproc", entity.transproc);
     row.SetField("bpelvRowID", entity.rowID.ToByteArray());
 }