Ejemplo n.º 1
0
        ////////////////////////////////////////////////////////////////////////////
        //  メソッド名 : 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();
            }
        }
Ejemplo n.º 2
0
        ////////////////////////////////////////////////////////////////////////////
        //  メソッド名 : CreateSuishitsuKekkaNmMstInsert
        /// <summary>
        /// 
        /// </summary>
        /// <history>
        /// 日付    担当者   内容
        /// 2014/07/03  HuyTX      新規作成
        /// </history>
        ////////////////////////////////////////////////////////////////////////////
        private SuishitsuKekkaNmMstDataSet.SuishitsuKekkaNmMstDataTable CreateSuishitsuKekkaNmMstInsert()
        {
            SuishitsuKekkaNmMstDataSet.SuishitsuKekkaNmMstDataTable suishitsuKekkaNmMstDT = new SuishitsuKekkaNmMstDataSet.SuishitsuKekkaNmMstDataTable();
            SuishitsuKekkaNmMstDataSet.SuishitsuKekkaNmMstRow newRow = suishitsuKekkaNmMstDT.NewSuishitsuKekkaNmMstRow();

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

            //支所(1)
            newRow.SuishitsuKekkaShishoCd = shishoNmComboBox.SelectedValue.ToString();

            //水質結果名称コード (2)
            // UPD 20140724 START ZynasSou
            //newRow.SuishitsuKekkaNmCd = suishitsuKekkaNmCdTextBox.Text;
            newRow.SuishitsuKekkaNmCd = Common.Common.GetKeyRenban("SuishitsuKekkaNmMst", shishoNmComboBox.SelectedValue.ToString(), "", "").PadLeft(3, '0');
            // UPD 20140724 END ZynasSou

            //水質結果名称 (3)
            newRow.SuishitsuKekkaNm = suishitsuKekkaNmTextBox.Text;

            //登録日
            newRow.InsertDt = currentDateTime;

            //登録者
            newRow.InsertUser = shokuinNm;

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

            //更新日
            newRow.UpdateDt = currentDateTime;

            //更新者
            newRow.UpdateUser = shokuinNm;

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

            // 行を挿入
            suishitsuKekkaNmMstDT.AddSuishitsuKekkaNmMstRow(newRow);

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

            newRow.SetAdded();

            return suishitsuKekkaNmMstDT;
        }