Example #1
0
    protected override void OnInit(EventArgs e)
    {
        base.OnInit(e);

        _fieldControls = new CustomFieldControls(ReferenceType.OrganizationProducts, -1, 2, tblCustomControls, false);
        _fieldControls.LoadCustomControls(200, 1, null);
    }
Example #2
0
    protected override void OnInit(EventArgs e)
    {
        base.OnInit(e);
        if (Request["OrganizationID"] != null)
        {
            _organizatinID = int.Parse(Request["OrganizationID"]);
        }
        Organization organization = Organizations.GetOrganization(UserSession.LoginUser, _organizatinID);

        if (organization != null && (organization.OrganizationID != UserSession.LoginUser.OrganizationID && organization.ParentID != UserSession.LoginUser.OrganizationID))
        {
            Response.Write("Invalid Request");
            Response.End();
            return;
        }
        _customControls = new CustomFieldControls(ReferenceType.Organizations, -1, 2, tblCustomControls, false);
        if (_organizatinID != UserSession.LoginUser.OrganizationID)
        {
            _customControls.LoadCustomControls(200);
        }
    }
    protected override void OnInit(EventArgs e)
    {
        base.OnInit(e);
        if (Request["UserID"] != null)
        {
            _userID = int.Parse(Request["UserID"]);
        }

        if (Request["OrganizationID"] != null)
        {
            _organizationID = int.Parse(Request["OrganizationID"]);
        }

        if (!UserSession.CurrentUser.IsSystemAdmin && _userID != UserSession.LoginUser.UserID)
        {
            Response.Write("");
            Response.End();
            return;
        }

        _fieldControls = new CustomFieldControls(ReferenceType.Users, -1, 2, tblCustomControls, false);
        _fieldControls.LoadCustomControls(200);
    }
 protected override void OnInit(EventArgs e)
 {
     base.OnInit(e);
     _fieldControls = new CustomFieldControls(ReferenceType.ProductVersions, -1, 2, tblCustomControls, false);
     _fieldControls.LoadCustomControls(200);
 }