Пример #1
0
        public ActionResult GetAttachLst(FileUploadQueryForm form, EasyUIGridSetting gridSetting)
        {
            if (form == null || string.IsNullOrEmpty(form.Slbh))
            {
                return(Content("[]", "application/json"));
            }
            BDCExtendBLL    bll    = new BDCExtendBLL();
            EasyUIGridModel result = bll.GetAttachLst(form, gridSetting);

            return(Content(result.ToJson(), "application/json"));
        }
Пример #2
0
        public ActionResult SetCreateTime(string CID, string slbh, string CreateTime)
        {
            if (string.IsNullOrEmpty(CID) || string.IsNullOrEmpty(slbh) || string.IsNullOrEmpty(CreateTime))
            {
                return(Json(new{
                    Ret = false,
                    Message = "CID或slbh或CreateTime为空"
                }));
            }
            DateTime time;

            if (DateTime.TryParse(CreateTime, out time))
            {
                BDCExtendBLL bll = new BDCExtendBLL();
                if (bll.ResetUploadFileCreateTime(time, slbh, CID) > 0)
                {
                    return(Json(new
                    {
                        Ret = true
                    }));
                }
                else
                {
                    return(Json(new
                    {
                        Ret = false,
                        Message = "未找到需要更新的数据"
                    }));
                }
            }
            else
            {
                return(Json(new
                {
                    Ret = false,
                    Message = "Createtime输入不标准"
                }));
            }
        }