private void loadData()
        {
            SiteUtility.RefreshOrgChartDataOnly();
            OrganizationChart chart = SiteUtility.CurrentOrgChart;

            int  tempPositionID = -1;
            bool isOK           = int.TryParse(Request.QueryString[EDITPOSIDKEY], out tempPositionID);

            if (isOK)
            {
                WorkforcePlanningPosition position = WorkforcePlanningPositionManager.Instance.GetByID(tempPositionID);

                if (position.WFPPositionID == -1)
                {
                    base.PrintErrorMessage(GetLocalResourceObject("PositionDoesNotExistMessage").ToString());
                }
                else
                {
                    customNewFPPSPosition.BindData(position);
                }
            }
            else
            {
                base.PrintErrorMessage(GetLocalResourceObject("PositionIDQuerystringNotValidMessage").ToString());
            }
        }
Exemple #2
0
        private void loadData()
        {
            SiteUtility.RefreshOrgChartDataOnly();
            OrganizationChart chart = SiteUtility.CurrentOrgChart;

            base.PageTitle = string.Format(GetLocalResourceObject("PageTitle").ToString(), chart.OrganizationName, chart.OrgCode.OrganizationCodeValue);
            this.customViewChart.BindChart(chart, OrganizationChartTypeViews.Published);
        }