private void btn_insatu_Click(object sender, EventArgs e)
        {
            frm_seikyu_ichiran_preview frm_rpt = new frm_seikyu_ichiran_preview();

            //子画面のプロパティに値をセットする
            frm_rpt.ppt_dt = w_dt_insatu;

            frm_rpt.w_hd10 = dtp_seikyu_simebi.Text;

            if (tb_torihikisaki_cd1.Text.ToString() == "")
            {
                frm_rpt.w_hd11 = "指定なし";
            }

            if (tb_torihikisaki_cd2.Text.ToString() == "")
            {
                frm_rpt.w_hd20 = "指定なし";
            }

            else
            {
                frm_rpt.w_hd11 = tb_torihikisaki_cd1.Text;
                frm_rpt.w_hd20 = tb_torihikisaki_cd2.Text;
            }

            frm_rpt.ShowDialog();
            //子画面から値を取得する
            frm_rpt.Dispose();
        }
Exemple #2
0
        private void btn_insatu_Click(object sender, EventArgs e)
        {
            frm_seikyu_ichiran_preview frm_rpt = new frm_seikyu_ichiran_preview();

            //子画面のプロパティに値をセットする
            frm_rpt.ppt_dt = w_dt_insatu;

            frm_rpt.w_hd10 = dtp_seikyu_simebi.Text;

            if (tb_torihikisaki_cd1.Text.ToString() == "")
            {
                frm_rpt.w_hd11 = "指定なし";
            }

            if (tb_torihikisaki_cd2.Text.ToString() == "")
            {
                frm_rpt.w_hd20 = "指定なし";
            }

            else
            {
                frm_rpt.w_hd11 = tb_torihikisaki_cd1.Text;
                frm_rpt.w_hd20 = tb_torihikisaki_cd2.Text;
            }

            frm_rpt.ShowDialog();
            //子画面から値を取得する
            frm_rpt.Dispose();
        }