SMAEB03900_부위코드관리(사이버나이프).xrw 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403
  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>Untitle</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <lrgcdlist>
  11. <partgrupcd>
  12. <basecd/>
  13. <basecdflagdesc/>
  14. </partgrupcd>
  15. </lrgcdlist>
  16. <mdlcdlist>
  17. <partcd>
  18. <basecdflagdesc/>
  19. <basecd/>
  20. </partcd>
  21. </mdlcdlist>
  22. <smlcdlist>
  23. <diagcd>
  24. <diagcd/>
  25. <termengnm/>
  26. <partgrupcd/>
  27. <partcd/>
  28. <partdetlcd/>
  29. <partdetlnm/>
  30. <suppdeptcd/>
  31. </diagcd>
  32. <partdetlcd>
  33. <basecd/>
  34. <basecdflagdesc/>
  35. </partdetlcd>
  36. </smlcdlist>
  37. </main>
  38. <send>
  39. <lrgcd/>
  40. <mdlcd/>
  41. <globalinstance>
  42. <instance1/>
  43. </globalinstance>
  44. <req>
  45. <data/>
  46. </req>
  47. <partdetlcd/>
  48. </send>
  49. <init/>
  50. <hidden>
  51. <diaglist>
  52. <diagcd/>
  53. </diaglist>
  54. </hidden>
  55. <temp>
  56. <diagcdlist>
  57. <diagcd/>
  58. <diagnm/>
  59. </diagcdlist>
  60. </temp>
  61. </root>
  62. </instance>
  63. <submission id="TRAOB00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/lrgcdlist"/>
  64. <submission id="TRAOB00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/mdlcdlist"/>
  65. <submission id="TRAOB00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/smlcdlist"/>
  66. <submission id="TRAOB00104" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/smlcdlist"/>
  67. <submission id="TXAOB00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/hidden"/>
  68. <submission id="TXAOB00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance"/>
  69. <script type="javascript" ev:event="xforms-ready">
  70. <![CDATA[
  71. aezfSetSuppDeptcd();
  72. model.removeNodeset("/root/main/lrgcdlist/partgrupcd");
  73. model.removeNodeset("/root/main/mdlcdlist/partcd");
  74. model.removeNodeset("/root/main/smlcdlist/diagcd");
  75. model.refresh();
  76. ]]>
  77. </script>
  78. </model>
  79. </xhtml:head>
  80. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  81. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  82. <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
  83. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  84. <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
  85. <xhtml:body guideline="1,1195;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  86. <group id="group1" style="left:0px; top:0px; width:1194px; height:13px; ">
  87. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:137px; height:14px; background-image:../../../com/commonweb/images/tit_bullet1.gif; ">상병분류관리</caption>
  88. </group>
  89. <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  90. <group id="grp_sea" style="left:0px; top:10px; width:1154px; height:35px; vertical-align:top; ">
  91. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1151; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  92. <button id="btn_sea" class="btn1_letter2" style="left:1072px; top:7px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
  93. <caption>조회</caption>
  94. <script type="javascript" ev:event="DOMActivate">
  95. <![CDATA[
  96. model.removeNodeset("/root/main/mdlcdlist");
  97. model.removeNodeset("/root/main/smlcdlist");
  98. model.removeNodeset("/root/main/lrgcdlist/partgrupcd");
  99. model.removeNodeset("/root/main/mdlcdlist/partcd");
  100. model.removeNodeset("/root/main/smlcdlist/diagcd");
  101. model.removeNodeset("/root/main/smlcdlist/partdetlcd");
  102. grd_partcd.cellStyle("background-image", grd_partcd.row, 1) = "../../../com/commonweb/images/icon_n.gif";
  103. submit("TRAOB00101");
  104. grd_partgrupcd.isReadOnly(grd_partgrupcd.topRow,1, grd_partgrupcd.bottomRow, 1) = true;
  105. ]]>
  106. </script>
  107. </button>
  108. <line id="line13" class="line_4" style="x1:1062px; y1:7px; x2:1062px; y2:29px; "/>
  109. <caption id="caption2" class="search_name" style="left:15px; top:8px; width:99px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">대분류코드 :</caption>
  110. <input id="ipt_basecd" ref="/root/send/lrgcd" class="input_search" imemode="alpha" _chartype="upper" style="left:120px; top:8px; width:135px; height:19px; ">
  111. <script type="javascript" ev:event="onkeydown">
  112. <![CDATA[
  113. inputEnterKey("btn_sea","DOMActivate");
  114. ]]>
  115. </script>
  116. </input>
  117. </group>
  118. <line id="line1" class="line_1" style="x1:0px; y1:72px; x2:254; y2:71px; "/>
  119. <line id="line2" class="line_1" style="x1:565px; y1:387px; x2:1155px; y2:387px; "/>
  120. <caption id="caption1" class="tit_2" style="left:5px; top:55px; width:120px; height:14px; background-image:../../../com/commonweb/images/tit_bullet2.gif; ">상병코드 대분류</caption>
  121. <caption id="caption3" class="tit_2" style="left:564px; top:371px; width:120px; height:14px; background-image:../../../com/commonweb/images/tit_bullet2.gif; ">상병명 소분류</caption>
  122. <datagrid id="grd_diagcd" nodeset="/root/main/smlcdlist/diagcd" caption="상병코드^상병명^소분류^partdetlcd^대분류^일련번호^suppdeptcd" colsep="^" colwidth="102, 345, 100, 100, 0" explorerbar="sort" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:564px; top:391px; width:591px; height:324px; ">
  123. <col ref="diagcd" type="inputbutton" _key="true"/>
  124. <col ref="diagnm"/>
  125. <col ref="partdetlnm"/>
  126. <col ref="partdetlcd" visibility="hidden"/>
  127. <col ref="suppdeptcd"/>
  128. <script type="javascript" ev:event="xforms-value-changed">
  129. <![CDATA[
  130. /*
  131. var image = grd_diagcd.cellStyle("background-image", grd_diagcd.row, 1);
  132. image = image.substr(image.length - 10, image.length);
  133. if(image != "icon_i.gif" && image != "icon_d.gif")
  134. grd_diagcd.cellStyle("background-image", grd_diagcd.row, 1) = "../../../com/commonweb/images/icon_u.gif";
  135. */
  136. ]]>
  137. </script>
  138. <script type="javascript" ev:event="onbuttonclick">
  139. <![CDATA[
  140. if(grd_diagcd.rowStatus(grd_diagcd.row) == 1) {
  141. if (grd_diagcd.col == grd_diagcd.colRef("partdetlcd")) {
  142. }else if (grd_diagcd.col == grd_diagcd.colRef("diagcd")) {
  143. model.makeNode("/root/temp/diagcdlist/diagcd");
  144. modal( "SPAOB00200");
  145. if ( model.getValue("/root/temp/diagcdlist/diagcd") != "") {
  146. grd_diagcd.valueMatrix(grd_diagcd.row, grd_diagcd.colRef("diagcd")) = model.getValue("/root/temp/diagcdlist/diagcd");
  147. grd_diagcd.valueMatrix(grd_diagcd.row, grd_diagcd.colRef("diagnm")) = model.getValue("/root/temp/diagcdlist/diagnm");
  148. grd_diagcd.valueMatrix(grd_diagcd.row, grd_diagcd.colRef("suppdeptcd")) = model.getValue("/root/send/globalinstance/instance1");
  149. model.refresh();
  150. }
  151. }
  152. }
  153. ]]>
  154. </script>
  155. <script type="javascript" ev:event="onaftersort">
  156. <![CDATA[
  157. grd_diagcd.gridToInstance();
  158. ]]>
  159. </script>
  160. </datagrid>
  161. <line id="line3" class="line_1" style="x1:258px; y1:72px; x2:557px; y2:71px; "/>
  162. <caption id="caption4" class="tit_2" style="left:258px; top:55px; width:127px; height:13px; background-image:../../../com/commonweb/images/tit_bullet2.gif; ">상병코드 중분류</caption>
  163. <datagrid id="grd_partgrupcd" nodeset="/root/main/lrgcdlist/partgrupcd" caption="대분류" colsep="^" colwidth="230" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:75px; width:255px; height:640px; ">
  164. <col ref="basecdflagdesc" type="input"/>
  165. <script type="javascript" ev:event="onclick">
  166. <![CDATA[
  167. if (grd_partgrupcd.isCell(event.target) && grd_partgrupcd.row >= grd_partgrupcd.fixedRows) {
  168. var partgrupcd = model.getValue("/root/main/lrgcdlist/partgrupcd[" + grd_partgrupcd.row + "]/basecd");
  169. var partcd = model.getValue("/root/main/mdlcdlist/partcd[" + grd_partcd.row + "]/basecd");
  170. model.setValue("/root/send/lrgcd",partgrupcd);
  171. model.setValue("/root/send/mdlcd",partcd);
  172. model.removeNodeset("/root/main/mdlcdlist/partcd");
  173. model.removeNodeset("/root/main/smlcdlist/diagcd");
  174. model.removeNodeset("/root/main/smlcdlist/partdetlcd");
  175. submit("TRAOB00102");
  176. model.setValue("/root/send/lrgcd","");
  177. grd_partcd.isReadOnly(grd_partcd.topRow,1, grd_partcd.bottomRow, 1) = true;
  178. model.refresh();
  179. }
  180. ]]>
  181. </script>
  182. </datagrid>
  183. <datagrid id="grd_partcd" nodeset="/root/main/mdlcdlist/partcd" caption="중분류^caption1" colsep="^" colwidth="255, 100" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:258px; top:75px; width:300px; height:640px; ">
  184. <col ref="basecdflagdesc" type="input"/>
  185. <col ref="basecd" visibility="hidden"/>
  186. <script type="javascript" ev:event="onclick">
  187. <![CDATA[
  188. if (grd_partcd.isCell(event.target) && grd_partcd.row >= grd_partcd.fixedRows) {
  189. var partgrupcd = model.getValue("/root/main/lrgcdlist/partgrupcd[" + grd_partgrupcd.row + "]/basecd");
  190. var partcd = model.getValue("/root/main/mdlcdlist/partcd[" + grd_partcd.row + "]/basecd");
  191. model.setValue("/root/send/lrgcd",partgrupcd);
  192. model.setValue("/root/send/mdlcd",partcd);
  193. model.removeNodeset("/root/main/smlcdlist/diagcd");
  194. model.removeNodeset("/root/main/smlcdlist/partdetlcd");
  195. submit("TRAOB00103");
  196. //model.setValue("/root/send/lrgcd", "");
  197. //model.setValue("/root/send/mdlcd", "");
  198. grd_diagcd.isReadOnly(grd_diagcd.topRow,2, grd_diagcd.bottomRow, 2) = true;
  199. model.refresh();
  200. }
  201. ]]>
  202. </script>
  203. </datagrid>
  204. <button id="btn_grdadd" class="btn2_letter3" disable.background-image="../../../com/commonweb/images/dis_btn2_letter3.gif" style="left:1046px; top:366px; width:53px; height:19px; background-image:../../../com/commonweb/images/btn2_letter3.gif; ">
  205. <caption>행추가</caption>
  206. <script type="javascript" ev:event="DOMActivate">
  207. <![CDATA[
  208. if(grd_partdetlcd.row < 1)
  209. {
  210. messageBox("상세부위를 선택하신후에 행추가가 가능합니다.", "I");
  211. return;
  212. }
  213. grd_diagcd.addRow();
  214. grd_diagcd.row = grd_diagcd.bottomRow;
  215. var partdetlcd = model.getValue("/root/main/smlcdlist/partdetlcd[" + grd_partdetlcd.row + "]/basecd");
  216. var partdetlnm = model.getValue("/root/main/smlcdlist/partdetlcd[" + grd_partdetlcd.row + "]/basecdflagdesc");
  217. model.setValue("/root/main/smlcdlist/diagcd[" + grd_diagcd.row + "]/partdetlcd",partdetlcd);
  218. model.setValue("/root/main/smlcdlist/diagcd[" + grd_diagcd.row + "]/partdetlnm",partdetlnm);
  219. model.refresh();
  220. //model.setValue("/root/main/bodypartlist2/diagcdlist["+grd_diagcd.row+"]/partcd",model.getValue("/root/main/bodypartlist1/partcdlist["+grd_partcd.row+"]/partcd"));
  221. //grd_diagcd.cellStyle("background-image", grd_diagcd.row, 1) = "../../../com/commonweb/images/icon_i.gif";
  222. ]]>
  223. </script>
  224. </button>
  225. <button id="btn_grddel" class="btn2_letter3" disable.background-image="../../../com/commonweb/images/dis_btn2_letter3.gif" style="left:1102px; top:366px; width:53px; height:19px; background-image:../../../com/commonweb/images/btn2_letter3.gif; ">
  226. <caption>행삭제</caption>
  227. <script type="javascript" ev:event="DOMActivate">
  228. <![CDATA[
  229. deleteSelectedRows(grd_diagcd, true);
  230. //var row = grd_diagcd.row;
  231. //grd_diagcd.addStatus(row, "delete");
  232. //grd_diagcd.cellStyle("background-image", grd_diagcd.row, 1) = "../../../com/commonweb/images/icon_d.gif";
  233. ]]>
  234. </script>
  235. </button>
  236. <datagrid id="grd_partdetlcd" nodeset="/root/main/smlcdlist/partdetlcd" caption="소분류" colsep="^" colwidth="544" explorerbar="sort" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:565px; top:76px; width:590px; height:287px; ">
  237. <col ref="basecdflagdesc"/>
  238. <col ref="basecd" visibility="hidden"/>
  239. <script type="javascript" ev:event="onclick">
  240. <![CDATA[
  241. if(!(grd_partdetlcd.row > 0))
  242. {
  243. return;
  244. }
  245. if (grd_partdetlcd.isCell(event.target) > 0) {
  246. var row = grd_partdetlcd.row;
  247. var partdetlcd = model.getValue("/root/main/smlcdlist/partdetlcd[" + grd_partdetlcd.row + "]/basecd");
  248. var partdetlnm = model.getValue("/root/main/smlcdlist/partdetlcd[" + grd_partdetlcd.row + "]/basecdflagdesc");
  249. model.setValue("/root/send/partdetlcd",partdetlcd);
  250. model.removeNodeset("/root/main/smlcdlist/diagcd");
  251. submit("TRAOB00103");
  252. grd_partdetlcd.row = row;
  253. model.setValue("/root/send/partdetlcd","");
  254. model.refresh();
  255. }
  256. ]]>
  257. </script>
  258. <script type="javascript" ev:event="onaftersort">
  259. <![CDATA[
  260. grd_partdetlcd.gridToInstance();
  261. ]]>
  262. </script>
  263. </datagrid>
  264. <caption id="caption5" class="tit_2" style="left:565px; top:53px; width:127px; height:14px; background-image:../../../com/commonweb/images/tit_bullet2.gif; ">상병코드 소분류</caption>
  265. <line id="line4" class="line_1" style="x1:565px; y1:70px; x2:1154px; y2:70px; "/>
  266. <button id="btn_save" class="btn4_letter2" disable.background-image="../../../com/commonweb/images/dis_btn4_letter2.gif" style="left:1100px; top:720px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn4_letter2.gif; ">
  267. <caption>저장</caption>
  268. <script type="javascript" ev:event="DOMFocusIn">
  269. <![CDATA[
  270. checkKeyColumn("grd_diagcd");
  271. ]]>
  272. </script>
  273. <script type="javascript" ev:event="DOMActivate">
  274. <![CDATA[
  275. /*
  276. var i;
  277. if ( messageBox("","Q002")==6 )
  278. {
  279. //대분류만 수정
  280. if(getGridUpdateData(grd_partcd) != "" && getGridUpdateData(grd_diagcd) == "" )
  281. {
  282. model.setValue("/root/send/data", grd_partcd.getUpdateData());
  283. submit("TXAOB00101");
  284. submit("TRAOB00101");
  285. for(i=1; i < grd_partcd.rows ; i++)
  286. {
  287. grd_partcd.cellStyle("background-image", i, 1) = "../../../com/commonweb/images/icon_n.gif";
  288. }
  289. model.refresh();
  290. }
  291. //소분류만 수정
  292. else if( getGridUpdateData(grd_partcd) == "" && getGridUpdateData(grd_diagcd) != "" )
  293. {
  294. model.setValue("/root/send/data", grd_diagcd.getUpdateData());
  295. submit("TXAOB00102");
  296. submit("TRAOB00102");
  297. for(i=1; i < grd_diagcd.rows ; i++)
  298. {
  299. grd_diagcd.cellStyle("background-image", i, 1) = "../../../com/commonweb/images/icon_n.gif";
  300. }
  301. model.refresh();
  302. }
  303. //대분류,소분류 수정
  304. else if( getGridUpdateData(grd_partcd) != "" && getGridUpdateData(grd_diagcd) != "" )
  305. {
  306. model.setValue("/root/send/data", grd_partcd.getUpdateData());
  307. submit("TXAOB00101");
  308. submit("TRAOB00101");
  309. model.setValue("/root/send/data", grd_diagcd.getUpdateData());
  310. submit("TXAOB00102");
  311. submit("TRAOB00102");
  312. for(i=1; i < grd_diagcd.rows ; i++)
  313. {
  314. grd_diagcd.cellStyle("background-image", i, 1) = "../../../com/commonweb/images/icon_n.gif";
  315. }
  316. for(i=1; i < grd_partcd.rows ; i++)
  317. {
  318. grd_partcd.cellStyle("background-image", i, 1) = "../../../com/commonweb/images/icon_n.gif";
  319. }
  320. model.refresh();
  321. }
  322. }
  323. else {
  324. submit("TRAEB00102");
  325. model.refresh();
  326. return;
  327. } */
  328. var update = getGridUpdateData(grd_diagcd);
  329. if(update == ""){
  330. messageBox("업데이트 정보가 없습니다.", "I");
  331. } else {
  332. model.setValue("/root/send/req/data",update);
  333. submit("TXAOB00101");
  334. }
  335. var row = grd_partdetlcd.row;
  336. var partdetlcd = model.getValue("/root/main/smlcdlist/partdetlcd[" + grd_partdetlcd.row + "]/basecd");
  337. var partdetlnm = model.getValue("/root/main/smlcdlist/partdetlcd[" + grd_partdetlcd.row + "]/basecdflagdesc");
  338. model.setValue("/root/send/partdetlcd",partdetlcd);
  339. model.removeNodeset("/root/main/smlcdlist/diagcd");
  340. submit("TRAOB00103");
  341. grd_partdetlcd.row = row;
  342. model.setValue("/root/send/partdetlcd","");
  343. model.refresh();
  344. ]]>
  345. </script>
  346. </button>
  347. </group>
  348. </xhtml:body>
  349. </xhtml:html>