private void HienThiDonViThongQua()
 {
     DropDownDonViThongQua.DataSource     = BDepartmentBUS.DanhSachBoPhan();
     DropDownDonViThongQua.DataValueField = "ID";
     DropDownDonViThongQua.DataTextField  = "DepName";
     DropDownDonViThongQua.DataBind();
 }
Esempio n. 2
0
        protected void DropCty_SelectedIndexChanged1(object sender, EventArgs e)
        {
            string congty = DropCty.SelectedValue.ToString();

            GridView1.DataSource = BDepartmentBUS.DanhSachBoPhan(congty);
            GridView1.DataBind();
        }
Esempio n. 3
0
        private void HienThiDropDownList()
        {
            string congty = Session["congty"].ToString();

            DropBoPhan.DataSource     = BDepartmentBUS.DanhSachBoPhan(congty);
            DropBoPhan.DataValueField = "ID";
            DropBoPhan.DataTextField  = "DepName";
            DropBoPhan.DataBind();
        }
Esempio n. 4
0
        private void HienThiDropDownList()
        {
            string congty = DropCty.SelectedValue.ToString();

            DropDownBoPhan.DataSource     = BDepartmentBUS.DanhSachBoPhan(congty);
            DropDownBoPhan.DataValueField = "ID";
            DropDownBoPhan.DataTextField  = "DepName";
            DropDownBoPhan.DataBind();
        }
Esempio n. 5
0
        private void HienThiDonVi()
        {
            string madonvi = (string)Session["madonvi"];

            if (madonvi == "All")
            {
                DropDownLDonVi.Items.Insert(0, "All");
            }
            else
            {
                DropDownLDonVi.DataSource     = BDepartmentBUS.DanhSachBoPhan();
                DropDownLDonVi.DataValueField = "ID";
                DropDownLDonVi.DataTextField  = "DepName";
                DropDownLDonVi.DataBind();
            }
        }
Esempio n. 6
0
        private void HienThiBoPhan()
        {
            string    congty = Session["congty"].ToString();
            string    user   = Session["user"].ToString();
            DataTable dt     = dal.QryDonViTheoDieuKien(user, congty);

            if (dt.Rows.Count > 0)
            {
                DropDonVi.DataSource     = dt;
                DropDonVi.DataValueField = "ID";
                DropDonVi.DataTextField  = "DepName";
                DropDonVi.DataBind();
            }
            else
            {
                DropDonVi.DataSource     = BDepartmentBUS.DanhSachBoPhan(congty);
                DropDonVi.DataValueField = "ID";
                DropDonVi.DataTextField  = "DepName";
                DropDonVi.DataBind();
            }
        }