示例#1
0
        private DispMode GetNextStateDisplayMode(DispMode currentDispMode)
        {
            DispMode dispMode = currentDispMode;

            switch (currentDispMode)
            {
            case DispMode.normal:
                dispMode = DispMode.transparent;
                break;

            case DispMode.hide:
                dispMode = DispMode.normal;
                break;

            case DispMode.transparent:
                dispMode = DispMode.hide;
                break;
            }

            return(dispMode);
        }
示例#2
0
        ////////////////////////////////////////////////////////////////////////////
        //  イベント名 : ShishoMstShosaiForm_Load
        /// <summary>
        /// 
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        /// <history>
        /// 日付    担当者   内容
        /// 2014/06/26 AnhNV      新規作成
        /// </history>
        ////////////////////////////////////////////////////////////////////////////
        private void ShishoMstShosaiForm_Load(object sender, EventArgs e)
        {
            TraceLog.StartWrite(MethodInfo.GetCurrentMethod());
            Cursor preCursor = Cursor.Current;

            try
            {
                Cursor.Current = Cursors.WaitCursor;

                // Add mode title
                this.Text = "支所マスタ登録";

                // Detail mode
                if (!string.IsNullOrEmpty(this._shishoCd))
                {
                    this._dispMode = DispMode.Detail;
                    this.Text = "支所マスタ詳細";
                }

                // Load and display default value
                DoFormLoad();

                // Title of screen
                SetScreenTitle();

                // Display/Input control
                ItemControl();
            }
            catch (Exception ex)
            {
                TraceLog.ErrorWrite(MethodInfo.GetCurrentMethod(), ex.ToString());
                MessageForm.Show(MessageForm.DispModeType.Error, MessageResouce.MSGID_E00001, ex.Message);

                this.DialogResult = DialogResult.Abort;
                this.Close();
            }
            finally
            {
                Cursor.Current = preCursor;
                TraceLog.EndWrite(MethodInfo.GetCurrentMethod());
            }
        }
示例#3
0
        ////////////////////////////////////////////////////////////////////////////
        //  イベント名 : reInputButton_Click
        /// <summary>
        /// 
        /// </summary>
        /// <param name="e"></param>
        /// <param name="sender"></param>
        /// <history>
        /// 日付    担当者   内容
        /// 2014/07/29 HuyTX    新規作成
        /// </history>
        ////////////////////////////////////////////////////////////////////////////
        private void reInputButton_Click(object sender, EventArgs e)
        {
            TraceLog.StartWrite(MethodInfo.GetCurrentMethod());
            Cursor preCursor = Cursor.Current;

            try
            {
                Cursor.Current = Cursors.WaitCursor;

                if (string.IsNullOrEmpty(_kenchikuyotoDaibunruiCd) && string.IsNullOrEmpty(_kenchikuyotoShobunruiCd) && string.IsNullOrEmpty(_kenchikuyotoRenban))
                {
                    this._displayMode = DispMode.Add;
                }
                else
                {
                    this._displayMode = DispMode.Edit;
                }

                SetDisplayControl();
            }
            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());
            }
        }
示例#4
0
        ////////////////////////////////////////////////////////////////////////////
        //  メソッド名 : DoFormLoad
        /// <summary>
        /// 
        /// </summary>
        /// <history>
        /// 日付    担当者   内容
        /// 2014/07/29 HuyTX    新規作成
        /// </history>
        ////////////////////////////////////////////////////////////////////////////
        private void DoFormLoad()
        {
            IFormLoadALInput alInput = new FormLoadALInput();

            alInput.HenchikuyotoDaibunruiCd = _kenchikuyotoDaibunruiCd;
            alInput.KenchikuyotoShobunruiCd = _kenchikuyotoShobunruiCd;
            alInput.KenchikuyotoRenban = (string.IsNullOrEmpty(_kenchikuyotoRenban))? 0 : Int32.Parse(_kenchikuyotoRenban);

            IFormLoadALOutput alOutput = new FormLoadApplicationLogic().Execute(alInput);

            this._kenchikuyotoMstDataTable = alOutput.KenchikuyotoMstDataTable;
            this._kenchikuyotoDaibunruiMstDataTable = alOutput.KenchikuyotoDaibunruiMstDataTable;
            this._kenchikuyotoShobunruiMstDataTable = alOutput.KenchikuyotoShobunruiMstDataTable;

            if (!string.IsNullOrEmpty(_kenchikuyotoDaibunruiCd)
                && !string.IsNullOrEmpty(_kenchikuyotoShobunruiCd)
                && !string.IsNullOrEmpty(_kenchikuyotoRenban))
            {
                this._displayMode = DispMode.Detail;
                this.Text = "建築用途マスタ詳細";

                SetDefaultValueControl();
            }
            else
            {
                // Set data Daibunrui listbox
                Utility.Utility.SetListBoxSource(kenchikuyotoDaibunruiListBox, _kenchikuyotoDaibunruiMstDataTable, "KenchikuyotoDaibunruiNm", "KenchikuyotoDaibunruiCd");

                // Set data Shobunrui listbox
                Utility.Utility.SetListBoxSource(kenchikuyotoShobunruiListBox, _kenchikuyotoShobunruiMstDataTable, "KenchikuyotoShobunruiNm", "KenchikuyotoShobunruiCd");
            }

            kenchikuyotoDaibunruiListBox.SelectedIndex = 0;
            kenchikuyotoShobunruiListBox.SelectedIndex = 0;
        }
示例#5
0
        ////////////////////////////////////////////////////////////////////////////
        //  イベント名 : changeButton_Click
        /// <summary>
        /// 
        /// </summary>
        /// <param name="e"></param>
        /// <param name="sender"></param>
        /// <history>
        /// 日付    担当者   内容
        /// 2014/07/29 HuyTX    新規作成
        /// </history>
        ////////////////////////////////////////////////////////////////////////////
        private void changeButton_Click(object sender, EventArgs e)
        {
            TraceLog.StartWrite(MethodInfo.GetCurrentMethod());
            Cursor preCursor = Cursor.Current;

            try
            {
                Cursor.Current = Cursors.WaitCursor;

                if (this._displayMode == DispMode.Edit)
                {
                    if (!IsValidData())
                    {
                        return;
                    }
                    this._displayMode = DispMode.Confirm;
                }

                if (this._displayMode == DispMode.Detail)
                {
                    this._displayMode = DispMode.Edit;
                }

                SetDisplayControl();
            }
            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());
            }
        }
示例#6
0
        ////////////////////////////////////////////////////////////////////////////
        //  イベント名 : ChangeButton_Click
        /// <summary>
        /// 
        /// </summary>
        /// <param name="e"></param>
        /// <param name="sender"></param>
        /// <history>
        /// 日付    担当者   内容
        /// 2014/06/25  DatNT      新規作成
        /// </history>
        ////////////////////////////////////////////////////////////////////////////
        private void ChangeButton_Click(object sender, EventArgs e)
        {
            TraceLog.StartWrite(MethodInfo.GetCurrentMethod());
            Cursor preCursor = Cursor.Current;

            try
            {
                Cursor.Current = Cursors.WaitCursor;

                if (_dispMode == DispMode.Detail)
                {
                    _dispMode = DispMode.Edit;

                    Program.mForm.Text = "水質マスタ変更";
                }
                else if (_dispMode == DispMode.Edit)
                {
                    if (!DataCheck()) return;

                    // update mode = EDIT
                    _updateMode = _dispMode;

                    // display mode
                    _dispMode = DispMode.Confirm;

                    Program.mForm.Text = "水質マスタ入力確認";
                }

                SetControlModeView();
            }
            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());
            }
        }
示例#7
0
        ////////////////////////////////////////////////////////////////////////////
        //  イベント名 : reInputButton_Click
        /// <summary>
        /// 
        /// </summary>
        /// <param name="e"></param>
        /// <param name="sender"></param>
        /// <history>
        /// 日付    担当者   内容
        /// 2014/06/30  DatNT      新規作成
        /// </history>
        ////////////////////////////////////////////////////////////////////////////
        private void reInputButton_Click(object sender, EventArgs e)
        {
            TraceLog.StartWrite(MethodInfo.GetCurrentMethod());
            Cursor preCursor = Cursor.Current;

            try
            {
                Cursor.Current = Cursors.WaitCursor;

                if (_updateMode == DispMode.Add)
                {
                    _dispMode = DispMode.Add;
                }
                else if (_updateMode == DispMode.Edit)
                {
                    _dispMode = DispMode.Edit;
                }

                SetControlModeView();
            }
            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());
            }
        }
示例#8
0
        ////////////////////////////////////////////////////////////////////////////
        //  イベント名 : reInputButton_Click
        /// <summary>
        /// 
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        /// <history>
        /// 日付    担当者   内容
        /// 2014/06/26 AnhNV      新規作成
        /// </history>
        ////////////////////////////////////////////////////////////////////////////
        private void reInputButton_Click(object sender, EventArgs e)
        {
            TraceLog.StartWrite(MethodInfo.GetCurrentMethod());
            Cursor preCursor = Cursor.Current;

            try
            {
                Cursor.Current = Cursors.WaitCursor;

                this._dispMode = string.IsNullOrEmpty(this._shishoCd) ? DispMode.Add : DispMode.Edit;

                // Screen title
                SetScreenTitle();

                // Item control display
                ItemControl();
            }
            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());
            }
        }
        ////////////////////////////////////////////////////////////////////////////
        //  メソッド名 : DoFormLoad
        /// <summary>
        /// 
        /// </summary>
        /// <history>
        /// 日付    担当者   内容
        /// 2014/07/03 HuyTX    新規作成
        /// </history>
        ////////////////////////////////////////////////////////////////////////////
        private void DoFormLoad()
        {
            IFormLoadALInput alInput = new FormLoadALInput();
            alInput.ShishoCd = this._shishoCd;
            alInput.SuishitsuKekkaNmCd = this._suishitsuKekkaCd;

            IFormLoadALOutput alOutput = new FormLoadApplicationLogic().Execute(alInput);

            this._suishitsuKekkaNmMstDT = alOutput.SuishitsuKekkaNmMstDT;

            // Set default Shisho combobox
            Utility.Utility.SetComboBoxList(shishoNmComboBox, alOutput.ShishoMstDT, "ShishoNm", "ShishoCd", true);

            if (!string.IsNullOrEmpty(this._shishoCd) && !string.IsNullOrEmpty(this._suishitsuKekkaCd))
            {
                this._displayMode = DispMode.Detail;
                this.Text = "水質結果名称マスタ詳細";

                SetDefaultValueControl();
            }
        }
示例#10
0
        ////////////////////////////////////////////////////////////////////////////
        //  イベント名 : TyumonShosaiForm_Load
        /// <summary>
        /// 
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        /// <history>
        /// 日付    担当者   内容
        /// 2014/07/21 AnhNV      新規作成
        /// </history>
        ////////////////////////////////////////////////////////////////////////////
        private void TyumonShosaiForm_Load(object sender, EventArgs e)
        {
            TraceLog.StartWrite(MethodInfo.GetCurrentMethod());
            Cursor preCursor = Cursor.Current;

            try
            {
                Cursor.Current = Cursors.WaitCursor;

                // Add mode title
                titleLabel.Text = "注文登録";

                // Detail mode
                if (!string.IsNullOrEmpty(this._yoshiHanbaiChumonNo))
                {
                    this._dispMode = DispMode.Detail;
                    titleLabel.Text = "注文詳細";
                }

                // Load and display default value
                DoFormLoad();

                // Title of screen
                SetScreenTitle();

                // Display/Input control
                ItemControl();

                // Focus to 支所(1)
                shishoNmComboBox.Focus();
                yoshiListDataGridView.Font = new Font("Meiryo", 17.75F, GraphicsUnit.Pixel);
            }
            catch (Exception ex)
            {
                TraceLog.ErrorWrite(MethodInfo.GetCurrentMethod(), ex.ToString());
                MessageForm.Show(MessageForm.DispModeType.Error, MessageResouce.MSGID_E00001, ex.Message);

                this.DialogResult = DialogResult.Abort;
                this.Close();
            }
            finally
            {
                Cursor.Current = preCursor;
                TraceLog.EndWrite(MethodInfo.GetCurrentMethod());
            }
        }
示例#11
0
        private void JokasoDaichoShosai_Load(object sender, EventArgs e)
        {
            TraceLog.StartWrite(MethodInfo.GetCurrentMethod());
            Cursor preCursor = Cursor.Current;

            try
            {
                Cursor.Current = Cursors.WaitCursor;

                if (string.IsNullOrEmpty(this._hokenjoCd) || string.IsNullOrEmpty(this._torokuNengetsu) || string.IsNullOrEmpty(this._renban))
                {
                    this._displayMode = DispMode.Add;
                }
                else
                {
                    GetJokasoDaichoMst();
                    SetControlData();
                }
            }
            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());
            }
        }
示例#12
0
        private void DialogOkClicked(object sender, RoutedEventArgs e)
        {
            _okExit = true;

            int level;

            if (Int32.TryParse(RefSearchLevel.Text, out level))
            {
                _searchDepthLevel = level;
            }
            else
            {
                _searchDepthLevel = 4;
            }

            if (RefSearchDisplayList.IsChecked == true)
            {
                _displayMode = DispMode.List;
            }
            else if (RefSearchDisplayTree.IsChecked == true)
            {
                _displayMode = DispMode.Tree;
            }
            else if (RefSearchDisplayGraph.IsChecked == true)
            {
                _displayMode = DispMode.Graph;
            }
            else
            {
                _displayMode = DispMode.Tree;
            }

            _dataSource = InstanceReferences.ReferenceType.None;
            if (RefSearchAll.IsChecked == true)
            {
                _dataSource = InstanceReferences.ReferenceType.All;
            }
            else
            {
                if (RefSearchRooted.IsChecked == true)
                {
                    _dataSource = InstanceReferences.ReferenceType.Rooted;
                }
                else if (RefSearchNotRooted.IsChecked == true)
                {
                    _dataSource = InstanceReferences.ReferenceType.Unrooted;
                }

                if (RefSearchFinalizer.IsChecked == true)
                {
                    _dataSource |= InstanceReferences.ReferenceType.Finalizer;
                }
            }


            if (_dataSource == InstanceReferences.ReferenceType.None)
            {
                _dataSource = InstanceReferences.ReferenceType.All;
            }

            if (RefSearchFieldParents.IsChecked == true)
            {
                _direction = InstanceReferences.ReferenceType.Ancestors;
            }
            else if (RefSearchParentFields.IsChecked == true)
            {
                _direction = InstanceReferences.ReferenceType.Descendants;
            }
            else
            {
                _direction = InstanceReferences.ReferenceType.Ancestors;
            }

            DialogResult = true;
        }
示例#13
0
        ////////////////////////////////////////////////////////////////////////////
        //  イベント名 : entryButton_Click
        /// <summary>
        /// 
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        /// <history>
        /// 日付    担当者   内容
        /// 2014/06/25 HuyTX      新規作成
        /// </history>
        ////////////////////////////////////////////////////////////////////////////
        private void entryButton_Click(object sender, EventArgs e)
        {
            TraceLog.StartWrite(MethodInfo.GetCurrentMethod());
            Cursor preCursor = Cursor.Current;

            try
            {
                Cursor.Current = Cursors.WaitCursor;

                if (!string.IsNullOrEmpty(DataCheck()))
                {
                    MessageForm.Show2(MessageForm.DispModeType.Error, DataCheck());
                    return;
                }

                this._displayMode = DispMode.Confirm;

                SetDisplayControl();

            }
            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());
            }
        }
示例#14
0
        ////////////////////////////////////////////////////////////////////////////
        //  メソッド名 : DoFormLoad
        /// <summary>
        /// 
        /// </summary>
        /// <history>
        /// 日付    担当者   内容
        /// 2014/06/25 HuyTX    新規作成
        /// </history>
        ////////////////////////////////////////////////////////////////////////////
        private void DoFormLoad()
        {
            IFormLoadALInput alInput = new FormLoadALInput();
            alInput.ChikuMstCd = this._chikuCd;
            IFormLoadALOutput alOutput = new FormLoadApplicationLogic().Execute(alInput);

            this._displayDT = alOutput.ChikuMstDT;

            // Set default Hokenjo combobox
            Utility.Utility.SetComboBoxList(kankatsuHokenjoNmComboBox, alOutput.HokenjoMstDT, "HokenjoNm", "HokenjoCd", true);

            // Set default HoteiTantoShisho combobox
            Utility.Utility.SetComboBoxList(hoteiTantoShishoNmComboBox, alOutput.ShishoMstDT, "ShishoNm", "ShishoCd", true);

            // Set default suishitsuTantoShisho combobox
            Utility.Utility.SetComboBoxList(suishitsuTantoShishoNmComboBox, alOutput.ShishoMstDT, "ShishoNm", "ShishoCd", true);

            this.Text = "地区マスタ登録";

            if (!string.IsNullOrEmpty(this._chikuCd))
            {
                this._displayMode = DispMode.Detail;
                this.Text = "地区マスタ詳細";

                SetDefaultValueControl();
            }

            this._isLoadForm = true;
        }
示例#15
0
        ////////////////////////////////////////////////////////////////////////////
        //  イベント名 : decisionButton_Click
        /// <summary>
        /// 
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        /// <history>
        /// 日付    担当者   内容
        /// 2014/06/26 AnhNV      新規作成
        /// </history>
        ////////////////////////////////////////////////////////////////////////////
        private void decisionButton_Click(object sender, EventArgs e)
        {
            TraceLog.StartWrite(MethodInfo.GetCurrentMethod());
            Cursor preCursor = Cursor.Current;

            try
            {
                Cursor.Current = Cursors.WaitCursor;

                this._dispMode = string.IsNullOrEmpty(this._shishoCd) ? DispMode.Add : DispMode.Edit;

                IDecisionBtnClickALInput decInput = new DecisionBtnClickALInput();
                decInput.DispMode = this._dispMode;
                decInput.ShishoMstDataTable = (this._dispMode == DispMode.Add) ? CreateShishoMstInsert() : CreateShishoMstUpdate(_dispTable);
                IDecisionBtnClickALOutput decOutput = new DecisionBtnClickApplicationLogic().Execute(decInput);

                // Edit mode
                if (!string.IsNullOrEmpty(decOutput.ErrMsg))
                {
                    MessageForm.Show2(MessageForm.DispModeType.Error, decOutput.ErrMsg);
                    return;
                }

                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());
            }
        }
示例#16
0
        ////////////////////////////////////////////////////////////////////////////
        //  イベント名 : entryButton_Click
        /// <summary>
        /// 
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        /// <history>
        /// 日付    担当者   内容
        /// 2014/06/26 AnhNV      新規作成
        /// </history>
        ////////////////////////////////////////////////////////////////////////////
        private void entryButton_Click(object sender, EventArgs e)
        {
            TraceLog.StartWrite(MethodInfo.GetCurrentMethod());
            Cursor preCursor = Cursor.Current;

            try
            {
                Cursor.Current = Cursors.WaitCursor;

                // 単項目チェック + 入力内容チェック
                if (!DataCheck()) return;

                // Switches to confirm mode
                this._dispMode = DispMode.Confirm;

                // Set screen title
                SetScreenTitle();

                // Set input/read only property
                ItemControl();
            }
            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());
            }
        }
示例#17
0
        ////////////////////////////////////////////////////////////////////////////
        //  イベント名 : KatashikiMstShosaiForm_Load
        /// <summary>
        /// 
        /// </summary>
        /// <param name="e"></param>
        /// <param name="sender"></param>
        /// <history>
        /// 日付    担当者   内容
        /// 2014/07/07  DatNT      新規作成
        /// </history>
        ////////////////////////////////////////////////////////////////////////////
        private void KatashikiMstShosaiForm_Load(object sender, EventArgs e)
        {
            TraceLog.StartWrite(MethodInfo.GetCurrentMethod());
            Cursor preCursor = Cursor.Current;

            try
            {
                Cursor.Current = Cursors.WaitCursor;

                if (string.IsNullOrEmpty(_katashikiMakerCd) && string.IsNullOrEmpty(_katashikiCd))
                {
                    //  Clear GridView tab 2
                    katashikiBurowaListDataGridView.DataSource = null;

                    //  Clear GridView (27)

                    _dispMode = DispMode.Add;
                }
                else
                {
                    _dispMode = DispMode.Detail;
                }

                DoFormLoad();

                isLoad = true;
            }
            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());
            }
        }
示例#18
0
        ////////////////////////////////////////////////////////////////////////////
        //  イベント名 : entryButton_Click
        /// <summary>
        /// 
        /// </summary>
        /// <param name="e"></param>
        /// <param name="sender"></param>
        /// <history>
        /// 日付    担当者   内容
        /// 2014/06/30  DatNT      新規作成
        /// </history>
        ////////////////////////////////////////////////////////////////////////////
        private void entryButton_Click(object sender, EventArgs e)
        {
            TraceLog.StartWrite(MethodInfo.GetCurrentMethod());
            Cursor preCursor = Cursor.Current;

            try
            {
                Cursor.Current = Cursors.WaitCursor;

                if (!UnitCheck()) { return; }

                // update mode
                _updateMode = _dispMode;

                // display mode
                _dispMode = DispMode.Confirm;

                SetControlModeView();

            }
            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());
            }
        }
        ////////////////////////////////////////////////////////////////////////////
        //  メソッド名 : DoFormLoad
        /// <summary>
        /// 
        /// </summary>
        /// <history>
        /// 日付    担当者   内容
        /// 2014/07/03 HuyTX    新規作成
        /// </history>
        ////////////////////////////////////////////////////////////////////////////
        private void DoFormLoad()
        {
            IFormLoadALInput alInput = new FormLoadALInput();
            alInput.SuishitsuShikenKoumokuCd = this._suishitsuShikenKoumokuCd;
            IFormLoadALOutput alOutput = new FormLoadApplicationLogic().Execute(alInput);

            this._suishitsuShikenKoumokuDT = alOutput.SuishitsuShikenKoumokuMstDataTable;

            if (!string.IsNullOrEmpty(this._suishitsuShikenKoumokuCd))
            {
                _displayMode = DispMode.Detail;
                this.Text = "水質試験項目マスタ詳細";

                SetDefaultValueControl();
            }
        }
示例#20
0
        ////////////////////////////////////////////////////////////////////////////
        //  イベント名 : ShoriHoshikiMstShosai_Load
        /// <summary>
        /// 
        /// </summary>
        /// <param name="e"></param>
        /// <param name="sender"></param>
        /// <history>
        /// 日付    担当者   内容
        /// 2014/06/30  DatNT      新規作成
        /// </history>
        ////////////////////////////////////////////////////////////////////////////
        private void ShoriHoshikiMstShosai_Load(object sender, EventArgs e)
        {
            TraceLog.StartWrite(MethodInfo.GetCurrentMethod());
            Cursor preCursor = Cursor.Current;

            try
            {
                Cursor.Current = Cursors.WaitCursor;

                if (string.IsNullOrEmpty(_shoriHoshikiCd) && string.IsNullOrEmpty(_shoriHoshikiKbn))
                {
                    _dispMode = DispMode.Add;
                }
                else
                {
                    _dispMode = DispMode.Detail;
                }

                DoFormLoad();
            }
            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());
            }
        }
示例#21
0
        ////////////////////////////////////////////////////////////////////////////
        //  イベント名 : HoshoShinseiShosaiForm_Load
        /// <summary>
        /// 
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        /// <history>
        /// 日付    担当者   内容
        /// 2014/07/17 AnhNV      新規作成
        /// </history>
        ////////////////////////////////////////////////////////////////////////////
        private void HoshoShinseiShosaiForm_Load(object sender, EventArgs e)
        {
            TraceLog.StartWrite(MethodInfo.GetCurrentMethod());
            Cursor preCursor = Cursor.Current;

            try
            {
                Cursor.Current = Cursors.WaitCursor;

                this._dispMode = DispMode.Detail;
                this.Text = "保証登録テーブル詳細";

                // Load and display default value
                DoFormLoad();

                // Title of screen
                SetScreenTitle();

                // Display/Input control
                ItemControl();

                // Form load completed
                _isLoad = true;
            }
            catch (Exception ex)
            {
                TraceLog.ErrorWrite(MethodInfo.GetCurrentMethod(), ex.ToString());
                MessageForm.Show(MessageForm.DispModeType.Error, MessageResouce.MSGID_E00001, ex.Message);

                this.DialogResult = DialogResult.Abort;
                this.Close();
            }
            finally
            {
                Cursor.Current = preCursor;
                TraceLog.EndWrite(MethodInfo.GetCurrentMethod());
            }
        }