Example #1
0
 public ActionResult Literatures(LiteratureParameter param)
 {
     param.KeyWord = HttpUtility.UrlDecode(param.KeyWord);
     return(View(
                new InternalDataTransferToView {
         List = LiteratureTableProvider.List(param),
         Data = param
     }));
 }
Example #2
0
 public ActionResult LiteratureEdit(LiteratureParameter param)
 {
     if (0L < param.Entity.LiteratureId)
     {
         param.Entity.Fill(LiteratureTableProvider.Detail(param));
     }
     return(View(new InternalDataTransferToView {
         Data = param
     }));
 }
Example #3
0
        public ActionResult AjaxLiteratureDelete(LiteratureParameter param)
        {
            var result = new JsonNetResult();
            var r      = new GeneralResponse();

            try {
                r.Code = LiteratureTableProvider.Delete(param).ToString(Section.Get.Common.Culture);
            }
            catch (Exception ex) {
                Log.Error(ex.Message, ex);
                r.Code = "-11";
            }
            result.Data = r;
            return(result);
        }
Example #4
0
        public ActionResult AjaxLiteratureEdit(LiteratureParameter param)
        {
            var result = new JsonNetResult();
            var r      = new GeneralResponse();

            try {
                r.Code = (0L < param.Entity.LiteratureId
                    ? LiteratureTableProvider.Update(param)
                    : LiteratureTableProvider.Create(param)).ToString(Section.Get.Common.Culture);
            }
            catch (Exception ex) {
                Log.Error(ex.Message, ex);
                r.Code = "-11" + ex.Message;
            }
            result.Data = r;
            return(result);
        }