Ejemplo n.º 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 }));
        }