public frmOpenningQuantitiesBatches(INVProductStock iNVProductStock, frmOpenningQuantities frm) { InitializeComponent(); _iNVProductStockWrapper = new INVProductStockWrapper(); this.iNVProductStock = iNVProductStock; this.frmOpenningQuantitiesObj = frm; }
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); }
public frmOpenningQuantities() { InitializeComponent(); iNVProductStockCollection = new INVProductStockCollection(); _iNVInventoryWrapper = new INVInventoryWrapper(); _bDProductWrapper = new BDProductWrapper(); _iNVProductStockWrapper = new INVProductStockWrapper(); FillInventoryCBX(); }
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); } }
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; }
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; }
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); } }
public frmStockInquiry() { InitializeComponent(); _invProductStockWrapper = new INVProductStockWrapper(); }