Exemple #1
0
        private string submitapply()
        {
            EDRS.BLL.YX_DZJZ_JZMLWJ bll   = new EDRS.BLL.YX_DZJZ_JZMLWJ(Request);
            EDRS.BLL.YX_DZJZ_WJSQDY BLLSQ = new EDRS.BLL.YX_DZJZ_WJSQDY(Request);
            string id   = Request["id"];
            string wjxh = Request.Form["yjxh"];
            string sq   = string.Empty;

            if (!string.IsNullOrEmpty(id))
            {
                sq = " and JZWJBH=:JZWJBH";
            }

            DataSet   d  = BLLSQ.GetList(sq, new[] { id });
            DataTable dt = d.Tables[0];

            //判断该案件是否已在申请中.
            if (dt != null && dt.Rows.Count == 0)
            {
                string str = string.Empty;
                str = " and wjxh=:wjxh";
                DataSet ds = bll.GetList(str, new[] { id });
                if (ds.Tables[0].Rows.Count > 0)
                {
                    //string bmsah = ds.Tables[0].Rows[0]["BMSAH"].ToString();
                    EDRS.Model.YX_DZJZ_WJSQDY model = new EDRS.Model.YX_DZJZ_WJSQDY();
                    model.BMSAH  = ds.Tables[0].Rows[0]["BMSAH"].ToString();
                    model.DYBMBM = "";  //打印部门编码
                    model.DYBMMC = "";
                    model.DYDWBM = "";
                    model.DYDWMC = "";
                    model.DYFS   = null;         //打印份数
                    model.DYFY   = null;         //打印费用
                    model.DYR    = "";           //打印人
                    model.DYRGH  = "";           //打印人工号
                    model.DYSJ   = null;         //打印时间
                    model.LSZH   = UserInfo.GH;  //律师证号
                    model.DYSQDH = DateTime.Now.ToString("yyyyMMddHHmmssfff") + model.LSZH;
                    model.JZWJBH = id;           //文件编号
                    model.SFSC   = "N";
                    model.SQFS   = 1;            //申请份数
                    model.SQSJ   = DateTime.Now; //申请时间
                    model.YJXH   = wjxh;         //阅卷序号

                    if (BLLSQ.Add(model))
                    {
                        return(ReturnString.JsonToString(Prompt.win, "申请成功", null));
                    }
                    else
                    {
                        return(ReturnString.JsonToString(Prompt.error, "申请失败", null));
                    }
                }
            }
            else
            {
                return(ReturnString.JsonToString(Prompt.error, "该文件已申请", null));
            }
            return(ReturnString.JsonToString(Prompt.error, "未获取文件信息", null));
        }
Exemple #2
0
        /// <summary>
        /// 绑定列表
        /// </summary>
        /// <returns></returns>
        public string ListBind()
        {
            string page = Request["page"];
            string rows = Request["pagesize"];
            string key  = Request["key"];
            string ajmc = Request["ajmc"];
            string gh   = Request["gh"];

            int pageNumber = int.Parse(page);
            int pageSize   = int.Parse(rows);

            string where = " and T.SFSC='N'";

            object[] values = new object[3];
            if (!string.IsNullOrEmpty(key))
            {
                where    += " and BMSAH like :BMSAH";
                values[0] = "%" + key + "%";
            }

            if (!string.IsNullOrEmpty(ajmc))
            {
                where    += " and AJMC like :AJMC";
                values[1] = "%" + ajmc + "%";
            }
            if (!string.IsNullOrEmpty(gh))
            {
                where    += " and LSZH like :LSZH";
                values[2] = "%" + gh + "%";
            }

            EDRS.BLL.YX_DZJZ_WJSQDY bll = new EDRS.BLL.YX_DZJZ_WJSQDY(this.Request);

            DataSet ds = bll.GetListByPageEx(where, "SQSJ desc", (pageSize * pageNumber) - pageSize + 1, (pageSize * pageNumber), values);

            if (ds != null && ds.Tables.Count > 0 && ds.Tables[0].Rows.Count > 0)
            {
                //数据日志
                OperateLog.AddLog(OperateLog.LogType.阅卷Web, "获取阅卷绑定列表成功", UserInfo, UserRole, this.Request);
                int count = bll.GetRecordCount(where, values);
                return("{\"Total\":" + count + ",\"Rows\":" + JsonHelper.JsonString(ds.Tables[0]) + "}");
            }
            //数据日志
            OperateLog.AddLog(OperateLog.LogType.阅卷Web, "获取阅卷绑定列表-未找到信息", UserInfo, UserRole, this.Request);
            return(ReturnString.JsonToString(Prompt.error, "未找到阅卷绑定信息", null));
        }
Exemple #3
0
        public void IsSh()
        {
            EDRS.BLL.YX_DZJZ_WJSQDY BLLSQ = new EDRS.BLL.YX_DZJZ_WJSQDY(Request);
            DataSet dsSh = BLLSQ.GetListIsSH(Request.Form["yjxh"]);

            //判断打印申请是否已审核
            // DataRow[] drs = dsSh.Tables[0].Select("YJSQDH is null");
            DataRow[] drs = dsSh.Tables[0].Select("SQDZT = 'Y'");
            if (drs.Length > 0)
            {
                Response.Write("y");
                Response.End();
            }
            else
            {
                Response.Write("n");
                Response.End();
            }
        }
Exemple #4
0
        /// <summary>
        /// 打印
        /// </summary>
        /// <returns></returns>
        private string PrintFileByXh()
        {
            //申请序号
            string xh = Request.Form.Get("xh");
            //选择文件文件序号
            string param = Request.Form.Get("param");

            if (string.IsNullOrEmpty(xh) || string.IsNullOrEmpty(param))
            {
                return(ReturnString.JsonToString(Prompt.error, "打印未获取到参数", null));
            }
            string[] paramArr = param.Split(new char[] { '|' }, StringSplitOptions.RemoveEmptyEntries);

            if (paramArr.Length == 0)
            {
                return(ReturnString.JsonToString(Prompt.error, "请选择需要打印的文件页", null));
            }
            else
            {
                //设置文件是需要打印的
                List <EDRS.Model.YX_DZJZ_WJSQDYJL> listModel = new List <EDRS.Model.YX_DZJZ_WJSQDYJL>();
                EDRS.Model.YX_DZJZ_WJSQDYJL        model     = null;
                //循环构造集合
                for (int i = 0; i < paramArr.Length; i++)
                {
                    model        = new EDRS.Model.YX_DZJZ_WJSQDYJL();
                    model.WJXH   = paramArr[i];
                    model.XH     = xh;
                    model.SFXYDY = "Y";
                    listModel.Add(model);
                }
                EDRS.BLL.YX_DZJZ_WJSQDY bll = new EDRS.BLL.YX_DZJZ_WJSQDY(Request);
                if (bll.UpdateListJl(listModel))
                {
                    OperateLog.AddLog(OperateLog.LogType.阅卷Web, "打印律师申请文件页成功", 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));
            }
        }
Exemple #5
0
        public string submitapplyall()
        {
            EDRS.BLL.YX_DZJZ_JZMLWJ bll   = new EDRS.BLL.YX_DZJZ_JZMLWJ(Request);
            EDRS.BLL.YX_DZJZ_WJSQDY BLLSQ = new EDRS.BLL.YX_DZJZ_WJSQDY(Request);
            string idstr = Request.Form["idstr[]"];
            string yjxh  = Request.Form["yjxh"];

            if (!string.IsNullOrEmpty(idstr))
            {
                List <EDRS.Model.YX_DZJZ_WJSQDY> wlist = new List <EDRS.Model.YX_DZJZ_WJSQDY>();
                string[] idarr = idstr.Split(',');

                for (int i = 0; i < idarr.Length; i++)
                {
                    string sq = string.Empty;
                    sq = " and JZWJBH=:JZWJBH";
                    DataSet   d  = BLLSQ.GetList(sq, new[] { idarr[i] });
                    DataTable dt = d.Tables[0];
                    //判断是否存在该申请记录
                    if (dt != null && dt.Rows.Count == 0)
                    {
                        string lszh = UserInfo.GH;
                        string str  = string.Empty;
                        str = " and wjxh=:wjxh";
                        DataSet ds = bll.GetList(str, new[] { idarr[i] });
                        if (ds.Tables[0].Rows.Count > 0)
                        {
                            EDRS.Model.YX_DZJZ_WJSQDY model = new EDRS.Model.YX_DZJZ_WJSQDY();
                            model.BMSAH  = ds.Tables[0].Rows[0]["BMSAH"].ToString();
                            model.DYBMBM = "";  //打印部门编码
                            model.DYBMMC = "";
                            model.DYDWBM = "";
                            model.DYDWMC = "";
                            model.DYFS   = null;         //打印份数
                            model.DYFY   = null;         //打印费用
                            model.DYR    = "";           //打印人
                            model.DYRGH  = "";           //打印人工号
                            model.DYSJ   = null;         //打印时间
                            model.LSZH   = UserInfo.GH;  //律师证号
                            model.DYSQDH = DateTime.Now.ToString("yyyyMMddHHmmssfff") + model.LSZH;
                            model.JZWJBH = idarr[i];     //文件编号
                            model.SFSC   = "N";
                            model.SQFS   = 1;            //申请份数
                            model.SQSJ   = DateTime.Now; //申请时间
                            model.YJXH   = yjxh;         //阅卷序号
                            //添加到集合
                            wlist.Add(model);
                        }
                    }
                }
                if (BLLSQ.AddList(wlist))
                {
                    return(ReturnString.JsonToString(Prompt.win, "提交申请成功", null));
                }
                else
                {
                    return(ReturnString.JsonToString(Prompt.error, "提交申请失败", null));
                }
            }
            return(ReturnString.JsonToString(Prompt.error, "未获取文件信息", null));
        }
Exemple #6
0
        public string submitapplyall()
        {
            EDRS.BLL.YX_DZJZ_JZMLWJ bll   = new EDRS.BLL.YX_DZJZ_JZMLWJ(Request);
            EDRS.BLL.YX_DZJZ_WJSQDY BLLSQ = new EDRS.BLL.YX_DZJZ_WJSQDY(Request);
            string idstr = Request.Form["idstr[]"];
            string yjxh  = Request.Form["yjxh"];

            if (!string.IsNullOrEmpty(idstr))
            {
                #region 申请打印

                EDRS.BLL.YX_DZJZ_LSAJBD dbbll = new EDRS.BLL.YX_DZJZ_LSAJBD(Request);
                //获取部门部门受案号
                EDRS.Model.YX_DZJZ_LSAJBD dbmodel = dbbll.GetModel(yjxh);
                //判断该申请打印是否存在
                EDRS.Model.YX_DZJZ_WJSQDY model = BLLSQ.GetModelByYJXH(yjxh);
                if (model != null)
                {
                    model.SQSJ  = DateTime.Now;
                    model.DYR   = "";
                    model.DYRGH = "";
                    model.DYSJ  = null;
                }
                else
                {
                    model        = new EDRS.Model.YX_DZJZ_WJSQDY();
                    model.BMSAH  = dbmodel.BMSAH;
                    model.DYBMBM = "";  //打印部门编码
                    model.DYBMMC = "";
                    model.DYDWBM = "";
                    model.DYDWMC = "";
                    model.DYFS   = null;                 //打印份数
                    model.DYFY   = null;                 //打印费用
                    model.DYR    = "";                   //打印人
                    model.DYRGH  = "";                   //打印人工号
                    model.DYSJ   = null;                 //打印时间
                    model.LSZH   = Request.Form["lszh"]; //律师证号
                    model.DYSQDH = DateTime.Now.ToString("yyyyMMddHHmmssfff") + model.LSZH;
                    model.JZWJBH = "";                   //文件编号
                    model.SFSC   = "N";
                    model.SQFS   = 1;                    //申请份数
                    model.SQSJ   = DateTime.Now;         //申请时间
                    model.YJXH   = yjxh;                 //阅卷序号
                    model.XH     = Guid.NewGuid().ToString();
                }
                #endregion

                #region 申请打印记录
                List <EDRS.Model.YX_DZJZ_WJSQDYJL> sqjlList = new List <EDRS.Model.YX_DZJZ_WJSQDYJL>();

                string[] idarr = idstr.Split(',');

                //根据序号获取打印记录
                DataSet ds = BLLSQ.GetListDYJL(" and XH ='" + model.XH + "'");

                EDRS.Model.YX_DZJZ_WJSQDYJL sqjlModel = null;
                for (int i = 0; i < idarr.Length; i++)
                {
                    DataRow[] dr = null;
                    if (ds != null)
                    {
                        dr = ds.Tables[0].Select("WJXH='" + idarr[i] + "'");
                    }
                    if (dr == null || dr.Length == 0)
                    {
                        sqjlModel         = new EDRS.Model.YX_DZJZ_WJSQDYJL();
                        sqjlModel.WJXH    = idarr[i];
                        sqjlModel.XH      = model.XH;
                        sqjlModel.YJXH    = model.YJXH;
                        sqjlModel.ADDTIME = DateTime.Now;
                        sqjlModel.SFSC    = "N";
                        sqjlList.Add(sqjlModel);
                    }
                }
                #endregion

                if (BLLSQ.AddListJL(sqjlList, model, model.XH))
                {
                    return(ReturnString.JsonToString(Prompt.win, "提交申请成功", null));
                }
                else
                {
                    return(ReturnString.JsonToString(Prompt.error, "提交申请失败", null));
                }
            }
            return(ReturnString.JsonToString(Prompt.error, "未获取文件信息", null));
        }
Exemple #7
0
        /// <summary>
        /// 打印
        /// </summary>
        /// <returns></returns>
        private string PrintFileByXh()
        {
            //申请序号
            string xh = Request.Form.Get("xh");
            //选择文件文件序号WJLJ
            string param = Request.Form.Get("param");

            if (string.IsNullOrEmpty(xh) || string.IsNullOrEmpty(param))
            {
                return(ReturnString.JsonToString(Prompt.error, "打印未获取到参数", null));
            }
            string[] paramArr = param.Split(new char[] { ',' }, StringSplitOptions.RemoveEmptyEntries);

            if (paramArr.Length == 0)
            {
                return(ReturnString.JsonToString(Prompt.error, "请选择需要打印的文件页", null));
            }
            else
            {
                //设置文件是需要打印的
                List <EDRS.Model.YX_DZJZ_WJSQDYJL> listModel = new List <EDRS.Model.YX_DZJZ_WJSQDYJL>();
                EDRS.Model.YX_DZJZ_WJSQDYJL        model     = null;
                string[] arr = null;
                //循环构造集合
                for (int i = 0; i < paramArr.Length; i++)
                {
                    arr = paramArr[i].Split(new char[] { ',' }, StringSplitOptions.RemoveEmptyEntries);
                    if (arr.Length == 2)
                    {
                        model      = new EDRS.Model.YX_DZJZ_WJSQDYJL();
                        model.WJXH = paramArr[1];
                        // model.WJLJ = arr[0];
                        model.XH     = xh;
                        model.SFXYDY = "Y";
                        listModel.Add(model);
                    }
                }
                EDRS.BLL.YX_DZJZ_WJSQDY bll = new EDRS.BLL.YX_DZJZ_WJSQDY(Request);
                if (bll.UpdateListJl(listModel))
                {
                    #region 获取打印参数
                    EDRS.BLL.XY_DZJZ_XTPZ   xtpzbll = new EDRS.BLL.XY_DZJZ_XTPZ(Request);
                    EDRS.Model.XY_DZJZ_XTPZ xtpz    = xtpzbll.GetConfigById(EnumConfig.卷宗文件上传地址);
                    string linkType = string.Empty; //链接类型
                    string callBack = string.Empty; //路由链接模式地址
                    object obj      = xtpzbll.GetConfigById(EnumConfig.连接类型);
                    if (obj != null)
                    {
                        linkType = ((EDRS.Model.XY_DZJZ_XTPZ)obj).CONFIGVALUE;
                    }
                    object obj2 = xtpzbll.GetConfigById(EnumConfig.路由映射地址);
                    if (obj2 != null && obj2 != DBNull.Value)
                    {
                        callBack = ((EDRS.Model.XY_DZJZ_XTPZ)obj2).CONFIGVALUE;
                    }
                    string strstring = xtpz.CONFIGVALUE + "@" + linkType + "@" + callBack + "@" + xh + "@3";
                    #endregion

                    OperateLog.AddLog(OperateLog.LogType.阅卷Web, "打印律师申请文件页成功", UserInfo, UserRole, this.Request);

                    return(ReturnString.JsonToString(Prompt.win, DESEncrypt.Encrypt(strstring), null));
                }
                OperateLog.AddLog(OperateLog.LogType.阅卷Web, "打印律师申请文件页失败", UserInfo, UserRole, this.Request);

                return(ReturnString.JsonToString(Prompt.error, "打印失败", null));
            }
        }