List.aspx.cs 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639
  1. using System;
  2. using System.Collections.Generic;
  3. //using System.Linq;
  4. using System.Web;
  5. using System.Web.UI;
  6. using System.Web.UI.WebControls;
  7. using System.Data;
  8. using System.Text;
  9. using NPOI.HSSF.UserModel;
  10. using System.IO;
  11. using NPOI.HSSF.Util;
  12. namespace Com.Jpsoft.Hospital.Web.Module.FllowUp.FollowUpRecord
  13. {
  14. public partial class List : Com.Jpsoft.Hospital.Web.Common.BasePage
  15. {
  16. public double zhjs = 0;//总呼叫
  17. public double yxhj = 0;//有效呼叫
  18. public double gjwj = 0;//关机未接
  19. public double tjkh = 0;//停机空号
  20. public double hmbf = 0;//号码不符
  21. public string yxl = string.Empty;//有效率
  22. #region 事件处理
  23. //protected override void OnInit(EventArgs e)
  24. //{
  25. // if (!IsPostBack)
  26. // {
  27. // base.AutoCheckRight = false;
  28. // base.CheckRightParam = Com.Jpsoft.Hospital.Web.Common.PageFuntionType.List;
  29. // }
  30. // base.OnInit(e);
  31. //}
  32. protected void Page_Load(object sender, EventArgs e)
  33. {
  34. if (!IsPostBack)
  35. {
  36. switch (ddlCustomerType.SelectedValue.ToString())
  37. {
  38. case "0":
  39. BindKYData();
  40. break;
  41. case "2":
  42. BindSFData();
  43. break;
  44. case "1":
  45. BindZYData();
  46. break;
  47. case "3":
  48. BindQZData();
  49. break;
  50. }
  51. if (!base.CheckRightByFun(Common.PageFuntionType.Print))
  52. {
  53. ddlVisitType.SelectedIndex = 1;
  54. ddlVisitType.Visible = false;
  55. }
  56. BindKS();
  57. }
  58. //
  59. SumSF();
  60. }
  61. private void BindKS()
  62. {
  63. Com.Jpsoft.Hospital.BLL.Ex.ZY_BRSYKEx bll = new BLL.Ex.ZY_BRSYKEx();
  64. DataTable dt = bll.GetYY_KSBMKList(" (name NOT LIKE '%门诊%') AND (name NOT LIKE '%停用%') AND (kslb = 0) ");
  65. ddlks.Items.Add(new ListItem("请选择", ""));
  66. foreach (DataRow dr in dt.Rows)
  67. {
  68. ddlks.Items.Add(new ListItem(dr["name"].ToString(), dr["id"].ToString()));
  69. }
  70. }
  71. private void BindQZData()
  72. {
  73. string strWhere = " where 1=1 ";
  74. int recordCount = 0;
  75. if (!string.IsNullOrEmpty((string)ViewState["SearchTerms"]))
  76. {
  77. strWhere = ViewState["SearchTerms"].ToString();
  78. }
  79. string orderby = " order by date DESC";
  80. using (IDataReader idr = BLL.BaseClass.SelectPage("jp_qz_followuprecord", "*", "id", AspNetPager1.CurrentPageIndex, AspNetPager1.PageSize, strWhere, orderby))
  81. {
  82. if (idr.Read())
  83. {
  84. recordCount = int.Parse(idr["RecordCount"].ToString());
  85. }
  86. AspNetPager1.RecordCount = recordCount;
  87. idr.NextResult();
  88. this.GvList.DataSource = idr;
  89. this.GvList.DataBind();
  90. }
  91. }
  92. private void BindKYData()
  93. {
  94. string strWhere = " where 1=1 ";
  95. int recordCount = 0;
  96. if (!string.IsNullOrEmpty((string)ViewState["SearchTerms"]))
  97. {
  98. strWhere = ViewState["SearchTerms"].ToString();
  99. }
  100. string orderby = " order by date DESC";
  101. using (IDataReader idr = BLL.BaseClass.SelectPage("jp_ky_followuprecord", "*", "id", AspNetPager1.CurrentPageIndex, AspNetPager1.PageSize, strWhere, orderby))
  102. {
  103. if (idr.Read())
  104. {
  105. recordCount = int.Parse(idr["RecordCount"].ToString());
  106. }
  107. AspNetPager1.RecordCount = recordCount;
  108. idr.NextResult();
  109. this.GvList.DataSource = idr;
  110. this.GvList.DataBind();
  111. }
  112. }
  113. protected void btnQuery_Click(object sender, EventArgs e)
  114. {
  115. Query();
  116. }
  117. //protected void btnExport_Click(object sender, EventArgs e)
  118. //{
  119. // Export();
  120. //}
  121. protected void AspNetPager1_PageChanged(object sender, EventArgs e)
  122. {
  123. switch (ddlCustomerType.SelectedValue.ToString())
  124. {
  125. case "0":
  126. BindKYData();
  127. break;
  128. case "2":
  129. BindSFData();
  130. break;
  131. case "1":
  132. BindZYData();
  133. break;
  134. case "3":
  135. BindQZData();
  136. break;
  137. }
  138. }
  139. //住院病人随访统计
  140. protected void btnsftj_Click(object sender, EventArgs e)
  141. {
  142. SFSumMZ();
  143. }
  144. #endregion
  145. #region 事件方法
  146. /// <summary>
  147. /// 绑定门诊病人随访记录信息
  148. /// </summary>
  149. private void BindSFData()
  150. {
  151. string strWhere = " where 1=1 ";
  152. int recordCount = 0;
  153. if (!string.IsNullOrEmpty((string)ViewState["SearchTerms"]))
  154. {
  155. strWhere = ViewState["SearchTerms"].ToString();
  156. }
  157. string orderby = " order by mzfr_date DESC";
  158. using (IDataReader idr = BLL.BaseClass.SelectPage("jp_sf_followuprecord", "*", "mzfr_id", AspNetPager1.CurrentPageIndex, AspNetPager1.PageSize, strWhere, orderby))
  159. {
  160. if (idr.Read())
  161. {
  162. recordCount = int.Parse(idr["RecordCount"].ToString());
  163. }
  164. AspNetPager1.RecordCount = recordCount;
  165. idr.NextResult();
  166. this.GvList.DataSource = idr;
  167. this.GvList.DataBind();
  168. }
  169. }
  170. /// <summary>
  171. /// 随访统计
  172. /// </summary>
  173. private void SumSF()
  174. {
  175. string where = " 1=1 ";
  176. if (!string.IsNullOrEmpty((string)ViewState["SearchTerms"]))
  177. {
  178. where = ViewState["SearchTerms"].ToString();
  179. }
  180. //if (txtDate1.Text != "")
  181. //{
  182. // where = where + " and date>='" + txtDate1.Text + "' ";
  183. //}
  184. //if (txtDate2.Text != "")
  185. //{
  186. // where = where + " and date<='" + txtDate2.Text + "' ";
  187. //}
  188. //if (Request.QueryString["typeid"] != null)
  189. //{
  190. // where = where + " and type='" + Request.QueryString["typeid"] + "'";
  191. //}
  192. //else
  193. //{
  194. // where = where + " and (type=1 or type=2) ";
  195. //}
  196. //where = where + " and customertype='" + ddlCustomerType.SelectedValue + "' ";
  197. where = where + " and visitway=1 and customertype='" + ddlCustomerType.SelectedValue + "'";
  198. where = where.Replace("where", "");
  199. Com.Jpsoft.Hospital.BLL.Ex.jp_followup_recordEx bll = new Com.Jpsoft.Hospital.BLL.Ex.jp_followup_recordEx();
  200. zhjs = bll.GetListZY(where).Tables[0].Rows.Count;
  201. yxhj = bll.GetListZY(where + " and issuccess=0 ").Tables[0].Rows.Count;
  202. gjwj = bll.GetListZY(where + " and issuccess=1 ").Tables[0].Rows.Count;
  203. tjkh = bll.GetListZY(where + " and issuccess=2 ").Tables[0].Rows.Count;
  204. hmbf = bll.GetListZY(where + " and issuccess=3 ").Tables[0].Rows.Count;
  205. double xl = 0;//(yxhj / zhjs)*100;
  206. if (zhjs != 0)
  207. {
  208. xl = (yxhj / zhjs) * 100;
  209. }
  210. yxl = xl.ToString("F2") + "%";
  211. }
  212. /// <summary>
  213. /// 绑定住院病人门诊信息
  214. /// </summary>
  215. private void BindZYData()
  216. {
  217. string strWhere = " where type='2'";
  218. if (base.CheckRightByFun(Common.PageFuntionType.Confirm))
  219. {
  220. if (!base.IsAdmin())
  221. {
  222. ddlVisitType.SelectedIndex = 5;
  223. ddlVisitType.Visible = false;
  224. strWhere = " where type='5'";
  225. }
  226. }
  227. int recordCount = 0;
  228. if (!string.IsNullOrEmpty((string)ViewState["SearchTerms"]))
  229. {
  230. strWhere = ViewState["SearchTerms"].ToString();
  231. }
  232. string orderby = " order by date DESC";
  233. using (IDataReader idr = BLL.BaseClass.SelectPage("jp_zy_followuprecord", "*", "id", AspNetPager1.CurrentPageIndex, AspNetPager1.PageSize, strWhere, orderby))
  234. {
  235. if (idr.Read())
  236. {
  237. recordCount = int.Parse(idr["RecordCount"].ToString());
  238. }
  239. AspNetPager1.RecordCount = recordCount;
  240. idr.NextResult();
  241. this.GvList.DataSource = idr;
  242. this.GvList.DataBind();
  243. }
  244. }
  245. /// <summary>
  246. /// 查询数据
  247. /// </summary>
  248. private void Query()
  249. {
  250. StringBuilder strWhere = new StringBuilder(" where 1=1 ");
  251. if (!string.IsNullOrEmpty(this.txtcqrq1.Text))
  252. {
  253. strWhere.Append(" and cqrq >='" + Convert.ToDateTime(this.txtcqrq1.Text).ToString("yyyyMMdd00:00:00") + "'");
  254. }
  255. if (!string.IsNullOrEmpty(this.txtcqrq2.Text))
  256. {
  257. strWhere.Append(" and cqrq <'" + Convert.ToDateTime(this.txtcqrq2.Text).AddDays(1).ToString("yyyyMMdd00:00:00") + "'");
  258. }
  259. if (!string.IsNullOrEmpty(this.txtrqrq1.Text))
  260. {
  261. strWhere.Append(" and rqrq >='" + Convert.ToDateTime(this.txtrqrq1.Text).ToString("yyyyMMdd00:00:00") + "'");
  262. }
  263. if (!string.IsNullOrEmpty(this.txtrqrq2.Text))
  264. {
  265. strWhere.Append(" and rqrq <'" + Convert.ToDateTime(this.txtrqrq2.Text).AddDays(1).ToString("yyyyMMdd00:00:00") + "'");
  266. }
  267. if (!string.IsNullOrEmpty(this.txtDate1.Text))
  268. {
  269. strWhere.Append(" and date >='" + Convert.ToDateTime(this.txtDate1.Text).ToString("yyyy/MM/dd 00:00:00") + "'");
  270. }
  271. if (!string.IsNullOrEmpty(this.txtDate2.Text))
  272. {
  273. strWhere.Append(" and date <'" + Convert.ToDateTime(this.txtDate2.Text).AddDays(1).ToString("yyyy/MM/dd 00:00:00") + "'");
  274. }
  275. if (ddlVisitWay.SelectedValue == "0")
  276. {
  277. strWhere.Append(" and visitway=0 ");
  278. }
  279. if (ddlVisitWay.SelectedValue == "1")
  280. {
  281. strWhere.Append(" and visitway=1 ");
  282. }
  283. if (txtUserName.Text.Trim() != "")
  284. {
  285. strWhere.Append(" and creater='" + txtUserName.Text.Trim() + "'");
  286. }
  287. if (ddlVisitType.SelectedValue != "")
  288. {
  289. strWhere.Append(" and type='" + ddlVisitType.SelectedValue + "' ");
  290. }
  291. if (ddlks.SelectedValue != "")
  292. {
  293. strWhere.Append(" and ksdm='" + ddlks.SelectedValue + "'");
  294. }
  295. ViewState["SearchTerms"] = strWhere.ToString();
  296. switch (ddlCustomerType.SelectedValue.ToString())
  297. {
  298. case "0":
  299. BindKYData();
  300. break;
  301. case "2":
  302. BindSFData();
  303. break;
  304. case "1":
  305. BindZYData();
  306. break;
  307. case "3":
  308. BindQZData();
  309. break;
  310. }
  311. SumSF();
  312. //if (GvList.Rows.Count != 0)
  313. //{
  314. // this.btnExport.Enabled = true;
  315. //}
  316. //else
  317. //{
  318. // this.btnExport.Enabled = false;
  319. //}
  320. }
  321. ///// <summary>
  322. ///// 导出为EXCEL表格
  323. ///// </summary>
  324. //private void Export()
  325. //{
  326. // string strWhere = " where 1=1 ";
  327. // if (!string.IsNullOrEmpty((string)ViewState["SearchTerms"]))
  328. // {
  329. // strWhere = ViewState["SearchTerms"].ToString();
  330. // }
  331. // if (ddlCustomerType.SelectedIndex == 0 || ddlCustomerType.SelectedValue == "0")
  332. // {
  333. // strWhere += " and customertype=0";
  334. // }
  335. // if (ddlCustomerType.SelectedValue == "1")
  336. // {
  337. // strWhere += " and customertype=1";
  338. // }
  339. // strWhere = strWhere.Replace("where", "");
  340. // Jpsoft.Hospital.ReportClass.ExcelReports.ReportFollowUpRecord report = new Com.Jpsoft.Hospital.ReportClass.ExcelReports.ReportFollowUpRecord();
  341. // hylReport.NavigateUrl = Page.ResolveClientUrl(report.GetReportPath(strWhere));
  342. // hylReport.Text = "随访记录统计";
  343. //}
  344. public string GetVistType(int type)
  345. {
  346. string result = string.Empty;
  347. switch (type)
  348. {
  349. case 0:
  350. result = "科研随访";
  351. break;
  352. case 1:
  353. result = "客服";
  354. break;
  355. case 2:
  356. result = "医生";
  357. break;
  358. case 3:
  359. result = "质管";
  360. break;
  361. case 4:
  362. result = "探访";
  363. break;
  364. case 5:
  365. result = "护理";
  366. break;
  367. default:
  368. result = "未知";
  369. break;
  370. }
  371. return result;
  372. }
  373. public string GetVistWay(int vistWay)
  374. {
  375. string result = string.Empty;
  376. switch (vistWay)
  377. {
  378. case 0:
  379. result = "短信";
  380. break;
  381. case 1:
  382. result = "电话";
  383. break;
  384. default:
  385. result = "未知方式";
  386. break;
  387. }
  388. return result;
  389. }
  390. public string GetIsSuccess(int isSuccess)
  391. {
  392. string result = string.Empty;
  393. switch (isSuccess)
  394. {
  395. case 0:
  396. result = "有效呼叫";
  397. break;
  398. case 1:
  399. result = "关机未接";
  400. break;
  401. case 2:
  402. result = "停机空号";
  403. break;
  404. case 3:
  405. result = "号码不符";
  406. break;
  407. default:
  408. result = "未知方式";
  409. break;
  410. }
  411. return result;
  412. }
  413. public string GetCustomerType(int customerType)
  414. {
  415. string result = string.Empty;
  416. switch (customerType)
  417. {
  418. case 0:
  419. result = "科研随访";
  420. break;
  421. case 1:
  422. result = "住院病人";
  423. break;
  424. case 2:
  425. result = "门诊病人";
  426. break;
  427. case 3:
  428. result = "潜在客户";
  429. break;
  430. default:
  431. result = "未知";
  432. break;
  433. }
  434. return result;
  435. }
  436. /// <summary>
  437. /// 门诊随访统计
  438. /// </summary>
  439. private void SFSumMZ()
  440. {
  441. base.AutoCheckRight = false;
  442. base.CheckRightParam = Com.Jpsoft.Hospital.Web.Common.PageFuntionType.Export;
  443. base.CheckRight();
  444. string where = " 1=1 ";
  445. if (!string.IsNullOrEmpty((string)ViewState["SearchTerms"]))
  446. {
  447. where = ViewState["SearchTerms"].ToString();
  448. }
  449. else
  450. {
  451. where += " and customertype=1 ";
  452. }
  453. //if (txtDate1.Text != "")
  454. //{
  455. // where = where + " and date>='" + txtDate1.Text + "' ";
  456. //}
  457. //if (txtDate2.Text != "")
  458. //{
  459. // where = where + " and date<='" + txtDate2.Text + "' ";
  460. //}
  461. where = where + " and visitway=1 and customertype=1 ";
  462. where = where.Replace("where", "");
  463. //where += " order by date desc ";
  464. Com.Jpsoft.Hospital.BLL.Ex.jp_followup_recordEx bll = new Com.Jpsoft.Hospital.BLL.Ex.jp_followup_recordEx();
  465. double zhjs1 = bll.GetListZY(where).Tables[0].Rows.Count;
  466. double yxhj1 = bll.GetListZY(where + " and issuccess=0 order by date desc ").Tables[0].Rows.Count;
  467. double gjwj1 = bll.GetListZY(where + " and issuccess=1 order by date desc ").Tables[0].Rows.Count;
  468. double tjkh1 = bll.GetListZY(where + " and issuccess=2 order by date desc ").Tables[0].Rows.Count;
  469. double hmbf1 = bll.GetListZY(where + " and issuccess=3 order by date desc ").Tables[0].Rows.Count;
  470. double xl = 0;//(yxhj / zhjs)*100;
  471. if (zhjs1 != 0)
  472. {
  473. xl = (yxhj1 / zhjs1) * 100;
  474. }
  475. string yxl1 = xl.ToString("F2") + "%";
  476. string str0 = "随访结果说明:0表示有效呼叫,1表示关机未接,2表示停机空号,3表示号码不符。";
  477. string str1 = "一、电话随访总呼" + zhjs1 + "位,其中有效呼" + yxhj1 + "位,关机未接" + gjwj1 + "位,停机空号" + tjkh1 + "位 号码不符" + hmbf1 + "位 ,呼叫有效率为" + yxl1 + ".";
  478. string str2 = "二、涉及科室有:";
  479. DataTable dt = bll.GetListR(where).Tables[0];
  480. DataTable dt1 = bll.GetListRR(where + " and customeridea!='' ").Tables[0];
  481. for (int i = 0; i < dt1.Rows.Count; i++)
  482. {
  483. if (i < dt1.Rows.Count - 1)
  484. {
  485. str2 = str2 + dt1.Rows[i]["ksmc"].ToString() + ",";
  486. }
  487. else
  488. {
  489. str2 = str2 + dt1.Rows[i]["ksmc"].ToString() + "。";
  490. }
  491. }
  492. str2 = str2.Replace(" ", "");
  493. if (dt.Rows.Count > 0)
  494. {
  495. string FileName = "随访统计";
  496. FileStream fs = File.OpenRead(Request.PhysicalApplicationPath + "stencil/sftj.xls");
  497. HSSFWorkbook workbook = new HSSFWorkbook(fs);
  498. HSSFSheet sheet = workbook.GetSheetAt(0);
  499. HSSFCellStyle style1 = workbook.CreateCellStyle();
  500. style1.BorderBottom = CellBorderType.THIN;
  501. style1.BorderLeft = CellBorderType.THIN;
  502. style1.BorderRight = CellBorderType.THIN;
  503. style1.BorderTop = CellBorderType.THIN;
  504. style1.VerticalAlignment = CellVerticalAlignment.CENTER;
  505. for (int i = 0; i < dt.Rows.Count; i++)
  506. {
  507. int j = i + 2;
  508. HSSFRow row = sheet.CreateRow(j);
  509. row.Height = 439;
  510. HSSFCell cell0 = row.CreateCell(0);
  511. cell0.SetCellValue(dt.Rows[i][0].ToString());
  512. cell0.CellStyle = style1;
  513. HSSFCell cell1 = row.CreateCell(1);
  514. cell1.SetCellValue(dt.Rows[i][1].ToString());
  515. cell1.CellStyle = style1;
  516. HSSFCell cell2 = row.CreateCell(2);
  517. cell2.SetCellValue(dt.Rows[i][2].ToString());
  518. cell2.CellStyle = style1;
  519. HSSFCell cell3 = row.CreateCell(3);
  520. cell3.SetCellValue(dt.Rows[i][3].ToString());
  521. cell3.CellStyle = style1;
  522. HSSFCell cell4 = row.CreateCell(4);
  523. cell4.SetCellValue(dt.Rows[i][4].ToString());
  524. cell4.CellStyle = style1;
  525. HSSFCell cell5 = row.CreateCell(5);
  526. cell5.SetCellValue(dt.Rows[i][5].ToString());
  527. cell5.CellStyle = style1;
  528. HSSFCell cell6 = row.CreateCell(6);
  529. cell6.SetCellValue(dt.Rows[i][6].ToString());
  530. cell6.CellStyle = style1;
  531. HSSFCell cell7 = row.CreateCell(7);
  532. cell7.SetCellValue(dt.Rows[i][7].ToString());
  533. cell7.CellStyle = style1;
  534. HSSFCell cell8 = row.CreateCell(8);
  535. cell8.SetCellValue(dt.Rows[i][8].ToString());
  536. cell8.CellStyle = style1;
  537. HSSFCell cell9 = row.CreateCell(9);
  538. cell9.SetCellValue(dt.Rows[i][9].ToString());
  539. cell9.CellStyle = style1;
  540. HSSFCell cell10 = row.CreateCell(10);
  541. cell10.SetCellValue("");
  542. cell10.CellStyle = style1;
  543. }
  544. HSSFRow rowEx1 = sheet.CreateRow(dt.Rows.Count + 2);
  545. rowEx1.Height = 439;
  546. HSSFCell cellEx1 = rowEx1.CreateCell(0);
  547. cellEx1.SetCellValue(str0);
  548. sheet.AddMergedRegion(new CellRangeAddress(dt.Rows.Count + 2, dt.Rows.Count + 2, 0, 10));
  549. HSSFRow rowEx2 = sheet.CreateRow(dt.Rows.Count + 3);
  550. rowEx2.Height = 439;
  551. HSSFCell cellEx2 = rowEx2.CreateCell(0);
  552. cellEx2.SetCellValue(str1);
  553. sheet.AddMergedRegion(new CellRangeAddress(dt.Rows.Count + 3, dt.Rows.Count + 3, 0, 10));
  554. HSSFRow rowEx3 = sheet.CreateRow(dt.Rows.Count + 4);
  555. rowEx3.Height = 439;
  556. HSSFCell cellEx3 = rowEx3.CreateCell(0);
  557. cellEx3.SetCellValue(str2);
  558. sheet.AddMergedRegion(new CellRangeAddress(dt.Rows.Count + 4, dt.Rows.Count + 4, 0, 10));
  559. Stream stream = Response.OutputStream;
  560. workbook.Write(stream);
  561. string filename = string.Format("{0}.xls", HttpUtility.UrlEncode(FileName, System.Text.Encoding.UTF8));
  562. Response.ContentType = "application/vnd.ms-excel;charset=GBK";
  563. Response.ContentEncoding = System.Text.Encoding.GetEncoding("gb2312");
  564. Response.AddHeader("Content-Disposition", string.Format("attachment;filename={0}", filename));
  565. Response.Write(stream);
  566. Response.Flush();
  567. }
  568. else
  569. {
  570. Response.Write("<script>alert('提示:无随访记录!');</script>");
  571. }
  572. }
  573. #endregion
  574. }
  575. }