Пример #1
0
        protected void DropDownDonVi_SelectedIndexChanged(object sender, EventArgs e)
        {
            string drop = DropDownDonVi.SelectedValue.ToString().Trim();

            if (drop != "0")
            {
                HienThiListTimTuDropDow();
            }
            else
            {
                ListQuery.DataSource = null;
                ListQuery.DataBind();
            }
        }
Пример #2
0
        protected void txtUserName_TextChanged(object sender, EventArgs e)
        {
            string NVMa = txtUserName.Text.Trim();

            if (NVMa != "")
            {
                HienThiListTimTuTextBox();
                txtUserName.Text = "";
            }
            else
            {
                ListQuery.DataSource = null;
                ListQuery.DataBind();
            }
        }
Пример #3
0
        public void HienThiListTimTuTextBox1()
        {
            string    MaNV = txtUserName.Text;
            DataTable dt   = dalUser.TImNguoiTheoDieuKien(MaNV);

            if (dt.Rows.Count > 0)
            {
                ListQuery.Visible    = true;
                listXuLy.Visible     = true;
                ListQuery.DataSource = dt;
                ListQuery.DataBind();
            }
            else
            {
                ListQuery.DataSource = null;
                ListQuery.DataBind();
            }
        }
Пример #4
0
        public void HienThiListTimTuTextBox()
        {
            string    MaNV = txtUserName.Text;
            DataTable dt   = dalUser.TimNhanVienTheoMa(Congty, MaNV);

            if (dt.Rows.Count > 0)
            {
                ListQuery.Visible    = true;
                listXuLy.Visible     = true;
                ListQuery.DataSource = dt;
                ListQuery.DataBind();
                DivList.Visible = true;
            }
            else
            {
                ListQuery.DataSource = null;
                ListQuery.DataBind();
            }
        }
Пример #5
0
        public void HienThiListTimTuDropDow()
        {
            string    MaDV = DropDownDonVi.SelectedValue;
            DataTable dt   = dalUser.TimNhanVienTheoMaDonVi(Congty, MaDV);

            if (dt.Rows.Count > 0)
            {
                ListQuery.Visible    = true;
                listXuLy.Visible     = true;
                ListQuery.DataSource = dt;
                ListQuery.DataBind();
                DivList.Visible = true;
            }
            else
            {
                ListQuery.DataSource = null;
                ListQuery.DataBind();
            }
        }