Ejemplo n.º 1
0
        public ActionResult GetDangers(string jobid, int rows)
        {
            var page     = int.Parse(this.Request.QueryString.Get("page") ?? "1");
            var pagesize = int.Parse(this.Request.QueryString.Get("rows") ?? "20");
            var total    = 0;

            var user = OperatorProvider.Provider.Current();
            var bll  = new ActivityBLL();
            //var data = bll.GetEvaluationsManoeuvre(name, rows, page, ToCompileDeptIdSearch, EmergencyTypeSearch, meetingstarttime, meetingendtime, out total);
            var data = workmeetingbll.getdangertemplate(jobid);

            return(Json(new { rows = data, records = total, page = page, total = Math.Ceiling((decimal)total / rows) }, JsonRequestBehavior.AllowGet));
        }