Exemplo n.º 1
0
 public void BindData()
 {
     if (!base.UserPrincipal.HasPermissionID(base.GetPermidByActID(this.Act_SetPerData)) && (base.GetPermidByActID(this.Act_SetPerData) != -1))
     {
         this.gridView.Columns[1].Visible = false;
     }
     if (!base.UserPrincipal.HasPermissionID(base.GetPermidByActID(this.Act_UpdateData)) && (base.GetPermidByActID(this.Act_UpdateData) != -1))
     {
         this.gridView.Columns[7].Visible = false;
     }
     if (!base.UserPrincipal.HasPermissionID(base.GetPermidByActID(this.Act_DelData)) && (base.GetPermidByActID(this.Act_DelData) != -1))
     {
         this.gridView.Columns[8].Visible = false;
     }
     DataSet usersByType = new DataSet();
     string selectedValue = this.DropUserType.SelectedValue;
     string key = "";
     if (this.txtKeyword.Text.Trim() != "")
     {
         key = this.txtKeyword.Text.Trim();
     }
     User user = new User();
     if (selectedValue != "")
     {
         usersByType = user.GetUsersByType(selectedValue, key);
     }
     else
     {
         usersByType = user.GetUserList(key);
     }
     this.gridView.DataSetSource = usersByType;
 }
Exemplo n.º 2
0
 public void BindData()
 {
     DataSet ds = new DataSet();
     string usertype = DropUserType.SelectedValue;
     string keyword = "";
     if (txtKeyword.Text.Trim() != "")
     {
         keyword = txtKeyword.Text.Trim();
     }
     User userAdmin = new User();
     if (usertype != "")
     {
         ds = userAdmin.GetUsersByType(usertype, keyword);
     }
     else
     {
         ds = userAdmin.GetUserList(keyword);
     }
     gridView.DataSetSource = ds;
 }
Exemplo n.º 3
0
 public void BindData()
 {
     DataSet usersByType = new DataSet();
     string selectedValue = this.DropUserType.SelectedValue;
     string key = "";
     if (this.txtKeyword.Text.Trim() != "")
     {
         key = this.txtKeyword.Text.Trim();
     }
     User user = new User();
     if (selectedValue != "")
     {
         usersByType = user.GetUsersByType(selectedValue, key);
     }
     else
     {
         usersByType = user.GetUserList(key);
     }
     this.gridView.DataSetSource = usersByType;
 }