/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromWlehBase(ref DataRow row, WlehBase entity) { row.SetField("cono", entity.cono); row.SetField("whse", entity.whse); row.SetField("function", entity.function); row.SetField("ordertype", entity.ordertype); row.SetField("orderno", entity.orderno); row.SetField("ordersuf", entity.ordersuf); row.SetField("operinit", entity.operinit); row.SetField("transdt", entity.transdt); row.SetField("transtm", entity.transtm); 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("priority", entity.priority); row.SetField("statustype", entity.statustype); row.SetField("errormsg", entity.errormsg); row.SetField("vendno", entity.vendno); row.SetField("duedt", entity.duedt); row.SetField("custno", entity.custno); row.SetField("shiptonm", entity.shiptonm); row.SetField("shiptoaddr1", entity.shiptoaddr1); row.SetField("shiptoaddr2", entity.shiptoaddr2); row.SetField("shiptocity", entity.shiptocity); row.SetField("shiptost", entity.shiptost); row.SetField("shiptozip", entity.shiptozip); row.SetField("shipdate", entity.shipdate); row.SetField("shipviaty", entity.shipviaty); row.SetField("custpo", entity.custpo); row.SetField("transtype", entity.transtype); row.SetField("shipinstr", entity.shipinstr); row.SetField("addonnet", entity.addonnet); row.SetField("nopackages", entity.nopackages); row.SetField("actfreight", entity.actfreight); row.SetField("updtype", entity.updtype); row.SetField("setno", entity.setno); row.SetField("shipmentid", entity.shipmentid); row.SetField("edifl", entity.edifl); row.SetField("kitbuildty", entity.kitbuildty); row.SetField("transid", entity.transid); row.SetField("reply", entity.reply); row.SetField("errorno", entity.errorno); row.SetField("receiverno", entity.receiverno); row.SetField("shipfmno", entity.shipfmno); row.SetField("transproc", entity.transproc); row.SetField("shiptoaddr3", entity.shiptoaddr3); row.SetField("edishipmentid", entity.edishipmentid); row.SetField("edipackageid", entity.edipackageid); row.SetField("wlehRowID", entity.rowID.ToByteArray()); }
/// <summary> /// Build a minimal row from a class (key fields only) /// </summary> public static void BuildMinimalRow(ref DataRow row, WlehBase entity) { row.SetField("cono", entity.cono); row.SetField("whse", entity.whse); row.SetField("ordertype", entity.ordertype); row.SetField("orderno", entity.orderno); row.SetField("ordersuf", entity.ordersuf); row.SetField("setno", entity.setno); row.SetField("wlehRowID", entity.rowID.ToByteArray()); }