示例#1
0
 public frmOpenningQuantitiesBatches(INVProductStock iNVProductStock, frmOpenningQuantities frm)
 {
     InitializeComponent();
     _iNVProductStockWrapper       = new INVProductStockWrapper();
     this.iNVProductStock          = iNVProductStock;
     this.frmOpenningQuantitiesObj = frm;
 }
示例#2
0
        private void FillBatches()
        {
            int _productStockID = (int)dgrid_stock.SelectedRows[0].Cells["col_invProductStock"].Value;
            INVProductStockWrapper _iNVProductStockWrapper = new INVProductStockWrapper();

            dgrid_batches.AutoGenerateColumns = false;
            dgrid_batches.DataSource          = _iNVProductStockWrapper.GetInventoryStock(_productStockID, null, null, true, true);
        }
示例#3
0
 public frmOpenningQuantities()
 {
     InitializeComponent();
     iNVProductStockCollection = new INVProductStockCollection();
     _iNVInventoryWrapper      = new INVInventoryWrapper();
     _bDProductWrapper         = new BDProductWrapper();
     _iNVProductStockWrapper   = new INVProductStockWrapper();
     FillInventoryCBX();
 }
示例#4
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);
     }
 }
示例#5
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;
 }
示例#6
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;
 }
示例#7
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);
     }
 }
示例#8
0
 public frmStockInquiry()
 {
     InitializeComponent();
     _invProductStockWrapper = new INVProductStockWrapper();
 }