SMMMB03100_약속처방점검.xrw 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322
  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>약속SET관리</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <prmsprcpsetinfo>
  11. <prmsprcpsetlist>
  12. <levl/>
  13. <setno/>
  14. <supsetno/>
  15. <sortno/>
  16. <setkindcd/>
  17. <setclscd/>
  18. <settrgtcd/>
  19. <setnm/>
  20. <settypecd/>
  21. <ioflag/>
  22. <judgchkstat/>
  23. <judgchkid/>
  24. <judgchkdt/>
  25. </prmsprcpsetlist>
  26. <result/>
  27. </prmsprcpsetinfo>
  28. <iptbox>
  29. <setnm/>
  30. </iptbox>
  31. <cond>
  32. <foldernm/>
  33. <prmsflag/>
  34. <deptsetcd/>
  35. <settypecd/>
  36. <ioflag>01</ioflag>
  37. <orddrid/>
  38. <statflag/>
  39. </cond>
  40. </main>
  41. <send>
  42. <reqdata/>
  43. <savedata/>
  44. <setupdata/>
  45. </send>
  46. <hidden>
  47. <prmsprcpsetinfo>
  48. <prmsprcpsetlist>
  49. <levl/>
  50. <setno/>
  51. <supsetno/>
  52. <sortno/>
  53. <setkindcd/>
  54. <setclscd/>
  55. <settrgtcd/>
  56. <setnm/>
  57. <settypecd/>
  58. <ioflag/>
  59. <judgchkstat/>
  60. <judgchkid/>
  61. <judgchkdt/>
  62. </prmsprcpsetlist>
  63. </prmsprcpsetinfo>
  64. </hidden>
  65. <init>
  66. <orddept>
  67. </orddept>
  68. <orddept2/>
  69. </init>
  70. </root>
  71. </instance>
  72. <script type="javascript" ev:event="xforms-ready">
  73. <![CDATA[
  74. model.setValue("/root/main/cond/ioflag", "O");
  75. model.setValue("/root/main/cond/statflag", "01");
  76. fInitJudgPrcpSet();
  77. ]]>
  78. </script>
  79. <submission id="TRMMB00651" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/prmsprcpsetinfo"/>
  80. <submission id="TXMMB00651" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/prmsprcpsetinfo"/>
  81. <submission id="TXMMB00602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/etcprmsprcpsetdetlinfo"/>
  82. <submission id="TRMMB00602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/etcprmsprcpsetdetlinfo"/>
  83. <submission id="TRMMB04102" mediatype="application/x-www-form-urlencoded" method="post"/>
  84. <script type="javascript" ev:event="xforms-model-construct-done">
  85. <![CDATA[
  86. fInitializeDone_SMMMB03100();
  87. ]]>
  88. </script>
  89. <submission id="TRMMB00604" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/deptlist"/>
  90. <submission id="TRMMO03111" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/deptindxcdlist"/>
  91. <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="post"/>
  92. <submission id="TXMMB00607" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/main/prmsprcpsetinfo"/>
  93. <submission id="TRMMB04101" mediatype="application/x-www-form-urlencoded" method="post"/>
  94. </model>
  95. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  96. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  97. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  98. <script type="javascript" src="../../../emr/prcpmngtweb/js/SMMMB03100.js"/>
  99. <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
  100. </xhtml:head>
  101. <xhtml:body visibility="visible" guideline="1,1193;1,11;1,1187;" style="border-color:#c7a3cf; margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  102. <iviewer id="iviewer1" style="left:260px; top:90px; width:933px; height:685px; border-color:transparent; border-style:solid; "/>
  103. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:106px; height:14px; ">약속SET관리</caption>
  104. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:5px; top:21px; width:1182px; height:59px; background-color:#fffbf2; border-color:#ffd799; "/>
  105. <caption id="caption1" class="search_name" style="left:522px; top:53px; width:102px; height:17px; ">약속셋명</caption>
  106. <select1 id="cmb_deptset" ref="/root/main/cond/deptsetcd" disabled="false" appearance="minimal" editmode="search" style="left:632px; top:28px; width:129px; height:19px; ">
  107. <choices>
  108. <itemset nodeset="/root/init/orddept/dept">
  109. <label ref="depthngnm"/>
  110. <value ref="deptcd"/>
  111. </itemset>
  112. </choices>
  113. <script type="javascript" ev:event="xforms-value-changed">
  114. <![CDATA[
  115. var prmsflag = model.getValue("/root/main/cond/prmsflag");
  116. if ( prmsflag == "T" ){
  117. fReqPrmsSet();
  118. model.removeNodeset("/root/init/userlist");
  119. model.makeNode("/root/init/userlist/usercombo");
  120. }else if ( prmsflag == "P") {
  121. userDetlList();
  122. cmb_deptset.disabled = false;
  123. cmb_orddrid.disabled = false;
  124. }
  125. model.refresh();
  126. ]]>
  127. </script>
  128. </select1>
  129. <caption id="caption3" class="search_name" style="left:522px; top:29px; width:86px; height:17px; ">진료과</caption>
  130. <shape id="rectangle1" appearance="rectangle" style="left:0px; top:15px; width:1193px; height:70px; color:#c0c0c0; border-color:#c0c0c0; "/>
  131. <caption id="caption2" class="search_name" style="left:30px; top:28px; width:86px; height:17px; ">상태</caption>
  132. <caption id="caption5" class="search_name" style="left:30px; top:53px; width:86px; height:17px; ">종류</caption>
  133. <select1 id="radio2" ref="/root/main/cond/statflag" appearance="full" cellspacing="15" cols="4" rows="1" overflow="visible" style="left:91px; top:30px; width:229px; height:18px; border-style:none; ">
  134. <choices>
  135. <item>
  136. <label>전체</label>
  137. <value>01</value>
  138. </item>
  139. <item>
  140. <label>미심</label>
  141. <value>02</value>
  142. </item>
  143. <item>
  144. <label>보류</label>
  145. <value>03</value>
  146. </item>
  147. <item>
  148. <label>완료</label>
  149. <value>04</value>
  150. </item>
  151. </choices>
  152. </select1>
  153. <caption id="caption7" class="search_name" style="left:342px; top:28px; width:86px; height:17px; ">구분</caption>
  154. <line id="line3" style="x1:1096px; y1:26px; x2:1096px; y2:70px; border-color:#ffe4bb; border-left-style:solid; "/>
  155. <button id="btn_req" class="btn1_letter2" style="left:1114px; top:36px; width:61px; height:22px; ">
  156. <caption>조회</caption>
  157. <script type="javascript" ev:event="DOMActivate">
  158. <![CDATA[
  159. var prmsflag = model.getValue("/root/main/cond/prmsflag");
  160. if (prmsflag=="T"){
  161. fReqPrmsSet();
  162. } else if (prmsflag=="P"){
  163. fReqPrmsSet("drid");
  164. }
  165. ]]>
  166. </script>
  167. </button>
  168. <select1 id="cmb_orddrid" ref="/root/main/cond/orddrid" class="combo_default" appearance="minimal" itemcount="30" style="left:890px; top:28px; width:90px; height:19px; ">
  169. <choices>
  170. <itemset nodeset="/root/init/userlist/usercombo">
  171. <label ref="usernm"/>
  172. <value ref="userid"/>
  173. </itemset>
  174. </choices>
  175. <script type="javascript" ev:event="xforms-value-changed">
  176. <![CDATA[
  177. fReqPrmsSet("drid");
  178. ]]>
  179. </script>
  180. </select1>
  181. <caption id="caption29" class="search_name" style="left:791px; top:31px; width:76px; height:17px; ">진 료 의</caption>
  182. <select1 id="rdo_setflag" ref="/root/main/cond/prmsflag" appearance="full" cols="2" overflow="visible" style="left:400px; top:29px; width:95px; height:20px; border-style:none; ">
  183. <choices>
  184. <item>
  185. <label>과</label>
  186. <value>T</value>
  187. </item>
  188. <item>
  189. <label>개인</label>
  190. <value>P</value>
  191. </item>
  192. </choices>
  193. <script type="javascript" ev:event="xforms-value-changed">
  194. <![CDATA[
  195. var prmsflag = model.getValue("/root/main/cond/prmsflag");
  196. if (prmsflag == "T"){
  197. model.removeNodeset("/root/init/userlist");
  198. model.makeNode("/root/init/userlist/usercombo");
  199. model.setValue("/root/main/cond/foldernm", "");
  200. cmb_orddrid.disabled = true;
  201. }else if (prmsflag == "P"){ //약속처방 개인인 경우
  202. //userDetlList();
  203. model.makeNode("/root/init/userlist/usercombo");
  204. cmb_deptset.disabled = false;
  205. cmb_orddrid.disabled = false;
  206. model.setValue("/root/main/cond/foldernm", "");
  207. }
  208. model.refresh();
  209. ]]>
  210. </script>
  211. </select1>
  212. <select1 id="radio1" ref="/root/main/cond/ioflag" appearance="full" cols="2" overflow="visible" style="left:91px; top:54px; width:100px; height:20px; border-style:none; ">
  213. <choices>
  214. <item>
  215. <label>외래</label>
  216. <value>O</value>
  217. </item>
  218. <item>
  219. <label>입원</label>
  220. <value>I</value>
  221. </item>
  222. </choices>
  223. </select1>
  224. <datagrid id="datagrid1" nodeset="/root/main/prmsprcpsetinfo/prmsprcpsetlist" class="datagrid2" caption="levl^setno^supsetno^sortno^setkindcd^setclscd^대상^약속셋명^settypecd^ioflag^확인^확인자^확인일시" colsep="^" colwidth="0, 0, 0, 0, 0, 0, 76, 89, 0, 0, 45, 63, 76" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="21" rowsep="|" tooltip="true" style="left:5px; top:128px; width:246px; height:635px; ">
  225. <col ref="levl"/>
  226. <col ref="setno"/>
  227. <col ref="supsetno"/>
  228. <col ref="sortno"/>
  229. <col ref="setkindcd"/>
  230. <col ref="setclscd"/>
  231. <col ref="settrgtcd" style="text-align:center; "/>
  232. <col ref="setnm"/>
  233. <col ref="settypecd"/>
  234. <col ref="ioflag"/>
  235. <col ref="judgchkstat" type="combo">
  236. <choices>
  237. <item>
  238. <label>미심</label>
  239. <value>02</value>
  240. </item>
  241. <item>
  242. <label>보류</label>
  243. <value>03</value>
  244. </item>
  245. <item>
  246. <label>완료</label>
  247. <value>04</value>
  248. </item>
  249. </choices>
  250. </col>
  251. <col ref="judgchkid" style="text-align:center; "/>
  252. <col ref="judgchkdt" format="yyyy-mm-dd" style="text-align:center; "/>
  253. <script type="javascript" ev:event="xforms-value-changed">
  254. <![CDATA[
  255. var selectedRows = datagrid1.selectedRows ;
  256. var nodelist = "/root/main/prmsprcpsetinfo/prmsprcpsetlist" ;
  257. var judgchkstat = model.getValue(nodelist+"["+datagrid1.selectedRow(0)+"]/judgchkstat") ;
  258. var curRow = datagrid1.row;
  259. var fstrow = datagrid1.selectedRow(0);
  260. //var secrow = datagrid1.selectedRow(1);
  261. //alert( "fstrow :"+fstrow+", secrow :"+secrow+", selectedRows :"+selectedRows+", curRow :"+curRow);
  262. if ( curRow == fstrow ) {
  263. for ( var i=0; i<selectedRows; i++ ) {
  264. model.setValue(nodelist+"["+datagrid1.selectedRow(i)+"]/judgchkstat", judgchkstat);
  265. datagrid1.addStatus(curRow+i, "update");
  266. }
  267. } else {
  268. alert("선택 범위가 잘못되었습니다. 다시 선택 후 진행하세요. ");
  269. }
  270. datagrid1.refresh();
  271. ]]>
  272. </script>
  273. <script type="javascript" ev:event="ondblclick">
  274. <![CDATA[
  275. fReqJudgDetlSet();
  276. ]]>
  277. </script>
  278. </datagrid>
  279. <caption id="caption4" class="tit_2" style="left:5px; top:105px; width:126px; height:14px; vertical-align:middle; ">약속셋</caption>
  280. <line id="line6" class="line_1" style="x1:5px; y1:123px; x2:251px; y2:123px; "/>
  281. <shape id="rectangle2" appearance="rectangle" style="left:0px; top:90px; width:257px; height:685px; color:#c0c0c0; border-color:#c0c0c0; "/>
  282. <button id="btn_save" class="btn5_letter2" style="left:208px; top:103px; width:42px; height:19px; ">
  283. <caption>수정</caption>
  284. <script type="javascript" ev:event="DOMActivate">
  285. <![CDATA[
  286. model.setValue("/root/send/setupdata", datagrid1.getUpdateData());
  287. submit("TXMMB00651");
  288. fGridRowColor();
  289. model.refresh();
  290. ]]>
  291. </script>
  292. </button>
  293. <shape id="rectangle3" appearance="rectangle" style="left:104px; top:109px; width:15px; height:10px; background-color:#ffff99; "/>
  294. <caption id="caption8" style="left:122px; top:105px; width:30px; height:20px; ">미심</caption>
  295. <shape id="rectangle4" appearance="rectangle" style="left:153px; top:109px; width:15px; height:10px; background-color:#99ccff; "/>
  296. <caption id="caption9" style="left:171px; top:105px; width:30px; height:20px; ">보류</caption>
  297. <input id="input1" ref="/root/main/cond/foldernm" style="left:632px; top:51px; width:129px; height:19px; ">
  298. <script type="javascript" ev:event="onkeypress">
  299. <![CDATA[
  300. inputEnterKey("btn_srch", "DOMActivate");
  301. ]]>
  302. </script>
  303. </input>
  304. <button id="btn_srch" class="btn2_letter2" visibility="hidden" style="left:770px; top:50px; width:42px; height:19px; ">
  305. <caption>검색</caption>
  306. <script type="javascript" ev:event="DOMActivate">
  307. <![CDATA[
  308. fReqPrmsSet();
  309. ]]>
  310. </script>
  311. </button>
  312. </xhtml:body>
  313. </xhtml:html>