Пример #1
0
        public async Task <PartialViewResult> CreateOrUpdateModal(long?id = null)
        {
            ITitleAppService       titleAppService = this._titleAppService;
            NullableIdInput <long> nullableIdInput = new NullableIdInput <long>()
            {
                Id = id
            };
            CreateOrUpdateTitleModalViewModel createOrUpdateTitleModalViewModel = new CreateOrUpdateTitleModalViewModel(await titleAppService.GetTitleForEdit(nullableIdInput));
            List <SelectListItem>             selectListItems = new List <SelectListItem>();

            foreach (Lookup lookupItem in (new LookupFill("TitleTypes", -1)).LookupItems)
            {
                SelectListItem selectListItem = new SelectListItem()
                {
                    Text     = lookupItem.Text,
                    Value    = lookupItem.Value,
                    Disabled = lookupItem.Disabled,
                    Selected = lookupItem.Selected
                };
                selectListItems.Add(selectListItem);
            }
            SelectListItem selectListItem1 = new SelectListItem()
            {
                Text     = "",
                Value    = "",
                Disabled = false
            };

            selectListItems.Insert(0, selectListItem1);
            this.ViewData["TitleTypes"] = selectListItems;
            return(this.PartialView("_CreateOrUpdateModal", createOrUpdateTitleModalViewModel));
        }
Пример #2
0
 public CustomersController(ICustomerAppService customerAppService, IGenericAppService genericAppService, ITitleAppService titleAppService, IRepository <Invoice, long> invoiceRepository, IRepository <InvoicePayment, long> invoicePaymentRepository)
 {
     this._customerAppService       = customerAppService;
     this._genericAppService        = genericAppService;
     this._titleAppService          = titleAppService;
     this._invoiceRepository        = invoiceRepository;
     this._invoicePaymentRepository = invoicePaymentRepository;
 }
Пример #3
0
 public EstimatesController(IEstimateAppService estimateAppService, ISupplierAppService supplierAppService, ICustomerAppService customerAppServer, IBinaryObjectManager binaryObjectManager, IProductAppService productAppService, ITitleAppService titleAppService, IRepository <PaymentSetting, long> paymentSettingRepository, IRepository <TenantPaymentSettings, long> tenantPaymentSettingsRepository)
 {
     this._estimateAppService              = estimateAppService;
     this._supplierAppService              = supplierAppService;
     this._customerAppServer               = customerAppServer;
     this._binaryObjectManager             = binaryObjectManager;
     this._titleAppService                 = titleAppService;
     this._tenantPaymentSettingsRepository = tenantPaymentSettingsRepository;
     this._productAppService               = productAppService;
     this._paymentSettingRepository        = paymentSettingRepository;
 }
Пример #4
0
 public TitlesController(ITitleAppService titleAppService, IBinaryObjectManager binaryObjectManager)
 {
     this._titleAppService     = titleAppService;
     this._binaryObjectManager = binaryObjectManager;
 }
Пример #5
0
 public PaymentsController(ICustomerAppService customerAppService, IGenericAppService genericAppService, ITitleAppService titleAppService)
 {
     this._customerAppService = customerAppService;
     this._genericAppService  = genericAppService;
     this._titleAppService    = titleAppService;
 }