Exemplo n.º 1
0
        private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            // 受注番号を取得
            Int64 orderNum = Int64.Parse(dataGridView1[colOrderNum, dataGridView1.SelectedRows[0].Index].Value.ToString());

            // 支払IDを取得
            int sID = int.Parse(dataGridView1[colID, dataGridView1.SelectedRows[0].Index].Value.ToString());

            // 受注確定書登録画面
            if (orderNum != 0)
            {
                frmOrder frm = new frmOrder(orderNum);
                frm.ShowDialog();
            }

            // 支払金額入力画面
            if (sID != 0)
            {
                frmShiharai frm = new frmShiharai(sID);
                frm.ShowDialog();
            }

            // データグリッドビューデータ表示
            gridShow(dataGridView1, 0, e.RowIndex);
        }
Exemplo n.º 2
0
        private void button27_Click(object sender, EventArgs e)
        {
            this.Hide();
            frmShiharai frm = new frmShiharai(0);

            frm.ShowDialog();
            this.Show();
        }