SPAEA03901_승인(사이버아니프).xrw 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.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. <userinfo>
  11. <userlist>
  12. <userid/>
  13. <usernm/>
  14. </userlist>
  15. </userinfo>
  16. </main>
  17. <send>
  18. <userid/>
  19. <pwd/>
  20. <execgb/>
  21. <rttmd/>
  22. </send>
  23. <execdata>
  24. <senddata>
  25. <sendlist>
  26. <userid/>
  27. <pwd/>
  28. <gb/>
  29. <appgb/>
  30. <ckno/>
  31. <cknoseq/>
  32. <trseq/>
  33. <diagnm1/>
  34. <diagnm2/>
  35. <diagnm3/>
  36. <pathology1/>
  37. <pathology2/>
  38. <pathology3/>
  39. <previous1/>
  40. <previous2/>
  41. <previous3/>
  42. <mdremark/>
  43. </sendlist>
  44. </senddata>
  45. </execdata>
  46. <popdata>
  47. <ckno/>
  48. <cknoseq/>
  49. <diagnm1/>
  50. <diagnm2/>
  51. <diagnm3/>
  52. <pathology1/>
  53. <pathology2/>
  54. <pathology3/>
  55. <previous1/>
  56. <previous2/>
  57. <previous3/>
  58. <mdremark/>
  59. <treatment>
  60. <treatmentlist>
  61. <check/>
  62. <image/>
  63. <curepartcnt/>
  64. <curefromdd/>
  65. <diagnm/>
  66. <cklocation/>
  67. <ckposition/>
  68. <isodose/>
  69. <mvdose/>
  70. <colsize/>
  71. <fracdose/>
  72. <fraction/>
  73. <totdose/>
  74. <elapday/>
  75. <targetvol/>
  76. <brthtime/>
  77. <fidutot/>
  78. <fiduuse/>
  79. <image/>
  80. <ckno/>
  81. <cknoseq/>
  82. <trseq/>
  83. <pretx/>
  84. <remark/>
  85. <statflag/>
  86. <rttmd/>
  87. </treatmentlist>
  88. </treatment>
  89. </popdata>
  90. <hidden/>
  91. <temp/>
  92. </root>
  93. </instance>
  94. <script type="javascript" ev:event="xforms-ready">
  95. <![CDATA[
  96. if (checkOpener()) { //opener 검사
  97. var param = opener.javascript.getParameter("opener_parameter_id"); //opener parameter value를 get
  98. if(param != "") { // opener parameter value가 있는 경우
  99. // 첫번째 방법
  100. model.makeValue("/root/hidden/dflag",param);
  101. model.refresh();
  102. // 두번째 방법 parameter value를 이용하여 프로그램 수행
  103. // condarray = param.split("▦");
  104. // model.setValue("/root/main/patpsn/patpsninfo/index", condarray[0]);
  105. // model.setValue("/root/main/patpsn/patpsninfo/pid", condarray[1]);
  106. // model.setValue("/root/main/patpsn/patpsninfo/hngnm", condarray[2]);
  107. // model.setValue("/root/main/patpsn/patpsninfo/temptext",condarray[3]);
  108. // model.refresh();
  109. }
  110. }
  111. // var irow = getNodesetCount("/root/popdata");
  112. // irow = parseFloat(irow) + 1;
  113. // model.removeNodeset("/root/execdata/senddata/sendlist");
  114. copyNodesetType("/root/execdata/senddata", "/root/popdata/treatment", "replace", model, model);
  115. // if (model.getValue("/root/popdata/poplist[" + 1 + "]/appgb") == "Y"){ // Y:승인, N:승인취소
  116. if (model.getValue("/root/execdata/senddata/treatmentlist/appgb") == "Y"){ // Y:승인, N:승인취소
  117. btn_can.disabled = true;
  118. btn_app.disabled = false;
  119. }else{
  120. btn_app.disabled = true;
  121. btn_can.disabled = false;
  122. }
  123. // 대상자리스트를 가져온다
  124. if(model.getValue("/root/popdata/treatment/treatmentlist/rttmd") == "")
  125. {
  126. combo2.visible = true;
  127. model.setFocus("combo2");
  128. return false;
  129. }
  130. submit("TRAEA03909", false);
  131. model.setValue("/root/send/userid", getUserId());
  132. if( instance1.selectSingleNode("/root/main/userinfo/userlist[userid='" + getUserId() + "']") != null ){
  133. model.setFocus("input2");
  134. }else{
  135. model.setFocus("combo1");
  136. }
  137. model.refresh();
  138. ]]>
  139. </script>
  140. <submission id="TRAEA03909" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/popdata/treatment" resultref="/root/main/userinfo"/>
  141. <submission id="TXAOC05001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/execdata/senddata" resultref="/root/hidden"/>
  142. <submission id="TXAOC05002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/execdata/senddata" resultref="/root/hidden"/>
  143. <submission id="TXAEA03905" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/execdata/senddata" resultref="/root/hidden"/>
  144. <submission id="TXAEA03907" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/execdata/senddata" resultref="/root/main/userinfo"/>
  145. <script type="javascript" ev:event="xforms-model-destruct">
  146. <![CDATA[
  147. btn_exit.dispatch("DOMActivate");
  148. ]]>
  149. </script>
  150. </model>
  151. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  152. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  153. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  154. <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
  155. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  156. <script type="javascript" src="../../../com/userdeptinfoweb/js/ZSU001.js"/>
  157. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  158. <script type="javascript" src="../../../com/zipcodeweb/js/ZBP001.js"/>
  159. <script type="javascript">
  160. <![CDATA[
  161. function fExecdata() {
  162. // if (model.getValue("/root/popdata/poplist[" + 1 + "]/appgb") == "Y"){
  163. if (model.getValue("/root/execdata/senddata/treatmentlist[" + 1 + "]/appgb") == "Y"){
  164. btn_app.dispatch("DOMActivate");
  165. }else{
  166. btn_can.dispatch("DOMActivate");
  167. }
  168. }
  169. ]]>
  170. </script>
  171. </xhtml:head>
  172. <xhtml:body pagewidth="280" pageheight="160" guideline="1,1195;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  173. <group id="group1" style="left:0px; top:0px; width:255px; height:13px; ">
  174. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:142px; height:14px; background-image:../../../com/commonweb/images/tit_bullet1.gif; ">승인관리</caption>
  175. </group>
  176. <group id="group3" scroll="auto" style="left:1px; top:15px; width:254px; height:95px; ">
  177. <caption id="caption45" class="cell_1" style="left:35px; top:20px; width:90px; height:23px; ">승인자 ID</caption>
  178. <caption id="caption1" class="cell_1" style="left:35px; top:55px; width:90px; height:23px; ">PASSWORD</caption>
  179. <input id="input1" ref="/root/send/userid" navindex="1" style="left:130px; top:21px; width:100px; height:19px; text-align:left; "/>
  180. <input id="input2" ref="/root/send/pwd" navindex="2" style="left:130px; top:56px; width:100px; height:19px; text-align:left; ">
  181. <script type="javascript" ev:event="onkeydown">
  182. <![CDATA[
  183. if(event.keyCode == "13") {
  184. inputEnterKey("button1","DOMActivate");
  185. }
  186. ]]>
  187. </script>
  188. </input>
  189. <select1 id="combo1" ref="/root/send/userid" appearance="minimal" style="left:130px; top:21px; width:100px; height:19px; ">
  190. <choices>
  191. <itemset nodeset="/root/main/userinfo/userlist">
  192. <label ref="usernm"/>
  193. <value ref="userid"/>
  194. </itemset>
  195. </choices>
  196. <script type="javascript" ev:event="xforms-value-changed">
  197. <![CDATA[
  198. model.setFocus("input2");
  199. ]]>
  200. </script>
  201. </select1>
  202. </group>
  203. <button id="btn_app" class="btn4_letter2" navindex="3" style="left:55px; top:115px; width:56px; height:22px; ">
  204. <caption>승인</caption>
  205. <script type="javascript" ev:event="DOMActivate">
  206. <![CDATA[
  207. if (model.getValue("/root/send/userid") == ""){
  208. messageBox("승인자 ID는 필수 입력항목입니다.", "E999", "");
  209. return;
  210. }
  211. if (model.getValue("/root/send/pwd") == ""){
  212. messageBox("PASSWORD는 필수 입력항목입니다.", "E999", "");
  213. return;
  214. }
  215. var a = instance1.selectNodes("/root/execdata/senddata/treatmentlist").length;
  216. var k = 0;
  217. for (i=0; i<a; i++){
  218. // model.makeValue("/root/execdata/senddata/treatmentlist/userid", model.getValue("/root/send/userid"));
  219. // model.makeValue("/root/execdata/senddata/treatmentlist/pwd", model.getValue("/root/send/pwd"));
  220. // model.makeValue("/root/execdata/senddata/treatmentlist/rttmd", model.getValue("/root/popdata/treatment/treatmentlist/rttmd"));
  221. k=k+1;
  222. model.makeValue("/root/execdata/senddata/treatmentlist["+ k +"]/userid", model.getValue("/root/send/userid"));
  223. model.makeValue("/root/execdata/senddata/treatmentlist["+ k +"]/pwd", model.getValue("/root/send/pwd"));
  224. model.makeValue("/root/execdata/senddata/treatmentlist["+ k +"]/rttmd", model.getValue("/root/popdata/treatment/treatmentlist/rttmd"));
  225. }
  226. if(submit("TXAEA03905")){
  227. //messageBox("정상적으로 승인 처리되었습니다.", "E999", "");
  228. // 이미지 삭제할때 계정확인이 정상적으로 승이된 플래그 확인 전달하기
  229. opener.model.makeValue("/root/hidden/dflag",'Y');
  230. btn_exit.dispatch("DOMActivate");
  231. }
  232. /* if (model.getValue("/root/send/userid") == ""){
  233. messageBox("승인자 ID는 필수 입력항목입니다.", "E999", "");
  234. return;
  235. }
  236. if (model.getValue("/root/send/pwd") == ""){
  237. messageBox("PASSWORD는 필수 입력항목입니다.", "E999", "");
  238. return;
  239. }
  240. var irow = getNodesetCount("/root/popdata/treatment");
  241. alert("처리건수:" + irow);
  242. irow = parseFloat(irow) + 1;
  243. var kk = 0;
  244. for (var i = 1; i < irow; i++){
  245. kk = parseFloat(kk) + 1;
  246. model.makeValue("/root/execdata/senddata/treatmentlist/userid", model.getValue("/root/send/userid"));
  247. model.setValue("/root/execdata/senddata/treatmentlist[" + kk + "]/pwd", model.getValue("/root/send/pwd"));
  248. }
  249. model.setValue("/root/send/execgb", "N");
  250. if (submit("TXAEA03905")){
  251. model.setValue("/root/send/execgb", "Y");
  252. messageBox("정상적으로 승인 처리되었습니다.", "E999", "");
  253. btn_exit.dispatch("DOMActivate");
  254. }
  255. */
  256. ]]>
  257. </script>
  258. <script type="javascript" ev:event="onkeydown">
  259. <![CDATA[
  260. btn_app.dispatch("DOMActivate");
  261. ]]>
  262. </script>
  263. </button>
  264. <button id="btn_can" class="btn4_letter4" navindex="4" style="left:115px; top:115px; width:80px; height:22px; ">
  265. <caption>승인취소</caption>
  266. <script type="javascript" ev:event="DOMActivate">
  267. <![CDATA[
  268. if (model.getValue("/root/send/userid") == ""){
  269. messageBox("승인자 ID는 필수 입력항목입니다.", "E999", "");
  270. return;
  271. }
  272. if (model.getValue("/root/send/pwd") == ""){
  273. messageBox("PASSWORD는 필수 입력항목입니다.", "E999", "");
  274. return;
  275. }
  276. var a = instance1.selectNodes("/root/execdata/senddata/treatmentlist").length;
  277. var k = 0;
  278. for (i=0; i<a; i++){
  279. // model.makeValue("/root/execdata/senddata/treatmentlist/userid", model.getValue("/root/send/userid"));
  280. // model.makeValue("/root/execdata/senddata/treatmentlist/pwd", model.getValue("/root/send/pwd"));
  281. // model.makeValue("/root/execdata/senddata/treatmentlist/rttmd", model.getValue("/root/popdata/treatment/treatmentlist/rttmd"));
  282. k=k+1;
  283. model.makeValue("/root/execdata/senddata/treatmentlist["+ k +"]/userid", model.getValue("/root/send/userid"));
  284. model.makeValue("/root/execdata/senddata/treatmentlist["+ k +"]/pwd", model.getValue("/root/send/pwd"));
  285. model.makeValue("/root/execdata/senddata/treatmentlist["+ k +"]/rttmd", model.getValue("/root/popdata/treatment/treatmentlist/rttmd"));
  286. }
  287. if(submit("TXAEA03907")){
  288. // messageBox("정상적으로 승인취소 처리되었습니다.", "E999", "");
  289. btn_exit.dispatch("DOMActivate");
  290. }
  291. ]]>
  292. </script>
  293. <script type="javascript" ev:event="onkeydown">
  294. <![CDATA[
  295. btn_can.dispatch("DOMActivate");
  296. ]]>
  297. </script>
  298. </button>
  299. <button id="btn_exit" class="btn1_letter2" navindex="5" style="left:198px; top:115px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
  300. <caption>종료</caption>
  301. <script type="javascript" ev:event="DOMActivate">
  302. <![CDATA[
  303. var execgb = model.property("execgb");
  304. var userid = model.property("userid");
  305. if(execgb != ""){
  306. parent.model.setValue(execgb,model.getValue("/root/send/execgb"));
  307. }
  308. if(userid != ""){
  309. parent.model.setValue(userid,model.getValue("/root/send/userid"));
  310. }
  311. opener.model.refresh();
  312. window.close();
  313. ]]>
  314. </script>
  315. </button>
  316. <button id="button1" class="btn4_letter2" navindex="3" visibility="hidden" style="left:165px; top:90px; width:56px; height:22px; ">
  317. <caption>임시</caption>
  318. <script type="javascript" ev:event="DOMActivate">
  319. <![CDATA[
  320. fExecdata();
  321. ]]>
  322. </script>
  323. </button>
  324. <select1 id="combo2" ref="/root/popdata/treatment/treatmentlist/rttmd" visibility="hidden" appearance="minimal" style="left:130px; top:10px; width:100px; height:19px; ">
  325. <choices>
  326. <item>
  327. <label>RTT</label>
  328. <value>2</value>
  329. </item>
  330. <item>
  331. <label>Physics</label>
  332. <value>3</value>
  333. </item>
  334. </choices>
  335. <script type="javascript" ev:event="xforms-value-changed">
  336. <![CDATA[
  337. submit("TRAEA03909", false);
  338. model.setValue("/root/send/userid", getUserId());
  339. if( instance1.selectSingleNode("/root/main/userinfo/userlist[userid='" + getUserId() + "']") != null ){
  340. model.setFocus("input2");
  341. }else{
  342. model.setFocus("combo1");
  343. }
  344. model.refresh();
  345. ]]>
  346. </script>
  347. </select1>
  348. </xhtml:body>
  349. </xhtml:html>