protected void BtnClear_Click(object sender, EventArgs e)
    {
        try
        {
            this.ClearControl();
            this.ShowHideValidationMessage(false);
            GridEntity.DataSource = null;
            GridEntity.DataBind();
            GridResetView.DataSource = null;
            GridResetView.DataBind();
            this.divEmptyRow.InnerHtml = Searchcriteria;
            this.HideIntialView(true);
            lblAlertMsg.Visible = false;


            List <LblLanguage> lblLanguagelst = null;

            ILblLanguage mLanguageService = null;
            lblLanguagelst              = new List <LblLanguage>();
            mLanguageService            = AppService.Create <ILblLanguage>();
            mLanguageService.AppManager = ((IAppManager)Session["APP_MANAGER"]);
            // retrieve
            lblLanguagelst = mLanguageService.RetrieveLabel(((IAppManager)Session["APP_MANAGER"]).LoginUser.Id, "ACTIVITY");

            Utility _objUtil = new Utility();
            _objUtil.LoadGridLabels(lblLanguagelst, GridResetView);
            divGridHeader.Visible = false;

            this.hdrGridHeader.InnerText = string.Empty;
        }
        catch { throw; }
    }
    private void DisplaySearchResult(IList result)
    {
        try
        {
            // Set grid title.
            if (result == null)
            {
                this.hdrGridHeader.InnerText = string.Format(mSelectedGridTitle + cntlist + " ({0} " + cntFound + ")", 0);
            }
            else
            {
                // set visibility
                this.hdrGridHeader.Visible   = true;
                this.hdrGridHeader.InnerText = string.Format(mSelectedGridTitle + cntlist + " ({0} " + cntFound + ")", result.Count);
            }

            // Bind with grid.
            this.gvwEntityList.DataSource = result;
            this.gvwEntityList.DataBind();

            List <LblLanguage> lblLanguagelst = null;

            ILblLanguage mLanguageService = null;
            lblLanguagelst              = new List <LblLanguage>();
            mLanguageService            = AppService.Create <ILblLanguage>();
            mLanguageService.AppManager = ((IAppManager)Session["APP_MANAGER"]);
            // retrieve
            lblLanguagelst = mLanguageService.RetrieveLabel(((IAppManager)Session["APP_MANAGER"]).LoginUser.Id, "WORKTYPE");

            Utility _objUtil = new Utility();
            _objUtil.LoadGridLabels(lblLanguagelst, gvwEntityList);
            dvinitalvalue.Visible = false;
        }
        catch { throw; }
    }
    public void LoadLabels()
    {
        List <LblLanguage> lblLanguagelst = null;

        ILblLanguage mLanguageService = null;

        lblLanguagelst              = new List <LblLanguage>();
        mLanguageService            = AppService.Create <ILblLanguage>();
        mLanguageService.AppManager = this.mappmanager;
        // retrieve
        lblLanguagelst = mLanguageService.RetrieveLabel(((IAppManager)Session["APP_MANAGER"]).LoginUser.Id, "USERSPROFILE");

        Utility _objUtil = new Utility();

        _objUtil.LoadLabels(lblLanguagelst);

        if (lblLanguagelst != null)
        {
            var GRID_TITLE = lblLanguagelst.Where(c => c.LabelId.ToUpper().Equals("MSG_IN_GRID")).FirstOrDefault();
            if (GRID_TITLE != null)
            {
                this.spnMessage.InnerHtml = Convert.ToString(GRID_TITLE.DisplayText);
                NODATAFOUND = Convert.ToString(GRID_TITLE.SupportingText1);
            }

            var NoofRecordFound = lblLanguagelst.Where(c => c.LabelId.Equals("lblNoofRecordFound")).FirstOrDefault();
            if (NoofRecordFound != null)
            {
                cntlist  = NoofRecordFound.DisplayText;
                cntFound = NoofRecordFound.SupportingText1;
            }
        }
    }
Пример #4
0
    public void LoadLabels()
    {
        List <LblLanguage> lblLanguagelst = null;

        ILblLanguage mLanguageService = null;

        lblLanguagelst              = new List <LblLanguage>();
        mLanguageService            = AppService.Create <ILblLanguage>();
        mLanguageService.AppManager = ((IAppManager)Session["APP_MANAGER"]);
        // retrieve
        lblLanguagelst = mLanguageService.RetrieveLabel(((IAppManager)Session["APP_MANAGER"]).LoginUser.Id, "USERHIERARCHIE");

        Utility _objUtil = new Utility();

        _objUtil.LoadLabels(lblLanguagelst);

        var GRID_TITLE = lblLanguagelst.Where(c => c.LabelId.ToUpper().Equals("MSG_IN_GRID")).FirstOrDefault();

        if (GRID_TITLE != null)
        {
            //this.divEmptyRow.InnerHtml = Convert.ToString(GRID_TITLE.DisplayText);
        }

        var ADDUPDATE_MSG = lblLanguagelst.Where(c => c.LabelId.ToUpper().Equals("ADDUPDATEMSG")).FirstOrDefault();

        if (ADDUPDATE_MSG != null)
        {
            SELECTUSER = Convert.ToString(ADDUPDATE_MSG.DisplayText);
            DETETCHMSG = Convert.ToString(ADDUPDATE_MSG.SupportingText1);
        }
    }
Пример #5
0
    public void LoadLabels()
    {
        List <LblLanguage> lblLanguagelst = null;

        ILblLanguage mLanguageService = null;

        lblLanguagelst              = new List <LblLanguage>();
        mLanguageService            = AppService.Create <ILblLanguage>();
        mLanguageService.AppManager = ((IAppManager)Session["APP_MANAGER"]);
        // retrieve
        lblLanguagelst = mLanguageService.RetrieveLabel(((IAppManager)Session["APP_MANAGER"]).LoginUser.Id, "TIMESHEET");

        Utility _objUtil = new Utility();

        _objUtil.LoadLabels(lblLanguagelst);

        var GRID_TITLE = lblLanguagelst.Where(c => c.LabelId.Equals("lblCheckout")).FirstOrDefault();

        if (GRID_TITLE != null)
        {
            lblCheckOut = Convert.ToString(GRID_TITLE.DisplayText);
            lblCheckIn  = Convert.ToString(GRID_TITLE.SupportingText1);
        }

        var CHECKINOUTALERT = lblLanguagelst.Where(c => c.LabelId.ToUpper().Equals("LBLLISTRESETACT")).FirstOrDefault();

        if (CHECKINOUTALERT != null)
        {
            lblWarning = Convert.ToString(CHECKINOUTALERT.DisplayText);
            //lblCheckinFirst = Convert.ToString(CHECKINOUTALERT.SupportingText1);
        }
    }
Пример #6
0
    public void LoadLabels()
    {
        List <LblLanguage> lblLanguagelst = null;

        ILblLanguage mLanguageService = null;

        lblLanguagelst              = new List <LblLanguage>();
        mLanguageService            = AppService.Create <ILblLanguage>();
        mLanguageService.AppManager = ((IAppManager)Session["APP_MANAGER"]);
        // retrieve
        lblLanguagelst = mLanguageService.RetrieveLabel(((IAppManager)Session["APP_MANAGER"]).LoginUser.Id, "DASHBOARDREPORT");

        Utility _objUtil = new Utility();

        _objUtil.LoadLabels(lblLanguagelst);

        var GRID_TITLE = lblLanguagelst.Where(c => c.LabelId.ToUpper().Equals("MSG_IN_GRID")).FirstOrDefault();

        if (GRID_TITLE != null)
        {
            //  this.InitalspnMessage.InnerHtml = Convert.ToString(GRID_TITLE.DisplayText);
        }

        var lblActivityStatus_text = lblLanguagelst.Where(c => c.LabelId.Equals("lblActivityStatus")).FirstOrDefault();

        if (lblActivityStatus_text != null)
        {
            ActivityStatus = Convert.ToString(lblActivityStatus_text.DisplayText);
            WorkDuration   = Convert.ToString(lblActivityStatus_text.SupportingText1);
        }
    }
    public void LoadLabels()
    {
        List <LblLanguage> lblLanguagelst = null;

        ILblLanguage mLanguageService = null;

        lblLanguagelst              = new List <LblLanguage>();
        mLanguageService            = AppService.Create <ILblLanguage>();
        mLanguageService.AppManager = ((IAppManager)Session["APP_MANAGER"]);
        // retrieve
        lblLanguagelst = mLanguageService.RetrieveLabel(((IAppManager)Session["APP_MANAGER"]).LoginUser.Id, "USERSACCESSLEVEL");

        if (lblLanguagelst != null)
        {
            Utility _objUtil = new Utility();
            _objUtil.LoadLabels(lblLanguagelst);

            var ALERT_MSG = lblLanguagelst.Where(c => c.LabelId.ToUpper().Equals("ALERTMSG")).FirstOrDefault();
            if (ALERT_MSG != null)
            {
                ALERTMSG = Convert.ToString(ALERT_MSG.DisplayText);
            }

            var ALERT_MSGFIELD = lblLanguagelst.Where(c => c.LabelId.ToUpper().Equals("ALERTMSGFIELD")).FirstOrDefault();
            if (ALERT_MSGFIELD != null)
            {
                ALERTMSGFIELD = Convert.ToString(ALERT_MSGFIELD.DisplayText);
            }

            var ALERT_INFO = lblLanguagelst.Where(c => c.LabelId.ToUpper().Equals("ALERTINFO")).FirstOrDefault();
            if (ALERT_INFO != null)
            {
                ALERTINFO = Convert.ToString(ALERT_INFO.DisplayText);

                if (AccessLevelId != 0)
                {
                    ALERTINFO = Convert.ToString(ALERT_INFO.SupportingText1);
                }
            }


            var PAGEHEADING_ADD = lblLanguagelst.Where(c => c.LabelId.ToUpper().Equals("LBLHEADERADDEDIT")).FirstOrDefault();
            if (PAGEHEADING_ADD != null)
            {
                PAGEHEADINGADD = Convert.ToString(PAGEHEADING_ADD.DisplayText);

                if (AccessLevelId != 0)
                {
                    PAGEHEADINGADD = Convert.ToString(PAGEHEADING_ADD.SupportingText1);
                }
            }

            var VALIDATIONS = lblLanguagelst.Where(c => c.LabelId.ToUpper().Equals("VALIDATION")).FirstOrDefault();
            if (VALIDATIONS != null)
            {
                VALIDATIONERROR = Convert.ToString(VALIDATIONS.DisplayText);
            }
        }
    }
    public void  RetrieveUnAttachedUsers()
    {
        try{
            this.alertError.Style["display"] = "none";
            this.alertError.InnerHtml        = "";
            muserauthentication     = new UserAuthentication();
            this.mAppManager        = muserauthentication.AppManager;
            mUserService            = AppService.Create <IUserService>();
            mUserService.AppManager = mAppManager;

            LstUser = mUserService.RetrieveUnAttachedUsers(new UserSearchCriteria {
                Name = txtUserName.Text.Trim(), RoleName = txtRole.Text.Trim()
            });
            //LstUser = this.RetrieveUnAttachedUsers(txtUserName.Text, txtRole.Text);
            this.mUserService.Dispose();
            if (LstUser != null)
            {
                gvwunattachedUser.DataSource = LstUser;
                gvwunattachedUser.DataBind();
                divmatchedusers.InnerText = "Matched user " + gvwunattachedUser.Rows.Count.ToString() + " Found";

                List <LblLanguage> lblLanguagelst   = null;
                ILblLanguage       mLanguageService = null;
                lblLanguagelst              = new List <LblLanguage>();
                mLanguageService            = AppService.Create <ILblLanguage>();
                mLanguageService.AppManager = ((IAppManager)Session["APP_MANAGER"]);
                // retrieve
                lblLanguagelst = mLanguageService.RetrieveLabel(((IAppManager)Session["APP_MANAGER"]).LoginUser.Id, "USERHIERARCHIEPAGE");

                Utility _objUtil = new Utility();
                _objUtil.LoadGridLabels(lblLanguagelst, gvwunattachedUser);
                divGridHeader.Visible = false;

                //Intialize the View
                this.divGridHeader.Visible = false;
                this.spnMessage.InnerHtml  = SEARCHCRITERIA;
                divGridview.Visible        = true;
                divmatchedusers.Visible    = true;
            }
            else
            {
                gvwunattachedUser.DataSource = null;
                gvwunattachedUser.DataBind();
                this.divGridHeader.Visible       = true;
                this.spnMessage.InnerHtml        = SEARCHCRITERIA;
                this.alertError.Style["display"] = "Block";
                this.alertError.InnerHtml        = "User not found";
                divGridview.Visible       = false;
                divmatchedusers.InnerText = "";
            }
        }
        catch { throw; }
        finally
        {
        }
    }
    public void LoadLabels()
    {
        List <LblLanguage> lblLanguagelst = null;

        ILblLanguage mLanguageService = null;

        lblLanguagelst              = new List <LblLanguage>();
        mLanguageService            = AppService.Create <ILblLanguage>();
        mLanguageService.AppManager = ((IAppManager)Session["APP_MANAGER"]);
        // retrieve
        lblLanguagelst = mLanguageService.RetrieveLabel(((IAppManager)Session["APP_MANAGER"]).LoginUser.Id, "WORKTYPE");

        Utility _objUtil = new Utility();

        _objUtil.LoadLabels(lblLanguagelst);

        var GRID_TITLE = lblLanguagelst.Where(c => c.LabelId.ToUpper().Equals("MSG_IN_GRID")).FirstOrDefault();

        if (GRID_TITLE != null)
        {
            this.hideSpan.InnerHtml         = Convert.ToString(GRID_TITLE.DisplayText);
            this.InitalspnMessage.InnerHtml = Convert.ToString(GRID_TITLE.SupportingText1);
        }

        var ADDUPDATE_MSG = lblLanguagelst.Where(c => c.LabelId.ToUpper().Equals("ADDUPDATEMSG")).FirstOrDefault();

        if (ADDUPDATE_MSG != null)
        {
            ADDEDMSG  = Convert.ToString(ADDUPDATE_MSG.DisplayText);
            UPDATEMSG = Convert.ToString(ADDUPDATE_MSG.SupportingText1);
        }

        var NoofRecordFound = lblLanguagelst.Where(c => c.LabelId.Equals("lblNoofRecordFound")).FirstOrDefault();

        if (NoofRecordFound != null)
        {
            cntlist  = NoofRecordFound.DisplayText;
            cntFound = NoofRecordFound.SupportingText1;
        }

        var TXTALERT = lblLanguagelst.Where(c => c.LabelId.ToUpper().Equals("TXTALERTMSG")).FirstOrDefault();

        if (TXTALERT != null)
        {
            NameAlert     = Convert.ToString(TXTALERT.DisplayText);
            CommentsAlert = Convert.ToString(TXTALERT.SupportingText1);
        }

        var TXTACTALERT = lblLanguagelst.Where(c => c.LabelId.ToUpper().Equals("TXTACTALERTMSG")).FirstOrDefault();

        if (TXTACTALERT != null)
        {
            ActivityTypeAlert = Convert.ToString(TXTACTALERT.DisplayText);
        }
    }
Пример #10
0
    public void LoadLabels()
    {
        List <LblLanguage> lblLanguagelst = null;

        ILblLanguage mLanguageService = null;

        lblLanguagelst              = new List <LblLanguage>();
        mLanguageService            = AppService.Create <ILblLanguage>();
        mLanguageService.AppManager = ((IAppManager)Session["APP_MANAGER"]);
        // retrieve
        lblLanguagelst = mLanguageService.RetrieveLabel(((IAppManager)Session["APP_MANAGER"]).LoginUser.Id, "ACTIVITY");

        Utility _objUtil = new Utility();

        _objUtil.LoadLabels(lblLanguagelst);

        var ADDEDITBTN = lblLanguagelst.Where(c => c.LabelId.ToUpper().Equals("BTNUPDATE")).FirstOrDefault();

        if (ADDEDITBTN != null)
        {
            ADDBTN  = ADDEDITBTN.DisplayText;
            EDITBTN = ADDEDITBTN.SupportingText1;
        }

        var ACTIVITYAPPROVE = lblLanguagelst.Where(c => c.LabelId.ToUpper().Equals("ACTIVITYAPPROVE")).FirstOrDefault();

        if (ACTIVITYAPPROVE != null)
        {
            ACTCANNOTEDIT = ACTIVITYAPPROVE.DisplayText;
        }
        var ACTSELECTUSER = lblLanguagelst.Where(c => c.LabelId.ToUpper().Equals("ALERTMSGSELUSER")).FirstOrDefault();

        if (ACTSELECTUSER != null)
        {
            SELECTUSER = ACTSELECTUSER.DisplayText;
        }

        var LBLMANAGERSUPERVISOR = lblLanguagelst.Where(c => c.LabelId.ToUpper().Equals("ALERTLBLMANAGER")).FirstOrDefault();

        if (LBLMANAGERSUPERVISOR != null)
        {
            NOMANAGER    = LBLMANAGERSUPERVISOR.DisplayText;
            NOSUPERVISOR = LBLMANAGERSUPERVISOR.SupportingText1;
        }

        var LBLACTADDUPD = lblLanguagelst.Where(c => c.LabelId.ToUpper().Equals("ACTADDUPD")).FirstOrDefault();

        if (LBLACTADDUPD != null)
        {
            ACTADDED   = LBLACTADDUPD.DisplayText;
            ACTUPDATED = LBLACTADDUPD.SupportingText1;
        }
    }
    public void LoadLabels()
    {
        List <LblLanguage> lblLanguagelst = null;

        ILblLanguage mLanguageService = null;

        lblLanguagelst              = new List <LblLanguage>();
        mLanguageService            = AppService.Create <ILblLanguage>();
        mLanguageService.AppManager = ((IAppManager)Session["APP_MANAGER"]);
        // retrieve
        lblLanguagelst = mLanguageService.RetrieveLabel(((IAppManager)Session["APP_MANAGER"]).LoginUser.Id, "ACTIVITY");

        Utility _objUtil = new Utility();

        _objUtil.LoadLabels(lblLanguagelst);

        var GRID_TITLE = lblLanguagelst.Where(c => c.LabelId.ToUpper().Equals("MSG_IN_GRID")).FirstOrDefault();

        if (GRID_TITLE != null)
        {
            Searchcriteria        = Convert.ToString(GRID_TITLE.DisplayText);
            divEmptyRow.InnerHtml = Convert.ToString(GRID_TITLE.DisplayText);
            NoRecfound            = Convert.ToString(GRID_TITLE.SupportingText1);
        }

        var ALERTDT = lblLanguagelst.Where(c => c.LabelId.ToUpper().Equals("LBLACTIVITYFRDT")).FirstOrDefault();

        if (ALERTDT != null)
        {
            LBLACTIVITYFRDT = Convert.ToString(ALERTDT.DisplayText);
            LBLACTIVITYTODT = Convert.ToString(ALERTDT.SupportingText1);
        }

        var ALERTDT1 = lblLanguagelst.Where(c => c.LabelId.ToUpper().Equals("LBLACTIVITYFRDT")).FirstOrDefault();

        if (ALERTDT1 != null)
        {
            LBLACTIVITYENTEREDUSR = Convert.ToString(ALERTDT1.DisplayText);
        }

        var ACTTORESETTXT = lblLanguagelst.Where(c => c.LabelId.ToUpper().Equals("ACTTORESET")).FirstOrDefault();

        if (ACTTORESETTXT != null)
        {
            LBLACTTORESET = Convert.ToString(ACTTORESETTXT.DisplayText);
            LBLCMTEMTY    = Convert.ToString(ACTTORESETTXT.SupportingText1);
        }
    }
Пример #12
0
    public void LoadLabels()
    {
        List <LblLanguage> lblLanguagelst = null;

        ILblLanguage mLanguageService = null;

        lblLanguagelst = new List <LblLanguage>();
        //this.mAppManager = this.mAppManager;
        mLanguageService            = AppService.Create <ILblLanguage>();
        mLanguageService.AppManager = mAppManager;
        // retrieve
        lblLanguagelst = mLanguageService.RetrieveLabel(this.mAppManager.LoginUser.Id, "REPORTS");

        Utility _objUtil = new Utility();

        _objUtil.LoadLabels(lblLanguagelst);
    }
    private void SearchEntity(string city, string country, string state, string status)
    {
        try
        {
            // Validate search criteria.

            if (!this.ValidateSearchCriteria())
            {
                hideSpan.Visible = false;
                return;
            }

            this.mSearchResult = this.SearchLocation(city, country, state, status);

            // Display search result.
            this.DisplaySearchResult(this.mSearchResult);

            // edit panel
            this.PanelEditEntityEnable(false);

            this.divSuccessMessage.InnerHtml = string.Empty;

            if (gvwLocationList.Rows.Count > 0)
            {
                this.hdrGridHeader.Visible = true;

                List <LblLanguage> lblLanguagelst   = null;
                ILblLanguage       mLanguageService = null;
                lblLanguagelst              = new List <LblLanguage>();
                mLanguageService            = AppService.Create <ILblLanguage>();
                mLanguageService.AppManager = ((IAppManager)Session["APP_MANAGER"]);
                // retrieve
                lblLanguagelst = mLanguageService.RetrieveLabel(((IAppManager)Session["APP_MANAGER"]).LoginUser.Id, "LOCATION");

                Utility _objUtil = new Utility();
                _objUtil.LoadGridLabels(lblLanguagelst, gvwLocationList);
                dvinitalvalue.Visible = false;
            }
            else
            {
                //                this.hdrGridHeader.InnerHtml = NORECFOUND;
                this.hdrGridHeader.Visible = true;
            }
        }
        catch { throw; }
    }
    public void LoadLabels()
    {
        List <LblLanguage> lblLanguagelst = null;

        ILblLanguage mLanguageService = null;

        lblLanguagelst = new List <LblLanguage>();
        //this.mAppManager = this.mAppManager;
        mLanguageService            = AppService.Create <ILblLanguage>();
        mLanguageService.AppManager = mAppManager;
        // retrieve
        lblLanguagelst = mLanguageService.RetrieveLabel(this.mAppManager.LoginUser.Id, "REPORTS");

        Utility _objUtil = new Utility();

        _objUtil.LoadLabels(lblLanguagelst);


        var DATE_VALUE = lblLanguagelst.Where(c => c.LabelId.ToUpper().Equals("FROMTODATE")).FirstOrDefault();

        if (DATE_VALUE != null)
        {
            FROMDATE = Convert.ToString(DATE_VALUE.DisplayText);
            TODATE   = Convert.ToString(DATE_VALUE.SupportingText1);
        }

        var DATE_RANGE_GD = lblLanguagelst.Where(c => c.LabelId.ToUpper().Equals("DATERANGE")).FirstOrDefault();

        if (DATE_RANGE_GD != null)
        {
            DATE_RANGE    = Convert.ToString(DATE_RANGE_GD.DisplayText);
            INVALIDE_DATE = Convert.ToString(DATE_RANGE_GD.SupportingText1);
        }

        var DATE_VALIDATION = lblLanguagelst.Where(c => c.LabelId.ToUpper().Equals("VALIDATION")).FirstOrDefault();

        if (DATE_VALIDATION != null)
        {
            VALIDATIONERROR = Convert.ToString(DATE_VALIDATION.DisplayText);
            //INVALIDE_DATE = Convert.ToString(DATE_VALIDATION.SupportingText1);
        }
    }
Пример #15
0
    protected void checkselectall_Click(object sender, EventArgs e)
    {
        CheckBox chkSelect = (CheckBox)sender;

        if (gvwattachedUser.Rows.Count > 0)
        {
            List <LblLanguage> lblLanguagelst   = null;
            ILblLanguage       mLanguageService = null;
            lblLanguagelst              = new List <LblLanguage>();
            mLanguageService            = AppService.Create <ILblLanguage>();
            mLanguageService.AppManager = ((IAppManager)Session["APP_MANAGER"]);
            // retrieve
            lblLanguagelst = mLanguageService.RetrieveLabel(((IAppManager)Session["APP_MANAGER"]).LoginUser.Id, "USERHIERARCHIE");

            Utility _objUtil = new Utility();
            _objUtil.LoadGridLabels(lblLanguagelst, gvwattachedUser);
            divGridHeader.Visible = false;

            if (chkSelect.Checked == true)
            {
                for (int irow = 0; irow < gvwattachedUser.Rows.Count; irow++)
                {
                    CheckBox chk = (CheckBox)gvwattachedUser.Rows[irow].FindControl("Selecteduser");
                    chk.Checked = true;
                }
                return;
            }
            else
            {
                for (int irow = 0; irow < gvwattachedUser.Rows.Count; irow++)
                {
                    CheckBox chk = (CheckBox)gvwattachedUser.Rows[irow].FindControl("Selecteduser");
                    chk.Checked = false;
                }
            }
        }
        else
        {
            divGridHeader.Visible = true;
        }
    }
    public void LoadLabels()
    {
        DashboardProvider  provider       = null;
        List <LblLanguage> lblLanguagelst = null;

        ILblLanguage mLanguageService = null;

        lblLanguagelst = new List <LblLanguage>();

        provider            = new DashboardProvider();
        provider.AppManager = this.AppManager;

        mLanguageService            = AppService.Create <ILblLanguage>();
        mLanguageService.AppManager = AppManager;
        // retrieve
        lblLanguagelst = mLanguageService.RetrieveLabel(AppManager.LoginUser.Id, "USERDURATIONWIDGET");

        Utility _objUtil = new Utility();

        _objUtil.LoadLabels(lblLanguagelst);
    }
    private void DisplayList(IList <User> userLst)
    {
        try
        {
            //Bind the Grid

            GvwUserList.DataSource = userLst;
            GvwUserList.DataBind();
            if (GvwUserList.Rows.Count > 0)
            {
                this.DisplayMessage(string.Empty);
                spnMessage.InnerHtml = "";

                foreach (DataControlField column in GvwUserList.Columns)
                {
                    column.ItemStyle.Width = Unit.Pixel(100);
                }

                List <LblLanguage> lblLanguagelst = null;

                ILblLanguage mLanguageService = null;
                lblLanguagelst              = new List <LblLanguage>();
                mLanguageService            = AppService.Create <ILblLanguage>();
                mLanguageService.AppManager = ((IAppManager)Session["APP_MANAGER"]);
                // retrieve
                lblLanguagelst = mLanguageService.RetrieveLabel(((IAppManager)Session["APP_MANAGER"]).LoginUser.Id, "USERMODULE");

                Utility _objUtil = new Utility();
                _objUtil.LoadGridLabels(lblLanguagelst, GvwUserList);
                InitalBind.Visible = false;
            }
            else
            {
                //Show Message when data is Empty.
                InitalBind.Visible   = true;
                spnMessage.InnerHtml = AlertNorecord;
            }
        }
        catch { throw; }
    }
    public void LoadLabels()
    {
        List <LblLanguage> lblLanguagelst = null;

        ILblLanguage mLanguageService = null;

        lblLanguagelst              = new List <LblLanguage>();
        mLanguageService            = AppService.Create <ILblLanguage>();
        mLanguageService.AppManager = ((IAppManager)Session["APP_MANAGER"]);
        // retrieve
        lblLanguagelst = mLanguageService.RetrieveLabel(((IAppManager)Session["APP_MANAGER"]).LoginUser.Id, "CHANGEPASSWORD");

        Utility _objUtil = new Utility();

        _objUtil.LoadLabels(lblLanguagelst);


        var ALERT_MSG = lblLanguagelst.Where(c => c.LabelId.ToUpper().Equals("ALERTPASSWORDLEN")).FirstOrDefault();

        if (ALERT_MSG != null)
        {
            ALERTPASSWORDLEN_Text = Convert.ToString(ALERT_MSG.DisplayText);
        }

        var LBLpwdAlert = lblLanguagelst.Where(c => c.LabelId.ToUpper().Equals("OLDNEWPWDALERT")).FirstOrDefault();

        if (LBLpwdAlert != null)
        {
            OldpwdAlert = Convert.ToString(LBLpwdAlert.DisplayText);
            NewpwdAlert = Convert.ToString(LBLpwdAlert.SupportingText1);
        }

        var LBLConfirmpwd = lblLanguagelst.Where(c => c.LabelId.ToUpper().Equals("CONFIRMPWDALERT")).FirstOrDefault();

        if (LBLConfirmpwd != null)
        {
            ConfirmpwdAlert         = Convert.ToString(LBLConfirmpwd.DisplayText);
            ConfirmpwdAlertmismatch = Convert.ToString(LBLConfirmpwd.SupportingText1);
        }
    }
    private void DisplayList(IList <UsersPermission> UsersPermissionLst)
    {
        try
        {
            //Bind the Grid
            GvUserPermission.DataSource = UsersPermissionLst;
            GvUserPermission.DataBind();
            if (GvUserPermission.Rows.Count > 0)
            {
                this.spnMessage.Visible = false;
                this.DisplayMessage(string.Empty);

                if (GvUserPermission.HeaderRow != null)
                {
                    List <LblLanguage> lblLanguagelst = null;

                    ILblLanguage mLanguageService = null;
                    lblLanguagelst              = new List <LblLanguage>();
                    mLanguageService            = AppService.Create <ILblLanguage>();
                    mLanguageService.AppManager = ((IAppManager)Session["APP_MANAGER"]);
                    // retrieve
                    lblLanguagelst = mLanguageService.RetrieveLabel(((IAppManager)Session["APP_MANAGER"]).LoginUser.Id, "UsersPermission");

                    Utility _objUtil = new Utility();
                    _objUtil.LoadGridLabels(lblLanguagelst, GvUserPermission);
                    InitalBind.Visible = false;
                }
            }
            else
            {
                //Show No Result Found Message.
                InitalBind.Visible        = true;
                this.spnMessage.Visible   = true;
                this.spnMessage.InnerHtml = NODATAFOUND;
            }
        }

        catch { throw; }
    }
    public void LoadLabels()
    {
        List <LblLanguage> lblLanguagelst = null;

        ILblLanguage mLanguageService = null;

        lblLanguagelst              = new List <LblLanguage>();
        mLanguageService            = AppService.Create <ILblLanguage>();
        mLanguageService.AppManager = ((IAppManager)Session["APP_MANAGER"]);
        // retrieve
        lblLanguagelst = mLanguageService.RetrieveLabel(((IAppManager)Session["APP_MANAGER"]).LoginUser.Id, "USERHIERARCHIEPAGE");

        Utility _objUtil = new Utility();

        _objUtil.LoadLabels(lblLanguagelst);

        var SEARCHCRITERIATXT = lblLanguagelst.Where(c => c.LabelId.ToUpper().Equals("LBLSEARCHCRITERIA")).FirstOrDefault();

        if (SEARCHCRITERIATXT != null)
        {
            SEARCHCRITERIA = Convert.ToString(SEARCHCRITERIATXT.DisplayText);
        }
    }
    public void LoadLabels()
    {
        List <LblLanguage> lblLanguagelst = null;

        ILblLanguage mLanguageService = null;

        lblLanguagelst              = new List <LblLanguage>();
        mLanguageService            = AppService.Create <ILblLanguage>();
        mLanguageService.AppManager = ((IAppManager)Session["APP_MANAGER"]);
        // retrieve
        lblLanguagelst = mLanguageService.RetrieveLabel(((IAppManager)Session["APP_MANAGER"]).LoginUser.Id, "MASTERPAGE");

        Utility _objUtil = new Utility();

        _objUtil.LoadLabels(lblLanguagelst);

        //var GRID_TITLE = lblLanguagelst.Where(c => c.LabelId.ToUpper().Equals("MSG_IN_GRID")).FirstOrDefault();
        //if (GRID_TITLE != null)
        //{

        //    this.InitalspnMessage.InnerHtml = Convert.ToString(GRID_TITLE.DisplayText);
        //}
    }
    private void DisplayActivities(List <Activity> activities)
    {
        try
        {
            // Bind With Grid
            this.GridResetView.DataSource = activities;
            this.GridResetView.DataBind();

            List <LblLanguage> lblLanguagelst = null;

            ILblLanguage mLanguageService = null;
            lblLanguagelst              = new List <LblLanguage>();
            mLanguageService            = AppService.Create <ILblLanguage>();
            mLanguageService.AppManager = ((IAppManager)Session["APP_MANAGER"]);
            // retrieve
            lblLanguagelst = mLanguageService.RetrieveLabel(((IAppManager)Session["APP_MANAGER"]).LoginUser.Id, "ACTIVITY");

            Utility _objUtil = new Utility();
            _objUtil.LoadGridLabels(lblLanguagelst, GridResetView);
            divGridHeader.Visible = false;
        }
        catch { throw; }
    }
    public void LoadLabels()
    {
        List <LblLanguage> lblLanguagelst = null;

        ILblLanguage mLanguageService = null;

        lblLanguagelst              = new List <LblLanguage>();
        mLanguageService            = AppService.Create <ILblLanguage>();
        mLanguageService.AppManager = ((IAppManager)Session["APP_MANAGER"]);
        // retrieve
        lblLanguagelst = mLanguageService.RetrieveLabel(((IAppManager)Session["APP_MANAGER"]).LoginUser.Id, "USERHIERARCHIEPAGE");

        Utility _objUtil = new Utility();

        _objUtil.LoadLabels(lblLanguagelst);

        var ACTSELECTUSER = lblLanguagelst.Where(c => c.LabelId.ToUpper().Equals("ALERTMSGSELUSER")).FirstOrDefault();

        if (ACTSELECTUSER != null)
        {
            SELECTUSER = ACTSELECTUSER.DisplayText;
        }
    }
Пример #24
0
    public void LoadLabels()
    {
        List <LblLanguage> lblLanguagelst = null;

        ILblLanguage mLanguageService = null;

        lblLanguagelst              = new List <LblLanguage>();
        mLanguageService            = AppService.Create <ILblLanguage>();
        mLanguageService.AppManager = ((IAppManager)Session["APP_MANAGER"]);
        // retrieve
        lblLanguagelst = mLanguageService.RetrieveLabel(((IAppManager)Session["APP_MANAGER"]).LoginUser.Id, "SEARCHUSER");

        Utility _objUtil = new Utility();

        _objUtil.LoadLabels(lblLanguagelst);

        var GRID_TITLE = lblLanguagelst.Where(c => c.LabelId.ToUpper().Equals("MSG_IN_GRID")).FirstOrDefault();

        if (GRID_TITLE != null)
        {
            this.InitalspnMessage.InnerHtml = Convert.ToString(GRID_TITLE.DisplayText);
        }

        var ALERTNORECORDFOUND_text = lblLanguagelst.Where(c => c.LabelId.ToUpper().Equals("ALERTNORECORDFOUND")).FirstOrDefault();

        if (ALERTNORECORDFOUND_text != null)
        {
            ALERTNORECORDFOUND = Convert.ToString(ALERTNORECORDFOUND_text.DisplayText);
        }

        var LBLSEARCHANYONEFIELD_text = lblLanguagelst.Where(c => c.LabelId.ToUpper().Equals("LBLSEARCHANYONEFIELD")).FirstOrDefault();

        if (LBLSEARCHANYONEFIELD_text != null)
        {
            SEARCHANYONEFIELD = Convert.ToString(LBLSEARCHANYONEFIELD_text.DisplayText);
        }
    }
    public void LoadLabels()
    {
        List <LblLanguage> lblLanguagelst = null;

        ILblLanguage mLanguageService = null;

        lblLanguagelst              = new List <LblLanguage>();
        mLanguageService            = AppService.Create <ILblLanguage>();
        mLanguageService.AppManager = ((IAppManager)Session["APP_MANAGER"]);
        // retrieve
        lblLanguagelst = mLanguageService.RetrieveLabel(((IAppManager)Session["APP_MANAGER"]).LoginUser.Id, "REPORTHOME");

        Utility _objUtil = new Utility();

        _objUtil.LoadLabels(lblLanguagelst);

        //var GRID_TITLE = lblLanguagelst.Where(c => c.LabelId.Equals("lblCheckout")).FirstOrDefault();
        //if (GRID_TITLE != null)
        //{

        //    lblCheckOut = Convert.ToString(GRID_TITLE.DisplayText);
        //    lblCheckIn = Convert.ToString(GRID_TITLE.SupportingText1);
        //}
    }
Пример #26
0
    protected void btnSearch_Click(object sender, EventArgs e)
    {
        try
        {
            //validate.
            this.ValidateSearchEntity();

            string Name     = this.txtName.Value.Trim();
            string RoleName = this.txtRole.Value.Trim();
            string EmailID  = this.txtEmail.Value.Trim();
            string CityName = ddlLocation.SelectedIndex != 0?ddlLocation.SelectedItem.Text:string.Empty;

            //build the  search Entity.
            if (ViewName == "SearchManager")
            {
                this.UserSearchEntity(Name, RoleName, EmailID, CityName, Convert.ToInt32(Session["UsermanagerId"].ToString()));
            }
            else if (ViewName == "SearchManagerforhierarchy")
            {
                this.UserSearchEntity(Name, RoleName, EmailID, CityName, Convert.ToInt32(Session["UsermanagerId"].ToString()));
            }
            else if (ViewName == "SearchUsersforuserSetting")
            {
                this.UserSearchEntity(Name, RoleName, EmailID, CityName);
            }
            else
            {
                this.UserSearchEntity(Name, RoleName, EmailID, CityName);
            }


            this.DisableRefershControl();

            if (GvwUserList.Rows.Count == 0)
            {
                this.HideContainerControl(dvinitalvalue, true);
                this.InitalspnMessage.InnerHtml = ALERTNORECORDFOUND;
            }
            else
            {
                this.HideContainerControl(dvinitalvalue, true);

                List <LblLanguage> lblLanguagelst = null;

                ILblLanguage mLanguageService = null;
                lblLanguagelst              = new List <LblLanguage>();
                mLanguageService            = AppService.Create <ILblLanguage>();
                mLanguageService.AppManager = ((IAppManager)Session["APP_MANAGER"]);
                // retrieve
                lblLanguagelst = mLanguageService.RetrieveLabel(((IAppManager)Session["APP_MANAGER"]).LoginUser.Id, "SEARCHUSER");

                Utility _objUtil = new Utility();
                _objUtil.LoadGridLabels(lblLanguagelst, GvwUserList);
                dvinitalvalue.Visible = false;
            }
            this.ShowHideErrorMessage("none");
        }
        catch (ValidationException ve)
        {
            //Display the Errors.
            this.DisplayValidationMessage(ve);

            //Hide the Inital view
            this.HideContainerControl(dvinitalvalue, true);
            //this.InitalspnMessage.InnerHtml = "<b>Enter the criteria and click on Search button to view data.</b>";

            //Clear the Grid
            this.DisplayList(new List <User>());

            //disable the Refersh control
            this.MakeControlDisable(LknRefersh, false);
        }
        catch { throw; }
    }
    public void LoadLabels()
    {
        List <LblLanguage> lblLanguagelst = null;

        ILblLanguage mLanguageService = null;

        lblLanguagelst              = new List <LblLanguage>();
        mLanguageService            = AppService.Create <ILblLanguage>();
        mLanguageService.AppManager = ((IAppManager)Session["APP_MANAGER"]);
        // retrieve
        lblLanguagelst = mLanguageService.RetrieveLabel(((IAppManager)Session["APP_MANAGER"]).LoginUser.Id, "LOCATION");

        Utility _objUtil = new Utility();

        _objUtil.LoadLabels(lblLanguagelst);

        var GRID_TITLE = lblLanguagelst.Where(c => c.LabelId.ToUpper().Equals("MSG_IN_GRID")).FirstOrDefault();

        if (GRID_TITLE != null)
        {
            this.hideSpan.InnerHtml = Convert.ToString(GRID_TITLE.DisplayText);
            NORECFOUND = Convert.ToString(GRID_TITLE.SupportingText1);
        }

        var NoofRecordFound = lblLanguagelst.Where(c => c.LabelId.Equals("lblNoofRecordFound")).FirstOrDefault();

        if (NoofRecordFound != null)
        {
            cntlist  = NoofRecordFound.DisplayText;
            cntFound = NoofRecordFound.SupportingText1;
        }

        var AddNewLocatoin1 = lblLanguagelst.Where(c => c.LabelId.Equals("lblAddNewLocatoin")).FirstOrDefault();

        if (AddNewLocatoin1 != null)
        {
            AddNewLocatoin = AddNewLocatoin1.DisplayText;
            EditLocatoin   = AddNewLocatoin1.SupportingText1;
        }

        var ALERTCITYSTATE = lblLanguagelst.Where(c => c.LabelId.ToUpper().Equals("LBLALERTCITYSTATE")).FirstOrDefault();

        if (ALERTCITYSTATE != null)
        {
            ALERTCITY  = ALERTCITYSTATE.DisplayText;
            ALERTSTATE = ALERTCITYSTATE.SupportingText1;
        }

        var ALERTCOUNTRYTZ = lblLanguagelst.Where(c => c.LabelId.ToUpper().Equals("LBLALERTCOUNTRYTZ")).FirstOrDefault();

        if (ALERTCOUNTRYTZ != null)
        {
            ALERTCOUNTRY  = ALERTCOUNTRYTZ.DisplayText;
            ALERTTIMEZONE = ALERTCOUNTRYTZ.SupportingText1;
        }

        var ADDUPDATE_MSG = lblLanguagelst.Where(c => c.LabelId.ToUpper().Equals("ADDUPDATEMSG")).FirstOrDefault();

        if (ADDUPDATE_MSG != null)
        {
            ADDEDMSG  = Convert.ToString(ADDUPDATE_MSG.DisplayText);
            UPDATEMSG = Convert.ToString(ADDUPDATE_MSG.SupportingText1);
        }

        var btnADDMOD = lblLanguagelst.Where(c => c.LabelId.Equals("btnUpdate")).FirstOrDefault();

        if (btnADDMOD != null)
        {
            BTNMODIFY = Convert.ToString(btnADDMOD.SupportingText1);
            BTNADD    = Convert.ToString(btnADDMOD.DisplayText);
        }

        var TXTALERT = lblLanguagelst.Where(c => c.LabelId.ToUpper().Equals("TXTALERTMSG")).FirstOrDefault();

        if (TXTALERT != null)
        {
            // NameAlert = Convert.ToString(TXTALERT.DisplayText);
            CommentsAlert = Convert.ToString(TXTALERT.SupportingText1);
        }
    }
    private void SearchClient()
    {
        IClientService service = null;

        try
        {
            // Get the values.
            string name   = txtSearchName.Value;
            string status = ddlStatus.Items[ddlStatus.SelectedIndex].Value;

            // Validate.
            this.ValidateSearchEntity();


            // Create the service.
            service            = AppService.Create <IClientService>();
            service.AppManager = this.mAppManager;

            // Build search criteria.
            ClientSearchCriteria criteria = new ClientSearchCriteria();
            criteria.Name   = name;
            criteria.Status = status;

            // Invoke service method.
            mclientlist = service.Search(criteria, 0);

            // Display the list.
            this.DisplayList(mclientlist);


            if (gvwEntityList.Rows.Count == 0)
            {
                dvinitalvalue.Visible = true;
                divEmptyRow.Visible   = true;
                this.ShowHideValidationMessage(true);
                this.HideIntialView(true);
                //this.divEmptyRow.InnerHtml = "<b>No Record Found </b>";
                this.hdrGridHeader.InnerText = string.Empty;
                dvinitalvalue.Visible        = true;
            }
            else
            {
                dvinitalvalue.Visible = false;
                //gvwEntityList.Columns[0].wid = 200;
//                System.Windows.Forms.DataGridViewTextBoxColumn col = new DataGridViewTextBoxColumn();

                //   gvwEntityList.Columns[1].Width = 108;
                divEmptyRow.Visible = false;
                this.ShowHideValidationMessage(false);
                //this.HideIntialView(false);
                // this.hdrGridHeader.InnerText = "Clients List: (" + mclientlist.Count + " found)";
                this.hdrGridHeader.InnerText = cntlist + " (" + mclientlist.Count + " " + cntFound + ")";

                List <LblLanguage> lblLanguagelst = null;

                ILblLanguage mLanguageService = null;
                lblLanguagelst              = new List <LblLanguage>();
                mLanguageService            = AppService.Create <ILblLanguage>();
                mLanguageService.AppManager = ((IAppManager)Session["APP_MANAGER"]);
                // retrieve
                lblLanguagelst = mLanguageService.RetrieveLabel(((IAppManager)Session["APP_MANAGER"]).LoginUser.Id, "CLIENT");

                Utility _objUtil = new Utility();
                _objUtil.LoadGridLabels(lblLanguagelst, gvwEntityList);
                dvinitalvalue.Visible = false;
            }


            this.divSuccessMessage.InnerHtml = string.Empty;
            this.DisableRefershControl();
        }
        catch (ValidationException ex)
        {
            //Display the validation  errors.
            StringBuilder ErrorMessage = new StringBuilder();
            ErrorMessage.Append(string.Format("<table><tr><td>{0}</td></tr>", ex.Message));
            foreach (string s in ex.Data.Values)
            {
                ErrorMessage.Append(string.Format("<tr><td>{0}</td></tr></table>", s.ToString()));
            }
            //Hide the Error message
            this.divSuccessMessage.InnerHtml = ErrorMessage.ToString();
            this.HideIntialView(true);
            //Hide List Found.
            this.hdrGridHeader.InnerText = string.Empty;
            //Disable the Refersh control
            this.lnkrefresh.Enabled = false;
        }

        catch { throw; }
        finally
        {
            if (service != null)
            {
                service.Dispose();
            }
        }
    }
    public void LoadLabels()
    {
        List <LblLanguage> lblLanguagelst = null;

        ILblLanguage mLanguageService = null;

        lblLanguagelst              = new List <LblLanguage>();
        mLanguageService            = AppService.Create <ILblLanguage>();
        mLanguageService.AppManager = ((IAppManager)Session["APP_MANAGER"]);
        // retrieve
        lblLanguagelst = mLanguageService.RetrieveLabel(((IAppManager)Session["APP_MANAGER"]).LoginUser.Id, "CLIENT");

        Utility _objUtil = new Utility();

        _objUtil.LoadLabels(lblLanguagelst);

        var GRID_TITLE = lblLanguagelst.Where(c => c.LabelId.ToUpper().Equals("MSG_IN_GRID")).FirstOrDefault();

        if (GRID_TITLE != null)
        {
            this.divEmptyRow.InnerHtml = Convert.ToString(GRID_TITLE.DisplayText);
        }

        var PRESSF2MSG = lblLanguagelst.Where(c => c.LabelId.ToUpper().Equals("PRESSF2MSG")).FirstOrDefault();

        if (PRESSF2MSG != null)
        {
            if (hdnClientId.Value == "0")
            {
                txtResponsibleUser.Value = Convert.ToString(PRESSF2MSG.DisplayText);
            }
        }
        var NoRecordFound = lblLanguagelst.Where(c => c.LabelId.ToUpper().Equals("lblNoRecordFound")).FirstOrDefault();

        if (NoRecordFound != null)
        {
            this.divEmptyRow.InnerHtml = Convert.ToString(NoRecordFound.DisplayText);
        }

        var NoofRecordFound = lblLanguagelst.Where(c => c.LabelId.Equals("lblNoofRecordFound")).FirstOrDefault();

        if (NoofRecordFound != null)
        {
            cntlist  = NoofRecordFound.DisplayText;
            cntFound = NoofRecordFound.SupportingText1;
        }

        var ADDEDITBTN = lblLanguagelst.Where(c => c.LabelId.ToUpper().Equals("ADDEDITBTN")).FirstOrDefault();

        if (ADDEDITBTN != null)
        {
            if (hdnClientId.Value != "0")
            {
                ADDeditModeDisplay = Convert.ToString(ADDEDITBTN.SupportingText1);
                //mEntityEditPanelHeader = Convert.ToString(ADDEDITBTN.SupportingText1);
                //btnUpdate.Text = Convert.ToString(ADDEDITBTN.SupportingText1);
            }
            else
            {
                ADDModeDisplay = Convert.ToString(ADDEDITBTN.DisplayText);
                //mEntityEditPanelHeader = Convert.ToString(ADDEDITBTN.DisplayText);
                //btnUpdate.Text = Convert.ToString(ADDEDITBTN.DisplayText);
            }
        }


        var lblUserSearchValue = lblLanguagelst.Where(c => c.LabelId.Equals("lblUserSearchview")).FirstOrDefault();

        if (lblUserSearchValue != null)
        {
            lblUserSearchview.Text = lblUserSearchValue.DisplayText;
        }

        var ADDUPDATE_MSG = lblLanguagelst.Where(c => c.LabelId.ToUpper().Equals("ADDUPDATEMSG")).FirstOrDefault();

        if (ADDUPDATE_MSG != null)
        {
            ADDEDMSG  = Convert.ToString(ADDUPDATE_MSG.DisplayText);
            UPDATEMSG = Convert.ToString(ADDUPDATE_MSG.SupportingText1);
        }

        var btnADDMOD = lblLanguagelst.Where(c => c.LabelId.Equals("btnUpdate")).FirstOrDefault();

        if (btnADDMOD != null)
        {
            BTNMODIFY = Convert.ToString(btnADDMOD.SupportingText1);
            BTNADD    = Convert.ToString(btnADDMOD.DisplayText);
        }
    }
    private void FillActivitySummary()
    {
        try
        {
            // Validation.
            this.ValidateEntity();

            // Fetch user values.
            int      userId           = Int32.Parse(hdnCreateUserId.Value);
            DateTime activityFromDate = DateTime.Parse(txtFromDate.Text);
            DateTime activityToDate   = DateTime.Parse(txtToDate.Text);

            // Retrieve data.
            this.mActivitySummary = this.RetrieveActivitySummary(userId, activityFromDate, activityToDate);

            // Display data.
            this.DisplayActivitySummary(this.mActivitySummary);

            List <LblLanguage> lblLanguagelst = null;

            ILblLanguage mLanguageService = null;
            lblLanguagelst              = new List <LblLanguage>();
            mLanguageService            = AppService.Create <ILblLanguage>();
            mLanguageService.AppManager = ((IAppManager)Session["APP_MANAGER"]);
            // retrieve
            lblLanguagelst = mLanguageService.RetrieveLabel(((IAppManager)Session["APP_MANAGER"]).LoginUser.Id, "ACTIVITY");

            Utility _objUtil = new Utility();
            _objUtil.LoadGridLabels(lblLanguagelst, GridEntity);
            divGridHeader.Visible = false;



            var LBLLSTACT = lblLanguagelst.Where(c => c.LabelId.ToUpper().Equals("LBLLISTRESETACT")).FirstOrDefault();
            if (LBLLSTACT != null)
            {
                LBLListofAct = LBLLSTACT.DisplayText;
                LBLFound     = LBLLSTACT.SupportingText1;
            }

            if (GridEntity.Rows.Count == 0)
            {
                this.ShowHideValidationMessage(true);
                this.HideIntialView(true);
                this.divEmptyRow.InnerHtml = NoRecfound;
                this.divMessage.Visible    = false;

                this.hdrGridHeader.InnerText = string.Empty;
            }
            else
            {
                this.ShowHideValidationMessage(false);
                //this.HideIntialView(false);
                this.hdrGridHeader.InnerText = LBLListofAct + mActivitySummary.Count + LBLFound;
            }
        }
        catch (ValidationException ex)
        {
            //Display the validation  errors.
            StringBuilder ErrorMessage = new StringBuilder();
            ErrorMessage.Append(string.Format("<table><tr><td>{0}</td></tr>", ex.Message));
            foreach (string s in ex.Data.Values)
            {
                ErrorMessage.Append(string.Format("<tr><td>{0}</td></tr></table>", s.ToString()));
            }
            this.DisplayValidationMessage(ex);
            this.ShowHideValidationMessage(true);
            this.divMessage.Style.Add("display", "block");
            //Hide List Found.
            this.hdrGridHeader.InnerText = string.Empty;
        }
        catch { throw; }
    }