Exemplo n.º 1
0
        /// <summary>
        /// 제품 보유량이 부족시 발주버튼이 활성화되고 발주가 가능
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void DgvProList_CellClick(object sender, DataGridViewCellEventArgs e)
        {
            if (e.RowIndex == -1)
            {
            }
            else
            {
                if (dgvProList.Columns[e.ColumnIndex].Name == "발주")
                {
                    DataGridViewDisableButtonCell buttonCell =
                        (DataGridViewDisableButtonCell)dgvProList.
                        Rows[e.RowIndex].Cells["발주"];

                    if (buttonCell.Enabled)
                    {
                        FrmBomMatEstimating fb = new FrmBomMatEstimating(new SalesDao().ProNo(dgvProList.Rows[e.RowIndex].Cells[0].Value.ToString()), dgvProList.Rows[e.RowIndex].Cells[0].Value.ToString(), (Int32.Parse(dgvProList.Rows[e.RowIndex].Cells[1].Value.ToString()) - Int32.Parse(dgvProList.Rows[e.RowIndex].Cells[3].Value.ToString())).ToString());
                        fb.Show();
                    }
                }
            }
        }
Exemplo n.º 2
0
        /// <summary>
        /// 생산 예측 버튼 클릭 이벤트
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnBomMatEstimating_Click(object sender, EventArgs e)
        {
            FrmBomMatEstimating fmec = new FrmBomMatEstimating();

            fmec.ShowDialog();
        }