SMANB00500_교환기준관리.xrw 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  3. <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
  4. <xhtml:head>
  5. <xhtml:title>교환기준관리</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <data>
  11. <glycosuria>
  12. <sick/>
  13. <h_sick/>
  14. <exchstndcd/>
  15. <h_exchstndcd/>
  16. <exchstndnm/>
  17. <exchstndunit/>
  18. <calr/>
  19. <prot/>
  20. <lipo/>
  21. <gluco/>
  22. <lastupdtdt/>
  23. <lastupdtr/>
  24. </glycosuria>
  25. <kidney>
  26. <sick/>
  27. <h_sick/>
  28. <exchstndcd/>
  29. <h_exchstndcd/>
  30. <exchstndnm/>
  31. <exchstndunit/>
  32. <calr/>
  33. <prot/>
  34. <sodium/>
  35. <potas/>
  36. <phos/>
  37. <lastupdtdt/>
  38. <lastupdtr/>
  39. </kidney>
  40. <etrlfd>
  41. <sick/>
  42. <h_sick/>
  43. <exchstndcd/>
  44. <h_exchstndcd/>
  45. <exchstndnm/>
  46. <exchstndunit/>
  47. <calr/>
  48. <prot/>
  49. <lipo/>
  50. <gluco/>
  51. <sodium/>
  52. <potas/>
  53. <phos/>
  54. <fiber/>
  55. <iron/>
  56. <calcium/>
  57. <ash/>
  58. <zinc/>
  59. <vita/>
  60. <vitb1/>
  61. <vitb2/>
  62. <vitb5/>
  63. <vitb6/>
  64. <vitb12/>
  65. <vitc/>
  66. <vite/>
  67. <vith/>
  68. <vitk/>
  69. <nia/>
  70. <folacd/>
  71. <chol/>
  72. <oncopres/>
  73. <magne/>
  74. <fela/>
  75. <chal/>
  76. <mang/>
  77. <iodi/>
  78. <lastupdtdt/>
  79. <lastupdtr/>
  80. </etrlfd>
  81. <varices>
  82. <sick/>
  83. <h_sick/>
  84. <exchstndcd/>
  85. <h_exchstndcd/>
  86. <exchstndnm/>
  87. <exchstndunit/>
  88. <calr/>
  89. <prot/>
  90. <lipo/>
  91. <gluco/>
  92. <sodium/>
  93. <potas/>
  94. <phos/>
  95. <fiber/>
  96. <iron/>
  97. <calcium/>
  98. <ash/>
  99. <zinc/>
  100. <vita/>
  101. <vitb1/>
  102. <vitb2/>
  103. <vitb5/>
  104. <vitb6/>
  105. <vitb12/>
  106. <vitc/>
  107. <vite/>
  108. <vith/>
  109. <vitk/>
  110. <nia/>
  111. <folacd/>
  112. <chol/>
  113. <oncopres/>
  114. <magne/>
  115. <fela/>
  116. <chal/>
  117. <mang/>
  118. <iodi/>
  119. <lastupdtdt/>
  120. <lastupdtr/>
  121. </varices>
  122. <supply>
  123. <sick/>
  124. <h_sick/>
  125. <exchstndcd/>
  126. <h_exchstndcd/>
  127. <exchstndnm/>
  128. <exchstndunit/>
  129. <calr/>
  130. <prot/>
  131. <lipo/>
  132. <gluco/>
  133. <sodium/>
  134. <potas/>
  135. <phos/>
  136. <fiber/>
  137. <iron/>
  138. <calcium/>
  139. <ash/>
  140. <zinc/>
  141. <vita/>
  142. <vitb1/>
  143. <vitb2/>
  144. <vitb5/>
  145. <vitb6/>
  146. <vitb12/>
  147. <vitc/>
  148. <vite/>
  149. <vith/>
  150. <vitk/>
  151. <nia/>
  152. <folacd/>
  153. <chol/>
  154. <oncopres/>
  155. <magne/>
  156. <fela/>
  157. <chal/>
  158. <mang/>
  159. <iodi/>
  160. <lastupdtdt/>
  161. <lastupdtr/>
  162. </supply>
  163. </data>
  164. </main>
  165. <send>
  166. <searchitem>
  167. <sickcd/>
  168. </searchitem>
  169. <data/>
  170. </send>
  171. <hidden>
  172. <ret>
  173. <count/>
  174. </ret>
  175. </hidden>
  176. <init>
  177. <basecode>
  178. <sick>
  179. <A0056>
  180. <cdid/>
  181. <cdnm/>
  182. </A0056>
  183. </sick>
  184. </basecode>
  185. </init>
  186. </root>
  187. </instance>
  188. <script type="javascript" ev:event="xforms-ready">
  189. <![CDATA[
  190. finit();
  191. btn_search.disabled = !checkAuth("R");
  192. btn_save.disabled = !checkAuth("X");
  193. btn_excel.disabled = !checkAuth("P");
  194. model.setValue("/root/send/searchitem/sickcd", "1");
  195. submit("TRANB00501");
  196. //model.setValue("/root/send/searchitem/pridmenuwrite/prid", "15");
  197. ]]>
  198. </script>
  199. <script type="javascript">
  200. <![CDATA[
  201. function finit() {
  202. // 화면open시 공통코드 setting
  203. zbcfGetCodeList( new Array( "A0056" ), new Array( "/root/init/basecode/sick" ) );
  204. // model.resetInstanceNode("/root/main/data");
  205. model.resetInstanceNode("/root/send");
  206. model.removeNodeset("/root/main/data");
  207. model.refresh();
  208. }
  209. ]]>
  210. </script>
  211. <submission id="TRZBC00101"/>
  212. <submission id="TRANB00501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchitem" resultref="/root/main/data"/>
  213. <submission id="TXANB00501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/hidden/ret"/>
  214. <bind id="bind_sick1" ref="/root/main/data/glycosuria/sick" readonly="../sick!=''"/>
  215. <bind id="bind_sick2" ref="/root/main/data/kidney/sick" readonly="../sick!=''"/>
  216. <bind id="bind_sick3" ref="/root/main/data/etrlfd/sick" readonly="../sick!=''"/>
  217. <bind id="bind_sick4" ref="/root/main/data/varices/sick" readonly="../sick!=''"/>
  218. </model>
  219. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  220. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  221. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  222. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  223. </xhtml:head>
  224. <xhtml:body guideline="1,1194;2,749;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  225. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  226. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:189px; height:14px; ">교환기준관리</caption>
  227. </group>
  228. <group id="group2" scroll="autovscroll" style="left:0px; top:13px; width:1195px; height:744px; ">
  229. <switch id="switch1" style="left:0px; top:26px; width:1194px; height:715px; ">
  230. <case id="case1" selected="true">
  231. <datagrid id="grd_glycosuria" nodeset="/root/main/data/glycosuria" caption="sick^h_sick^h_코드^코드^구분^단위^열량(kcal)^단백질(g)^지질(g)^당질(g)^최종수정일시^최종수정자" colsep="^" colwidth="80, 10, 10, 90, 205, 80, 100, 100, 100, 100, 160, 90" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" selectionmode="free" style="left:0px; top:3px; width:1194px; height:692px; text-align:center; ">
  232. <col ref="sick" type="combo" visibility="hidden">
  233. <choices>
  234. <itemset nodeset="/root/init/basecode/sick/A0056">
  235. <label ref="cdnm"/>
  236. <value ref="cdid"/>
  237. </itemset>
  238. </choices>
  239. </col>
  240. <col ref="h_sick" visibility="hidden"/>
  241. <col ref="h_exchstndcd" visibility="hidden"/>
  242. <col ref="exchstndcd" type="input"/>
  243. <col ref="exchstndnm" type="input"/>
  244. <col ref="exchstndunit" type="input"/>
  245. <col ref="calr" type="input"/>
  246. <col ref="prot" type="input"/>
  247. <col ref="lipo" type="input"/>
  248. <col ref="gluco" type="input"/>
  249. <col ref="lastupdtdt" format="yyyy-mm-dd hh:nn:ss"/>
  250. <col ref="lastupdtr"/>
  251. <script type="javascript" ev:event="xforms-select">
  252. <![CDATA[
  253. // var target_col = grd_glycosuria.col;
  254. // if ( target_col == "3" ) {
  255. // var exchstndcd = model.getValue("/root/main/data/glycosuria["+(grd_glycosuria.row)+"]/exchstndnm");
  256. // model.setValue("/root/main/data/glycosuria["+(grd_glycosuria.row)+"]/exchstndcd", exchstndcd);
  257. // model.refresh();
  258. // }
  259. ]]>
  260. </script>
  261. </datagrid>
  262. </case>
  263. <case id="case2">
  264. <datagrid id="grd_kidney" nodeset="/root/main/data/kidney" caption="sick^h_sick^h_코드^코드^구분^단위^열량(kcal)^단백질(g)^나트륨(mg)^칼륨(mg)^인(mg)^최종수정일시^최종수정자" colsep="^" colwidth="80, 10, 10, 80, 205, 80, 100, 100, 100, 100, 100, 130, 80" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" selectionmode="free" style="left:0px; top:3px; width:1194px; height:692px; text-align:center; ">
  265. <col ref="sick" type="combo" visibility="hidden">
  266. <choices>
  267. <itemset nodeset="/root/init/basecode/sick/A0056">
  268. <label ref="cdnm"/>
  269. <value ref="cdid"/>
  270. </itemset>
  271. </choices>
  272. </col>
  273. <col ref="h_sick" visibility="hidden"/>
  274. <col ref="h_exchstndcd" visibility="hidden"/>
  275. <col ref="exchstndcd" type="input"/>
  276. <col ref="exchstndnm" type="input"/>
  277. <col ref="exchstndunit" type="input"/>
  278. <col ref="calr" type="input"/>
  279. <col ref="prot" type="input"/>
  280. <col ref="sodium" type="input"/>
  281. <col ref="potas" type="input"/>
  282. <col ref="phos" type="input"/>
  283. <col ref="lastupdtdt" format="yyyy-mm-dd hh:nn:ss"/>
  284. <col ref="lastupdtr"/>
  285. <script type="javascript" ev:event="xforms-select">
  286. <![CDATA[
  287. // var target_col = grd_kidney.col;
  288. // if ( target_col == "3" ) {
  289. // var exchstndcd = model.getValue("/root/main/data/kidney["+(grd_kidney.row)+"]/exchstndnm");
  290. // model.setValue("/root/main/data/kidney["+(grd_kidney.row)+"]/exchstndcd", exchstndcd);
  291. // model.refresh();
  292. // }
  293. ]]>
  294. </script>
  295. </datagrid>
  296. </case>
  297. <case id="case3">
  298. <datagrid id="grd_etrlfd" nodeset="/root/main/data/etrlfd" caption="sick^h_sick^h_코드^코드^구분^단위^열량(kcal)^단백질(g)^지질(g)^당질(g)^나트륨(mg)^칼륨(mg)^인(mg)^식이섬유^철(mg)^칼슘(mg)^회분^아연^비타민A^비타민B1^비타민B2^판토텐산^비타민B6^비타민B12^비타민C^비타민E^Biotin^비타민K^나이아신^엽산^콜레스테롤^삼투압^마그네슘^Felate^Chalime^망간^요오드^최종수정일시^최종수정자" colsep="^" colwidth="80, 10, 10, 80, 205, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 120, 70" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" selectionmode="free" style="left:0px; top:3px; width:1194px; height:692px; text-align:center; ">
  299. <col ref="sick" type="combo" visibility="hidden">
  300. <choices>
  301. <itemset nodeset="/root/init/basecode/sick/A0056">
  302. <label ref="cdnm"/>
  303. <value ref="cdid"/>
  304. </itemset>
  305. </choices>
  306. </col>
  307. <col ref="h_sick" visibility="hidden"/>
  308. <col ref="h_exchstndcd" visibility="hidden"/>
  309. <col ref="exchstndcd" type="input"/>
  310. <col ref="exchstndnm" type="input"/>
  311. <col ref="exchstndunit" type="input"/>
  312. <col ref="calr" type="input"/>
  313. <col ref="prot" type="input"/>
  314. <col ref="lipo" type="input"/>
  315. <col ref="gluco" type="input"/>
  316. <col ref="sodium" type="input"/>
  317. <col ref="potas" type="input"/>
  318. <col ref="phos" type="input"/>
  319. <col ref="fiber" type="input"/>
  320. <col ref="iron" type="input"/>
  321. <col ref="calcium" type="input"/>
  322. <col ref="ash" type="input"/>
  323. <col ref="zinc" type="input"/>
  324. <col ref="vita" type="input"/>
  325. <col ref="vitb1" type="input"/>
  326. <col ref="vitb2" type="input"/>
  327. <col ref="vitb5" type="input"/>
  328. <col ref="vitb6" type="input"/>
  329. <col ref="vitb12" type="input"/>
  330. <col ref="vitc" type="input"/>
  331. <col ref="vite" type="input"/>
  332. <col ref="vith" type="input"/>
  333. <col ref="vitk" type="input"/>
  334. <col ref="nia" type="input"/>
  335. <col ref="folacd" type="input"/>
  336. <col ref="chol" type="input"/>
  337. <col ref="oncopres" type="input"/>
  338. <col ref="magne" type="input"/>
  339. <col ref="fela" type="input"/>
  340. <col ref="chal" type="input"/>
  341. <col ref="mang" type="input"/>
  342. <col ref="iodi" type="input"/>
  343. <col ref="lastupdtdt" format="yyyy-mm-dd hh:nn:ss"/>
  344. <col ref="lastupdtr"/>
  345. <script type="javascript" ev:event="xforms-select">
  346. <![CDATA[
  347. // var target_col = grd_etrlfd.col;
  348. // if ( target_col == "3" ) {
  349. // var exchstndcd = model.getValue("/root/main/data/etrlfd["+(grd_etrlfd.row)+"]/exchstndnm");
  350. // model.setValue("/root/main/data/etrlfd["+(grd_etrlfd.row)+"]/exchstndcd", exchstndcd);
  351. // model.refresh();
  352. // }
  353. ]]>
  354. </script>
  355. </datagrid>
  356. </case>
  357. <case id="case4">
  358. <datagrid id="grd_varices" nodeset="/root/main/data/varices" caption="sick^h_sick^h_코드^코드^구분^단위^열량(kcal)^단백질(g)^지질(g)^당질(g)^나트륨(mg)^칼륨(mg)^인(mg)^식이섬유^철(mg)^칼슘(mg)^회분^아연^비타민A^비타민B1^비타민B2^판토텐산^비타민B6^비타민B12^비타민C^비타민E^Biotin^비타민K^나이아신^엽산^콜레스테롤^삼투압^마그네슘^Felate^Chalime^망간^요오드^최종수정일시^최종수정자" colsep="^" colwidth="80, 10, 10, 80, 205, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 120, 80" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" selectionmode="free" style="left:0px; top:3px; width:1194px; height:692px; text-align:center; ">
  359. <col ref="sick" type="combo" visibility="hidden">
  360. <choices>
  361. <itemset nodeset="/root/init/basecode/sick/A0056">
  362. <label ref="cdnm"/>
  363. <value ref="cdid"/>
  364. </itemset>
  365. </choices>
  366. </col>
  367. <col ref="h_sick" visibility="hidden"/>
  368. <col ref="h_exchstndcd" visibility="hidden"/>
  369. <col ref="exchstndcd" type="input"/>
  370. <col ref="exchstndnm" type="input"/>
  371. <col ref="exchstndunit" type="input"/>
  372. <col ref="calr" type="input"/>
  373. <col ref="prot" type="input"/>
  374. <col ref="lipo" type="input"/>
  375. <col ref="gluco" type="input"/>
  376. <col ref="sodium" type="input"/>
  377. <col ref="potas" type="input"/>
  378. <col ref="phos" type="input"/>
  379. <col ref="fiber" type="input"/>
  380. <col ref="iron" type="input"/>
  381. <col ref="calcium" type="input"/>
  382. <col ref="ash" type="input"/>
  383. <col ref="zinc" type="input"/>
  384. <col ref="vita" type="input"/>
  385. <col ref="vitb1" type="input"/>
  386. <col ref="vitb2" type="input"/>
  387. <col ref="vitb5" type="input"/>
  388. <col ref="vitb6" type="input"/>
  389. <col ref="vitb12" type="input"/>
  390. <col ref="vitc" type="input"/>
  391. <col ref="vite" type="input"/>
  392. <col ref="vith" type="input"/>
  393. <col ref="vitk" type="input"/>
  394. <col ref="nia" type="input"/>
  395. <col ref="folacd" type="input"/>
  396. <col ref="chol" type="input"/>
  397. <col ref="oncopres" type="input"/>
  398. <col ref="magne" type="input"/>
  399. <col ref="fela" type="input"/>
  400. <col ref="chal" type="input"/>
  401. <col ref="mang" type="input"/>
  402. <col ref="iodi" type="input"/>
  403. <col ref="lastupdtdt" format="yyyy-mm-dd hh:nn:ss"/>
  404. <col ref="lastupdtr"/>
  405. <script type="javascript" ev:event="xforms-select">
  406. <![CDATA[
  407. // var target_col = grd_varices.col;
  408. // if ( target_col == "3" ) {
  409. // var exchstndcd = model.getValue("/root/main/data/varices["+(grd_varices.row)+"]/exchstndnm");
  410. // model.setValue("/root/main/data/varices["+(grd_varices.row)+"]/exchstndcd", exchstndcd);
  411. // model.refresh();
  412. // }
  413. ]]>
  414. </script>
  415. </datagrid>
  416. </case>
  417. <case id="case5">
  418. <datagrid id="grd_supply" nodeset="/root/main/data/supply" caption="sick^h_sick^h_코드^코드^구분^단위^열량(kcal)^단백질(g)^지질(g)^당질(g)^나트륨(mg)^칼륨(mg)^인(mg)^식이섬유^철(mg)^칼슘(mg)^회분^아연^비타민A^비타민B1^비타민B2^판토텐산^비타민B6^비타민B12^비타민C^비타민E^Biotin^비타민K^나이아신^엽산^콜레스테롤^삼투압^마그네슘^Felate^Chalime^망간^요오드^최종수정일시^최종수정자" colsep="^" colwidth="80, 10, 10, 80, 205, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 120, 80" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" selectionmode="free" style="left:0px; top:3px; width:1194px; height:692px; text-align:center; ">
  419. <col ref="sick" type="combo" visibility="hidden">
  420. <choices>
  421. <itemset nodeset="/root/init/basecode/sick/A0056">
  422. <label ref="cdnm"/>
  423. <value ref="cdid"/>
  424. </itemset>
  425. </choices>
  426. </col>
  427. <col ref="h_sick" visibility="hidden"/>
  428. <col ref="h_exchstndcd" visibility="hidden"/>
  429. <col ref="exchstndcd" type="input"/>
  430. <col ref="exchstndnm" type="input"/>
  431. <col ref="exchstndunit" type="input"/>
  432. <col ref="calr" type="input"/>
  433. <col ref="prot" type="input"/>
  434. <col ref="lipo" type="input"/>
  435. <col ref="gluco" type="input"/>
  436. <col ref="sodium" type="input"/>
  437. <col ref="potas" type="input"/>
  438. <col ref="phos" type="input"/>
  439. <col ref="fiber" type="input"/>
  440. <col ref="iron" type="input"/>
  441. <col ref="calcium" type="input"/>
  442. <col ref="ash" type="input"/>
  443. <col ref="zinc" type="input"/>
  444. <col ref="vita" type="input"/>
  445. <col ref="vitb1" type="input"/>
  446. <col ref="vitb2" type="input"/>
  447. <col ref="vitb5" type="input"/>
  448. <col ref="vitb6" type="input"/>
  449. <col ref="vitb12" type="input"/>
  450. <col ref="vitc" type="input"/>
  451. <col ref="vite" type="input"/>
  452. <col ref="vith" type="input"/>
  453. <col ref="vitk" type="input"/>
  454. <col ref="nia" type="input"/>
  455. <col ref="folacd" type="input"/>
  456. <col ref="chol" type="input"/>
  457. <col ref="oncopres" type="input"/>
  458. <col ref="magne" type="input"/>
  459. <col ref="fela" type="input"/>
  460. <col ref="chal" type="input"/>
  461. <col ref="mang" type="input"/>
  462. <col ref="iodi" type="input"/>
  463. <col ref="lastupdtdt" format="yyyy-mm-dd hh:nn:ss"/>
  464. <col ref="lastupdtr"/>
  465. <script type="javascript" ev:event="xforms-select">
  466. <![CDATA[
  467. // var target_col = grd_supply.col;
  468. // if ( target_col == "3" ) {
  469. // var exchstndcd = model.getValue("/root/main/data/supply["+(grd_supply.row)+"]/exchstndnm");
  470. // model.setValue("/root/main/data/supply["+(grd_supply.row)+"]/exchstndcd", exchstndcd);
  471. // model.refresh();
  472. // }
  473. ]]>
  474. </script>
  475. </datagrid>
  476. </case>
  477. </switch>
  478. <button id="btn_glycosuria" class="btn_sw" group="tab" selected="true" style="left:0px; top:5px; width:84px; height:22px; ">
  479. <caption>당뇨</caption>
  480. <script type="javascript" ev:event="DOMActivate">
  481. <![CDATA[
  482. model.toggle("case1");
  483. model.setValue("/root/send/searchitem/sickcd", "1");
  484. submit("TRANB00501");
  485. ]]>
  486. </script>
  487. </button>
  488. <button id="btn_kidney" class="btn_sw" group="tab" style="left:84px; top:5px; width:84px; height:22px; ">
  489. <caption>신장</caption>
  490. <script type="javascript" ev:event="DOMActivate">
  491. <![CDATA[
  492. model.toggle("case2");
  493. model.setValue("/root/send/searchitem/sickcd", "2");
  494. submit("TRANB00501");
  495. ]]>
  496. </script>
  497. </button>
  498. <button id="btn_etrlfd" class="btn_sw" group="tab" style="left:168px; top:5px; width:84px; height:22px; ">
  499. <caption>경장</caption>
  500. <script type="javascript" ev:event="DOMActivate">
  501. <![CDATA[
  502. model.toggle("case3");
  503. model.setValue("/root/send/searchitem/sickcd", "3");
  504. submit("TRANB00501");
  505. ]]>
  506. </script>
  507. </button>
  508. <button id="btn_varices" class="btn_sw" group="tab" style="left:252px; top:5px; width:84px; height:22px; ">
  509. <caption>정맥</caption>
  510. <script type="javascript" ev:event="DOMActivate">
  511. <![CDATA[
  512. model.toggle("case4");
  513. model.setValue("/root/send/searchitem/sickcd", "4");
  514. submit("TRANB00501");
  515. ]]>
  516. </script>
  517. </button>
  518. <button id="btn_supply" class="btn_sw" group="tab" style="left:336px; top:5px; width:84px; height:22px; ">
  519. <caption>보충</caption>
  520. <script type="javascript" ev:event="DOMActivate">
  521. <![CDATA[
  522. model.toggle("case5");
  523. model.setValue("/root/send/searchitem/sickcd", "5");
  524. submit("TRANB00501");
  525. ]]>
  526. </script>
  527. </button>
  528. <button id="btn_search" class="btn1_letter2" style="left:1122px; top:2px; width:56px; height:22px; ">
  529. <caption>조회</caption>
  530. <script type="javascript" ev:event="DOMActivate">
  531. <![CDATA[
  532. if (btn_glycosuria.selected) { //당뇨 탭화면일때
  533. model.setValue("/root/send/searchitem/sickcd", "1");
  534. }
  535. else if (btn_kidney.selected) { //신장 탭화면일때
  536. model.setValue("/root/send/searchitem/sickcd", "2");
  537. }
  538. else if (btn_etrlfd.selected) { //경장 탭화면일때
  539. model.setValue("/root/send/searchitem/sickcd", "3");
  540. }
  541. else if (btn_varices.selected) { //정맥 탭화면일때
  542. model.setValue("/root/send/searchitem/sickcd", "4");
  543. }
  544. else if (btn_supply.selected) { //보충 탭화면일때
  545. model.setValue("/root/send/searchitem/sickcd", "5");
  546. }
  547. submit("TRANB00501");
  548. ]]>
  549. </script>
  550. </button>
  551. <line id="line13" style="x1:1106px; y1:2px; x2:1106px; y2:24px; "/>
  552. <button id="btn_excel" class="btn2_letter2" style="left:1052px; top:4px; width:42px; height:19px; ">
  553. <caption>엑셀</caption>
  554. <script type="javascript" ev:event="DOMActivate">
  555. <![CDATA[
  556. var filename = window.fileDialog("save", ",", false, "ExchBase_list", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  557. if (filename != "") {
  558. grd_glycosuria.saveExcel(filename, "grd_glycosuria", true, false, "", "", "");
  559. }
  560. ]]>
  561. </script>
  562. </button>
  563. <button id="btn_rowadd" class="btn2_letter3" style="left:940px; top:4px; width:53px; height:19px; ">
  564. <caption>행추가</caption>
  565. <script type="javascript" ev:event="DOMActivate">
  566. <![CDATA[
  567. if (btn_glycosuria.selected) { //당뇨 탭화면일때
  568. grd_glycosuria.addRow();
  569. model.setValue("/root/main/data/glycosuria["+ grd_glycosuria.row +"]/sick", '1');
  570. }
  571. else if (btn_kidney.selected) { //신장 탭화면일때
  572. grd_kidney.addRow();
  573. model.setValue("/root/main/data/kidney["+ grd_kidney.row +"]/sick", '2');
  574. }
  575. else if (btn_etrlfd.selected) { //경장 탭화면일때
  576. grd_etrlfd.addRow();
  577. model.setValue("/root/main/data/etrlfd["+ grd_etrlfd.row +"]/sick", '3');
  578. }
  579. else if (btn_varices.selected) { //정맥 탭화면일때
  580. grd_varices.addRow();
  581. model.setValue("/root/main/data/varices["+ grd_varices.row +"]/sick", '4');
  582. }
  583. else if (btn_supply.selected) { //보충 탭화면일때
  584. grd_supply.addRow();
  585. model.setValue("/root/main/data/supply["+ grd_supply.row +"]/sick", '5');
  586. }
  587. ]]>
  588. </script>
  589. </button>
  590. <button id="btn_rowdel" class="btn2_letter3" style="left:996px; top:4px; width:53px; height:19px; ">
  591. <caption>행삭제</caption>
  592. <script type="javascript" ev:event="DOMActivate">
  593. <![CDATA[
  594. if (btn_glycosuria.selected) { //당뇨 탭화면일때
  595. var cur_row = grd_glycosuria.row;
  596. grd_glycosuria.deleteRow(cur_row);
  597. }
  598. else if (btn_kidney.selected) { //신장 탭화면일때
  599. var cur_row = grd_kidney.row;
  600. grd_kidney.deleteRow(cur_row);
  601. }
  602. else if (btn_etrlfd.selected) { //경장 탭화면일때
  603. var cur_row = grd_etrlfd.row;
  604. grd_etrlfd.deleteRow(cur_row);
  605. }
  606. else if (btn_varices.selected) { //정맥 탭화면일때
  607. var cur_row = grd_varices.row;
  608. grd_varices.deleteRow(cur_row);
  609. }
  610. else if (btn_supply.selected) { //보충 탭화면일때
  611. var cur_row = grd_supply.row;
  612. grd_supply.deleteRow(cur_row);
  613. }
  614. ]]>
  615. </script>
  616. </button>
  617. </group>
  618. <group id="group3" scroll="auto" style="left:0px; top:757px; width:1195px; height:27px; ">
  619. <button id="btn_reset" class="btn4_letter3" style="left:1066px; top:5px; width:68px; height:22px; ">
  620. <caption>초기화</caption>
  621. <script type="javascript" ev:event="DOMActivate">
  622. <![CDATA[
  623. finit();
  624. ]]>
  625. </script>
  626. </button>
  627. <button id="btn_save" class="btn4_letter2" style="left:1138px; top:4px; width:56px; height:22px; ">
  628. <caption>저장</caption>
  629. <script type="javascript" ev:event="DOMActivate">
  630. <![CDATA[
  631. if ( messageBox("", "Q002") == 6 ) {
  632. if (btn_glycosuria.selected) { //당뇨 탭화면일때
  633. //필수입력항목 체크
  634. for ( j = 1; j < grd_glycosuria.rows; j++ ) {
  635. var exchstndcd = model.getValue("/root/main/data/glycosuria["+ j +"]/exchstndcd");
  636. if ( exchstndcd == "" ) {
  637. messageBox("교환기준명, 교환기준코드 항목은", "I003");
  638. return;
  639. }
  640. }
  641. model.setValue("/root/send/data", grd_glycosuria.getUpdateData());
  642. }
  643. else if (btn_kidney.selected) { //신장 탭화면일때
  644. //필수입력항목 체크
  645. for ( j = 1; j < grd_kidney.rows; j++ ) {
  646. var exchstndcd = model.getValue("/root/main/data/kidney["+ j +"]/exchstndcd");
  647. if ( exchstndcd == "" ) {
  648. messageBox("교환기준명, 교환기준코드 항목은", "I003");
  649. return;
  650. }
  651. }
  652. model.setValue("/root/send/data", grd_kidney.getUpdateData());
  653. }
  654. else if (btn_etrlfd.selected) { //경장 탭화면일때
  655. //필수입력항목 체크
  656. for ( j = 1; j < grd_etrlfd.rows; j++ ) {
  657. var exchstndcd = model.getValue("/root/main/data/etrlfd["+ j +"]/exchstndcd");
  658. if ( exchstndcd == "" ) {
  659. messageBox("교환기준명, 교환기준코드 항목은", "I003");
  660. return;
  661. }
  662. }
  663. model.setValue("/root/send/data", grd_etrlfd.getUpdateData());
  664. }
  665. else if (btn_varices.selected) { //정맥 탭화면일때
  666. //필수입력항목 체크
  667. for ( j = 1; j < grd_varices.rows; j++ ) {
  668. var exchstndcd = model.getValue("/root/main/data/varices["+ j +"]/exchstndcd");
  669. if ( exchstndcd == "" ) {
  670. messageBox("교환기준명, 교환기준코드 항목은", "I003");
  671. return;
  672. }
  673. }
  674. model.setValue("/root/send/data", grd_varices.getUpdateData());
  675. }
  676. else if (btn_supply.selected) { //보충 탭화면일때
  677. //필수입력항목 체크
  678. for ( j = 1; j < grd_supply.rows; j++ ) {
  679. var exchstndcd = model.getValue("/root/main/data/supply["+ j +"]/exchstndcd");
  680. if ( exchstndcd == "" ) {
  681. messageBox("교환기준명, 교환기준코드 항목은", "I003");
  682. return;
  683. }
  684. }
  685. model.setValue("/root/send/data", grd_supply.getUpdateData());
  686. }
  687. if (submit("TXANB00501")) {
  688. submit("TRANB00501");
  689. }
  690. // model.resetInstanceNode("/root/main/data");
  691. // model.resetInstanceNode("/root/send/data");
  692. } else { return; }
  693. ]]>
  694. </script>
  695. </button>
  696. </group>
  697. </xhtml:body>
  698. </xhtml:html>