private void btn_ChiTiet_Click(object sender, EventArgs e)
        {
            frm_ChiTietTienDo frm = new frm_ChiTietTienDo();

            frm.Loai = rb_deso.Checked || rb_All_DESO.Checked ? "DESO" : rb_dejp.Checked || rb_All_DEJP.Checked ? "DEJP" : "";
            frm.lb_fBatchName.Text = rb_All_DESO.Checked ? "AllDESO" : rb_All_DEJP.Checked ? "AllDEJP" : cbb_Batch.Text;
            frm.lb_City.Text       = cbb_City.Text;
            frm.BatchID            = rb_All_DESO.Checked ? "AllDESO" : rb_All_DEJP.Checked ? "AllDEJP" : cbb_Batch.SelectedValue.ToString();
            frm.City = cbb_City.Text;
            //if (rb_deso.Checked)
            //{
            //    frm.rb_deso.Checked = true;
            //}
            //else if (rb_dejp.Checked)
            //{
            //    frm.rb_dejp.Checked = true;
            //}
            frm.ShowDialog();
        }
示例#2
0
        private void btn_ChiTiet_Click(object sender, EventArgs e)
        {
            //if (cbb_Batch.Text == "" && ck_All.Checked == false)
            {
                return;
            }
            var frm = new frm_ChiTietTienDo()
            {
                lb_fBatchNameHT = { Text = ck_All.Checked ? "All" : cbb_Batch.Text }
            };

            frm.lb_City.Text  = cbb_City.Text;
            frm.lb_fBatchName = ck_All.Checked ? "All" : cbb_Batch.SelectedValue.ToString();
            if (rb_deso1.Checked)
            {
                frm.rb_deso.Checked = true;
            }
            else if (rb_dejp.Checked)
            {
                frm.rb_dejp.Checked = true;
            }
            frm.ShowDialog();
        }