SPMNV07002_장비별진료과관리.xrw 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SPMNV07002.xrw
  4. * 설 명 : 장비별진료과관리
  5. * 설 계 자 :
  6. * 작 성 자 : 손주연
  7. * 작 성 일 : 2010.06.10
  8. * 수정이력 :
  9. * 기 타 : 오후 장비정보 타과 사용 정보관리
  10. -->
  11. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.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. <save>
  20. <cretno/>
  21. <centcd/>
  22. <orddeptcd/>
  23. <ordflag>2</ordflag>
  24. <fromdd/>
  25. <todd/>
  26. <detlno/>
  27. <cntrorddeptcd/>
  28. <ordroomcd/>
  29. <dwcd/>
  30. </save>
  31. <eqipinfo>
  32. <equiplst>
  33. <ordroomnm/>
  34. <ordflag/>
  35. <centcd/>
  36. <orddeptcd/>
  37. <subdeptcd/>
  38. </equiplst>
  39. </eqipinfo>
  40. </main>
  41. <send>
  42. <orddeptcd/>
  43. <centcd/>
  44. <ordroomcd/>
  45. <saveinfo/>
  46. <cretno/>
  47. <basedd/>
  48. <hostnm/>
  49. </send>
  50. <init>
  51. <orddeptcd>
  52. <dept/>
  53. </orddeptcd>
  54. <centcd>
  55. <dept/>
  56. </centcd>
  57. <cntrsuborddept>
  58. <cntrsuborddeptlist/>
  59. </cntrsuborddept>
  60. <eqipinfo/>
  61. <P0033list/>
  62. </init>
  63. <temp/>
  64. <hidden>
  65. </hidden>
  66. </root>
  67. </instance>
  68. <script type="javascript" ev:event="xforms-ready">
  69. <![CDATA[
  70. fInitialize();
  71. ]]>
  72. </script>
  73. <submission id="TRMNV07006" ref="/root/send" method="urlencoded-post" mediatype="application/x-www-form-urlencoded" replace="instance" resultref="/root/init/eqipinfo"/>
  74. <submission id="TRMNV07013" ref="/root/send" method="urlencoded-post" mediatype="application/x-www-form-urlencoded" replace="instance" resultref="/root/main/eqipinfo"/>
  75. <submission id="TRZSD00208" method="urlencoded-post" mediatype="application/x-www-form-urlencoded" replace="instance"/>
  76. <submission id="TRZSD00207" method="urlencoded-post" mediatype="application/x-www-form-urlencoded" replace="instance"/>
  77. <submission id="TRZSD00109" method="urlencoded-post" mediatype="application/x-www-form-urlencoded" replace="instance"/>
  78. <submission id="TXMNV07013" ref="/root/send/saveinfo" method="urlencoded-post" mediatype="application/x-www-form-urlencoded" replace="instance" resultref="/root/hidden"/>
  79. <submission id="TRZBC00101" method="urlencoded-post" mediatype="application/x-www-form-urlencoded" replace="instance"/>
  80. <submission id="TRZBC00102" method="post" mediatype="application/x-www-form-urlencoded" replace="instance"/>
  81. </model>
  82. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  83. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  84. <script type="javascript" src="../../../com/userdeptinfoweb/js/ZSU001.js"/>
  85. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  86. <script type="javascript" src="../../.S./com/commonweb/js/numericHelper.js"/>
  87. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  88. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  89. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  90. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  91. <script type="javascript">
  92. <![CDATA[
  93. function fInitialize(){
  94. /*zbcfGetCodeList( new Array("P0033"), new Array("/root/init/P0033list" ) , null, new Array("cdid" ), new Array("asc" ) ) ;
  95. var nodelist = model.instance1.selectNodes( "/root/init/P0033list/P0033[cdid='0']" );//일요일 삭제
  96. if( nodelist != null && nodelist.length > 0 ) {
  97. for( var i = 1 ; i <= nodelist.length ; i++) {
  98. if( model.getValue("/root/init/P0033list/P0033[" +i + "]/cdid" ) == "0" ) {
  99. model.removenode("/root/init/P0033list/P0033[" +i + "]" );
  100. break;
  101. }
  102. }
  103. } */
  104. //center 진료과 진료실
  105. //submit("TRMNV07002"); //센터, 진료과 정보 가져옴
  106. model.makeValue("/root/send/centcd", "-" );
  107. model.makeValue("/root/send/orddd", getCurrentDate());
  108. submit("TRMNV07006"); //진료실 정보
  109. zsdfGetCntrOrdKindDepartmentList(getUserInfo("dutplceinstcd"), "/root/init/centcd", getCurrentDate() );
  110. addComboItem("cmb_centcd", "-", "" );
  111. zsdfGetOutOrdDeptList(getUserInfo("dutplceinstcd"), "/root/init/orddeptcd" , "depthngnm", "desc", getCurrentDate() );
  112. model.removeNodeset(grd_eqiplst.nodeset );
  113. model.makeValue("/root/send/basedd", getCurrentDate());
  114. fInitSaveInfo();
  115. var userdeptnm = getUserInfo( "dutplcenm" );
  116. model.makeValue("/root/send/hostnm", userdeptnm);
  117. fGetEqipDetlInfoList();
  118. //ipt_hostnm.disabled = true ;
  119. model.setfocus("ipt_hostnm");
  120. model.refresh();
  121. }
  122. function fInitSaveInfo(){
  123. //var cretno = model.getValue("/root/main/save/cretno");
  124. model.resetInstanceNode("/root/main/save");
  125. /*model.makeValue("/root/main/save/fromdd" , getCurrentDate());
  126. model.makeValue("/root/main/save/todd" , getCurrentDate());
  127. model.makeValue("/root/main/save/ordflag" , "2");
  128. model.makeValue("/root/main/save/cretno" , cretno);
  129. */
  130. }
  131. function fGetEqipDetlInfoList(){
  132. model.removeNodeset(grd_eqiplst.nodeset );
  133. /*var cretno = model.getValue("/root/main/save/cretno") ;
  134. if( isNull(cretno) || cretno == "-" ) {
  135. messageBox("진료실을 선택하세요" );
  136. return ;
  137. }
  138. */
  139. //model.resetInstanceNode("/root/send");
  140. //model.makeValue("/root/send/basedd",getCurrentDate() );
  141. if( isNull( model.getValue("/root/send/scrnsize") ) ) model.makeValue("/root/send/scrnsize","17" );
  142. if( submit("TRMNV07013") ){
  143. fInitSaveInfo();
  144. model.refresh();
  145. }
  146. }
  147. function fSaveEqipDetlUseInfo(){
  148. if( messageBox( "", "Q002" ) != "6" ) return ;
  149. var cretno = model.getValue("/root/main/save/cretno") ;
  150. var orddeptcd = model.getValue("/root/main/save/orddeptcd") ;
  151. var fromdd = model.getValue("/root/main/save/fromdd") ;
  152. var todd = model.getValue("/root/main/save/todd") ;
  153. if( isNull(cretno) || cretno == "-" ) {
  154. messageBox("진료실을 " , "C002");
  155. return ;
  156. }
  157. if( isNull(orddeptcd) || orddeptcd == "-" ) {
  158. messageBox("진료과를 " , "C002");
  159. return ;
  160. }
  161. var userdeptcd = getUserInfo( "dutplcecd" );
  162. if( orddeptcd != userdeptcd ){
  163. if( messageBox("로그인 부서와 변경진료과 부서정보가 다릅니다. " , "S002" ) != 6 ) return ;
  164. }
  165. /*
  166. if( isNull(fromdd) || isNull(todd) ||fromdd.length < 8 || todd.length < 8 || ( fromdd > todd ) || (fromdd < getCurrentDate() )) {
  167. messageBox("적용일자를 ", "I007" );
  168. return ;
  169. }
  170. */
  171. model.resetInstanceNode("/root/send/saveinfo");
  172. model.makeNode("/root/send/saveinfo");
  173. model.copyNode("/root/send/saveinfo" , "/root/main/save");
  174. if( submit("TXMNV07013") ) {
  175. model.resetInstanceNode("/root/main/save");
  176. fGetEqipDetlInfoList();
  177. }
  178. }
  179. ]]>
  180. </script>
  181. </xhtml:head>
  182. <xhtml:body pagewidth="534" pageheight="503" guideline="1,534;2,492;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  183. <group id="group3" scroll="auto" style="left:0px; top:0px; width:518px; height:465px; ">
  184. <group id="group2" style="left:0px; top:0px; width:518px; height:35px; vertical-align:top; ">
  185. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:517px; height:35px; "/>
  186. <caption id="caption2" class="search_name" style="left:195px; top:10px; width:86px; height:17px; ">진료실</caption>
  187. <button id="btn_search" class="btn1_letter2" style="left:445px; top:7px; width:56px; height:22px; ">
  188. <caption>조회</caption>
  189. <script type="javascript" ev:event="DOMActivate">
  190. <![CDATA[
  191. fGetEqipDetlInfoList();
  192. ]]>
  193. </script>
  194. </button>
  195. <line id="line13" class="line_4" style="x1:429px; y1:7px; x2:429px; y2:29px; "/>
  196. <select1 id="cmb_ordroomcd" ref="/root/main/save/cretno" class="combo_search" appearance="minimal" itemcount="30" style="left:265px; top:8px; width:155px; height:19px; ">
  197. <choices>
  198. <itemset nodeset="/root/init/eqipinfo/eqiproomlist">
  199. <label ref="hostnm"/>
  200. <value ref="cretno"/>
  201. </itemset>
  202. </choices>
  203. <script type="javascript" ev:event="xforms-value-changed">
  204. <![CDATA[
  205. fGetEqipDetlInfoList();
  206. ]]>
  207. </script>
  208. </select1>
  209. <caption id="caption4" class="search_name" style="left:10px; top:10px; width:86px; height:17px; ">장비명 :</caption>
  210. <input id="srch_basedd" ref="/root/send/basedd" class="input_default" visibility="hidden" inputtype="date" style="left:323px; top:8px; width:97px; height:19px; "/>
  211. <input id="ipt_hostnm" ref="/root/send/hostnm" class="input_search" disabled="true" style="left:95px; top:8px; width:325px; height:19px; ">
  212. <script type="javascript" ev:event="onkeypress">
  213. <![CDATA[
  214. if( event.keycode == 13 ) {
  215. model.makeValue("/root/send/hostnm" , ipt_hostnm.currentText );
  216. fGetEqipDetlInfoList();
  217. }
  218. ]]>
  219. </script>
  220. </input>
  221. </group>
  222. <caption id="caption1" class="tit_2" style="left:5px; top:45px; width:183px; height:14px; ">장비별 진료과 관리</caption>
  223. <line id="line1" class="line_1" style="x1:0px; y1:60px; x2:517px; y2:60px; "/>
  224. <button id="btn_save" class="btn5_letter2" style="left:475px; top:40px; width:42px; height:19px; ">
  225. <caption>저장</caption>
  226. <script type="javascript" ev:event="DOMActivate">
  227. <![CDATA[
  228. fSaveEqipDetlUseInfo();
  229. ]]>
  230. </script>
  231. </button>
  232. <caption id="caption7" class="cell_1" style="left:0px; top:65px; width:50px; height:23px; ">장비명</caption>
  233. <caption id="caption3" class="cell_1" style="left:193px; top:65px; width:50px; height:23px; ">센터</caption>
  234. <caption id="caption5" class="cell_1" style="left:0px; top:190px; width:60px; height:23px; ">진료구분</caption>
  235. <caption id="caption6" class="cell_1" style="left:233px; top:190px; width:60px; height:23px; ">적용일자</caption>
  236. <select1 id="cmb_ordroomcd2" ref="/root/main/save/cretno" class="combo_search" disabled="true" appearance="minimal" style="left:53px; top:66px; width:136px; height:19px; ">
  237. <choices>
  238. <itemset nodeset="/root/main/eqipinfo/eqiproomlist">
  239. <label ref="hostnm"/>
  240. <value ref="cretno"/>
  241. </itemset>
  242. </choices>
  243. </select1>
  244. <select1 id="cmb_centcd" ref="/root/main/save/centcd" class="combo_search" appearance="minimal" style="left:245px; top:66px; width:106px; height:19px; ">
  245. <choices>
  246. <itemset nodeset="/root/init/centcd/dept">
  247. <label ref="depthngnm"/>
  248. <value ref="deptcd"/>
  249. </itemset>
  250. </choices>
  251. <script type="javascript" ev:event="xforms-value-changed">
  252. <![CDATA[
  253. var centcd = cmb_centcd.value;
  254. if( isNull(centcd) || centcd == "-" ) {
  255. //submit("TRMNV07002"); //센터, 진료과 정보 가져옴
  256. zsdfGetOutOrdDeptList(getUserInfo("dutplceinstcd"), "/root/init/orddeptcd" , "depthngnm", "desc", getCurrentDate() );
  257. cmb_orddeptcd.choices.itemset.attribute("nodeset") = "/root/init/orddeptcd/dept" ;
  258. cmb_orddeptcd.refresh();
  259. } else {
  260. zsufGetCntrSubOrdDepartmentList(getUserInfo("dutplceinstcd"), centcd, 'out', "/root/init/cntrsuborddeptlist", getCurrentDate());
  261. cmb_orddeptcd.choices.itemset.attribute("nodeset") = "/root/init/cntrsuborddeptlist/dept" ;
  262. cmb_orddeptcd.refresh();
  263. }
  264. ]]>
  265. </script>
  266. </select1>
  267. <select1 id="cmb_orddeptcd" ref="/root/main/save/orddeptcd" class="combo_search" appearance="minimal" style="left:405px; top:65px; width:106px; height:19px; ">
  268. <choices>
  269. <itemset nodeset="/root/init/orddeptcd/dept">
  270. <label ref="depthngnm"/>
  271. <value ref="deptcd"/>
  272. </itemset>
  273. </choices>
  274. </select1>
  275. <caption id="caption8" class="cell_1" style="left:353px; top:64px; width:50px; height:23px; ">진료과</caption>
  276. <line id="line2" class="line_2" style="x1:0px; y1:87px; x2:517px; y2:87px; "/>
  277. <line id="line3" class="line_2" style="x1:0px; y1:213px; x2:517px; y2:213px; "/>
  278. <input id="ipt_fromdd" ref="/root/main/save/fromdd" class="input_default" inputtype="date" style="left:295px; top:191px; width:107px; height:19px; "/>
  279. <input id="ipt_todd" ref="/root/main/save/todd" class="input_default" inputtype="date" style="left:404px; top:191px; width:107px; height:19px; "/>
  280. <select1 id="rdo_ordflag" ref="/root/main/save/ordflag" navindex="7" disabled="false" overflow="visible" appearance="full" cols="3" cellspacing="10" style="left:64px; top:195px; width:160px; height:20px; border-style:none; ">
  281. <choices>
  282. <item>
  283. <label>오전</label>
  284. <value>1</value>
  285. </item>
  286. <item>
  287. <label>오후</label>
  288. <value>2</value>
  289. </item>
  290. <item>
  291. <label>전체</label>
  292. <value>3</value>
  293. </item>
  294. </choices>
  295. </select1>
  296. <button id="btn_init" class="btn2_letter3" visibility="visible" style="left:419px; top:40px; width:53px; height:19px; ">
  297. <caption>초기화</caption>
  298. <script type="javascript" ev:event="DOMActivate">
  299. <![CDATA[
  300. fInitSaveInfo();
  301. model.refresh();
  302. ]]>
  303. </script>
  304. </button>
  305. <line id="line4" class="line_2" style="x1:0px; y1:138px; x2:517px; y2:138px; "/>
  306. <caption id="caption9" class="cell_1" style="left:0px; top:215px; width:60px; height:23px; ">요일</caption>
  307. <select id="chk_dwcd" ref="/root/main/save/dwcd" overflow="visible" appearance="full" rows="1" cols="7" sep="|" style="left:64px; top:218px; width:446px; height:20px; border-style:none; ">
  308. <choices>
  309. <itemset nodeset="/root/init/P0033list/P0033">
  310. <label ref="cdnm"/>
  311. <value ref="cdid"/>
  312. </itemset>
  313. </choices>
  314. </select>
  315. <datagrid id="grd_eqiplst" nodeset="/root/main/eqipinfo/eqiproomlist" caption="cretno^detlno^진료실명^장비명^centcd^센터^orddeptcd^진료과" colwidth="0, 0, 84, 185, 21, 114, 11, 160" dataheight="23" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" colsep="^" style="left:0px; top:113px; width:517px; height:202px; ">
  316. <col ref="cretno" visibility="hidden"/>
  317. <col ref="ipaddr" visibility="hidden"/>
  318. <col ref="ordroomnm" visibility="visible"/>
  319. <col ref="hostnm" visibility="visible"/>
  320. <col ref="centcd" visibility="hidden"/>
  321. <col ref="centnm"/>
  322. <col ref="orddeptcd" visibility="hidden"/>
  323. <col ref="orddeptnm" format="yyyy-mm-dd"/>
  324. <script type="javascript" ev:event="ondblclick">
  325. <![CDATA[
  326. if( isDataCell()) {
  327. var idx = grd_eqiplst.row ;
  328. if( idx > 0 ) {
  329. model.copyNode("/root/main/save", grd_eqiplst.nodeset + "[" + idx + "]" );
  330. cmb_centcd.dispatch( "xforms-value-changed");
  331. model.refresh();
  332. }
  333. }
  334. ]]>
  335. </script>
  336. </datagrid>
  337. <caption id="caption22" class="tit_2" style="left:5px; top:94px; width:144px; height:14px; ">장비정보내역</caption>
  338. <line id="line7" class="line_1" style="x1:0px; y1:108px; x2:517px; y2:108px; "/>
  339. <caption id="caption26" style="left:0px; top:320px; width:517px; height:135px; font-weight:bold; color:#000000; vertical-align:middle; background-color:#ffff99; ">
  340. <![CDATA[ 1. 로그인부서 소대기 전광판 장비명(수정 필요 시 전산팀 요청 요망)이 조회되어, 사용부서 변경이 가능합니다.
  341. * 센터 소속 장비를 조회하려면 센터 근무지로 로그인해야 합니다.
  342. 2. 장비정보내역에서 장비명을 더블클릭 후 장비별 진료과 관리에서 원하시는 센터, 진료과 선택 후 저장 후 해당 모니터를 재부팅시 즉시 변경적용됩니다.
  343. 3. 과변경된 센터/진료과의 [전광판 관리] 화면에 해당 진료실이 추가되어 소대기 전광판 사용가능합니다.]]>
  344. </caption>
  345. <shape id="roundrect3" class="roundrect_btnset" appearance="roundrect" style="left:0px; top:320px; width:517px; height:135px; "/>
  346. </group>
  347. <group id="group1" scroll="auto" style="left:0px; top:465px; width:518px; height:28px; ">
  348. <button id="btn_cancel" class="btn4_letter2" style="left:461px; top:5px; width:56px; height:22px; ">
  349. <caption>닫기</caption>
  350. <close ev:event="DOMActivate"/>
  351. </button>
  352. <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:518px; y2:0px; "/>
  353. </group>
  354. </xhtml:body>
  355. </xhtml:html>