SPMQP03700_컨설트등록.xrw 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266
  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. <cond>
  11. <cpgno/>
  12. <cpghistseq/>
  13. <stepnm/>
  14. <formseq/>
  15. <formcd/>
  16. <formwritflag/>
  17. <cnstflag/>
  18. <cnstclsnm/>
  19. <recvdeptcd/>
  20. <recvuserid/>
  21. <cnstcnts/>
  22. <recvdeptnm/>
  23. </cond>
  24. <cnstforminfo>
  25. <cnstformlist/>
  26. </cnstforminfo>
  27. </main>
  28. <hidden/>
  29. <send>
  30. <reqdata/>
  31. </send>
  32. <init>
  33. <userlist/>
  34. <stepinfo/>
  35. <orddept/>
  36. </init>
  37. <temp/>
  38. </root>
  39. </instance>
  40. <script type="javascript" ev:event="xforms-model-construct-done">
  41. <![CDATA[
  42. copyNodeListType("/root/init/stepinfo", "root/temp/steplist/stepinfo", "after", model, opener.model);
  43. var stepno = opener.model.getValue("/root/send/reqdata/stepno");
  44. model.setValue("/root/main/cond/stepnm", model.getValue("/root/init/stepinfo/stepinfo[stepno= " + "'" + stepno+ "'" + "]/stepnm"));
  45. mmbfGetDeptCodeComboList("/root/send/reqdata", "/root/init/orddept", "A"); //부서코드 콤보
  46. var editmode = opener.javascript.getParameter("SPMQP03700_edit");
  47. if (isNull(editmode)) {
  48. model.setValue("/root/main/cond/cnstflag" , "1");
  49. model.toggle("case1");
  50. } else {
  51. var cnstflag = opener.javascript.getParameter("SPMQP03700_cnstflag");
  52. model.setValue("/root/main/cond/cnstflag" , cnstflag);
  53. model.setValue("/root/main/cond/formcd" , opener.javascript.getParameter("SPMQP03700_formcd"));
  54. model.setValue("/root/main/cond/cnstclsnm" , opener.javascript.getParameter("SPMQP03700_cnstclsnm"));
  55. model.setValue("/root/main/cond/recvdeptcd" , opener.javascript.getParameter("SPMQP03700_recvdeptcd"));
  56. model.setValue("/root/main/cond/cnstcnts" , opener.javascript.getParameter("SPMQP03700_cnstcnts"));
  57. if (cnstflag ="1" ) {
  58. cmb_user.disabled = false;
  59. mmbfGetUserComboList("/root/send/reqdata", "/root/init/userlist", model.getValue("/root/main/cond/recvdeptcd"), "0330");
  60. model.setValue("/root/main/cond/recvuserid" , opener.javascript.getParameter("SPMQP03700_recvuserid"));
  61. model.toggle("case1");
  62. } else {
  63. model.toggle("case2");
  64. cmb_user.disabled = true;
  65. }
  66. }
  67. fGetCnstFormList() ;
  68. model.makeNode("/root/temp/cond");
  69. model.copyNode("/root/temp/cond", "/root/main/cond");
  70. ]]>
  71. </script>
  72. <submission id="TRMMB04101" mediatype="application/x-www-form-urlencoded" method="post"/>
  73. <submission id="TRMMB04102" mediatype="application/x-www-form-urlencoded" method="post"/>
  74. <submission id="TRMQP03701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/cnstforminfo"/>
  75. </model>
  76. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  77. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  78. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  79. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  80. <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
  81. <script type="javascript">
  82. <![CDATA[
  83. var sCNSTFORMLIST_PATH = "/root/main/cnstforminfo/cnstformlist";
  84. function fGetCnstFormList() {
  85. model.removenode("/root/send/reqdata");
  86. model.makeValue("/root/send/reqdata/cnstflag", model.getValue("/root/main/cond/cnstflag"));
  87. submit("TRMQP03701");
  88. }
  89. ]]>
  90. </script>
  91. </xhtml:head>
  92. <xhtml:body pagewidth="645" pageheight="535" guideline="1,1194;1,628;2,515;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  93. <button id="button38" class="btn_sw" group="tab" selected="true" style="left:0px; top:3px; width:65px; height:22px; ">
  94. <caption>진료의뢰</caption>
  95. <script type="javascript" ev:event="DOMActivate">
  96. <![CDATA[
  97. model.setValue("/root/main/cond/cnstflag" , "1");
  98. model.toggle("case1");
  99. fGetCnstFormList() ;
  100. ]]>
  101. </script>
  102. </button>
  103. <button id="button40" class="btn_sw" group="tab" style="left:66px; top:3px; width:84px; height:22px; ">
  104. <caption>지원부서의뢰</caption>
  105. <toggle case="Action" ev:event="onclick"/>
  106. <script type="javascript" ev:event="DOMActivate">
  107. <![CDATA[
  108. model.setValue("/root/main/cond/cnstflag" , "3");
  109. model.toggle("case2");
  110. fGetCnstFormList() ;
  111. ]]>
  112. </script>
  113. </button>
  114. <caption id="cap_outlineinfo" class="tit_2" style="left:252px; top:10px; width:105px; height:13px; ">컨설트 등록</caption>
  115. <line id="line1" class="line_1" style="x1:0px; y1:25px; x2:240px; y2:25px; "/>
  116. <line id="line2" class="line_1" style="x1:243px; y1:25px; x2:625px; y2:25px; "/>
  117. <line id="line13" class="line_2" style="x1:240px; y1:78px; x2:625px; y2:78px; "/>
  118. <caption id="cap_slipnm2" class="cell_1" style="left:243px; top:54px; width:85px; height:23px; ">제목</caption>
  119. <line id="line3" class="line_2" style="x1:240px; y1:101px; x2:625px; y2:101px; "/>
  120. <caption id="caption1" class="cell_1" style="left:243px; top:78px; width:85px; height:23px; ">수신과</caption>
  121. <caption id="caption2" class="cell_1" style="left:243px; top:103px; width:85px; height:23px; ">수신자</caption>
  122. <line id="line7" class="line_2" style="x1:240px; y1:126px; x2:625px; y2:126px; "/>
  123. <caption id="caption3" class="cell_1" style="left:243px; top:128px; width:85px; height:362px; ">의뢰 내용</caption>
  124. <textarea id="textarea1" ref="/root/main/cond/cnstcnts" scroll="autovscroll" style="left:330px; top:129px; width:295px; height:362px; "/>
  125. <line id="line4" class="line_2" style="x1:240px; y1:52px; x2:625px; y2:52px; "/>
  126. <caption id="caption4" class="cell_1" style="left:243px; top:30px; width:85px; height:23px; ">스텝명</caption>
  127. <input id="ipt_cnstclsnm" ref="/root/main/cond/cnstclsnm" editable="false" appearance="input" style="left:330px; top:56px; width:295px; height:19px; "/>
  128. <switch id="switch1" style="left:0px; top:30px; width:240px; height:485px; ">
  129. <case id="case1" selected="true">
  130. <datagrid id="grd_cnstlist" nodeset="/root/main/cnstforminfo/cnstformlist" caption="진료과^caption2^caption3^caption1^caption4^caption5^caption6" colsep="^" colwidth="211, 0, 0, 0, 0, 0, 0" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:0px; width:235px; height:480px; ">
  131. <col ref="cnstdeptnm"/>
  132. <col ref="cnstdeptcd" visibility="hidden"/>
  133. <col ref="formcd" visibility="hidden"/>
  134. <col ref="formnm" visibility="hidden"/>
  135. <col ref="cnstflag" visibility="hidden"/>
  136. <col ref="cnstclsnm" visibility="hidden"/>
  137. <col ref="replflag" visibility="hidden"/>
  138. <script type="javascript" ev:event="ondblclick">
  139. <![CDATA[
  140. var recvdeptnm = model.getValue(sCNSTFORMLIST_PATH + "[" + grd_cnstlist.row + "]/cnstdeptnm");
  141. var recvdeptcd = model.getValue(sCNSTFORMLIST_PATH + "[" + grd_cnstlist.row + "]/cnstdeptcd");
  142. if( model.getValue("/root/main/cond/cnstflag") == "1" ){
  143. var cnstclsnm = model.getValue(sCNSTFORMLIST_PATH + "[" + grd_cnstlist.row + "]/cnstclsnm") + "(" + recvdeptnm + ")";
  144. }else{
  145. var cnstclsnm = model.getValue(sCNSTFORMLIST_PATH + "[" + grd_cnstlist.row + "]/cnstclsnm");
  146. }
  147. var formcd = model.getValue(sCNSTFORMLIST_PATH + "[" + grd_cnstlist.row + "]/formcd");
  148. model.setValue("/root/main/cond/recvdeptnm" , recvdeptnm);
  149. model.setValue("/root/main/cond/recvdeptcd" , recvdeptcd);
  150. model.setValue("/root/main/cond/cnstclsnm" , cnstclsnm);
  151. model.setValue("/root/main/cond/cnstcnts" , "");
  152. model.setValue("/root/main/cond/formcd" , formcd);
  153. var cnstflag = model.getValue("/root/main/cond/cnstflag");
  154. if (cnstflag ="1" ) {
  155. cmb_user.disabled = false;
  156. mmbfGetUserComboList("/root/send/reqdata", "/root/init/userlist", model.getValue("/root/main/cond/recvdeptcd"), "0330");
  157. } else {
  158. cmb_user.disabled = true;
  159. }
  160. cmb_user.select(0);
  161. model.refresh();
  162. ]]>
  163. </script>
  164. </datagrid>
  165. </case>
  166. <case id="case2">
  167. <datagrid id="grd_cnstlist2" nodeset="/root/main/cnstforminfo/cnstformlist" scroll="autovscroll" caption="분류^caption2^caption3^상세^caption4^caption5^caption6" colsep="^" colwidth="79, 0, 0, 142, 0, 0, 0" mergecells="bycol" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:0px; width:235px; height:480px; ">
  168. <col ref="cnstclsnm"/>
  169. <col ref="cnstdeptcd" visibility="hidden"/>
  170. <col ref="formcd" visibility="hidden"/>
  171. <col ref="formnm"/>
  172. <col ref="cnstflag" visibility="hidden"/>
  173. <col ref="cnstdeptnm" visibility="hidden"/>
  174. <col ref="replflag" visibility="hidden"/>
  175. <script type="javascript" ev:event="ondblclick">
  176. <![CDATA[
  177. var recvdeptnm = model.getValue(sCNSTFORMLIST_PATH + "[" + grd_cnstlist2.row + "]/cnstdeptnm");
  178. var recvdeptcd = model.getValue(sCNSTFORMLIST_PATH + "[" + grd_cnstlist2.row + "]/cnstdeptcd");
  179. var cnstclsnm = model.getValue(sCNSTFORMLIST_PATH + "[" + grd_cnstlist2.row + "]/formnm");
  180. var formcd = model.getValue(sCNSTFORMLIST_PATH + "[" + grd_cnstlist2.row + "]/formcd");
  181. model.setValue("/root/main/cond/recvdeptnm" , recvdeptnm);
  182. model.setValue("/root/main/cond/recvdeptcd" , recvdeptcd);
  183. model.setValue("/root/main/cond/cnstclsnm" , cnstclsnm);
  184. model.setValue("/root/main/cond/formcd" , formcd);
  185. cmb_user.disabled = true;
  186. model.refresh();
  187. ]]>
  188. </script>
  189. </datagrid>
  190. </case>
  191. </switch>
  192. <select1 id="cmb_user" ref="/root/main/cond/recvuserid" appearance="minimal" style="left:330px; top:105px; width:295px; height:19px; ">
  193. <choices>
  194. <itemset nodeset="/root/init/userlist/usercombo">
  195. <label ref="usernm"/>
  196. <value ref="userid"/>
  197. </itemset>
  198. </choices>
  199. </select1>
  200. <line id="line5" class="line_2" style="x1:240px; y1:491px; x2:625px; y2:491px; "/>
  201. <button id="btn_attrapp" class="btn4_letter2" navindex="6" disable.background-image="../../../com/commonweb/images/dis_btn4_letter2.gif" style="left:569px; top:492px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn4_letter2.gif; ">
  202. <caption>확인</caption>
  203. <script type="javascript" ev:event="DOMActivate">
  204. <![CDATA[
  205. var formcd = model.getValue("/root/main/cond/formcd");
  206. var cnstflag = model.getValue("/root/main/cond/cnstflag");
  207. var cnstclsnm = model.getValue("/root/main/cond/cnstclsnm");
  208. var recvdeptcd = model.getValue("/root/main/cond/recvdeptcd");
  209. var recvuserid = model.getValue("/root/main/cond/recvuserid");
  210. var cnstcnts = model.getValue("/root/main/cond/cnstcnts");
  211. if (isNull(formcd)) {
  212. messageBox("진료과는 필수입니다.","");
  213. return;
  214. }
  215. if (isNull(cnstclsnm)) {
  216. messageBox("제목은 필수입니다.","");
  217. model.setFocus("ipt_cnstclsnm");
  218. return;
  219. }
  220. if (isNull(recvdeptcd)) {
  221. messageBox("수신과는 필수입니다.","");
  222. model.setFocus("cmb_orddept");
  223. return;
  224. }
  225. if (isNull(cnstcnts)) {
  226. messageBox("의뢰내용은 필수입니다.","");
  227. model.setFocus("textarea1");
  228. return;
  229. }
  230. var updateflag = compareNodeVal("/root/main/cond", "/root/temp/cond");
  231. if (updateflag == true) {
  232. opener.javascript.setParameter("SPMQP03700_rtn" , "Y");
  233. }
  234. opener.javascript.setParameter("SPMQP03700_formcd" , formcd);
  235. opener.javascript.setParameter("SPMQP03700_cnstflag" , cnstflag);
  236. opener.javascript.setParameter("SPMQP03700_cnstclsnm" , cnstclsnm);
  237. opener.javascript.setParameter("SPMQP03700_recvdeptcd" , recvdeptcd);
  238. opener.javascript.setParameter("SPMQP03700_recvuserid" , recvuserid);
  239. opener.javascript.setParameter("SPMQP03700_cnstcnts" , cnstcnts);
  240. model.close();
  241. ]]>
  242. </script>
  243. </button>
  244. <output id="output1" ref="/root/main/cond/stepnm" style="left:330px; top:31px; width:295px; height:19px; "/>
  245. <select1 id="cmb_orddept" ref="/root/main/cond/recvdeptcd" disabled="true" appearance="minimal" style="left:330px; top:81px; width:295px; height:19px; ">
  246. <choices>
  247. <itemset nodeset="/root/init/orddept/dept">
  248. <label ref="depthngnm"/>
  249. <value ref="deptcd"/>
  250. </itemset>
  251. </choices>
  252. <script type="javascript" ev:event="xforms-value-changed">
  253. <![CDATA[
  254. ]]>
  255. </script>
  256. </select1>
  257. </xhtml:body>
  258. </xhtml:html>