public PurchaseReceiveDetailsForm(PurchaseReceiveModel purchaseReceive)
        {
            InitializeComponent();
            IKernel kernel = BootStrapper.Initialize();

            _purchaseReceiveDetailService = kernel.GetService(typeof(PurchaseReceiveDetailService)) as PurchaseReceiveDetailService;
            _purchaseChallanDetailService = kernel.GetService(typeof(PurchaseChallanDetailService)) as PurchaseChallanDetailService;
            _productCategoryService       = kernel.GetService(typeof(ProductCategoryService)) as ProductCategoryService;
            _productService = kernel.GetService(typeof(ProductService)) as ProductService;

            _purchaseReceive       = purchaseReceive;
            _purchaseReceiveDetail = new PurchaseReceiveDetailModel();
        }
Ejemplo n.º 2
0
        public ProductStoreForm()
        {
            InitializeComponent();
            IKernel kernel = BootStrapper.Initialize();

            _productStoreService          = kernel.GetService(typeof(ProductStoreService)) as ProductStoreService;
            _purchaseReceiveService       = kernel.GetService(typeof(PurchaseReceiveService)) as PurchaseReceiveService;
            _purchaseReceiveDetailService = kernel.GetService(typeof(PurchaseReceiveDetailService)) as PurchaseReceiveDetailService;
            _productUnitService           = kernel.GetService(typeof(ProductUnitService)) as ProductUnitService;
            _productSectionService        = kernel.GetService(typeof(ProductSectionService)) as ProductSectionService;

            _productStore = new ProductStoreModel();
        }