コード例 #1
0
 /// <summary>
 /// Build a minimal row from a class (key fields only)
 /// </summary>
 public static void BuildMinimalRow(ref DataRow row, OeelextraBase entity)
 {
     row.SetField("cono", entity.cono);
     row.SetField("orderno", entity.orderno);
     row.SetField("ordersuf", entity.ordersuf);
     row.SetField("lineno", entity.lineno);
     row.SetField("oeelextraRowID", entity.rowID.ToByteArray());
 }
コード例 #2
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromOeelextraBase(ref DataRow row, OeelextraBase entity)
 {
     row.SetField("cono", entity.cono);
     row.SetField("orderno", entity.orderno);
     row.SetField("ordersuf", entity.ordersuf);
     row.SetField("lineno", entity.lineno);
     row.SetField("department", entity.department);
     row.SetField("custglno", entity.custglno);
     row.SetField("chargeno", entity.chargeno);
     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("lastpricepd", entity.lastpricepd);
     row.SetField("promisedt", entity.promisedt);
     row.SetField("origdt", entity.origdt);
     row.SetField("approvedt", entity.approvedt);
     row.SetField("machinenum", entity.machinenum);
     row.SetField("restrictdesc", entity.restrictdesc);
     row.SetField("certcode", entity.certcode);
     row.SetField("certexpdt", entity.certexpdt);
     row.SetField("certaccptdt", entity.certaccptdt);
     row.SetField("certaccptuser", entity.certaccptuser);
     row.SetField("certsaledt", entity.certsaledt);
     row.SetField("restrictcd", entity.restrictcd);
     row.SetField("certauthuser", entity.certauthuser);
     row.SetField("restrictovrfl", entity.restrictovrfl);
     row.SetField("restrictovrcom", entity.restrictovrcom);
     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("srnsuserdefined1", entity.srnsuserdefined1);
     row.SetField("srnsuserdefined2", entity.srnsuserdefined2);
     row.SetField("srnsuserdefined3", entity.srnsuserdefined3);
     row.SetField("srnsuserdefined4", entity.srnsuserdefined4);
     row.SetField("srnsuserdefined5", entity.srnsuserdefined5);
     row.SetField("srnsuserdefined6", entity.srnsuserdefined6);
     row.SetField("srnsuserdefined7", entity.srnsuserdefined7);
     row.SetField("srnsuserdefined8", entity.srnsuserdefined8);
     row.SetField("srnsuserdefined9", entity.srnsuserdefined9);
     row.SetField("srnsuserdefined10", entity.srnsuserdefined10);
     row.SetField("custreserveovrfl", entity.custreserveovrfl);
     row.SetField("custreservecontractno", entity.custreservecontractno);
     row.SetField("custreserverowpointer", entity.custreserverowpointer);
     row.SetField("custreserveovrpointer", entity.custreserveovrpointer);
     row.SetField("oeelextraRowID", entity.rowID.ToByteArray());
 }