//////////////////////////////////////////////////////////////////////////// // イベント名 : ShosaiButton_Click /// <summary> /// /// </summary> /// <param name="e"></param> /// <param name="sender"></param> /// <history> /// 日付 担当者 内容 /// 2014/07/04 DatNT 新規作成 /// </history> //////////////////////////////////////////////////////////////////////////// private void ShosaiButton_Click(object sender, EventArgs e) { TraceLog.StartWrite(MethodInfo.GetCurrentMethod()); Cursor preCursor = Cursor.Current; try { Cursor.Current = Cursors.WaitCursor; if (shokuinListDataGridView.RowCount == 0) { MessageForm.Show2(MessageForm.DispModeType.Error, "対象データを選択して下さい。"); return; } ShokuinMstShosaiForm frm = new ShokuinMstShosaiForm(shokuinListDataGridView.CurrentRow.Cells["ShokuinCdCol"].Value.ToString()); Program.mForm.ShowForm(frm); } catch (Exception ex) { TraceLog.ErrorWrite(MethodInfo.GetCurrentMethod(), ex.ToString()); MessageForm.Show(MessageForm.DispModeType.Error, MessageResouce.MSGID_E00001, ex.Message); } finally { Cursor.Current = preCursor; TraceLog.EndWrite(MethodInfo.GetCurrentMethod()); } }
//////////////////////////////////////////////////////////////////////////// // イベント名 : TorokuButton_Click /// <summary> /// /// </summary> /// <param name="e"></param> /// <param name="sender"></param> /// <history> /// 日付 担当者 内容 /// 2014/07/04 DatNT 新規作成 /// </history> //////////////////////////////////////////////////////////////////////////// private void TorokuButton_Click(object sender, EventArgs e) { TraceLog.StartWrite(MethodInfo.GetCurrentMethod()); Cursor preCursor = Cursor.Current; try { Cursor.Current = Cursors.WaitCursor; ShokuinMstShosaiForm frm = new ShokuinMstShosaiForm(); Program.mForm.ShowForm(frm); } catch (Exception ex) { TraceLog.ErrorWrite(MethodInfo.GetCurrentMethod(), ex.ToString()); MessageForm.Show(MessageForm.DispModeType.Error, MessageResouce.MSGID_E00001, ex.Message); } finally { Cursor.Current = preCursor; TraceLog.EndWrite(MethodInfo.GetCurrentMethod()); } }
//////////////////////////////////////////////////////////////////////////// // イベント名 : shokuinListDataGridView_CellDoubleClick /// <summary> /// /// </summary> /// <param name="e"></param> /// <param name="sender"></param> /// <history> /// 日付 担当者 内容 /// 2014/07/04 DatNT 新規作成 /// </history> //////////////////////////////////////////////////////////////////////////// private void shokuinListDataGridView_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { TraceLog.StartWrite(MethodInfo.GetCurrentMethod()); Cursor preCursor = Cursor.Current; try { Cursor.Current = Cursors.WaitCursor; if (e.RowIndex == -1) { return; } ShokuinMstShosaiForm frm = new ShokuinMstShosaiForm(shokuinListDataGridView.Rows[e.RowIndex].Cells["ShokuinCdCol"].Value.ToString()); Program.mForm.ShowForm(frm); } catch (Exception ex) { TraceLog.ErrorWrite(MethodInfo.GetCurrentMethod(), ex.ToString()); MessageForm.Show(MessageForm.DispModeType.Error, MessageResouce.MSGID_E00001, ex.Message); } finally { Cursor.Current = preCursor; TraceLog.EndWrite(MethodInfo.GetCurrentMethod()); } }