SPPIR31200_이의신청심사자변경.xrw 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. # 이의신청 심사자 변경(SPPIR31200)
  4. # 수정이력 : 2008.11.24 / 최초작성 / 강종태
  5. # MAPS
  6. # - TRZBC00101 : 공통코드 - 부서
  7. # - TRPIR30202 : 심사자 리스트
  8. # - TRPIR30400 : 대상자 조회
  9. # - TXPIR31200 : 심사자 수정
  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>이의신청 심사자 변경</xhtml:title>
  15. <model id="model1">
  16. <instance id="instance1">
  17. <root xmlns="">
  18. <main>
  19. <obtmlist>
  20. <gridpirhobtm>
  21. <checkyn/>
  22. <obtappyn/>
  23. <orddeptcd/>
  24. <docuseqno/>
  25. <pid/>
  26. <patnm/>
  27. <judgdg/>
  28. <clamno/>
  29. <acptno/>
  30. <obtappflag/>
  31. <instcd/>
  32. </gridpirhobtm>
  33. <acptinfo>
  34. <claminfo/>
  35. <adjtamt/>
  36. <obtappamt/>
  37. <abdamt/>
  38. <obtappendflag/>
  39. </acptinfo>
  40. <deptinfo>
  41. <cd/>
  42. <nm/>
  43. </deptinfo>
  44. <doctinfo>
  45. <cd/>
  46. <nm/>
  47. </doctinfo>
  48. <judgrinfo>
  49. <cd/>
  50. <nm/>
  51. </judgrinfo>
  52. </obtmlist>
  53. </main>
  54. <send>
  55. <send_obtmlist>
  56. <judgdg/>
  57. <clamno/>
  58. <acptno/>
  59. <setno/>
  60. <obtappdocuno/>
  61. <obtappflag/>
  62. <orddeptcd/>
  63. <codegubun/>
  64. <cd/>
  65. <item/>
  66. <adjtresncd/>
  67. <orddrid/>
  68. <judgrid/>
  69. <adjtamt/>
  70. <notidd/>
  71. <rejudgflag/>
  72. </send_obtmlist>
  73. <send_chgjudgrid>
  74. <judgrid/>
  75. </send_chgjudgrid>
  76. <send_updatejudgrid/>
  77. </send>
  78. <popupdata>
  79. <popupmenu>
  80. <gridadjtord>
  81. <item>
  82. <name>삭감처방 의사전송</name>
  83. <func>fGridCutOrdRgst</func>
  84. </item>
  85. <item>
  86. <name>부제기사유</name>
  87. <func>fGridAbdResnCdRgst</func>
  88. </item>
  89. </gridadjtord>
  90. </popupmenu>
  91. </popupdata>
  92. <init>
  93. <P0287list>
  94. <P0287>
  95. <cdid/>
  96. <cdnm/>
  97. </P0287>
  98. </P0287list>
  99. </init>
  100. <searchinfo>
  101. <orddeptcd/>
  102. <orddrid/>
  103. <judgrid/>
  104. </searchinfo>
  105. </root>
  106. </instance>
  107. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  108. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  109. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  110. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  111. <submission id="TRPIR30400" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/send_obtmlist" resultref="/root/main/obtmlist"/>
  112. <submission id="TRPIR30202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/source_judgrinfo" resultref="/root/init/U0001list"/>
  113. <submission id="TXPIR31200" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send"/>
  114. </model>
  115. <script type="javascript" ev:event="xforms-ready">
  116. <![CDATA[
  117. // ###########################
  118. // PopUp 테스트용 임시 값 설정
  119. // model.setValue("/root/send/send_obtmlist/clamno","2008092401");
  120. // model.setValue("/root/send/send_obtmlist/acptno","4142019");
  121. // model.setValue("/root/send/send_obtmlist/judgdg","20081005");
  122. // ###########################
  123. // 1. 공통코드 초기화
  124. CommCode_Load();
  125. // 2. 다른화면에서 팝업으로 이 화면을 열었을때 넘어온 파라미터로 대상목록을 조회한다.
  126. fSearch();
  127. if (grd_pirhobtm.rows > grd_pirhobtm.fixedrows) {
  128. grd_pirhobtm.row = 1;
  129. }
  130. // 3. 화면 초기화
  131. finitialize();
  132. ]]>
  133. </script>
  134. <script type="javascript">
  135. <![CDATA[
  136. // 공통코드 Load작업
  137. function CommCode_Load() {
  138. // 부서
  139. zbcfGetCodeList(new Array("P0287"), new Array("/root/init/P0287list"));
  140. // 심사자ID
  141. submit("TRPIR30202");
  142. model.refresh();
  143. }
  144. function fSearch() {
  145. // 조회필수 항목인 심사차수, 접수번호로 CHECK한다.
  146. if (ipt_judgdg.value != '' && ipt_acptno.value != '' ) {
  147. submit("TRPIR30400");
  148. var rowcnt = grd_pirhobtm.rows;
  149. for ( i = 1; i < rowcnt ; i++ ) {
  150. model.makeNode("/root/main/obtmlist/gridpirhobtm[" + i + "]/checkyn");
  151. }
  152. grd_pirhobtm.rebuild(); // rebuild 해야 이눔이 인식을 한다. 안 하면 지꺼 아닌 줄 안다.
  153. }
  154. // 조회조건 초기화(전체)
  155. model.setValue("/root/searchinfo/orddeptcd","A");
  156. model.setValue("/root/searchinfo/orddrid","A");
  157. model.setValue("/root/searchinfo/judgrid","A");
  158. model.refresh();
  159. }
  160. ]]>
  161. </script>
  162. <script type="javascript">
  163. <![CDATA[
  164. // 초기화
  165. function finitialize() {
  166. // form load시에 Default 이신구분을 전체를 선택한다.
  167. // rdo_obtappflag.select(0);
  168. // 심사분류(의학적심사) 기본 세팅
  169. // rdo_judgflag.select(1);
  170. }
  171. ]]>
  172. </script>
  173. </xhtml:head>
  174. <xhtml:body pagewidth="630" pageheight="540" guideline="605;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  175. <group id="grp_tle" style="left:0px; top:0px; width:605px; height:13px; ">
  176. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:155px; height:13px; ">이의신청 심사자 변경</caption>
  177. </group>
  178. <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:605px; height:507px; ">
  179. <caption id="caption1" class="tit_2" style="left:5px; top:79px; width:60px; height:13px; ">대상자</caption>
  180. <line id="line1" class="line_1" style="x1:0px; y1:121px; x2:290px; y2:121px; "/>
  181. <datagrid id="grd_pirhobtm" nodeset="/root/main/obtmlist/gridpirhobtm" class="datagrid2" caption="변경^과^진료의^명일련^등록번호^수진자^심사자^마감구분^^^^^^^^^^^^" colsep="^" colwidth="40, 55, 122, 60, 76, 75, 81, 37, 100, 100, 100, 100, 100" dataheight="25" defaultrows="0" explorerbar="sortshowmove" extendlastcol="scroll" focuscolor="#b9e5fb" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="32" rowsep="|" style="left:0px; top:99px; width:600px; height:401px; ">
  182. <col checkvalue="Y,N" ref="checkyn" type="checkbox"/>
  183. <col disabled="true" ref="orddeptcd" type="output" style="text-align:center; ">
  184. <choices>
  185. <itemset nodeset="/root/init/P0287list/P0287">
  186. <label ref="cdnm"/>
  187. <value ref="cdid"/>
  188. </itemset>
  189. </choices>
  190. </col>
  191. <col disabled="true" ref="atdoct" type="combo" style="text-align:center; ">
  192. <choices>
  193. <itemset nodeset="/root/main/obtmlist/doctinfo">
  194. <label ref="nm"/>
  195. <value ref="cd"/>
  196. </itemset>
  197. </choices>
  198. </col>
  199. <col disabled="true" ref="docuseqno" style="text-align:center; "/>
  200. <col disabled="true" ref="pid" style="left:140px; top:32px; width:62px; height:23px; text-align:center; "/>
  201. <col disabled="true" ref="patnm" style="left:202px; top:32px; width:65px; height:23px; text-align:center; "/>
  202. <col disabled="true" ref="judgrid" type="combo" style="text-align:center; ">
  203. <choices>
  204. <itemset nodeset="/root/init/U0001list/U0001">
  205. <label ref="judgrnm"/>
  206. <value ref="judgrid"/>
  207. </itemset>
  208. </choices>
  209. </col>
  210. <col ref="obtappendflag" style="text-align:center; "/>
  211. <col ref="judgdg" visibility="hidden"/>
  212. <col ref="clamno" visibility="hidden"/>
  213. <col ref="acptno" visibility="hidden"/>
  214. <col ref="obtappflag" visibility="hidden"/>
  215. <col ref="instcd" visibility="hidden"/>
  216. <script type="javascript" ev:event="onaftersort">
  217. <![CDATA[
  218. grd_pirhobtm.gridToInstance();
  219. ]]>
  220. </script>
  221. </datagrid>
  222. <group id="grp_sea" style="left:0px; top:10px; width:600px; height:60px; vertical-align:top; ">
  223. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:600px; height:58px; background-color:#fffbf2; border-color:#ffd799; "/>
  224. <caption id="caption2" class="search_name" style="left:7px; top:9px; width:96px; height:17px; ">청구번호 :</caption>
  225. <button id="button1" class="btn1_letter2" style="left:530px; top:20px; width:56px; height:22px; ">
  226. <caption>조회</caption>
  227. <script type="javascript" ev:event="onclick">
  228. <![CDATA[
  229. var orddept = model.getValue("/root/searchinfo/orddeptcd");
  230. var orddrid = model.getValue("/root/searchinfo/orddrid");
  231. var judgrid = model.getValue("/root/searchinfo/judgrid");
  232. var hiddenyn
  233. var rowcnt = grd_pirhobtm.rows;
  234. for (var i = 1; i < rowcnt; i++ ) {
  235. hiddenyn = "N";
  236. if (hiddenyn == "N") {
  237. if (orddept != "A") {
  238. if (orddept == model.getValue("/root/main/obtmlist/gridpirhobtm[" + i + "]/orddeptcd")) {
  239. hiddenyn = "N";
  240. } else {
  241. hiddenyn = "Y";
  242. }
  243. }
  244. }
  245. if (hiddenyn == "N") {
  246. if (orddrid != "A") {
  247. if (orddrid == model.getValue("/root/main/obtmlist/gridpirhobtm[" + i + "]/atdoct")) {
  248. hiddenyn = "N";
  249. } else {
  250. hiddenyn = "Y";
  251. }
  252. }
  253. }
  254. if (hiddenyn == "N") {
  255. if (judgrid != "A") {
  256. if (judgrid == model.getValue("/root/main/obtmlist/gridpirhobtm[" + i + "]/judgrid")) {
  257. hiddenyn = "N";
  258. } else {
  259. hiddenyn = "Y";
  260. }
  261. }
  262. }
  263. if (hiddenyn == "Y") {
  264. grd_pirhobtm.rowhidden(i) = true;
  265. } else {
  266. grd_pirhobtm.rowhidden(i) = false;
  267. }
  268. }
  269. model.refresh();
  270. ]]>
  271. </script>
  272. </button>
  273. <line id="line13" class="line_4" style="x1:513px; y1:20px; x2:513px; y2:42px; "/>
  274. <caption id="caption3" class="search_name" style="left:173px; top:9px; width:96px; height:17px; ">접수번호 :</caption>
  275. <caption id="caption4" class="search_name" style="left:335px; top:9px; width:88px; height:17px; ">심사차수 :</caption>
  276. <output id="ipt_clamno" ref="/root/send/send_obtmlist/clamno" class="output_search" style="left:93px; top:8px; width:73px; height:19px; "/>
  277. <output id="ipt_acptno" ref="/root/send/send_obtmlist/acptno" class="output_search" navindex="1" style="left:260px; top:8px; width:73px; height:19px; "/>
  278. <output id="ipt_judgdg" ref="/root/send/send_obtmlist/judgdg" class="output_search" navindex="2" style="left:422px; top:8px; width:73px; height:19px; "/>
  279. <select1 id="combo4" ref="/root/searchinfo/orddeptcd" class="combo_search" appearance="minimal" style="left:93px; top:35px; width:73px; height:19px; ">
  280. <choices>
  281. <itemset nodeset="/root/main/obtmlist/deptinfo">
  282. <label ref="nm"/>
  283. <value ref="cd"/>
  284. </itemset>
  285. </choices>
  286. </select1>
  287. <caption id="caption16" class="search_name" style="left:7px; top:36px; width:83px; height:17px; ">진 료 과 :</caption>
  288. <caption id="caption17" class="search_name" style="left:173px; top:36px; width:83px; height:17px; ">진 료 의 :</caption>
  289. <caption id="caption18" class="search_name" style="left:335px; top:36px; width:93px; height:17px; ">심 사 자 :</caption>
  290. <select1 id="combo1" ref="/root/searchinfo/orddrid" class="combo_search" appearance="minimal" style="left:260px; top:35px; width:73px; height:19px; ">
  291. <choices>
  292. <itemset nodeset="/root/main/obtmlist/doctinfo">
  293. <label ref="nm"/>
  294. <value ref="cd"/>
  295. </itemset>
  296. </choices>
  297. </select1>
  298. <select1 id="combo2" ref="/root/searchinfo/judgrid" class="combo_search" appearance="minimal" style="left:422px; top:35px; width:73px; height:19px; ">
  299. <choices>
  300. <itemset nodeset="/root/main/obtmlist/judgrinfo">
  301. <label ref="nm"/>
  302. <value ref="cd"/>
  303. </itemset>
  304. </choices>
  305. </select1>
  306. <select1 id="combo3" ref="/root/searchinfo/judgrid" class="combo_search" appearance="minimal" style="left:422px; top:35px; width:73px; height:19px; ">
  307. <choices>
  308. <itemset nodeset="/root/main/obtmlist/judgrinfo">
  309. <label ref="nm"/>
  310. <value ref="cd"/>
  311. </itemset>
  312. </choices>
  313. </select1>
  314. </group>
  315. <select1 id="combo5" ref="/root/send/send_chgjudgrid/judgrid" class="combo_search" appearance="minimal" style="left:455px; top:76px; width:73px; height:19px; ">
  316. <choices>
  317. <itemset nodeset="/root/init/U0001list/U0001">
  318. <label ref="judgrnm"/>
  319. <value ref="judgrid"/>
  320. </itemset>
  321. </choices>
  322. <script type="javascript" ev:event="xforms-value-changed">
  323. <![CDATA[
  324. // 변경할 심사자ID
  325. var changeJudgrid = model.getValue("/root/send/send_chgjudgrid/judgrid");
  326. // 범위 선택시 체크박스를 체크하고 그리드의 값을 변경한다.(현재 선택되어 있는 행도 포함)
  327. for ( var i = 0 ; i < grd_pirhobtm.selectedRows ; i++ )
  328. {
  329. // 마감구분이 Y(심사자별 완료), S(최종마감)의 경우는 변경 금지
  330. if (model.getValue("/root/main/obtmlist/gridpirhobtm[" + (grd_pirhobtm.selectedRow(i) - grd_pirhobtm.fixedRows +1) + "]/obtappendflag") == "Y" ||
  331. model.getValue("/root/main/obtmlist/gridpirhobtm[" + (grd_pirhobtm.selectedRow(i) - grd_pirhobtm.fixedRows +1) + "]/obtappendflag") == "S") {
  332. messageBox("마감된 청구서는 변경 할 수 ","I004"); // 없습니다.
  333. return;
  334. } else {
  335. model.setValue("/root/main/obtmlist/gridpirhobtm[" + (grd_pirhobtm.selectedRow(i) - grd_pirhobtm.fixedRows +1) + "]/judgrid",changeJudgrid);
  336. model.setValue("/root/main/obtmlist/gridpirhobtm[" + (grd_pirhobtm.selectedRow(i) - grd_pirhobtm.fixedRows +1) + "]/checkyn","Y");
  337. }
  338. }
  339. // 그리드 전체를 돌아 댕기면서 체크된 행을 update 설정
  340. for ( var j = 1 ; j < grd_pirhobtm.rows ; j++ ) {
  341. // 마감구분이 Y(심사자별 완료), S(최종마감)의 경우는 변경 금지
  342. if ( model.getValue("/root/main/obtmlist/gridpirhobtm[" + j + "]/checkyn") == "Y" ) {
  343. if (model.getValue("/root/main/obtmlist/gridpirhobtm[" + (grd_pirhobtm.selectedRow(i) - grd_pirhobtm.fixedRows +1) + "]/obtappendflag") == "Y" ||
  344. model.getValue("/root/main/obtmlist/gridpirhobtm[" + (grd_pirhobtm.selectedRow(i) - grd_pirhobtm.fixedRows +1) + "]/obtappendflag") == "S") {
  345. messageBox("마감된 청구서는 변경 할 수 ","I004"); // 없습니다.
  346. return;
  347. } else {
  348. model.setValue("/root/main/obtmlist/gridpirhobtm[" + j + "]/judgrid",changeJudgrid);
  349. grd_pirhobtm.addStatus(j,"update");
  350. }
  351. }
  352. }
  353. ]]>
  354. </script>
  355. </select1>
  356. <button id="button2" class="btn4_letter2" style="left:540px; top:75px; width:56px; height:22px; ">
  357. <caption>저장</caption>
  358. <script type="javascript" ev:event="onclick">
  359. <![CDATA[
  360. if(!grd_pirhobtm.getUpdateDataXml("update"))
  361. {
  362. messageBox("변경 할 심사자가 ","I004"); // 없습니다.
  363. return;
  364. } else {
  365. model.setValue("/root/send/send_updatejudgrid",grd_pirhobtm.getUpdateData());
  366. if(submit("TXPIR31200")) {
  367. fSearch();
  368. }
  369. }
  370. ]]>
  371. </script>
  372. </button>
  373. <caption id="caption5" class="search_name" style="left:335px; top:77px; width:112px; height:17px; ">변경 할 심사자</caption>
  374. </group>
  375. </xhtml:body>
  376. </xhtml:html>