//private readonly ITTransDetItemRepository _tTransDetItemRepository; //private readonly IMAccountRefRepository _mAccountRefRepository; //private readonly ITJournalRepository _tJournalRepository; //private readonly ITJournalDetRepository _tJournalDetRepository; //private readonly IMAccountRepository _mAccountRepository; //private readonly ITJournalRefRepository _tJournalRefRepository; public InventoryController(ITTransRepository tTransRepository, IMWarehouseRepository mWarehouseRepository, IMSupplierRepository mSupplierRepository, IMItemRepository mItemRepository, ITStockCardRepository tStockCardRepository, ITStockItemRepository tStockItemRepository, ITTransRefRepository tTransRefRepository, ITStockRepository tStockRepository, ITStockRefRepository tStockRefRepository, IMCustomerRepository mCustomerRepository, IMEmployeeRepository mEmployeeRepository, ITTransDetRepository tTransDetRepository) { Check.Require(tTransRepository != null, "tTransRepository may not be null"); Check.Require(mWarehouseRepository != null, "mWarehouseRepository may not be null"); Check.Require(mSupplierRepository != null, "mSupplierRepository may not be null"); Check.Require(mItemRepository != null, "mItemRepository may not be null"); Check.Require(tStockCardRepository != null, "tStockCardRepository may not be null"); Check.Require(tStockItemRepository != null, "tStockItemRepository may not be null"); Check.Require(tTransRefRepository != null, "tTransRefRepository may not be null"); Check.Require(tStockRepository != null, "tStockRepository may not be null"); Check.Require(tStockRefRepository != null, "tStockRefRepository may not be null"); Check.Require(mCustomerRepository != null, "mCustomerRepository may not be null"); Check.Require(mEmployeeRepository != null, "mEmployeeRepository may not be null"); Check.Require(tTransDetRepository != null, "tTransDetRepository may not be null"); this._tTransRepository = tTransRepository; this._mWarehouseRepository = mWarehouseRepository; this._mSupplierRepository = mSupplierRepository; this._mItemRepository = mItemRepository; this._tStockCardRepository = tStockCardRepository; this._tStockItemRepository = tStockItemRepository; this._tTransRefRepository = tTransRefRepository; this._tStockRepository = tStockRepository; this._tStockRefRepository = tStockRefRepository; this._mCustomerRepository = mCustomerRepository; this._mEmployeeRepository = mEmployeeRepository; this._tTransDetRepository = tTransDetRepository; }
public CustomerPriceController(IMCustomerPriceRepository mCustomerPriceRepository, IMItemRepository mItemRepository) { Check.Require(mCustomerPriceRepository != null, "mCustomerPriceRepository may not be null"); Check.Require(mItemRepository != null, "mItemRepository may not be null"); this._mCustomerPriceRepository = mCustomerPriceRepository; this._mitemRepository = mItemRepository; }
public ActionItemController(IMActionItemRepository mActionItemRepository, IMActionRepository mActionRepository, IMItemRepository mItemRepository) { Check.Require(mActionItemRepository != null, "mActionItemRepository may not be null"); Check.Require(mActionRepository != null, "mActionRepository may not be null"); Check.Require(mItemRepository != null, "mItemRepository may not be null"); this._mActionItemRepository = mActionItemRepository; this._mActionRepository = mActionRepository; this._mItemRepository = mItemRepository; }
public InventoryController(ITTransRepository tTransRepository, IMWarehouseRepository mWarehouseRepository, IMSupplierRepository mSupplierRepository, IMItemRepository mItemRepository, ITStockCardRepository tStockCardRepository, ITStockItemRepository tStockItemRepository, ITTransRefRepository tTransRefRepository, ITStockRepository tStockRepository, ITStockRefRepository tStockRefRepository, IMCustomerRepository mCustomerRepository, IMRoomRepository mRoomRepository, IMEmployeeRepository mEmployeeRepository, ITTransDetRepository tTransDetRepository, ITTransRoomRepository tTransRoomRepository, IMPacketRepository mPacketRepository, IMPacketItemCatRepository mPacketItemCatRepository, ITTransDetItemRepository tTransDetItemRepository, IMAccountRefRepository mAccountRefRepository, ITJournalRepository tJournalRepository, ITJournalDetRepository tJournalDetRepository, IMAccountRepository mAccountRepository, IMActionRepository mActionRepository, ITCommissionRepository tCommissionRepository, IMActionCommRepository mActionCommRepository, ITJournalRefRepository tJournalRefRepository) { Check.Require(tTransRepository != null, "tTransRepository may not be null"); Check.Require(mWarehouseRepository != null, "mWarehouseRepository may not be null"); Check.Require(mSupplierRepository != null, "mSupplierRepository may not be null"); Check.Require(mItemRepository != null, "mItemRepository may not be null"); Check.Require(tStockCardRepository != null, "tStockCardRepository may not be null"); Check.Require(tStockItemRepository != null, "tStockItemRepository may not be null"); Check.Require(tTransRefRepository != null, "tTransRefRepository may not be null"); Check.Require(tStockRepository != null, "tStockRepository may not be null"); Check.Require(tStockRefRepository != null, "tStockRefRepository may not be null"); Check.Require(mCustomerRepository != null, "mCustomerRepository may not be null"); Check.Require(mRoomRepository != null, "mRoomRepository may not be null"); Check.Require(mEmployeeRepository != null, "mEmployeeRepository may not be null"); Check.Require(tTransDetRepository != null, "tTransDetRepository may not be null"); Check.Require(tTransRoomRepository != null, "tTransRoomRepository may not be null"); Check.Require(mPacketRepository != null, "mPacketRepository may not be null"); Check.Require(mPacketItemCatRepository != null, "mPacketItemCatRepository may not be null"); Check.Require(tTransDetItemRepository != null, "tTransDetItemRepository may not be null"); //Check.Require(mPacketCommRepository != null, "mPacketCommRepository may not be null"); Check.Require(mAccountRefRepository != null, "mAccountRefRepository may not be null"); Check.Require(tJournalRepository != null, "tJournalRepository may not be null"); Check.Require(tJournalDetRepository != null, "tJournalDetRepository may not be null"); Check.Require(mAccountRepository != null, "mAccountRepository may not be null"); Check.Require(mActionRepository != null, "mActionRepository may not be null"); Check.Require(tCommissionRepository != null, "tCommissionRepository may not be null"); Check.Require(mActionCommRepository != null, "mActionCommRepository may not be null"); Check.Require(tJournalRefRepository != null, "tJournalRefRepository may not be null"); this._tTransRepository = tTransRepository; this._mWarehouseRepository = mWarehouseRepository; this._mSupplierRepository = mSupplierRepository; this._mItemRepository = mItemRepository; this._tStockCardRepository = tStockCardRepository; this._tStockItemRepository = tStockItemRepository; this._tTransRefRepository = tTransRefRepository; this._tStockRepository = tStockRepository; this._tStockRefRepository = tStockRefRepository; this._mCustomerRepository = mCustomerRepository; this._mRoomRepository = mRoomRepository; this._mEmployeeRepository = mEmployeeRepository; this._tTransDetRepository = tTransDetRepository; this._tTransRoomRepository = tTransRoomRepository; this._mPacketRepository = mPacketRepository; this._mPacketItemCatRepository = mPacketItemCatRepository; this._tTransDetItemRepository = tTransDetItemRepository; // this._mPacketCommRepository = mPacketCommRepository; this._mAccountRefRepository = mAccountRefRepository; this._tJournalRepository = tJournalRepository; this._tJournalDetRepository = tJournalDetRepository; this._mAccountRepository = mAccountRepository; this._mActionRepository = mActionRepository; this._tCommissionRepository = tCommissionRepository; this._mActionCommRepository = mActionCommRepository; this._tJournalRefRepository = tJournalRefRepository; }
public ItemController(IMItemRepository mItemRepository, IMItemCatRepository mItemCatRepository, IMBrandRepository mBrandRepository) { Check.Require(mItemRepository != null, "mItemRepository may not be null"); Check.Require(mItemCatRepository != null, "mItemCatRepository may not be null"); Check.Require(mBrandRepository != null, "mBrandRepository may not be null"); this._mItemRepository = mItemRepository; this._mItemCatRepository = mItemCatRepository; this._mBrandRepository = mBrandRepository; }
public ItemController(IMItemRepository mItemRepository, IMItemCatRepository mItemCatRepository, IMBrandRepository mBrandRepository, ITTransDetRepository tTransDetRepository, IMWarehouseRepository mWarehouseRepository) { Check.Require(mItemRepository != null, "mItemRepository may not be null"); Check.Require(mItemCatRepository != null, "mItemCatRepository may not be null"); Check.Require(mBrandRepository != null, "mBrandRepository may not be null"); Check.Require(tTransDetRepository != null, "tTransDetRepository may not be null"); Check.Require(mWarehouseRepository != null, "mWarehouseRepository may not be null"); this._mItemRepository = mItemRepository; this._mItemCatRepository = mItemCatRepository; this._mBrandRepository = mBrandRepository; this._tTransDetRepository = tTransDetRepository; this._mWarehouseRepository = mWarehouseRepository; }
public ReportController(IMBrandRepository mBrandRepository, IMSupplierRepository mSupplierRepository, IMWarehouseRepository mWarehouseRepository, IMItemRepository mItemRepository, ITStockCardRepository tStockCardRepository, ITStockItemRepository tStockItemRepository, ITTransDetRepository tTransDetRepository, ITTransRepository tTransRepository) { Check.Require(mBrandRepository != null, "mBrandRepository may not be null"); Check.Require(mSupplierRepository != null, "mSupplierRepository may not be null"); Check.Require(mWarehouseRepository != null, "mBrandRepository may not be null"); Check.Require(mItemRepository != null, "mItemRepository may not be null"); Check.Require(tStockCardRepository != null, "tStockCardRepository may not be null"); Check.Require(tStockItemRepository != null, "tStockItemRepository may not be null"); Check.Require(tTransDetRepository != null, "tTransDetRepository may not be null"); Check.Require(tTransRepository != null, "tTransRepository may not be null"); this._mBrandRepository = mBrandRepository; this._mSupplierRepository = mSupplierRepository; this._mWarehouseRepository = mWarehouseRepository; this._mItemRepository = mItemRepository; this._tStockCardRepository = tStockCardRepository; this._tStockItemRepository = tStockItemRepository; this._tTransDetRepository = tTransDetRepository; this._tTransRepository = tTransRepository; }
public PaymentController(ITJournalRepository tJournalRepository, ITJournalDetRepository tJournalDetRepository, IMCostCenterRepository mCostCenterRepository, IMAccountRepository mAccountRepository, ITRecAccountRepository tRecAccountRepository, ITRecPeriodRepository tRecPeriodRepository, IMBrandRepository mBrandRepository, IMSupplierRepository mSupplierRepository, IMWarehouseRepository mWarehouseRepository, IMItemRepository mItemRepository, ITStockCardRepository tStockCardRepository, ITStockItemRepository tStockItemRepository, ITTransDetRepository tTransDetRepository, ITTransRepository tTransRepository, ITPaymentRepository tPaymentRepository, ITPaymentDetRepository tPaymentDetRepository, IMAccountRefRepository mAccountRefRepository, IMCustomerRepository mCustomerRepository) { Check.Require(tJournalRepository != null, "tJournalRepository may not be null"); Check.Require(tJournalDetRepository != null, "tJournalDetRepository may not be null"); Check.Require(mCostCenterRepository != null, "mCostCenterRepository may not be null"); Check.Require(mAccountRepository != null, "mAccountRepository may not be null"); Check.Require(tRecAccountRepository != null, "tRecAccountRepository may not be null"); Check.Require(tRecPeriodRepository != null, "tRecPeriodRepository may not be null"); Check.Require(mBrandRepository != null, "mBrandRepository may not be null"); Check.Require(mSupplierRepository != null, "mSupplierRepository may not be null"); Check.Require(mWarehouseRepository != null, "mBrandRepository may not be null"); Check.Require(mItemRepository != null, "mItemRepository may not be null"); Check.Require(tStockCardRepository != null, "tStockCardRepository may not be null"); Check.Require(tStockItemRepository != null, "tStockItemRepository may not be null"); Check.Require(tTransDetRepository != null, "tTransDetRepository may not be null"); Check.Require(tTransRepository != null, "tTransRepository may not be null"); Check.Require(tPaymentRepository != null, "tPaymentRepository may not be null"); Check.Require(tPaymentDetRepository != null, "tPaymentDetRepository may not be null"); Check.Require(mAccountRefRepository != null, "mAccountRefRepository may not be null"); Check.Require(mCustomerRepository != null, "mCustomerRepository may not be null"); this._tJournalRepository = tJournalRepository; this._tJournalDetRepository = tJournalDetRepository; this._mCostCenterRepository = mCostCenterRepository; this._mAccountRepository = mAccountRepository; this._tRecAccountRepository = tRecAccountRepository; this._tRecPeriodRepository = tRecPeriodRepository; this._mBrandRepository = mBrandRepository; this._mSupplierRepository = mSupplierRepository; this._mWarehouseRepository = mWarehouseRepository; this._mItemRepository = mItemRepository; this._tStockCardRepository = tStockCardRepository; this._tStockItemRepository = tStockItemRepository; this._tTransDetRepository = tTransDetRepository; this._tTransRepository = tTransRepository; this._tPaymentRepository = tPaymentRepository; this._tPaymentDetRepository = tPaymentDetRepository; this._mAccountRefRepository = mAccountRefRepository; this._mCustomerRepository = mCustomerRepository; }
public ReportController(ITJournalRepository tJournalRepository, ITJournalDetRepository tJournalDetRepository, IMCostCenterRepository mCostCenterRepository, IMAccountRepository mAccountRepository, ITRecAccountRepository tRecAccountRepository, ITRecPeriodRepository tRecPeriodRepository, IMBrandRepository mBrandRepository, IMSupplierRepository mSupplierRepository, IMWarehouseRepository mWarehouseRepository, IMItemRepository mItemRepository, ITStockCardRepository tStockCardRepository, ITStockItemRepository tStockItemRepository, ITTransDetRepository tTransDetRepository, ITRealRepository tRealRepository, IVJournalDetFlowRepository vJournalDetFlowRepository, IVStockCardFlowRepository vStockCardFlowRepository) { Check.Require(tJournalRepository != null, "tJournalRepository may not be null"); Check.Require(tJournalDetRepository != null, "tJournalDetRepository may not be null"); Check.Require(mCostCenterRepository != null, "mCostCenterRepository may not be null"); Check.Require(mAccountRepository != null, "mAccountRepository may not be null"); Check.Require(tRecAccountRepository != null, "tRecAccountRepository may not be null"); Check.Require(tRecPeriodRepository != null, "tRecPeriodRepository may not be null"); Check.Require(mBrandRepository != null, "mBrandRepository may not be null"); Check.Require(mSupplierRepository != null, "mSupplierRepository may not be null"); Check.Require(mWarehouseRepository != null, "mBrandRepository may not be null"); Check.Require(mItemRepository != null, "mItemRepository may not be null"); Check.Require(tStockCardRepository != null, "tStockCardRepository may not be null"); Check.Require(tStockItemRepository != null, "tStockItemRepository may not be null"); Check.Require(tTransDetRepository != null, "tTransDetRepository may not be null"); Check.Require(tRealRepository != null, "tRealRepository may not be null"); Check.Require(vJournalDetFlowRepository != null, "vJournalDetFlowRepository may not be null"); Check.Require(vStockCardFlowRepository != null, "vStockCardFlowRepository may not be null"); this._tJournalRepository = tJournalRepository; this._tJournalDetRepository = tJournalDetRepository; this._mCostCenterRepository = mCostCenterRepository; this._mAccountRepository = mAccountRepository; this._tRecAccountRepository = tRecAccountRepository; this._tRecPeriodRepository = tRecPeriodRepository; this._mBrandRepository = mBrandRepository; this._mSupplierRepository = mSupplierRepository; this._mWarehouseRepository = mWarehouseRepository; this._mItemRepository = mItemRepository; this._tStockCardRepository = tStockCardRepository; this._tStockItemRepository = tStockItemRepository; this._tTransDetRepository = tTransDetRepository; this._tRealRepository = tRealRepository; this._vJournalDetFlowRepository = vJournalDetFlowRepository; this._vStockCardFlowRepository = vStockCardFlowRepository; }
public static ReportParamViewModel CreateReportParamViewModel(IMCostCenterRepository mCostCenterRepository, IMWarehouseRepository mWarehouseRepository, IMSupplierRepository mSupplierRepository, ITRecPeriodRepository tRecPeriodRepository, IMItemRepository mItemRepository) { ReportParamViewModel viewModel = new ReportParamViewModel(); IList <MCostCenter> list = mCostCenterRepository.GetAll(); MCostCenter costCenter = new MCostCenter(); costCenter.CostCenterName = "-Semua Cost Center-"; list.Insert(0, costCenter); viewModel.CostCenterList = new SelectList(list, "Id", "CostCenterName"); IList <MWarehouse> listWarehouse = mWarehouseRepository.GetAll(); MWarehouse account = new MWarehouse(); account.WarehouseName = "-Semua Gudang-"; listWarehouse.Insert(0, account); viewModel.WarehouseList = new SelectList(listWarehouse, "Id", "WarehouseName"); IList <MSupplier> listSupplier = mSupplierRepository.GetAll(); MSupplier supplier = new MSupplier(); supplier.SupplierName = "-Semua Supplier-"; listSupplier.Insert(0, supplier); viewModel.SupplierList = new SelectList(listSupplier, "Id", "SupplierName"); IList <TRecPeriod> listRecPeriod = tRecPeriodRepository.GetAll(); //TRecPeriod recPeriod = new TRecPeriod(); //recPeriod.PeriodDesc = "-Pilih Period-"; //listRecPeriod.Insert(0, recPeriod); viewModel.RecPeriodList = new SelectList(listRecPeriod, "Id", "PeriodDesc"); IList <MItem> listItem = mItemRepository.GetAll(); MItem item = new MItem(); item.ItemName = "-Semua Item-"; listItem.Insert(0, item); viewModel.ItemList = new SelectList(listItem, "Id", "ItemName"); ArrayList arr = new ArrayList(); for (int i = 1; i <= 5; i++) { var sel = new { Id = i }; arr.Add(sel); } viewModel.ShiftNoList = new SelectList(arr, "Id", "Id"); arr = new ArrayList(); arr.Add(new { Id = 1, Name = "Januari" }); arr.Add(new { Id = 2, Name = "Februari" }); arr.Add(new { Id = 3, Name = "Maret" }); arr.Add(new { Id = 4, Name = "April" }); arr.Add(new { Id = 5, Name = "Mei" }); arr.Add(new { Id = 6, Name = "Juni" }); arr.Add(new { Id = 7, Name = "Juli" }); arr.Add(new { Id = 8, Name = "Agustus" }); arr.Add(new { Id = 9, Name = "September" }); arr.Add(new { Id = 10, Name = "Oktober" }); arr.Add(new { Id = 11, Name = "November" }); arr.Add(new { Id = 12, Name = "Desember" }); viewModel.MonthList = new SelectList(arr, "Id", "Name"); viewModel.DateFrom = DateTime.Today; viewModel.DateTo = DateTime.Today; return(viewModel); }
public static ReportParamViewModel CreateReportParamViewModel(IMCostCenterRepository mCostCenterRepository, IMWarehouseRepository mWarehouseRepository, IMSupplierRepository mSupplierRepository, ITRecPeriodRepository tRecPeriodRepository, IMItemRepository mItemRepository) { ReportParamViewModel viewModel = new ReportParamViewModel(); IList <MCostCenter> list = mCostCenterRepository.GetAll(); MCostCenter costCenter = new MCostCenter(); costCenter.CostCenterName = "-Semua Cost Center-"; list.Insert(0, costCenter); viewModel.CostCenterList = new SelectList(list, "Id", "CostCenterName"); IList <MWarehouse> listWarehouse = mWarehouseRepository.GetAll(); MWarehouse account = new MWarehouse(); account.WarehouseName = "-Semua Gudang-"; listWarehouse.Insert(0, account); viewModel.WarehouseList = new SelectList(listWarehouse, "Id", "WarehouseName"); IList <MSupplier> listSupplier = mSupplierRepository.GetAll(); MSupplier supplier = new MSupplier(); supplier.SupplierName = "-Semua Supplier-"; listSupplier.Insert(0, supplier); viewModel.SupplierList = new SelectList(listSupplier, "Id", "SupplierName"); IList <TRecPeriod> listRecPeriod = tRecPeriodRepository.GetAll(); TRecPeriod recPeriod = new TRecPeriod(); recPeriod.PeriodDesc = "-Pilih Period-"; listRecPeriod.Insert(0, recPeriod); viewModel.RecPeriodList = new SelectList(listRecPeriod, "Id", "PeriodDesc"); IList <MItem> listItem = mItemRepository.GetAll(); MItem item = new MItem(); item.ItemName = "-Semua Item-"; listItem.Insert(0, item); viewModel.ItemList = new SelectList(listItem, "Id", "ItemName"); viewModel.DateFrom = DateTime.Today; viewModel.DateTo = DateTime.Today; return(viewModel); }
public static ReportParamViewModel CreateReportParamViewModel(IMWarehouseRepository mWarehouseRepository, IMSupplierRepository mSupplierRepository, IMItemRepository mItemRepository) { ReportParamViewModel viewModel = new ReportParamViewModel(); IList <MWarehouse> listWarehouse = mWarehouseRepository.GetAll(); MWarehouse account = new MWarehouse(); account.WarehouseName = "-Semua Gudang-"; listWarehouse.Insert(0, account); viewModel.WarehouseList = new SelectList(listWarehouse, "Id", "WarehouseName"); IList <MSupplier> listSupplier = mSupplierRepository.GetAll(); MSupplier supplier = new MSupplier(); supplier.SupplierName = "-Semua Supplier-"; listSupplier.Insert(0, supplier); viewModel.SupplierList = new SelectList(listSupplier, "Id", "SupplierName"); //IList<TRecPeriod> listRecPeriod = tRecPeriodRepository.GetAll(); ////TRecPeriod recPeriod = new TRecPeriod(); ////recPeriod.PeriodDesc = "-Pilih Period-"; ////listRecPeriod.Insert(0, recPeriod); //viewModel.RecPeriodList = new SelectList(listRecPeriod, "Id", "PeriodDesc"); IList <MItem> listItem = mItemRepository.GetAll(); MItem item = new MItem(); item.ItemName = "-Semua Item-"; listItem.Insert(0, item); viewModel.ItemList = new SelectList(listItem, "Id", "ItemName"); ArrayList arr = new ArrayList(); for (int i = 1; i <= 5; i++) { var sel = new { Id = i }; arr.Add(sel); } viewModel.ShiftNoList = new SelectList(arr, "Id", "Id"); viewModel.DateFrom = DateTime.Today; viewModel.DateTo = DateTime.Today; return(viewModel); }