Ejemplo n.º 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));
        }
Ejemplo n.º 2
0
        /// <summary>
        /// 卷宗页数据获取接口
        /// </summary>
        /// <param name="DWBM"></param>
        /// <param name="BH"></param>
        /// <param name="JZBH"></param>
        /// <param name="JZWJYBH"></param>
        public string GetDossierFilePage()
        {
            try
            {
                string dwbm    = Request.Form["dwbm"];
                string bh      = Request.Form["bh"];
                string jzbh    = Request.Form["jzbh"];
                string jzwjybh = Request.Form["jzwjybh"];

                if (string.IsNullOrEmpty(dwbm) || string.IsNullOrEmpty(bh) || string.IsNullOrEmpty(jzbh) || string.IsNullOrEmpty(jzwjybh))
                {
                    return(ReturnString.JsonToString(Prompt.error, "查询参数错误", null));
                }

                dwbm    = HttpUtility.UrlDecode(HttpUtility.UrlDecode(dwbm));
                bh      = HttpUtility.UrlDecode(HttpUtility.UrlDecode(bh));
                jzbh    = HttpUtility.UrlDecode(HttpUtility.UrlDecode(jzbh));
                jzwjybh = HttpUtility.UrlDecode(HttpUtility.UrlDecode(jzwjybh));

                //返回参数
                string Str = string.Empty;
                EDRS.BLL.YX_DZJZ_JZMLWJ bll = new EDRS.BLL.YX_DZJZ_JZMLWJ(HttpContext.Current.Request);
                DataSet ds = bll.GetList(" and DWBM=:DWBM and BMSAH=:BMSAH and JZBH=:JZBH and WJXH=:WJXH", new object[] { dwbm, bh, jzbh, jzwjybh });
                //判断是否查询出现异常
                if (ds != null && ds.Tables.Count > 0)
                {
                    //判断查询没有数据
                    if (ds.Tables[0].Rows.Count > 0)
                    {
                        //成功
                        return(EDRS.Common.JsonHelper.JsonString(ds.Tables[0]));
                    }
                    else
                    {
                        //该案件没有卷
                        return(ReturnString.JsonToString(Prompt.error, "该卷宗页数据不存在", null));
                    }
                }
                else
                {
                    //查询失败
                    return(ReturnString.JsonToString(Prompt.error, "查询失败", null));
                }
            }
            catch (Exception ex)
            {
                LogHelper.LogError(Request, "Exception", ex.Message, "public string GetDossierFilePage()", "GetDossierPage");
                return(ReturnString.JsonToString(Prompt.error, "查询失败", null));
            }
        }
Ejemplo n.º 3
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));
        }
Ejemplo n.º 4
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));
        }
Ejemplo n.º 5
0
        /// <summary>
        /// 获取案件文件
        /// </summary>
        /// <returns></returns>
        private void GetFile()
        {
            string wjlj = "";
            string wjmc = "";


            //  string dwbm = HttpUtility.UrlDecode(HttpUtility.UrlDecode(Request["DWBM"].Trim()));
            //string bh = HttpUtility.UrlDecode(HttpUtility.UrlDecode(Request["BH"].Trim()));
            string jzbh    = HttpUtility.UrlDecode(HttpUtility.UrlDecode(Request["JZBH"].Trim()));
            string jzwjybh = HttpUtility.UrlDecode(HttpUtility.UrlDecode(Request["JZWJYBH"].Trim()));

            EDRS.BLL.YX_DZJZ_JZMLWJ bll = new EDRS.BLL.YX_DZJZ_JZMLWJ(HttpContext.Current.Request);
            DataSet ds = bll.GetList(" and JZBH=:JZBH and WJXH=:WJXH", new object[] { jzbh, jzwjybh });

            //判断是否查询出现异常
            if (ds != null && ds.Tables.Count > 0)
            {
                //判断查询没有数据
                if (ds.Tables[0].Rows.Count > 0)
                {
                    wjlj = ds.Tables[0].Rows[0]["WJLJ"].ToString();
                    wjmc = ds.Tables[0].Rows[0]["WJMC"].ToString();
                }
            }

            if (string.IsNullOrEmpty(wjlj) || string.IsNullOrEmpty(wjmc))
            {
                Response.Write("访问参数错误");
            }
            else
            {
                EDRS.BLL.XY_DZJZ_XTPZ   bllto = new EDRS.BLL.XY_DZJZ_XTPZ(this.Request);
                EDRS.Model.XY_DZJZ_XTPZ model = bllto.GetModel((int)EnumConfig.卷宗文件下载地址);
                if (model != null)
                {
                    IceServicePrx isp   = new IceServicePrx();
                    string        msg   = "";
                    byte[]        bytes = new byte[] { };
                    if (isp.DownFile(model.CONFIGVALUE, wjlj, wjmc, "", ref bytes, ref msg))
                    {
                        string showType = ConfigHelper.GetConfigString("FileShowType");
                        if (showType == "1")
                        {
                            Response.Write("<img style=\"max-width:100%;\" alt=\"\" src=\"data:image/jpeg;base64," + Convert.ToBase64String(bytes) + "\" />");
                        }
                        else
                        {
                            byte[] info = DataEncryption.Decryption(bytes);
                            Response.ContentType = "application/pdf";
                            Response.AddHeader("content-disposition", "filename=pdf");
                            Response.AddHeader("content-length", info.Length.ToString());
                            Response.BinaryWrite(info);
                        }
                    }
                    else
                    {
                        Response.Write(msg);
                    }
                }
                else
                {
                    Response.Write("请先配置" + EnumConfig.卷宗文件下载地址);
                }
            }
        }