public SupplierService(IMapper mapper, ISupplierRepo supplierRepo, ILogger <SupplierService> logger) { this.mapper = mapper; this.supplierRepo = supplierRepo; this.logger = logger; }
public StoreInPlan(SessionInfo _session = null, StoreInPlanHead model = null) { InitializeComponent(); this._repo = new StoreInPlanRepo(); this._repoIn = new StoreInRepo(); this._repoCurr = new CurrenciesRepo(); this._repoSupplier = new SupplierRepo(); this._repoBT = new BussinessTypeRepo(); this._repoMaker = new MakerRepo(); this._repoMill = new MillRepo(); this._repoCmdt = new Commodity(); this._repoSpec = new SpecRepo(); this._repoCoating = new CoatingRepo(); this._repoWhse = new WharehouseRepo(); this._repoPort = new ImportPortRepo(); this._repoCust = new CustomerRepo(); this._repoLookup = new LookupRepo(); this.SourceStr = ""; epiSession = _session; if (model == null || epiSession == null) { this.HeadContent = new StoreInPlanHead(); this.IMEXReviewFlag = false; } else { this.HeadContent = model; this.IMEXReviewFlag = true; } this.ModelClone = new StoreInPlanHead(); this.POTrans = new POLineModel(); }
public SupplierDialog() { InitializeComponent(); this._repo = new SupplierRepo(); this.VendorId = ""; this.VendorName = ""; }
/// <summary> /// Sets the private repository. /// Creates an instance of Supplier and it's address. This is accessed by the View. /// Initializes the AddSupplierCommand. This command will use the AddSupplier() method. /// </summary> /// <param name="supplierRepo">Repository to access Supplier Database Table.</param> public AddOrEditSupplierViewModel(ISupplierRepo supplierRepo) { _supplierRepo = supplierRepo; Supplier = new Supplier(); Supplier.Address = new Address(); AddSupplierCommand = new RelayCommand(AddSupplier); }
public PayoutsModel(ILogger <PayoutsModel> logger, ISupplierPayoutRepo supplierPayoutRepo, ISupplierRepo supplierRepo) { _logger = logger; _supplierPayoutRepo = supplierPayoutRepo; _supplierRepo = supplierRepo; }
/// <summary> /// ViewModel accessed to add a new Ingredient to the database. /// </summary> /// <param name="ingredientRepo"><inheritdoc cref="_ingredientRepo"/></param> /// <param name="supplierRepo"><inheritdoc cref="_supplierRepo"/></param> public StockAddOrEditIngredientViewModel(IIngredientRepo ingredientRepo, ISupplierRepo supplierRepo) { _supplierRepo = supplierRepo; _ingredientRepo = ingredientRepo; AddIngredientCommand = new RelayCommand(AddIngredient, CanSave); AddSupplierCommand = new RelayCommand(AddSupplier); BackToStockCommand = new RelayCommand(BackToStock); Action = "add"; Ingredient = new Business.Ingredient(); }
public ChartService() { stationeryRepo = StationeryRepo.Instance; categoryRepo = CategoryRepo.Instance; supplierTenderRepo = SupplierTenderRepo.Instance; supplierRepo = SupplierRepo.Instance; adjustmentVoucherRepo = AdjustmentVoucherRepo.Instance; adjustmentVoucherDetailRepo = AdjustmentVoucherDetailRepo.Instance; requisitionRepo = RequisitionRepo.Instance; requisitionDetailRepo = RequisitionDetailRepo.Instance; disbursementRepo = DisbursementRepo.Instance; employeeRepo = EmployeeRepo.Instance; departmentRepo = DepartmentRepo.Instance; purchaseOrderRepo = PurchaseOrderRepo.Instance; purchaseOrderDetailRepo = PurchaseOrderDetailRepo.Instance; }
public McssMaster(MCSS model = null, SessionInfo _session = null) { InitializeComponent(); this._repo = new McssRepo(); this._repoCustomer = new CustomerRepo(); this._repoCoating = new CoatingRepo(); this._repoSpec = new SpecRepo(); this._repoCommodity = new Commodity(); this._repoSupplier = new SupplierRepo(); this._repoBT = new BussinessTypeRepo(); this._repoMaker = new MakerRepo(); this._repoMill = new MillRepo(); this._repoCatg = new CategoryGroupRepo(); specialRef = new Dictionary<int, string>(); #region Dashboard if (model == null) { this.McssContent = new MCSS(); this.ModelClone = new MCSS(); this.Initail = new InitialModel(); } else { this.McssContent = model; ModelClone = (MCSS)model.Clone(); } epiSession = _session; #endregion #region Direct form //epiSession = new SessionInfo(); //if (epiSession.SessionID == null) //{ // Login frm = new Login(); // frm.ShowDialog(); //} //else if (epiSession.SessionID == "x") //{ // Application.Exit(); //} //else //{ // this.Text = epiSession.CompanyName; //} #endregion }
public SupplierController(ISupplierRepo repo) { _repo = repo; }
public Edit(ISupplierRepo supplierRepo) { _supplierRepo = supplierRepo; }
public SupplierApiController(ISupplierRepo repo, IMapper mapper) { _repo = repo; _mapper = mapper; }
public Managers(ISupplierRepo supplierRepo, ISupplierMappingRepo mappingRepo) { _supplierRepo = supplierRepo; _mappingRepo = mappingRepo; }
public SupplierController(ISupplierRepo repo) { _repository = repo; }
public Index(ISupplierRepo supplierRepo) { _supplierRepo = supplierRepo; }
public SupplierController(ISupplierRepo supplier) { _supplier = supplier; }