SPMMO09000_입원예약조회.xrw 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544
  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. <year/>
  12. <month/>
  13. <orddeptcd/>
  14. <orddrid/>
  15. <pid/>
  16. <hngnm/>
  17. <fromdd/>
  18. <todd/>
  19. <prid/>
  20. <orddeptnm/>
  21. <orddridnm/>
  22. <assgward/>
  23. <assgwardnm/>
  24. <patgrade/>
  25. <inflag/>
  26. <erreglyn/>
  27. <statflag>A</statflag>
  28. <bedkind/>
  29. </cond>
  30. <inreqhistinfo>
  31. <inreqhistlist>
  32. <inrsrvstat/>
  33. <pid/>
  34. <hngnm/>
  35. <hngnm2/>
  36. <dispnm1/>
  37. <dispnm2/>
  38. <sa/>
  39. <inhopedd/>
  40. <orddeptcd/>
  41. <orddrid/>
  42. <usernm/>
  43. <erreglyn/>
  44. <cpyn/>
  45. <termengnm/>
  46. <opengnm/>
  47. <inrsrvrem/>
  48. <drrem/>
  49. <inrsrvacptdd/>
  50. <assgroom/>
  51. <patgrade/>
  52. <bedkind/>
  53. <inrsrvacpttm/>
  54. </inreqhistlist>
  55. </inreqhistinfo>
  56. <inreqdiaglist>
  57. <inreqdiaglist>
  58. <diagengnm/>
  59. <opengnm/>
  60. </inreqdiaglist>
  61. </inreqdiaglist>
  62. </main>
  63. <send>
  64. <reqdata/>
  65. <savedata/>
  66. </send>
  67. <hidden/>
  68. <init>
  69. <userlist/>
  70. <orddept/>
  71. <P0017/>
  72. <P0039/>
  73. <erreglyn/>
  74. <warddept/>
  75. <patgrade/>
  76. <bedkind/>
  77. </init>
  78. </root>
  79. </instance>
  80. <script type="javascript" ev:event="xforms-ready">
  81. <![CDATA[
  82. fInitialize_SPMMO09000();
  83. ]]>
  84. </script>
  85. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  86. <submission id="TRMMO09001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/inreqhistinfo"/>
  87. <submission id="TRMMO04105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/patnm"/>
  88. <submission id="TRMMO09002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/inreqdiaglist"/>
  89. <script type="javascript" ev:event="xforms-model-construct-done">
  90. <![CDATA[
  91. group1.visible = false;
  92. ]]>
  93. </script>
  94. <submission id="TRMMB04101" mediatype="application/x-www-form-urlencoded" method="post"/>
  95. <submission id="TRMMB04102" mediatype="application/x-www-form-urlencoded" method="post"/>
  96. <submission id="TRMMB04105" mediatype="application/x-www-form-urlencoded" method="post"/>
  97. </model>
  98. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  99. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  100. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  101. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  102. <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
  103. <script type="javascript" src="../../../com/userdeptinfoweb/js/ZSU001.js"/>
  104. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  105. <script type="javascript" src="../../../emr/prcpmngtweb/js/SPMMO09000.js"/>
  106. </xhtml:head>
  107. <xhtml:body guideline="1,1194;2,784;2,130;" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
  108. <caption id="cpt_title" class="tit_1" style="left:0px; top:0px; width:151px; height:14px; ">입원의뢰서 조회</caption>
  109. <caption id="caption22" class="tit_2" style="left:0px; top:109px; width:120px; height:13px; ">입원의뢰서 내역</caption>
  110. <shape id="roundrect5" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:16px; width:1194px; height:89px; background-color:#fffbf2; border-color:#ffd799; "/>
  111. <caption id="caption5" class="search_name" style="left:5px; top:24px; width:117px; height:17px; ">입원예약기간 :</caption>
  112. <line id="line1" class="line_1" style="x1:0px; y1:125px; x2:1194px; y2:125px; "/>
  113. <caption id="caption26" class="search_name" style="left:407px; top:24px; width:118px; height:17px; ">진 료 과 :</caption>
  114. <select1 id="cmb_orddept" ref="/root/main/cond/orddeptcd" class="combo_default" appearance="minimal" editmode="search" style="left:498px; top:24px; width:149px; height:19px; ">
  115. <choices>
  116. <itemset nodeset="/root/init/orddept/dept">
  117. <label ref="depthngnm"/>
  118. <value ref="deptcd"/>
  119. </itemset>
  120. </choices>
  121. <script type="javascript" ev:event="xforms-value-changed">
  122. <![CDATA[
  123. var orddeptcd = model.getValue("/root/main/cond/orddeptcd");
  124. var pid = model.getValue("/root/main/cond/pid");
  125. if(orddeptcd == "-"){
  126. model.removeNode("/root/init/userlist");
  127. model.makeValue("/root/init/userlist/usercombo/userid", "-");
  128. model.makeValue("/root/init/userlist/usercombo/usernm", "전체");
  129. }else{
  130. mmbfGetUserComboList("/root/send/reqdata", "/root/init/userlist" , cmb_orddept.value, "0330", "", "M", "", "", "P"); //진료과 의사콤보 조회
  131. addComboInstance("/root/init/userlist", "userid^usernm", "-^전체", "usercombo"); //의사콤보 전체항목 추가
  132. }
  133. model.setValue("/root/main/cond/orddrid", "-");
  134. if(orddeptcd == "-"){
  135. if (pid =="") {
  136. messageBox("환자번호를", "C001")
  137. } else {
  138. fReqInReqHist(); // 입원결정서 조회
  139. }
  140. } else {
  141. fReqInReqHist(); // 입원결정서 조회
  142. }
  143. model.refresh();
  144. ]]>
  145. </script>
  146. </select1>
  147. <caption id="caption1" class="search_name" style="left:652px; top:24px; width:98px; height:17px; ">전 문 의 :</caption>
  148. <caption id="caption30" class="search_name" style="left:824px; top:24px; width:90px; height:17px; ">등록번호 :</caption>
  149. <button id="btn_prcpclsnm" class="icon_search" style="left:1049px; top:26px; width:16px; height:16px; ">
  150. <caption/>
  151. <script type="javascript" ev:event="DOMActivate">
  152. <![CDATA[
  153. modal("SPPMC02500");
  154. var sPid = model.getValue("/root/main/patinfo/patinfolist/pid");
  155. var sHngnm = model.getValue("/root/main/patinfo/patinfolist/hngnm");
  156. model.setValue("/root/main/cond/pid", sPid);
  157. model.setValue("/root/main/cond/hngnm", sHngnm);
  158. model.refresh();
  159. ]]>
  160. </script>
  161. </button>
  162. <input id="ipt_hngnm" ref="/root/main/cond/hngnm" class="input_search" disabled="true" style="left:985px; top:24px; width:59px; height:19px; "/>
  163. <caption id="caption6" class="search_name" style="left:824px; top:55px; width:90px; height:17px; ">종 류 :</caption>
  164. <select1 id="rdo_statflag" ref="/root/main/cond/statflag" appearance="full" cellspacing="0" cols="4" rows="2" overflow="visible" style="left:912px; top:51px; width:208px; height:34px; border-style:none; ">
  165. <choices>
  166. <item>
  167. <label>전체</label>
  168. <value>-</value>
  169. </item>
  170. <item>
  171. <label>예약+결정</label>
  172. <value>A</value>
  173. </item>
  174. <item>
  175. <label>예약</label>
  176. <value>T</value>
  177. </item>
  178. <item>
  179. <label>결정</label>
  180. <value>S</value>
  181. </item>
  182. <item>
  183. <label>부도</label>
  184. <value>D</value>
  185. </item>
  186. <item>
  187. <label>부도이력</label>
  188. <value>H</value>
  189. </item>
  190. </choices>
  191. <script type="javascript" ev:event="xforms-value-changed">
  192. <![CDATA[
  193. inputEnterKey("btn_req", "DOMActivate");
  194. ]]>
  195. </script>
  196. </select1>
  197. <button id="btn_reqpatnm" disabled="true" style="left:1135px; top:60px; width:45px; height:20px; ">
  198. <caption/>
  199. <script type="javascript" ev:event="DOMActivate">
  200. <![CDATA[
  201. var pid = model.getValue("/root/main/cond/pid");
  202. if(pid == ""){
  203. return;
  204. }
  205. if(reqPatInfo("pid", "ptbs", pid)==true){
  206. var hngnm = model.getValue("/root/init/patnm/patnm/hngnm");
  207. model.setValue("/root/main/cond/hngnm", hngnm);
  208. }
  209. fReqInReqHist(); // 입원결정서 조회
  210. model.refresh();
  211. ]]>
  212. </script>
  213. </button>
  214. <input id="ipt_pid" ref="/root/main/cond/pid" class="input_search" imemode="disabled" maxlength="10" style="left:912px; top:24px; width:70px; height:19px; ">
  215. <script type="javascript" ev:event="onkeypress">
  216. <![CDATA[
  217. inputEnterKey("btn_reqpatnm", "DOMActivate");
  218. ]]>
  219. </script>
  220. <script type="javascript" ev:event="onclick">
  221. <![CDATA[
  222. model.setValue("/root/main/cond/pid", "");
  223. model.setValue("/root/main/cond/hngnm", "");
  224. model.refresh();
  225. ]]>
  226. </script>
  227. </input>
  228. <line id="line3" style="x1:1123px; y1:24px; x2:1123px; y2:84px; border-color:#ffe4bb; border-left-style:solid; "/>
  229. <datagrid id="grd_inreqhistlist" nodeset="/root/main/inreqhistinfo/inreqhistlist" autoresize="true" caption="종류^입원상태^등록번호^성명(표시명)^입원순위^배정순위^S/A^결정일시^발행일^발행시간^입원예정일^진료과^전문의^orddrid^협진팀명^입원경로^CP^진단명^수술예정일^수술명^의료진참고사항^내원일시^병동^병실^병상^원무참고사항^연락처^병상정보^취소사유^취소상세내용" colsep="^" colwidth="34, 55, 60, 80, 60, 60, 40, 110, 0, 0, 75, 110, 60, 0, 60, 140, 35, 170, 75, 152, 144, 100, 80, 55, 50, 172, 100, 134, 60, 200" ellipsis="true" explorerbar="sort" frozencols="7" mergecellsfixedrows="bycolrec" rowsep="|" tooltip="true" style="left:0px; top:124px; width:1194px; height:660px; text-align:center; ">
  230. <col disabled="true" ref="inrsrvstat" type="output"/>
  231. <col ref="inflag"/>
  232. <col ref="pid"/>
  233. <col ref="dispnm2"/>
  234. <col disabled="true" ref="patgrade" type="combo" style="text-align:left; ">
  235. <choices>
  236. <itemset nodeset="/root/init/patgrade/M0700">
  237. <label ref="cdnm"/>
  238. <value ref="cdid"/>
  239. </itemset>
  240. </choices>
  241. </col>
  242. <col ref="sortno"/>
  243. <col ref="sa"/>
  244. <col ref="assgdt" format="yyyy-mm-dd hh:nn"/>
  245. <col ref="inrsrvacptdd" format="yyyy-mm-dd"/>
  246. <col ref="inrsrvacpttm" format="hh:nn"/>
  247. <col ref="inhopedd" format="yyyy-mm-dd"/>
  248. <col disabled="true" ref="orddeptcd" type="output" style="text-align:left; "/>
  249. <col ref="usernm" style="left:569px; top:23px; width:60px; height:23px; "/>
  250. <col ref="orddrid"/>
  251. <col ref="coopteam" style="text-align:left; "/>
  252. <col disabled="true" ref="erreglyn" type="output" style="text-align:left; "/>
  253. <col ref="cpyn"/>
  254. <col ref="termengnm" style="text-align:left; word-wrap:word; "/>
  255. <col ref="scheopdd"/>
  256. <col ref="opengnm" style="text-align:left; "/>
  257. <col ref="drrem" style="text-align:left; "/>
  258. <col ref="inddtm" format="yyyy-mm-dd hh:nn"/>
  259. <col ref="assgwardnm"/>
  260. <col ref="assgroom"/>
  261. <col ref="assgbednm"/>
  262. <col ref="inrsrvrem" style="text-align:left; "/>
  263. <col ref="mpphontel" style="text-align:left; "/>
  264. <col disabled="true" ref="bedkind"/>
  265. <col disabled="true" ref="inrsrvcnclresnnm"/>
  266. <col disabled="true" ref="inrsrvcnclresnrem" style="text-align:left; "/>
  267. <!--script type="javascript" ev:event="onclick">
  268. <![CDATA[
  269. if(isDataCell()){
  270. fReqInReqDiagOpList();
  271. fClkInReqGrid();
  272. }
  273. ]]>
  274. </script-->
  275. <script type="javascript" ev:event="ondblclick">
  276. <![CDATA[
  277. if(isDataCell()){
  278. fDbClkInReqGrid();
  279. }
  280. ]]>
  281. </script>
  282. </datagrid>
  283. <group id="group1" disabled="false" visibility="hidden" style="left:600px; top:200px; width:314px; height:295px; background-color:#99ccff; border-color:#3366ff; border-style:solid; ">
  284. <button id="btn_cncl" class="btn2_letter2" style="left:269px; top:272px; width:42px; height:19px; ">
  285. <caption>닫기</caption>
  286. <script type="javascript" ev:event="DOMActivate">
  287. <![CDATA[
  288. group1.visible = false;
  289. ]]>
  290. </script>
  291. </button>
  292. <datagrid id="grd_inreqdiaglist" nodeset="/root/main/inreqdiaglist/inreqdiaglist" caption="진단명^수술명" colsep="^" colwidth="156, 153" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:1px; width:312px; height:270px; word-wrap:word; ">
  293. <col ref="diagengnm"/>
  294. <col ref="opengnm"/>
  295. </datagrid>
  296. </group>
  297. <button id="btn_req" class="btn1_letter2" style="left:1132px; top:45px; width:56px; height:22px; ">
  298. <caption>조회</caption>
  299. <script type="javascript" ev:event="DOMActivate">
  300. <![CDATA[
  301. fReqInReqHist();
  302. model.setValue("/root/main/cond/orddeptnm",cmb_orddept.label);
  303. model.setValue("/root/main/cond/orddridnm",cmb_orddrid.label);
  304. ]]>
  305. </script>
  306. </button>
  307. <select1 id="cmb_orddrid" ref="/root/main/cond/orddrid" class="combo_default" appearance="minimal" editmode="search" style="left:739px; top:24px; width:73px; height:19px; ">
  308. <choices>
  309. <itemset nodeset="/root/init/userlist/usercombo">
  310. <label ref="usernm"/>
  311. <value ref="userid"/>
  312. </itemset>
  313. </choices>
  314. </select1>
  315. <input id="input1" ref="/root/main/cond/fromdd" inputtype="date" style="left:135px; top:24px; width:85px; height:19px; text-align:center; ">
  316. <script type="javascript" ev:event="xforms-value-changed">
  317. <![CDATA[
  318. model.setValue("/root/main/cond/prid", "");
  319. model.refresh();
  320. ]]>
  321. </script>
  322. </input>
  323. <input id="input2" ref="/root/main/cond/todd" inputtype="date" style="left:236px; top:24px; width:85px; height:19px; text-align:center; ">
  324. <script type="javascript" ev:event="xforms-value-changed">
  325. <![CDATA[
  326. model.setValue("/root/main/cond/prid", "");
  327. model.refresh();
  328. ]]>
  329. </script>
  330. </input>
  331. <caption id="caption2" style="left:228px; top:24px; width:20px; height:20px; ">~</caption>
  332. <button id="button1" class="icon_pre" style="left:120px; top:24px; width:13px; height:15px; ">
  333. <caption/>
  334. <script type="javascript" ev:event="DOMActivate">
  335. <![CDATA[
  336. var fromdd = model.getValue("/root/main/cond/fromdd");
  337. var todd = model.getValue("/root/main/cond/todd");
  338. model.setValue("/root/main/cond/fromdd", ((fromdd.toDate()).getAddDate(-7)).getDateFormat());
  339. model.setValue("/root/main/cond/todd", ((todd.toDate()).getAddDate(-7)).getDateFormat());
  340. model.refresh();
  341. ]]>
  342. </script>
  343. </button>
  344. <button id="button2" class="icon_next" style="left:324px; top:24px; width:13px; height:15px; ">
  345. <caption/>
  346. <script type="javascript" ev:event="DOMActivate">
  347. <![CDATA[
  348. var fromdd = model.getValue("/root/main/cond/fromdd");
  349. var todd = model.getValue("/root/main/cond/todd");
  350. model.setValue("/root/main/cond/fromdd", ((fromdd.toDate()).getAddDate(7)).getDateFormat());
  351. model.setValue("/root/main/cond/todd", ((todd.toDate()).getAddDate(7)).getDateFormat());
  352. model.refresh();
  353. ]]>
  354. </script>
  355. </button>
  356. <select1 id="cmb_prid" ref="/root/main/cond/prid" appearance="minimal" style="left:345px; top:24px; width:55px; height:19px; ">
  357. <choices>
  358. <item>
  359. <label>1개월</label>
  360. <value>1M</value>
  361. </item>
  362. <item>
  363. <label>3개월</label>
  364. <value>3M</value>
  365. </item>
  366. <item>
  367. <label>6개월</label>
  368. <value>6M</value>
  369. </item>
  370. <item>
  371. <label>9개월</label>
  372. <value>9M</value>
  373. </item>
  374. <item>
  375. <label>1년</label>
  376. <value>1Y</value>
  377. </item>
  378. </choices>
  379. <script type="javascript" ev:event="xforms-value-changed">
  380. <![CDATA[
  381. var today = getCurrentDate();
  382. var idate = new Date();
  383. var prid = model.getValue("/root/main/cond/prid");
  384. // model.makeValue("/root/send/cond/fromdd", peveDate.getDateFormat());
  385. // model.makeValue("/root/send/cond/todd", today);
  386. if (prid =="1M") {
  387. var threeMDate = idate.getAddDate(1, "M");
  388. model.setValue("/root/main/cond/fromdd", today);
  389. model.setValue("/root/main/cond/todd", threeMDate.getDateFormat());
  390. } else if (prid =="3M") {
  391. var sixMDate = idate.getAddDate(3, "M");
  392. model.setValue("/root/main/cond/fromdd", today);
  393. model.setValue("/root/main/cond/todd", sixMDate.getDateFormat());
  394. } else if (prid =="6M") {
  395. var nineMDate = idate.getAddDate(6, "M");
  396. model.setValue("/root/main/cond/fromdd", today);
  397. model.setValue("/root/main/cond/todd", nineMDate.getDateFormat());
  398. } else if (prid =="9M") {
  399. var oneYDate = idate.getAddDate(9, "M");
  400. model.setValue("/root/main/cond/fromdd", today);
  401. model.setValue("/root/main/cond/todd", oneYDate.getDateFormat());
  402. } else if (prid =="1Y") {
  403. var twoYDate = idate.getAddDate(1, "Y");
  404. model.setValue("/root/main/cond/fromdd", today);
  405. model.setValue("/root/main/cond/todd", twoYDate.getDateFormat());
  406. }
  407. model.refresh();
  408. ]]>
  409. </script>
  410. </select1>
  411. <caption id="caption3" class="search_name" style="left:5px; top:55px; width:98px; height:17px; ">병 동 :</caption>
  412. <select1 id="cmd_assgward" ref="/root/main/cond/assgward" class="combo_default" appearance="minimal" style="left:95px; top:55px; width:120px; height:19px; ">
  413. <choices>
  414. <itemset nodeset="/root/init/warddept/dept">
  415. <label ref="depthngnm"/>
  416. <value ref="deptcd"/>
  417. </itemset>
  418. </choices>
  419. <script type="javascript" ev:event="xforms-value-changed">
  420. <![CDATA[
  421. fReqInReqHist(); // 입원결정서 조회
  422. model.refresh();
  423. ]]>
  424. </script>
  425. </select1>
  426. <button id="button3" class="btn2_letter4" style="left:1128px; top:105px; width:64px; height:19px; ">
  427. <caption>엑셀저장</caption>
  428. <script type="javascript" ev:event="onclick">
  429. <![CDATA[
  430. //엑셀저장
  431. var fileName = window.fileDialog("save", ",", false, "입원의뢰서내역", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  432. if (fileName != ""){
  433. grd_inreqhistlist.saveExcel(fileName, "SheetName", true, true, "", "", true);
  434. }
  435. ]]>
  436. </script>
  437. </button>
  438. <button id="button4" class="btn2_letter2" style="left:1075px; top:105px; width:42px; height:19px; ">
  439. <caption>출력</caption>
  440. <script type="javascript" ev:event="onclick">
  441. <![CDATA[
  442. //진료과 , 진료의 label출력
  443. model.setValue("/root/main/cond/orddeptnm",cmb_orddept.label);
  444. model.setValue("/root/main/cond/assgwardnm",cmd_assgward.label);
  445. if (cmb_orddrid.label == "") {
  446. model.setValue("/root/main/cond/orddridnm","전체");
  447. } else {
  448. model.setValue("/root/main/cond/orddridnm",cmb_orddrid.label);
  449. }
  450. //출력
  451. var rptid = "RPMMO09001";
  452. exeReportPreview(rptid, "XMLSTR");
  453. ]]>
  454. </script>
  455. </button>
  456. <select1 id="combo1" ref="/root/main/cond/patgrade" class="combo_default" appearance="minimal" editmode="search" style="left:320px; top:55px; width:80px; height:19px; ">
  457. <choices>
  458. <itemset nodeset="/root/init/patgrade/M0700">
  459. <label ref="cdid"/>
  460. <value ref="cdid"/>
  461. </itemset>
  462. </choices>
  463. </select1>
  464. <caption id="caption4" class="search_name" style="left:225px; top:55px; width:98px; height:17px; ">환자등급 :</caption>
  465. <caption id="caption7" class="search_name" style="left:407px; top:55px; width:118px; height:17px; ">입원경로 :</caption>
  466. <caption id="caption8" class="search_name" style="left:652px; top:55px; width:118px; height:17px; ">입원상태 :</caption>
  467. <select1 id="cmd_inflag" ref="/root/main/cond/inflag" appearance="minimal" style="left:739px; top:55px; width:73px; height:19px; ">
  468. <choices>
  469. <itemset nodeset="/root/init/P0039/P0039">
  470. <label ref="cdnm"/>
  471. <value ref="cdid"/>
  472. </itemset>
  473. </choices>
  474. <script type="javascript" ev:event="xforms-value-changed">
  475. <![CDATA[
  476. var today = getCurrentDate();
  477. var idate = new Date();
  478. var prid = model.getValue("/root/main/cond/prid");
  479. // model.makeValue("/root/send/cond/fromdd", peveDate.getDateFormat());
  480. // model.makeValue("/root/send/cond/todd", today);
  481. if (prid =="1M") {
  482. var threeMDate = idate.getAddDate(1, "M");
  483. model.setValue("/root/main/cond/fromdd", today);
  484. model.setValue("/root/main/cond/todd", threeMDate.getDateFormat());
  485. } else if (prid =="3M") {
  486. var sixMDate = idate.getAddDate(3, "M");
  487. model.setValue("/root/main/cond/fromdd", today);
  488. model.setValue("/root/main/cond/todd", sixMDate.getDateFormat());
  489. } else if (prid =="6M") {
  490. var nineMDate = idate.getAddDate(6, "M");
  491. model.setValue("/root/main/cond/fromdd", today);
  492. model.setValue("/root/main/cond/todd", nineMDate.getDateFormat());
  493. } else if (prid =="9M") {
  494. var oneYDate = idate.getAddDate(9, "M");
  495. model.setValue("/root/main/cond/fromdd", today);
  496. model.setValue("/root/main/cond/todd", oneYDate.getDateFormat());
  497. } else if (prid =="1Y") {
  498. var twoYDate = idate.getAddDate(1, "Y");
  499. model.setValue("/root/main/cond/fromdd", today);
  500. model.setValue("/root/main/cond/todd", twoYDate.getDateFormat());
  501. }
  502. model.refresh();
  503. ]]>
  504. </script>
  505. </select1>
  506. <select1 id="cmd_erreglyn" ref="/root/main/cond/erreglyn" class="combo_default" appearance="minimal" editmode="search" style="left:498px; top:55px; width:149px; height:19px; ">
  507. <choices>
  508. <itemset nodeset="/root/init/erreglyn/hardcd">
  509. <label ref="hardcdnm"/>
  510. <value ref="hardcd"/>
  511. </itemset>
  512. </choices>
  513. </select1>
  514. <caption id="caption9" class="search_name" style="left:5px; top:82px; width:98px; height:17px; ">병상정보 :</caption>
  515. <select1 id="cmd_bedkind" ref="/root/main/cond/bedkind" class="combo_default" appearance="minimal" style="left:95px; top:82px; width:120px; height:19px; ">
  516. <choices>
  517. <itemset nodeset="/root/init/bedkind/M0710">
  518. <label ref="cdnm"/>
  519. <value ref="cdid"/>
  520. </itemset>
  521. </choices>
  522. <script type="javascript" ev:event="xforms-value-changed">
  523. <![CDATA[
  524. fReqInReqHist(); // 입원결정서 조회
  525. model.refresh();
  526. ]]>
  527. </script>
  528. </select1>
  529. </xhtml:body>
  530. </xhtml:html>