Exemplo n.º 1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     spanAddSunneter.Visible = CheckRoleCanAccessPage("/Sunnet/Admin/AddUser.aspx");
     spanAddClient.Visible   = CheckRoleCanAccessPage("/Sunnet/Admin/AddClient.aspx");
     userApp = new UserApplication();
     if (!IsPostBack)
     {
         List <CompanysEntity> list = new CompanyApplication().GetCompaniesHasUser();
         list.BindDropdown(ddlCompany, "CompanyName", "ComID", "All", "0");
         InitControl();
     }
 }
Exemplo n.º 2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     // spanAddSunneter.Visible = CheckRoleCanAccessPage("/Sunnet/Admin/AddUser.aspx");
     //  spanAddClient.Visible = CheckRoleCanAccessPage("/Sunnet/Admin/AddClient.aspx");
     userApp = new UserApplication();
     if (!IsPostBack)
     {
         txtKeyword.Text = QS("keyword");
         if (QS("status") != "" && QS("status") != "0")
         {
             ddlStatus.SelectedValue = QS("status");
         }
         if (QS("company") != "" && QS("company") != "0")
         {
             ddlCompany.SelectedValue = QS("company");
         }
         List <CompanysEntity> list = new CompanyApplication().GetCompaniesHasUser();
         list.BindDropdown(ddlCompany, "CompanyName", "ComID", "All", "0");
         InitControl();
     }
 }