Example #1
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;
        }
Example #2
0
        ////////////////////////////////////////////////////////////////////////////
        //  メソッド名 : CreateChikuMstInsert
        /// <summary>
        /// 
        /// </summary>
        /// <history>
        /// 日付    担当者   内容
        /// 2014/06/25  HuyTX      新規作成
        /// </history>
        ////////////////////////////////////////////////////////////////////////////
        private ChikuMstDataSet.ChikuMstDataTable CreateChikuMstInsert()
        {
            ChikuMstDataSet.ChikuMstDataTable chikuMstDT = new ChikuMstDataSet.ChikuMstDataTable();
            ChikuMstDataSet.ChikuMstRow newRow = chikuMstDT.NewChikuMstRow();

            DateTime currentDateTime = Common.Common.GetCurrentTimestamp();
            string shokuinNm = Utility.ShokuinInfo.GetShokuinInfo().Shokuin.ShokuinNm;

            //地区コード(2)
            newRow.ChikuCd = chikuCdTextBox.Text;

            //地区名称 (3)
            newRow.ChikuNm = chikuNmTextBox.Text;

            //地区略称 (4)
            newRow.ChikuRyakusho = chikuRyakushoTextBox.Text;

            //管轄保健所コード (5)
            newRow.KankatsuHokenjoCd = kankatsuHokenjoCdTextBox.Text;

            //法定担当支所名称 (8)
            newRow.HoteiTantoShishoCd = hoteiTantoShishoNmComboBox.SelectedValue.ToString();

            //水質担当支所名称 (10)
            newRow.SuishitsuTantoShishoCd = suishitsuTantoShishoNmComboBox.SelectedValue.ToString();

            //外観地区割 (11)
            newRow.GaikanChikuwariCd = gaikanChikuwariCdTextBox.Text;

            //外観地区割Ⅱ(12)
            newRow.GaikanChikuwari2Cd = string.IsNullOrEmpty(gaikanChikuwari2CdTextBox.Text.Trim()) ? " " : gaikanChikuwari2CdTextBox.Text.Trim();

            //合併後地区コード (13)
            newRow.GappeigoChikuCd = gappeigoChikuCdTextBox.Text;

            //登録日
            newRow.InsertDt = currentDateTime;

            //登録者
            newRow.InsertUser = shokuinNm;

            //登録端末
            newRow.InsertTarm = Dns.GetHostName();

            //更新日
            newRow.UpdateDt = currentDateTime;

            //更新者
            newRow.UpdateUser = shokuinNm;

            //更新端末
            newRow.UpdateTarm = Dns.GetHostName();

            // 行を挿入
            chikuMstDT.AddChikuMstRow(newRow);

            //行の状態を設定
            newRow.AcceptChanges();

            newRow.SetAdded();

            return chikuMstDT;
        }