Example #1
0
 public void BuildSelectLists(TransferOrderViewModel transferOrderViewModel)
 {
     transferOrderViewModel.ApproverDropDown       = aspNetUserSelectListBuilder.BuildSelectListItemsForAspNetUsers(aspNetUserRepository.GetAllAspNetUsers(), transferOrderViewModel.UserID);
     transferOrderViewModel.PreparedPersonDropDown = aspNetUserSelectListBuilder.BuildSelectListItemsForAspNetUsers(aspNetUserRepository.GetAllAspNetUsers(), transferOrderViewModel.UserID);
 }
Example #2
0
        public void BuildSelectLists(GoodsReceiptViewModel goodsReceiptViewModel)
        {
            goodsReceiptViewModel.ApproverDropDown       = aspNetUserSelectListBuilder.BuildSelectListItemsForAspNetUsers(aspNetUserRepository.GetAllAspNetUsers(), goodsReceiptViewModel.UserID);
            goodsReceiptViewModel.PreparedPersonDropDown = aspNetUserSelectListBuilder.BuildSelectListItemsForAspNetUsers(aspNetUserRepository.GetAllAspNetUsers(), goodsReceiptViewModel.UserID);

            var additionalGoodsReceiptVoucherText = this.goodsReceiptRepository.GetAdditionalGoodsReceiptVoucherText(goodsReceiptViewModel.GoodsReceiptTypeID, goodsReceiptViewModel.VoucherID).SingleOrDefault();

            if (additionalGoodsReceiptVoucherText != null)
            {
                goodsReceiptViewModel.VoucherText1 = additionalGoodsReceiptVoucherText.VoucherText1;
                goodsReceiptViewModel.VoucherText2 = additionalGoodsReceiptVoucherText.VoucherText2;
                goodsReceiptViewModel.VoucherText3 = additionalGoodsReceiptVoucherText.VoucherText3;
                goodsReceiptViewModel.VoucherText4 = additionalGoodsReceiptVoucherText.VoucherText4;
                goodsReceiptViewModel.VoucherText5 = (additionalGoodsReceiptVoucherText.VATInvoiceNo != null ? "VAT: " + additionalGoodsReceiptVoucherText.VATInvoiceNo + " " : "") + (additionalGoodsReceiptVoucherText.VATInvoiceDate != null? " [" + additionalGoodsReceiptVoucherText.VATInvoiceDate.Value.ToShortDateString() + "] " : "") + additionalGoodsReceiptVoucherText.Reference + " [" + additionalGoodsReceiptVoucherText.EntryDate.ToShortDateString() + "]";
            }
        }
 public void BuildSelectLists(ServicesInvoiceViewModel servicesInvoiceViewModel)
 {
     servicesInvoiceViewModel.PaymentTermDropDown    = paymentTermSelectListBuilder.BuildSelectListItemsForPaymentTerms(paymentTermRepository.GetAllPaymentTerms());
     servicesInvoiceViewModel.PersonInChargeDropDown = aspNetUserSelectListBuilder.BuildSelectListItemsForAspNetUsers(aspNetUserRepository.GetAllAspNetUsers(), servicesInvoiceViewModel.UserID);
     servicesInvoiceViewModel.ApproverDropDown       = aspNetUserSelectListBuilder.BuildSelectListItemsForAspNetUsers(aspNetUserRepository.GetAllAspNetUsers(), servicesInvoiceViewModel.UserID);
     servicesInvoiceViewModel.PreparedPersonDropDown = aspNetUserSelectListBuilder.BuildSelectListItemsForAspNetUsers(aspNetUserRepository.GetAllAspNetUsers(), servicesInvoiceViewModel.UserID);
 }
 public void BuildSelectLists(PurchaseOrderViewModel purchaseOrderViewModel)
 {
     purchaseOrderViewModel.PriceTermDropDown      = priceTermSelectListBuilder.BuildSelectListItemsForPriceTerms(priceTermRepository.GetAllPriceTerms());
     purchaseOrderViewModel.PaymentTermDropDown    = paymentTermSelectListBuilder.BuildSelectListItemsForPaymentTerms(paymentTermRepository.GetAllPaymentTerms());
     purchaseOrderViewModel.ApproverDropDown       = aspNetUserSelectListBuilder.BuildSelectListItemsForAspNetUsers(aspNetUserRepository.GetAllAspNetUsers(), purchaseOrderViewModel.UserID);
     purchaseOrderViewModel.PreparedPersonDropDown = aspNetUserSelectListBuilder.BuildSelectListItemsForAspNetUsers(aspNetUserRepository.GetAllAspNetUsers(), purchaseOrderViewModel.UserID);
 }
Example #5
0
 public void BuildSelectLists(ServiceContractViewModel serviceContractViewModel)
 {
     serviceContractViewModel.ServiceContractTypeDropDown = serviceContractTypeSelectListBuilder.BuildSelectListItemsForServiceContractTypes(serviceContractTypeRepository.GetAllServiceContractTypes());
     serviceContractViewModel.ApproverDropDown            = aspNetUserSelectListBuilder.BuildSelectListItemsForAspNetUsers(aspNetUserRepository.GetAllAspNetUsers(), serviceContractViewModel.UserID);
     serviceContractViewModel.PreparedPersonDropDown      = aspNetUserSelectListBuilder.BuildSelectListItemsForAspNetUsers(aspNetUserRepository.GetAllAspNetUsers(), serviceContractViewModel.UserID);
 }
Example #6
0
 public void BuildSelectLists(ReceiptViewModel receiptViewModel)
 {
     receiptViewModel.AspNetUserSelectList = aspNetUserSelectListBuilder.BuildSelectListItemsForAspNetUsers(aspNetUserRepository.GetAllAspNetUsers(), receiptViewModel.UserID);
 }
 public void BuildSelectLists(QuotationViewModel quotationViewModel)
 {
     quotationViewModel.PaymentTermDropDown    = paymentTermSelectListBuilder.BuildSelectListItemsForPaymentTerms(paymentTermRepository.GetAllPaymentTerms());
     quotationViewModel.PersonInChargeDropDown = aspNetUserSelectListBuilder.BuildSelectListItemsForAspNetUsers(aspNetUserRepository.GetAllAspNetUsers(), quotationViewModel.UserID);
     quotationViewModel.ApproverDropDown       = aspNetUserSelectListBuilder.BuildSelectListItemsForAspNetUsers(aspNetUserRepository.GetAllAspNetUsers(), quotationViewModel.UserID);
     quotationViewModel.PreparedPersonDropDown = aspNetUserSelectListBuilder.BuildSelectListItemsForAspNetUsers(aspNetUserRepository.GetAllAspNetUsers(), quotationViewModel.UserID);
 }