private void InventoryCheckingForm_Load(object sender, EventArgs e) { /*if(!DepartmentChecking) {*/ stockViewList = new StockViewCollection(bdsProductMasters); bdsProductMasters.DataSource = stockViewList; bdsProductMasters.ResetBindings(true); stockList = new StockCollection(bdsStockDefect); bdsStockDefect.DataSource = stockList; bdsStockDefect.ResetBindings(true); /*} else { deptStockDefectList = new DepartmentStockDefectCollection(bdsStockDefect); bdsStockDefect.DataSource = stockList; bdsStockDefect.ResetBindings(true); }*/ //cboProductMasters.DisplayMember = "ProductMaster.TypeAndName"; //LoadGoodsToCombo(); txtSum.ForeColor = Color.Green; txtRealitySum.ForeColor = Color.Red; }
private void TemporaryStockOutForm_Load(object sender, EventArgs e) { stockViewList = new StockViewCollection(bdsProductMasters); bdsProductMasters.DataSource = stockViewList; bdsProductMasters.ResetBindings(true); if (!DepartmentReturnForm) { stockDefectList = new StockCollection(bdsStockDefect); bdsStockDefect.DataSource = stockDefectList; bdsStockDefect.ResetBindings(true); stockOutList = new StockOutDetailCollection(bdsStockOut); bdsStockOut.DataSource = stockOutList; bdsStockOut.ResetBindings(true); LoadGoodsToCombo(); } else { deptStockDefectList = new DepartmentStockDefectCollection(bdsStockDefect); bdsStockDefect.DataSource = deptStockDefectList; bdsStockDefect.ResetBindings(true); deptStockOutList = new DepartmentStockOutDetailCollection(bdsStockOut); bdsStockOut.DataSource = deptStockOutList; bdsStockOut.ResetBindings(true); rdoTraHang.Visible = false; rdoTamXuat.Visible = false; lblTitle.Text = " TRẢ HÀNG VỀ KHO CHÍNH"; lblStockOut.Text = " Trả hàng về kho chính"; LoadDeptGoodsToCombo(); } }