private void HienThiDonViThongQua() { DropDownDonViThongQua.DataSource = BDepartmentBUS.DanhSachBoPhan(); DropDownDonViThongQua.DataValueField = "ID"; DropDownDonViThongQua.DataTextField = "DepName"; DropDownDonViThongQua.DataBind(); }
protected void DropCty_SelectedIndexChanged1(object sender, EventArgs e) { string congty = DropCty.SelectedValue.ToString(); GridView1.DataSource = BDepartmentBUS.DanhSachBoPhan(congty); GridView1.DataBind(); }
private void HienThiDropDownList() { string congty = Session["congty"].ToString(); DropBoPhan.DataSource = BDepartmentBUS.DanhSachBoPhan(congty); DropBoPhan.DataValueField = "ID"; DropBoPhan.DataTextField = "DepName"; DropBoPhan.DataBind(); }
private void HienThiDropDownList() { string congty = DropCty.SelectedValue.ToString(); DropDownBoPhan.DataSource = BDepartmentBUS.DanhSachBoPhan(congty); DropDownBoPhan.DataValueField = "ID"; DropDownBoPhan.DataTextField = "DepName"; DropDownBoPhan.DataBind(); }
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(); } }
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(); } }