Ejemplo n.º 1
0
        /// <summary>
        /// 跨页保持选中项 - 根据隐藏字段的数据更新表格当前页面的选中行
        /// </summary>
        /// <param name="hfSelectedIDS"></param>
        /// <param name="grid"></param>
        public void UpdateSelectedRowIndexArray(FineUI.HiddenField hfSelectedIDS, Grid grid)
        {
            List <int> ids = GetSelectedIDsFromHiddenField(hfSelectedIDS);

            List <int> nextSelectedRowIndexArray = new List <int>();

            if (grid.IsDatabasePaging)
            {
                for (int i = 0, count = Math.Min(grid.PageSize, (grid.RecordCount - grid.PageIndex * grid.PageSize)); i < count; i++)
                {
                    int id = Convert.ToInt32(grid.DataKeys[i][0]);
                    if (ids.Contains(id))
                    {
                        nextSelectedRowIndexArray.Add(i);
                    }
                }
            }
            else
            {
                int nextStartPageIndex = grid.PageIndex * grid.PageSize;
                for (int i = nextStartPageIndex, count = Math.Min(nextStartPageIndex + grid.PageSize, grid.RecordCount); i < count; i++)
                {
                    int id = Convert.ToInt32(grid.DataKeys[i][0]);
                    if (ids.Contains(id))
                    {
                        nextSelectedRowIndexArray.Add(i - nextStartPageIndex);
                    }
                }
            }
            grid.SelectedRowIndexArray = nextSelectedRowIndexArray.ToArray();
        }
Ejemplo n.º 2
0
        /// <summary>
        /// 根据隐藏字段的数据更新表格当前页面的选中行
        /// </summary>
        /// <param name="hfSelectedIDS"></param>
        /// <param name="Grid1"></param>
        public static void UpdateSelectedRowIndexArray(FineUI.HiddenField hfSelectedIDS, Grid Grid1)
        {
            if (Grid1 != null && Grid1.Rows.Count > 0)
            {
                List <string> ids = GetSelectedIDsFromHiddenField(hfSelectedIDS);

                List <int> nextSelectedRowIndexArray = new List <int>();
                if (Grid1.IsDatabasePaging)
                {
                    for (int i = 0, count = Math.Min(Grid1.PageSize, (Grid1.RecordCount - Grid1.PageIndex * Grid1.PageSize)); i < count; i++)
                    {
                        string id = Grid1.DataKeys[i][0].ToString();
                        if (ids.Contains(id))
                        {
                            nextSelectedRowIndexArray.Add(i);
                        }
                    }
                }
                else
                {
                    int nextStartPageIndex = Grid1.PageIndex * Grid1.PageSize;
                    for (int i = nextStartPageIndex, count = Math.Min(nextStartPageIndex + Grid1.PageSize, Grid1.RecordCount); i < count; i++)
                    {
                        string id = Grid1.DataKeys[i][0].ToString();
                        if (ids.Contains(id))
                        {
                            nextSelectedRowIndexArray.Add(i - nextStartPageIndex);
                        }
                    }
                }
                Grid1.SelectedRowIndexArray = nextSelectedRowIndexArray.ToArray();
            }
        }
Ejemplo n.º 3
0
        //-----------------------------------------
        // 选择行ID 与隐藏域
        //-----------------------------------------
        /// <summary>将表格当前页面选中行对应的数据保存到隐藏字段中(有空简化下)</summary>
        public static void SaveSelectedIds(Grid grid, FineUI.HiddenField hiddenField)
        {
            List <int> ids          = GetIdsFromHidden(hiddenField);
            List <int> selectedRows = new List <int>();

            if (grid.SelectedRowIndexArray != null && grid.SelectedRowIndexArray.Length > 0)
            {
                selectedRows = new List <int>(grid.SelectedRowIndexArray);
            }

            if (grid.IsDatabasePaging)
            {
                //int count = Math.Min(grid.PageSize, (grid.RecordCount - grid.PageIndex * grid.PageSize));
                int count = MathHelper.Min(grid.PageSize, (grid.RecordCount - grid.PageIndex * grid.PageSize), grid.DataKeys.Count);
                for (int i = 0; i < count; i++)
                {
                    int id = Convert.ToInt32(grid.DataKeys[i][0]);
                    if (selectedRows.Contains(i))
                    {
                        if (!ids.Contains(id))
                        {
                            ids.Add(id);
                        }
                    }
                    else
                    {
                        if (ids.Contains(id))
                        {
                            ids.Remove(id);
                        }
                    }
                }
            }
            else
            {
                int startPageIndex = grid.PageIndex * grid.PageSize;
                int count          = MathHelper.Min(startPageIndex + grid.PageSize, grid.RecordCount, grid.DataKeys.Count);
                for (int i = startPageIndex; i < count; i++)
                {
                    int id = Convert.ToInt32(grid.DataKeys[i][0]);
                    if (selectedRows.Contains(i - startPageIndex))
                    {
                        if (!ids.Contains(id))
                        {
                            ids.Add(id);
                        }
                    }
                    else
                    {
                        if (ids.Contains(id))
                        {
                            ids.Remove(id);
                        }
                    }
                }
            }

            hiddenField.Text = new JArray(ids).ToString(Newtonsoft.Json.Formatting.None);
        }
Ejemplo n.º 4
0
        /// <summary>
        /// 将表格当前页面选中行对应的数据同步到隐藏字段中
        /// </summary>
        /// <param name="hfSelectedIDS"></param>
        /// <param name="Grid1"></param>
        public static void SyncSelectedRowIndexArrayToHiddenField(FineUI.HiddenField hfSelectedIDS, Grid Grid1)
        {
            if (Grid1 != null && Grid1.Rows.Count > 0)
            {
                List <string> ids = GetSelectedIDsFromHiddenField(hfSelectedIDS);

                List <int> selectedRows = new List <int>();
                if (Grid1.SelectedRowIndexArray != null && Grid1.SelectedRowIndexArray.Length > 0)
                {
                    selectedRows = new List <int>(Grid1.SelectedRowIndexArray);
                }

                if (Grid1.IsDatabasePaging)
                {
                    for (int i = 0, count = Math.Min(Grid1.PageSize, (Grid1.RecordCount - Grid1.PageIndex * Grid1.PageSize)); i < count; i++)
                    {
                        string id = Grid1.DataKeys[i][0].ToString();
                        if (selectedRows.Contains(i))
                        {
                            if (!ids.Contains(id))
                            {
                                ids.Add(id);
                            }
                        }
                        else
                        {
                            if (ids.Contains(id))
                            {
                                ids.Remove(id);
                            }
                        }
                    }
                }
                else
                {
                    int startPageIndex = Grid1.PageIndex * Grid1.PageSize;
                    for (int i = startPageIndex, count = Math.Min(startPageIndex + Grid1.PageSize, Grid1.RecordCount); i < count; i++)
                    {
                        string id = Grid1.DataKeys[i][0].ToString();
                        if (selectedRows.Contains(i - startPageIndex))
                        {
                            if (!ids.Contains(id))
                            {
                                ids.Add(id);
                            }
                        }
                        else
                        {
                            if (ids.Contains(id))
                            {
                                ids.Remove(id);
                            }
                        }
                    }
                }
                hfSelectedIDS.Text = new JArray(ids).ToString(Formatting.None);
            }
        }
Ejemplo n.º 5
0
        /// <summary>
        /// 跨页保持选中项 - 将表格当前页面选中行对应的数据同步到隐藏字段中
        /// </summary>
        /// <param name="hfSelectedIDS"></param>
        /// <param name="grid"></param>
        public void SyncSelectedRowIndexArrayToHiddenField(FineUI.HiddenField hfSelectedIDS, Grid grid)
        {
            List <int> ids = GetSelectedIDsFromHiddenField(hfSelectedIDS);

            List <int> selectedRows = new List <int>();

            if (grid.SelectedRowIndexArray != null && grid.SelectedRowIndexArray.Length > 0)
            {
                selectedRows = new List <int>(grid.SelectedRowIndexArray);
            }

            if (grid.IsDatabasePaging)
            {
                for (int i = 0, count = Math.Min(grid.PageSize, (grid.RecordCount - grid.PageIndex * grid.PageSize)); i < count; i++)
                {
                    int id = Convert.ToInt32(grid.DataKeys[i][0]);
                    if (selectedRows.Contains(i))
                    {
                        if (!ids.Contains(id))
                        {
                            ids.Add(id);
                        }
                    }
                    else
                    {
                        if (ids.Contains(id))
                        {
                            ids.Remove(id);
                        }
                    }
                }
            }
            else
            {
                int startPageIndex = grid.PageIndex * grid.PageSize;
                for (int i = startPageIndex, count = Math.Min(startPageIndex + grid.PageSize, grid.RecordCount); i < count; i++)
                {
                    int id = Convert.ToInt32(grid.DataKeys[i][0]);
                    if (selectedRows.Contains(i - startPageIndex))
                    {
                        if (!ids.Contains(id))
                        {
                            ids.Add(id);
                        }
                    }
                    else
                    {
                        if (ids.Contains(id))
                        {
                            ids.Remove(id);
                        }
                    }
                }
            }

            hfSelectedIDS.Text = new JArray(ids).ToString(Formatting.None);
        }
Ejemplo n.º 6
0
        /// <summary>从隐藏字段中获取选择的全部ID列表</summary>
        private static List <int> GetIdsFromHidden(FineUI.HiddenField hiddenField)
        {
            JArray idsArray   = new JArray();
            string currentIDS = hiddenField.Text.Trim();

            if (!String.IsNullOrEmpty(currentIDS))
            {
                idsArray = JArray.Parse(currentIDS);
            }
            else
            {
                idsArray = new JArray();
            }
            return(new List <int>(idsArray.ToObject <int[]>()));
        }
Ejemplo n.º 7
0
        /// <summary>
        /// 从隐藏字段中获取选择的全部ID列表
        /// </summary>
        /// <param name="hfSelectedIDS"></param>
        /// <returns></returns>
        public List <int> GetSelectedIDsFromHiddenField(FineUI.HiddenField hfSelectedIDS)
        {
            JArray idsArray = new JArray();

            string currentIDS = hfSelectedIDS.Text.Trim();

            if (!String.IsNullOrEmpty(currentIDS))
            {
                idsArray = JArray.Parse(currentIDS);
            }
            else
            {
                idsArray = new JArray();
            }
            return(new List <int>(idsArray.ToObject <int[]>()));
        }
        /// <summary>
        /// 同步已选择的工作内容与要求到hiddenfield
        /// </summary>
        /// <returns></returns>
        private void syncSelectedWCR()
        {
            List <string> selectedWCR = new List <string>();

            foreach (ControlBase item in Panel3.Items)
            {
                SimpleForm sf = item as SimpleForm;
                TriggerBox tb = sf.Items[0] as TriggerBox;
                if (tb.Text == "")
                {
                    break;
                }
                FineUI.HiddenField hf    = sf.Items[2] as FineUI.HiddenField;
                string             title = hf.Text.Split('&')[0].Trim();
                selectedWCR.Add(title);
            }

            foreach (ControlBase item in Panel6.Items)
            {
                SimpleForm sf = item as SimpleForm;
                TriggerBox tb = sf.Items[0] as TriggerBox;
                if (tb.Text == "")
                {
                    break;
                }
                TextArea           ta    = sf.Items[1] as TextArea;
                FineUI.HiddenField hf    = sf.Items[2] as FineUI.HiddenField;
                string             title = hf.Text.Split('&')[0].Trim();
                selectedWCR.Add(title);
            }

            StringBuilder sb = new StringBuilder();

            foreach (string WCR in selectedWCR)
            {
                sb.Append(WCR + "$");
            }
            hfSelectedWCR.Text = sb.ToString();
        }
        /// <summary>
        /// 同步已选择的指标到hiddenfield
        /// </summary>
        private void syncSelectedQuota()
        {
            List <string> selectedQuota = new List <string>();

            foreach (ControlBase item in Panel4.Items)
            {
                SimpleForm sf = item as SimpleForm;
                TriggerBox tb = sf.Items[0] as TriggerBox;
                if (tb.Text.Trim() == "")
                {
                    break;
                }
                FineUI.HiddenField hf    = sf.Items[2] as FineUI.HiddenField;
                string             title = hf.Text.Split('&')[0].Trim();
                selectedQuota.Add(title);
            }
            foreach (ControlBase item in Panel5.Items)
            {
                SimpleForm sf = item as SimpleForm;
                TriggerBox tb = sf.Items[0] as TriggerBox;
                if (tb.Text.Trim() == "")
                {
                    break;
                }
                FineUI.HiddenField hf    = sf.Items[2] as FineUI.HiddenField;
                string             title = hf.Text.Split('&')[0].Trim();
                selectedQuota.Add(title);
            }
            foreach (ControlBase item in Panel7.Items)
            {
                SimpleForm sf = item as SimpleForm;
                TriggerBox tb = sf.Items[0] as TriggerBox;
                if (tb.Text.Trim() == "")
                {
                    break;
                }
                FineUI.HiddenField hf    = sf.Items[2] as FineUI.HiddenField;
                string             title = hf.Text.Split('&')[0].Trim();
                selectedQuota.Add(title);
            }
            foreach (ControlBase item in Panel8.Items)
            {
                SimpleForm sf = item as SimpleForm;
                TriggerBox tb = sf.Items[0] as TriggerBox;
                if (tb.Text.Trim() == "")
                {
                    break;
                }
                FineUI.HiddenField hf    = sf.Items[2] as FineUI.HiddenField;
                string             title = hf.Text.Split('&')[0].Trim();
                selectedQuota.Add(title);
            }

            StringBuilder sb = new StringBuilder();

            foreach (string quota in selectedQuota)
            {
                sb.Append(quota + "$");
            }
            hfSelectedQuota.Text = sb.ToString();
        }
        /// <summary>
        /// 清空所有项目
        /// </summary>
        private void clearAll()
        {
            Label_Period.Text = "";

            foreach (ControlBase cb in Panel3.Items)
            {
                SimpleForm         sf = cb as SimpleForm;
                TriggerBox         tb = sf.Items[0] as TriggerBox;
                TextArea           ta = sf.Items[1] as TextArea;
                FineUI.HiddenField hf = sf.Items[2] as FineUI.HiddenField;
                tb.Text = "";
                ta.Text = "";
                hf.Text = "";
            }

            foreach (ControlBase cb in Panel4.Items)
            {
                SimpleForm         sf = cb as SimpleForm;
                TriggerBox         tb = sf.Items[0] as TriggerBox;
                TextArea           ta = sf.Items[1] as TextArea;
                FineUI.HiddenField hf = sf.Items[2] as FineUI.HiddenField;
                tb.Text = "";
                ta.Text = "";
                hf.Text = "";
            }

            foreach (ControlBase cb in Panel5.Items)
            {
                SimpleForm         sf = cb as SimpleForm;
                TriggerBox         tb = sf.Items[0] as TriggerBox;
                TextArea           ta = sf.Items[1] as TextArea;
                FineUI.HiddenField hf = sf.Items[2] as FineUI.HiddenField;
                tb.Text = "";
                ta.Text = "";
                hf.Text = "";
            }

            foreach (ControlBase cb in Panel6.Items)
            {
                SimpleForm         sf = cb as SimpleForm;
                TriggerBox         tb = sf.Items[0] as TriggerBox;
                TextArea           ta = sf.Items[1] as TextArea;
                FineUI.HiddenField hf = sf.Items[2] as FineUI.HiddenField;
                tb.Text = "";
                ta.Text = "";
                hf.Text = "";
            }

            foreach (ControlBase cb in Panel7.Items)
            {
                SimpleForm         sf = cb as SimpleForm;
                TriggerBox         tb = sf.Items[0] as TriggerBox;
                TextArea           ta = sf.Items[1] as TextArea;
                FineUI.HiddenField hf = sf.Items[2] as FineUI.HiddenField;
                tb.Text = "";
                ta.Text = "";
                hf.Text = "";
            }

            foreach (ControlBase cb in Panel8.Items)
            {
                SimpleForm         sf = cb as SimpleForm;
                TriggerBox         tb = sf.Items[0] as TriggerBox;
                TextArea           ta = sf.Items[1] as TextArea;
                FineUI.HiddenField hf = sf.Items[2] as FineUI.HiddenField;
                tb.Text = "";
                ta.Text = "";
                hf.Text = "";
            }

            TextArea_Reject1.Text = "累计旷工3天以上的;\n严重失职,营私舞弊,给本单位造成3000元以上经济损失或者其它严重后果的;\n同时与其他用人单位建立劳动关系,对完成本单位工作任务造成严重影响,或者经本单位提出,拒不改正的;\n违背职业道德,行贿、受贿价值超过3000元以上的;\n被依法追究刑事责任的;";
            TextArea_Reject2.Text = "";
        }
        /// <summary>
        /// 获取当前页面中的考核表
        /// </summary>
        /// <returns></returns>
        private EvaluateTable getNewEvaluateTable()
        {
            EvaluateTable evaluateTable = new EvaluateTable();

            evaluateTable.EvaluatedName = Label_EvaluatedName.Text.Trim();
            evaluateTable.PostName      = Label_PostName.Text.Trim();
            evaluateTable.LaborDep      = Label_LaborDep.Text.Trim();
            evaluateTable.LaborUnit     = Label_LaborUnit.Text.Trim();
            evaluateTable.StartTime     = Label_Period.Text.Split('~')[0].Trim();
            evaluateTable.StopTime      = Label_Period.Text.Split('~')[1].Trim();
            foreach (ControlBase item in Panel3.Items)
            {
                SimpleForm sf = item as SimpleForm;
                TriggerBox tb = sf.Items[0] as TriggerBox;
                if (tb.Text == "")
                {
                    break;
                }
                FineUI.HiddenField hf      = sf.Items[2] as FineUI.HiddenField;
                string             title   = hf.Text.Split('&')[0].Trim();
                string[]           content = new string[] { hf.Text.Split('&')[1] };
                evaluateTable.KeyResponse.Add(new Quota(title, content));
            }

            foreach (ControlBase item in Panel4.Items)
            {
                SimpleForm sf = item as SimpleForm;
                TriggerBox tb = sf.Items[0] as TriggerBox;
                if (tb.Text.Trim() == "")
                {
                    break;
                }
                FineUI.HiddenField hf      = sf.Items[2] as FineUI.HiddenField;
                string             title   = hf.Text.Split('&')[0].Trim();
                string[]           content = hf.Text.Split('&')[1].Split('^');
                evaluateTable.KeyQualify.Add(new Quota(title, content));
            }

            foreach (ControlBase item in Panel5.Items)
            {
                SimpleForm sf = item as SimpleForm;
                TriggerBox tb = sf.Items[0] as TriggerBox;
                if (tb.Text.Trim() == "")
                {
                    break;
                }
                FineUI.HiddenField hf      = sf.Items[2] as FineUI.HiddenField;
                string             title   = hf.Text.Split('&')[0].Trim();
                string[]           content = hf.Text.Split('&')[1].Split('^');
                evaluateTable.KeyAttitude.Add(new Quota(title, content));
            }

            foreach (ControlBase item in Panel6.Items)
            {
                SimpleForm sf = item as SimpleForm;
                TriggerBox tb = sf.Items[0] as TriggerBox;
                if (tb.Text == "")
                {
                    break;
                }
                TextArea           ta      = sf.Items[1] as TextArea;
                FineUI.HiddenField hf      = sf.Items[2] as FineUI.HiddenField;
                string             title   = hf.Text.Split('&')[0].Trim();
                string[]           content = new string[] { hf.Text.Split('&')[1] };
                evaluateTable.Response.Add(new Quota(title, content));
            }

            foreach (ControlBase item in Panel7.Items)
            {
                SimpleForm sf = item as SimpleForm;
                TriggerBox tb = sf.Items[0] as TriggerBox;
                if (tb.Text.Trim() == "")
                {
                    break;
                }
                FineUI.HiddenField hf      = sf.Items[2] as FineUI.HiddenField;
                string             title   = hf.Text.Split('&')[0].Trim();
                string[]           content = hf.Text.Split('&')[1].Split('^');
                evaluateTable.Qualify.Add(new Quota(title, content));
            }

            foreach (ControlBase item in Panel8.Items)
            {
                SimpleForm sf = item as SimpleForm;
                TriggerBox tb = sf.Items[0] as TriggerBox;
                if (tb.Text.Trim() == "")
                {
                    break;
                }
                FineUI.HiddenField hf      = sf.Items[2] as FineUI.HiddenField;
                string             title   = hf.Text.Split('&')[0].Trim();
                string[]           content = hf.Text.Split('&')[1].Split('^');
                evaluateTable.Attitude.Add(new Quota(title, content));
            }

            evaluateTable.Reject.Add(new Quota("其他", new string[] { TextArea_Reject2.Text.Trim() }));

            return(evaluateTable);
        }
        /// <summary>
        /// 载入考核表
        /// </summary>
        private void loadEvaluateTable(string id)
        {
            string evaluatedID = "";

            if (id == "" || id == "0")
            {
                evaluatedID = Request.QueryString["id"];
            }
            else
            {
                evaluatedID = id;
            }
            Panel1.Title = Request.QueryString["name"] + "的考核表";
            EvaluateTable evaluateTable = new EvaluateTable();
            string        exception     = "";

            if (EvaluateTableManagementCtrl.GetEvaluateTable(evaluatedID, ref evaluateTable, ref exception))
            {
                Label_Comment.Text = evaluateTable.Comment;

                Label_EvaluatedName.Text = evaluateTable.EvaluatedName;
                Label_PostName.Text      = evaluateTable.PostName;
                Label_LaborDep.Text      = evaluateTable.LaborDep;
                Label_LaborUnit.Text     = evaluateTable.LaborUnit;
                Label_Period.Text        = evaluateTable.StartTime + " ~ " + evaluateTable.StopTime;

                for (int i = 0; i < evaluateTable.KeyResponse.Count; i++)
                {
                    SimpleForm sf = Panel3.Items[i] as SimpleForm;
                    sf.Collapsed = false;
                    TriggerBox         tb = sf.Items[0] as TriggerBox;
                    TextArea           ta = sf.Items[1] as TextArea;
                    FineUI.HiddenField hf = sf.Items[2] as FineUI.HiddenField;
                    tb.Text = evaluateTable.KeyResponse[i].Title;
                    ta.Text = evaluateTable.KeyResponse[i].Content[0];
                    hf.Text = evaluateTable.KeyResponse[i].Title + "&" + evaluateTable.KeyResponse[i].Content[0];
                }

                for (int i = 0; i < evaluateTable.KeyQualify.Count; i++)
                {
                    SimpleForm sf = Panel4.Items[i] as SimpleForm;
                    sf.Collapsed = false;
                    TriggerBox tb = sf.Items[0] as TriggerBox;
                    TextArea   ta = sf.Items[1] as TextArea;
                    tb.Text = evaluateTable.KeyQualify[i].Title;
                    ta.Text = "优:" + evaluateTable.KeyQualify[i].Content[0]
                              + " 良:" + evaluateTable.KeyQualify[i].Content[1]
                              + " 中:" + evaluateTable.KeyQualify[i].Content[2]
                              + " 差:" + evaluateTable.KeyQualify[i].Content[3];

                    FineUI.HiddenField hf = sf.Items[2] as FineUI.HiddenField;
                    hf.Text = evaluateTable.KeyQualify[i].Title
                              + "&" + evaluateTable.KeyQualify[i].Content[0]
                              + "^" + evaluateTable.KeyQualify[i].Content[1]
                              + "^" + evaluateTable.KeyQualify[i].Content[2]
                              + "^" + evaluateTable.KeyQualify[i].Content[3];
                }

                for (int i = 0; i < evaluateTable.KeyAttitude.Count; i++)
                {
                    SimpleForm sf = Panel5.Items[i] as SimpleForm;
                    sf.Collapsed = false;
                    TriggerBox tb = sf.Items[0] as TriggerBox;
                    TextArea   ta = sf.Items[1] as TextArea;
                    tb.Text = evaluateTable.KeyAttitude[i].Title;
                    ta.Text = "优:" + evaluateTable.KeyAttitude[i].Content[0]
                              + " 良:" + evaluateTable.KeyAttitude[i].Content[1]
                              + " 中:" + evaluateTable.KeyAttitude[i].Content[2]
                              + " 差:" + evaluateTable.KeyAttitude[i].Content[3];

                    FineUI.HiddenField hf = sf.Items[2] as FineUI.HiddenField;
                    hf.Text = evaluateTable.KeyAttitude[i].Title
                              + "&" + evaluateTable.KeyAttitude[i].Content[0]
                              + "^" + evaluateTable.KeyAttitude[i].Content[1]
                              + "^" + evaluateTable.KeyAttitude[i].Content[2]
                              + "^" + evaluateTable.KeyAttitude[i].Content[3];
                }

                for (int i = 0; i < evaluateTable.Response.Count; i++)
                {
                    SimpleForm sf = Panel6.Items[i] as SimpleForm;
                    sf.Collapsed = false;
                    TriggerBox         tb = sf.Items[0] as TriggerBox;
                    TextArea           ta = sf.Items[1] as TextArea;
                    FineUI.HiddenField hf = sf.Items[2] as FineUI.HiddenField;
                    tb.Text = evaluateTable.Response[i].Title;
                    ta.Text = evaluateTable.Response[i].Content[0];
                    hf.Text = evaluateTable.Response[i].Title + "&" + evaluateTable.Response[i].Content[0];
                }

                for (int i = 0; i < evaluateTable.Qualify.Count; i++)
                {
                    SimpleForm sf = Panel7.Items[i] as SimpleForm;
                    sf.Collapsed = false;
                    TriggerBox tb = sf.Items[0] as TriggerBox;
                    TextArea   ta = sf.Items[1] as TextArea;
                    tb.Text = evaluateTable.Qualify[i].Title;
                    ta.Text = "优:" + evaluateTable.Qualify[i].Content[0]
                              + " 良:" + evaluateTable.Qualify[i].Content[1]
                              + " 中:" + evaluateTable.Qualify[i].Content[2]
                              + " 差:" + evaluateTable.Qualify[i].Content[3];

                    FineUI.HiddenField hf = sf.Items[2] as FineUI.HiddenField;
                    hf.Text = evaluateTable.Qualify[i].Title
                              + "&" + evaluateTable.Qualify[i].Content[0]
                              + "^" + evaluateTable.Qualify[i].Content[1]
                              + "^" + evaluateTable.Qualify[i].Content[2]
                              + "^" + evaluateTable.Qualify[i].Content[3];
                }

                for (int i = 0; i < evaluateTable.Attitude.Count; i++)
                {
                    SimpleForm sf = Panel8.Items[i] as SimpleForm;
                    sf.Collapsed = false;
                    TriggerBox tb = sf.Items[0] as TriggerBox;
                    TextArea   ta = sf.Items[1] as TextArea;
                    tb.Text = evaluateTable.Attitude[i].Title;
                    ta.Text = "优:" + evaluateTable.Attitude[i].Content[0]
                              + " 良:" + evaluateTable.Attitude[i].Content[1]
                              + " 中:" + evaluateTable.Attitude[i].Content[2]
                              + " 差:" + evaluateTable.Attitude[i].Content[3];

                    FineUI.HiddenField hf = sf.Items[2] as FineUI.HiddenField;
                    hf.Text = evaluateTable.Attitude[i].Title
                              + "&" + evaluateTable.Attitude[i].Content[0]
                              + "^" + evaluateTable.Attitude[i].Content[1]
                              + "^" + evaluateTable.Attitude[i].Content[2]
                              + "^" + evaluateTable.Attitude[i].Content[3];
                }

                TextArea_Reject1.Text = "累计旷工3天以上的;\n严重失职,营私舞弊,给本单位造成3000元以上经济损失或者其它严重后果的;\n同时与其他用人单位建立劳动关系,对完成本单位工作任务造成严重影响,或者经本单位提出,拒不改正的;\n违背职业道德,行贿、受贿价值超过3000元以上的;\n被依法追究刑事责任的;";
                TextArea_Reject2.Text = evaluateTable.Reject[0].Content[0];
            }
            else    //如果该被考评人的岗位责任书尚未制定,则被考评人姓名、岗位名称、用工部门、用工单位和考核时间段从父网页获取
            {
                Label_EvaluatedName.Text = Request.QueryString["name"];
                Label_PostName.Text      = Request.QueryString["postname"];
                Label_LaborDep.Text      = Request.QueryString["labordepart"];
                Label_LaborUnit.Text     = Request.QueryString["depart"];
                Label_Period.Text        = Request.QueryString["starttime"] + " ~ " + Request.QueryString["stoptime"];
                TextArea_Reject1.Text    = "累计旷工3天以上的;\n严重失职,营私舞弊,给本单位造成3000元以上经济损失或者其它严重后果的;\n同时与其他用人单位建立劳动关系,对完成本单位工作任务造成严重影响,或者经本单位提出,拒不改正的;\n违背职业道德,行贿、受贿价值超过3000元以上的;\n被依法追究刑事责任的;";
            }
        }