/// <summary> /// Build a minimal row from a class (key fields only) /// </summary> public static void BuildMinimalRow(ref DataRow row, ApetBase entity) { row.SetField("apetRowID", entity.rowID.ToByteArray()); row.SetField("rowpointer", entity.rowpointer); }
/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromApetBase(ref DataRow row, ApetBase entity) { row.SetField("cono", entity.cono); row.SetField("vendno", entity.vendno); row.SetField("statustype", entity.statustype); row.SetField("transcd", entity.transcd); row.SetField("apinvno", entity.apinvno); row.SetField("seqno", entity.seqno); row.SetField("budgetno", entity.budgetno); row.SetField("amount", entity.amount); row.SetField("sourcecd", entity.sourcecd); row.SetField("jrnlno", entity.jrnlno); row.SetField("perfisc", entity.perfisc); row.SetField("percal", entity.percal); row.SetField("setno", entity.setno); row.SetField("transno", entity.transno); row.SetField("invdt", entity.invdt); row.SetField("discamt", entity.discamt); row.SetField("duedt", entity.duedt); row.SetField("discdt", entity.discdt); row.SetField("termstype", entity.termstype); row.SetField("paymtdt", entity.paymtdt); row.SetField("paymtcd", entity.paymtcd); row.SetField("paymtamt", entity.paymtamt); row.SetField("origseqno", entity.origseqno); row.SetField("nextseqno", entity.nextseqno); row.SetField("refer", entity.refer); row.SetField("transdt", entity.transdt); row.SetField("transtm", entity.transtm); row.SetField("operinit", entity.operinit); row.SetField("jrnlamt", entity.jrnlamt); row.SetField("disputefl", entity.disputefl); row.SetField("invtype", entity.invtype); row.SetField("immedpyfl", entity.immedpyfl); row.SetField("bankno", entity.bankno); row.SetField("checkno", entity.checkno); row.SetField("divno", entity.divno); row.SetField("chkprintfl", entity.chkprintfl); row.SetField("addonamt1", entity.addonamt1); row.SetField("addonamt2", entity.addonamt2); row.SetField("manaddrfl", entity.manaddrfl); row.SetField("vendtype", entity.vendtype); row.SetField("pidjrnlno", entity.pidjrnlno); row.SetField("pidsetno", entity.pidsetno); row.SetField("vendno2", entity.vendno2); row.SetField("manchkfl", entity.manchkfl); row.SetField("module", entity.module); row.SetField("gsttaxamt", entity.gsttaxamt); row.SetField("psttaxamt", entity.psttaxamt); row.SetField("capaddonamt", entity.capaddonamt); row.SetField("currencyty", entity.currencyty); row.SetField("exchgrate1", entity.exchgrate1); row.SetField("exchgrate2", entity.exchgrate2); row.SetField("origdisc", entity.origdisc); row.SetField("postdt", entity.postdt); row.SetField("gldivno", entity.gldivno); row.SetField("gldeptno", entity.gldeptno); row.SetField("glacctno", entity.glacctno); row.SetField("glsubno", entity.glsubno); row.SetField("createdby", entity.createdby); row.SetField("notesfl", entity.notesfl); row.SetField("fppayfl", entity.fppayfl); 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("urecno", entity.urecno); row.SetField("apinvsuf", entity.apinvsuf); row.SetField("appinvdt", entity.appinvdt); row.SetField("appinvno", entity.appinvno); row.SetField("apptranscd", entity.apptranscd); row.SetField("appinvsuf", entity.appinvsuf); row.SetField("apinvnosuf", entity.apinvnosuf); row.SetField("location", entity.location); row.SetField("transproc", entity.transproc); row.SetField("allocationty", entity.allocationty); row.SetField("rowpointer", entity.rowpointer); row.SetField("revalno", entity.revalno); row.SetField("bacsref", entity.bacsref); row.SetField("transdttmz", entity.transdttmz); row.SetField("achinvno", entity.achinvno); row.SetField("achinvsuf", entity.achinvsuf); row.SetField("achbankno", entity.achbankno); row.SetField("apetRowID", entity.rowID.ToByteArray()); }