Beispiel #1
0
        /// <summary>
        /// チェックリスト一覧
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void dgvIchiran_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {
            DataGridView dgv = (DataGridView)sender;

            if (dgv.Columns[e.ColumnIndex].Name == "業務チェック" || dgv.Columns[e.ColumnIndex].Name == "業務修正")
            {
                string yyyyMM = dgv.Rows[e.RowIndex].Cells[2].Value.ToString();
                string Cd     = dgv.Rows[e.RowIndex].Cells[3].Value.ToString();
                string state  = dgv.Rows[e.RowIndex].Cells[5].Value.ToString();
                string Nm     = dgv.Rows[e.RowIndex].Cells[4].Value.ToString();
                if (dgv.Columns[e.ColumnIndex].Name == "業務チェック")
                {
                    GC0040 Gc0040 = new GC0040(user, yyyyMM, Cd, Nm);
                    Gc0040.ShowDialog();
                    Result();
                }
                else if (dgv.Columns[e.ColumnIndex].Name == "業務修正")
                {
                    GC0050 Gc0050 = new GC0050(user, yyyyMM, Cd, state);
                    Gc0050.ShowDialog();
                    if (Gc0050.torokuFlg)
                    {
                        Result();
                    }
                }
                if (e.RowIndex < 0)
                {
                    return;
                }
            }
        }
Beispiel #2
0
        /// <summary>
        /// 業務登録画面に遷移
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnNew_Click(object sender, EventArgs e)
        {
            GC0050 Gc0050 = new GC0050(user);

            Gc0050.ShowDialog();
            if (Gc0050.torokuFlg)
            {
                Result();
            }
        }