예제 #1
0
        /// <summary>
        /// 绑定列表
        /// </summary>
        /// <returns></returns>
        public string ListBind()
        {
            string page = Request["page"];
            string rows = Request["pagesize"];
            string key  = Request["key"];

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

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

            object[] values = new object[1];
            if (!string.IsNullOrEmpty(key))
            {
                where    += " and YJSQDH like :YJSQDH";
                values[0] = "%" + key + "%";
            }
            where += " and T.GH='" + UserInfo.GH + "' and T.DWBM='" + UserInfo.DWBM + "'";

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

            DataSet ds = bll.GetListByPage(where, "YJJSSJ desc,JDSJ 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));
        }
예제 #2
0
        /// <summary>
        /// 登录账号阅卷
        /// </summary>
        /// <returns></returns>
        private string ReadLogin()
        {
            string where = string.Empty;

            //string yjzh = Request.Form["txt_yjzh"].Trim();
            //string yjmm = Request.Form["txt_yjmm"].Trim();

            string yjxh = Request["yjxh"];

            //where += " and YJZH='" + StringPlus.ReplaceSingle(yjzh) + "' and YJMM='" + StringPlus.ReplaceSingle(yjmm) + "' ";
            where += " and YJXH='" + StringPlus.ReplaceSingle(yjxh) + "'";
            where += " and GH='" + UserInfo.GH + "'";
            where += " and DWBM='" + UserInfo.DWBM + "'";
            where += " and YJKSSJ <=to_date('" + DateTime.Now + "','yyyy-mm-dd hh24:mi:ss')  ";
            where += " and YJJSSJ >=to_date('" + DateTime.Now + "','yyyy-mm-dd hh24:mi:ss')  ";
            object[] values = new object[0];

            EDRS.BLL.YX_DZJZ_LSAJBD          bll       = new EDRS.BLL.YX_DZJZ_LSAJBD(Request);
            List <EDRS.Model.YX_DZJZ_LSAJBD> listmodel = bll.GetModelList(where, values);

            if (listmodel != null && listmodel.Count > 0)
            {
                Session["YjData"] = listmodel[0];
                return(JsonHelper.JsonString(listmodel));
            }
            return(ReturnString.JsonToString(Prompt.error, "请确认阅卷时间是否未开始或者已结束", null));
        }
예제 #3
0
        /// <summary>
        /// 律师阅卷登录
        /// </summary>
        public void yjlslogin()
        {
            //获取值
            string yjzh = Request.Form["yjzh"];
            string yjmm = Request.Form["yjmm"];

            EDRS.BLL.YX_DZJZ_LSAJBD bll = new EDRS.BLL.YX_DZJZ_LSAJBD(Request);
            DataSet ds = bll.GetModelByZH(yjzh, yjmm);

            if (ds != null && ds.Tables.Count > 0 && ds.Tables[0].Rows.Count > 0)
            {
                //DateTime nowtime=DateTime.Now;
                //if (Convert.ToDateTime(ds.Tables[0].Rows[0]["YJKSSJ"]) > nowtime)
                //{
                //    Response.Write(2);
                //    Response.End();
                //}
                //if (Convert.ToDateTime(ds.Tables[0].Rows[0]["YJJSSJ"]) < nowtime)
                //{
                //    Response.Write(1);
                //    Response.End();
                //}
                List <EDRS.Model.YX_DZJZ_LSAJBD> listmodel = bll.DataTableToList(ds.Tables[0]);
                Session["YjData"] = listmodel[0];
                //判断律师是否登录
                Session["lszh"] = ds.Tables[0].Rows[0]["GH"];
                Response.Write("{\"yjxh\":\"" + ds.Tables[0].Rows[0]["YJXH"] + "\",\"bmsah\":\"" + ds.Tables[0].Rows[0]["BMSAH"] + "\",\"ajmc\":\"" + ds.Tables[0].Rows[0]["AJMC"] + "\",\"ajbh\":\"" + ds.Tables[0].Rows[0]["AJBH"] + "\",\"lszh\":\"" + ds.Tables[0].Rows[0]["GH"] + "\",\"yjxh\":\"" + ds.Tables[0].Rows[0]["YJXH"] + "\"}");
                Response.End();
            }
            Response.Write(0);
            Response.End();
        }
예제 #4
0
        public object[] YjUserVerification(string kh)
        {
            if (string.IsNullOrEmpty(kh))
            {
                return(new object[] { false, "卡号不能为空" });
            }
            EDRS.BLL.YX_DZJZ_LSAJBD bll = new EDRS.BLL.YX_DZJZ_LSAJBD(HttpContext.Current.Request);
            DataSet ds = bll.GetYZYJZH(" and JDBMMC=:JDBMMC", new object[] { kh });

            if (ds != null && ds.Tables.Count > 0 && ds.Tables[0].Rows.Count > 0)
            {
                DataTable dt = ds.Tables[0];

//F:未提交
//T:已提交
//Y:通过审核
//N:未通过审核
//D:已阅卷

                switch (dt.Rows[0]["SQDZT"].ToString())
                {
                case "Y":
                    return(new object[] { false, "已审核还未写卡" });

                case "N":
                    return(new object[] { false, "阅卷未通过审核" });

                case "X":
                    string url = "http://" + HttpContext.Current.Request.Url.Host + ":" + HttpContext.Current.Request.Url.Port + "/Pages/LSYJ/LSFPSJ.aspx?yjxh=" + dt.Rows[0]["YJXH"] + "&bmsah=" + dt.Rows[0]["BMSAH"] + "&ajmc=" + dt.Rows[0]["AJMC"] + "&ajbh=" + dt.Rows[0]["BMSAH"] + "&lszh=" + dt.Rows[0]["LSZH"] + "&yjxh=" + dt.Rows[0]["YJXH"];
                    return(new object[] { true, url });

                case "D":
                    return(new object[] { false, "此卡已失效,请联系管理员" });

                default:
                    return(new object[] { false, "阅卷申请未审核" });
                }
            }
            return(new object[] { false, "阅卷信息不存在" });
        }
예제 #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))
            {
                #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));
        }
예제 #6
0
        /// <summary>
        /// 保存分配案件文件
        /// </summary>
        /// <returns></returns>
        private string AddData()
        {
            string json = Request.Form["json"];
            string yjxh = Guid.NewGuid().ToString().Replace("-", "").ToUpper();  //"山东省院捕受[2015]37000000054号";

            string lssq = Request.Form["lssq"];

            string[] lssqs = null;
            if (string.IsNullOrEmpty(lssq))
            {
                return(ReturnString.JsonToString(Prompt.error, "请先填写律师阅卷申请信息!", null));
            }
            lssqs = lssq.Split(new string[] { "|&|" }, StringSplitOptions.None);
            if (lssqs == null || lssqs.Length != 4)
            {
                return(ReturnString.JsonToString(Prompt.error, "您填写的律师阅卷申请信息不正确!", null));
            }

            string rybm = "";// Request.Form["lszh_hidd"];

            // string[] rybms = rybm.Split(new char[]{','},StringSplitOptions.RemoveEmptyEntries);
            //if(rybms.Length != 2)
            //    return ReturnString.JsonToString(Prompt.error, "请选择阅卷人!", null);
            if (Request.Form["txt_yjkssj"] == null || string.IsNullOrEmpty(Request.Form["txt_yjkssj"]))
            {
                return(ReturnString.JsonToString(Prompt.error, "请设置阅卷开始时间!", null));
            }
            if (Request.Form["txt_yjjssj"] == null || string.IsNullOrEmpty(Request.Form["txt_yjjssj"]))
            {
                return(ReturnString.JsonToString(Prompt.error, "请设置阅卷结束时间!", null));
            }
            if (Convert.ToDateTime(Request.Form["txt_yjkssj"]) > Convert.ToDateTime(Request.Form["txt_yjjssj"]))
            {
                return(ReturnString.JsonToString(Prompt.error, "结束时间不能小于开始时间!", null));
            }

            EDRS.BLL.TYYW_GG_AJJBXX   ajbll   = new EDRS.BLL.TYYW_GG_AJJBXX(Request);
            EDRS.Model.TYYW_GG_AJJBXX ajmodel = ajbll.GetModel(Request.Form["key_hidd"]);
            if (ajmodel == null)
            {
                return(ReturnString.JsonToString(Prompt.error, "分配失败," + ((VersionName)0).ToString() + "不存在!", null));
            }
            //json = json.Replace("id", "_wjxh").Replace("MLLX", "_fpbm").Replace("text", "_sfsc").Replace("PARENTID", "_yjxh");

            #region 律师阅卷申请
            EDRS.Model.YX_DZJZ_LSYJSQ modelLsyjsq = new EDRS.Model.YX_DZJZ_LSYJSQ();
            modelLsyjsq.LSZH   = lssqs[0];
            modelLsyjsq.YJSQDH = Guid.NewGuid().ToString();
            modelLsyjsq.SQSJ   = DateTime.Now;
            modelLsyjsq.SQSM   = lssqs[2];
            modelLsyjsq.SFSC   = "N";
            modelLsyjsq.SHRGH  = UserInfo.GH;
            modelLsyjsq.SHR    = UserInfo.MC;
            modelLsyjsq.SHSM   = "";
            modelLsyjsq.SHSJ   = DateTime.Now;
            modelLsyjsq.YJSQDM = lssqs[1];
            modelLsyjsq.SQDZT  = "Y";
            #endregion

            #region 律师阅卷绑定
            Random random = new Random();
            EDRS.Model.YX_DZJZ_LSAJBD model = new EDRS.Model.YX_DZJZ_LSAJBD();
            model.GH     = lssqs[0];
            model.BMSAH  = ajmodel.BMSAH;
            model.YJXH   = yjxh;
            model.MC     = lssqs[3];
            model.AJMC   = ajmodel.AJMC;
            model.AJLBBM = ajmodel.AJLB_BM;
            model.AJLBMC = ajmodel.AJLB_MC;
            model.YJKSSJ = Convert.ToDateTime(Request.Form["txt_yjkssj"]);
            model.YJJSSJ = Convert.ToDateTime(Request.Form["txt_yjjssj"]);
            model.YJZH   = lssqs[0];
            model.YJMM   = random.Next(100000, 999999).ToString();
            model.JDSJ   = DateTime.Now;
            model.JDR    = UserInfo.MC;
            model.JDRGH  = UserInfo.GH;
            model.JDBMBM = "";
            model.JDBMMC = "";
            model.JDDWBM = UserInfo.DWBM;
            model.JDDWMC = UserInfo.DWMC;
            model.SFSC   = "N";
            model.YJSQDH = modelLsyjsq.YJSQDH;
            model.JZZTXS = "";
            model.DWBM   = UserInfo.DWBM;
            #endregion

            #region 律师阅卷绑定文件
            List <EDRS.Model.YX_DZJZ_LSAJWJFP> modelList = JsonHelper.JsonToList <EDRS.Model.YX_DZJZ_LSAJWJFP>(json);
            #endregion

            EDRS.BLL.YX_DZJZ_LSAJBD bllBD = new EDRS.BLL.YX_DZJZ_LSAJBD(Request);
            try
            {
                if (bllBD.AddList(modelLsyjsq, model, modelList))
                {
                    OperateLog.AddLog(OperateLog.LogType.阅卷Web, "分配成功", "", UserInfo, UserRole, this.Request);
                    return(JsonHelper.JsonString(model));
                }

                //return ReturnString.JsonToString(Prompt.win, "分配成功!", null);
            }
            catch (Exception ex)
            {
                return(ReturnString.JsonToString(Prompt.error, StringPlus.String2Json(ex.Message), null));
            }
            OperateLog.AddLog(OperateLog.LogType.阅卷Web, "分配失败", "", UserInfo, UserRole, this.Request);
            return(ReturnString.JsonToString(Prompt.error, "分配失败!", null));
        }
예제 #7
0
        /// <summary>
        /// 保存分配案件文件
        /// </summary>
        /// <returns></returns>
        private string AddData()
        {
            string json = Request.Form["json"];
            string yjxh = Guid.NewGuid().ToString().Replace("-", "").ToUpper();  //"山东省院捕受[2015]37000000054号";
            string rybm = Request.Form["lszh_hidd"];

            string[] rybms = rybm.Split(new char[] { ',' }, StringSplitOptions.RemoveEmptyEntries);
            if (rybms.Length != 2)
            {
                return(ReturnString.JsonToString(Prompt.error, "请选择阅卷人!", null));
            }
            if (Request.Form["txt_yjkssj"] == null || string.IsNullOrEmpty(Request.Form["txt_yjkssj"]))
            {
                return(ReturnString.JsonToString(Prompt.error, "请设置阅卷开始时间!", null));
            }
            if (Request.Form["txt_yjjssj"] == null || string.IsNullOrEmpty(Request.Form["txt_yjjssj"]))
            {
                return(ReturnString.JsonToString(Prompt.error, "请设置阅卷结束时间!", null));
            }
            if (Convert.ToDateTime(Request.Form["txt_yjkssj"]) > Convert.ToDateTime(Request.Form["txt_yjjssj"]))
            {
                return(ReturnString.JsonToString(Prompt.error, "结束时间不能小于开始时间!", null));
            }

            EDRS.BLL.TYYW_GG_AJJBXX   ajbll   = new EDRS.BLL.TYYW_GG_AJJBXX(Request);
            EDRS.Model.TYYW_GG_AJJBXX ajmodel = ajbll.GetModel(Request.Form["key_hidd"]);
            if (ajmodel == null)
            {
                return(ReturnString.JsonToString(Prompt.error, "分配失败," + ((VersionName)0).ToString() + "不存在!", null));
            }
            //json = json.Replace("id", "_wjxh").Replace("MLLX", "_fpbm").Replace("text", "_sfsc").Replace("PARENTID", "_yjxh");
            Random random = new Random();

            EDRS.Model.YX_DZJZ_LSAJBD model = new EDRS.Model.YX_DZJZ_LSAJBD();
            model.GH     = rybms[0];
            model.BMSAH  = ajmodel.BMSAH;
            model.YJXH   = yjxh;
            model.MC     = Request.Form["txt_lsxm"];
            model.AJMC   = ajmodel.AJMC;
            model.AJLBBM = ajmodel.AJLB_BM;
            model.AJLBMC = ajmodel.AJLB_MC;
            model.YJKSSJ = Convert.ToDateTime(Request.Form["txt_yjkssj"]);
            model.YJJSSJ = Convert.ToDateTime(Request.Form["txt_yjjssj"]);
            model.YJZH   = random.Next(100000, 999999).ToString();
            model.YJMM   = random.Next(100000, 999999).ToString();
            model.JDSJ   = DateTime.Now;
            model.JDR    = UserInfo.MC;
            model.JDRGH  = UserInfo.GH;
            model.JDBMBM = "";
            model.JDBMMC = "";
            model.JDDWBM = UserInfo.DWBM;
            model.JDDWMC = UserInfo.DWMC;
            model.SFSC   = "N";
            model.YJSQDH = "";//Request.Form["yjsqdh"];
            model.JZZTXS = "";
            model.DWBM   = rybms[1];
            EDRS.BLL.YX_DZJZ_LSAJBD          bllBD     = new EDRS.BLL.YX_DZJZ_LSAJBD(Request);
            List <EDRS.Model.YX_DZJZ_LSAJBD> listModel = bllBD.GetModelList(" and YJXH=:YJXH", new object[] { Request.Form["yjxh"] });

            if (listModel == null || listModel.Count == 0)
            {
                if (!bllBD.Add(model))
                {
                    return(ReturnString.JsonToString(Prompt.error, "分配失败!", null));
                }
            }
            else
            {
                yjxh = listModel[0].YJXH;
                listModel[0].BMSAH  = ajmodel.BMSAH;
                listModel[0].GH     = rybms[0];
                listModel[0].DWBM   = rybms[1];
                listModel[0].MC     = Request.Form["txt_lsxm"];
                listModel[0].AJMC   = ajmodel.AJMC;
                listModel[0].AJLBBM = ajmodel.AJLB_BM;
                listModel[0].AJLBMC = ajmodel.AJLB_MC;
                listModel[0].YJKSSJ = Convert.ToDateTime(Request.Form["txt_yjkssj"]);
                listModel[0].YJJSSJ = Convert.ToDateTime(Request.Form["txt_yjjssj"]);
                if (!bllBD.Update(listModel[0]))
                {
                    return(ReturnString.JsonToString(Prompt.error, "修改分配失败!", null));
                }
            }

            List <EDRS.Model.YX_DZJZ_LSAJWJFP> modelList = JsonHelper.JsonToList <EDRS.Model.YX_DZJZ_LSAJWJFP>(json);

            if (modelList != null && modelList.Count > 0)
            {
                EDRS.BLL.YX_DZJZ_LSAJWJFP bll = new EDRS.BLL.YX_DZJZ_LSAJWJFP(Request);
                if (bll.AddList(modelList, model, yjxh))
                {
                    return(ReturnString.JsonToString(Prompt.win, "分配成功!", null));
                }
            }
            return(ReturnString.JsonToString(Prompt.error, "分配失败!", null));
        }
예제 #8
0
        public object[] SetYjKh(string kh, string yjxh)
        {
            if (string.IsNullOrEmpty(kh) || string.IsNullOrEmpty(yjxh))
            {
                return(new object[] { false, "卡号和阅卷序号不能为空" });
            }
            EDRS.BLL.YX_DZJZ_LSAJBD bll = new EDRS.BLL.YX_DZJZ_LSAJBD(HttpContext.Current.Request);
            try
            {
                DataSet ds = bll.GetYZYJZH(" and JDBMMC=:JDBMMC", new object[] { kh });

                if (ds != null && ds.Tables.Count > 0)
                {
                    if (ds.Tables[0].Rows.Count > 0)
                    {
                        DataRow[] dr = ds.Tables[0].Select("SQDZT='X'");
                        if (dr.Length > 0)
                        {
                            return new object[] { false, "该卡正在使用" }
                        }
                        ;
                    }
                    EDRS.Model.YX_DZJZ_LSAJBD model = bll.GetModel(yjxh);
                    if (model != null)
                    {
                        model.JDBMMC = kh;
                        try
                        {
                            if (bll.Update(model))
                            {
                                EDRS.BLL.YX_DZJZ_LSYJSQ          bllsq = new EDRS.BLL.YX_DZJZ_LSYJSQ(HttpContext.Current.Request);
                                List <EDRS.Model.YX_DZJZ_LSYJSQ> list  = bllsq.GetModelList(" and LSZH=:LSZH", new object[] { model.GH });
                                if (list != null && list.Count > 0)
                                {
                                    list[0].SQDZT = "X";
                                    if (bllsq.Update(list[0]))
                                    {
                                        return new object[] { true, "写卡成功" }
                                    }
                                    ;
                                    else
                                    {
                                        model.JDBMMC = "";

                                        bll.Update(model);
                                    }
                                }
                            }
                        }
                        catch (Exception ex)
                        {
                            return(new object[] { false, ex.Message });
                        }
                        return(new object[] { false, "写卡失败" });
                    }
                    return(new object[] { false, "阅卷信息不存在" });
                }
            }
            catch (Exception ex)
            {
                return(new object[] { false, ex.Message });
            }
            return(new object[] { false, "验证卡号失败" });
        }
예제 #9
0
        /// <summary>
        /// 保存分配案件文件
        /// </summary>
        /// <returns></returns>
        private string AddData()
        {
            string json = Request.Form["json"];
            string yjxh = Guid.NewGuid().ToString().Replace("-", "").ToUpper();  //"山东省院捕受[2015]37000000054号";

            string lssq = Request.Form["lssq"];

            string[] lssqs = null;
            if (string.IsNullOrEmpty(lssq))
            {
                return(ReturnString.JsonToString(Prompt.error, "请先填写阅卷登记信息!", null));
            }
            lssqs = lssq.Split(new string[] { "|&|" }, StringSplitOptions.None);
            if (lssqs == null || lssqs.Length != 8)
            {
                return(ReturnString.JsonToString(Prompt.error, "填写的阅卷登记信息不正确!", null));
            }

            string rybm = "";// Request.Form["lszh_hidd"];

            // string[] rybms = rybm.Split(new char[]{','},StringSplitOptions.RemoveEmptyEntries);
            //if(rybms.Length != 2)
            //    return ReturnString.JsonToString(Prompt.error, "请选择阅卷人!", null);

            /* 2016-9-6 取消设置阅卷时间
             * if (Request.Form["txt_yjkssj"] == null || string.IsNullOrEmpty(Request.Form["txt_yjkssj"]))
             *  return ReturnString.JsonToString(Prompt.error, "请设置阅卷开始时间!", null);
             * if (Request.Form["txt_yjjssj"] == null || string.IsNullOrEmpty(Request.Form["txt_yjjssj"]))
             *  return ReturnString.JsonToString(Prompt.error, "请设置阅卷结束时间!", null);
             * if (Convert.ToDateTime(Request.Form["txt_yjkssj"]) > Convert.ToDateTime(Request.Form["txt_yjjssj"]))
             *  return ReturnString.JsonToString(Prompt.error, "结束时间不能小于开始时间!", null);
             */
            EDRS.BLL.TYYW_GG_AJJBXX   ajbll   = new EDRS.BLL.TYYW_GG_AJJBXX(Request);
            EDRS.Model.TYYW_GG_AJJBXX ajmodel = ajbll.GetModel(Request.Form["key_hidd"]);
            if (ajmodel == null)
            {
                return(ReturnString.JsonToString(Prompt.error, "分配失败," + ((VersionName)0).ToString() + "不存在!", null));
            }
            //json = json.Replace("id", "_wjxh").Replace("MLLX", "_fpbm").Replace("text", "_sfsc").Replace("PARENTID", "_yjxh");

            #region 阅卷人信息
            // localStorage['lssq'] = $("#txt_yjr").val() + "|&|" + zjlx + "|&|" + $("#txt_zjh").val() + "|&|" + yjrsf + "|&|" + cxyy + "|&|" + shr + "|&|" + shbm + "|&|" + $("#txt_shr").val();
            EDRS.Model.YX_DZJZ_LSGL lsglModel = new EDRS.Model.YX_DZJZ_LSGL();
            lsglModel.LSZH     = Guid.NewGuid().ToString();
            lsglModel.LSXM     = lssqs[0]; //阅卷人
            lsglModel.LSDW     = lssqs[1]; //证件类型
            lsglModel.LSDWDZ   = lssqs[3]; //阅卷人身份
            lsglModel.LSDWYZHM = "";
            lsglModel.LSLXDH   = lssqs[2]; //证件号
            lsglModel.LSSJ     = "";
            lsglModel.DELXR    = lssqs[4]; //查询原因
            lsglModel.DELXRDH  = "";
            // lsglModel.LSZGYXSJ = ;
            lsglModel.SFDXZG   = "N";
            lsglModel.LSXXBZ   = "";
            lsglModel.CJSJ     = DateTime.Now;
            lsglModel.ZHYCYJSJ = null;
            lsglModel.SFSC     = "N";

            #endregion

            #region 律师阅卷申请
            EDRS.Model.YX_DZJZ_LSYJSQ modelLsyjsq = new EDRS.Model.YX_DZJZ_LSYJSQ();
            modelLsyjsq.LSZH   = lsglModel.LSZH;
            modelLsyjsq.YJSQDH = Guid.NewGuid().ToString();
            modelLsyjsq.SQSJ   = DateTime.Now;
            modelLsyjsq.SQSM   = lssqs[6]; //审核部门
            modelLsyjsq.SFSC   = "N";
            modelLsyjsq.SHRGH  = lssqs[5]; //审核人工号
            modelLsyjsq.SHR    = lssqs[7]; //审核人
            modelLsyjsq.SHSM   = "";
            modelLsyjsq.SHSJ   = null;
            modelLsyjsq.YJSQDM = "";
            modelLsyjsq.SQDZT  = "T";

            #endregion

            #region 律师阅卷绑定
            Random random = new Random();
            EDRS.Model.YX_DZJZ_LSAJBD model = new EDRS.Model.YX_DZJZ_LSAJBD();
            model.GH     = lsglModel.LSZH;
            model.BMSAH  = ajmodel.BMSAH;
            model.YJXH   = yjxh;
            model.MC     = lssqs[0];
            model.AJMC   = ajmodel.AJMC;
            model.AJLBBM = ajmodel.AJLB_BM;
            model.AJLBMC = ajmodel.AJLB_MC;
            model.YJKSSJ = DateTime.Now; // Convert.ToDateTime(Request.Form["txt_yjkssj"]);
            model.YJJSSJ = null;         // Convert.ToDateTime(Request.Form["txt_yjjssj"]);
            model.YJZH   = lssqs[0];
            model.YJMM   = random.Next(100000, 999999).ToString();
            model.JDSJ   = DateTime.Now;
            model.JDR    = UserInfo.MC;
            model.JDRGH  = UserInfo.GH;
            model.JDBMBM = "";
            model.JDBMMC = "";
            model.JDDWBM = UserInfo.DWBM;
            model.JDDWMC = UserInfo.DWMC;
            model.SFSC   = "N";
            model.YJSQDH = modelLsyjsq.YJSQDH;
            model.JZZTXS = "";
            model.DWBM   = UserInfo.DWBM;
            #endregion

            #region 律师阅卷绑定文件
            List <EDRS.Model.YX_DZJZ_LSAJWJFP> modelList = JsonHelper.JsonToList <EDRS.Model.YX_DZJZ_LSAJWJFP>(json);
            #endregion

            EDRS.BLL.YX_DZJZ_LSAJBD bllBD = new EDRS.BLL.YX_DZJZ_LSAJBD(Request);
            try
            {
                if (bllBD.AddList(modelLsyjsq, model, modelList, lsglModel))
                {
                    OperateLog.AddLog(OperateLog.LogType.阅卷Web, "分配成功", "", UserInfo, UserRole, this.Request);
                    return(JsonHelper.JsonString(model));
                }

                //return ReturnString.JsonToString(Prompt.win, "分配成功!", null);
            }
            catch (Exception ex)
            {
                return(ReturnString.JsonToString(Prompt.error, StringPlus.String2Json(ex.Message), null));
            }
            OperateLog.AddLog(OperateLog.LogType.阅卷Web, "分配失败", "", UserInfo, UserRole, this.Request);
            return(ReturnString.JsonToString(Prompt.error, "分配失败!", null));
        }