/// <summary> /// Build a minimal row from a class (key fields only) /// </summary> public static void BuildMinimalRow(ref DataRow row, OeelmBase entity) { row.SetField("cono", entity.cono); row.SetField("ordertype", entity.ordertype); row.SetField("orderno", entity.orderno); row.SetField("ordersuf", entity.ordersuf); row.SetField("lineno", entity.lineno); row.SetField("seqno", entity.seqno); row.SetField("bundleid", entity.bundleid); row.SetField("compseqno", entity.compseqno); row.SetField("oeelmRowID", entity.rowID.ToByteArray()); }
/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromOeelmBase(ref DataRow row, OeelmBase entity) { row.SetField("cono", entity.cono); row.SetField("ordertype", entity.ordertype); row.SetField("orderno", entity.orderno); row.SetField("ordersuf", entity.ordersuf); row.SetField("lineno", entity.lineno); row.SetField("seqno", entity.seqno); row.SetField("bundleid", entity.bundleid); row.SetField("compseqno", entity.compseqno); row.SetField("shipprod", entity.shipprod); row.SetField("unit", entity.unit); row.SetField("qtyord", entity.qtyord); row.SetField("pomixpct", entity.pomixpct); row.SetField("oemixpct", entity.oemixpct); row.SetField("qtyship", entity.qtyship); row.SetField("stkqtyord", entity.stkqtyord); row.SetField("stkqtyship", entity.stkqtyship); row.SetField("netord", entity.netord); row.SetField("netamt", entity.netamt); row.SetField("netcostord", entity.netcostord); row.SetField("netcostamt", entity.netcostamt); row.SetField("length", entity.length); row.SetField("custno", entity.custno); row.SetField("shipto", entity.shipto); row.SetField("transtype", entity.transtype); row.SetField("whse", entity.whse); row.SetField("invcost", entity.invcost); row.SetField("price", entity.price); row.SetField("prodcost", entity.prodcost); row.SetField("statustype", entity.statustype); row.SetField("commcost", entity.commcost); row.SetField("pricefl", entity.pricefl); row.SetField("glcost", entity.glcost); row.SetField("reqprod", entity.reqprod); row.SetField("conv", entity.conv); row.SetField("pdrecno", entity.pdrecno); row.SetField("icspecrecno", entity.icspecrecno); row.SetField("prevprod", entity.prevprod); row.SetField("prevqtyship", entity.prevqtyship); row.SetField("prevqtyshp", entity.prevqtyshp); row.SetField("prevqtyord", entity.prevqtyord); row.SetField("prevunit", entity.prevunit); row.SetField("prevconv", entity.prevconv); row.SetField("shpqtyoverfl", entity.shpqtyoverfl); row.SetField("qtycosted", entity.qtycosted); row.SetField("stkqtycosted", entity.stkqtycosted); row.SetField("netcostedamt", entity.netcostedamt); row.SetField("compaddonamt", entity.compaddonamt); row.SetField("compdiscount", entity.compdiscount); row.SetField("adjfactor", entity.adjfactor); row.SetField("adjcost", entity.adjcost); row.SetField("transdt", entity.transdt); row.SetField("transtm", entity.transtm); row.SetField("operinit", entity.operinit); row.SetField("transproc", entity.transproc); row.SetField("delayresrvfl", entity.delayresrvfl); row.SetField("qtybundle", entity.qtybundle); row.SetField("qtyprevbundle", entity.qtyprevbundle); 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("glcostrcv", entity.glcostrcv); row.SetField("addonamt1", entity.addonamt1); row.SetField("addonamt2", entity.addonamt2); row.SetField("addonamt3", entity.addonamt3); row.SetField("addonamt4", entity.addonamt4); row.SetField("dlength", entity.dlength); row.SetField("countryoforigin", entity.countryoforigin); row.SetField("tariffcd", entity.tariffcd); row.SetField("oeelmRowID", entity.rowID.ToByteArray()); }