SMAHB02400_질환코드관리.xrw 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/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. <cmpylst>
  11. <item>
  12. <cmpycd/>
  13. <cmpynm/>
  14. </item>
  15. </cmpylst>
  16. <sicklst>
  17. <item>
  18. <sickcdkey/>
  19. <sickcd/>
  20. <sicknm/>
  21. <judgcd/>
  22. <mappsickcd/>
  23. <lastupdtrid/>
  24. <lastupdtdt/>
  25. <sickcdcnts/>
  26. </item>
  27. </sicklst>
  28. </main>
  29. <send>
  30. <srchcmpycd/>
  31. <srchcmpycd2/>
  32. <srchcmpynm/>
  33. <srchsickcd/>
  34. <srchsicknm/>
  35. <srchinstcd/>
  36. <srchcond/>
  37. <save>
  38. <savesickcd/>
  39. <cmpycd/>
  40. <instcd/>
  41. <userid/>
  42. </save>
  43. <cmpymatch>
  44. <cmpycd/>
  45. </cmpymatch>
  46. </send>
  47. <init>
  48. <allchk>
  49. <chk/>
  50. </allchk>
  51. </init>
  52. <hidden>
  53. </hidden>
  54. <target/>
  55. </root>
  56. </instance>
  57. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  58. <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
  59. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  60. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  61. <submission id="TRAHB02401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/cmpylst"/>
  62. <submission id="TRAHB02402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/sicklst"/>
  63. <submission id="TRAHB02403" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/cmpymatch" replace="instance" resultref="/root/main/sicklst"/>
  64. <submission id="TXAHB02401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" replace="instance" resultref="/root/hidden"/>
  65. <bind id="bind_sickcd" ref="/root/main/sicklst/item/sickcd" readonly="../sickcdkey!=''"/>
  66. <script type="javascript" ev:event="xforms-ready">
  67. <![CDATA[
  68. fGetCmpyList();
  69. ]]>
  70. </script>
  71. </model>
  72. <script type="javascript">
  73. <![CDATA[
  74. function fInit(bAll) {
  75. if(bAll == true) {
  76. model.removeNodeset("/root/main/cmpylst/item");
  77. }
  78. model.removeNodeset("/root/main/sicklst/item");
  79. }
  80. function fGetCmpyList() {
  81. fInit(true);
  82. model.setValue("/root/send/srchinstcd", getUserInfo("dutplceinstcd"));
  83. model.setValue("/root/send/srchcond", "N");
  84. if( ( model.getValue("/root/send/srchsickcd") != "" ) || ( model.getValue("/root/send/srchsicknm") != "" ) ) {
  85. model.setValue("/root/send/srchcond", "Y");
  86. }
  87. submit("TRAHB02401");
  88. if((model.getValue("/root/send/srchcmpycd") == "") && (model.getValue("/root/send/srchcmpynm") == "")){
  89. // 20100405 JHP 추가 시작
  90. model.setValue("/root/init/allchk/chk","ALL");
  91. model.setValue("/root/send/cmpymatch/cmpycd", "A");
  92. submit("TRAHB02403");
  93. // 20100405 JHP 추가 끝
  94. }
  95. }
  96. function fGetSickList() {
  97. fInit(false);
  98. var idx = grd_cmpylst.row;
  99. if( idx < 1) return ;
  100. var vCmpycd = model.getValue("/root/main/cmpylst/item[" + idx + "]/cmpycd" );
  101. model.setValue("/root/send/srchcmpycd2", vCmpycd);
  102. model.setValue("/root/send/srchinstcd",getUserInfo("dutplceinstcd"));
  103. submit("TRAHB02402");
  104. }
  105. function fSaveSickCd() {
  106. if( ! getGridUpdateData(grd_sicklst) )
  107. {
  108. alert("저장할 내역이 없습니다.");
  109. return ;
  110. }
  111. var ret = false;
  112. if ( messageBox("질환코드정보를","Q002")==6 ) {
  113. var idx = grd_cmpylst.row;
  114. //if( idx < 1) return ;
  115. var vCmpycd = model.getValue("/root/main/cmpylst/item[" + idx + "]/cmpycd" );
  116. if( vCmpycd == ""){
  117. model.setValue("/root/send/save/cmpycd", getUserInfo("dutplceinstcd"));
  118. }else{
  119. var allyn = model.getValue("/root/init/allchk/chk");
  120. if(allyn == "ALL"){
  121. model.setValue("/root/send/save/cmpycd", getUserInfo("dutplceinstcd"));
  122. }else if(allyn == "NOT"){
  123. model.setValue("/root/send/save/cmpycd", vCmpycd);
  124. }else{
  125. alert("사업체확인요청");
  126. return;
  127. }
  128. }
  129. model.setValue("/root/send/save/instcd", getUserInfo("dutplceinstcd"));
  130. model.setValue("/root/send/save/userid", getUserInfo("posuserid") );
  131. model.setValue("/root/send/save/savesickcd", grd_sicklst.getUpdateData());
  132. ret = submit("TXAHB02401");
  133. }
  134. return ret;
  135. }
  136. /**
  137. function fSaveSickCd() {
  138. if( messageBox("질환코드정보를","Q002") == 6){
  139. var idx = grd_cmpylst.row;
  140. if( idx < 1) return ;
  141. var vCmpycd = model.getValue("/root/main/cmpylst/item[" + idx + "]/cmpycd" );
  142. if( vCmpycd == "") return ;
  143. model.setValue("/root/send/save/cmpycd", vCmpycd);
  144. model.setValue("/root/send/save/instcd", getUserInfo("dutplceinstcd"));
  145. model.setValue("/root/send/save/userid", getUserInfo("posuserid") );
  146. model.setValue("/root/send/save/savesickcd", grd_sicklst.getUpdateData());
  147. submit("TXAHB02401");
  148. }
  149. }
  150. */
  151. function fExcelUpload(){
  152. var fileName = window.fileDialog("open", ",", false, "", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  153. if(fileName != "") {
  154. grd_sicklst.loadExcel(fileName, 1, true);
  155. var cnt = grd_sicklst.rows;
  156. var i = 0;
  157. for( i = 1; i < cnt +1 ; i++)
  158. {
  159. grd_sicklst.addStatus(i, "insert");
  160. }
  161. grd_sicklst.deleteRow(1);
  162. grd_sicklst.refresh();
  163. }
  164. }
  165. // 수정이력 : 20100331 JHP 사업체선택시 사업체에 해당하는 질환코드만 보여주는함수. 추가
  166. function fGetCmpyMatchSickList(){
  167. var row = grd_cmpylst.row;
  168. if(row <= 0){
  169. }else{
  170. var cmpycd = model.getValue("/root/main/cmpylst/item[" + row + "]/cmpycd")
  171. if(cmpycd == "" || cmpycd == " " || cmpycd == null){
  172. }else{
  173. model.setValue("/root/send/cmpymatch/cmpycd",model.getValue("/root/main/cmpylst/item[" + row + "]/cmpycd"));
  174. submit("TRAHB02403");
  175. }
  176. }
  177. }
  178. ]]>
  179. </script>
  180. </xhtml:head>
  181. <xhtml:body guideline="1,1195;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  182. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  183. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:142px; height:14px; ">질환코드 관리</caption>
  184. </group>
  185. <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  186. <caption id="caption1" class="tit_2" style="left:5px; top:55px; width:82px; height:14px; ">사업체정보</caption>
  187. <line id="line1" class="line_1" style="x1:0px; y1:70px; x2:534px; y2:70px; "/>
  188. <group id="grp_sea" style="left:0px; top:10px; width:1194px; height:35px; vertical-align:top; ">
  189. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:35px; "/>
  190. <button id="btn_search" class="btn1_letter2" style="left:1123px; top:7px; width:56px; height:22px; ">
  191. <caption>조회</caption>
  192. <script type="javascript" ev:event="DOMActivate">
  193. <![CDATA[
  194. fGetCmpyList();
  195. ]]>
  196. </script>
  197. </button>
  198. <line id="line13" class="line_4" style="x1:1107px; y1:7px; x2:1107px; y2:29px; "/>
  199. <caption id="caption2" class="search_name" style="left:16px; top:9px; width:99px; height:17px; ">사업체코드 :</caption>
  200. <caption id="caption4" class="search_name" style="left:250px; top:9px; width:86px; height:17px; ">사업체명 :</caption>
  201. <input id="ipt_cmpycd" ref="/root/send/srchcmpycd" class="input_search" style="left:115px; top:8px; width:120px; height:19px; ">
  202. <script type="javascript" ev:event="onkeyup">
  203. <![CDATA[
  204. inputEnterKey("btn_search", "DOMActivate");
  205. ]]>
  206. </script>
  207. </input>
  208. <input id="ipt_cmpynm" ref="/root/send/srchcmpynm" class="input_search" style="left:339px; top:8px; width:175px; height:19px; ">
  209. <script type="javascript" ev:event="onkeyup">
  210. <![CDATA[
  211. inputEnterKey("btn_search", "DOMActivate");
  212. ]]>
  213. </script>
  214. </input>
  215. <caption id="caption21" class="search_name" style="left:803px; top:9px; width:73px; height:17px; ">질환명 :</caption>
  216. <caption id="caption59" class="search_name" style="left:534px; top:9px; width:86px; height:17px; ">질환코드 :</caption>
  217. <input id="ipt_sickcd" ref="/root/send/srchsickcd" class="input_search" style="left:623px; top:8px; width:155px; height:19px; ">
  218. <script type="javascript" ev:event="onkeyup">
  219. <![CDATA[
  220. inputEnterKey("btn_search", "DOMActivate");
  221. ]]>
  222. </script>
  223. </input>
  224. <input id="ipt_sicknm" ref="/root/send/srchsicknm" class="input_search" style="left:880px; top:8px; width:215px; height:19px; ">
  225. <script type="javascript" ev:event="onkeyup">
  226. <![CDATA[
  227. inputEnterKey("btn_search", "DOMActivate");
  228. ]]>
  229. </script>
  230. </input>
  231. </group>
  232. <datagrid id="grd_cmpylst" nodeset="/root/main/cmpylst/item" caption="사업체코드^사업체명" colsep="^" colwidth="103, 359" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:75px; width:534px; height:663px; ">
  233. <col ref="cmpycd"/>
  234. <col ref="cmpynm"/>
  235. <script type="javascript" ev:event="ondblclick">
  236. <![CDATA[
  237. // fGetSickList();
  238. // 수정이력 : 20100331 JHP 사업체선택시 사업체에 해당하는 질환코드만 보여주는함수. 추가
  239. model.setValue("/root/init/allchk/chk","NOT");
  240. fGetCmpyMatchSickList();
  241. ]]>
  242. </script>
  243. </datagrid>
  244. <caption id="caption3" class="tit_2" style="left:544px; top:55px; width:78px; height:13px; ">질환코드</caption>
  245. <line id="line2" class="line_1" style="x1:539px; y1:70px; x2:1193px; y2:70px; "/>
  246. <button id="btn_del" class="btn2_letter3" style="left:1061px; top:50px; width:53px; height:19px; ">
  247. <caption>행삭제</caption>
  248. <script type="javascript" ev:event="DOMActivate">
  249. <![CDATA[
  250. //grd_sicklst.addStatus(grd_sicklst.row, "delete");
  251. deleteSelectedRows(grd_sicklst,true);
  252. ]]>
  253. </script>
  254. </button>
  255. <button id="btn_add" class="btn2_letter3" style="left:1005px; top:50px; width:53px; height:19px; ">
  256. <caption>행추가</caption>
  257. <script type="javascript" ev:event="DOMActivate">
  258. <![CDATA[
  259. grd_sicklst.addRow();
  260. grd_sicklst.col= 2;
  261. grd_sicklst.editCell();
  262. ]]>
  263. </script>
  264. </button>
  265. <datagrid id="grd_sicklst" nodeset="/root/main/sicklst/item" caption="codekey^질환코드^질환코드명^판정코드^질환코드소견^매핑질환코드^최종수정자^최종수정일시" colsep="^" colwidth="57, 83, 236, 72, 107, 122, 100, 100" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:539px; top:75px; width:654px; height:663px; ">
  266. <col ref="sickcdkey" visibility="hidden"/>
  267. <col ref="sickcd" type="input"/>
  268. <col ref="sicknm" type="input"/>
  269. <col ref="judgcd" type="combo">
  270. <choices>
  271. <item>
  272. <label>A</label>
  273. <value>A</value>
  274. </item>
  275. <item>
  276. <label>B</label>
  277. <value>B</value>
  278. </item>
  279. <item>
  280. <label>C</label>
  281. <value>C</value>
  282. </item>
  283. <item>
  284. <label>D</label>
  285. <value>D</value>
  286. </item>
  287. </choices>
  288. </col>
  289. <col ref="sickcdcnts" type="input"/>
  290. <col ref="mappsickcd" type="input"/>
  291. <col ref="lastupdtrid"/>
  292. <col ref="lastupdtdt"/>
  293. <script type="javascript" ev:event="onendedit">
  294. <![CDATA[
  295. if( event.keyCode == 13 ) {
  296. if( grd_sicklst.col == 2 ){
  297. grd_sicklst.col = 3 ;
  298. grd_sicklst.editCell();
  299. }
  300. else
  301. if( grd_sicklst.col == 3 ){
  302. grd_sicklst.addRow();
  303. grd_sicklst.col = 2 ;
  304. grd_sicklst.editCell();
  305. }
  306. }
  307. ]]>
  308. </script>
  309. <script type="javascript" ev:event="onentercell">
  310. <![CDATA[
  311. if( grd_sicklst.colType(grd_sicklst.col) == "input" ){
  312. grd_sicklst.editCell();
  313. }
  314. ]]>
  315. </script>
  316. </datagrid>
  317. <button id="btn_fileupload" class="btn2_letter5" style="left:1117px; top:50px; width:75px; height:19px; ">
  318. <caption>파일업로드</caption>
  319. <script type="javascript" ev:event="DOMActivate">
  320. <![CDATA[
  321. fExcelUpload();
  322. ]]>
  323. </script>
  324. </button>
  325. <button id="button1" class="btn5_letter6" style="left:620px; top:50px; width:81px; height:19px; ">
  326. <caption>질환전체보기</caption>
  327. <script type="javascript" ev:event="DOMActivate">
  328. <![CDATA[
  329. model.setValue("/root/init/allchk/chk","ALL");
  330. model.setValue("/root/send/cmpymatch/cmpycd", "A");
  331. submit("TRAHB02403");
  332. ]]>
  333. </script>
  334. </button>
  335. </group>
  336. <group id="grp_btn" style="left:0px; top:757px; width:1195px; height:27px; ">
  337. <button id="btn_save" class="btn4_letter2" style="left:1067px; top:5px; width:56px; height:22px; ">
  338. <caption>저장</caption>
  339. <script type="javascript" ev:event="DOMActivate">
  340. <![CDATA[
  341. if(fSaveSickCd() == true ){
  342. fGetSickList();
  343. }
  344. ]]>
  345. </script>
  346. </button>
  347. <button id="btn_clear" class="btn4_letter3" style="left:1125px; top:5px; width:68px; height:22px; ">
  348. <caption>초기화</caption>
  349. <script type="javascript" ev:event="DOMActivate">
  350. <![CDATA[
  351. fGetSickList();
  352. ]]>
  353. </script>
  354. </button>
  355. <caption id="caption5" style="left:4px; top:1px; width:208px; height:20px; font-size:8pt; font-weight:bold; color:#ff0000; ">* 질환은 사업체별로 관리되어집니다.</caption>
  356. </group>
  357. </xhtml:body>
  358. </xhtml:html>