/// <summary> /// 得到一个对象实体 /// </summary> public Model.CON_ZDXJZB GetModel(string ID) { StringBuilder strSql = new StringBuilder(); strSql.Append("select ID,BH,SJBH,FYR,LXDH,DZYJ,DZ,FYRQ,BLQX,FYNR,NRZY,YQ,FJDZ,FPSJ,JBRQ,JBYQ,LDPS,BZ,CJR,CJSJ,ZT,FJM,XJLY from CON_ZDXJZB "); strSql.Append(" where ID=:ID "); OracleParameter[] parameters = { new OracleParameter(":ID", OracleDbType.Varchar2, 36) }; parameters[0].Value = ID; Model.CON_ZDXJZB model = new Model.CON_ZDXJZB(); DataSet ds = DbHelperOra_new.Query(strSql.ToString(), parameters); if (ds.Tables[0].Rows.Count > 0) { return(DataRowToModel(ds.Tables[0].Rows[0])); } else { return(null); } }
/// <summary> /// 增加一条数据 /// </summary> public bool Add(Model.CON_ZDXJZB model) { StringBuilder strSql = new StringBuilder(); strSql.Append("insert into CON_ZDXJZB("); strSql.Append("ID,BH,SJBH,FYR,LXDH,DZYJ,DZ,FYRQ,BLQX,FYNR,NRZY,YQ,FJDZ,FPSJ,JBRQ,JBYQ,LDPS,BZ,CJR,CJSJ,ZT,FJM,XJLY)"); strSql.Append(" values ("); strSql.Append(":ID,:BH,:SJBH,:FYR,:LXDH,:DZYJ,:DZ,:FYRQ,:BLQX,:FYNR,:NRZY,:YQ,:FJDZ,:FPSJ,:JBRQ,:JBYQ,:LDPS,:BZ,:CJR,:CJSJ,:ZT,:FJM,:XJLY)"); OracleParameter[] parameters = { new OracleParameter(":ID", OracleDbType.Varchar2, 36), new OracleParameter(":BH", OracleDbType.Varchar2, 100), new OracleParameter(":SJBH", OracleDbType.Varchar2, 100), new OracleParameter(":FYR", OracleDbType.Varchar2, 100), new OracleParameter(":LXDH", OracleDbType.Varchar2, 36), new OracleParameter(":DZYJ", OracleDbType.Varchar2, 50), new OracleParameter(":DZ", OracleDbType.Varchar2, 50), new OracleParameter(":FYRQ", OracleDbType.Date), new OracleParameter(":BLQX", OracleDbType.Date), new OracleParameter(":FYNR", OracleDbType.Clob), new OracleParameter(":NRZY", OracleDbType.Varchar2, 4000), new OracleParameter(":YQ", OracleDbType.Varchar2, 2000), new OracleParameter(":FJDZ", OracleDbType.Varchar2, 300), new OracleParameter(":FPSJ", OracleDbType.Date), new OracleParameter(":JBRQ", OracleDbType.Date), new OracleParameter(":JBYQ", OracleDbType.Varchar2, 1000), new OracleParameter(":LDPS", OracleDbType.Varchar2, 1000), new OracleParameter(":BZ", OracleDbType.Varchar2, 1000), new OracleParameter(":CJR", OracleDbType.Varchar2, 36), new OracleParameter(":CJSJ", OracleDbType.Date), new OracleParameter(":ZT", OracleDbType.Int32, 1), new OracleParameter(":FJM", OracleDbType.Varchar2, 4000), new OracleParameter(":XJLY", OracleDbType.Varchar2, 200) }; parameters[0].Value = model.ID; parameters[1].Value = model.BH; parameters[2].Value = model.SJBH; parameters[3].Value = model.FYR; parameters[4].Value = model.LXDH; parameters[5].Value = model.DZYJ; parameters[6].Value = model.DZ; parameters[7].Value = model.FYRQ; parameters[8].Value = model.BLQX; parameters[9].Value = model.FYNR; parameters[10].Value = model.NRZY; parameters[11].Value = model.YQ; parameters[12].Value = model.FJDZ; parameters[13].Value = model.FPSJ; parameters[14].Value = model.JBRQ; parameters[15].Value = model.JBYQ; parameters[16].Value = model.LDPS; parameters[17].Value = model.BZ; parameters[18].Value = model.CJR; parameters[19].Value = model.CJSJ; parameters[20].Value = model.ZT; parameters[21].Value = model.FJM; parameters[22].Value = model.XJLY; int rows = DbHelperOra_new.ExecuteSql(strSql.ToString(), parameters); if (rows > 0) { return(true); } else { return(false); } }
/// <summary> /// 得到一个对象实体 /// </summary> public Model.CON_ZDXJZB DataRowToModel(DataRow row) { Model.CON_ZDXJZB model = new Model.CON_ZDXJZB(); if (row != null) { if (row["ID"] != null) { model.ID = row["ID"].ToString(); } if (row["BH"] != null) { model.BH = row["BH"].ToString(); } if (row["SJBH"] != null) { model.SJBH = row["SJBH"].ToString(); } if (row["FYR"] != null) { model.FYR = row["FYR"].ToString(); } if (row["LXDH"] != null) { model.LXDH = row["LXDH"].ToString(); } if (row["DZYJ"] != null) { model.DZYJ = row["DZYJ"].ToString(); } if (row["DZ"] != null) { model.DZ = row["DZ"].ToString(); } if (row["FYRQ"] != null && row["FYRQ"].ToString() != "") { model.FYRQ = DateTime.Parse(row["FYRQ"].ToString()); } if (row["BLQX"] != null && row["BLQX"].ToString() != "") { model.BLQX = DateTime.Parse(row["BLQX"].ToString()); } //model.FYNR=row["FYNR"].ToString(); if (row["NRZY"] != null) { model.NRZY = row["NRZY"].ToString(); } if (row["YQ"] != null) { model.YQ = row["YQ"].ToString(); } if (row["FJDZ"] != null) { model.FJDZ = row["FJDZ"].ToString(); } if (row["FPSJ"] != null && row["FPSJ"].ToString() != "") { model.FPSJ = DateTime.Parse(row["FPSJ"].ToString()); } if (row["JBRQ"] != null && row["JBRQ"].ToString() != "") { model.JBRQ = DateTime.Parse(row["JBRQ"].ToString()); } if (row["JBYQ"] != null) { model.JBYQ = row["JBYQ"].ToString(); } if (row["LDPS"] != null) { model.LDPS = row["LDPS"].ToString(); } if (row["BZ"] != null) { model.BZ = row["BZ"].ToString(); } if (row["CJR"] != null) { model.CJR = row["CJR"].ToString(); } if (row["CJSJ"] != null && row["CJSJ"].ToString() != "") { model.CJSJ = DateTime.Parse(row["CJSJ"].ToString()); } if (row["ZT"] != null && row["ZT"].ToString() != "") { model.ZT = decimal.Parse(row["ZT"].ToString()); } if (row["FJM"] != null) { model.FJM = row["FJM"].ToString(); } if (row["XJLY"] != null) { model.XJLY = row["XJLY"].ToString(); } } return(model); }
/// <summary> /// 更新一条数据 /// </summary> public bool Update(Model.CON_ZDXJZB model) { StringBuilder strSql = new StringBuilder(); strSql.Append("update CON_ZDXJZB set "); strSql.Append("BH=:BH,"); strSql.Append("SJBH=:SJBH,"); strSql.Append("FYR=:FYR,"); strSql.Append("LXDH=:LXDH,"); strSql.Append("DZYJ=:DZYJ,"); strSql.Append("DZ=:DZ,"); strSql.Append("FYRQ=:FYRQ,"); strSql.Append("BLQX=:BLQX,"); strSql.Append("FYNR=:FYNR,"); strSql.Append("NRZY=:NRZY,"); strSql.Append("YQ=:YQ,"); strSql.Append("FJDZ=:FJDZ,"); strSql.Append("FPSJ=:FPSJ,"); strSql.Append("JBRQ=:JBRQ,"); strSql.Append("JBYQ=:JBYQ,"); strSql.Append("LDPS=:LDPS,"); strSql.Append("BZ=:BZ,"); strSql.Append("CJR=:CJR,"); strSql.Append("CJSJ=:CJSJ,"); strSql.Append("ZT=:ZT,"); strSql.Append("FJM=:FJM,"); strSql.Append("XJLY=:XJLY"); strSql.Append(" where ID=:ID "); OracleParameter[] parameters = { new OracleParameter(":BH", OracleDbType.Varchar2, 100), new OracleParameter(":SJBH", OracleDbType.Varchar2, 100), new OracleParameter(":FYR", OracleDbType.Varchar2, 100), new OracleParameter(":LXDH", OracleDbType.Varchar2, 36), new OracleParameter(":DZYJ", OracleDbType.Varchar2, 50), new OracleParameter(":DZ", OracleDbType.Varchar2, 50), new OracleParameter(":FYRQ", OracleDbType.Date), new OracleParameter(":BLQX", OracleDbType.Date), new OracleParameter(":FYNR", OracleDbType.Clob), new OracleParameter(":NRZY", OracleDbType.Varchar2, 4000), new OracleParameter(":YQ", OracleDbType.Varchar2, 2000), new OracleParameter(":FJDZ", OracleDbType.Varchar2, 300), new OracleParameter(":FPSJ", OracleDbType.Date), new OracleParameter(":JBRQ", OracleDbType.Date), new OracleParameter(":JBYQ", OracleDbType.Varchar2, 1000), new OracleParameter(":LDPS", OracleDbType.Varchar2, 1000), new OracleParameter(":BZ", OracleDbType.Varchar2, 1000), new OracleParameter(":CJR", OracleDbType.Varchar2, 36), new OracleParameter(":CJSJ", OracleDbType.Date), new OracleParameter(":ZT", OracleDbType.Int32, 1), new OracleParameter(":FJM", OracleDbType.Varchar2, 4000), new OracleParameter(":XJLY", OracleDbType.Varchar2, 200), new OracleParameter(":ID", OracleDbType.Varchar2, 36) }; parameters[0].Value = model.BH; parameters[1].Value = model.SJBH; parameters[2].Value = model.FYR; parameters[3].Value = model.LXDH; parameters[4].Value = model.DZYJ; parameters[5].Value = model.DZ; parameters[6].Value = model.FYRQ; parameters[7].Value = model.BLQX; parameters[8].Value = model.FYNR; parameters[9].Value = model.NRZY; parameters[10].Value = model.YQ; parameters[11].Value = model.FJDZ; parameters[12].Value = model.FPSJ; parameters[13].Value = model.JBRQ; parameters[14].Value = model.JBYQ; parameters[15].Value = model.LDPS; parameters[16].Value = model.BZ; parameters[17].Value = model.CJR; parameters[18].Value = model.CJSJ; parameters[19].Value = model.ZT; parameters[20].Value = model.FJM; parameters[21].Value = model.XJLY; parameters[22].Value = model.ID; int rows = DbHelperOra_new.ExecuteSql(strSql.ToString(), parameters); if (rows > 0) { return(true); } else { return(false); } }
/// <summary> /// 更新一条数据 /// </summary> public bool Update(Model.CON_ZDXJZB model) { return(dal.Update(model)); }
/// <summary> /// 增加一条数据 /// </summary> public bool Add(Model.CON_ZDXJZB model) { return(dal.Add(model)); }
private bool MYDangan(string con_guid, DataRow dr) { try { string SourceID = dr["SOURCEID"].ToString(); //数据来源ID string fyrqstr = dr["REACTION_DATE"].ToString(); //反映日期 string jbrqstr = dr["ASSIGNED_DATE"].ToString(); //交办日期 string blqxstr = dr["APPLYPERIOD"].ToString(); //办理期限 string fjdz = dr["SUMMARYFILEOLD"].ToString(); //反映内容附件地址 if (!string.IsNullOrWhiteSpace(fjdz)) { fjdz = FJ_baseurl + fjdz; } switch (SourceID) { // 寒山闻钟论坛----------支队寒山闻钟 // 12345热线-------------支队政风行风 // 96122-----------------96122工单 // 纪委条线--------------市局纪委 // 信访条线--------------市局信访处 // 省厅、总队信件办理----其他 // 督察条线来信----------市局督察 // 支队信件转办----------支队 // 其他自选项------------分局寒山闻钟、分局政风行风 case "1": //支队寒山闻钟---寒山闻钟论坛 #region 寒山闻钟论坛 Model.CON_HSWZ hswz_model = new Model.CON_HSWZ(); hswz_model.ID = con_guid; //主键ID(32位或36位guid) hswz_model.BH = dr["SERIALNUMBER"].ToString(); //编号 //hswz_model.BT = "";//标题 hswz_model.FYR = dr["REACTION_PEOPLE"].ToString(); //反映人 if (!string.IsNullOrWhiteSpace(fyrqstr)) { hswz_model.FYRQ = Convert.ToDateTime(fyrqstr); //反映日期 } //hswz_model.FYLX = "";//反映类型 hswz_model.FYNR = dr["SUMMARY"].ToString(); //反映内容 hswz_model.NRZY = dr["ZHAIYAO"].ToString(); //内容摘要 //hswz_model.YQ = "";//要求 hswz_model.FJDZ = fjdz; //附件地址 if (!string.IsNullOrWhiteSpace(blqxstr)) { hswz_model.BLQX = Convert.ToDateTime(blqxstr); //办理期限 } if (!string.IsNullOrWhiteSpace(jbrqstr)) { hswz_model.JBRQ = Convert.ToDateTime(jbrqstr); //交办日期 } //hswz_model.JBYQ = "";//交办要求 //hswz_model.LDPS = "";//领导批示 //hswz_model.BZ = "";//备注 hswz_model.CJR = "民意一期"; //创建人 if (!string.IsNullOrWhiteSpace(dr["CREATE_DATE"].ToString())) { hswz_model.CJSJ = Convert.ToDateTime(dr["CREATE_DATE"].ToString()); //创建时间 } hswz_model.ZT = 1; // 状态( 0.删除 1.待交办 2.待答复 3.待答复审核 4.待转办 5.待转办审核 6.退办 7.反馈中 8.回访中 9.办结) //hswz_model.FPSJ = null;//分配时间 hswz_model.FJM = dr["SUMMARYFILE"].ToString(); //附件名 bool hswz_res = new BLL.CON_HSWZ().Add(hswz_model); return(hswz_res); #endregion case "2": //支队政风行风---12345热线 #region 12345热线 Model.CON_YESSW yessw_model = new Model.CON_YESSW(); yessw_model.ID = con_guid; //主键ID(32位或36位guid) yessw_model.BH = dr["SERIALNUMBER"].ToString(); //编号 yessw_model.SJBH = dr["ORIGINALSYSTEMNUM"].ToString(); //上级编号 yessw_model.LDR = dr["REACTION_PEOPLE"].ToString(); //来电人 yessw_model.LXDH = dr["CONTACT_PHONE"].ToString(); //联系电话 if (!string.IsNullOrWhiteSpace(fyrqstr)) { yessw_model.FYRQ = Convert.ToDateTime(fyrqstr); //来电日期 } //yessw_model.FYLX = "";//反映类型 yessw_model.FYNR = dr["SUMMARY"].ToString(); //反映内容 yessw_model.NRZY = dr["ZHAIYAO"].ToString(); //内容摘要 yessw_model.FJDZ = fjdz; //附件地址 //yessw_model.YQ = "";//要求 if (!string.IsNullOrWhiteSpace(jbrqstr)) { yessw_model.JBRQ = Convert.ToDateTime(jbrqstr); //交办日期 } if (!string.IsNullOrWhiteSpace(blqxstr)) { yessw_model.BLQX = Convert.ToDateTime(blqxstr); //办理期限 } //yessw_model.JBYQ = "";//交办要求 yessw_model.FPSJ = null; //分配时间 //yessw_model.BZ = "";//备注 //yessw_model.LDPS = "";//领导批示 yessw_model.CJR = "民意一期"; //创建人 if (!string.IsNullOrWhiteSpace(dr["CREATE_DATE"].ToString())) { yessw_model.CJSJ = Convert.ToDateTime(dr["CREATE_DATE"].ToString()); //创建时间 } //yessw_model.CJSJ = Convert.ToDateTime(dr["CREATE_DATE"].ToString());//创建时间(时间格式,便于数据库查看) yessw_model.ZT = 1; //状态( 0.删除 1.待交办 2.待答复 3.待答复审核 4.待转办 5.待转办审核 6.退办 7.反馈中 8.回访中 9.办结) //yessw_model.XBDW = "";//协办单位 yessw_model.FJM = dr["SUMMARYFILE"].ToString(); //附件名 bool yessw_res = new BLL.CON_YESSW().Add(yessw_model); return(yessw_res); #endregion case "3": //96122工单---96122 #region 96122 Model.CON_JLYEE jlyee_model = new Model.CON_JLYEE(); jlyee_model.ID = con_guid; // 主键ID(32位或36位guid) jlyee_model.BH = dr["SERIALNUMBER"].ToString(); //编号 jlyee_model.SJBH = dr["ORIGINALSYSTEMNUM"].ToString(); //上级编号 jlyee_model.FYR = dr["REACTION_PEOPLE"].ToString(); //反映人 jlyee_model.LXDH = dr["CONTACT_PHONE"].ToString();; //联系电话 if (!string.IsNullOrWhiteSpace(fyrqstr)) { jlyee_model.FYRQ = Convert.ToDateTime(fyrqstr); //反映日期 } //jlyee_model.SJR = "";//收件人 //jlyee_model.BT = "";//标题 jlyee_model.NRZY = dr["ZHAIYAO"].ToString(); //内容摘要 jlyee_model.FYNR = dr["SUMMARY"].ToString(); //反映内容 jlyee_model.FJDZ = fjdz; //附件地址 if (!string.IsNullOrWhiteSpace(jbrqstr)) { jlyee_model.JBRQ = Convert.ToDateTime(jbrqstr); //交办日期 } //jlyee_model.BJRQ = null;//办结日期 jlyee_model.SSLB = 0; //所属类别0.其他 1.投诉 2.建议 3.咨询 4.举报 5.求助 6.表扬 //jlyee_model.BZ = "";//备注 jlyee_model.CJR = "民意一期"; //创建人 if (!string.IsNullOrWhiteSpace(dr["CREATE_DATE"].ToString())) { jlyee_model.CJSJ = Convert.ToDateTime(dr["CREATE_DATE"].ToString()); //创建时间 } //jlyee_model.CJSJ = Convert.ToDateTime(dr["CREATE_DATE"].ToString());//创建时间 jlyee_model.ZT = 1; //状态( 0.删除 1.有效) //jlyee_model.XJLY = "";// 信件来源 bool jlyee_res = new BLL.CON_JLYEE().Add(jlyee_model); return(jlyee_res); #endregion case "5": //分局寒山闻钟---其他自选项 case "6": //分局政风行风---其他自选项 #region 其他自选项 Model.CON_QTZXX qtzxx_model = new Model.CON_QTZXX(); qtzxx_model.ID = con_guid; //键ID(32位或36位guid) qtzxx_model.BH = dr["SERIALNUMBER"].ToString(); //编号 qtzxx_model.SJBH = dr["ORIGINALSYSTEMNUM"].ToString(); //上级编号 qtzxx_model.FYR = dr["REACTION_PEOPLE"].ToString(); //反映人 qtzxx_model.LXDH = dr["CONTACT_PHONE"].ToString();; //联系电话 //qtzxx_model.DZYJ = "";//电子邮件 //qtzxx_model.DZ = "";//地址 if (!string.IsNullOrWhiteSpace(fyrqstr)) { qtzxx_model.FYRQ = Convert.ToDateTime(fyrqstr); //反映日期 } if (!string.IsNullOrWhiteSpace(blqxstr)) { qtzxx_model.BLQX = Convert.ToDateTime(blqxstr); //办理期限 } //qtzxx_model.BT = "";//标题 qtzxx_model.FYNR = dr["SUMMARY"].ToString(); //反映内容 qtzxx_model.NRZY = dr["ZHAIYAO"].ToString(); //内容摘要 //qtzxx_model.YQ = "";//要求 qtzxx_model.FJDZ = fjdz; //附件地址 //qtzxx_model.FPSJ = null;//分配时间 if (!string.IsNullOrWhiteSpace(jbrqstr)) { qtzxx_model.JBRQ = Convert.ToDateTime(jbrqstr); //交办日期 } //qtzxx_model.JBYQ = "";//交办要求 //qtzxx_model.LDPS = "";//领导批示 //qtzxx_model.BZ = "";//备注 qtzxx_model.CJR = "民意一期"; //创建人 if (!string.IsNullOrWhiteSpace(dr["CREATE_DATE"].ToString())) { qtzxx_model.CJSJ = Convert.ToDateTime(dr["CREATE_DATE"].ToString()); //创建时间 } //qtzxx_model.CJSJ = Convert.ToDateTime(dr["CREATE_DATE"].ToString());//创建时间 qtzxx_model.ZT = 1; //状态( 0.删除 1.待交办 2.待答复 3.待答复审核 4.待转办 5.待转办审核 6.退办 7.反馈中 8.回访中 9.办结) qtzxx_model.FJM = dr["SUMMARYFILE"].ToString(); //附件名 //qtzxx_model.XJLY = "";//信件来源 bool qtzxx_res = new BLL.CON_QTZXX().Add(qtzxx_model); return(qtzxx_res); #endregion case "7": //市局信访处---信访条线 #region 信访条线 Model.CON_XFTX xftx_model = new Model.CON_XFTX(); xftx_model.ID = con_guid; // 主键ID(32位或36位guid) //xftx_model.XJLY = "";// 信件来源 xftx_model.BH = dr["SERIALNUMBER"].ToString(); //编号 xftx_model.SJBH = dr["ORIGINALSYSTEMNUM"].ToString(); //上级编号 xftx_model.XFR = dr["REACTION_PEOPLE"].ToString(); //信访人 xftx_model.LXDH = dr["CONTACT_PHONE"].ToString();; //联系电话 //xftx_model.DZYJ = "";//电子邮件 //xftx_model.DZ = "";//地址 if (!string.IsNullOrWhiteSpace(fyrqstr)) { xftx_model.FYRQ = Convert.ToDateTime(fyrqstr); //反映日期 } if (!string.IsNullOrWhiteSpace(blqxstr)) { xftx_model.BLQX = Convert.ToDateTime(blqxstr); //办理期限 } //xftx_model.BT = "";//标题 xftx_model.FYNR = dr["SUMMARY"].ToString(); //反映内容 xftx_model.NRZY = dr["ZHAIYAO"].ToString(); //内容摘要 //xftx_model.YQ = "";//要求 xftx_model.FJDZ = fjdz; //反应内容附件 // xftx_model.FPSJ = null;//分配时间 if (!string.IsNullOrWhiteSpace(jbrqstr)) { xftx_model.JBRQ = Convert.ToDateTime(jbrqstr); //交办日期 } //xftx_model.JBYQ = "";//交办要求 //xftx_model.LDPS = "";//领导批示 //xftx_model.BZ = "";//备注 xftx_model.CJR = "民意一期"; //创建人 if (!string.IsNullOrWhiteSpace(dr["CREATE_DATE"].ToString())) { xftx_model.CJSJ = Convert.ToDateTime(dr["CREATE_DATE"].ToString()); //创建时间 } //xftx_model.CJSJ = Convert.ToDateTime(dr["CREATE_DATE"].ToString());//创建时间 xftx_model.ZT = 1; //状态( 0.删除 1.待交办 2.待答复 3.待答复审核 4.待转办 5.待转办审核 6.退办 7.反馈中 8.回访中 9.办结) xftx_model.FJM = dr["SUMMARYFILE"].ToString(); //附件名 bool xftx_res = new BLL.CON_XFTX().Add(xftx_model); return(xftx_res); #endregion case "8": //市局纪委---纪委条线 #region 纪委条线 Model.CON_JWTX jwtx_model = new Model.CON_JWTX(); jwtx_model.ID = con_guid; //主键ID(32位或36位guid) jwtx_model.BH = dr["SERIALNUMBER"].ToString(); //编号 jwtx_model.SJBH = dr["ORIGINALSYSTEMNUM"].ToString(); //上级编号 jwtx_model.FYR = dr["REACTION_PEOPLE"].ToString(); //反映人 jwtx_model.LXDH = dr["CONTACT_PHONE"].ToString();; //联系电话 //jwtx_model.DZ = "";//地址 //jwtx_model.DZYJ = "";//电子邮件 if (!string.IsNullOrWhiteSpace(fyrqstr)) { jwtx_model.FYRQ = Convert.ToDateTime(fyrqstr); //反映日期 } if (!string.IsNullOrWhiteSpace(blqxstr)) { jwtx_model.BLQX = Convert.ToDateTime(blqxstr); //办理期限 } //jwtx_model.BT = "";//标题 jwtx_model.FYNR = dr["SUMMARY"].ToString(); //反映内容 jwtx_model.NRZY = dr["ZHAIYAO"].ToString(); //内容摘要 //jwtx_model.YQ = "";//要求 jwtx_model.FJDZ = fjdz; //附件地址 //jwtx_model.FPSJ = null;//分配时间 if (!string.IsNullOrWhiteSpace(jbrqstr)) { jwtx_model.JBRQ = Convert.ToDateTime(jbrqstr); //交办日期 } //jwtx_model.JBYQ = "";//交办要求 //jwtx_model.LDPS = "";//领导批示 //jwtx_model.BZ = "";//备注 jwtx_model.CJR = "民意一期"; //创建人 if (!string.IsNullOrWhiteSpace(dr["CREATE_DATE"].ToString())) { jwtx_model.CJSJ = Convert.ToDateTime(dr["CREATE_DATE"].ToString()); //创建时间 } //jwtx_model.CJSJ = Convert.ToDateTime(dr["CREATE_DATE"].ToString());//创建时间 jwtx_model.ZT = 1; //状态( 0.删除 1.待交办 2.待答复 3.待答复审核 4.待转办 5.待转办审核 6.退办 7.反馈中 8.回访中 9.办结) jwtx_model.FJM = dr["SUMMARYFILE"].ToString(); //附件名 //jwtx_model.XJLY = "";//信件来源 bool jwtx_res = new BLL.CON_JWTX().Add(jwtx_model); return(jwtx_res); #endregion case "9": //1号窗口 case "10": //市局平安民声 break; case "11": //支队---支队信件转办 #region 支队信件转办 Model.CON_ZDXJZB zdxjzb_model = new Model.CON_ZDXJZB(); zdxjzb_model.ID = con_guid; //主键ID(32位或36位guid) zdxjzb_model.BH = dr["SERIALNUMBER"].ToString(); //编号 zdxjzb_model.SJBH = dr["ORIGINALSYSTEMNUM"].ToString(); //上级编号 zdxjzb_model.FYR = dr["REACTION_PEOPLE"].ToString(); //反映人 zdxjzb_model.LXDH = dr["CONTACT_PHONE"].ToString();; //联系电话 //zdxjzb_model.DZYJ = "";//电子邮件 //zdxjzb_model.DZ = "";//地址 if (!string.IsNullOrWhiteSpace(fyrqstr)) { zdxjzb_model.FYRQ = Convert.ToDateTime(fyrqstr); //反映日期 } if (!string.IsNullOrWhiteSpace(blqxstr)) { zdxjzb_model.BLQX = Convert.ToDateTime(blqxstr); //办理期限 } zdxjzb_model.FYNR = dr["SUMMARY"].ToString(); //反映内容 zdxjzb_model.NRZY = dr["ZHAIYAO"].ToString(); //内容摘要 //zdxjzb_model.YQ = "";//要求 zdxjzb_model.FJDZ = fjdz; //附件地址 //zdxjzb_model.FPSJ = null;//分配时间 if (!string.IsNullOrWhiteSpace(jbrqstr)) { zdxjzb_model.JBRQ = Convert.ToDateTime(jbrqstr); //交办日期 } //zdxjzb_model.JBYQ = "";//交办要求 //zdxjzb_model.LDPS = "";//领导批示 //zdxjzb_model.BZ = "";//备注 zdxjzb_model.CJR = "民意一期"; //创建人 if (!string.IsNullOrWhiteSpace(dr["CREATE_DATE"].ToString())) { zdxjzb_model.CJSJ = Convert.ToDateTime(dr["CREATE_DATE"].ToString()); //创建时间 } //zdxjzb_model.CJSJ = Convert.ToDateTime(dr["CREATE_DATE"].ToString());//创建时间 zdxjzb_model.ZT = 1; //状态( 0.删除 1.待交办 2.待答复 3.待答复审核 4.待转办 5.待转办审核 6.退办 7.反馈中 8.回访中 9.办结) zdxjzb_model.FJM = dr["SUMMARYFILE"].ToString(); //附件名 //zdxjzb_model.XJLY = "";//信件来源 bool zdxjzb_res = new BLL.CON_ZDXJZB().Add(zdxjzb_model); return(zdxjzb_res); #endregion case "12": //市局督查---督察条线来信 #region 督察条线来信 Model.CON_DCTXLX dcxtlx_model = new Model.CON_DCTXLX(); dcxtlx_model.ID = con_guid; //主键ID(32位或36位guid) dcxtlx_model.BH = dr["SERIALNUMBER"].ToString(); //编号 dcxtlx_model.SJBH = dr["ORIGINALSYSTEMNUM"].ToString(); //上级编号 dcxtlx_model.FYR = dr["REACTION_PEOPLE"].ToString(); //反映人 dcxtlx_model.LXDH = dr["CONTACT_PHONE"].ToString();; //联系电话 //dcxtlx_model.DZYJ = "";//电子邮件 //dcxtlx_model.DZ = "";//地址 if (!string.IsNullOrWhiteSpace(fyrqstr)) { dcxtlx_model.FYRQ = Convert.ToDateTime(fyrqstr); //反映日期 } if (!string.IsNullOrWhiteSpace(blqxstr)) { dcxtlx_model.BLQX = Convert.ToDateTime(blqxstr); //办理期限 } //dcxtlx_model.BT = "";//标题 dcxtlx_model.FYNR = dr["SUMMARY"].ToString(); //反映内容 dcxtlx_model.NRZY = dr["ZHAIYAO"].ToString(); //内容摘要 //dcxtlx_model.YQ = "";//要求 dcxtlx_model.FJDZ = fjdz; //附件地址 //dcxtlx_model.FPSJ = null;//分配时间 if (!string.IsNullOrWhiteSpace(jbrqstr)) { dcxtlx_model.JBRQ = Convert.ToDateTime(jbrqstr); //交办日期 } //dcxtlx_model.JBYQ = "";//交办要求 //dcxtlx_model.FYWTXZ = "";//反映问题性质 //dcxtlx_model.LDPS = "";//领导批示 //dcxtlx_model.BZ = "";//备注 dcxtlx_model.CJR = "民意一期"; //创建人 if (!string.IsNullOrWhiteSpace(dr["CREATE_DATE"].ToString())) { dcxtlx_model.CJSJ = Convert.ToDateTime(dr["CREATE_DATE"].ToString()); //创建时间 } //dcxtlx_model.CJSJ = Convert.ToDateTime(dr["CREATE_DATE"].ToString());//创建时间 dcxtlx_model.ZT = 1; //状态( 0.删除 1.待交办 2.待答复 3.待答复审核 4.待转办 5.待转办审核 6.退办 7.反馈中 8.回访中 9.办结) dcxtlx_model.FJM = dr["SUMMARYFILE"].ToString(); //附件名拼接 //dcxtlx_model.XJLY = "";//信件来源 bool dcxtlx_res = new BLL.CON_DCTXLX().Add(dcxtlx_model); return(dcxtlx_res); #endregion case "13": //其他---省厅、总队信件办理 #region 省厅、总队信件办理 Model.CON_STZDXJBL stzdxjbl_model = new Model.CON_STZDXJBL(); stzdxjbl_model.ID = con_guid; //主键ID(32位或36位guid) //stzdxjbl_model.XJLY = "";//信件来源 stzdxjbl_model.BH = dr["SERIALNUMBER"].ToString(); //编号 stzdxjbl_model.SJBH = dr["ORIGINALSYSTEMNUM"].ToString(); //上级编号 stzdxjbl_model.LXR = dr["REACTION_PEOPLE"].ToString(); //来信人 stzdxjbl_model.LXDH = dr["CONTACT_PHONE"].ToString();; //联系电话 //stzdxjbl_model.DZ = "";//地址 //stzdxjbl_model.DZYJ = "";//电子邮件 if (!string.IsNullOrWhiteSpace(fyrqstr)) { stzdxjbl_model.FYRQ = Convert.ToDateTime(fyrqstr); //反映日期 } if (!string.IsNullOrWhiteSpace(blqxstr)) { stzdxjbl_model.BLQX = Convert.ToDateTime(blqxstr); //办理期限 } //stzdxjbl_model.BT = "";//标题 stzdxjbl_model.FYNR = dr["SUMMARY"].ToString(); //反映内容 stzdxjbl_model.NRZY = dr["ZHAIYAO"].ToString(); //内容摘要 //stzdxjbl_model.YQ = "";//要求 stzdxjbl_model.FJDZ = fjdz; //附件地址 //stzdxjbl_model.FPSJ = null;//分配时间 if (!string.IsNullOrWhiteSpace(jbrqstr)) { stzdxjbl_model.JBRQ = Convert.ToDateTime(jbrqstr); //交办日期 } //stzdxjbl_model.JBYQ = "";//交办要求 //stzdxjbl_model.LDPS = "";//领导批示 //stzdxjbl_model.BZ = "";//备注 stzdxjbl_model.CJR = "民意一期"; //创建人 if (!string.IsNullOrWhiteSpace(dr["CREATE_DATE"].ToString())) { stzdxjbl_model.CJSJ = Convert.ToDateTime(dr["CREATE_DATE"].ToString()); //创建时间 } //stzdxjbl_model.CJSJ = Convert.ToDateTime(dr["CREATE_DATE"].ToString());//创建时间 stzdxjbl_model.ZT = 1; //状态(0.删除 1.待交办 2.待答复 3.待答复审核 4.待转办 5.待转办审核 6.退办 7.反馈中 8.回访中 9.办结) stzdxjbl_model.FJM = dr["SUMMARYFILE"].ToString(); //附件名 bool stzdxjbl_res = new BLL.CON_STZDXJBL().Add(stzdxjbl_model); return(stzdxjbl_res); #endregion default: break; } } catch (Exception e) { SysLog.WriteLog(e, AppDomain.CurrentDomain.BaseDirectory); } return(false); }