Example #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>();
 }
Example #3
0
 public ProfitStatementRepository(DataSource ds)
 {
     this.ds               = ds;
     inventoryRepository   = ServiceLocator.GetObject <IInventoryRepository>();
     expenseItemRepository = ServiceLocator.GetObject <IExpenseItemRepository>();
     productQtyRepository  = ServiceLocator.GetObject <IProductQtyRepository>();
 }
Example #4
0
 public PurchaseRepository(DataSource ds)
 {
     this.ds = ds;
     purchaseItemRepository  = ServiceLocator.GetObject <IPurchaseItemRepository>();
     recordCounterRepository = ServiceLocator.GetObject <IRecordCounterRepository>();
     productQtyRepository    = ServiceLocator.GetObject <IProductQtyRepository>();
 }
Example #5
0
        public ProductListUI(PayableBalanceUI frmPayableBalance)
        {
            productQtyRepository = ServiceLocator.GetObject <IProductQtyRepository>();

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

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

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

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

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

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

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

            InitializeComponent();
        }
Example #9
0
 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>();
 }
Example #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>();
        }
Example #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();
        }
Example #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();
        }
Example #13
0
 public ProductQtyUpdateUI(ProductUI frmProduct)
 {
     this.frmProduct = frmProduct;
     InitializeComponent();
     productQtyRepository = ServiceLocator.GetObject <IProductQtyRepository>();
 }
Example #14
0
 public ProductRepository(DataSource ds)
 {
     productQtyRepository = ServiceLocator.GetObject <IProductQtyRepository>();
     this.ds = ds;
 }