Ejemplo n.º 1
0
        ////////////////////////////////////////////////////////////////////////////
        //  メソッド名 : DoSearch
        /// <summary>
        /// 
        /// </summary>
        /// <history>
        /// 日付    担当者   内容
        /// 2014/08/18  DatNT   新規作成
        /// </history>
        ////////////////////////////////////////////////////////////////////////////
        private void DoSearch()
        {
            // Clear datagirdview
            kensaKeihatsuSuishinHiShukeiTblDataSet.Clear();

            IKensakuBtnClickALInput alInput = new KensakuBtnClickALInput();

            // Create conditions
            MakeSearchCond(alInput);

            IKensakuBtnClickALOutput alOutput = new KensakuBtnClickApplicationLogic().Execute(alInput);
            _printTable = alOutput.KensaKeihatsuSuishinListDT;

            // Display data
            kensaKeihatsuSuishinHiShukeiTblDataSet.Merge(alOutput.KensaKeihatsuSuishinListDT);

            if (alOutput.KensaKeihatsuSuishinListDT == null || alOutput.KensaKeihatsuSuishinListDT.Count == 0)
            {
                srhListCountLabel.Text = "0件";

                // 保健所一覧 : リスト数 = 0
                MessageForm.Show2(MessageForm.DispModeType.Infomation, "表示データがありません。");
            }
            else
            {
                srhListCountLabel.Text = alOutput.KensaKeihatsuSuishinListDT.Count.ToString() + "件";

                ikkatsuPrintButton.Enabled = true;
                kobetsuGyosyaButton.Enabled = true;
                kobetsuKumiaiButton.Enabled = true;
                outputButton.Enabled = true;
            }
        }
Ejemplo n.º 2
0
        ////////////////////////////////////////////////////////////////////////////
        //  メソッド名 : DoFormLoad
        /// <summary>
        /// 
        /// </summary>
        /// <history>
        /// 日付    担当者   内容
        /// 2014/08/18  DatNT   新規作成
        /// </history>
        ////////////////////////////////////////////////////////////////////////////
        private void DoFormLoad()
        {
            // Clear datagirdview
            kensaKeihatsuSuishinHiShukeiTblDataSet.Clear();

            IFormLoadALInput alInput    = new FormLoadALInput();
            alInput.SuishinhiNendo      = syukeiNendoTextBox.Text;
            alInput.KamiShimoKbn        = "1";
            alInput.Mochikomi           = mochikomiCheckBox.Checked;
            alInput.Syusyu              = syusyuCheckBox.Checked;
            alInput.Toriatsukai         = toriatsukaiCheckBox.Checked;
            IFormLoadALOutput alOutput  = new FormLoadApplicationLogic().Execute(alInput);
            _printTable = alOutput.KensaKeihatsuSuishinListDT;

            // 共同組合
            Utility.Utility.SetComboBoxList(kyodoKumiaiComboBox, alOutput.KyodoKumiaiMstInfoDT, "KumiaiNm", "KumiaiCd", true);

            // Display data
            kensaKeihatsuSuishinHiShukeiTblDataSet.Merge(alOutput.KensaKeihatsuSuishinListDT);

            if (alOutput.KensaKeihatsuSuishinListDT == null || alOutput.KensaKeihatsuSuishinListDT.Count == 0)
            {
                srhListCountLabel.Text = "0件";
            }
            else
            {
                srhListCountLabel.Text = alOutput.KensaKeihatsuSuishinListDT.Count.ToString() + "件";
            }

            this._searchShowFlg = true;
            this._defaultSearchPanelTop = this.searchPanel.Top;
            this._defaultSearchPanelHeight = this.searchPanel.Height;
            this._defaultListPanelTop = this.srhListPanel.Top;
            this._defaultListPanelHeight = this.srhListPanel.Height;
        }