SMAHB01400_기관및판정의관리.xrw 15 KB

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