SPAEB05000_장비등록.xrw 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366
  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. <goodlist>
  11. <item>
  12. <goodid/>
  13. <goodnm/>
  14. <suppdeptcd/>
  15. <goodmodel/>
  16. <goodspec/>
  17. <aetitle/>
  18. <ipaddress/>
  19. <netgate/>
  20. <workgate/>
  21. <modality/>
  22. <installplace/>
  23. <mngtdeptcd/>
  24. <mngtcntctel/>
  25. <suplcntctel/>
  26. <useyn/>
  27. <fixasetcd/>
  28. <cmt/>
  29. <excuroomcd/>
  30. </item>
  31. </goodlist>
  32. </main>
  33. <send>
  34. <globalinstance>
  35. <instance1/>
  36. </globalinstance>
  37. <grupcdid/>
  38. </send>
  39. <hidden>
  40. <count/>
  41. </hidden>
  42. <init>
  43. <openersend>
  44. <data/>
  45. </openersend>
  46. <cmb_info>
  47. <initmodal>
  48. <cdid/>
  49. <cdnm/>
  50. <grupcdid/>
  51. </initmodal>
  52. <initnetg>
  53. <cdid/>
  54. <cdnm/>
  55. <grupcdid/>
  56. </initnetg>
  57. <initworkg>
  58. <cdid/>
  59. <cdnm/>
  60. <grupcdid/>
  61. </initworkg>
  62. <suppdept>
  63. <suppdeptcd/>
  64. <depthngnm/>
  65. </suppdept>
  66. <excuroomcdlist>
  67. <excuroom>
  68. <basecd/>
  69. <basecdflagdesc/>
  70. </excuroom>
  71. </excuroomcdlist>
  72. </cmb_info>
  73. </init>
  74. <temp/>
  75. </root>
  76. </instance>
  77. <script type="javascript">
  78. <![CDATA[
  79. var sOPSCHERECINFO_PATH = "/root/send/data";
  80. function fChngSrchRoomCd() {
  81. if ( model.getValue("/root/send/data/wardcd") == "" ) return;
  82. model.resetInstanceNode("/root/init/cmb_room/initwardroom");
  83. submit("TRAEA02403");
  84. }
  85. function fSrchPatInfo() {
  86. /* @group : Angio 일정 등록
  87. * @ver : 2007.7.24
  88. * @by : 조원영
  89. * @-----------------------------------
  90. * @type : function
  91. * @access : public
  92. * @desc : 등록번호를 통한 환자 이름, 성별 및 나이 조회
  93. */
  94. model.setValue("/root/send/data/srchcond", "1"); // 검색조건 등록번호로 셋팅
  95. modal("SPPMC02500", "", "200", "200", "SPPMC02500", "/root/send/data", "/root/send");
  96. model.setValue( "/root/send/data/pid", model.getValue("/root/main/patinfo/patinfolist/pid") ); // 등록번호 설정
  97. model.setValue( "/root/send/data/patnm", model.getValue("/root/main/patinfo/patinfolist/hngnm") ); // 환자 이름
  98. model.setValue( "/root/send/data/sex", model.getValue("/root/main/patinfo/patinfolist/sex") ); // 환자 성별
  99. model.setValue( "/root/send/data/age", model.getValue("/root/main/patinfo/patinfolist/age") ); // 환자 나이
  100. model.refresh();
  101. submit("TRAEA02407");
  102. model.setValue("/root/send/data/wardcd", model.getValue("/root/temp/wardlist/wardcd") );
  103. fChngSrchRoomCd();
  104. model.setValue("/root/send/data/roomcd", model.getValue("/root/temp/wardlist/roomcd") );
  105. model.refresh();
  106. }
  107. ]]>
  108. </script>
  109. <!-- 첫 화면 로딩시 수행되는 이벤트 -->
  110. <script type="javascript" ev:event="xforms-ready">
  111. <![CDATA[
  112. aezfSetSuppDeptcd();
  113. // submit("TRAEB00205", false); // 수행부서 코드 가져오기
  114. // Modal 등의 공통정보를 가져온다. App단에서 그룹코드별 셋팅을 입력해 놓는다.
  115. model.setValue("/root/send/grupcdid","A");
  116. submit("TRAEB05002");
  117. model.setValue("/root/main/goodlist/item/suppdeptcd",parent.model.getValue("/root/temp/suppdeptcd"));
  118. model.setValue("/root/main/goodlist/item/excuroomcd",parent.model.getValue("/root/temp/excuroomcd"));
  119. model.setValue("/root/main/goodlist/item/goodid",parent.model.getValue("/root/temp/goodid"));
  120. model.setValue("/root/main/goodlist/item/goodnm",parent.model.getValue("/root/temp/goodnm"));
  121. model.setValue("/root/main/goodlist/item/goodspec",parent.model.getValue("/root/temp/goodspec"));
  122. model.setValue("/root/main/goodlist/item/goodmodel",parent.model.getValue("/root/temp/goodmodel"));
  123. model.setValue("/root/main/goodlist/item/ipaddress",parent.model.getValue("/root/temp/ipaddress"));
  124. model.setValue("/root/main/goodlist/item/aetitle",parent.model.getValue("/root/temp/aetitle"));
  125. model.setValue("/root/main/goodlist/item/netgate",parent.model.getValue("/root/temp/netgate"));
  126. model.setValue("/root/main/goodlist/item/workgate",parent.model.getValue("/root/temp/workgate"));
  127. model.setValue("/root/main/goodlist/item/modality",parent.model.getValue("/root/temp/modality"));
  128. model.setValue("/root/main/goodlist/item/installplace",parent.model.getValue("/root/temp/installplace"));
  129. model.setValue("/root/main/goodlist/item/mngtdeptcd",parent.model.getValue("/root/temp/mngtdeptcd"));
  130. model.setValue("/root/main/goodlist/item/mngtcntctel",parent.model.getValue("/root/temp/mngtcntctel"));
  131. model.setValue("/root/main/goodlist/item/suplcntctel",parent.model.getValue("/root/temp/suplcntctel"));
  132. model.setValue("/root/main/goodlist/item/useyn",parent.model.getValue("/root/temp/useyn"));
  133. model.setValue("/root/main/goodlist/item/fixasetcd",parent.model.getValue("/root/temp/fixasetcd"));
  134. model.setValue("/root/main/goodlist/item/cmt",parent.model.getValue("/root/temp/cmt"));
  135. //검사/치료실 가져오기
  136. model.setValue("/root/send/globalinstance/instance1", parent.model.getValue("/root/temp/suppdeptcd") );
  137. submit("TRAEA00902", false);
  138. model.refresh();
  139. model.setFocus("ipt_goodnm"); // 장비명
  140. ]]>
  141. </script>
  142. <submission id="TRAEB05001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/goodlist"/>
  143. <submission id="TRAEB00205" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/globalinstance" replace="instance" resultref="/root/init/dept_info"/>
  144. <!-- Modal, netgate, workgate 등의 공통정보를 가져온다 -->
  145. <submission id="TRAEB05002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/cmb_info"/>
  146. <!-- 부서 -->
  147. <submission id="submission1" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/globalinstance" replace="instance" resultref="/root/init/dept_info"/>
  148. <submission id="TRAEA00902" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/cmb_info/excuroomcdlist"/>
  149. </model>
  150. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  151. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  152. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  153. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  154. <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
  155. </xhtml:head>
  156. <xhtml:body pagewidth="525" pageheight="350" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  157. <group id="grp_biz" scroll="auto" style="left:5px; top:5px; width:500px; height:310px; ">
  158. <caption id="caption13" class="cell_1" style="left:0px; top:48px; width:59px; height:23px; vertical-align:middle; ">장비ID</caption>
  159. <caption id="caption1" class="tit_2" style="left:5px; top:2px; width:470px; height:13px; ">장비등록</caption>
  160. <line id="line1" class="line_1" style="x1:0px; y1:17px; x2:500px; y2:17px; "/>
  161. <caption id="caption2" class="cell_1" style="left:0px; top:101px; width:59px; height:23px; vertical-align:middle; ">규격</caption>
  162. <caption id="caption3" class="cell_1" style="left:0px; top:126px; width:59px; height:23px; vertical-align:middle; ">AETitle</caption>
  163. <caption id="caption4" class="cell_1" style="left:0px; top:75px; width:59px; height:23px; vertical-align:middle; ">모델명</caption>
  164. <caption id="caption5" class="cell_1" style="left:285px; top:75px; width:59px; height:23px; vertical-align:middle; ">Modality</caption>
  165. <caption id="caption6" class="cell_1" style="left:245px; top:125px; width:59px; height:23px; vertical-align:middle; ">IP</caption>
  166. <caption id="caption7" class="cell_1" style="left:0px; top:229px; width:79px; height:23px; vertical-align:middle; ">공급자연락처</caption>
  167. <caption id="caption8" class="cell_1" style="left:0px; top:203px; width:59px; height:23px; vertical-align:middle; ">관리부서</caption>
  168. <caption id="caption9" class="cell_1" style="left:0px; top:255px; width:59px; height:23px; vertical-align:middle; ">자산번호</caption>
  169. <line id="line5" class="line_2" style="x1:0px; y1:125px; x2:499px; y2:125px; "/>
  170. <line id="line6" class="line_2" style="x1:0px; y1:150px; x2:499px; y2:150px; "/>
  171. <line id="line7" class="line_2" style="x1:0px; y1:99px; x2:499px; y2:99px; "/>
  172. <line id="line8" class="line_2" style="x1:0px; y1:202px; x2:499px; y2:202px; "/>
  173. <line id="line9" class="line_2" style="x1:0px; y1:228px; x2:499px; y2:228px; "/>
  174. <line id="line10" class="line_2" style="x1:0px; y1:254px; x2:499px; y2:254px; "/>
  175. <!-- 장비ID -->
  176. <input id="ipt_goodid" ref="/root/main/goodlist/item/goodid" disabled="true" editable="false" style="left:62px; top:49px; width:88px; height:19px; "/>
  177. <!-- 장비명-->
  178. <input id="ipt_goodnm" ref="/root/main/goodlist/item/goodnm" class="input_search" style="left:220px; top:49px; width:265px; height:19px; "/>
  179. <!-- 모델명 -->
  180. <input id="ipt_goodmodel" ref="/root/main/goodlist/item/goodmodel" class="input_search" maxlength="500" style="left:62px; top:75px; width:210px; height:19px; "/>
  181. <!-- modality -->
  182. <!-- 규격 -->
  183. <input id="ipt_goodspec" ref="/root/main/goodlist/item/goodspec" class="input_search" maxlength="500" style="left:62px; top:100px; width:380px; height:19px; "/>
  184. <!-- aetitle-->
  185. <input id="ipt_aetitle" ref="/root/main/goodlist/item/aetitle" class="input_search" maxlength="500" style="left:62px; top:128px; width:153px; height:19px; "/>
  186. <!-- ip address -->
  187. <input id="ipt_ipaddress" ref="/root/main/goodlist/item/ipaddress" class="input_search" maxlength="500" style="left:307px; top:127px; width:143px; height:19px; "/>
  188. <input id="ipt_installplace" ref="/root/main/goodlist/item/installplace" class="input_search" maxlength="30" style="left:62px; top:180px; width:380px; height:19px; "/>
  189. <!-- 관리부서 -->
  190. <!-- 관리연락처 -->
  191. <input id="ipt_mngcntctel" ref="/root/main/goodlist/item/mngtcntctel" class="input_search" maxlength="10" style="left:327px; top:205px; width:155px; height:19px; "/>
  192. <!-- 패스워드 -->
  193. <caption id="caption15" class="cell_1" style="left:0px; top:280px; width:60px; height:25px; vertical-align:middle; ">비고</caption>
  194. <caption id="caption10" class="cell_1" style="left:160px; top:48px; width:59px; height:23px; vertical-align:middle; ">장비명</caption>
  195. <caption id="caption12" class="cell_1" style="left:245px; top:150px; width:60px; height:23px; vertical-align:middle; ">WorkGate</caption>
  196. <caption id="caption16" class="cell_1" style="left:0px; top:150px; width:59px; height:23px; vertical-align:middle; ">NetGate</caption>
  197. <caption id="caption14" class="cell_1" style="left:0px; top:175px; width:59px; height:23px; vertical-align:middle; ">설치장소</caption>
  198. <input id="ipt_suplcntctel" ref="/root/main/goodlist/item/suplcntctel" class="input_search" maxlength="30" style="left:82px; top:230px; width:185px; height:19px; "/>
  199. <input id="ipt_fixasetcd" ref="/root/main/goodlist/item/fixasetcd" class="input_search" maxlength="30" style="left:62px; top:255px; width:148px; height:19px; "/>
  200. <caption id="caption17" class="cell_1" style="left:245px; top:255px; width:59px; height:23px; vertical-align:middle; ">사용여부</caption>
  201. <!-- 소견 -->
  202. <textarea id="tar_cmt" ref="/root/main/goodlist/item/cmt" maxlength="300" style="left:63px; top:280px; width:435px; height:23px; "/>
  203. <select1 id="cmb_modality" ref="/root/main/goodlist/item/modality" appearance="minimal" style="left:345px; top:75px; width:125px; height:19px; ">
  204. <choices>
  205. <itemset nodeset="/root/init/cmb_info/initmodal">
  206. <label ref="cdnm"/>
  207. <value ref="cdid"/>
  208. </itemset>
  209. </choices>
  210. </select1>
  211. <select1 id="cmb_useyn" ref="/root/main/goodlist/item/useyn" appearance="minimal" style="left:305px; top:255px; width:85px; height:19px; ">
  212. <choices>
  213. <item>
  214. <label>Y</label>
  215. <value>Y</value>
  216. </item>
  217. <item>
  218. <label>N</label>
  219. <value>N</value>
  220. </item>
  221. </choices>
  222. </select1>
  223. <select1 id="cmb_mngtdeptcd" ref="/root/main/goodlist/item/mngtdeptcd" appearance="minimal" style="left:62px; top:205px; width:155px; height:19px; ">
  224. <choices>
  225. <itemset nodeset="/root/init/cmb_info/suppdept">
  226. <label ref="suppdeptnm"/>
  227. <value ref="suppdeptcd"/>
  228. </itemset>
  229. </choices>
  230. </select1>
  231. <select1 id="cmb_netgate" ref="/root/main/goodlist/item/netgate" appearance="minimal" style="left:62px; top:152px; width:155px; height:19px; ">
  232. <choices>
  233. <itemset nodeset="/root/init/cmb_info/initnetg">
  234. <label ref="cdnm"/>
  235. <value ref="cdid"/>
  236. </itemset>
  237. </choices>
  238. </select1>
  239. <select1 id="cmb_workgate" ref="/root/main/goodlist/item/workgate" appearance="minimal" style="left:307px; top:152px; width:145px; height:19px; ">
  240. <choices>
  241. <itemset nodeset="/root/init/cmb_info/initworkg">
  242. <label ref="cdnm"/>
  243. <value ref="cdid"/>
  244. </itemset>
  245. </choices>
  246. </select1>
  247. <line id="line11" class="line_2" style="x1:0px; y1:275px; x2:499px; y2:275px; "/>
  248. <caption id="caption18" class="cell_1" style="left:0px; top:20px; width:59px; height:23px; vertical-align:middle; ">지원부서</caption>
  249. <select1 id="combo1" ref="/root/main/goodlist/item/suppdeptcd" appearance="minimal" style="left:62px; top:22px; width:155px; height:19px; ">
  250. <choices>
  251. <itemset nodeset="/root/init/cmb_info/suppdept">
  252. <label ref="suppdeptnm"/>
  253. <value ref="suppdeptcd"/>
  254. </itemset>
  255. </choices>
  256. <script type="javascript" ev:event="xforms-value-changed">
  257. <![CDATA[
  258. model.setValue("/root/send/globalinstance/instance1", model.getValue("/root/main/goodlist/item/suppdeptcd"));
  259. submit("TRAEA00902", false);
  260. model.refresh();
  261. ]]>
  262. </script>
  263. </select1>
  264. <caption id="caption19" class="cell_1" style="left:245px; top:20px; width:73px; height:23px; vertical-align:middle; ">검사/치료실</caption>
  265. <select1 id="combo2" ref="/root/main/goodlist/item/excuroomcd" appearance="minimal" style="left:320px; top:22px; width:120px; height:19px; ">
  266. <choices>
  267. <itemset nodeset="/root/init/cmb_info/excuroomcdlist/excuroom">
  268. <label ref="basecdflagdesc"/>
  269. <value ref="basecd"/>
  270. </itemset>
  271. </choices>
  272. </select1>
  273. </group>
  274. <line id="line3" class="line_2" style="x1:5px; y1:50px; x2:504px; y2:50px; "/>
  275. <line id="line2" class="line_2" style="x1:5px; y1:78px; x2:504px; y2:78px; "/>
  276. <line id="line4" class="line_2" style="x1:5px; y1:180px; x2:504px; y2:180px; "/>
  277. <!--caption id="caption10" style="left:168px; top:24px; width:90px; height:20px; vertical-align:middle; ">예] 2007-10-29</caption-->
  278. <caption id="caption11" class="cell_1" style="left:250px; top:210px; width:79px; height:23px; vertical-align:middle; ">관리자연락처</caption>
  279. <group id="grp_btn" scroll="auto" style="left:8px; top:310px; width:497px; height:30px; ">
  280. <button id="btn_rgst" class="btn4_letter2" style="left:384px; top:5px; width:56px; height:22px; ">
  281. <caption>확인</caption>
  282. <script type="javascript" ev:event="DOMActivate">
  283. <![CDATA[
  284. //if ( messageBox("" , "Q002") == 6 ) { // 등록여부 확인
  285. var _goodnm = model.getValue("/root/main/goodlist/item/goodnm");
  286. var _ipaddress = model.getValue("/root/main/goodlist/item/ipaddress");
  287. var _modality = model.getValue("/root/main/goodlist/item/modality");
  288. var _goodspec = model.getValue("/root/main/goodlist/item/goodspec");
  289. var _goodmodel = model.getValue("/root/main/goodlist/item/goodmodel");
  290. var _msg = "";
  291. if ( _goodnm == "") {
  292. _msg += "장비명";
  293. }
  294. if ( _ipaddress == "") {
  295. _msg += "IP Address";
  296. }
  297. if ( _modality== "") {
  298. _msg += "Modality";
  299. }
  300. if ( _msg != "" ) {
  301. messageBox("입력하신 내용 중 " + _msg + "에 대한 내용이 빠져있거나 잘못되었습니다. 확인해 주십시오.", "I999");
  302. return true;
  303. }
  304. opener.model.setValue("/root/temp/suppdeptcd", model.getValue("/root/main/goodlist/item/suppdeptcd"));
  305. opener.model.setValue("/root/temp/excuroomcd", model.getValue("/root/main/goodlist/item/excuroomcd"));
  306. opener.model.setValue("/root/temp/goodid", model.getValue("/root/main/goodlist/item/goodid"));
  307. opener.model.setValue("/root/temp/goodnm", model.getValue("/root/main/goodlist/item/goodnm"));
  308. opener.model.setValue("/root/temp/goodspec", model.getValue("/root/main/goodlist/item/goodspec"));
  309. opener.model.setValue("/root/temp/goodmodel", model.getValue("/root/main/goodlist/item/goodmodel"));
  310. opener.model.setValue("/root/temp/ipaddress", model.getValue("/root/main/goodlist/item/ipaddress"));
  311. opener.model.setValue("/root/temp/netgate", model.getValue("/root/main/goodlist/item/netgate"));
  312. opener.model.setValue("/root/temp/workgate", model.getValue("/root/main/goodlist/item/workgate"));
  313. opener.model.setValue("/root/temp/modality", model.getValue("/root/main/goodlist/item/modality"));
  314. opener.model.setValue("/root/temp/installplace", model.getValue("/root/main/goodlist/item/installplace"));
  315. opener.model.setValue("/root/temp/mngtdeptcd", model.getValue("/root/main/goodlist/item/mngtdeptcd"));
  316. opener.model.setValue("/root/temp/mngtcntctel", model.getValue("/root/main/goodlist/item/mngtcntctel"));
  317. opener.model.setValue("/root/temp/suplcntctel", model.getValue("/root/main/goodlist/item/suplcntctel"));
  318. opener.model.setValue("/root/temp/useyn", model.getValue("/root/main/goodlist/item/useyn"));
  319. opener.model.setValue("/root/temp/cmt", model.getValue("/root/main/goodlist/item/cmt"));
  320. opener.model.setValue("/root/temp/fixasetcd", model.getValue("/root/main/goodlist/item/fixasetcd"));
  321. window.close();
  322. // }
  323. ]]>
  324. </script>
  325. </button>
  326. <button id="button2" class="btn4_letter2" style="left:440px; top:5px; width:56px; height:22px; ">
  327. <caption>취소</caption>
  328. <script type="javascript" ev:event="DOMActivate">
  329. <![CDATA[
  330. window.close();
  331. ]]>
  332. </script>
  333. </button>
  334. </group>
  335. </xhtml:body>
  336. </xhtml:html>