Ejemplo n.º 1
0
        public ActionResult GetProEditDataById(int id)
        {
            if (id <= 0)
            {
                return(operateContext.RedirectAjax(1, "数据验证失败~", "", ""));
            }
            //List<Bane_UrinalysisRecord> record = operateContext.bllSession.Bane_UrinalysisRecord.Select(s => s.ur_id == id && s.approve_status==0);
            BaneEditUrinalyRecord reslut = operateContext.bllSession.Bane_UrinalysisRecord.GetRecordData(id);

            if (reslut == null)
            {
                return(operateContext.RedirectAjax(1, "记录为空~", "", ""));
            }
            return(operateContext.RedirectAjax(0, "获取数据成功~", reslut, ""));
        }
        public ActionResult GetProEditDataById(int id)
        {
            if (id <= 0)
            {
                return(operateContext.RedirectAjax(1, "数据验证失败~", "", ""));
            }
            //List<Bane_UrinalysisRecord> record = operateContext.bllSession.Bane_UrinalysisRecord.Select(s => s.ur_id == id && s.approve_status==0);
            BaneEditUrinalyRecord reslut = operateContext.bllSession.Bane_UrinalysisRecord.GetRecordData(id);
            var query = HCQ2UI_Helper.Session.SysPermissSession.PermissList.Where(s => s.per_type == "fieldManager").Count();

            if (reslut == null)
            {
                return(operateContext.RedirectAjax(1, "记录为空~", "", ""));
            }
            return(operateContext.RedirectAjax(0, "获取数据成功~", reslut, query > 0 ? "1" : "0"));
        }