示例#1
0
        private void btn_insatu_Click(object sender, EventArgs e)
        {
            frm_nouhin_schedule_preview frm_rpt = new frm_nouhin_schedule_preview();

            //子画面のプロパティに値をセットする
            frm_rpt.ppt_dt = w_dt_insatu;
            frm_rpt.w_yyyy = nud_year.Value.ToString();
            frm_rpt.w_mm   = nud_month.Value.ToString("00");
            if (tb_torihikisaki_cd.Text != "")
            {
                frm_rpt.w_hd_torihikisaki_name = tb_torihikisaki_name.Text;
            }
            else
            {
                frm_rpt.w_hd_torihikisaki_name = "全ての取引先";
            }

            frm_rpt.w_hd10 = "種別区分 ";
            if (cb_syubetu_kbn.Checked == true)
            {
                frm_rpt.w_hd11 = tb_syubetu_kbn.Text + ":" + tb_syubetu_name.Text;
            }
            else
            {
                frm_rpt.w_hd11 = "全て";
            }
            frm_rpt.w_hd20 = "分類区分 ";
            if (cb_bunrui_kbn.Checked == true)
            {
                frm_rpt.w_hd21 = tb_bunrui_kbn.Text + ":" + tb_bunrui_name.Text;
            }
            else
            {
                frm_rpt.w_hd21 = "全て";
            }
            frm_rpt.w_hd30 = "市場区分 ";
            if (cb_sijou_kbn.Checked == true)
            {
                frm_rpt.w_hd31 = tb_sijou_kbn.Text + ":" + tb_sijou_name.Text;
            }
            else
            {
                frm_rpt.w_hd31 = "全て";
            }
            frm_rpt.w_hd40 = "タイプ区分 ";
            if (cb_type_kbn.Checked == true)
            {
                frm_rpt.w_hd41 = tb_type_kbn.Text + ":" + tb_type_name.Text;
            }
            else
            {
                frm_rpt.w_hd41 = "全て";
            }


            frm_rpt.ShowDialog();
            //子画面から値を取得する
            frm_rpt.Dispose();
        }
        private void btn_insatu_Click(object sender, EventArgs e)
        {
            frm_nouhin_schedule_preview frm_rpt = new frm_nouhin_schedule_preview();
            //子画面のプロパティに値をセットする
            //frm_rpt.ppt_dt = w_dt_insatu;
            frm_rpt.ppt_dt = w_dt_schedule;
            frm_rpt.w_yyyy = nud_year.Value.ToString();
            frm_rpt.w_mm = nud_month.Value.ToString("00");
            frm_rpt.w_hd_torihikisaki_cd = tb_torihikisaki_cd.Text;
            if (tb_torihikisaki_cd.Text != "")
            {
                frm_rpt.w_hd_torihikisaki_name = tb_torihikisaki_name.Text;
            }
            else
            {
                frm_rpt.w_hd_torihikisaki_name = "全ての取引先";
            }

            frm_rpt.w_hd10 = "納品スケジュール区分 ";
            if (tb_nouhin_schedule_kbn.Text != "")
            {
                frm_rpt.w_hd11 = tb_nouhin_schedule_kbn.Text + ":" + tb_nouhin_schedule_kbn_name.Text;
            }
            else
            {
                frm_rpt.w_hd11 = "全て";
            }

            frm_rpt.w_hd20 = "";
            frm_rpt.w_hd21 = "";
            frm_rpt.w_hd30 = "";
            frm_rpt.w_hd31 = "";
            frm_rpt.w_hd40 = "";
            frm_rpt.w_hd41 = "";

            frm_rpt.ShowDialog();
            //子画面から値を取得する
            frm_rpt.Dispose();
        }
        private void btn_insatu_Click(object sender, EventArgs e)
        {
            frm_nouhin_schedule_preview frm_rpt = new frm_nouhin_schedule_preview();
            //子画面のプロパティに値をセットする
            frm_rpt.ppt_dt = w_dt_insatu;
            frm_rpt.w_yyyy = nud_year.Value.ToString();
            frm_rpt.w_mm = nud_month.Value.ToString("00");
            if (tb_torihikisaki_cd.Text != "")
            {
                frm_rpt.w_hd_torihikisaki_name = tb_torihikisaki_name.Text;
            }
            else
            {
                frm_rpt.w_hd_torihikisaki_name = "全ての取引先";
            }

            frm_rpt.w_hd10 = "種別区分 ";
            if (cb_syubetu_kbn.Checked == true)
            {
                frm_rpt.w_hd11 = tb_syubetu_kbn.Text + ":" + tb_syubetu_name.Text;
            }
            else
            {
                frm_rpt.w_hd11 = "全て";
            }
            frm_rpt.w_hd20 = "分類区分 ";
            if (cb_bunrui_kbn.Checked == true)
            {
                frm_rpt.w_hd21 = tb_bunrui_kbn.Text + ":" + tb_bunrui_name.Text;
            }
            else
            {
                frm_rpt.w_hd21 = "全て";
            }
            frm_rpt.w_hd30 = "市場区分 ";
            if (cb_sijou_kbn.Checked == true)
            {
                frm_rpt.w_hd31 = tb_sijou_kbn.Text + ":" + tb_sijou_name.Text;
            }
            else
            {
                frm_rpt.w_hd31 = "全て";
            }
            frm_rpt.w_hd40 = "タイプ区分 ";
            if (cb_type_kbn.Checked == true)
            {
                frm_rpt.w_hd41 = tb_type_kbn.Text + ":" + tb_type_name.Text;
            }
            else
            {
                frm_rpt.w_hd41 = "全て";
            }

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