/// <summary> /// 获取ICE统一业务配置参数 /// </summary> /// <param name="Request"></param> /// <param name="dwbm"></param> /// <param name="gh"></param> /// <returns></returns> public string GetConfiguration(string dwbm, string gh, IceServicePrx iceprx) { XY_DZJZ_XTPZ xtpzbll = new XY_DZJZ_XTPZ(null); DataSet ds = xtpzbll.GetAllList(dwbm, gh); if (ds != null && ds.Tables.Count > 0 && ds.Tables[0].Rows.Count > 0) { DataRow[] dr = ds.Tables[0].Select("CONFIGID=" + (int)EnumConfig.访问统一业务ICE地址); if (dr.Length > 0 && dr[0]["CONFIGVALUE"] != null) { iceprx.DownPrx = dr[0]["CONFIGVALUE"].ToString(); } else { return(ReturnString.JsonToString(Prompt.error, "请先在系统配置模块配置访问统一业务ICE地址", null)); } dr = ds.Tables[0].Select("CONFIGID=" + (int)EnumConfig.ICE消息包大小); if (dr.Length > 0 && dr[0]["CONFIGVALUE"] != null) { iceprx.SizeMax = Convert.ToDecimal(dr[0]["CONFIGVALUE"].ToString()); } else { return(ReturnString.JsonToString(Prompt.error, "请先在系统配置模块配置ICE消息包大小", null)); } } else { return(ReturnString.JsonToString(Prompt.error, "请先在系统配置模块中进行配置", null)); } return(""); }
/// <summary> /// 根据系统配置的配置编号获取对应的配置信息 /// </summary> /// <param name="id"></param> /// <returns></returns> public EDRS.Model.XY_DZJZ_XTPZ GetConfigById(EnumConfig econfig) { string where = string.Empty; object[] values = new object[1]; where = " and CONFIGID=:CONFIGID and SYSTEMMARK=1"; values[0] = (int)econfig; EDRS.BLL.XY_DZJZ_XTPZ bll = new EDRS.BLL.XY_DZJZ_XTPZ(this.Request); List <EDRS.Model.XY_DZJZ_XTPZ> modelList = bll.GetModelList(where, values); if (modelList != null && modelList.Count > 0) { return(modelList[0]); } return(null); }
/// <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 = string.Empty; object[] values = new object[1]; if (!string.IsNullOrEmpty(key)) { where += " and CONFIGNAME like :CONFIGNAME "; values[0] = "%" + key + "%"; } EDRS.BLL.XY_DZJZ_XTPZ bll = new EDRS.BLL.XY_DZJZ_XTPZ(this.Request); DataSet ds = bll.GetListByPage(where, "", (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); DataTable dt = (ds.Tables[0]).Copy(); foreach (DataRow dr in dt.Rows) { dr["CONFIGNAME"] = Enum.Parse(typeof(EnumConfig), dr["CONFIGID"].ToString(), true).ToString(); } return("{\"Total\":" + count + ",\"Rows\":" + JsonHelper.JsonString(dt) + "}"); } //数据日志 OperateLog.AddLog(OperateLog.LogType.参数配置Web, "绑定参数配置列表未找到信息", UserInfo, UserRole, this.Request); return(ReturnString.JsonToString(Prompt.error, "未找到配置信息", null)); }
/// <summary> /// 添加配置数据 /// </summary> /// <returns></returns> private string AddData() { string type = Request.Form.Get("txt_type"); //打印类型 string ywlx = Request.Form.Get("txt_ywlx"); //业务名称 string ywbm = Request.Form.Get("txt_ywlx_val"); //业务名称 string nf = Request.Form.Get("txt_nf"); //年份 string z = Request.Form.Get("txt_z"); //字 string h = Request.Form.Get("txt_h"); //号 string bmsah = "(" + nf + ")" + UserDwbm.DWJC + z + "字第" + h + "号"; //(2016)深南法少刑初字第2号 string ajmc = Request.Form.Get("txt_fbt"); //案由 string lbmc = z; //类别名称 string ajlb = (string.IsNullOrEmpty(Request.Form.Get("txt_z_val")) ? "" : Request.Form.Get("txt_z_val")); //案件类别编码 string lasj = Request.Form.Get("txt_sasj"); //收案日期 string jasj = Request.Form.Get("txt_jasj"); //结案时间 string ladw = UserDwbm.DWBM; //Request.Form.Get("txt_ladw_val"); //立卷单位 string ladw_mc = UserDwbm.DWMC; // Request.Form.Get("txt_ladw"); //立卷单位名称 string ljr = ""; //Request.Form.Get("txt_lar_val"); //立卷人 string ljr_mc = string.IsNullOrEmpty(Request.Form.Get("txt_cbr")) ? "" : Request.Form.Get("txt_cbr"); //承办人 string shr = string.IsNullOrEmpty(Request.Form.Get("txt_shr")) ? "" : Request.Form.Get("txt_shr"); //审核人 string zjs = (string.IsNullOrEmpty(Request.Form.Get("txt_bjgjc")) ? "0" : Request.Form.Get("txt_bjgjc")); //本案共卷 string djj = string.IsNullOrEmpty(Request.Form.Get("txt_sdjc")) ? "0" : Request.Form.Get("txt_sdjc"); //第几卷 string djy = (string.IsNullOrEmpty(Request.Form.Get("txt_ngjy")) ? "0" : Request.Form.Get("txt_ngjy")); //第几页 string xyr = ""; //嫌疑人 string sfzh = ""; //身份证号 string taryxx = ""; //同人信息 string ajbh = ""; // Request.Form.Get("txt_ajbh"); //案件编号 string wsbh = ""; //Request.Form.Get("wsbh_hidd"); string wsmc = ""; //Request.Form.Get("txt_wsbh"); //判断案件名称 //if (string.IsNullOrEmpty(ajmc)) //{ // return ReturnString.JsonToString(Prompt.error, "必须填写案由", null); //} //判断年份 if (string.IsNullOrEmpty(nf)) { return(ReturnString.JsonToString(Prompt.error, "请选择年份", null)); } //判断字 if (string.IsNullOrEmpty(z)) { return(ReturnString.JsonToString(Prompt.error, "请选择字", null)); } //判断号 if (string.IsNullOrEmpty(h)) { return(ReturnString.JsonToString(Prompt.error, "必须填写号", null)); } //案号名称 if (string.IsNullOrEmpty(bmsah)) { return(ReturnString.JsonToString(Prompt.error, "必须填写案号名称", null)); } //案由 if (string.IsNullOrEmpty(ajmc)) { return(ReturnString.JsonToString(Prompt.error, "必须填写案由", null)); } //判断案件类别 if (string.IsNullOrEmpty(ajlb)) { return(ReturnString.JsonToString(Prompt.error, "必须填写案件类别", null)); } // EDRS.BLL.YX_DZJZ_JZJBXX jbxxbll = new YX_DZJZ_JZJBXX(Request); if (!string.IsNullOrEmpty(ajmc) && !string.IsNullOrEmpty(ajlb))//&& !string.IsNullOrEmpty(ajbh) { EDRS.Model.TYYW_GG_AJJBXX model = new EDRS.Model.TYYW_GG_AJJBXX(); EDRS.Model.YX_DZJZ_JZJBXX jbxxmodel = new EDRS.Model.YX_DZJZ_JZJBXX(); EDRS.Model.TYYW_GG_AJJBXXKZ modelkz = new EDRS.Model.TYYW_GG_AJJBXXKZ(); //EDRS.BLL.XT_DM_AJLBBM ajlbbmBll = new XT_DM_AJLBBM(Request); //EDRS.Model.XT_DM_AJLBBM ajlbModel = ajlbbmBll.GetModel(ajlb); //if (ajlbModel != null) // lbjc = ajlbModel.AJSLJC; //if (string.IsNullOrEmpty(lbjc)) // lbjc = lbmc; #region 公共案件基本信息 //string bmsahName = ajlb + "[" + DateTime.Now.Year + "]" + UserInfo.DWBM; //string num = "00001号"; //TYYW_GG_AJJBXX jzajxx = new TYYW_GG_AJJBXX(this.Request); //DataSet ds = jzajxx.GetListByPage(" and bmsah like '" + bmsahName + "%'", "bmsah desc", 1, 1, null); //if (ds != null && ds.Tables.Count == 1 && ds.Tables[0].Rows.Count == 1) //{ // num = ds.Tables[0].Rows[0]["bmsah"].ToString().Replace(bmsahName, "").Replace("号", ""); // num = (Convert.ToInt32(num) + 1).ToString().PadLeft(5, '0') + "号"; //} //山东省院起诉受[2015]37000000072号 //model.BMSAH = bmsahName + num; model.BMSAH = bmsah; model.TYSAH = Guid.NewGuid().ToString().ToUpper().Replace("-", ""); model.SFSC = "N"; model.SFYGXTSJ = "N"; model.CBDW_BM = UserInfo.DWBM; model.CBDW_MC = UserInfo.DWMC; model.FQDWBM = Convert.ToDecimal(UserInfo.DWBM.Substring(0, 4)); model.FQL = DateTime.Now.Year.ToString(); model.CJSJ = DateTime.Now; model.ZHXGSJ = DateTime.Now; model.SLRQ = (string.IsNullOrEmpty(lasj) ? DateTime.Now : Convert.ToDateTime(lasj));// DateTime.Now; model.AJMC = ajmc; model.AJLB_BM = ajlb; model.AJLB_MC = lbmc; model.XYR = xyr; model.SFZH = sfzh; model.TARYXX = taryxx; if (!string.IsNullOrEmpty(jasj)) { model.BJRQ = Convert.ToDateTime(jasj); } model.CBDW_BM = ladw; model.CBDW_MC = ladw_mc; model.CBR = ljr_mc; model.CBRGH = ljr; //2016-6-6 增字段 model.SHR = shr; //审核人 model.SHSJ = DateTime.Now; //审核时间 model.ZJS = Convert.ToDecimal(zjs); //总卷数 model.DJJ = djj; //第几卷 model.ZYS = Convert.ToDecimal(djy); //总页数 #endregion //if (jzajxx.Add(model)) //{ #region 卷宗基本信息 //string count = "0"; //count = jbxxbll.GetRecordCount("", null).ToString(); //count = count.PadLeft(5, '0'); jbxxmodel.JZBH = DateTime.Now.ToString("yyyyMMddHHmmssfff"); jbxxmodel.SFSC = "N"; jbxxmodel.CJSJ = DateTime.Now; jbxxmodel.ZHXGSJ = DateTime.Now; jbxxmodel.FQDWBM = 0; jbxxmodel.FQL = ""; jbxxmodel.DWBM = UserInfo.DWBM; jbxxmodel.BMSAH = model.BMSAH; jbxxmodel.TYSAH = model.TYSAH; //UserInfo.DWBM + DateTime.Now.ToString("yyyyMM") + jbxxbll.GetRecordCount("", null) + count; jbxxmodel.JZMC = ajmc; jbxxmodel.JZLJ = ""; jbxxmodel.JZSCSJ = DateTime.Now; jbxxmodel.JZSCRGH = UserInfo.GH; jbxxmodel.JZSCRXM = UserInfo.MC; jbxxmodel.JZMS = ""; jbxxmodel.JZXGH = "0"; jbxxmodel.SFKYGX = ""; jbxxmodel.GXYWBMJH = ""; jbxxmodel.MRSFGKPZ = ""; jbxxmodel.Accomplices = taryxx; jbxxmodel.Ajmb_bm = ajlb; jbxxmodel.Ajmb_mc = lbmc; jbxxmodel.Idnumber = sfzh; jbxxmodel.Isrecord = "0"; jbxxmodel.Suspectname = xyr; jbxxmodel.WSBH = wsbh; jbxxmodel.AJBH = ajbh; jbxxmodel.WSMC = wsmc; //jbxxmodel.ZZZT = "-1"; jbxxmodel.LAZZZT = "-1"; jbxxmodel.SMAJLA = "1"; jbxxmodel.SMAJCD = ""; #endregion #region 案件基本信息扩展 //modelkz.AJKZXH = ; modelkz.AHMC = bmsah; modelkz.AY = Request.Form.Get("txt_fbt"); modelkz.SAJG = Request.Form.Get("txt_ajmc"); modelkz.YG = Request.Form.Get("txt_ajbh"); modelkz.BG = Request.Form.Get("txt_fzxyr"); modelkz.YYR = string.IsNullOrEmpty(Request.Form.Get("txt_yyr")) ? "" : Request.Form.Get("txt_yyr"); modelkz.SQZXR = string.IsNullOrEmpty(Request.Form.Get("txt_sqzxr")) ? "" : Request.Form.Get("txt_sqzxr"); modelkz.BZXR = string.IsNullOrEmpty(Request.Form.Get("txt_bzxr")) ? "" : Request.Form.Get("txt_bzxr"); modelkz.SARQ = Convert.ToDateTime(Request.Form.Get("txt_sasj")); modelkz.JARQ = Convert.ToDateTime(Request.Form.Get("txt_jasj")); modelkz.CJJG = string.IsNullOrEmpty(Request.Form.Get("txt_cjjg")) ? "" : Request.Form.Get("txt_cjjg"); modelkz.ZXBD = string.IsNullOrEmpty(Request.Form.Get("txt_zxby")) ? "" : Request.Form.Get("txt_zxby"); modelkz.SLJG = string.IsNullOrEmpty(Request.Form.Get("txt_shjg")) ? "" : Request.Form.Get("txt_shjg"); modelkz.ZXJG = string.IsNullOrEmpty(Request.Form.Get("txt_zxjg")) ? "" : Request.Form.Get("txt_zxjg"); modelkz.JAFS = string.IsNullOrEmpty(Request.Form.Get("txt_jafs")) ? "" : Request.Form.Get("txt_jafs"); modelkz.GLDAXLH = string.IsNullOrEmpty(Request.Form.Get("txt_gldaxlh")) ? "" : Request.Form.Get("txt_gldaxlh"); modelkz.HYTCY = string.IsNullOrEmpty(Request.Form.Get("txt_hytcy")) ? "" : Request.Form.Get("txt_hytcy"); modelkz.CBR = string.IsNullOrEmpty(Request.Form.Get("txt_cbr")) ? "" : Request.Form.Get("txt_cbr"); modelkz.SJY = string.IsNullOrEmpty(Request.Form.Get("txt_sjy")) ? "" : Request.Form.Get("txt_sjy"); modelkz.ZCS = string.IsNullOrEmpty(Request.Form.Get("txt_bjgjc")) ? 0 : Convert.ToDecimal(Request.Form.Get("txt_bjgjc")); modelkz.DJC = string.IsNullOrEmpty(Request.Form.Get("txt_sdjc")) ? 0 : Convert.ToDecimal(Request.Form.Get("txt_sdjc")); modelkz.YS = string.IsNullOrEmpty(Request.Form.Get("txt_ngjy")) ? 0 : Convert.ToDecimal(Request.Form.Get("txt_ngjy")); modelkz.GDRQ = Convert.ToDateTime(Request.Form.Get("txt_gdrq")); modelkz.YWT = string.IsNullOrEmpty(Request.Form.Get("txt_ywt")) ? "" : Request.Form.Get("txt_ywt"); modelkz.BGQX = string.IsNullOrEmpty(Request.Form.Get("txt_bgqx")) ? "" : Request.Form.Get("txt_bgqx"); modelkz.AJLBBM = string.IsNullOrEmpty(Request.Form.Get("txt_z_val")) ? "" : Request.Form.Get("txt_z_val"); modelkz.AJLBMC = string.IsNullOrEmpty(Request.Form.Get("txt_z")) ? "" : Request.Form.Get("txt_z"); modelkz.H = Convert.ToDecimal(Request.Form.Get("txt_h")); modelkz.NF = string.IsNullOrEmpty(Request.Form.Get("txt_nf")) ? "" : Request.Form.Get("txt_nf"); modelkz.YWLBBM = string.IsNullOrEmpty(ywbm) ? "" : ywbm; modelkz.YWLBMC = string.IsNullOrEmpty(ywlx) ? "" : ywlx; modelkz.DWBM = UserInfo.DWBM; modelkz.DWMC = UserInfo.DWMC; modelkz.DWJC = UserDwbm.DWJC; modelkz.QAH = ""; modelkz.MLH = "G" + ywbm + "." + modelkz.AJLBBM; modelkz.JH = ""; modelkz.CZRGH = UserInfo.GH; modelkz.CZRMC = UserInfo.MC; modelkz.CZSJ = DateTime.Now; #endregion #region 操作制作参数 EDRS.BLL.XY_DZJZ_XTPZ xtpzbll = new EDRS.BLL.XY_DZJZ_XTPZ(Request); EDRS.Model.XY_DZJZ_XTPZ xtpz = xtpzbll.GetConfigById(EnumConfig.卷宗文件上传地址); if (xtpz == null) { return(ReturnString.JsonToString(Prompt.error, "请先配置卷宗文件上传地址", null)); } string linkType = string.Empty; //链接类型 string callBack = string.Empty; //路由链接模式地址 XT_DZJZ_ZZCS zzcsbll = new XT_DZJZ_ZZCS(Request); string bmbm = ""; string bmmc = ""; if (UserRole != null && UserRole.Count > 0) { bmbm = UserRole[0].BMBM; bmmc = UserRole[0].BMMC; } string strstring = string.Empty; string[] zks = new string[] { "BMSAH", "SFDC", "DWBM", "MC", "GH", "DWMC", "BMBM", "BMMC", "LJLX", "DZ1", "DZ2", "AJBH", "WSBH", "WSMC" }; List <EDRS.Model.XT_DZJZ_ZZCS> zzcsList = new List <EDRS.Model.XT_DZJZ_ZZCS>(); EDRS.Model.XT_DZJZ_ZZCS zzcsModel = null; string guid = Guid.NewGuid().ToString(); foreach (string dr in zks) { //制作参数(部门受案号,是否导出,单位编码,用户名称,单位名称,部门编码,部门名称,连接类型,文件上传地址,回调地址)<add key="ZzCsKey" value="BMSAH,SFDC,DWBM,MC,GH,DWMC,BMBM,BMMC,LJLX,DZ1,DZ2"/> zzcsModel = new EDRS.Model.XT_DZJZ_ZZCS(); zzcsModel.CSKEY = dr; zzcsModel.FZBS = guid; zzcsModel.DYSJ = DateTime.Now; switch (zzcsModel.CSKEY) { case "BMSAH": zzcsModel.CSVALUE = model.BMSAH; break; case "SFDC": zzcsModel.CSVALUE = type; break; case "DWBM": zzcsModel.CSVALUE = base.UserInfo.DWBM; break; case "MC": zzcsModel.CSVALUE = base.UserInfo.MC; break; case "GH": zzcsModel.CSVALUE = UserInfo.GH; break; case "DWMC": zzcsModel.CSVALUE = UserInfo.DWMC; break; case "BMBM": zzcsModel.CSVALUE = bmbm; break; case "BMMC": zzcsModel.CSVALUE = bmmc; break; case "LJLX": object obj3 = xtpzbll.GetConfigById(EnumConfig.连接类型); if (obj3 != null) { linkType = zzcsModel.CSVALUE = ((EDRS.Model.XY_DZJZ_XTPZ)obj3).CONFIGVALUE; } else { zzcsModel.CSVALUE = ""; } break; case "DZ1": zzcsModel.CSVALUE = xtpz.CONFIGVALUE; break; case "DZ2": object obj4 = xtpzbll.GetConfigById(EnumConfig.路由映射地址); if (obj4 != null && obj4 != DBNull.Value) { callBack = zzcsModel.CSVALUE = ((EDRS.Model.XY_DZJZ_XTPZ)obj4).CONFIGVALUE; } else { zzcsModel.CSVALUE = ""; } break; case "AJBH": zzcsModel.CSVALUE = ajbh; break; case "WSBH": zzcsModel.CSVALUE = wsbh; break; case "WSMC": zzcsModel.CSVALUE = wsmc; break; default: zzcsModel.CSVALUE = ""; break; } zzcsList.Add(zzcsModel); } if (zzcsbll.AddList(zzcsList)) { strstring = xtpz.CONFIGVALUE + "@" + linkType + "@" + callBack + "@" + guid + "@" + type; } #endregion EDRS.BLL.TYYW_GG_AJJBXX bll = new TYYW_GG_AJJBXX(Request); //判断存在调用修改 if (bll.GetRecordCount(" and BMSAH=:BMSAH", new object[] { bmsah }) > 0) { if (bll.UpdateList(model, modelkz, jbxxmodel)) { OperateLog.AddLog(OperateLog.LogType.案件卷宗制作Web, "添加" + ((VersionName)0).ToString() + "成功", model.BMSAH, UserInfo, UserRole, this.Request); return(ReturnString.JsonToString(Prompt.win, DESEncrypt.Encrypt(strstring), null)); } OperateLog.AddLog(OperateLog.LogType.案件卷宗制作Web, "保存数据失败", model.BMSAH, UserInfo, UserRole, this.Request); return(ReturnString.JsonToString(Prompt.error, "保存数据失败", null)); } if (bll.AddList(model, modelkz, jbxxmodel)) { if (xtpz != null) { OperateLog.AddLog(OperateLog.LogType.案件卷宗制作Web, "添加" + ((VersionName)0).ToString() + "成功", model.BMSAH, UserInfo, UserRole, this.Request); return(ReturnString.JsonToString(Prompt.win, DESEncrypt.Encrypt(strstring), null)); } return(ReturnString.JsonToString(Prompt.win, "未设置服务链接地址", null)); } OperateLog.AddLog(OperateLog.LogType.案件卷宗制作Web, "添加" + ((VersionName)0).ToString() + "失败", model.BMSAH, UserInfo, UserRole, this.Request); return(ReturnString.JsonToString(Prompt.error, "添加" + ((VersionName)0).ToString() + "失败", null)); } return(ReturnString.JsonToString(Prompt.error, "请将" + ((VersionName)0).ToString() + "信息填写完整", null)); }