/// <summary> /// Build a minimal row from a class (key fields only) /// </summary> public static void BuildMinimalRow(ref DataRow row, ApebtBase entity) { row.SetField("cono", entity.cono); row.SetField("seqno", entity.seqno); row.SetField("setno", entity.setno); row.SetField("batchnm", entity.batchnm); row.SetField("apebtRowID", entity.rowID.ToByteArray()); }
/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromApebtBase(ref DataRow row, ApebtBase entity) { row.SetField("cono", entity.cono); row.SetField("vendno", entity.vendno); row.SetField("invsuf", entity.invsuf); row.SetField("amount", entity.amount); row.SetField("discamt", entity.discamt); row.SetField("transcd", entity.transcd); row.SetField("transdt", entity.transdt); row.SetField("transtm", entity.transtm); row.SetField("operinit", entity.operinit); row.SetField("seqno", entity.seqno); row.SetField("setno", entity.setno); row.SetField("invdt", entity.invdt); row.SetField("duedt", entity.duedt); row.SetField("discdt", entity.discdt); row.SetField("refer", entity.refer); row.SetField("disputefl", entity.disputefl); row.SetField("termstype", entity.termstype); row.SetField("batchnm", entity.batchnm); row.SetField("duedays", entity.duedays); row.SetField("discdays", entity.discdays); row.SetField("nopays", entity.nopays); row.SetField("freqdays", entity.freqdays); row.SetField("discpct", entity.discpct); row.SetField("apinvno", entity.apinvno); row.SetField("invtype", entity.invtype); row.SetField("immedpyfl", entity.immedpyfl); row.SetField("name", entity.name); row.SetField("addr1", entity.addr1); row.SetField("addr2", entity.addr2); row.SetField("city", entity.city); row.SetField("state", entity.state); row.SetField("zipcd", entity.zipcd); row.SetField("manaddrfl", entity.manaddrfl); row.SetField("checkno", entity.checkno); row.SetField("bankno", entity.bankno); row.SetField("addonamt1", entity.addonamt1); row.SetField("addonamt2", entity.addonamt2); row.SetField("gsttaxamt", entity.gsttaxamt); row.SetField("psttaxamt", entity.psttaxamt); row.SetField("currencyty", entity.currencyty); row.SetField("exchgrate1", entity.exchgrate1); row.SetField("exchgrate2", entity.exchgrate2); row.SetField("divno", entity.divno); row.SetField("maxpost", entity.maxpost); row.SetField("nopost", entity.nopost); row.SetField("notresaleamt", entity.notresaleamt); row.SetField("createdby", entity.createdby); 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("jrnlno", entity.jrnlno); row.SetField("suspfl", entity.suspfl); row.SetField("transproc", entity.transproc); row.SetField("addr3", entity.addr3); row.SetField("apebtRowID", entity.rowID.ToByteArray()); }