Insert.aspx.cs 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540
  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. //
  8. using System.Text;
  9. using System.Data;
  10. using System.Web.UI.HtmlControls;
  11. namespace Com.Jpsoft.Hospital.Web.Module.ExamineInfo.jp_examine_record
  12. {
  13. public partial class Insert : Com.Jpsoft.Hospital.Web.Common.BasePage
  14. {
  15. Com.Jpsoft.Hospital.BLL.jp_examine_record record = new Com.Jpsoft.Hospital.BLL.jp_examine_record();
  16. Com.Jpsoft.Hospital.Model.jp_examine_record recordmodel = new Com.Jpsoft.Hospital.Model.jp_examine_record();
  17. Com.Jpsoft.Hospital.BLL.jp_examine_detailinfo detail = new Com.Jpsoft.Hospital.BLL.jp_examine_detailinfo();
  18. Com.Jpsoft.Hospital.Model.jp_examine_detailinfo detailmodel = new Com.Jpsoft.Hospital.Model.jp_examine_detailinfo();
  19. Com.Jpsoft.Hospital.BLL.jp_examine_depart depart = new Com.Jpsoft.Hospital.BLL.jp_examine_depart();
  20. Com.Jpsoft.Hospital.Model.jp_examine_depart departmodel = new Com.Jpsoft.Hospital.Model.jp_examine_depart();
  21. Com.Jpsoft.Hospital.BLL.jp_examine_obj obj = new Com.Jpsoft.Hospital.BLL.jp_examine_obj();
  22. Com.Jpsoft.Hospital.Model.jp_examine_obj objmodel = new Com.Jpsoft.Hospital.Model.jp_examine_obj();
  23. Com.Jpsoft.Hospital.BLL.jp_examine_type type = new Com.Jpsoft.Hospital.BLL.jp_examine_type();
  24. Com.Jpsoft.Hospital.Model.jp_examine_type typemodel = new Com.Jpsoft.Hospital.Model.jp_examine_type();
  25. Com.Jpsoft.Hospital.BLL.jp_examine_detailinfo dtlinfo = new Com.Jpsoft.Hospital.BLL.jp_examine_detailinfo();
  26. Com.Jpsoft.Hospital.Model.jp_examine_detailinfo dtlmodel = new Com.Jpsoft.Hospital.Model.jp_examine_detailinfo();
  27. Com.Jpsoft.Hospital.Model.jp_sys_user usermodel = new Com.Jpsoft.Hospital.Model.jp_sys_user();
  28. Com.Jpsoft.Hospital.BLL.jp_sys_user user = new Com.Jpsoft.Hospital.BLL.jp_sys_user();
  29. protected void Page_Load(object sender, EventArgs e)
  30. {
  31. if (!IsPostBack)
  32. {
  33. if (!string.IsNullOrEmpty(Session["UID"].ToString()))
  34. {
  35. DataTable dt = user.GetList(" user_id=" + int.Parse(Session["UID"].ToString())).Tables[0];
  36. if (dt.Rows.Count > 0)
  37. {
  38. int recorder = int.Parse(dt.Rows[0]["user_recorder"].ToString());
  39. if (recorder != 0)
  40. {
  41. departmodel = depart.GetModel(recorder);
  42. if (departmodel != null)
  43. {
  44. //bool isrecorder = bool.Parse(departmodel.depart_isrecorder.ToString());
  45. //if (isrecorder == true)
  46. //{
  47. this.lab.Text = departmodel.depart_name.ToString();
  48. this.lblHid.Text = departmodel.depart_id.ToString();
  49. //BindPageData();
  50. ShowDepart(departmodel.depart_recorded.ToString());
  51. //}
  52. }
  53. }
  54. else
  55. {
  56. Response.Write("<script>alert('该部门不是参评部门!');window.location.href='List.aspx';</script>");
  57. }
  58. }
  59. }
  60. }
  61. }
  62. /// <summary>
  63. /// 显示所有的课室项目信息
  64. /// </summary>
  65. private void ShowDepart(string part)
  66. {
  67. //循环所有的科室,找出科室ID
  68. string[] departid = part.Split(',');
  69. for (int dep = 0; dep < departid.Length; dep++)
  70. {
  71. int depart_id = int.Parse(departid[dep].ToString());
  72. //int depart_id = int.Parse(this.depart_id.SelectedValue.ToString());
  73. if (depart_id != 0)
  74. {
  75. DataTable dt = type.GetList(" type_departid=" + depart_id).Tables[0];
  76. if (dt.Rows.Count > 0)
  77. {
  78. //i循环找出项目数据
  79. for (int i = 0; i < dt.Rows.Count + 1; i++)
  80. {
  81. //外循环添加一行
  82. HtmlTableRow htr = new HtmlTableRow();
  83. //查找是否有子部门
  84. DataTable child = depart.GetList(" depart_parentid=" + depart_id).Tables[0];
  85. #region
  86. if (child.Rows.Count > 0)
  87. {
  88. //ii循环找出子部门
  89. for (int ii = 0; ii < child.Rows.Count + 1; ii++)
  90. {
  91. //内循环添加一列
  92. HtmlTableCell htc = new HtmlTableCell();
  93. if (ii == 0)
  94. {
  95. if (i == 0)
  96. {//第一行第一列
  97. if (i < dt.Rows.Count + 1)
  98. {
  99. htc.Style.Value = "Font-Size:15px;Font-Weight:bold;text-align:center;";
  100. htc.InnerHtml = new Com.Jpsoft.Hospital.BLL.jp_examine_departEx().GetName(depart_id) + "(调查项目)";
  101. htc.Height = "50";
  102. htc.Width = "300";
  103. }
  104. else
  105. {
  106. htc.Style.Value = "Font-Size:15px;Font-Weight:bold;text-align:center;";
  107. htc.InnerText = "意见和建议";
  108. htc.Height = "150";
  109. htc.Width = "300";
  110. }
  111. }
  112. else
  113. {//第一列不是第一行
  114. htc.InnerText = GetObjName(dt.Rows[i - 1]["type_objid"].ToString());
  115. htc.Align = "Left";
  116. }
  117. }
  118. else
  119. {
  120. if (i == 0)
  121. {//不是第一列第一行,添加子部门
  122. htc.Style.Value = "Font-Size:15px;Font-Weight:bold;text-align:center;";
  123. htc.InnerText = child.Rows[ii - 1]["depart_name"].ToString();
  124. htc.Height = "50";
  125. }
  126. else
  127. {//不是第一列也不是第一行,添加评价
  128. if (i < dt.Rows.Count + 1)
  129. {
  130. string str = "<input id='rb1' type='radio' name='" + "YLFUYJ_" + child.Rows[ii - 1]["depart_id"].ToString() + "_" + dt.Rows[i - 2]["type_objid"].ToString() + "' value='1' checked='checked'>&nbsp;满意&nbsp;</input>&nbsp;&nbsp;<input id='rb2' type='radio' name='" + "YLFUYJ_" + child.Rows[ii - 1]["depart_id"].ToString() + "_" + dt.Rows[i - 2]["type_objid"].ToString() + "' value='2'>&nbsp;不满意&nbsp;</input><br/>";
  131. htc.Align = "Left";
  132. htc.InnerHtml = str;
  133. }
  134. else
  135. {
  136. string str = "<input id='txt1' type='text' name='" + "YLFUYJ_" + child.Rows[ii - 1]["depart_id"].ToString() + "_" + dt.Rows[i - 2]["type_objid"].ToString() + "' />";
  137. htc.Align = "Left";
  138. htc.InnerHtml = str;
  139. }
  140. }
  141. }
  142. htr.Controls.Add(htc);
  143. }
  144. tab.Controls.Add(htr);
  145. }
  146. #endregion
  147. #region
  148. //说明没有子部门,则只显示评价
  149. else
  150. {
  151. for (int iii = 0; iii < 2; iii++)
  152. {
  153. HtmlTableCell htc = new HtmlTableCell();
  154. if (i == 0)
  155. {
  156. //第一行,第一列
  157. if (iii == 0)
  158. {
  159. htc.Style.Value = "Font-Size:15px;Font-Weight:bold;text-align:center;";
  160. htc.InnerText = new Com.Jpsoft.Hospital.BLL.jp_examine_departEx().GetName(depart_id) + "(调查项目)";
  161. htc.Height = "50";
  162. htc.Width = "300";
  163. }
  164. //第一行,非第一列
  165. else
  166. {
  167. htc.Style.Value = "Font-Size:15px;Font-Weight:bold;text-align:center;";
  168. htc.InnerText = "评价";
  169. htc.Height = "50";
  170. }
  171. }
  172. else
  173. {
  174. if (iii == 0)
  175. {
  176. htc.InnerText = GetObjName(dt.Rows[i - 1]["type_objid"].ToString());
  177. htc.Align = "Left";
  178. }
  179. else
  180. {
  181. string str = "<input id='rb1' type='radio' name='" + "YLFUYJ_" + depart_id.ToString() + "_" + dt.Rows[i - 1]["type_objid"].ToString() + "' value='1' checked='checked'>&nbsp;满意&nbsp;</input>&nbsp;&nbsp;<input id='rb2' type='radio' name='" + "YLFUYJ_" + depart_id.ToString() + "_" + dt.Rows[i - 1]["type_objid"].ToString() + "' value='2'>&nbsp;不满意&nbsp;</input><br/>";
  182. htc.Align = "Left";
  183. htc.InnerHtml = str;
  184. }
  185. }
  186. htr.Controls.Add(htc);
  187. }
  188. }
  189. #endregion
  190. tab.Controls.Add(htr);
  191. }
  192. HtmlTableRow trYJ = new HtmlTableRow();
  193. HtmlTableCell tdYJ1 = new HtmlTableCell();
  194. HtmlTableCell tdYJ2 = new HtmlTableCell();
  195. tdYJ1.InnerText = "意见和建议";
  196. tdYJ2.InnerHtml = "<textarea name='PJ_comments_" + depart_id.ToString() + "' rows='2' cols='20' id='record_comments' style='height:100px;width:500px;'></textarea>";
  197. trYJ.Controls.Add(tdYJ1);
  198. trYJ.Controls.Add(tdYJ2);
  199. tab.Controls.Add(trYJ);
  200. }
  201. }
  202. }
  203. }
  204. /// <summary>
  205. /// 绑定下拉框数据
  206. /// </summary>
  207. //private void BindPageData()
  208. //{ //获得父科室名称
  209. // string strWhere = " depart_parentid=0";
  210. // DataTable dt = depart.GetList(strWhere).Tables[0];
  211. // if (dt.Rows.Count > 0)
  212. // {
  213. // for (int i = 0; i < dt.Rows.Count; i++)
  214. // {
  215. // this.depart_id.Items.Add(new ListItem(dt.Rows[i]["depart_name"].ToString(), dt.Rows[i]["depart_id"].ToString()));
  216. // }
  217. // this.depart_id.Items.Insert(0, new ListItem("==请选择被调查的科室==", "0"));
  218. // }
  219. //}
  220. //显示评价信息
  221. //protected void depart_id_SelectedIndexChanged(object sender, EventArgs e)
  222. //{
  223. //}
  224. /// <summary>
  225. /// 提交数据
  226. /// </summary>
  227. /// <param name="sender"></param>
  228. /// <param name="e"></param>
  229. protected void btnOK_Click(object sender, EventArgs e)
  230. {
  231. string did = this.lblHid.Text.Trim();
  232. DateTime time = Convert.ToDateTime(this.record_time.Text);
  233. Com.Jpsoft.Hospital.BLL.jp_examine_recordEx bll = new BLL.jp_examine_recordEx();
  234. DataTable dttemp = bll.GetList(" record_pjdepartname='" + did + "' and record_time>='" + time.ToString("yyyy-MM-01") + "' and record_time<'" + time.AddMonths(1).ToString("yyyy-MM-01") + "' ").Tables[0];
  235. if (dttemp.Rows.Count > 0)
  236. {
  237. Response.Write("<script>alert('您这个月已经评价过了!')</script>");
  238. return;
  239. }
  240. //提交调查记录信息
  241. if (!string.IsNullOrEmpty(Session["UID"].ToString()))
  242. {
  243. DataTable dt = user.GetList(" user_id=" + int.Parse(Session["UID"].ToString())).Tables[0];
  244. if (dt.Rows.Count > 0)
  245. {
  246. int isrecorder = int.Parse(dt.Rows[0]["user_recorder"].ToString());
  247. if (isrecorder != 0)
  248. {
  249. departmodel = depart.GetModel(isrecorder);
  250. if (departmodel != null)
  251. {
  252. string recored = departmodel.depart_recorded.ToString();
  253. string[] part = recored.Split(',');
  254. for (int dep = 0; dep < part.Length; dep++)
  255. {
  256. int depart_id = int.Parse(part[dep].ToString());
  257. string recordtime = this.record_time.Text;
  258. if (depart_id != 0)
  259. {
  260. DataTable isparent = depart.GetList(" depart_parentid=" + depart_id).Tables[0];
  261. if (isparent.Rows.Count > 0)
  262. {
  263. for (int i = 0; i < isparent.Rows.Count; i++)
  264. {
  265. recordmodel.record_departid = int.Parse(isparent.Rows[i]["depart_id"].ToString());
  266. recordmodel.record_time = DateTime.Parse(recordtime).ToString("yyyy-MM-dd HH:mm:ss");
  267. recordmodel.record_createtime = System.DateTime.Now;
  268. recordmodel.record_comments = this.record_comments.Text;
  269. recordmodel.record_people = dt.Rows[0]["user_name"].ToString();
  270. recordmodel.record_pjdepartname = Convert.ToInt32(dt.Rows[0]["user_recorder"]);
  271. recordmodel.record_type = 1;
  272. record.Add(recordmodel);
  273. //提交调查所有信息
  274. //获得record_id
  275. int record_id = GetRecordID(int.Parse(isparent.Rows[i]["depart_id"].ToString()), DateTime.Parse(recordtime).ToString("yyyy-MM-dd HH:mm:ss"), new Com.Jpsoft.Hospital.BLL.jp_sys_userEx().getusername(int.Parse(Session["uid"].ToString())), this.record_comments.Text);
  276. foreach (string key in Request.Form.Keys)
  277. {
  278. if (key.IndexOf("YLFUYJ_") == 0)
  279. {
  280. //部门ID
  281. int departid = int.Parse(key.Split('_')[1].ToString());
  282. //项目ID
  283. int objid = int.Parse(key.Split('_')[2].ToString());
  284. //评价ID
  285. int view = int.Parse(Request.Form[key].ToString());
  286. if (departid == recordmodel.record_departid)
  287. {
  288. dtlmodel.detailinfo_objid = objid;
  289. dtlmodel.detailinfo_recordid = record_id;
  290. dtlmodel.detailinfo_view = view;
  291. dtlinfo.Add(dtlmodel);
  292. }
  293. }
  294. }
  295. }
  296. }
  297. else
  298. {
  299. recordmodel.record_departid = depart_id;
  300. recordmodel.record_time = DateTime.Parse(recordtime).ToString("yyyy-MM-dd HH:mm:ss");
  301. recordmodel.record_createtime = System.DateTime.Now;
  302. foreach (string key in Request.Form.Keys)
  303. {
  304. if (key == "PJ_comments_" + depart_id.ToString())
  305. {
  306. recordmodel.record_comments = Request.Form[key].ToString();
  307. }
  308. }
  309. //recordmodel.record_comments = this.record_comments.Text;
  310. recordmodel.record_people = new Com.Jpsoft.Hospital.BLL.jp_sys_userEx().getusername(int.Parse(Session["uid"].ToString()));
  311. //recordmodel.record_people = dt.Rows[0]["user_name"].ToString();
  312. recordmodel.record_pjdepartname = Convert.ToInt32(dt.Rows[0]["user_recorder"]);
  313. recordmodel.record_type = 1;
  314. int record_id = record.Add(recordmodel);
  315. //提交调查所有信息
  316. //获得record_id
  317. //int record_id = GetRecordID(depart_id, DateTime.Parse(recordtime).ToString("yyyy-MM-dd HH:mm:ss"), new Com.Jpsoft.Hospital.BLL.jp_sys_userEx().getusername(int.Parse(Session["uid"].ToString())), this.record_comments.Text);
  318. foreach (string key in Request.Form.Keys)
  319. {
  320. if (key.IndexOf("YLFUYJ_") == 0)
  321. {
  322. // 部门ID
  323. int departid = int.Parse(key.Split('_')[1].ToString());
  324. // 项目ID
  325. int objid = int.Parse(key.Split('_')[2].ToString());
  326. //评价
  327. int view = int.Parse(Request.Form[key].ToString());
  328. if (departid == depart_id)
  329. {
  330. dtlmodel.detailinfo_view = view;
  331. dtlmodel.detailinfo_recordid = record_id;
  332. dtlmodel.detailinfo_objid = objid;
  333. dtlinfo.Add(dtlmodel);
  334. }
  335. }
  336. }
  337. }
  338. }
  339. }
  340. Response.Write("<script>alert('添加成功!');location.href='List.aspx';</script>");
  341. }
  342. }
  343. }
  344. }
  345. }
  346. public string GetDepartmentName(int id)
  347. {
  348. Com.Jpsoft.Hospital.Model.jp_examine_depart model = new Com.Jpsoft.Hospital.Model.jp_examine_depart();
  349. Com.Jpsoft.Hospital.BLL.jp_examine_departEx bll = new Com.Jpsoft.Hospital.BLL.jp_examine_departEx();
  350. model = bll.GetModel(id);
  351. if (model != null)
  352. {
  353. return model.depart_name;
  354. }
  355. return "";
  356. }
  357. /// <summary>
  358. /// 获得项目名称
  359. /// </summary>
  360. /// <param name="obj_id"></param>
  361. /// <returns></returns>
  362. public string GetObjName(string obj_id)
  363. {
  364. if (string.IsNullOrEmpty(obj_id))
  365. { }
  366. else
  367. {
  368. int objid = 0;
  369. if (int.TryParse(obj_id, out objid))
  370. {
  371. objmodel = obj.GetModel(objid);
  372. if (objmodel != null)
  373. {
  374. if (objmodel.obj_id > 0)
  375. {
  376. return objmodel.obj_name.ToString();
  377. }
  378. }
  379. }
  380. }
  381. return "";
  382. }
  383. /// <summary>
  384. /// 获得record_id
  385. /// </summary>
  386. /// <returns></returns>
  387. public int GetRecordID(int depart_id, string name, string username, string comments)
  388. {
  389. StringBuilder strWhere = new StringBuilder();
  390. strWhere.Append(" record_departid=" + depart_id);
  391. strWhere.Append(" and record_time='" + name + "'");
  392. strWhere.Append(" and record_people='" + username + "'");
  393. strWhere.Append(" and record_comments='" + comments + "'");
  394. DataTable table = record.GetList(strWhere.ToString()).Tables[0];
  395. if (table.Rows.Count > 0)
  396. {
  397. return int.Parse(table.Rows[0]["record_id"].ToString());
  398. }
  399. else
  400. return 0;
  401. }
  402. /// <summary>
  403. /// 返回
  404. /// </summary>
  405. /// <param name="sender"></param>
  406. /// <param name="e"></param>
  407. protected void btnBack_Click(object sender, EventArgs e)
  408. {
  409. Response.Redirect("List.aspx");
  410. }
  411. protected void btnGoOn_Click(object sender, EventArgs e)
  412. {
  413. //提交调查记录信息
  414. if (!string.IsNullOrEmpty(Session["UID"].ToString()))
  415. {
  416. DataTable dt = user.GetList(" user_id=" + int.Parse(Session["UID"].ToString())).Tables[0];
  417. if (dt.Rows.Count > 0)
  418. {
  419. int isrecorder = int.Parse(dt.Rows[0]["user_recorder"].ToString());
  420. if (isrecorder != 0)
  421. {
  422. departmodel = depart.GetModel(isrecorder);
  423. if (departmodel != null)
  424. {
  425. string recored = departmodel.depart_recorded.ToString();
  426. string[] part = recored.Split(',');
  427. for (int dep = 0; dep < part.Length; dep++)
  428. {
  429. int depart_id = int.Parse(part[dep].ToString());
  430. string recordtime = this.record_time.Text;
  431. if (depart_id != 0)
  432. {
  433. DataTable isparent = depart.GetList(" depart_parentid=" + depart_id).Tables[0];
  434. if (isparent.Rows.Count > 0)
  435. {
  436. for (int i = 0; i < isparent.Rows.Count; i++)
  437. {
  438. recordmodel.record_departid = int.Parse(isparent.Rows[i]["depart_id"].ToString());
  439. recordmodel.record_time = DateTime.Parse(recordtime).ToString("yyyy-MM-dd HH:mm:ss");
  440. recordmodel.record_createtime = System.DateTime.Now;
  441. recordmodel.record_comments = this.record_comments.Text;
  442. recordmodel.record_type = 1;
  443. record.Add(recordmodel);
  444. //提交调查所有信息
  445. //获得record_id
  446. int record_id = GetRecordID(int.Parse(isparent.Rows[i]["depart_id"].ToString()), DateTime.Parse(recordtime).ToString("yyyy-MM-dd HH:mm:ss"), new Com.Jpsoft.Hospital.BLL.jp_sys_userEx().getusername(int.Parse(Session["uid"].ToString())), this.record_comments.Text);
  447. foreach (string key in Request.Form.Keys)
  448. {
  449. if (key.IndexOf("YLFUYJ_") == 0)
  450. {
  451. //部门ID
  452. int departid = int.Parse(key.Split('_')[1].ToString());
  453. //项目ID
  454. int objid = int.Parse(key.Split('_')[2].ToString());
  455. //评价ID
  456. int view = int.Parse(Request.Form[key].ToString());
  457. if (departid == recordmodel.record_departid)
  458. {
  459. dtlmodel.detailinfo_objid = objid;
  460. dtlmodel.detailinfo_recordid = record_id;
  461. dtlmodel.detailinfo_view = view;
  462. dtlinfo.Add(dtlmodel);
  463. }
  464. }
  465. }
  466. }
  467. }
  468. else
  469. {
  470. recordmodel.record_departid = depart_id;
  471. recordmodel.record_time = DateTime.Parse(recordtime).ToString("yyyy-MM-dd HH:mm:ss");
  472. recordmodel.record_createtime = System.DateTime.Now;
  473. recordmodel.record_comments = this.record_comments.Text;
  474. recordmodel.record_type = 1;
  475. recordmodel.record_people = new Com.Jpsoft.Hospital.BLL.jp_sys_userEx().getusername(int.Parse(Session["uid"].ToString()));
  476. record.Add(recordmodel);
  477. //提交调查所有信息
  478. //获得record_id
  479. int record_id = GetRecordID(depart_id, DateTime.Parse(recordtime).ToString("yyyy-MM-dd HH:mm:ss"), new Com.Jpsoft.Hospital.BLL.jp_sys_userEx().getusername(int.Parse(Session["uid"].ToString())), this.record_comments.Text);
  480. foreach (string key in Request.Form.Keys)
  481. {
  482. if (key.IndexOf("YLFUYJ_") == 0)
  483. {
  484. // 部门ID
  485. int departid = int.Parse(key.Split('_')[1].ToString());
  486. // 项目ID
  487. int objid = int.Parse(key.Split('_')[2].ToString());
  488. //评价
  489. int view = int.Parse(Request.Form[key].ToString());
  490. if (departid == depart_id)
  491. {
  492. dtlmodel.detailinfo_view = view;
  493. dtlmodel.detailinfo_recordid = record_id;
  494. dtlmodel.detailinfo_objid = objid;
  495. dtlinfo.Add(dtlmodel);
  496. }
  497. }
  498. }
  499. }
  500. }
  501. }
  502. Response.Write("<script>alert('添加成功!');</script>");
  503. }
  504. }
  505. }
  506. }
  507. }
  508. }
  509. }