Exemple #1
0
 public void AddData(HttpContext context)
 {
     EDRS.Model.YX_DZJZ_LSGL model = new EDRS.Model.YX_DZJZ_LSGL();
     model.LSZH     = context.Request["LSZH"];
     model.LSXM     = context.Request["LSXM"];
     model.LSDW     = context.Request["LSDW"];
     model.LSDWDZ   = context.Request["LSDWDZ"];
     model.LSDWYZHM = context.Request["LSDWYZHM"];
     model.LSLXDH   = context.Request["LSLXDH"];
     model.LSSJ     = context.Request["LSSJ"];
     model.DELXR    = context.Request["DELXR"];
     model.DELXRDH  = context.Request["DELXRDH"];
     model.LSZGYXSJ = Convert.ToDateTime(context.Request["LSZGYXSJ"]);
     model.SFDXZG   = "N";//this.SFDXZG.Checked ? "Y" : "N";
     model.LSXXBZ   = context.Request["LSXXBZ"];
     model.LSZZWJ1  = "";
     model.LSZZWJ2  = "";
     model.LSZZWJ3  = "";
     model.LSZZWJ4  = "";
     string[] LSZZWJ = context.Request["LSZZWJ"].Split(',');
     model.CJSJ = DateTime.Now;
     EDRS.BLL.YX_DZJZ_LSGL bll = new YX_DZJZ_LSGL(context.Request);
     if (bll.Add(model))
     {
         //成功后再保存资质文件关联
         List <string> fileList = new List <string>();
         foreach (string file in LSZZWJ)
         {
             if (file != "")
             {
                 fileList.Add(file);
             }
         }
         EDRS.BLL.YX_DZJZ_LSZZWJ WJBLL = new YX_DZJZ_LSZZWJ(context.Request);
         if (fileList.Count == 0 || WJBLL.AddList(model.LSZH, fileList))
         {
             context.Response.Write(ReturnString.JsonToString(Prompt.win, "保存成功", null));
             //true
         }
         else
         {
             context.Response.Write(ReturnString.JsonToString(Prompt.error, "保存失败", null));
             //false
         }
     }
     else
     {
         context.Response.Write(ReturnString.JsonToString(Prompt.error, "保存失败", null));
         //false
     }
 }
Exemple #2
0
        private void DelData(HttpContext context)
        {
            string lszh = context.Request["lszh"];

            EDRS.BLL.YX_DZJZ_LSGL BLL = new YX_DZJZ_LSGL(context.Request);
            if (BLL.Delete(lszh))
            {
                context.Response.Write(ReturnString.JsonToString(Prompt.win, "删除成功", null));
            }
            else
            {
                context.Response.Write(ReturnString.JsonToString(Prompt.error, "删除失败", null));
            }
        }
Exemple #3
0
        private void ListBind(HttpContext context)
        {
            string dwbm = context.Request["dkey"];

            if (string.IsNullOrEmpty(dwbm))
            {
                dwbm = UserInfo.DWBM;
            }
            string where = "";
            List <object> param          = new List <object>();
            string        lszh           = context.Request.Form["txt_id"];
            string        lsxm           = context.Request.Form["txt_name"];
            string        txt_time_begin = context.Request.Form["txt_time_begin"];
            string        txt_time_end   = context.Request.Form["txt_time_end"];

            if (!string.IsNullOrEmpty(dwbm))
            {
                where += " AND LSDW = :LSDW";
                param.Add(dwbm);
            }
            if (!string.IsNullOrEmpty(lszh))
            {
                where += " AND LSZH LIKE :LSZH";
                param.Add("%" + lszh + "%");
            }
            if (!string.IsNullOrEmpty(lsxm))
            {
                where += " AND LSXM LIKE :LSXM";
                param.Add("%" + lsxm + "%");
            }

            if (!string.IsNullOrEmpty(txt_time_begin))
            {
                where += " AND CJSJ >= :CJSJ1";
                param.Add(Convert.ToDateTime(txt_time_begin));
            }
            if (!string.IsNullOrEmpty(txt_time_end))
            {
                where += " AND CJSJ <= :CJSJ2";
                param.Add(Convert.ToDateTime(txt_time_end).AddDays(1));
            }

            EDRS.BLL.YX_DZJZ_LSGL BLL = new YX_DZJZ_LSGL(context.Request);

            DataSet ds   = BLL.GetList(where, param.ToArray());
            string  json = "{\"Rows\":" + ds.Tables[0].ToDatagridJson() + "}";

            context.Response.Write(json);
        }
Exemple #4
0
        private void GetModelPList(HttpContext context)
        {
            EDRS.BLL.YX_DZJZ_LSGL   bll   = new YX_DZJZ_LSGL(context.Request);
            EDRS.Model.YX_DZJZ_LSGL model = new EDRS.Model.YX_DZJZ_LSGL();
            string LSZH = context.Request["LSZH"];

            if (string.IsNullOrEmpty(LSZH))
            {
                context.Response.Write(ReturnString.JsonToString(Prompt.error, "参数错误", null));
            }
            model = bll.GetModel(LSZH);
            if (model != null)
            {
                context.Response.Write(EDRS.Common.JsonHelper.JsonString(model));
            }
            else
            {
                context.Response.Write(ReturnString.JsonToString(Prompt.error, "获取数据失败", null));
            }
        }
Exemple #5
0
        /// 根据律师证号获取律师详细信息
        /// </summary>
        /// <returns></returns>
        private string GetLS()
        {
            string lszh = Request.Form["lszh"];

            EDRS.BLL.YX_DZJZ_LSGL bll = new YX_DZJZ_LSGL(this.Request);
            DataSet ds = bll.GetListfile(" and YX_DZJZ_LSGL.LSZH='" + lszh + "'", null);

            if (ds != null && ds.Tables.Count > 0)
            {
                DataTable dt = ds.Tables[0];
                if (dt != null && dt.Columns.Count > 0 && dt.Rows.Count > 0)
                {
                    //数据日志
                    OperateLog.AddLog(OperateLog.LogType.阅卷Web, "根据编号获取律师信息成功", "", UserInfo, UserRole, this.Request);
                    return(JsonHelper.JsonString(dt));
                }
            }
            //数据日志
            OperateLog.AddLog(OperateLog.LogType.阅卷Web, "根据编号获取律师信息失败", "", UserInfo, UserRole, this.Request);
            return(ReturnString.JsonToString(Prompt.error, "获取数据失败", null));
        }
Exemple #6
0
        /// <summary>
        /// 绑定律师姓名
        /// </summary>
        /// <returns></returns>
        private string bindlsxm()
        {
            string key = Request.Form["key"];

            string where = "";
            if (!string.IsNullOrEmpty(key))
            {
                where = " and LSXM like '%" + key + "%'";
            }
            EDRS.BLL.YX_DZJZ_LSGL bll = new YX_DZJZ_LSGL(Request);
            DataSet ds = bll.GetListByPage(" and SFSC='N'" + where, "CJSJ desc", 1, int.MaxValue);

            if (ds != null && ds.Tables[0].Rows.Count > 0)
            {
                //数据日志
                OperateLog.AddLog(OperateLog.LogType.阅卷Web, "律师绑定信息成功", "", UserInfo, UserRole, this.Request);
                return(JsonHelper.JsonString(ds.Tables[0]));
            }
            else
            {
                OperateLog.AddLog(OperateLog.LogType.阅卷Web, "未找到律师绑定信息", "", UserInfo, UserRole, this.Request);
                return(ReturnString.JsonToString(Prompt.error, "未找到律师绑定信息", null));
            }
        }
Exemple #7
0
 private void ExitsLSZH(HttpContext context)
 {
     EDRS.BLL.YX_DZJZ_LSGL BLL = new YX_DZJZ_LSGL(context.Request);
     context.Response.Write(BLL.Exists(context.Request["LSZH"]));
 }