示例#1
0
        public IActionResult GetReportCount()
        {
            TASM_PROJECTManager project = new TASM_PROJECTManager();
            int pcount = project.SelectProjectCount();

            TASM_MACHINEManager machine = new TASM_MACHINEManager();
            int mcount = machine.SelectMachineCount();

            TASM_SUPPORT_Da support = new TASM_SUPPORT_Da();
            int             scount  = support.SelectSupportCount();

            var details = support.SelectCount();

            int cpnumber = (int)((Convert.ToDecimal(details.Complete) / Convert.ToDecimal(scount)) * 100);   //工单完成率,百分比

            return(Json(new { ProjectCount = pcount, MachineCount = mcount, SupportCount = scount, SupportWaite = details.Wait, SupportBeing = details.Being, SupportComplete = details.Complete, Cpnumber = cpnumber }));
        }
示例#2
0
        public IActionResult SelectCount()
        {
            TASM_SUPPORT_Da da = new TASM_SUPPORT_Da();

            return(SuccessResult(da.SelectCount()));
        }