/// <summary> /// Build a minimal row from a class (key fields only) /// </summary> public static void BuildMinimalRow(ref DataRow row, IcetcBase entity) { row.SetField("cono", entity.cono); row.SetField("whse", entity.whse); row.SetField("prod", entity.prod); row.SetField("transtype", entity.transtype); row.SetField("postdt", entity.postdt); row.SetField("icseqno", entity.icseqno); row.SetField("icetcRowID", entity.rowID.ToByteArray()); }
/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromIcetcBase(ref DataRow row, IcetcBase entity) { row.SetField("cono", entity.cono); row.SetField("whse", entity.whse); row.SetField("prod", entity.prod); row.SetField("transtype", entity.transtype); row.SetField("module", entity.module); row.SetField("postdt", entity.postdt); row.SetField("orderno", entity.orderno); row.SetField("ordersuf", entity.ordersuf); row.SetField("stkqtyship", entity.stkqtyship); row.SetField("divno", entity.divno); row.SetField("lineno", entity.lineno); row.SetField("cost", entity.cost); row.SetField("reasunavty", entity.reasunavty); row.SetField("transdt", entity.transdt); row.SetField("transtm", entity.transtm); row.SetField("operinit", entity.operinit); row.SetField("transproc", entity.transproc); row.SetField("mergedfl", entity.mergedfl); row.SetField("ticketno", entity.ticketno); row.SetField("phyadjexcp", entity.phyadjexcp); row.SetField("usageprod", entity.usageprod); row.SetField("usagefl", entity.usagefl); row.SetField("jrnlno", entity.jrnlno); row.SetField("setno", entity.setno); row.SetField("seqno", entity.seqno); row.SetField("icseqno", entity.icseqno); row.SetField("custno", entity.custno); row.SetField("custprod", entity.custprod); row.SetField("refer", entity.refer); row.SetField("icswcost", entity.icswcost); row.SetField("qtyunavail", entity.qtyunavail); row.SetField("icspecrecno", entity.icspecrecno); row.SetField("origcost", entity.origcost); row.SetField("usageqty", entity.usageqty); row.SetField("apinvno", entity.apinvno); row.SetField("usagewhse", entity.usagewhse); row.SetField("enterdt", entity.enterdt); row.SetField("exchgrate", entity.exchgrate); 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("srpacklistno", entity.srpacklistno); row.SetField("icetcRowID", entity.rowID.ToByteArray()); }