Ejemplo n.º 1
0
 public frmOpenningQuantitiesBatches(INVProductStock iNVProductStock, frmOpenningQuantities frm)
 {
     InitializeComponent();
     _iNVProductStockWrapper = new INVProductStockWrapper();
     this.iNVProductStock = iNVProductStock;
     this.frmOpenningQuantitiesObj = frm;
 }
Ejemplo n.º 2
0
 public frmOpenningQuantities()
 {
     InitializeComponent();
     iNVProductStockCollection = new INVProductStockCollection();
     _iNVInventoryWrapper = new INVInventoryWrapper();
     _bDProductWrapper = new BDProductWrapper();
     _iNVProductStockWrapper = new INVProductStockWrapper();
     FillInventoryCBX();
 }
Ejemplo n.º 3
0
        private void dgrid_stock_SelectionChanged(object sender, EventArgs e)
        {
            if (dgrid_stock.SelectedRows.Count > 0)
            {
                int _productStockID = (int)dgrid_stock.SelectedRows[0].Cells["col_invProductStock"].Value;
                INVProductStockWrapper _iNVProductStockWrapper;
                _iNVProductStockWrapper = new INVProductStockWrapper();
                dgrid_batches.AutoGenerateColumns = false;
                dgrid_batches.DataSource = _iNVProductStockWrapper.GetInventoryStock(_productStockID, null, null, true, true, (int)cmb_Inventory.SelectedValue);

            }
        }
Ejemplo n.º 4
0
 public FrmAdjustStockAddEdit(FrmAdjustmentSearch frmAdjustmentSearch)
 {
     InitializeComponent();
     this._invProductStockWrapper = new INVProductStockWrapper();
     this._inventoryWrapper = new INVInventoryWrapper();
     this._stockTypeWrapper = new INVStockTypeWrapper();
     this._adjustStockReasonWrapper = new INVAdjustStockReasonWrapper();
     this._adjustStockWrapper = new INVAdjustStockWrapper();
     this._adjustStock = new INVAdjustStock();
     this._ProductWrapper = new BDProductWrapper();
     this._adjustStockCollection = new INVAdjustStockCollection();
     this._isEdit = false;
     this._frmAdjustmentSearch = frmAdjustmentSearch;
 }
Ejemplo n.º 5
0
 public FrmAdjustStockAddEdit(int id, FrmAdjustmentSearch frmAdjustmentSearch)
 {
     InitializeComponent();
     this._invProductStockWrapper = new INVProductStockWrapper();
     this._inventoryWrapper = new INVInventoryWrapper();
     this._stockTypeWrapper = new INVStockTypeWrapper();
     this._adjustStockReasonWrapper = new INVAdjustStockReasonWrapper();
     this._adjustStockWrapper = new INVAdjustStockWrapper();
     this._adjustStock = new INVAdjustStock();
     this._ProductWrapper = new BDProductWrapper();
     this._isEdit = true;
     this._adjustStockID = id;
     GetAdjustStockData(_adjustStockID.Value);
     this._frmAdjustmentSearch = frmAdjustmentSearch;
 }
Ejemplo n.º 6
0
 private void FillBatches()
 {
     try
     {
         dgrid_batches.DataSource = null;
         if (dgrid_stock.SelectedRows.Count == 0)
             return;
         int _productStockID = (int)dgrid_stock.SelectedRows[0].Cells["col_invProductStock"].Value;
         INVProductStockWrapper _iNVProductStockWrapper = new INVProductStockWrapper();
         dgrid_batches.AutoGenerateColumns = false;
         var batcheslist = _iNVProductStockWrapper.GetInventoryStock(_productStockID, null, null, true, true, (int)cbx_Store.SelectedValue);
         dgrid_batches.DataSource = batcheslist;
     }
     catch (Exception ex)
     {
         MessageBox.Show("حدث خطأ برجاء تكرار العمليه مره اخرى واذا تكرر الخطا برجاءالاتصال بالشخص المصمم للبرنامج وارسال رسالة الخطا التى ستظهر بعد قليل له");
         MessageBox.Show(ex.Message);
     }
 }
Ejemplo n.º 7
0
 public frmStockInquiry()
 {
     InitializeComponent();
     _invProductStockWrapper = new INVProductStockWrapper();
 }