SMAEA05000_치료스케줄기준정보관리.xrw 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274
  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>Untitle</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <list>
  11. <item>
  12. <useyn/>
  13. <suppdeptcd/>
  14. <excucd/>
  15. <excucdnm/>
  16. <drugadjtdd/>
  17. <dietregmdd/>
  18. <examrsrvdd/>
  19. <drugaftphotm/>
  20. <cureaftpohdd/>
  21. </item>
  22. </list>
  23. </main>
  24. <send>
  25. <srchexcucd/>
  26. <srchexcucdnm/>
  27. <globalinstance>
  28. <instance1/>
  29. </globalinstance>
  30. <req/>
  31. </send>
  32. <temp>
  33. <templst>
  34. <list/>
  35. </templst>
  36. </temp>
  37. </root>
  38. </instance>
  39. <script type="javascript" ev:event="xforms-ready">
  40. <![CDATA[
  41. aezfSetSuppDeptcd();
  42. submit("TRAEA05002");
  43. model.refresh();
  44. ]]>
  45. </script>
  46. <submission id="TRZBC00101"/>
  47. <submission id="TXAEA05001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/hidden"/>
  48. <submission id="TRAEA05002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/list"/>
  49. </model>
  50. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  51. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  52. <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
  53. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  54. <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
  55. <script type="javascript">
  56. <![CDATA[
  57. function fSetCureOcd(vGrdObj, vSrcXPath, vDupCheckCol, vDupCheck, vCodeNode, vNameNode, vSessiondept, vHeaderAddRows ) {
  58. if( vGrdObj == null ) return ;
  59. if( vSrcXPath == "" ) return ;
  60. if( model.getValue("/root/temp/okflag") != "ok" ) return ;
  61. var cnt = getNodesetCount(vSrcXPath);
  62. if( vHeaderAddRows != "" ){
  63. grdcnt =parseInt( vGrdObj.rows) - parseInt( vHeaderAddRows ) ;
  64. }
  65. var vDupCheckVal = "";
  66. var i = 0;
  67. if( cnt == 1 ) {
  68. for( var i = 1 ; i <= cnt ; i++ ){
  69. vDupCheckVal = model.getValue(vSrcXPath + "[" + i + "]/calcscorcd" );
  70. if( vDupCheck == "Y" ) {
  71. if( fCheckDup(vGrdObj , vDupCheckCol, vDupCheckVal ) == false ){
  72. if( messageBox("중복되는 수가코드[" + vDupCheckVal + "] 를 추가", "S001") != 6 ){
  73. continue ;
  74. }
  75. }
  76. }
  77. }
  78. vGrdObj.addRow();
  79. grdcnt = grdcnt + 1;
  80. if( vCodeNode != "" ){
  81. model.makeValue(vGrdObj.nodeset + "[" + grdcnt + "]/" + vCodeNode , vDupCheckVal );
  82. }
  83. if( vNameNode != "" ){
  84. model.makeValue(vGrdObj.nodeset + "[" + grdcnt + "]/" + vNameNode , model.getValue(vSrcXPath + "/ordnm" ) );
  85. }
  86. model.makeNode(vGrdObj.nodeset + "[" + grdcnt + "]/excucd" );
  87. model.setValue(vGrdObj.nodeset + "[" + grdcnt + "]/excucd" , vDupCheckVal );
  88. model.makeNode(vGrdObj.nodeset + "[" + grdcnt + "]/excucdnm" );
  89. model.setValue(vGrdObj.nodeset + "[" + grdcnt + "]/excucdnm" , model.getValue(vSrcXPath + "/ordnm" ) );
  90. model.makeNode(vGrdObj.nodeset + "[" + grdcnt + "]/suppdeptcd" );
  91. model.setValue(vGrdObj.nodeset + "[" + grdcnt + "]/suppdeptcd" , vSessiondept );
  92. model.setValue(vGrdObj.nodeset + "[" + grdcnt + "]/useyn" , "Y" );
  93. } else {
  94. for( var i = 1 ; i <= cnt ; i++ ){
  95. vDupCheckVal = model.getValue(vSrcXPath + "[" + i + "]/calcscorcd" );
  96. if( vDupCheck == "Y" ) {
  97. if( fCheckDup(vGrdObj , vDupCheckCol, vDupCheckVal ) == false ){
  98. if( messageBox("중복되는 수가코드[" + vDupCheckVal + "] 를 추가", "S001") != 6 ){
  99. continue ;
  100. }
  101. }
  102. }
  103. model.setValue(vGrdObj.nodeset + "[" + i + "]/useyn" , "N" );
  104. vGrdObj.addRow();
  105. if( vCodeNode != "" ){
  106. model.setValue(vGrdObj.nodeset + "[" + grdcnt + "]/" + vCodeNode , vDupCheckVal );
  107. }
  108. if( vNameNode != "" ){
  109. model.setValue(vGrdObj.nodeset + "[" + grdcnt + "]/" + vNameNode , model.getValue(vSrcXPath + "[" + i + "]/ordnm" ) );
  110. }
  111. model.makeNode(vGrdObj.nodeset + "[" + grdcnt + "]/excucd" );
  112. model.setValue(vGrdObj.nodeset + "[" + grdcnt + "]/excucd" , vDupCheckVal );
  113. model.makeNode(vGrdObj.nodeset + "[" + grdcnt + "]/excucdnm" );
  114. model.setValue(vGrdObj.nodeset + "[" + grdcnt + "]/excucdnm" , model.getValue(vSrcXPath + "[" + i + "]/ordnm" ) );
  115. model.makeNode(vGrdObj.nodeset + "[" + grdcnt + "]/suppdeptcd" );
  116. model.setValue(vGrdObj.nodeset + "[" + grdcnt + "]/suppdeptcd" , vSessiondept );
  117. model.setValue(vGrdObj.nodeset + "[" + grdcnt + "]/useyn" , "Y" );
  118. grdcnt++;
  119. }
  120. }
  121. model.refresh();
  122. }
  123. function fCheckExCuCd() {
  124. var srchLength1 = model.instances(0).selectNodes( "/root/main/list/item" ).length;
  125. for ( var i = 1 ; i <= srchLength1; i++ ) {
  126. if ( model.getValue("/root/main/list/item["+i+"]/excucd") == "" ) {
  127. messageBox("검사코드[필수입력사항]를 입력 해야 합니다.","I999");
  128. return "1";
  129. }
  130. }
  131. }
  132. /*
  133. */
  134. function fGetNuclCureScheInfoList() {
  135. model.removenode("/root/main/list");
  136. submit("TRAEA05002");
  137. model.refresh();
  138. }
  139. ]]>
  140. </script>
  141. </xhtml:head>
  142. <xhtml:body pagewidth="1211" pageheight="784" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  143. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:5px; top:18px; width:1185px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  144. <button id="btn_sea" class="btn1_letter2" style="left:1125px; top:26px; width:56px; height:22px; ">
  145. <caption>조회</caption>
  146. <script type="javascript" ev:event="DOMActivate">
  147. <![CDATA[
  148. fGetNuclCureScheInfoList();
  149. ]]>
  150. </script>
  151. </button>
  152. <group id="grp_btn" style="left:0px; top:722px; width:1190px; height:27px; ">
  153. <button id="btn_prt" class="btn4_letter2" style="left:1130px; top:5px; width:56px; height:22px; ">
  154. <caption>저장</caption>
  155. <script type="javascript" ev:event="DOMActivate">
  156. <![CDATA[
  157. if ( messageBox("검사코드를","Q002")==6 ) {
  158. var check = fCheckExCuCd();
  159. if ( check == "1" ) return;
  160. model.makeValue("/root/send/req/data1", grd_list.getUpdateData());
  161. submit("TXAEA05001");
  162. model.setValue("/root/send/srchexcucd","");
  163. model.setValue("/root/send/srchexcucdnm","");
  164. btn_sea.dispatch("DOMActivate");
  165. }
  166. ]]>
  167. </script>
  168. </button>
  169. </group>
  170. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:173px; height:14px; ">치료 스케줄 기준정보 관리</caption>
  171. <input id="ipt_srchexamcurenm" ref="/root/send/srchexcucdnm" class="input_search" style="left:336px; top:27px; width:149px; height:19px; ">
  172. <script type="javascript" ev:event="onkeyup">
  173. <![CDATA[
  174. inputEnterKey("btn_sea", "DOMActivate");
  175. ]]>
  176. </script>
  177. <hint>
  178. <![CDATA[검사코드12자리입력가능]]>
  179. </hint>
  180. </input>
  181. <input id="ipt_srchexamcurecd" ref="/root/send/srchexcucd" class="input_search" imemode="alpha" style="left:105px; top:27px; width:115px; height:19px; ">
  182. <script type="javascript" ev:event="onkeyup">
  183. <![CDATA[
  184. inputEnterKey("btn_sea", "DOMActivate");
  185. ]]>
  186. </script>
  187. <hint>
  188. <![CDATA[검사코드12자리입력가능]]>
  189. </hint>
  190. </input>
  191. <caption id="caption2" class="search_name" style="left:15px; top:27px; width:86px; height:17px; ">검사코드 :</caption>
  192. <caption id="caption3" class="search_name" style="left:232px; top:27px; width:100px; height:17px; ">검사코드명 :</caption>
  193. <button id="button12" class="btn2_letter4" style="left:1126px; top:57px; width:64px; height:19px; ">
  194. <caption>엑셀저장</caption>
  195. <script type="javascript" ev:event="DOMActivate">
  196. <![CDATA[
  197. var fileName = window.fileDialog("save", ",", false, "", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  198. if (fileName != "") {
  199. grd_list.saveExcel(fileName);
  200. }
  201. ]]>
  202. </script>
  203. </button>
  204. <caption id="caption1" class="tit_2" style="left:5px; top:62px; width:146px; height:14px; ">치료 코드 현황</caption>
  205. <line id="line13" class="line_4" style="x1:1117px; y1:26px; x2:1117px; y2:48px; "/>
  206. <datagrid id="grd_list" nodeset="/root/main/list/item" caption="사용여부^지원부서코드^코드^검사명^약물조절일^식이요법일^검사예약일^약물 투여후 촬영 시간^치료 후 촬영일" colsep="^" colwidth="69, 100, 120, 270, 130, 130, 130, 130, 130" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:5px; top:78px; width:1185px; height:642px; ">
  207. <col checkvalue="Y,N" ref="useyn" type="radio"/>
  208. <col ref="suppdeptcd" visibility="hidden"/>
  209. <col ref="excucd" type="inputbutton"/>
  210. <col ref="excucdnm"/>
  211. <col ref="drugadjtdd" type="input" format="(-)#,###" style="text-align:right; "/>
  212. <col ref="dietregmdd" type="input" format="(-)#,###" style="text-align:right; "/>
  213. <col ref="examrsrvdd" type="input" format="(-)#,###" style="text-align:right; "/>
  214. <col ref="drugaftphotm" type="input" format="(-)#,###" style="text-align:right; "/>
  215. <col ref="cureaftpohdd" type="input" format="(-)#,###" style="text-align:right; "/>
  216. <script type="javascript" ev:event="onbuttonclick">
  217. <![CDATA[
  218. ]]>
  219. </script>
  220. </datagrid>
  221. <button id="btn_grddel" class="btn2_letter3" style="left:1071px; top:57px; width:53px; height:19px; ">
  222. <caption>행삭제</caption>
  223. <script type="javascript" ev:event="DOMActivate">
  224. <![CDATA[
  225. deleteSelectedRows(grd_list, true);
  226. ]]>
  227. </script>
  228. </button>
  229. <button id="btn_selcalcscorcd" class="btn2_letter9" style="left:950px; top:57px; width:119px; height:19px; ">
  230. <caption>검사코드조회및추가</caption>
  231. <script type="javascript" ev:event="DOMActivate">
  232. <![CDATA[
  233. var sessiondept = model.getValue("/root/send/globalinstance/instance1");
  234. fGetCalScorCd( "cd", "", "Y"/*bMultiyn*/ , "/root/temp/templst" /*vMultiDestXPath*/, "" /*vCdDestXPath*/, "" /*vNmDestXPath*/, "" /*vAmtDestXPath*/);
  235. fSetCureOcd(grd_list , "/root/temp/templst/list" , 2, "Y", "excucd", "excucdnm", sessiondept, "1" );
  236. ]]>
  237. </script>
  238. </button>
  239. </xhtml:body>
  240. </xhtml:html>