Example #1
0
 protected void CallBack_GridManagers_Managers_onCallBack(object sender, ComponentArt.Web.UI.CallBackEventArgs e)
 {
     AttackDefender.CSRFDefender(this.Page);
     this.GridManagers_Managers.RenderControl(e.Output);
     this.hfManagersPageCount_Managers.RenderControl(e.Output);
     this.ErrorHiddenField_Managers_Managers.RenderControl(e.Output);
 }
        protected void CallBack1_Callback(object sender, ComponentArt.Web.UI.CallBackEventArgs e)
        {
            if (hfID.Value != "")
            {
                RandomExamApplyBLL objBll = new RandomExamApplyBLL();
                RandomExamApply    obj    = objBll.GetRandomExamApply(Convert.ToInt32(hfID.Value));

                if (obj.RandomExamApplyID != 0)
                {
                    if (obj.ApplyStatus == 1)
                    {
                        hfNow.Value = "1";
                    }
                    else
                    {
                        hfNow.Value = "0";
                    }
                }
                else
                {
                    hfNow.Value = "-1";
                }
            }
            else
            {
                hfNow.Value = "0";
            }

            hfNow.RenderControl(e.Output);
        }
Example #3
0
 public void OnCallback_SelectCurRole
     (object sender,
     ComponentArt.Web.UI.CallBackEventArgs e)
 {
     this.IDsaprole = int.Parse(e.Parameter);
     this.GRIDroleowners.DataBind();
     this.GRIDroleowners.RenderControl(e.Output);
 }
Example #4
0
 protected void CallBack_GridPersonnel_Personnel_onCallBack(object sender, ComponentArt.Web.UI.CallBackEventArgs e)
 {
     this.SetPersonnelPageCount_Personnel((LoadState)Enum.Parse(typeof(LoadState), this.StringBuilder.CreateString(e.Parameters[0])), e.Parameters.Length > 3 ? this.StringBuilder.CreateString(e.Parameters[3]) : string.Empty);
     this.Fill_GridPersonnel_Personnel((LoadState)Enum.Parse(typeof(LoadState), this.StringBuilder.CreateString(e.Parameters[0])), int.Parse(this.StringBuilder.CreateString(e.Parameters[1])), int.Parse(this.StringBuilder.CreateString(e.Parameters[2])), e.Parameters.Length > 3 ? this.StringBuilder.CreateString(e.Parameters[3]) : string.Empty);
     this.GridPersonnel_Personnel.RenderControl(e.Output);
     this.hfPersonnelCount_Personnel.RenderControl(e.Output);
     this.hfPersonnelPageCount_Personnel.RenderControl(e.Output);
     this.ErrorHiddenField_Personnel.RenderControl(e.Output);
 }
Example #5
0
        protected void Callback_neworder_Callback(object sender, ComponentArt.Web.UI.CallBackEventArgs e)
        {
            //UserDO me = LoginSession.GetCurrentUser(this);
//             if (BitUtil.BitAnd(me.RoleId, RoleService.ROLE_MANAGER))
//             {
//                 OrderInfo_create.CtrlAction = CommandNameType.EDIT;
//             }
            //OrderInfo_create.CustomerId = CustomerInfo_edit.CustomerId;
            ////OrderInfo_create.DataBind();
            //OrderInfo_create.RenderControl(e.Output);
        }
        protected void searchExamCallBack_Callback(object sender, ComponentArt.Web.UI.CallBackEventArgs e)
        {
            DataSet ds = GetDataSet();

            if (ds != null && ds.Tables.Count == 2)
            {
                gradesGrid.DataSource = ds;
                gradesGrid.DataBind();
            }
            gradesGrid.RenderControl(e.Output);
        }
Example #7
0
        private void OnCallback_additionalRoles
            (object sender,
            ComponentArt.Web.UI.CallBackEventArgs e)
        {
            int idBusRole = int.Parse(e.Parameter);

            Session["intFILTERBROLE"] = idBusRole;

            this.SQL_additionalRoles.DataBind();

            GRIDadditionalRoles.DataBind();
        }
Example #8
0
        protected void cbValidateNewUserName_Callback(object sender, ComponentArt.Web.UI.CallBackEventArgs e)
        {
            // The user just typed in a user name in the Add New User wizard. Let's check to see if it already
            // exists and let the user know the result.
            string requestedUsername = e.Parameter;

            if (String.IsNullOrEmpty(requestedUsername))
            {
                lblUserNameValidationResult.Text = String.Empty;
            }
            else
            {
                if (UseEmailForAccountName && (!HelperFunctions.IsValidEmail(requestedUsername)))
                {
                    // App is configured to use an e-mail address as the account name, but the name is not a valid
                    // e-mail.
                    lblUserNameValidationResult.Text     = Resources.GalleryServerPro.CreateAccount_Verification_Username_Not_Valid_Email_Text;
                    lblUserNameValidationResult.CssClass = "gsp_msgwarning";
                }
                else if (Util.RemoveHtmlTags(requestedUsername).Length != requestedUsername.Length)
                {
                    // The user name has HTML tags, which are not allowed.
                    lblUserNameValidationResult.Text     = Resources.GalleryServerPro.Site_Invalid_Text;
                    lblUserNameValidationResult.CssClass = "gsp_msgwarning";
                }
                else
                {
                    // We passed the first test above. Now verify that the requested user name is not already taken.
                    UserEntity user = UserController.GetUser(requestedUsername, false);

                    bool userNameIsInUse = (user != null);

                    if (userNameIsInUse)
                    {
                        lblUserNameValidationResult.Text     = Resources.GalleryServerPro.Admin_Manage_Users_Username_Already_In_Use_Msg;
                        lblUserNameValidationResult.CssClass = "gsp_msgwarning";
                    }
                    else
                    {
                        lblUserNameValidationResult.Text     = Resources.GalleryServerPro.Admin_Manage_Users_Username_Already_Is_Valid_Msg;
                        lblUserNameValidationResult.CssClass = "gsp_msgfriendly";
                    }
                }
            }

            lblUserNameValidationResult.RenderControl(e.Output);
        }
        protected void btnsClickCallBack_Callback(object sender, ComponentArt.Web.UI.CallBackEventArgs e)
        {
            switch (e.Parameters[0])
            {
            case "delete":
            {
                string[] strExamResultIds = e.Parameters[1].Split('|');
                int[]    nExamResultIds   = new int[strExamResultIds.Length];

                int index = 0;
                foreach (string s in strExamResultIds)
                {
                    nExamResultIds[index] = int.Parse(s);
                    index++;
                }

                ExamResultBLL bllExamResult = new ExamResultBLL();
                bllExamResult.DeleteExamResults(nExamResultIds);

                break;
            }

            default:
            {
                break;
            }
            }

            DataSet ds = GetDataSet();

            if (ds != null && ds.Tables.Count == 2)
            {
                gradesGrid.DataSource = ds;
                gradesGrid.DataBind();
            }
            gradesGrid.RenderControl(e.Output);
        }
 protected void CallBack_GridUnderManagementPersonnelExeptionAccessView_UnderManagementPersonnelExeptionAccessView_onCallBack(object sender, ComponentArt.Web.UI.CallBackEventArgs e)
 {
     this.GridUnderManagementPersonnelExeptionAccessView_UnderManagementPersonnelExeptionAccessView.RenderControl(e.Output);
 }
Example #11
0
 protected void CallBack1_Callback(object sender, ComponentArt.Web.UI.CallBackEventArgs e)
 {
     lblServerDateTime.Text = DateTime.Now.ToLongDateString() + " " + DateTime.Now.ToLongTimeString();
     lblServerDateTime.RenderControl(e.Output);
 }
Example #12
0
 protected void CallBack_TreeViewHelpForm_HelpForm_Callback(object sender, ComponentArt.Web.UI.CallBackEventArgs e)
 {
     LoadTreeView();
     TreeViewHelpForm_HelpForm.RenderControl(e.Output);
 }
Example #13
0
 void cbMyTrailers_Callback(object sender, ComponentArt.Web.UI.CallBackEventArgs e)
 {
     ((ComponentArt.Web.UI.Grid)RadPanelbar1.FindControl("grdMyTrailers")).DataSource = GetMyTrailers();
     ((ComponentArt.Web.UI.Grid)RadPanelbar1.FindControl("grdMyTrailers")).DataBind();
     ((ComponentArt.Web.UI.Grid)RadPanelbar1.FindControl("grdMyTrailers")).RenderControl(e.Output);
 }
Example #14
0
 void cbVehiclesComingIn_Callback(object sender, ComponentArt.Web.UI.CallBackEventArgs e)
 {
     ((ComponentArt.Web.UI.Grid)RadPanelbar1.FindControl("grdVehiclesComingIn")).DataSource = GetVehiclesComingIn();
     ((ComponentArt.Web.UI.Grid)RadPanelbar1.FindControl("grdVehiclesComingIn")).DataBind();
     ((ComponentArt.Web.UI.Grid)RadPanelbar1.FindControl("grdVehiclesComingIn")).RenderControl(e.Output);
 }
Example #15
0
 // This call ensures that the six rows of chg-mgmt already exist
 // because the human is about to bring up that popup modal dlog!
 private void OnCallback_initChangeMgmt
     (object sender,
     ComponentArt.Web.UI.CallBackEventArgs e)
 {
     HELPERS.InitChangeMgmtForWS(session.idWorkspace);
 }
 protected void CallBack_GridRegisteredRequests_CollectiveTraffic_OnCallBack(object sender, ComponentArt.Web.UI.CallBackEventArgs e)
 {
 }
Example #17
0
 protected void CallBack_cmbPersonnel_TrafficOperationByOperator_onCallBack(object sender, ComponentArt.Web.UI.CallBackEventArgs e)
 {
 }
Example #18
0
 protected void CallBack_GridTrafficDetails_TrafficOperationByOperator_onCallBack(object sender, ComponentArt.Web.UI.CallBackEventArgs e)
 {
 }
Example #19
0
 protected void CallBack1_onCallBack(object sender, ComponentArt.Web.UI.CallBackEventArgs e)
 {
     LoadTreeView();
     TreeView1.RenderControl(e.Output);
 }
Example #20
0
 /// <summary>
 /// 当用户双击拜访记录时,异步显示数据
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 protected void Callback_visit_Callback(object sender, ComponentArt.Web.UI.CallBackEventArgs e)
 {
     //VisitRecordInfo_editVisitRecord.RecordId = e.Parameter;
     VisitRecordInfo_editVisitRecord.DataBind();
     VisitRecordInfo_editVisitRecord.RenderControl(e.Output);
 }
Example #21
0
 protected void CallBack1_onCallBack(object sender, ComponentArt.Web.UI.CallBackEventArgs e)
 {
     AttackDefender.CSRFDefender(this.Page);
     LoadTreeView();
     TreeView1.RenderControl(e.Output);
 }