SMAHA03130_진찰및판정의관리.xrw 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SMAHB01400.xrw
  4. * 설 명 : 기관및판정의관리
  5. * 설 계 자 :
  6. * 작 성 자 :
  7. * 작 성 일 : 2007.08.01
  8. * 수정이력 : 2007.10.04 김다영 화면권한추가
  9. * 기 타 :
  10. -->
  11. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  12. <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">
  13. <xhtml:head>
  14. <xhtml:title>Untitle</xhtml:title>
  15. <model id="model1">
  16. <instance id="instance1">
  17. <root xmlns="">
  18. <send>
  19. <srchassoflag>01</srchassoflag>
  20. <srchinstcd/>
  21. <save>
  22. <saveasso/>
  23. <savedrlist/>
  24. <assoflag/>
  25. <instcd/>
  26. <userid/>
  27. </save>
  28. </send>
  29. <main>
  30. <drlist>
  31. <item>
  32. <healexamflag/>
  33. <healexamdetlflag/>
  34. <drid/>
  35. <drnm/>
  36. <drlicnsno/>
  37. <useyn/>
  38. <meddryn/>
  39. <judgdryn/>
  40. <cnstdryn/>
  41. <healexamflagkey/>
  42. <healexamdetlflagkey/>
  43. </item>
  44. </drlist>
  45. <assolist>
  46. <item>
  47. <assocd/>
  48. <assonm/>
  49. <telno/>
  50. <faxno/>
  51. <zipcd1/>
  52. <zipcd2/>
  53. <detladdr/>
  54. <zipcdseq/>
  55. </item>
  56. </assolist>
  57. </main>
  58. <init>
  59. <baseinfo>
  60. <assocd/>
  61. <healexamflaglst/>
  62. <ghealexamdetlflaglst/>
  63. <chealexamdetlflaglst/>
  64. <healexamdetlflaglst>
  65. <item/>
  66. </healexamdetlflaglst>
  67. </baseinfo>
  68. </init>
  69. <hidden/>
  70. <case_mode/>
  71. <temp>
  72. <addr>
  73. <zipcd1/>
  74. <zipcd2/>
  75. <addr/>
  76. <zipcdseq/>
  77. </addr>
  78. </temp>
  79. </root>
  80. </instance>
  81. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  82. <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
  83. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  84. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  85. <script type="javascript" src="../../../ast/healexamweb/js/healexam.js"/>
  86. <script type="javascript" src="../../../com/zipcodeweb/js/ZBP001.js"/>
  87. <script type="javascript" src="../../../ast/healexamweb/js/AHA001.js"/>
  88. <!-- <submission id="TRAHB00201" ref="/root/send" method="post" mediatype="application/x-www-form-urlencoded" replace="instance" resultref="/root/main/inqrlst"/>
  89. <submission id="TRZBC00101"/> -->
  90. <script type="javascript" ev:event="xforms-ready">
  91. <![CDATA[
  92. //화면권한추가
  93. btn_search.disabled = ! checkAuth("R");
  94. btn_save.disabled = ! checkAuth("X");
  95. btn_print.disabled = ! checkAuth("P");
  96. fGetBaseInfo();
  97. model.removeNodeset("/root/main/assolist");
  98. model.removeNodeset("/root/main/drlist");
  99. rdo_asso.dispatch("xforms-select");
  100. model.refresh();
  101. ]]>
  102. </script>
  103. <submission id="TRAHA03131" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/assolist"/>
  104. <submission id="TRAHA03132" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/drlist"/>
  105. <submission id="TXAHA03131" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" replace="instance" resultref="/root/hidden"/>
  106. <submission id="TXAHA03132" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/hidden"/>
  107. <submission id="TRZBC00101"/>
  108. </model>
  109. <script type="javascript">
  110. <![CDATA[
  111. function fGetBaseInfo(){
  112. // 건진기관구분
  113. zbcfGetCodeList( new Array("A0114","A0068","A0069","A0070"),
  114. new Array("/root/init/baseinfo/assocd"
  115. ,"/root/init/baseinfo/healexamflaglst"
  116. ,"/root/init/baseinfo/chealexamdetlflaglst"
  117. ,"/root/init/baseinfo/ghealexamdetlflaglst") );
  118. submit("TRZBC00101");
  119. copyNodesetType("/root/init/baseinfo/healexamdetlflaglst/item","/root/init/baseinfo/chealexamdetlflaglst/A0069", "after");
  120. copyNodesetType("/root/init/baseinfo/healexamdetlflaglst/item","/root/init/baseinfo/ghealexamdetlflaglst/A0070", "after");
  121. }
  122. function fGetAssoLst(){
  123. model.setValue("/root/send/srchinstcd", getUserInfo("dutplceinstcd") );
  124. // alerone(); -> 화면중앙에 조회건수 msg 띄울때....
  125. submit("TRAHA03131");
  126. }
  127. function fGetDrLst(){
  128. model.setValue("/root/send/srchinstcd", getUserInfo("dutplceinstcd") );
  129. submit("TRAHA03132");
  130. }
  131. function fSaveAssoCd() {
  132. if( messageBox("조합코드정보를","Q002") == 6){
  133. var tmp = model.getvalue("/root/send/srchassoflag")
  134. model.setValue("/root/send/save/assoflag", tmp);
  135. model.setValue("/root/send/save/instcd", getUserInfo("posinstcd"));
  136. model.setValue("/root/send/save/userid", getUserInfo("userid"));
  137. model.setValue("/root/send/save/saveasso", grd_asso.getUpdateData());
  138. if (submit("TXAHA03131")){
  139. fGetAssoLst();
  140. }
  141. }
  142. }
  143. function fSaveDr() {
  144. if( messageBox("판정의 정보를","Q002") == 6){
  145. model.setValue("/root/send/save/instcd" , getUserInfo("posinstcd"));
  146. model.setValue("/root/send/save/userid" , getUserInfo("userid"));
  147. model.setValue("/root/send/save/savedrlist", grd_dr.getUpdateData());
  148. if (submit("TXAHA03132")){
  149. fGetDrLst();
  150. }
  151. }
  152. }
  153. ]]>
  154. </script>
  155. </xhtml:head>
  156. <xhtml:body guideline="1,1196;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  157. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  158. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:142px; height:14px; ">의사 및 기관정보관리</caption>
  159. </group>
  160. <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  161. <group id="grp_sea" style="left:0px; top:10px; width:1194px; height:35px; vertical-align:top; ">
  162. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  163. <caption id="caption2" class="search_name" style="left:16px; top:9px; width:64px; height:17px; ">구분 :</caption>
  164. <button id="btn_search" class="btn1_letter2" style="left:1123px; top:7px; width:56px; height:22px; ">
  165. <caption>조회</caption>
  166. <script type="javascript" ev:event="DOMActivate">
  167. <![CDATA[
  168. if (switch1.selectedIndex == 0 ){
  169. fGetAssoLst();
  170. }else{
  171. fGetDrLst();
  172. }
  173. ]]>
  174. </script>
  175. </button>
  176. <line id="line13" class="line_4" style="x1:1107px; y1:7px; x2:1107px; y2:29px; "/>
  177. <select1 id="rdo_asso" ref="/root/send/srchassoflag" class="radio_search" overflow="visible" appearance="full" cellspacing="30" cols="7" rows="1" style="left:79px; top:9px; width:946px; height:20px; border-style:none; ">
  178. <choices>
  179. <itemset nodeset="/root/init/baseinfo/assocd/A0114">
  180. <label ref="cdnm"/>
  181. <value ref="cdid"/>
  182. </itemset>
  183. </choices>
  184. <script type="javascript" ev:event="xforms-select">
  185. <![CDATA[
  186. if (grd_asso.rows > 2) {
  187. model.removeNodeset("/root/main/assolist");
  188. model.refresh();
  189. }
  190. var idx = rdo_asso.value;
  191. if(idx == "01") {
  192. model.toggle("case_dr");
  193. btn_jgdr.selected = true;
  194. }else {
  195. model.toggle("case_asso");
  196. btn_asso.selected = true;
  197. }
  198. ]]>
  199. </script>
  200. </select1>
  201. </group>
  202. <switch id="switch1" style="left:0px; top:71px; width:1194px; height:665px; ">
  203. <case id="case_asso" style="left:0px; top:0px; width:1200px; height:675px; ">
  204. <line id="line1" class="line_1" style="x1:0px; y1:20px; x2:1183px; y2:20px; "/>
  205. <datagrid id="grd_asso" nodeset="/root/main/assolist/item" caption="코드 ^명칭^전화번호^팩스번호^주소^주소^주소^기타|코드 ^명칭^전화번호^팩스번호^우편번호^우편번호^상세주소^기타" colsep="^" colwidth="100, 100, 122, 121, 67, 73, 543, 9" defaultrows="1" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:20px; width:1180px; height:615px; ">
  206. <col ref="assocd" type="input"/>
  207. <col ref="assonm" type="input"/>
  208. <col ref="telno" type="input"/>
  209. <col ref="faxno" type="input"/>
  210. <col ref="zipcd1" type="input"/>
  211. <col ref="zipcd2" type="inputbutton"/>
  212. <col ref="detladdr" type="input" style="left:663px; top:43px; width:222px; height:23px; "/>
  213. <col ref="zipcdseq1" visibility="hidden"/>
  214. <script type="javascript" ev:event="onendedit">
  215. <![CDATA[
  216. /* if( event.keyCode == 13 ) {
  217. if( datagrid1.col == 0 ) {
  218. datagrid1.col = 2;
  219. datagrid1.editCell();
  220. }
  221. }
  222. */
  223. ]]>
  224. </script>
  225. <script type="javascript" ev:event="onbuttonclick">
  226. <![CDATA[
  227. if( grd_asso.col == 6) {
  228. var idx = grd_asso.row
  229. idx = idx -1;
  230. //var sTmp = grd_asso.attribute("nodeset") + "[" + idx + "]" ;
  231. //fSetAddr(1, sTmp);
  232. zbcfOpenZipCodeList("combination", "", "/root/temp/addr/zipcd1", "/root/temp/addr/zipcd2", "/root/temp/addr/zipcdseq", "/root/temp/addr/addr");
  233. var node =model.getValue("/root/temp/addr/zipcd1");
  234. if( node != "" ){
  235. model.setValue("/root/main/assolist/item[" + idx + "]/zipcd1" , model.getValue("/root/temp/addr/zipcd1") );
  236. model.setValue("/root/main/assolist/item[" + idx + "]/zipcd2" , model.getValue("/root/temp/addr/zipcd2") );
  237. model.setValue("/root/main/assolist/item[" + idx + "]/zipcdseq" , model.getValue("/root/temp/addr/zipcdseq") );
  238. model.setValue("/root/main/assolist/item[" + idx + "]/detladdr", model.getValue("/root/temp/addr/addr") );
  239. model.setFocus("ipt_detladdr");
  240. model.refresh();
  241. }
  242. }
  243. ]]>
  244. </script>
  245. </datagrid>
  246. </case>
  247. <case id="case_dr" selected="true">
  248. <datagrid id="grd_dr" nodeset="/root/main/drlist/item" caption="건진구분^건진구분^의사ID^의사명^의사면허번호^적용여부^진찰의여부^판정의여부^상담의여부^건진구분key^건진상세구분key" colsep="^" colwidth="190, 190, 190, 190, 190, 100, 100, 100, 100, 100, 100" defaultrows="0" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:5px; top:12px; width:1178px; height:645px; ">
  249. <col ref="healexamflag" type="combo" visibility="hidden">
  250. <choices>
  251. <itemset nodeset="/root/init/baseinfo/healexamflaglst/A0068">
  252. <label ref="cdnm"/>
  253. <value ref="cdid"/>
  254. </itemset>
  255. </choices>
  256. </col>
  257. <col ref="healexamdetlflag" type="combo">
  258. <choices>
  259. <itemset nodeset="/root/init/baseinfo/healexamdetlflaglst/item">
  260. <label ref="cdnm"/>
  261. <value ref="cdid"/>
  262. </itemset>
  263. </choices>
  264. </col>
  265. <col ref="drid" type="input"/>
  266. <col ref="drnm" type="input"/>
  267. <col ref="drlicnsno" type="input"/>
  268. <col checkvalue="Y,N" ref="useyn" type="checkbox"/>
  269. <col checkvalue="Y,N" ref="meddryn" type="checkbox"/>
  270. <col checkvalue="Y,N" ref="judgdryn" type="checkbox"/>
  271. <col checkvalue="Y,N" ref="cnstdryn" type="checkbox"/>
  272. <col ref="healexamflagkey" visibility="hidden"/>
  273. <col ref="healexamdetlflagkey" visibility="hidden"/>
  274. <script type="javascript" ev:event="xforms-value-changed">
  275. <![CDATA[
  276. if(grd_dr.col == grd_dr.colRef("healexamdetlflag")) {
  277. var healexamdetl = grd_dr.valueMatrix(grd_dr.row, grd_dr.colRef("healexamdetlflag"));
  278. grd_dr.valueMatrix(grd_dr.row , grd_dr.colRef("healexamflag")) = healexamdetl.substr(0,1);
  279. }
  280. ]]>
  281. </script>
  282. </datagrid>
  283. <line id="line3" class="line_1" style="x1:5px; y1:7px; x2:1188px; y2:7px; "/>
  284. </case>
  285. </switch>
  286. <button id="btn_grddel" class="btn2_letter3" style="left:1130px; top:50px; width:53px; height:19px; ">
  287. <caption>행삭제</caption>
  288. <script type="javascript" ev:event="DOMActivate">
  289. <![CDATA[
  290. if (switch1.selectedIndex == 0 ){
  291. //grd_asso.addStatus(grd_asso.row,"delete");
  292. deleteSelectedRows(grd_asso,true);
  293. }else {
  294. //grd_dr.addStatus(grd_dr.row,"delete");
  295. deleteSelectedRows(grd_dr,true);
  296. }
  297. ]]>
  298. </script>
  299. </button>
  300. <button id="btn_grdadd" class="btn2_letter3" style="left:1075px; top:50px; width:53px; height:19px; ">
  301. <caption>행추가</caption>
  302. <script type="javascript" ev:event="DOMActivate">
  303. <![CDATA[
  304. if (switch1.selectedIndex == 0 ){
  305. grd_asso.addRow();
  306. }else {
  307. grd_dr.addRow();
  308. }
  309. ]]>
  310. </script>
  311. </button>
  312. <button id="btn_asso" class="btn_sw" group="tab" selected="true" style="left:90px; top:50px; width:89px; height:22px; ">
  313. <caption>기관정보관리</caption>
  314. <toggle case="case_asso" ev:event="onclick"/>
  315. <script type="javascript" ev:event="DOMActivate">
  316. <![CDATA[
  317. btn_search.dispatch("DOMActivate");
  318. ]]>
  319. </script>
  320. </button>
  321. <button id="btn_jgdr" class="btn_sw" visibility="visible" group="tab" style="left:0px; top:50px; width:89px; height:22px; ">
  322. <caption>의사정보관리</caption>
  323. <toggle case="case_dr" ev:event="onclick"/>
  324. <script type="javascript" ev:event="DOMActivate">
  325. <![CDATA[
  326. btn_search.dispatch("DOMActivate");
  327. ]]>
  328. </script>
  329. </button>
  330. </group>
  331. <group id="grp_btn" style="left:0px; top:757px; width:1195px; height:27px; ">
  332. <button id="button8" class="btn3_letter4" style="left:59px; top:5px; width:80px; height:22px; ">
  333. <caption>화면이동</caption>
  334. </button>
  335. <button id="btn_print" class="btn6_letter2" style="left:0px; top:5px; width:56px; height:22px; ">
  336. <caption>출력</caption>
  337. </button>
  338. <button id="btn_save" class="btn4_letter2" style="left:1138px; top:5px; width:56px; height:22px; ">
  339. <caption>저장</caption>
  340. <script type="javascript" ev:event="DOMActivate">
  341. <![CDATA[
  342. if (switch1.selectedIndex == 0 ){
  343. fSaveAssoCd();
  344. } else {
  345. fSaveDr();
  346. messageBox("저장 ", "I002");
  347. }
  348. btn_search.dispatch("DOMActivate");
  349. ]]>
  350. </script>
  351. </button>
  352. </group>
  353. </xhtml:body>
  354. </xhtml:html>