/// <summary>
        /// 初始化主页设置模块
        /// </summary>
        /// <param name="context"></param>
        private void InitIndexModel(HttpContext context)
        {
            try
            {
                string loginName = Common.GetSessionValue("loginName", context);
                if (loginName == null)
                {
                    return;
                }
                string EnterpriseCode = Common.GetSessionValue("EnterpriseCode", context);
                if (EnterpriseCode == null)
                {
                    return;
                }
                DataTable SourceTemp = new DataTable();
                SourceTemp = GetIndexTemp(loginName, EnterpriseCode);

                if (SourceTemp != null && SourceTemp.Rows.Count > 0)
                {
                    ModelEntyty        entity = new ModelEntyty();
                    List <ModelEntyty> list   = new List <ModelEntyty>();
                    foreach (DataRow Dtr in SourceTemp.Rows)
                    {
                        entity                = new ModelEntyty();
                        entity.Model_ID       = Convert.ToInt32(Dtr["Fun_ID"]);
                        entity.Model_Name     = Dtr["Fun_Name"].ToString();
                        entity.Model_Type     = Convert.ToInt32(Dtr["Fun_Type"]);
                        entity.Model_ParentID = Convert.ToInt32(Dtr["Fun_ParentID"] == DBNull.Value ? "0" : Dtr["Fun_ParentID"].ToString());
                        entity.IfSet          = Convert.ToInt32(Dtr["CK"]);
                        entity._Fun_Class     = Convert.ToString(Dtr["Fun_Class"]);
                        list.Add(entity);
                    }



                    context.Response.Write(new JavaScriptSerializer().Serialize(list));
                }
            }
            catch
            {
            }
        }
        private void LoadModular(HttpContext context)
        {
            DataTable SourceTemp = new DataTable();

            try
            {
                string loginName = Common.GetSessionValue("loginName", context);
                if (loginName == null)
                {
                    return;
                }
                string EnterpriseCode = Common.GetSessionValue("EnterpriseCode", context);
                if (EnterpriseCode == null)
                {
                    return;
                }
                SourceTemp = MgrServices.IndexService.GetModularStrByLoginName(loginName, EnterpriseCode);
                if (SourceTemp != null && SourceTemp.Rows.Count > 0)
                {
                    ModelEntyty        entity = new ModelEntyty();
                    List <ModelEntyty> list   = new List <ModelEntyty>();
                    foreach (DataRow Dtr in SourceTemp.Rows)
                    {
                        entity            = new ModelEntyty();
                        entity.Model_ID   = Convert.ToInt32(Dtr["Fun_ID"]);
                        entity.Model_Name = Dtr["Fun_Name"] == DBNull.Value ? "" : Dtr["Fun_Name"].ToString();
                        entity.Model_Type = Convert.ToInt32(Dtr["Fun_Type"]);
                        entity.HtmlUrl    = Dtr["Fun_Url"] == DBNull.Value ? "" : Dtr["Fun_Url"].ToString();
                        entity._Fun_Class = Convert.ToString(Dtr["Fun_Class"]);
                        list.Add(entity);
                    }
                    context.Response.Write(new JavaScriptSerializer().Serialize(list));
                }
                else
                {
                    context.Response.Write("");
                }
            }
            catch
            {
            }
        }