using dccdc.BLL;
using System;
using System.Collections.Generic;
using System.Data;
using System.Globalization;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using dccdc.DAL;
using dccdc.Models;
using static dccdc.Controllers.DictionariesController;
using static dccdc.Controllers.QueryStatisticsController;
using Aliyun.Acs.Core.Profile;
using Aliyun.Acs.Core;
using Aliyun.Acs.Dysmsapi.Model.V20170525;
using System.Reflection;
using Aliyun.Acs.Core.Exceptions;
using dccdc.Models.DTO;
namespace dccdc.Controllers
{
public class KpiController : Controller
{
public ActionResult kpi()
{
return View();
}
public String init()
{
var chargebll = new chargeBll();
var sftj = chargebll.getSFTJ();
var proExamRBll = new ProfessionalExamRegisterBll();
var jkzdy = proExamRBll.getJKZDY();
var mab = new MedicalAppointmentBll();
var yyrs = mab.getYYRS();
var yylx = mab.getYYLX();
var monthjf = chargebll.getmonthjf();
var ymdjbll = new YMDJBll();
var ymdj = ymdjbll.getymdj();
return Newtonsoft.Json.JsonConvert.SerializeObject(new { sftj= sftj,jkzdy= jkzdy, yyrs= yyrs,yylx= yylx, monthjf=monthjf, ymdj = ymdj });
}
///
/// 1920*1080大屏
///
///
public ActionResult dp1080()
{
return View();
}
///
/// 获取体检统计今日,本月,本年
///
///
public JsonResult getTjrxTJ()
{
try {
var bll = new BLL.ProfessionalExamRegisterBll();
int jr = bll.gettjrsjr();
int by = bll.gettjrsby();
int bn = bll.gettjrsbn();
return Json(new {
State = 1, bn = new
{
value = bn,
max = (bn + 1000) / 10 * 10
},by =new {
value = by,
max = (by + 500) / 10 * 10
},jr = new {
value = jr,
max = (jr + 100) / 10 * 10
}
});
}catch(Exception ex)
{
return Json(new { State = 0, Message = ex.Message });
}
}
}
}