Beispiel #1
0
 /// <summary>
 /// Build a minimal row from a class (key fields only)
 /// </summary>
 public static void BuildMinimalRow(ref DataRow row, OeehextraBase entity)
 {
     row.SetField("cono", entity.cono);
     row.SetField("orderno", entity.orderno);
     row.SetField("ordersuf", entity.ordersuf);
     row.SetField("oeehextraRowID", entity.rowID.ToByteArray());
 }
Beispiel #2
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromOeehextraBase(ref DataRow row, OeehextraBase entity)
 {
     row.SetField("cono", entity.cono);
     row.SetField("orderno", entity.orderno);
     row.SetField("ordersuf", entity.ordersuf);
     row.SetField("employeeid", entity.employeeid);
     row.SetField("employeename", entity.employeename);
     row.SetField("department", entity.department);
     row.SetField("project", entity.project);
     row.SetField("workordernum", entity.workordernum);
     row.SetField("machinenum", entity.machinenum);
     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("sruserdefined1", entity.sruserdefined1);
     row.SetField("sruserdefined2", entity.sruserdefined2);
     row.SetField("sruserdefined3", entity.sruserdefined3);
     row.SetField("sruserdefined4", entity.sruserdefined4);
     row.SetField("sruserdefined5", entity.sruserdefined5);
     row.SetField("sruserdefined6", entity.sruserdefined6);
     row.SetField("sruserdefined7", entity.sruserdefined7);
     row.SetField("sruserdefined8", entity.sruserdefined8);
     row.SetField("sruserdefined9", entity.sruserdefined9);
     row.SetField("sruserdefined10", entity.sruserdefined10);
     row.SetField("shipmentnoticelist", entity.shipmentnoticelist);
     row.SetField("oeehextraRowID", entity.rowID.ToByteArray());
 }