コード例 #1
0
ファイル: RT107.aspx.cs プロジェクト: EliasTous/ERP
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!X.IsAjaxRequest && !IsPostBack)
            {
                try
                {
                    AccessControlApplier.ApplyAccessControlOnPage(typeof(Model.Reports.RT107), null, null, null, null);
                }
                catch (AccessDeniedException exp)
                {
                    X.MessageBox.ButtonText.Ok = Resources.Common.Ok;
                    X.Msg.Alert(Resources.Common.Error, Resources.Common.ErrorAccessDenied).Show();
                    Viewport1.Hidden = true;
                    return;
                }

                SetExtLanguage();
                HideShowButtons();

                List <Model.System.XMLDictionary> activeStatusList = Common.XMLDictionaryList(_systemService, "16");
                activeStatusList.Add(new Model.System.XMLDictionary {
                    key = 0, value = Resources.Common.All
                });
                activeStatusStore.DataSource = activeStatusList;
                activeStatusStore.DataBind();
                inactivePref.Select("0");


                Store1.Reload();
            }
        }
コード例 #2
0
ファイル: RT801.aspx.cs プロジェクト: EliasTous/ERP
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!X.IsAjaxRequest && !IsPostBack)
            {
                SetExtLanguage();
                HideShowButtons();
                HideShowColumns();

                try
                {
                    try
                    {
                        AccessControlApplier.ApplyAccessControlOnPage(typeof(Model.Reports.RT801), null, null, null, null);
                    }
                    catch (AccessDeniedException exp)
                    {
                        X.MessageBox.ButtonText.Ok = Resources.Common.Ok;
                        X.Msg.Alert(Resources.Common.Error, Resources.Common.ErrorAccessDenied).Show();
                        Viewport1.Hidden = true;
                        return;
                    }
                    dateRange1.DefaultStartDate = DateTime.Today;
                    format.Text = _systemService.SessionHelper.GetDateformat();
                    ASPxWebDocumentViewer1.RightToLeft = _systemService.SessionHelper.CheckIfArabicSession() ? DevExpress.Utils.DefaultBoolean.True : DevExpress.Utils.DefaultBoolean.False;
                    //FillReport(false);
                }
                catch { }
            }
        }
コード例 #3
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!X.IsAjaxRequest && !IsPostBack)
            {
                SetExtLanguage();
                HideShowButtons();
                HideShowColumns();

                try
                {
                    format.Text = _systemService.SessionHelper.GetDateformat().ToUpper();
                }
                catch { }
                try
                {
                    AccessControlApplier.ApplyAccessControlOnPage(typeof(Model.Reports.RT103), null, null, null, null);
                }
                catch (AccessDeniedException exp)
                {
                    X.MessageBox.ButtonText.Ok = Resources.Common.Ok;
                    X.Msg.Alert(Resources.Common.Error, Resources.Common.ErrorAccessDenied).Show();
                    Viewport1.Hidden = true;
                    return;
                }
            }
        }
コード例 #4
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!X.IsAjaxRequest && !IsPostBack)
            {
                SetExtLanguage();
                HideShowButtons();
                HideShowColumns();
                if (string.IsNullOrEmpty(Request.QueryString["employeeId"]))
                {
                    X.Msg.Alert(Resources.Common.Error, Resources.Common.ErrorOperation).Show();
                }
                CurrentEmployee.Text    = Request.QueryString["employeeId"];
                dateFrom.Format         = dateTo.Format = dateToColumn.Format = dateFromColumn.Format = _systemService.SessionHelper.GetDateformat();
                EmployeeTerminated.Text = Request.QueryString["terminated"];

                bool disabled = EmployeeTerminated.Text == "1";
                btnAdd.Disabled = SaveSkillButton.Disabled = disabled;
                try
                {
                    AccessControlApplier.ApplyAccessControlOnPage(typeof(EmployeeCertificate), SkillsForm, skillsGrid, btnAdd, SaveSkillButton);
                }
                catch (AccessDeniedException exp)
                {
                    X.MessageBox.ButtonText.Ok = Resources.Common.Ok;
                    X.Msg.Alert(Resources.Common.Error, Resources.Common.ErrorAccessDenied).Show();
                    Viewport11.Hidden = true;
                    return;
                }
                if (remarks.InputType == InputType.Password)
                {
                    remarks.Visible      = false;
                    remarksField.Visible = true;
                }
            }
        }
コード例 #5
0
        private void ApplySecurityContacts()
        {
            try
            {
                AccessControlApplier.ApplyAccessControlOnPage(typeof(EmployeeContact), ContactsForm, contactGrid, Button2, Button7);
            }
            catch (AccessDeniedException exp)
            {
                X.MessageBox.ButtonText.Ok = Resources.Common.Ok;
                X.Msg.Alert(Resources.Common.Error, Resources.Common.ErrorAccessDenied).Show();
                contactGrid.Hidden = true;
            }
            // var properties = AccessControlApplier.GetPropertiesLevels(typeof(EmployeeContact));

            // var att = properties.Where(x =>

            //     x.propertyId == "3112202"
            //);
            // if (att.Count() > 0)
            // {
            //     switch (att.ToList()[0].accessLevel)
            //     {
            //         case 0:
            //             LimitContactAddress(true); break;
            //         case 1: LimitContactAddress(false); break;
            //         case 2:
            //         default: break;

            //     }
            // }
        }
コード例 #6
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!X.IsAjaxRequest && !IsPostBack)
            {
                SetExtLanguage();
                HideShowButtons();
                HideShowColumns();
                if (string.IsNullOrEmpty(Request.QueryString["employeeId"]))
                {
                    X.Msg.Alert(Resources.Common.Error, Resources.Common.ErrorOperation).Show();
                    return;
                }
                CurrentEmployee.Text = Request.QueryString["employeeId"];
                if (string.IsNullOrEmpty(Request.QueryString["hireDate"]))
                {
                    X.Msg.Alert(Resources.Common.Error, Resources.Common.MissingHireDate).Show();
                    Viewport11.Hidden = true;
                    return;
                }
                CurrentHireDate.Text    = Request.QueryString["hireDate"];
                EmployeeTerminated.Text = Request.QueryString["terminated"];

                bool disabled = EmployeeTerminated.Text == "1";
                btnAdd.Disabled = Button1.Disabled = SaveEHButton.Disabled = SaveJIButton.Disabled = disabled;
                try
                {
                    AccessControlApplier.ApplyAccessControlOnPage(typeof(JobInfo), EditJobInfoTab, JobInfoGrid, Button1, SaveJIButton);
                }
                catch (AccessDeniedException exp)
                {
                    X.MessageBox.ButtonText.Ok = Resources.Common.Ok;
                    X.Msg.Alert(Resources.Common.Error, Resources.Common.ErrorAccessDenied).Show();
                    JobInfoGrid.Hidden = true;
                }
                try
                {
                    AccessControlApplier.ApplyAccessControlOnPage(typeof(EmploymentHistory), EditEHForm, employeementHistoryGrid, btnAdd, SaveEHButton);
                }
                catch (AccessDeniedException exp)
                {
                    X.MessageBox.ButtonText.Ok = Resources.Common.Ok;
                    X.Msg.Alert(Resources.Common.Error, Resources.Common.ErrorAccessDenied).Show();
                    employeementHistoryGrid.Hidden = true;
                }
            }
            Column2.Format = ColDate.Format = ehDate.Format = date.Format = _systemService.SessionHelper.GetDateformat();
            if (comment.InputType == InputType.Password)
            {
                comment.Visible      = false;
                commentField.Visible = true;
            }
        }
コード例 #7
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!X.IsAjaxRequest && !IsPostBack)
            {
                SetExtLanguage();
                HideShowButtons();

                if (string.IsNullOrEmpty(Request.QueryString["employeeId"]))
                {
                    X.Msg.Alert(Resources.Common.Error, Resources.Common.ErrorOperation).Show();
                }
                CurrentEmployee.Text = Request.QueryString["employeeId"];

                birthDate.Format        = birthDateCol.Format = _systemService.SessionHelper.GetDateformat();
                EmployeeTerminated.Text = Request.QueryString["terminated"];

                bool disabled = EmployeeTerminated.Text == "1";
                Button2.Disabled = Button7.Disabled = disabled;
                dependencyTypeStore.DataSource = Common.XMLDictionaryList(_systemService, "30");
                dependencyTypeStore.DataBind();
                if ((bool)_systemService.SessionHelper.Get("IsAdmin"))
                {
                    return;
                }
                try
                {
                    AccessControlApplier.ApplyAccessControlOnPage(typeof(Dependant), infoForm, dependandtsGrid, Button2, Button7);
                    AccessControlApplier.ApplyAccessControlOnPage(typeof(Dependant), addressForm, dependandtsGrid, Button2, Button7);
                }
                catch (AccessDeniedException exp)
                {
                    X.MessageBox.ButtonText.Ok = Resources.Common.Ok;
                    X.Msg.Alert(Resources.Common.Error, Resources.Common.ErrorAccessDenied).Show();
                    Viewport11.Hidden = true;
                    return;
                }
                //ApplyAccessControlOnAddress();
            }
            if (!string.IsNullOrEmpty(Request.QueryString["fromselfservice"]) && Request.QueryString["fromselfservice"] == "true")
            {
                _employeeService = ServiceLocator.Current.GetInstance <ISelfServiceService>();
            }
            else
            {
                _employeeService = ServiceLocator.Current.GetInstance <IEmployeeService>();
            }
        }
コード例 #8
0
ファイル: Documents.aspx.cs プロジェクト: EliasTous/ERP
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!X.IsAjaxRequest && !IsPostBack)
            {
                SetExtLanguage();
                HideShowButtons();
                HideShowColumns();
                if (string.IsNullOrEmpty(Request.QueryString["employeeId"]))
                {
                    X.Msg.Alert(Resources.Common.Error, Resources.Common.ErrorOperation).Show();
                }
                CurrentEmployee.Text    = Request.QueryString["employeeId"];
                CurrentDateFormat.Text  = _systemService.SessionHelper.GetDateformat();
                EmployeeClassId.Text    = ClassId.EPDO.ToString();
                dateCol.Format          = _systemService.SessionHelper.GetDateformat();
                EmployeeTerminated.Text = Request.QueryString["terminated"];

                bool disabled = EmployeeTerminated.Text == "1";
                btnAdd.Disabled = disabled;
                if (_systemService.SessionHelper.CheckIfIsAdmin())
                {
                    return;
                }
                try
                {
                    AccessControlApplier.ApplyAccessControlOnPage(typeof(Attachement), EditDocumentForm, employeeDocumentsGrid, btnAdd, SaveDocumentButton);
                }
                catch (AccessDeniedException exp)
                {
                    X.MessageBox.ButtonText.Ok = Resources.Common.Ok;
                    X.Msg.Alert(Resources.Common.Error, Resources.Common.ErrorAccessDenied).Show();
                    employeeDocumentsGrid.Hidden = true;
                    return;
                }
                //var properties = AccessControlApplier.GetPropertiesLevels(typeof(Attachement));
                //if (properties.Where(x => x.index == "url").ToList()[0].accessLevel == 0)
                //{
                //    var s = employeeDocumentsGrid.ColumnModel.Columns[employeeDocumentsGrid.ColumnModel.Columns.Count - 1];
                //    s.Renderer.Handler = s.Renderer.Handler.Replace("attachRender()", "' '");
                //}
            }
        }
コード例 #9
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!X.IsAjaxRequest && !IsPostBack)
            {
                SetExtLanguage();
                HideShowButtons();
                HideShowColumns();
                if (string.IsNullOrEmpty(Request.QueryString["employeeId"]))
                {
                    X.Msg.Alert(Resources.Common.Error, Resources.Common.ErrorOperation).Show();
                    return;
                }
                CurrentEmployee.Text = Request.QueryString["employeeId"];
                if (string.IsNullOrEmpty(Request.QueryString["hireDate"]))
                {
                    X.Msg.Alert(Resources.Common.Error, Resources.Common.MissingHireDate).Show();
                    Viewport11.Hidden = true;
                    return;
                }
                CurrentHireDate.Text    = Request.QueryString["hireDate"];
                EmployeeTerminated.Text = Request.QueryString["terminated"];

                bool disabled = EmployeeTerminated.Text == "1";
                btnAdd.Disabled = SaveEHButton.Disabled = disabled;

                try
                {
                    AccessControlApplier.ApplyAccessControlOnPage(typeof(EmploymentHistory), EditEHForm, employeeCalenderGrid, btnAdd, SaveEHButton);
                }
                catch (AccessDeniedException exp)
                {
                    X.MessageBox.ButtonText.Ok = Resources.Common.Ok;
                    X.Msg.Alert(Resources.Common.Error, Resources.Common.ErrorAccessDenied).Show();
                    //    employeeCalendarGrid.Hidden = true;
                }
                dayIdDtCO.Format = ecDate.Format = _systemService.SessionHelper.GetDateformat();
                FillCalendars();
                FillSchedules();
                ecDate.ReadOnly   = false;
                ADDNewRecord.Text = "0";
            }
        }
コード例 #10
0
ファイル: Notes.aspx.cs プロジェクト: EliasTous/ERP
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!X.IsAjaxRequest && !IsPostBack)
            {
                SetExtLanguage();
                HideShowButtons();
                HideShowColumns();
                X.Msg.Alert(GetGlobalResourceObject("Common", "SystemAlerts").ToString(), GetLocalResourceObject("FillNote")).Show();

                if (string.IsNullOrEmpty(Request.QueryString["employeeId"]))
                {
                    X.Msg.Alert(Resources.Common.Error, Resources.Common.ErrorOperation).Show();
                }
                CurrentEmployee.Text    = Request.QueryString["employeeId"];
                EmployeeTerminated.Text = Request.QueryString["terminated"];

                bool disabled = EmployeeTerminated.Text == "1";
                btnAdd.Disabled = disabled;
                if ((bool)_systemService.SessionHelper.Get("IsAdmin"))
                {
                    return;
                }
                try
                {
                    AccessControlApplier.ApplyAccessControlOnPage(typeof(EmployeeNote), null, employeementHistoryGrid, null, btnAdd);
                    ApplyAccessControlOnCaseComments();
                    //AccessControlApplier.ApplyAccessControlOnPage(typeof(CaseComment), null, caseCommentGrid, null, Button1);
                }
                catch (AccessDeniedException exp)
                {
                    X.MessageBox.ButtonText.Ok = Resources.Common.Ok;
                    X.Msg.Alert(Resources.Common.Error, Resources.Common.ErrorAccessDenied).Show();
                    Viewport11.Hidden = true;
                    return;
                }
            }
        }
コード例 #11
0
ファイル: RT309.aspx.cs プロジェクト: EliasTous/ERP
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!X.IsAjaxRequest && !IsPostBack)
            {
                SetExtLanguage();
                HideShowButtons();
                HideShowColumns();

                try
                {
                    try
                    {
                        AccessControlApplier.ApplyAccessControlOnPage(typeof(Model.Reports.RT309), null, null, null, null);
                    }
                    catch (AccessDeniedException exp)
                    {
                        X.MessageBox.ButtonText.Ok = Resources.Common.Ok;
                        X.Msg.Alert(Resources.Common.Error, Resources.Common.ErrorAccessDenied).Show();
                        Viewport1.Hidden = true;
                        return;
                    }

                    format.Text = _systemService.SessionHelper.GetDateformat().ToUpper();
                    ASPxWebDocumentViewer1.RightToLeft = _systemService.SessionHelper.CheckIfArabicSession() ? DevExpress.Utils.DefaultBoolean.True : DevExpress.Utils.DefaultBoolean.False;


                    if (Request.QueryString["_fromUP"] == "true" && !string.IsNullOrEmpty(Request.QueryString["_employeeId"]))
                    {
                        reportToolbar.Hidden = true;


                        Dictionary <string, string> parameters = new Dictionary <string, string>();
                        if (!string.IsNullOrEmpty(Request.QueryString["_startDate"]))
                        {
                            parameters.Add("1", Request.QueryString["_startDate"]);
                        }
                        if (!string.IsNullOrEmpty(Request.QueryString["_endDate"]))
                        {
                            parameters.Add("2", Request.QueryString["_endDate"]);
                        }
                        if (!string.IsNullOrEmpty(Request.QueryString["_branchId"]))
                        {
                            parameters.Add("4", Request.QueryString["_branchId"]);
                        }
                        parameters.Add("3", Request.QueryString["_employeeId"]);

                        string rep_params = "";
                        foreach (KeyValuePair <string, string> entry in parameters)
                        {
                            rep_params += entry.Key.ToString() + "|" + entry.Value + "^";
                        }
                        if (rep_params.Length > 0)
                        {
                            if (rep_params[rep_params.Length - 1] == '^')
                            {
                                rep_params = rep_params.Remove(rep_params.Length - 1);
                            }
                        }

                        vals.Text = rep_params;


                        X.Call("reportCallBack");


                        // FillReport(true);
                    }
                    else
                    {
                        reportToolbar.Hidden = false;
                        vals.Text            = string.Empty;
                    }
                }
                catch { }
            }
        }
コード例 #12
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!X.IsAjaxRequest && !IsPostBack)
            {
                try
                {
                    SetExtLanguage();
                    HideShowButtons();
                    holidayCount.Text = "0";
                    if (string.IsNullOrEmpty(Request.QueryString["employeeId"]))
                    {
                        X.Msg.Alert(Resources.Common.Error, Resources.Common.ErrorOperation).Show();
                    }
                    CurrentEmployee.Text = Request.QueryString["employeeId"];
                    FillNoticePeriod();
                    FillBranchField();
                    FillSponseCombo();
                    FillPrevRecordIdField();
                    FillBenefitSchedules();


                    HireInfoRecordRequest req = new HireInfoRecordRequest();
                    req.EmployeeId = Request.QueryString["employeeId"];
                    RecordResponse <HireInfo> resp = _employeeService.ChildGetRecord <HireInfo>(req);
                    if (!resp.Success)
                    {
                        Common.errorMessage(resp);
                        return;
                    }



                    employeeCaId.Text = resp.result.caId.ToString();

                    probationPeriod.SuspendEvent("Change");

                    if (resp.result.probationEndDate != null)
                    {
                        hireInfoForm.SetValues(resp.result);
                        npId.Select(resp.result.npId.ToString());
                        recBranchId.Select(resp.result.recBranchId.ToString());
                        sponsorId.Select(resp.result.sponsorId.ToString());
                        prevRecordId.Select(resp.result.prevRecordId.ToString());


                        pyActiveDate.Value    = resp.result.pyActiveDate;
                        probationPeriod.Value = resp.result.probationPeriod;
                        //if(resp.result.probationEndDate!=null)
                        //    probationEndDateHidden.Value = resp.result.probationEndDate;
                        //else
                        //    probationEndDateHidden.Value = resp.result.hireDate;
                        hireDate.Text            = resp.result.hireDate.Value.ToShortDateString();
                        probationEndDate.MinDate = Convert.ToDateTime(resp.result.hireDate);
                        bsId.Select(resp.result.bsId.ToString());
                        //  employeeCaId.Text = resp.result.caId.ToString();
                    }
                    else
                    {
                        RecordRequest r = new RecordRequest();
                        r.RecordID = Request.QueryString["employeeId"];
                        RecordResponse <Employee> response = _employeeService.Get <Employee>(r);

                        // probationEndDateHidden.Value = response.result.hireDate;
                        hireDate.Text = response.result.hireDate.Value.ToShortDateString();
                        //  probationEndDate.Value = response.result.hireDate;
                        probationEndDate.SelectedDate = (DateTime)response.result.hireDate;
                        oldProbEnd.SelectedDate       = (DateTime)response.result.hireDate;
                        probationEndDate.MinDate      = Convert.ToDateTime(response.result.hireDate);
                        pyActiveDate.Value            = response.result.hireDate;
                        probationPeriod.Value         = 0;
                    }

                    probationEndDate.Format = nextReviewDate.Format = termEndDate.Format = pyActiveDate.Format = _systemService.SessionHelper.GetDateformat();

                    EmployeeTerminated.Text = Request.QueryString["terminated"];

                    bool disabled = EmployeeTerminated.Text == "1";

                    saveButton.Disabled = disabled;
                    //probationPeriod.Value = 0;

                    probationPeriod.ResumeEvent("Change");



                    try
                    {
                        AccessControlApplier.ApplyAccessControlOnPage(typeof(HireInfo), left, null, null, saveButton);
                    }
                    catch (AccessDeniedException exp)
                    {
                        X.MessageBox.ButtonText.Ok = Resources.Common.Ok;
                        X.Msg.Alert(Resources.Common.Error, Resources.Common.ErrorAccessDenied).Show();
                        Viewport11.Hidden = true;
                        return;
                    }
                    try
                    {
                        AccessControlApplier.ApplyAccessControlOnPage(typeof(HireInfo), rightPanel, null, null, saveButton);
                    }
                    catch (AccessDeniedException exp)
                    {
                        X.MessageBox.ButtonText.Ok = Resources.Common.Ok;
                        X.Msg.Alert(Resources.Common.Error, Resources.Common.ErrorAccessDenied).Show();
                        Viewport11.Hidden = true;
                        return;
                    }
                    if (recruitmentInfo.InputType == InputType.Password)
                    {
                        recruitmentInfo.Visible = false;
                        infoField.Visible       = true;
                    }
                }
                catch (Exception exp)
                {
                    X.MessageBox.ButtonText.Ok = Resources.Common.Ok;
                    X.Msg.Alert(Resources.Common.Error, exp.Message).Show();
                }
            }
        }
コード例 #13
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!X.IsAjaxRequest && !IsPostBack)
            {
                SetExtLanguage();
                HideShowButtons();
                HideShowColumns();
                if (string.IsNullOrEmpty(Request.QueryString["employeeId"]))
                {
                    X.Msg.Alert(Resources.Common.Error, Resources.Common.ErrorOperation).Show();
                }
                CurrentEmployee.Text = Request.QueryString["employeeId"];

                rwIssueDate.Format      = rwExpiryDate.Format = DateColumn1.Format = DateColumn2.Format = _systemService.SessionHelper.GetDateformat();
                EmployeeTerminated.Text = Request.QueryString["terminated"];

                bool disabled = EmployeeTerminated.Text == "1";
                btnAdd.Disabled = Button1.Disabled = SaveBCButton.Disabled = SaveRWButton.Disabled = disabled;
                try
                {
                    AccessControlApplier.ApplyAccessControlOnPage(typeof(EmployeeRightToWork), EditRWForm, rightToWorkGrid, btnAdd, SaveRWButton);
                }
                catch (AccessDeniedException exp)
                {
                    X.MessageBox.ButtonText.Ok = Resources.Common.Ok;
                    X.Msg.Alert(Resources.Common.Error, Resources.Common.ErrorAccessDenied).Show();
                    rightToWorkGrid.Hidden = true;
                }
                try
                {
                    AccessControlApplier.ApplyAccessControlOnPage(typeof(EmployeeBackgroundCheck), EditBCTab, BackgroundCheckGrid, Button1, SaveBCButton);
                }
                catch (AccessDeniedException exp)
                {
                    X.MessageBox.ButtonText.Ok = Resources.Common.Ok;
                    X.Msg.Alert(Resources.Common.Error, Resources.Common.ErrorAccessDenied).Show();
                    BackgroundCheckGrid.Hidden = true;
                }

                rwIssueDateMulti.InputType = rwIssueDate.InputType;
                rwIssueDateMulti.Disabled  = rwIssueDate.Disabled;
                rwIssueDateMulti.ReadOnly  = rwIssueDate.ReadOnly;
                issueDateDisabled.Text     = rwIssueDate.ReadOnly.ToString();

                rwExpiryDateMulti.InputType = rwExpiryDate.InputType;
                rwExpiryDateMulti.Disabled  = rwExpiryDate.Disabled;
                rwExpiryDateMulti.ReadOnly  = rwExpiryDate.ReadOnly;
                expiryDateDisabled.Text     = rwExpiryDate.ReadOnly.ToString();

                hijriCal.LazyItems.ForEach(x => (x as Field).ReadOnly = rwIssueDate.ReadOnly || rwExpiryDate.ReadOnly);

                if (rwFile.InputType == InputType.Password)
                {
                    var s = rightToWorkGrid.ColumnModel.Columns[rightToWorkGrid.ColumnModel.Columns.Count - 1];
                    s.Renderer.Handler = s.Renderer.Handler.Replace("attachRender()", " ' '");
                }
                if (bcFile.InputType == InputType.Password)
                {
                    var s = BackgroundCheckGrid.ColumnModel.Columns[BackgroundCheckGrid.ColumnModel.Columns.Count - 1];
                    s.Renderer.Handler = s.Renderer.Handler.Replace("attachRender()", " ' '");
                }

                if (remarks.InputType == InputType.Password)
                {
                    remarks.Visible      = false;
                    remarksField.Visible = true;
                }
                if (bcRemarks.InputType == InputType.Password)
                {
                    bcRemarks.Visible      = false;
                    bcRemarksField.Visible = true;
                }
                if (_systemService.SessionHelper.GetHijriSupport())
                {
                    hijriCal.Hidden = false;
                }
                else
                {
                    hijriCal.Hidden = true;
                }
                SetHijriInputState(false);
            }
        }