Beispiel #1
0
 public SalesRepository(DataSource ds)
 {
     this.ds                 = ds;
     salesItemRepository     = ServiceLocator.GetObject <ISalesItemRepository>();
     recordCounterRepository = ServiceLocator.GetObject <IRecordCounterRepository>();
     productQtyRepository    = ServiceLocator.GetObject <IProductQtyRepository>();
 }
 public StockCorrectionRepository(DataSource ds)
 {
     this.ds = ds;
     stockCorrectionItemRepository = ServiceLocator.GetObject <IStockCorrectionItemRepository>();
     recordCounterRepository       = ServiceLocator.GetObject <IRecordCounterRepository>();
     productQtyRepository          = ServiceLocator.GetObject <IProductQtyRepository>();
 }
Beispiel #3
0
 public ProfitStatementRepository(DataSource ds)
 {
     this.ds               = ds;
     inventoryRepository   = ServiceLocator.GetObject <IInventoryRepository>();
     expenseItemRepository = ServiceLocator.GetObject <IExpenseItemRepository>();
     productQtyRepository  = ServiceLocator.GetObject <IProductQtyRepository>();
 }
Beispiel #4
0
 public PurchaseRepository(DataSource ds)
 {
     this.ds = ds;
     purchaseItemRepository  = ServiceLocator.GetObject <IPurchaseItemRepository>();
     recordCounterRepository = ServiceLocator.GetObject <IRecordCounterRepository>();
     productQtyRepository    = ServiceLocator.GetObject <IProductQtyRepository>();
 }
Beispiel #5
0
        public ProductListUI(PayableBalanceUI frmPayableBalance)
        {
            productQtyRepository = ServiceLocator.GetObject <IProductQtyRepository>();

            this.frmPayableBalance = frmPayableBalance;
            formActive             = "PayableBalanceUI";

            InitializeComponent();
        }
Beispiel #6
0
        public ProductListUI(StockCorrectionUI frmStockCorrection)
        {
            productQtyRepository = ServiceLocator.GetObject <IProductQtyRepository>();

            this.frmStockCorrection = frmStockCorrection;
            formActive = "StockCorrectionUI";

            InitializeComponent();
        }
Beispiel #7
0
        public ProductListUI(PurchaseUI frmPurchase)
        {
            productQtyRepository = ServiceLocator.GetObject <IProductQtyRepository>();

            this.frmPurchase = frmPurchase;
            formActive       = "PurchaseUI";

            InitializeComponent();
        }
Beispiel #8
0
        public ProductListUI(SalesUI frmSales)
        {
            productQtyRepository = ServiceLocator.GetObject <IProductQtyRepository>();

            this.frmSales = frmSales;
            formActive    = "SalesUI";

            InitializeComponent();
        }
 public InventoryRepository(DataSource ds)
 {
     this.ds                       = ds;
     productRepository             = ServiceLocator.GetObject <IProductRepository>();
     productQtyRepository          = ServiceLocator.GetObject <IProductQtyRepository>();
     purchaseItemRepository        = ServiceLocator.GetObject <IPurchaseItemRepository>();
     salesItemRepository           = ServiceLocator.GetObject <ISalesItemRepository>();
     stockCorrectionItemRepository = ServiceLocator.GetObject <IStockCorrectionItemRepository>();
     payablePaymentItemRepository  = ServiceLocator.GetObject <IPayablePaymentItemRepository>();
 }
Beispiel #10
0
        public ProductUI(MainUI frmMain)
        {
            InitializeComponent();
            this.frmMain = frmMain;

            productRepository    = ServiceLocator.GetObject <IProductRepository>();
            productQtyRepository = ServiceLocator.GetObject <IProductQtyRepository>();
            supplierRepository   = ServiceLocator.GetObject <ISupplierRepository>();
            categoryRepository   = ServiceLocator.GetObject <ICategoryRepository>();
            userAccessRepository = ServiceLocator.GetObject <IUserAccessRepository>();
        }
Beispiel #11
0
        public SalesUI(MainUI frmMain)
        {
            this.frmMain = frmMain;

            salesRepository      = ServiceLocator.GetObject <ISalesRepository>();
            salesItemRepository  = ServiceLocator.GetObject <ISalesItemRepository>();
            customerRepository   = ServiceLocator.GetObject <ICustomerRepository>();
            salesmanRepository   = ServiceLocator.GetObject <ISalesmanRepository>();
            productQtyRepository = ServiceLocator.GetObject <IProductQtyRepository>();
            userAccessRepository = ServiceLocator.GetObject <IUserAccessRepository>();
            InitializeComponent();
        }
Beispiel #12
0
        public ClosingPeriodUI(MainUI frmMain)
        {
            this.frmMain = frmMain;


            salesRepository          = ServiceLocator.GetObject <ISalesRepository>();
            purchaseRepository       = ServiceLocator.GetObject <IPurchaseRepository>();
            payableBalanceRepository = ServiceLocator.GetObject <IPayableBalanceRepository>();
            debtBalanceRepository    = ServiceLocator.GetObject <IDebtBalanceRepository>();
            recordCounterRepository  = ServiceLocator.GetObject <IRecordCounterRepository>();
            salesmanFeeRepository    = ServiceLocator.GetObject <ISalesmanFeeRepository>();
            productQtyRepository     = ServiceLocator.GetObject <IProductQtyRepository>();
            inventoryRepository      = ServiceLocator.GetObject <IInventoryRepository>();


            InitializeComponent();
        }
Beispiel #13
0
 public ProductQtyUpdateUI(ProductUI frmProduct)
 {
     this.frmProduct = frmProduct;
     InitializeComponent();
     productQtyRepository = ServiceLocator.GetObject <IProductQtyRepository>();
 }
Beispiel #14
0
 public ProductRepository(DataSource ds)
 {
     productQtyRepository = ServiceLocator.GetObject <IProductQtyRepository>();
     this.ds = ds;
 }