//////////////////////////////////////////////////////////////////////////// // イベント名 : deleteButton_Click /// <summary> /// /// </summary> /// <param name="e"></param> /// <param name="sender"></param> /// <history> /// 日付 担当者 内容 /// 2014/06/30 DatNT 新規作成 /// </history> //////////////////////////////////////////////////////////////////////////// private void deleteButton_Click(object sender, EventArgs e) { TraceLog.StartWrite(MethodInfo.GetCurrentMethod()); Cursor preCursor = Cursor.Current; try { Cursor.Current = Cursors.WaitCursor; // データを削除する際に、警告を表示する。 if (MessageForm.Show2(MessageForm.DispModeType.Question, "表示されているデータが削除されます。よろしいですか?") == System.Windows.Forms.DialogResult.Yes) { // 保健所マスタに対象となる保健所コードが登録されている事を確認する。 IDeleteBtnClickALInput alInput = new DeleteBtnClickALInput(); alInput.ShoriHoshikiKbn = shoriHoshikiKbnTextBox.Text.Trim(); alInput.ShoriHoshikiCd = shoriHoshikiCdTextBox.Text.Trim(); IDeleteBtnClickALOutput alOutput = new DeleteBtnClickApplicationLogic().Execute(alInput); if (alOutput.Result) { ShoriHoshikiMstListForm form = new ShoriHoshikiMstListForm(); Program.mForm.ShowForm(form); } else { MessageForm.Show2(MessageForm.DispModeType.Error, string.Format("該当するデータは登録されていません。[処理方式区分:{0}、処理方式コード:{1}]", new string[] { shoriHoshikiKbnTextBox.Text, shoriHoshikiCdTextBox.Text })); } } } 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()); } }
//////////////////////////////////////////////////////////////////////////// // イベント名 : deleteButton_Click /// <summary> /// /// </summary> /// <param name="sender"></param> /// <param name="e"></param> /// <history> /// 日付 担当者 内容 /// 2014/06/26 AnhNV 新規作成 /// </history> //////////////////////////////////////////////////////////////////////////// private void deleteButton_Click(object sender, EventArgs e) { TraceLog.StartWrite(MethodInfo.GetCurrentMethod()); Cursor preCursor = Cursor.Current; try { Cursor.Current = Cursors.WaitCursor; if (MessageForm.Show2(MessageForm.DispModeType.Question, "表示されているデータが削除されます。よろしいですか?") == DialogResult.Yes) { IDeleteBtnClickALInput delInput = new DeleteBtnClickALInput(); delInput.ShishoCd = sishoCdTextBox.Text; IDeleteBtnClickALOutput delOutput = new DeleteBtnClickApplicationLogic().Execute(delInput); // SaisuiinCd does not exist if (!string.IsNullOrEmpty(delOutput.ErrMsg)) { MessageForm.Show2(MessageForm.DispModeType.Error, delOutput.ErrMsg); return; } // Close this screen and back to ShishoMst form ShishoMstListForm frm = new ShishoMstListForm(); 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()); } }
//////////////////////////////////////////////////////////////////////////// // イベント名 : deleteButton_Click /// <summary> /// /// </summary> /// <param name="sender"></param> /// <param name="e"></param> /// <history> /// 日付 担当者 内容 /// 2014/07/03 HuyTX 新規作成 /// </history> //////////////////////////////////////////////////////////////////////////// private void deleteButton_Click(object sender, EventArgs e) { TraceLog.StartWrite(MethodInfo.GetCurrentMethod()); Cursor preCursor = Cursor.Current; try { Cursor.Current = Cursors.WaitCursor; if (MessageForm.Show2(MessageForm.DispModeType.Question, "表示されているデータが削除されます。よろしいですか?") == DialogResult.Yes) { IDeleteBtnClickALInput alInput = new DeleteBtnClickALInput(); alInput.SuishitsuShikenKoumokuCd = this._suishitsuShikenKoumokuCd; IDeleteBtnClickALOutput alOutput = new DeleteBtnClickApplicationLogic().Execute(alInput); //check not exist record if (!string.IsNullOrEmpty(alOutput.ErrMessage)) { MessageForm.Show2(MessageForm.DispModeType.Error, alOutput.ErrMessage); return; } //close form and redirect SuishitsuShikenKoumokuMstListForm SuishitsuShikenKoumokuMstListForm frm = new SuishitsuShikenKoumokuMstListForm(); 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()); } }
//////////////////////////////////////////////////////////////////////////// // イベント名 : deleteButton_Click /// <summary> /// /// </summary> /// <param name="e"></param> /// <param name="sender"></param> /// <history> /// 日付 担当者 内容 /// 2014/07/29 HuyTX 新規作成 /// </history> //////////////////////////////////////////////////////////////////////////// private void deleteButton_Click(object sender, EventArgs e) { TraceLog.StartWrite(MethodInfo.GetCurrentMethod()); Cursor preCursor = Cursor.Current; try { Cursor.Current = Cursors.WaitCursor; if (MessageForm.Show2(MessageForm.DispModeType.Question, "表示されているデータが削除されます。よろしいですか?") != DialogResult.Yes) return; IDeleteBtnClickALInput alInput = new DeleteBtnClickALInput(); alInput.KenchikuyotoDaibunruiCd = this._kenchikuyotoDaibunruiCd; alInput.KenchikuyotoShobunruiCd = this._kenchikuyotoShobunruiCd; alInput.KenchikuyotoRenban = Int32.Parse(this._kenchikuyotoRenban); IDeleteBtnClickALOutput alOutput = new DeleteBtnClickApplicationLogic().Execute(alInput); //check not exist record if (!string.IsNullOrEmpty(alOutput.ErrMessage)) { string kenchikuyotoDaibunruiNm = kenchikuyotoDaibunruiListBox.GetItemText(kenchikuyotoDaibunruiListBox.SelectedItem); string kenchikuyotoShobunruiNm = kenchikuyotoShobunruiListBox.GetItemText(kenchikuyotoShobunruiListBox.SelectedItem); MessageForm.Show2(MessageForm.DispModeType.Error, string.Format(alOutput.ErrMessage, new string[] { kenchikuyotoDaibunruiNm, kenchikuyotoShobunruiNm, _kenchikuyotoRenban })); return; } //close form and redirect KenchikuyotoMstListForm KenchikuyotoMstListForm frm = new KenchikuyotoMstListForm(); 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()); } }
//////////////////////////////////////////////////////////////////////////// // イベント名 : deleteButton_Click /// <summary> /// /// </summary> /// <param name="e"></param> /// <param name="sender"></param> /// <history> /// 日付 担当者 内容 /// 2014/07/07 DatNT 新規作成 /// </history> //////////////////////////////////////////////////////////////////////////// private void deleteButton_Click(object sender, EventArgs e) { TraceLog.StartWrite(MethodInfo.GetCurrentMethod()); Cursor preCursor = Cursor.Current; try { Cursor.Current = Cursors.WaitCursor; if (MessageForm.Show2(MessageForm.DispModeType.Question, "表示されているデータが削除されます。よろしいですか?") == System.Windows.Forms.DialogResult.Yes) { IDeleteBtnClickALInput alInput = new DeleteBtnClickALInput(); alInput.KatashikiMakerCd = katashikiMakerCdTextBox.Text; alInput.KatashikiCd = katashikiCdTextBox.Text; IDeleteBtnClickALOutput alOutput = new DeleteBtnClickApplicationLogic().Execute(alInput); if (string.IsNullOrEmpty(alOutput.ErrorMessage)) { KatashikiMstListForm form = new KatashikiMstListForm(); Program.mForm.ShowForm(form); } else { MessageForm.Show2(MessageForm.DispModeType.Error, alOutput.ErrorMessage); } } } 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()); } }