示例#1
0
        private void ShowCurrentLotNumbers()
        {   //Takes Care of Loading the DataGridView with any lot numbers that are registered under the work order
            dgNewLots.DataSource = null;
            Classes.DataAccess.SalesDataAccess db = new Classes.DataAccess.SalesDataAccess();
            currentLots = db.GetCurrentLotNumbers(lblWorkOrder.Text);

            dgNewLots.DataSource = currentLots;
        }
示例#2
0
        private void refreshLotView()
        {
            //Refresh Lot Number Grid
            dgLotGrid.DataSource = null;
            Classes.DataAccess.SalesDataAccess db = new Classes.DataAccess.SalesDataAccess();

            lotNumbers           = db.GetCurrentLotNumbers(dgWORGrid.Rows[WORRow].Cells["JobWOR"].Value.ToString());
            dgLotGrid.DataSource = lotNumbers;
            dgLotGrid.Columns["JobWOR"].Visible = false;
            dgLotGrid.Columns["LotID"].Visible  = false;

            dgLotGrid.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.AllCells;
            dgLotGrid.Columns["JobComments"].AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
        }