Esempio n. 1
0
    protected void CallBack_GridUiValidationRules_UiValidationIntroduction_Callback(object sender, ComponentArt.Web.UI.CallBackEventArgs e)
    {
        decimal selectedGroupID     = decimal.Parse(this.StringBuilder.CreateString(e.Parameters[0]), CultureInfo.InvariantCulture);
        int     selectedRuleGroupID = int.Parse(this.StringBuilder.CreateString(e.Parameters[1]), CultureInfo.InvariantCulture);

        this.Fill_GridUiValidationRules_UiValidationIntroduction(selectedGroupID, selectedRuleGroupID);
        this.GridUiValidationRules_UiValidationIntroduction.RenderControl(e.Output);
        this.ErrorHiddenField_GridUiValidationRules_UiValidationIntroduction.RenderControl(e.Output);
    }
Esempio n. 2
0
 protected void CallBack_GridRegisteredRequests_RequestOnUnallowableOverTime_onCallBack(object sender, ComponentArt.Web.UI.CallBackEventArgs e)
 {
     this.Fill_GridRegisteredRequests_RequestOnUnallowableOverTime((RequestCaller)Enum.Parse(typeof(RequestCaller), this.StringBuilder.CreateString(e.Parameters[0])), this.StringBuilder.CreateString(e.Parameters[1]), this.StringBuilder.CreateString(e.Parameters[2]));
     this.ErrorHiddenField_RegisteredRequests.RenderControl(e.Output);
     this.GridRegisteredRequests_RequestOnUnallowableOverTime.RenderControl(e.Output);
 }
Esempio n. 3
0
 protected void CallBack_GridUiValidation_UiValidation_Callback(object sender, ComponentArt.Web.UI.CallBackEventArgs e)
 {
     this.Fill_GridUiValidation_UiValidation();
     this.GridUiValidation_UiValidation.RenderControl(e.Output);
     this.ErrorHiddenField_UiValidation.RenderControl(e.Output);
 }
Esempio n. 4
0
 protected void CallBack_trvOrganizationPersonnel_SendPrivateMessage_Callback(object sender, ComponentArt.Web.UI.CallBackEventArgs e)
 {
     this.Fill_trvOrganizationPersonnel_SendPrivateMessage();
     this.ErrorHiddenField_OrganizationPersonnel_SendPrivateMessage.RenderControl(e.Output);
     this.trvOrganizationPersonnel_SendPrivateMessage.RenderControl(e.Output);
 }
Esempio n. 5
0
 protected void CallBack_cmbSortBy_ManagerMasterMonthlyOperation_onCallBack(object sender, ComponentArt.Web.UI.CallBackEventArgs e)
 {
     this.cmbSortBy_ManagerMasterMonthlyOperation.Dispose();
     this.Fill_cmbSortBy_ManagerMasterMonthlyOperation(int.Parse(this.StringBuilder.CreateString(e.Parameters[1])));
     this.ErrorHiddenField_SortBy_ManagerMasterMonthlyOperation.RenderControl(e.Output);
     this.cmbSortBy_ManagerMasterMonthlyOperation.RenderControl(e.Output);
 }
Esempio n. 6
0
 protected void CallBack_GridRules_RulesView_onCallBack(object sender, ComponentArt.Web.UI.CallBackEventArgs e)
 {
     this.Fill_GridRules_RulesView(decimal.Parse(this.StringBuilder.CreateString(e.Parameter)));
     this.ErrorHiddenField_RulesView.RenderControl(e.Output);
     this.GridRules_RulesView.RenderControl(e.Output);
 }
 protected void CallBack_WorkFlow_OrganizationWorkFlow_onCallBack(object sender, ComponentArt.Web.UI.CallBackEventArgs e)
 {
     AttackDefender.CSRFDefender(this.Page);
     if (this.StringBuilder.CreateString(e.Parameter) != string.Empty)
     {
         this.DrawFlow_OrganizationWorkFlow(decimal.Parse(this.StringBuilder.CreateString(e.Parameter), CultureInfo.InvariantCulture));
     }
     this.ErrorHiddenField_WorkFlow_OrganizationWorkFlow.RenderControl(e.Output);
     this.smpWorkFlow_OrganizationWorkFlow.RenderControl(e.Output);
 }
Esempio n. 8
0
 protected void CallBack_cmbOperator_KartableFilter_onCallBack(object sender, ComponentArt.Web.UI.CallBackEventArgs e)
 {
     this.cmbOperator_KartableFilter.Dispose();
     this.Fill_cmbOperator_KartableFilter(e.Parameter);
     this.cmbOperator_KartableFilter.RenderControl(e.Output);
 }
Esempio n. 9
0
 protected void CallBack_cmbPersonnel_UnderManagementPersonnel_onCallBack(object sender, ComponentArt.Web.UI.CallBackEventArgs e)
 {
     AttackDefender.CSRFDefender(this.Page);
     this.cmbPersonnel_UnderManagementPersonnel.Dispose();
     this.SetPersonnelPageCount_cmbPersonnel_UnderManagementPersonnel((LoadState)Enum.Parse(typeof(LoadState), this.StringBuilder.CreateString(e.Parameters[0])), int.Parse(this.StringBuilder.CreateString(e.Parameters[1]), CultureInfo.InvariantCulture), this.StringBuilder.CreateString(e.Parameters[3]));
     this.Fill_cmbPersonnel_UnderManagementPersonnel((LoadState)Enum.Parse(typeof(LoadState), this.StringBuilder.CreateString(e.Parameters[0])), int.Parse(this.StringBuilder.CreateString(e.Parameters[1]), CultureInfo.InvariantCulture), int.Parse(this.StringBuilder.CreateString(e.Parameters[2]), CultureInfo.InvariantCulture), this.StringBuilder.CreateString(e.Parameters[3]));
     this.cmbPersonnel_UnderManagementPersonnel.RenderControl(e.Output);
     this.hfPersonnelPageCount_UnderManagementPersonnel.RenderControl(e.Output);
     this.ErrorHiddenField_Personnel_UnderManagementPersonnel.RenderControl(e.Output);
 }
 protected void CallBack_GridRegisteredRequests_RequestOnTraffic_onCallBack(object sender, ComponentArt.Web.UI.CallBackEventArgs e)
 {
     AttackDefender.CSRFDefender(this.Page);
     this.Fill_GridRegisteredRequests_RequestOnTraffic((RequestCaller)Enum.Parse(typeof(RequestCaller), this.StringBuilder.CreateString(e.Parameters[0])), this.StringBuilder.CreateString(e.Parameters[1]), this.StringBuilder.CreateString(e.Parameters[2]), decimal.Parse(this.StringBuilder.CreateString(e.Parameters[3]), CultureInfo.InvariantCulture));
     this.ErrorHiddenField_RegisteredRequests.RenderControl(e.Output);
     this.GridRegisteredRequests_RequestOnTraffic.RenderControl(e.Output);
 }
Esempio n. 11
0
    protected void CallBack_GridAssignedWorkGroups_YearlyHolidays_onCallBack(object sender, ComponentArt.Web.UI.CallBackEventArgs e)
    {
        AttackDefender.CSRFDefender(this.Page);
        decimal selectedHolidayID = decimal.Parse(this.StringBuilder.CreateString(e.Parameters[0]), CultureInfo.InvariantCulture);
        int     year = int.Parse(this.StringBuilder.CreateString(e.Parameters[1]), CultureInfo.InvariantCulture);

        Fill_GridAssignedWorkGroups_YearlyHolidays(selectedHolidayID, year, e);
        this.GridAssignedWorkGroups_YearlyHolidays.RenderControl(e.Output);
        this.ErrorHiddenField_GridAssignedWorkGroups_YearlyHolidays.RenderControl(e.Output);
        this.CheckListHiddenField_YearlyHolidays.RenderControl(e.Output);
    }
Esempio n. 12
0
        public void callBack_Callback(object sender, ComponentArt.Web.UI.CallBackEventArgs e)
        {
            Populate(e.Parameter);

            table.RenderControl(e.Output);
        }
        protected void CallBack_GanttChartMonthlyOperation_MonthlyOperationGanttChartSchema_onCallBack(object sender, ComponentArt.Web.UI.CallBackEventArgs e)
        {
            try
            {
                AttackDefender.CSRFDefender(this.Page);
                GTS.Clock.Business.BaseBusiness <Person> .LogException(new Exception(this.StringBuilder.CreateString(e.Parameters[7])));

                this.InitializeScale_GanttChartMonthlyOperation_MonthlyOperationGanttChartSchema(double.Parse(this.StringBuilder.CreateString(e.Parameters[6]), CultureInfo.InvariantCulture), double.Parse(this.StringBuilder.CreateString(e.Parameters[7]), CultureInfo.InvariantCulture));
                this.GenerateGanttSeries_ChartMonthlyOperation_MonthlyOperationGanttChartSchema();
                this.Fill_GanttChartMonthlyOperation_MonthlyOperationGanttChartSchema((LoadState)Enum.Parse(typeof(LoadState), this.StringBuilder.CreateString(e.Parameters[0])), decimal.Parse(this.StringBuilder.CreateString(e.Parameters[1]), CultureInfo.InvariantCulture), int.Parse(this.StringBuilder.CreateString(e.Parameters[2]), CultureInfo.InvariantCulture), int.Parse(this.StringBuilder.CreateString(e.Parameters[3]), CultureInfo.InvariantCulture), this.StringBuilder.CreateString(e.Parameters[4]), this.StringBuilder.CreateString(e.Parameters[5]));
                this.hfTaskFeatures_MonthlyOperationGanttChartSchema.RenderControl(e.Output);
                this.ErrorHiddenField_MonthlyOperationGanttChartSchema.RenderControl(e.Output);
                this.GanttChartMonthlyOperation_MonthlyOperationGanttChartSchema.RenderControl(e.Output);
            }
            catch (Exception ex)
            {
                string[] retMessage = new string[4];
                retMessage = this.exceptionHandler.HandleException(this.Page, ExceptionTypes.Exception, ex, retMessage);
                this.ErrorHiddenField_MonthlyOperationGanttChartSchema.Value = this.exceptionHandler.CreateErrorMessage(retMessage);
                throw;
            }
        }
Esempio n. 14
0
 protected void CallBack_GridUnderManagementPersonnel_SendPrivateMessage_Callback(object sender, ComponentArt.Web.UI.CallBackEventArgs e)
 {
     this.hfUnderManagementPersonnelList_SendPrivateMessage.RenderControl(e.Output);
     this.ErrorHiddenField_SendPrivateMessage_SendPrivateMessage.RenderControl(e.Output);
     this.GridUnderManagementPersonnel_SendPrivateMessage.RenderControl(e.Output);
 }
Esempio n. 15
0
 protected void CallBack_cmbRuleGroup_UiValidationIntroduction_onCallback(object sender, ComponentArt.Web.UI.CallBackEventArgs e)
 {
     this.cmbRuleGroup_UiValidationIntroduction.Dispose();
     this.Fill_cmbRuleGroup_UiValidationIntroduction();
     this.ErrorHiddenField_RuleGroup.RenderControl(e.Output);
     this.cmbRuleGroup_UiValidationIntroduction.RenderControl(e.Output);
 }
Esempio n. 16
0
    protected void CallBack_GridCombinationalConditions_KartableFilter_onCallBack(object sender, ComponentArt.Web.UI.CallBackEventArgs e)
    {
        this.InitializeCulture();
        AttackDefender.CSRFDefender(this.Page);
        ArrayList arFilters = this.InsertFilterConditions_KartableFilter(e.Parameter);

        this.GridCombinationalConditions_KartableFilter.DataSource = arFilters;
        this.GridCombinationalConditions_KartableFilter.DataBind();
        this.GridCombinationalConditions_KartableFilter.RenderControl(e.Output);
    }
Esempio n. 17
0
 protected void CallBack_trvAccessLevelsAsign_AccessLevelsAsign_onCallBack(object sender, ComponentArt.Web.UI.CallBackEventArgs e)
 {
     this.Fill_trvAccessLevelsAsign_AccessLevelsAsign(decimal.Parse(this.StringBuilder.CreateString(e.Parameter)));
     this.ErrorHiddenField_AccessLevelsAsign.RenderControl(e.Output);
     this.trvAccessLevelsAsign_AccessLevelsAsign.RenderControl(e.Output);
 }
Esempio n. 18
0
 protected void CallBack_GridMonthlyOperationSummary_ManagerMasterMonthlyOperation_onCallBack(object sender, ComponentArt.Web.UI.CallBackEventArgs e)
 {
     this.BuildGrid_SummaryMonthlyOperation(e);
 }
Esempio n. 19
0
        protected void cbEditRole_Callback(object sender, ComponentArt.Web.UI.CallBackEventArgs e)
        {
            //return;
            // There should be two strings in the Parameters property. The first indicates the requested operation
            // (edit, save, etc). The second is the name of the role.
            try
            {
                if (e.Parameters.Length != 2)
                {
                    throw new ArgumentException(String.Format(CultureInfo.CurrentCulture, "The cbEditRole_Callback is expecting two items in the parameter list, but received {0} items. The first item should be a string equal to 'add', 'edit', or 'save', and the second item should be a string containing the role name (should be empty if the first parameter = 'add').", e.Parameters.Length));
                }

                string roleName = Util.HtmlDecode(e.Parameters[1]);
                switch (e.Parameter)
                {
                case "add":
                case "edit":
                {
                    SetControlVisibility(roleName);

                    PopulateControlsWithRoleData(roleName);

                    // Render the controls with the updated information.
                    FindControlRecursive(dgEditRole, "pnlDialogContent").RenderControl(e.Output);

                    break;
                }

                case "save":
                {
                    ValidateSaveRole(roleName);

                    SaveRole(roleName);

                    // Empty the cache so the next request will pull them from the data store.
                    HelperFunctions.PurgeCache();

                    // Write a little javascript to set a page variable that will be used during the OnCallbackComplete
                    // event to close the dialog when the call is successful.
                    e.Output.Write("<script type=\"text/javascript\">callbackStatus = 'success';</script>");

                    break;
                }

                case "adminSelected":
                {
                    // The user selected the Administer site permission. Since this permission applies to all albums, we need
                    // to select all the checkboxes for all albums. I couldn't get this to work on the client by calling checkAll(),
                    // so I resorted to invoking this callback.
                    BindAlbumTreeview(true);

                    // Render the controls with the updated information.
                    FindControlRecursive(dgEditRole, "pnlDialogContent").RenderControl(e.Output);

                    break;
                }
                }
            }
            catch (Exception ex)
            {
                GalleryServerPro.Web.Controls.usermessage msgBox = (GalleryServerPro.Web.Controls.usermessage)LoadControl(Util.GetUrl("/controls/usermessage.ascx"));
                msgBox.IconStyle     = GalleryServerPro.Web.MessageStyle.Error;
                msgBox.MessageTitle  = Resources.GalleryServerPro.Admin_Manage_Roles_Cannot_Save_Role_Msg;
                msgBox.MessageDetail = ex.Message;
                phMessage.Controls.Add(msgBox);

                FindControlRecursive(dgEditRole, "pnlDialogContent").RenderControl(e.Output);
            }
        }
Esempio n. 20
0
        protected void CallBack_GridSummarySettings_ManagerMasterMonthlyOperation_onCallBack(object sender, ComponentArt.Web.UI.CallBackEventArgs e)
        {
            string[] retMessage = new string[4];
            try
            {
                Dictionary <string, string> MasterColArray   = this.CreateRecievedColumnsArray_SummaryMonthlyOperation(e.Parameters[0], "Get");
                Dictionary <string, string> SettingsColArray = null;
                if (e.Parameters[2] != string.Empty)
                {
                    SettingsColArray = this.CreateRecievedColumnsArray_SummaryMonthlyOperation(e.Parameters[2], "Set");
                }

                MonthlyOperationGridMasterSettings monthlyOperationGridMasterSettings = this.GetVisibleColumns_GridSummarySettings_SummaryMonthlyOperation(MasterColArray, e.Parameters[1], SettingsColArray, decimal.Parse(this.StringBuilder.CreateString(e.Parameters[4])));

                if (bool.Parse(e.Parameters[3]))
                {
                    this.ColumnsRecreation_ManagerMasterMonthlyOperationPage();
                }

                switch (e.Parameters[1])
                {
                case "Get":
                    this.GridSummarySettings_ManagerMasterMonthlyOperation.DataSource = this.CreateDs_SummaryMonthlyOperationGrid_SettingsCode(monthlyOperationGridMasterSettings, MasterColArray, e.Parameters[1]).Tables[0];
                    this.GridSummarySettings_ManagerMasterMonthlyOperation.DataBind();
                    this.hfCurrentSettingID_GridSummarySettings_ManagerMasterMonthlyOperation.Value = monthlyOperationGridMasterSettings.ID.ToString();
                    break;
                }
            }
            catch (UIValidationExceptions ex)
            {
                retMessage = this.exceptionHandler.HandleException(this.Page, ExceptionTypes.UIValidationExceptions, ex, retMessage);
                this.ErrorHiddenField_GridSummarySettings_ManagerMasterMonthlyOperation.Value = this.exceptionHandler.CreateErrorMessage(retMessage);
            }
            catch (UIBaseException ex)
            {
                retMessage = this.exceptionHandler.HandleException(this.Page, ExceptionTypes.UIBaseException, ex, retMessage);
                this.ErrorHiddenField_GridSummarySettings_ManagerMasterMonthlyOperation.Value = this.exceptionHandler.CreateErrorMessage(retMessage);
            }
            catch (Exception ex)
            {
                retMessage = this.exceptionHandler.HandleException(this.Page, ExceptionTypes.Exception, ex, retMessage);
                this.ErrorHiddenField_GridSummarySettings_ManagerMasterMonthlyOperation.Value = this.exceptionHandler.CreateErrorMessage(retMessage);
            }

            this.ErrorHiddenField_GridSummarySettings_ManagerMasterMonthlyOperation.RenderControl(e.Output);
            this.hfCurrentSettingID_GridSummarySettings_ManagerMasterMonthlyOperation.RenderControl(e.Output);
            this.GridSummarySettings_ManagerMasterMonthlyOperation.RenderControl(e.Output);
        }
Esempio n. 21
0
 protected void CallBack_GridPrivateMessageSend_PrivateMessage_onCallBack(object sender, ComponentArt.Web.UI.CallBackEventArgs e)
 {
     AttackDefender.CSRFDefender(this.Page);
     GTS.Clock.Model.Security.User user = new GTS.Clock.Model.Security.User();
     user = BUser.CurrentUser;
     SetPrivateMessageSendPageCount_PrivateMessage();
     this.Fill_GridPrivateMessageSend_PrivateMessage(int.Parse(this.StringBuilder.CreateString(e.Parameters[0])), int.Parse(this.StringBuilder.CreateString(e.Parameters[1])), user.Person.ID);
     this.GridPrivateMessageSend_PrivateMessage.RenderControl(e.Output);
     this.hfPrivateMessageSendPageCount_PrivateMessage.RenderControl(e.Output);
     this.hfPrivateMessageSendCount_PrivateMessage.RenderControl(e.Output);
     this.errorHiddenFieldSend_PrivateMessage.RenderControl(e.Output);
 }
Esempio n. 22
0
    protected void CallBack_GridParameterDefineUiValidation_DefineUiValidation_Callback(object sender, ComponentArt.Web.UI.CallBackEventArgs e)
    {
        decimal selectedGroupID = decimal.Parse(this.StringBuilder.CreateString(e.Parameters[0]));
        decimal selectedRuleID  = decimal.Parse(this.StringBuilder.CreateString(e.Parameters[1]));

        this.Fill_GridParameterDefineUiValidation_DefineUiValidation(selectedGroupID, selectedRuleID);
        this.GridParameterDefineUiValidation_DefineUiValidation.RenderControl(e.Output);
        this.ErrorHiddenField_ParameterDefineUiValidation.RenderControl(e.Output);
    }