コード例 #1
0
 /// <summary>
 /// Build a minimal row from a class (key fields only)
 /// </summary>
 public static void BuildMinimalRow(ref DataRow row, JmelcBase entity)
 {
     row.SetField("cono", entity.cono);
     row.SetField("jobid", entity.jobid);
     row.SetField("jobrevno", entity.jobrevno);
     row.SetField("lineno", entity.lineno);
     row.SetField("custno", entity.custno);
     row.SetField("name", entity.name);
     row.SetField("jmelcRowID", entity.rowID.ToByteArray());
 }
コード例 #2
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromJmelcBase(ref DataRow row, JmelcBase entity)
 {
     row.SetField("cono", entity.cono);
     row.SetField("jobid", entity.jobid);
     row.SetField("jobrevno", entity.jobrevno);
     row.SetField("lineno", entity.lineno);
     row.SetField("custno", entity.custno);
     row.SetField("name", entity.name);
     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("quote", entity.quote);
     row.SetField("quotedt", entity.quotedt);
     row.SetField("expiredt", entity.expiredt);
     row.SetField("cstformty", entity.cstformty);
     row.SetField("cost", entity.cost);
     row.SetField("prod", entity.prod);
     row.SetField("prodcost", entity.prodcost);
     row.SetField("notesfl", entity.notesfl);
     row.SetField("pdcost", entity.pdcost);
     row.SetField("transdt", entity.transdt);
     row.SetField("transtm", entity.transtm);
     row.SetField("operinit", entity.operinit);
     row.SetField("transproc", entity.transproc);
     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("jmelcRowID", entity.rowID.ToByteArray());
 }