private void btnAdd_Click(object sender, EventArgs e)
        {
            StockReceivingItemDetailUI loStockReceivingItemDetail = new StockReceivingItemDetailUI();

            loStockReceivingItemDetail.ParentList = this;
            loStockReceivingItemDetail.ShowDialog();
        }
コード例 #2
0
        private void btnEdit_Click(object sender, EventArgs e)
        {
            StockReceivingItemDetailUI loStockReceivingItemDetail = new StockReceivingItemDetailUI(dgvDetail.CurrentRow.Cells[0].Value.ToString(),
                                                                                                   dgvDetail.CurrentRow.Cells[1].Value.ToString(),
                                                                                                   dgvDetail.CurrentRow.Cells[2].Value.ToString(),
                                                                                                   dgvDetail.CurrentRow.Cells[3].Value.ToString(),
                                                                                                   dgvDetail.CurrentRow.Cells[4].Value.ToString(),
                                                                                                   decimal.Parse(dgvDetail.CurrentRow.Cells[6].Value.ToString()),
                                                                                                   decimal.Parse(dgvDetail.CurrentRow.Cells[7].Value.ToString()),
                                                                                                   decimal.Parse(dgvDetail.CurrentRow.Cells[8].Value.ToString()),
                                                                                                   decimal.Parse(dgvDetail.CurrentRow.Cells[9].Value.ToString()),
                                                                                                   dgvDetail.CurrentRow.Cells[10].Value.ToString());

            loStockReceivingItemDetail.ParentList = this;
            loStockReceivingItemDetail.ShowDialog();
        }