private string UpDate2() { string dwbm = Request["dwbm"]; string sslbbm = Request["sslbbm"]; string ajlbbm = Request["ajlbbm"]; List <object> param = new List <object>(); string strWhere = " and unitID=:dwbm"; param.Add(dwbm); strWhere += " and CASEINFOTYPEID=:CASEINFOTYPEID"; param.Add(ajlbbm); strWhere += " and sslbbm=:sslbbm"; param.Add(sslbbm); EDRS.BLL.XY_DZJZ_MBPZB bll = new XY_DZJZ_MBPZB(Request); DataSet ds = bll.GetList(strWhere, param.ToArray()); EDRS.Model.XY_DZJZ_MBPZB model = new EDRS.Model.XY_DZJZ_MBPZB(); string msg = string.Empty; if (ds != null && ds.Tables.Count > 0 && ds.Tables[0].Rows.Count > 0) { DataRow dr = ds.Tables[0].Rows[0]; model = bll.GetModel(dr["DOSSIERTYPEVALUEMEMBER"].ToString()); if (model != null) { if (string.IsNullOrEmpty(Request.Form.Get("txt_rank"))) { model.SortIndex = 1; } else { model.SortIndex = int.Parse(Request.Form.Get("txt_rank")); } if (bool.Parse(Request.Form.Get("chk_autoFound_ar"))) { model.Auto = "Y"; } else { model.Auto = "N"; } if (bll.Update(model)) { //数据日志 OperateLog.AddLog(OperateLog.LogType.卷宗模板配置Web, "修改模板配置成功", Request.Form.Get("txt_name_up"), UserInfo, UserRole, this.Request); return(ReturnString.JsonToString(Prompt.win, "保存成功", null)); } //数据日志 OperateLog.AddLog(OperateLog.LogType.卷宗模板配置Web, "修改模板配置失败" + msg, Request.Form.Get("txt_name_up"), UserInfo, UserRole, this.Request); return(ReturnString.JsonToString(Prompt.error, "保存失败", null)); } } //数据日志 OperateLog.AddLog(OperateLog.LogType.卷宗模板配置Web, "修改模板配置未找到修改信息" + msg, Request.Form.Get("txt_name_up"), UserInfo, UserRole, this.Request); return(ReturnString.JsonToString(Prompt.error, "未找到需要修改信息", null)); }
private string GetYpzmb() { string dwbm = Request["dwbm"]; string sslbbm = Request["sslbbm"]; string ajlbbm = Request["ajlbbm"]; List <object> param = new List <object>(); string strWhere = " and unitID=:dwbm"; param.Add(dwbm); strWhere += " and CASEINFOTYPEID=:CASEINFOTYPEID"; param.Add(ajlbbm); strWhere += " and sslbbm=:sslbbm"; param.Add(sslbbm); EDRS.BLL.XY_DZJZ_MBPZB bll = new XY_DZJZ_MBPZB(Request); DataSet ds = bll.GetList(strWhere, param.ToArray()); string jsonResult = ""; if (ds != null && ds.Tables.Count > 0 && ds.Tables[0].Rows.Count > 0) { jsonResult = ds.Tables[0].Rows[0]["AUTO"] + "," + ds.Tables[0].Rows[0]["SORTINDEX"]; } return(ReturnString.JsonToString(Prompt.win, "", jsonResult)); }