示例#1
0
        private void btnSearch_Click(object sender, EventArgs e)
        {
            List <tblToaTau> listAddMoreToaTau = new List <tblToaTau>();
            var frm = new frmDanhSachToaTau(-1, _type, txtSoVanDon.Text.Trim(), ref listAddMoreToaTau);

            if (frm.ShowDialog(this) == DialogResult.OK)
            {
                BindToaTau(listAddMoreToaTau);
            }
        }
示例#2
0
        private void btnSearch_Click(object sender, EventArgs e)
        {
            //var train = TrainFactory.searchToaTau(txtSoVanDon.Text.Trim(), false, new DateTime(), new DateTime());
            //if (train == null )
            //{
            //    MessageBox.Show("Số hiệu đoàn tàu không tồn tại!");
            //    txtSoVanDon.Focus();
            //    return;
            //}

            List <tblToaTau> listAddMoreToaTau = new List <tblToaTau>();
            var frm = new frmDanhSachToaTau(_type, "", txtSoVanDon.Text.Trim(), ref listAddMoreToaTau);

            if (frm.ShowDialog(this) == DialogResult.OK)
            {
                BindToaTau(listAddMoreToaTau);
            }
        }