コード例 #1
0
        /// <summary>
        /// 解除卷宗案件基本信息锁定状态
        /// </summary>
        /// <returns></returns>
        private string RomIsLock()
        {
            string bmsahs = Request.Form["bmsahs"];
            if (bmsahs == null || string.IsNullOrEmpty(bmsahs))
            {
                return ReturnString.JsonToString(Prompt.error, "解锁参数不正确", null);
            }
            
            string[] str = bmsahs.Split(new char[]{','},StringSplitOptions.RemoveEmptyEntries);

            List<EDRS.Model.YX_DZJZ_JZJBXX> modelList = new List<EDRS.Model.YX_DZJZ_JZJBXX>();
            for (int i = 0; i < str.Length; i++)
            {
                EDRS.Model.YX_DZJZ_JZJBXX model = new EDRS.Model.YX_DZJZ_JZJBXX();
                model.BMSAH = str[i];
                model.JZXGH = "";
                model.ZHXGSJ = DateTime.Now;
                model.ZZZT = "-1";
                modelList.Add(model);
            }
            YX_DZJZ_JZJBXX bll = new YX_DZJZ_JZJBXX(this.Request);
            if (bll.LockByModelList(modelList))
            {
                OperateLog.AddLogList(OperateLog.LogType.案件卷宗制作Web, "卷宗解锁成功", str, UserInfo, UserRole, this.Request);
                return ReturnString.JsonToString(Prompt.win, "解锁成功", null);
            }
            OperateLog.AddLog(OperateLog.LogType.案件卷宗制作Web, "卷宗解锁失败", bmsahs, UserInfo, UserRole, this.Request);
            return ReturnString.JsonToString(Prompt.error, "解锁失败", null);
        }