コード例 #1
0
ファイル: GetDossierPage.aspx.cs プロジェクト: wkfff/DZJZ-FY-
        /// <summary>
        /// 审核
        /// </summary>
        /// <returns></returns>
        public string SetSh()
        {
            string ids = Request.Form["bmsah"];

            string[] id = ids.Split(new char[] { ',' }, StringSplitOptions.RemoveEmptyEntries);
            ids = "";
            for (int i = 0; i < id.Length; i++)
            {
                ids += "'" + id[i].Trim() + "'";
                if (i < id.Length - 1)
                {
                    ids += ",";
                }
            }
            if (string.IsNullOrEmpty(ids))
            {
                return(ReturnString.JsonToString(Prompt.error, "未找到需要修改信息", null));
            }

            EDRS.BLL.YX_DZJZ_JZJBXX bll = new EDRS.BLL.YX_DZJZ_JZJBXX(this.Request);
            DataSet ds = bll.GetList(string.Format(" and JZBH in ({0})", ids));

            if (ds != null && ds.Tables.Count > 0 && ds.Tables[0].Rows.Count > 0)
            {
                foreach (DataRow dr in ds.Tables[0].Rows)
                {
                    if (dr["ZZZT"].ToString() != "2")
                    {
                        return(ReturnString.JsonToString(Prompt.error, "该案件目前不能再进行审核", null));
                    }
                }
            }

            if (bll.UpdateByZZZTList(ids, "", DateTime.Now, "", Request.Form.Get("txt_type"), Request.Form.Get("txt_pz")))
            {
                //数据日志
                // OperateLog.AddLog(OperateLog.LogType.案件卷宗制作Web, "操作成功", "",UserInfo, UserRole, this.Request);
                foreach (string key in ids.Split(','))
                {
                    string bmsah = key.Replace("'", "");
                    EDRS.Model.YX_DZJZ_JZJBXX model = bll.GetModel(bmsah);
                    if (model != null && (model.ZZZT == "4" || model.ZZZT == "3"))
                    {
                        try
                        {
                            WebReference.jzfk _interface = new WebReference.jzfk();
                            string            status     = model.ZZZT == "4" ? "1" : "0";
                            string            result     = _interface.updateStatus(model.AJBH, model.WSBH, status);
                            LogHelper.LogError(Request, "Exception", "通知审核状态记录:" + result + "|本地状态:" + model.ZZZT + "|AJBH:" + model.AJBH + "|WSBH:" + model.WSBH + "|" + status, "", "");
                            OperateLog.AddLog(OperateLog.LogType.卷宗OCR及打包状态, "通知状态改变成功:[案件编号=" + model.AJBH + ",文书编号=" + model.WSBH + "]", model.BMSAH + "|" + model.AJBH + "|" + model.WSBH, null, null, this.Request);
                        }
                        catch (Exception ex)
                        {
                            OperateLog.AddLog(OperateLog.LogType.卷宗OCR及打包状态, "状态回写失败:" + ex.Message, "", null, null, this.Request);
                        }
                    }
                }
                return(ReturnString.JsonToString(Prompt.win, "操作成功", null));
            }
            //数据日志
            OperateLog.AddLog(OperateLog.LogType.案件卷宗制作Web, "操作失败", "", null, null, this.Request);
            return(ReturnString.JsonToString(Prompt.error, "操作失败", null));
        }
コード例 #2
0
ファイル: MakeCheck.aspx.cs プロジェクト: wkfff/DZJZ-FY-
        /// <summary>
        /// 修改配置数据
        /// </summary>
        /// <returns></returns>
        private string UpData()
        {
            string ids = Request.Form["bmsah"];

            string[] id = ids.Split(new char[] { ',' }, StringSplitOptions.RemoveEmptyEntries);
            ids = "";
            for (int i = 0; i < id.Length; i++)
            {
                ids += "'" + id[i].Trim() + "'";
                if (i < id.Length - 1)
                {
                    ids += ",";
                }
            }
            if (string.IsNullOrEmpty(ids))
            {
                return(ReturnString.JsonToString(Prompt.error, "未找到需要修改信息", null));
            }

            YX_DZJZ_JZJBXX bll = new YX_DZJZ_JZJBXX(this.Request);


            if (bll.UpdateByZZZTList(ids, UserInfo.MC, DateTime.Now, UserInfo.GH, Request.Form.Get("type"), Request.Form.Get("txt_pz")))
            {
                //数据日志
                OperateLog.AddLog(OperateLog.LogType.案件卷宗制作Web, "操作成功", "", UserInfo, UserRole, this.Request);
                foreach (string key in ids.Split(','))
                {
                    string bmsah = key.Replace("'", "");
                    EDRS.Model.YX_DZJZ_JZJBXX model = bll.GetModel(bmsah);
                    if (model != null && (model.ZZZT == "4" || model.ZZZT == "3"))
                    {
                        try
                        {
                            WebReference.jzfk _interface = new WebReference.jzfk();
                            string            status     = model.ZZZT == "4" ? "1" : "0";
                            string            result     = _interface.updateStatus(model.AJBH, model.WSBH, status);
                            string            msg        = "通知审核状态记录:" + result + "|本地状态:" + model.ZZZT + "|AJBH:" + model.AJBH + "|WSBH:" + model.WSBH + "|" + status;
                            try
                            {
                                string       NoticeAuditStatusFilePath = Path.Combine(Path.Combine(GetRootPath(), "NoticeFile"), "NoticeWaitAuditStatus.txt");
                                FileStream   fs = new FileStream(NoticeAuditStatusFilePath, FileMode.Append);
                                StreamWriter sr = new StreamWriter(fs, System.Text.Encoding.Default);
                                sr.WriteLine(DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss") + "|" + msg);
                                sr.Close();
                                fs.Close();
                            }
                            catch (Exception ex)
                            { }

                            OperateLog.AddLog(OperateLog.LogType.卷宗OCR及打包状态, "通知状态改变成功:[案件编号=" + model.AJBH + ",文书编号=" + model.WSBH + "]", model.BMSAH + "|" + model.AJBH + "|" + model.WSBH, null, null, this.Request);
                        }
                        catch (Exception ex)
                        {
                            OperateLog.AddLog(OperateLog.LogType.卷宗OCR及打包状态, "状态回写失败:" + ex.Message, "", UserInfo, UserRole, this.Request);
                        }
                    }
                }
                return(ReturnString.JsonToString(Prompt.win, "操作成功", null));
            }
            //数据日志
            OperateLog.AddLog(OperateLog.LogType.案件卷宗制作Web, "操作失败", "", UserInfo, UserRole, this.Request);
            return(ReturnString.JsonToString(Prompt.error, "操作失败", null));
        }