Exemplo n.º 1
0
        /// <summary>
        /// 描述:获取设置中的数据,该数据可能包含审核中数据
        /// <para>作    者:瞿琦</para>
        /// <para>创建时间:2018-11-7</para>
        /// </summary>
        /// <returns>学期详情数据</returns>
        public TermListResponse GetTermAuditList()
        {
            var respon    = new TermListResponse();
            var auditInfo = _auditService.TblAutAudit;
            //获取学期类型列表
            var tremTypeList = GetTermTypeList();
            //学期列表
            var queryTerm = new List <TermDetailResponse>();

            if (auditInfo == null)
            {
                respon.AuditStatus = null;
            }
            else if (auditInfo.AuditStatus == (int)AuditStatus.Auditing || auditInfo.AuditStatus == (int)AuditStatus.Return || auditInfo.AuditStatus == (int)AuditStatus.Forwarding) //审核中的数据
            {
                //获取审核中的学期收费标准
                queryTerm            = GetAuditTermList(auditInfo.AuditId);
                respon.AuditStatus   = (AuditStatus)auditInfo.AuditStatus;
                respon.AuditUserId   = auditInfo.AuditUserId;
                respon.AuditUserName = auditInfo.AuditUserName;
                respon.AuditDate     = auditInfo.AuditDate;
                respon.Remark        = auditInfo.DataExt;

                respon.IsFirstSubmitUser = _auditService.IsFlowSubmitUser;
                respon.CreateUserName    = auditInfo.CreateUserName;
            }
            else //已生效的数据
            {
                queryTerm            = GetTermList();
                respon.AuditStatus   = (AuditStatus)auditInfo.AuditStatus;
                respon.AuditUserId   = auditInfo.AuditUserId;
                respon.AuditUserName = auditInfo.AuditUserName;
                respon.AuditDate     = auditInfo.AuditDate;
                respon.Remark        = auditInfo.DataExt;
            }

            respon.Data         = queryTerm; //学期列表
            respon.TermTypeList = tremTypeList;
            return(respon);
        }
Exemplo n.º 2
0
        /// <summary>
        /// 12、	指标列表
        /// </summary>
        /// <param name="hospitalid">医院id</param>
        /// <param name="page">分页id</param>
        /// <param name="name">指标名称(糊糊)</param>
        /// <param name="token"></param>
        /// <returns></returns>
        /// Jack Ding
        public TermListResponse List(int hospitalid, int page, string name, string token)
        {
            string           strResponse = string.Empty;
            TermListResponse response    = new TermListResponse();

            try
            {
                Dictionary <string, string> sPara = new Dictionary <string, string>();

                sPara.Add("hospitalid", hospitalid.ToString());
                sPara.Add("page", page.ToString());
                sPara.Add("name", name);
                strResponse = F8YLSubmit.BuildGetRequest(sPara, "term/list?token=" + token);

                response = JsonHelper.DeserializeJsonToObject <TermListResponse>(strResponse);

                return(response);
            }
            catch
            {
                throw;
            }
        }