Ejemplo n.º 1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            DropOrganizations.LoadTree(Organization.Root);


            Organizations organizationList = _authority.GetOrganizations(RoleTypes.AllRoleTypes);
            organizationList = organizationList.RemoveRedundant();
            DropOrganizations.Content.pruneToSubtree(organizationList.Identities);
            DropOrganizations.Content.expandLevels(true, 2);
            if (organizationList.Count > 0)
            {
                DropOrganizations.SelectedValue = "" + organizationList[0].Identity;
            }

            string[] statuses = Enum.GetNames(typeof(MembershipPaymentStatus));
            MembershipPaymentStatus[] statusesValues = Enum.GetValues(typeof(MembershipPaymentStatus)) as MembershipPaymentStatus[];
            DropDownListStatusSearch.Items.Clear();
            DropDownListStatusChange.Items.Clear();
            foreach (MembershipPaymentStatus st in statusesValues)
            {
                DropDownListStatusSearch.Items.Add(new ListItem(st.ToString(), "" + (int)st));
                if ((int)st > 0)
                {
                    DropDownListStatusChange.Items.Add(new ListItem(st.ToString(), "" + (int)st));
                }
            }
        }
    }
Ejemplo n.º 2
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            PersonList.PersonList = new People();

            PersonList.JsEditFunction = "LoadMember"; // Load subframe via javascript

            // Populate list of organizations (initial population)
            DropOrganizations.LoadTree(Organization.Root);


            Organizations organizationList = _authority.GetOrganizations(RoleTypes.AllRoleTypes);
            organizationList = organizationList.RemoveRedundant();
            DropOrganizations.Content.pruneToSubtree(organizationList.Identities);
            DropOrganizations.Content.expandLevels(true, 2);
            if (organizationList.Count > 0)
            {
                DropOrganizations.SelectedValue = "" + organizationList[0].Identity;
            }



            // Populate geographies

            PopulateGeographies();
        }

        PersonList.ViewEditCommand += PersonList_onEditCommand;
    }
Ejemplo n.º 3
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            PersonList.PersonList = new People();
            // Populate list of organizations (initial population)

            DropOrganizations.LoadTree(Organization.Root);
            //DropGeographies.LoadTree(Geography.Root);


            Organizations organizationList = _authority.GetOrganizations(RoleTypes.AllRoleTypes);
            organizationList = organizationList.RemoveRedundant();
            DropOrganizations.Content.pruneToSubtree(organizationList.Identities);
            DropOrganizations.Content.expandLevels(true, 2);
            DropOrganizations.SetValue("-1", "- any -");
            DropGeographies.Content.expandSubnode("" + _currentUser.Country.GeographyId, true, 2);
            DropGeographies.SetValue("-1", "- any -");
        }
        PersonList.JsEditFunction   = "LoadMember"; // Load subframe via javascript
        PersonList.ViewEditCommand += PersonList_onEditCommand;
    }