コード例 #1
0
ファイル: OAController.cs プロジェクト: Ezio47/git_repository
        /// <summary>
        /// 获取OA办公信息
        /// </summary>
        /// <returns></returns>
        public string OAInfoStr()
        {
            CookieModel   cookieInfo = SystemCls.getCookieInfo();
            StringBuilder sb = new StringBuilder();
            string        kqhref = "#", dbhref = "#", dxhref = "#", target = "_self";

            int[] nums = { 0, 0 };
            if (ConfigCls.getIsTongBuOA() == "1")
            {
                if (HttpCommon.CheckUrlVisit(ConfigCls.getOAWebServiseAddress()))
                {
                    GetOAInfohref(cookieInfo, out kqhref, out dbhref, out dxhref, out target);
                    nums = OACls.GetOfficeNum(cookieInfo.UID);
                }
            }
            GetOAInfoStr(sb, kqhref, dbhref, dxhref, target, nums);
            return(sb.ToString());
        }
コード例 #2
0
ファイル: OAController.cs プロジェクト: Ezio47/git_repository
        /// <summary>
        /// 前台定时获取办公信息
        /// </summary>
        /// <returns></returns>
        public ActionResult OAInfo()
        {
            if (ConfigCls.getOAShowMethod() == "0")
            {
                return(Content(JsonConvert.SerializeObject(new Message(true, "", "")), "text/html;charset=UTF-8"));
            }
            CookieModel   cookieInfo = SystemCls.getCookieInfo();
            StringBuilder sb = new StringBuilder();
            string        kqhref = "#", dbhref = "#", dxhref = "#", target = "_self";

            int[] nums = { 0, 0 };
            if (ConfigCls.getIsTongBuOA() == "1")
            {
                if (HttpCommon.CheckUrlVisit(ConfigCls.getOAWebServiseAddress()))
                {
                    GetOAInfohref(cookieInfo, out kqhref, out dbhref, out dxhref, out target);
                    nums = OACls.GetOfficeNum(cookieInfo.UID);
                }
            }
            GetOAInfoStr(sb, kqhref, dbhref, dxhref, target, nums);
            return(Content(JsonConvert.SerializeObject(new Message(true, sb.ToString(), "")), "text/html;charset=UTF-8"));
        }