Exemple #1
0
        public DataEditViewModel(IPartsListRipository partsListRipository,
                                 IBomRepository bomRepository)
        {
            _partsListRipository = partsListRipository;
            _bomRepository       = bomRepository;

            PartsList.Clear();
            foreach (var partslist in _partsListRipository.GetPartsList(1))
            {
                PartsList.Add(new PartsListEtity(partslist.Id, partslist.SqkId, partslist.PartsNumber,
                                                 partslist.PartsName, partslist.PartsQuantity));
            }

            BomList.Clear();
            foreach (var bomlist in _bomRepository.GetBoms("test"))
            {
                BomList.Add(new BomEntity(bomlist.Id, bomlist.AircraftNumber, bomlist.AssyNo,
                                          bomlist.PartsNo, bomlist.NeedQuantity, bomlist.ReceivedQuantity, bomlist.Memo));
                OriginalQuantityText += bomlist.ReceivedQuantity;
            }

            UpdateButton = new DelegateCommand(UpdateButtonExecute);

            DivideQuantityText    = 10;
            RemainingQuantityText = DivideQuantityText;
        }
Exemple #2
0
 public delegateController(IManageRepository _manageRepository, IBomRepository _bomrepository, IPurchaseRepository _bomRepository, IStockInRepository _stockinrepository, IStockOutRepository _stockoutrepository)
 {
     manageService = new ManageService(_manageRepository);
     bomService = new BomService(_bomrepository);
     stockoutService = new StockOutService(_stockoutrepository);
     stockinService = new StockInService(_stockinrepository);
     purchaseService = new PurchaseService(_bomRepository);
 }
Exemple #3
0
 public delegateController(IManageRepository _manageRepository, IBomRepository _bomrepository, IPurchaseRepository _bomRepository, IStockInRepository _stockinrepository, IStockOutRepository _stockoutrepository)
 {
     manageService   = new ManageService(_manageRepository);
     bomService      = new BomService(_bomrepository);
     stockoutService = new StockOutService(_stockoutrepository);
     stockinService  = new StockInService(_stockinrepository);
     purchaseService = new PurchaseService(_bomRepository);
 }
 public BomController(IBomRepository repo, IMapper mapper, ISearchRepository search, DataContext context, ICanRepository can)
 {
     _can     = can;
     _repo    = repo;
     _mapper  = mapper;
     _search  = search;
     _context = context;
 }
Exemple #5
0
 public mainController(IAccountRepository _accountRepository, IManageRepository _manageRepository, IPurchaseRepository _purchaseRepository, IStockInRepository _stockinrepository, IStockOutRepository _stockoutrepository, IBomRepository _bomrepository)
 {
     accountService = new AccountService(_accountRepository);
     purchaseService = new PurchaseService(_purchaseRepository);
     stockinService = new StockInService(_stockinrepository);
     stockoutService = new StockOutService(_stockoutrepository);
     manageService = new ManageService(_manageRepository);
     bomService = new BomService(_bomrepository);
 }
        public PalettePartsDetailsViewModel()
        {
            _palettePartsRepository = new PalettePartsSQLServer();
            _bomRepository          = new BomSQLServer();
            AssyNumbers.Value       = new ObservableCollection <string>();

            GetAssyNumbers();
            GetPalettes();
            SelectedAssyNumber.Subscribe(_ => SelectedAssyNumberChangeEcecute());
            SelectedPaletteDetails.Subscribe(_ => SelectedPaletteDetailsChangeExecute());
            SelectedBom.Subscribe(_ => SelectedBomChangeExecute());
            PlusCommand.Subscribe(_ => PlusCommandExecute());
            MinusCommand.Subscribe(_ => MinusCommandExecute());
            SelectedPalette.Subscribe(_ => SearchCommandExecute());
            PaletteDetailsPlusCommand.Subscribe(_ => PaletteDetailsPlusCommandExecute());
            PaletteDetailsMinusCommand.Subscribe(_ => PaletteDetailsMinusommandExecute());
            PaletteDetailsUpdateCommand.Subscribe(_ => PaletteDetailsSaveExecute());
            PaletteDetailsAddCommand.Subscribe(_ => PaletteDetailsAddCommandExecute());
            PaletteDetailsDeleteCommand.Subscribe(_ => PaletteDetailsDeleteCommandExecute());
        }
Exemple #7
0
 public BomService(IBomRepository BomRepository)
 {
     _BomRepository = BomRepository;
 }
Exemple #8
0
 public BomService(IBomRepository bomRepository)
     : base(bomRepository, "BomPostSaveValidate", "BomSaveRelative", null, null, null, null, "GetBomViewDetails")
 {
 }
Exemple #9
0
 public costController(IManageRepository _manageRepository, IBomRepository _bomrepository)
 {
     manageService = new ManageService(_manageRepository);
     bomService = new BomService(_bomrepository);
 }
Exemple #10
0
 public mainController(IAccountRepository _accountRepository, IManageRepository _manageRepository, IPurchaseRepository _purchaseRepository, IStockInRepository _stockinrepository, IStockOutRepository _stockoutrepository, IBomRepository _bomrepository)
 {
     accountService  = new AccountService(_accountRepository);
     purchaseService = new PurchaseService(_purchaseRepository);
     stockinService  = new StockInService(_stockinrepository);
     stockoutService = new StockOutService(_stockoutrepository);
     manageService   = new ManageService(_manageRepository);
     bomService      = new BomService(_bomrepository);
 }
Exemple #11
0
 public BomService(IBomRepository BomRepository)
 {
     _BomRepository = BomRepository;
 }
Exemple #12
0
 public BomService(IBomRepository repository) : base(repository)
 {
 }
Exemple #13
0
 public costController(IManageRepository _manageRepository, IBomRepository _bomrepository)
 {
     manageService = new ManageService(_manageRepository);
     bomService    = new BomService(_bomrepository);
 }