Beispiel #1
0
    protected void cboCompanies_SelectedIndexChanged(object sender, EventArgs e)
    {
        using (var manager = new CompanyManager(null))
            manager.ChangeCompany(Page.User.Identity.UserId, int.Parse(cboCompanies.SelectedValue));

        RefreshCompany();
        RefreshPlan();
        RefreshDeposit();
        Page.ClientScript.RegisterStartupScript(GetType(), "ResetAll", "top.ResetAll();", true);

        if (Page.User.Identity.UserId > 1)
        {
            User.RefreshCredentials();
        }
    }