예제 #1
0
 protected override void OnLoadObjectData(DataRow row) {
   this.instrumentType = InstrumentType.Parse((int) row["InstrumentTypeId"]);
   this.institution = FinancialInstitution.Parse((int) row["InstitutionId"]);
   this.accountId = (int) row["FinancialAccountId"];
   this.accountNumber = (string) row["AccountNumber"];
   this.documentNumber = (string) row["DocumentNumber"];
   this.issuedBy = Contact.Parse((int) row["IssuedById"]);
   this.issuedTo = Contact.Parse((int) row["IssuedToId"]);
   this.issueDate = (DateTime) row["IssueTime"];
   this.dueDate = (DateTime) row["DueDate"];
   this.cancelationTime = (DateTime) row["CancelationTime"];
   this.notes = (string) row["Notes"];
   this.keywords = (string) row["Keywords"];
   this.currency = Currency.Parse((int) row["CurrencyId"]);
   this.amount = (decimal) row["Amount"];
   this.postedBy = Contact.Parse((int) row["PostedById"]);
   this.canceledBy = Contact.Parse((int) row["CanceledById"]);
   this.status = (TreasuryItemStatus) Convert.ToChar(row["DocumentStatus"]);
 }
예제 #2
0
 protected override void OnLoadObjectData(DataRow row) {
   this.cashRegister = CashRegister.Parse(Organization.Parse((int) row["OrganizationId"]),
                                          Contact.Parse((int) row["CashierId"]));
   this.transactionType = CRTransactionType.Parse((int) row["TransactionTypeId"]);
   this.collector = Contact.Parse((int) row["CollectorId"]);
   this.referenceId = (int) row["ReferenceId"];
   this.referenceTag = (string) row["ReferenceTag"];
   this.financialAccountId = (int) row["FinancialAccountId"];
   this.authorizationId = (int) row["AuthorizationId"];
   this.baseInstrumentType = InstrumentType.Parse((int) row["BaseInstrumentTypeId"]);
   this.transactionDate = (DateTime) row["TransactionDate"];
   this.dueDate = (DateTime) row["DueDate"];
   this.currency = Currency.Parse((int) row["CurrencyId"]);
   this.currencyAmount = (decimal) row["CurrencyAmount"];
   this.inputAmount = (decimal) row["InputAmount"];
   this.outputAmount = (decimal) row["OutputAmount"];
   this.summary = (string) row["Summary"];
   this.notes = (string) row["Notes"];
   this.keywords = (string) row["TransactionKeywords"];
   this.postedBy = Contact.Parse((int) row["PostedById"]);
   this.postingTime = (DateTime) row["PostingTime"];
   this.canceledBy = Contact.Parse((int) row["CanceledById"]);
   this.cancelationTime = (DateTime) row["CancelationTime"];
   this.status = (TreasuryItemStatus) Convert.ToChar(row["TransactionStatus"]);
 }
예제 #3
0
 protected override void OnLoadObjectData(DataRow row) {
   this.transaction = CRTransaction.Parse((int) row["TransactionId"]);
   this.instrumentType = InstrumentType.Parse((int) row["InstrumentTypeId"]);
   this.instrumentId = (int) row["InstrumentId"];
   this.document = CRDocument.Parse((int) row["DocumentId"]);
   this.currency = Currency.Parse((int) row["CurrencyId"]);
   this.instrumentAmount = (decimal) row["CurrencyAmount"];
   this.inputAmount = (decimal) row["InputAmount"];
   this.outputAmount = (decimal) row["OutputAmount"];
   this.status = (TreasuryItemStatus) Convert.ToChar(row["PostingStatus"]);
 }