예제 #1
0
        ////////////////////////////////////////////////////////////////////////////
        //  イベント名 : torokuButton_Click
        /// <summary>
        /// 
        /// </summary>
        /// <param name="e"></param>
        /// <param name="sender"></param>
        /// <history>
        /// 日付    担当者   内容
        /// 2014/07/28 HuyTX    新規作成
        /// </history>
        ////////////////////////////////////////////////////////////////////////////
        private void torokuButton_Click(object sender, EventArgs e)
        {
            TraceLog.StartWrite(MethodInfo.GetCurrentMethod());
            Cursor preCursor = Cursor.Current;

            try
            {
                Cursor.Current = Cursors.WaitCursor;

                KenchikuyotoMstShosaiForm frm = new KenchikuyotoMstShosaiForm();
                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());
            }
        }
예제 #2
0
        ////////////////////////////////////////////////////////////////////////////
        //  イベント名 : shosaiButton_Click
        /// <summary>
        /// 
        /// </summary>
        /// <param name="e"></param>
        /// <param name="sender"></param>
        /// <history>
        /// 日付    担当者   内容
        /// 2014/07/28 HuyTX    新規作成
        /// </history>
        ////////////////////////////////////////////////////////////////////////////
        private void shosaiButton_Click(object sender, EventArgs e)
        {
            TraceLog.StartWrite(MethodInfo.GetCurrentMethod());
            Cursor preCursor = Cursor.Current;

            try
            {
                Cursor.Current = Cursors.WaitCursor;

                if (kenchikuyotoListDataGridView.RowCount == 0)
                {
                    MessageForm.Show2(MessageForm.DispModeType.Error, "対象データを選択して下さい。");
                    return;
                }

                string kenchikuyotoDaibunruiCd = kenchikuyotoListDataGridView.CurrentRow.Cells["KenchikuyotoDaibunruiCdCol"].Value.ToString();
                string kenchikuyotoShobunruiCd = kenchikuyotoListDataGridView.CurrentRow.Cells["KenchikuyotoShobunruiCdCol"].Value.ToString();
                string kenchikuyotoRenban = kenchikuyotoListDataGridView.CurrentRow.Cells["KenchikuyotoRenbanCol"].Value.ToString();

                KenchikuyotoMstShosaiForm frm = new KenchikuyotoMstShosaiForm(kenchikuyotoDaibunruiCd, kenchikuyotoShobunruiCd, kenchikuyotoRenban);
                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());
            }
        }