Beispiel #1
0
        public ActionResult GetEntityJson(string infoId, string userId)
        {
            var data = infoSubmitDetailsbll.GetList(string.Format(" and infoid='{0}' and createuserid='{1}'", infoId, userId)).FirstOrDefault();
            //返回值
            var josnData = new
            {
                data
            };

            return(Content(josnData.ToJson()));
        }
Beispiel #2
0
        public ActionResult RemoveForm(string keyValue)
        {
            var infoDetailBll = new InfoSubmitDetailsBLL();

            infoSubmitbll.RemoveForm(keyValue);                                             //删除申请
            var list = infoDetailBll.GetList(string.Format(" and infoid='{0}'", keyValue)); //删除详情

            foreach (var detail in list)
            {
                DeleteFiles(detail.ID);
            }
            infoDetailBll.RemoveFormByInfoId(keyValue);

            return(Success("删除成功。"));
        }