SMAEF00100_필름판독대출신청.xrw 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770
  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>판독요청</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <patinfo>
  11. <patinfolist/>
  12. </patinfo>
  13. <filminfo>
  14. <filmlist>
  15. <chk/>
  16. <modality/>
  17. <excuexectodt/>
  18. <fstrgstdt/>
  19. <ioflag/>
  20. <uoedesc/>
  21. <excuroomcd/>
  22. <execprcpstatcd/>
  23. <cnfmdt/>
  24. <deptdrnm/>
  25. <lendapptm/>
  26. <lenddeptcd/>
  27. <lendrid/>
  28. <lendgoal/>
  29. <prntyn/>
  30. <lendyn/>
  31. <pid/>
  32. <hngnm/>
  33. <prcpdd/>
  34. <execprcpuniqno/>
  35. <seq/>
  36. <ordtm/>
  37. </filmlist>
  38. </filminfo>
  39. <savedata>
  40. <savelist>
  41. <pid/>
  42. <prcpdd/>
  43. <execprcpuniqno/>
  44. <lendapptm/>
  45. <lendgoal/>
  46. <modality/>
  47. <lenddeptcd/>
  48. <lendrid/>
  49. <seq/>
  50. </savelist>
  51. </savedata>
  52. </main>
  53. <send>
  54. <data>
  55. <pid/>
  56. <lendapptm/>
  57. <lendgoal/>
  58. <modality/>
  59. <deptengabbr/>
  60. <lenddeptcd/>
  61. <lendrid/>
  62. <srchdate1/>
  63. <deptcd/>
  64. <drid/>
  65. <gb/>
  66. <excuexecfromdd/>
  67. <excuexectodd/>
  68. <prcpgenrflag/>
  69. </data>
  70. </send>
  71. <init>
  72. <cmb_info>
  73. <suppdept>
  74. <suppdeptcd/>
  75. <depthngnm/>
  76. <deptengabbr/>
  77. </suppdept>
  78. </cmb_info>
  79. <baseinfo>
  80. <initexecprcpstatcd/>
  81. <initprcpgenrflagcd/>
  82. </baseinfo>
  83. <cmb_orddept>
  84. <initexecorddept>
  85. <execorddeptcdnm/>
  86. <execorddeptcdid/>
  87. </initexecorddept>
  88. </cmb_orddept>
  89. <cmb_orddr>
  90. <initexecorddr>
  91. <execorddrcdid/>
  92. <execorddrcdnm/>
  93. </initexecorddr>
  94. </cmb_orddr>
  95. </init>
  96. <hidden>
  97. <source>
  98. <hngnm/>
  99. </source>
  100. </hidden>
  101. </root>
  102. </instance>
  103. <script type="javascript">
  104. <![CDATA[
  105. function readfunc(){
  106. if (model.getValue("/root/send/data/gb") == "1"){
  107. if (model.getValue("/root/send/data/pid") == ""){
  108. messageBox("등록번호는 필수 입력항목입니다.", "E999", "");
  109. return;
  110. }
  111. }else{
  112. if (model.getValue("/root/send/data/srchdate1") == ""){
  113. messageBox("진료일자는 필수 입력항목입니다.", "E999", "");
  114. return;
  115. }
  116. if (model.getValue("/root/send/data/deptcd") == ""){
  117. messageBox("진료과는 필수 선택항목입니다.", "E999", "");
  118. return;
  119. }
  120. if (model.getValue("/root/send/data/excuexecfromdd") > model.getValue("/root/send/data/excuexectodd")){
  121. messageBox("조회기간 시작일자는 종료일자 보다 클 수", "I004");
  122. model.setFocus("ipt_fromdd");
  123. return;
  124. }
  125. }
  126. //20150119 kya 색깔 초기화
  127. init();
  128. var sdatetime = getCurrentDateTime();
  129. sdatetime = sdatetime.substr(0, 13);
  130. sdatetime = sdatetime.replace(" ", "");
  131. model.setValue("/root/send/data/lendapptm", sdatetime);
  132. model.removeNodeset("/root/main/filminfo/filmlist");
  133. model.resetInstanceNode("/root/main/savedata/savelist");
  134. btn_rsrv.disabled = true;
  135. btn_cnl.disabled = true;
  136. if (submit("TRAEF00103")){
  137. if (datagrid2.rows > 1){
  138. model.makeValue("/root/main/patinfo/patinfolist/hngnm", model.getValue("/root/main/filminfo/filmlist[" + 1 + "]/hngnm"));
  139. }
  140. }
  141. for (var i = 1; i < datagrid2.rows; i ++){
  142. var lendrid = datagrid2.valueMatrix(i, datagrid2.colRef("lendrid"));
  143. var lendyn = datagrid2.valueMatrix(i, datagrid2.colRef("lendyn"));
  144. if (lendrid != "") {
  145. datagrid2.isReadOnly(i, datagrid2.colRef("chk")) = true;
  146. datagrid2.rowstyle( i , "data" , "background-color" ) = "#FF9A00";
  147. }
  148. if (lendyn == "Y") {
  149. datagrid2.rowstyle( i , "data" , "background-color" ) = "#FFFFCC";
  150. }
  151. datagrid2.isSelected(i) = false;
  152. }
  153. model.refresh();
  154. }
  155. function fSaveData() {
  156. var k = 0;
  157. for (var i = 1; i < datagrid2.rows; i++){
  158. if (model.getValue("/root/main/filminfo/filmlist[" + i +"]/chk") == "Y"){
  159. k = parseInt(k) + 1;
  160. }
  161. }
  162. if (k == 0){
  163. messageBox("응급판독/대출신청할 검사내역이 선택되지 않았습니다.", "E999", "");
  164. return;
  165. }
  166. /*
  167. if (model.getValue("/root/send/data/lendappdd") == ""){
  168. messageBox("대출신청일은 필수 선택항목입니다.", "E999", "");
  169. return;
  170. }
  171. if (isDate(model.getValue("/root/send/data/lendappdd")) == false){
  172. messageBox("대출신청일의 날짜 형식이 잘못 입력되었습니다.", "E999", "");
  173. return;
  174. }
  175. */
  176. if (model.getValue("/root/send/data/lendgoal") == ""){
  177. messageBox("목적은 필수 선택항목입니다.", "E999", "");
  178. return;
  179. }
  180. /*
  181. if (model.getValue("/root/send/data/modality") == ""){
  182. messageBox("필름구분은 필수 선택항목입니다.", "E999", "");
  183. return;
  184. }
  185. */
  186. if (model.getValue("/root/send/data/lenddeptcd") == ""){
  187. messageBox("판독신청과는 필수 선택항목입니다.", "E999", "");
  188. return;
  189. }
  190. if (model.getValue("/root/send/data/lendrid") == ""){
  191. messageBox("판독신청자는 필수 입력항목입니다.", "E999", "");
  192. return;
  193. }
  194. for (var i = 1; i < datagrid2.rows; i++){
  195. if (model.getValue("/root/main/filminfo/filmlist[" + i + "]/chk") == "Y"){
  196. model.setValue("/root/main/filminfo/filmlist[" + i + "]/lendapptm", model.getValue("/root/send/data/lendapptm"));
  197. model.setValue("/root/main/filminfo/filmlist[" + i + "]/lendgoal", model.getValue("/root/send/data/lendgoal"));
  198. model.setValue("/root/main/filminfo/filmlist[" + i + "]/lenddeptcd", model.getValue("/root/send/data/lenddeptcd"));
  199. model.setValue("/root/main/filminfo/filmlist[" + i + "]/lendrid", model.getValue("/root/send/data/lendrid"));
  200. model.setValue("/root/main/filminfo/filmlist[" + i + "]/seq", "0");
  201. }
  202. }
  203. copyNodesetType("/root/main/savedata/savelist", "/root/main/filminfo/filmlist[chk='Y']", "replace", model, model);
  204. /*
  205. model.setValue("/root/main/savedata/savelist/lendapptm", model.getValue("/root/send/data/lendapptm"));
  206. model.setValue("/root/main/savedata/savelist/lendgoal", model.getValue("/root/send/data/lendgoal"));
  207. model.setValue("/root/main/savedata/savelist/lenddeptcd", model.getValue("/root/send/data/lenddeptcd"));
  208. model.setValue("/root/main/savedata/savelist/lendrid", model.getValue("/root/send/data/lendrid"));
  209. model.setValue("/root/main/savedata/savelist/seq", "0");
  210. */
  211. if(submit("TXAEF00101")){
  212. readfunc();
  213. }
  214. }
  215. function fDelData() {
  216. var k = 0;
  217. for (var i = 1; i < datagrid2.rows; i++){
  218. if (model.getValue("/root/main/filminfo/filmlist[" + i +"]/chk") == "Y"){
  219. k = parseInt(k) + 1;
  220. }
  221. }
  222. if (k == 0){
  223. messageBox("응급판독/대출신청할 검사내역이 선택되지 않았습니다.", "E999", "");
  224. return;
  225. }
  226. for (var i = 1; i < datagrid2.rows; i++){
  227. if (model.getValue("/root/main/filminfo/filmlist[" + i + "]/lendyn") == "Y"){
  228. messageBox("해당 신청자료는 이미 대출승인이 되었습니다.", "E999", "");
  229. return;
  230. }
  231. }
  232. copyNodesetType("/root/main/savedata/savelist", "/root/main/filminfo/filmlist[chk='Y']", "replace", model, model);
  233. if(submit("TXAEF00102")){
  234. readfunc();
  235. }
  236. }
  237. function isDate(str) { // 날짜 형식에 대한 적합여부 체크
  238. if (str == "") return true; // 빈건 체크안함
  239. if (trim(str) == "") return true; // 빈건 체크안함
  240. if (isNaN(parseInt(str))) return false; // 숫자가 아니면 false
  241. if (str.length != 8) return false; // 8자리(yyyymmdd)가 아니면 false
  242. var yy = new Number(str.substring(0, 4));
  243. var mm = new Number(str.substring(4, 6)) - 1;
  244. var dd = new Number(str.substring(6, 8));
  245. var date = new Date(yy, mm, dd);
  246. //alert(date.getFullYear() +"-" + (date.getMonth()+1) + "-" + date.getDate());
  247. if (yy != date.getFullYear() ||
  248. mm != date.getMonth() ||
  249. dd != date.getDate()) {
  250. return false; // 존재하지 않는 날짜
  251. }
  252. return true; // 존재하는 날짜
  253. }
  254. function trim(data){ // 문자에 대한 TRIM 작업
  255. return data.replace(/(^\s*)|(\s*$)/g, "");
  256. }
  257. //20150119 by kya
  258. //색깔 초기화
  259. function init(){
  260. for (var i = 1; i < datagrid2.rows; i ++){
  261. datagrid2.isReadOnly(i, datagrid2.colRef("chk")) = false;
  262. datagrid2.rowstyle( i , "data" , "background-color" ) = "#FFFFFF";
  263. }
  264. }
  265. /* @group : 판독/대출신청
  266. * @ver : 2009.05.13
  267. * @by : 박상준
  268. * @-----------------------------------
  269. * @type : function
  270. * @access : public
  271. * @desc : 주치의정보(진료의사) 조회를 위한 Function
  272. */
  273. function fChngSrchDrId() {
  274. if ( model.getValue("/root/send/data/deptcd") == "" ){
  275. model.removeNodeset("/root/init/cmb_orddr/initexecorddr");
  276. model.setValue("/root/send/data/drid", "");
  277. model.refresh();
  278. return;
  279. }
  280. //alert(cmb_wardcd.value);
  281. //alert(model.getValue("/root/send/data/singdata/deptcd"));
  282. model.resetInstanceNode("/root/init/cmb_orddr/initexecorddr");
  283. submit("TRAER00804");
  284. }
  285. ]]>
  286. </script>
  287. <!-- 예약조회-->
  288. <submission id="TRAEF00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/cmb_info"/>
  289. <submission id="TRAEF00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" replace="instance" resultref="/root/main/filminfo"/>
  290. <submission id="TXAEF00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/savedata" replace="instance" resultref="/root/hidden"/>
  291. <submission id="TXAEF00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/savedata/savelist" replace="instance" resultref="/root/hidden"/>
  292. <submission id="TRZBC00101"/>
  293. <!-- 진료과 및 진료의사 정보 가져오기-->
  294. <submission id="TRAER00803" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data/" replace="instance" resultref="/root/init/cmb_orddept"/>
  295. <submission id="TRAER00804" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data/deptcd" replace="instance" resultref="/root/init/cmb_orddr"/>
  296. </model>
  297. <script type="javascript" ev:event="xforms-ready">
  298. <![CDATA[
  299. var sdatetime = getCurrentDateTime();
  300. sdatetime = sdatetime.substr(0, 13);
  301. sdatetime = sdatetime.replace(" ", "");
  302. model.setValue("/root/send/data/lendapptm", sdatetime);
  303. model.setValue("/root/send/data/lendrid", getUserId());
  304. btn_rsrv.disabled = true;
  305. btn_cnl.disabled = true;
  306. zbcfGetCodeList( new Array("M0011"), new Array("/root/init/baseinfo/initexecprcpstatcd") );
  307. submit("TRZBC00101", false); //zbcfGetDeptCodeList(getUserInfo("dutplceinstcd"), "orduseyn'", ord_deptflag, rslt_ref, sort_field, sort_method);
  308. submit("TRAEF00101");
  309. model.setValue("/root/send/data/lenddeptcd", getUserInfo("dutplcecd"));
  310. if( instance1.selectSingleNode("/root/init/cmb_info/suppdept[suppdeptcd='" + getUserInfo("dutplcecd") + "']") == null ){
  311. model.setValue("/root/send/data/deptengabbr", "");
  312. }else{
  313. model.setValue("/root/send/data/deptengabbr", model.getValue("/root/init/cmb_info/suppdept[suppdeptcd='" + getUserInfo("dutplcecd") + "']/deptengabbr"));
  314. }
  315. // 조회용 진료과코드
  316. submit("TRAER00803");
  317. // 진료일자를 오늘 일자로 기본설정
  318. ipt_srchdate1.value = getCurrentDate().toDate().getAddDate(+1,"D").getDateFormat("YYYYMMDD");
  319. // 조회기간 기본값 설정
  320. ipt_fromdd.value = getCurrentDate().toDate().getAddDate(-31,"D").getDateFormat("YYYYMMDD");
  321. ipt_todd.value = getCurrentDate();
  322. model.setValue("/root/send/data/gb", "1");
  323. model.setValue("/root/send/data/lendgoal", "01");
  324. ipt_srchdate1.disabled = true;
  325. cmb_orddept.disabled = true;
  326. cmb_orddr.disabled = true;
  327. model.setValue("/root/send/data/drid", "");
  328. datagrid2.colHidden(1) = true; // 등록번호
  329. datagrid2.colHidden(2) = true; //환자명
  330. datagrid2.colHidden(11) = true; //진료예약시간
  331. init(); //그리드 초기화
  332. model.refresh();
  333. ]]>
  334. </script>
  335. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  336. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  337. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  338. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  339. <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
  340. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  341. </xhtml:head>
  342. <xhtml:body guideline="1,1195;2,757;2,784;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  343. <group id="group1" style="left:0px; top:0px; width:1194px; height:13px; ">
  344. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:137px; height:14px; ">판독요청</caption>
  345. </group>
  346. <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  347. <line id="line1" class="line_1" style="x1:0px; y1:8px; x2:1188px; y2:8px; "/>
  348. <output id="output1" ref="/root/main/patinfo/patinfolist/hngnm" class="output_fix" style="left:165px; top:39px; width:120px; height:19px; "/>
  349. <caption id="caption18" class="cell_1" style="left:0px; top:38px; width:70px; height:23px; vertical-align:middle; ">등록번호</caption>
  350. <button id="button61" class="icon_search" navindex="2" style="left:289px; top:41px; width:16px; height:16px; ">
  351. <caption/>
  352. <script type="javascript" ev:event="DOMActivate">
  353. <![CDATA[
  354. // 환자조회
  355. modal("SPPMC02500", "", "200", "200", "SPPMC02500","/root/send/data/srchpid","/root/main/send");
  356. model.setValue("/root/hidden/source/hngnm", model.getValue("/root/main/patinfo/patinfolist/hngnm"));
  357. model.setValue("/root/send/data/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
  358. if (model.getValue("/root/send/data/pid") != ""){
  359. btn_sea.dispatch("DOMActivate");
  360. }
  361. model.refresh();
  362. ]]>
  363. </script>
  364. </button>
  365. <input id="input5" ref="/root/send/data/pid" class="input_search" navindex="1" style="left:74px; top:39px; width:88px; height:19px; ">
  366. <script type="javascript" ev:event="onkeyup">
  367. <![CDATA[
  368. if(event.keyCode == "13") {
  369. inputEnterKey("btn_sea","DOMActivate");
  370. }
  371. ]]>
  372. </script>
  373. </input>
  374. <select1 id="combo2" ref="/root/send/data/lenddeptcd" navindex="6" appearance="minimal" editmode="search" style="left:116px; top:66px; width:189px; height:19px; ">
  375. <choices>
  376. <itemset nodeset="/root/init/cmb_info/suppdept">
  377. <label ref="depthngnm"/>
  378. <value ref="suppdeptcd"/>
  379. </itemset>
  380. </choices>
  381. <script type="javascript" ev:event="xforms-value-changed">
  382. <![CDATA[
  383. var sdeptcd = model.getValue("/root/send/data/lenddeptcd");
  384. model.setValue("/root/send/data/deptengabbr", model.getValue("/root/init/cmb_info/suppdept[suppdeptcd='" + sdeptcd + "']/deptengabbr"));
  385. model.refresh();
  386. ]]>
  387. </script>
  388. </select1>
  389. <input id="input3" ref="/root/send/data/lendrid" class="input_search" navindex="7" style="left:383px; top:66px; width:125px; height:19px; "/>
  390. <input id="input4" ref="/root/send/data/deptengabbr" class="output_fix" style="left:74px; top:66px; width:40px; height:19px; "/>
  391. <caption id="caption8" class="cell_1" style="left:0px; top:64px; width:70px; height:23px; vertical-align:middle; ">판독신청과</caption>
  392. <caption id="caption9" class="cell_1" style="left:309px; top:65px; width:70px; height:23px; vertical-align:middle; ">판독신청자</caption>
  393. <caption id="caption11" class="cell_1" style="left:515px; top:38px; width:70px; height:23px; vertical-align:middle; ">목적</caption>
  394. <select1 id="combo3" ref="/root/send/data/lendgoal" navindex="4" appearance="minimal" style="left:590px; top:39px; width:235px; height:19px; ">
  395. <choices>
  396. <item>
  397. <label>응급판독요청</label>
  398. <value>01</value>
  399. </item>
  400. <item>
  401. <label>외래진료판독요청</label>
  402. <value>02</value>
  403. </item>
  404. </choices>
  405. </select1>
  406. <caption id="caption12" class="cell_1" style="left:309px; top:38px; width:70px; height:23px; vertical-align:middle; ">판독신청일</caption>
  407. <line id="line22" class="line_3" style="x1:0px; y1:87px; x2:1185px; y2:87px; "/>
  408. <line id="line2" class="line_2" style="x1:0px; y1:61px; x2:1185px; y2:61px; "/>
  409. <button id="btn_rsrv" class="btn5_letter4" disabled="true" style="left:828px; top:66px; width:86px; height:19px; ">
  410. <caption>판독신청</caption>
  411. <script type="javascript" ev:event="DOMActivate">
  412. <![CDATA[
  413. fSaveData();
  414. ]]>
  415. </script>
  416. </button>
  417. <button id="btn_cnl" class="btn5_letter4" disabled="true" style="left:896px; top:66px; width:64px; height:19px; ">
  418. <caption>판독취소</caption>
  419. <script type="javascript" ev:event="DOMActivate">
  420. <![CDATA[
  421. fDelData();
  422. ]]>
  423. </script>
  424. </button>
  425. <button id="btn_sea" class="btn5_letter8" style="left:964px; top:66px; width:108px; height:19px; ">
  426. <caption>영상검사내역조회</caption>
  427. <script type="javascript" ev:event="DOMActivate">
  428. <![CDATA[
  429. readfunc();
  430. ]]>
  431. </script>
  432. </button>
  433. <datagrid id="datagrid2" nodeset="/root/main/filminfo/filmlist" caption="선택^등록번호^환자명^성별/나이^구분^접수일자^검사일자^입원/외래^처방명^검사실^판독상태^판독일^진료예약시간^진료과(진료의)^신청일자^신청과^신청자^신청목적^신청서출력^승인^caption3^caption4^caption1^caption5^caption7" colsep="^" colwidth="36, 73, 76, 67, 67, 74, 75, 64, 195, 103, 68, 74, 85, 143, 111, 110, 61, 90, 70, 33, 34, 32, 38, 25, 31" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:109px; width:1188px; height:621px; ">
  434. <col checkvalue="Y,N" ref="chk" type="checkbox"/>
  435. <col ref="pid"/>
  436. <col ref="hngnm"/>
  437. <col ref="sna" style="text-align:center; "/>
  438. <col disabled="true" ref="modality" type="combo">
  439. <choices>
  440. <item>
  441. <label>GR</label>
  442. <value>GR</value>
  443. </item>
  444. <item>
  445. <label>CT</label>
  446. <value>CT</value>
  447. </item>
  448. <item>
  449. <label>MRI</label>
  450. <value>MR</value>
  451. </item>
  452. <item>
  453. <label>ANGIO</label>
  454. <value>AG</value>
  455. </item>
  456. <item>
  457. <label>SP</label>
  458. <value>SP</value>
  459. </item>
  460. <item>
  461. <label>SONO</label>
  462. <value>US</value>
  463. </item>
  464. <item>
  465. <label>BMD</label>
  466. <value>BM</value>
  467. </item>
  468. <item>
  469. <label>NM</label>
  470. <value>NM</value>
  471. </item>
  472. <item>
  473. <label>CT</label>
  474. <value>Ct</value>
  475. </item>
  476. <item>
  477. <label>CT</label>
  478. <value>C</value>
  479. </item>
  480. <item>
  481. <label>MAMMO</label>
  482. <value>MG</value>
  483. </item>
  484. </choices>
  485. </col>
  486. <col ref="fstrgstdt" format="yyyy-mm-dd" style="text-align:center; "/>
  487. <col ref="excuexectodt" format="yyyy-mm-dd" style="text-align:center; "/>
  488. <col disabled="true" ref="ioflag" type="combo">
  489. <choices>
  490. <item>
  491. <label>외래</label>
  492. <value>O</value>
  493. </item>
  494. <item>
  495. <label>입원</label>
  496. <value>I</value>
  497. </item>
  498. <item>
  499. <label>건진</label>
  500. <value>S</value>
  501. </item>
  502. <item>
  503. <label>응급</label>
  504. <value>E</value>
  505. </item>
  506. <item>
  507. <label>DSC</label>
  508. <value>D</value>
  509. </item>
  510. </choices>
  511. </col>
  512. <col ref="uoedesc"/>
  513. <col ref="excuroomcd"/>
  514. <col disabled="true" ref="execprcpstatcd" style="text-align:center; "/>
  515. <col ref="cnfmdt" format="yyyy-mm-dd" style="text-align:center; "/>
  516. <col ref="ordtm" format="mm:hh" style="text-align:center; "/>
  517. <col ref="deptdrnm"/>
  518. <col ref="lendapptm" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
  519. <col ref="lenddeptcd"/>
  520. <col ref="lendrid"/>
  521. <col disabled="true" ref="lendgoal" type="combo">
  522. <choices>
  523. <item>
  524. <label>판독요청</label>
  525. <value>01</value>
  526. </item>
  527. <item>
  528. <label>외래진료</label>
  529. <value>02</value>
  530. </item>
  531. <item>
  532. <label>입원진료</label>
  533. <value>03</value>
  534. </item>
  535. <item>
  536. <label>판독용</label>
  537. <value>04</value>
  538. </item>
  539. <item>
  540. <label>복사용</label>
  541. <value>05</value>
  542. </item>
  543. <item>
  544. <label>연구용</label>
  545. <value>06</value>
  546. </item>
  547. </choices>
  548. </col>
  549. <col disabled="true" ref="prntyn" type="combo" visibility="hidden">
  550. <choices>
  551. <item>
  552. <label>YES</label>
  553. <value>Y</value>
  554. </item>
  555. <item>
  556. <label>NO</label>
  557. <value>N</value>
  558. </item>
  559. </choices>
  560. </col>
  561. <col ref="lendyn" style="text-align:center; "/>
  562. <col ref="pid" visibility="hidden"/>
  563. <col ref="hngnm" visibility="hidden"/>
  564. <col ref="prcpdd" visibility="hidden"/>
  565. <col ref="execprcpuniqno" visibility="hidden"/>
  566. <col ref="seq" visibility="hidden"/>
  567. <script type="javascript" ev:event="onaftersort">
  568. <![CDATA[
  569. datagrid2.gridToInstance();
  570. ]]>
  571. </script>
  572. <script type="javascript" ev:event="onclick">
  573. <![CDATA[
  574. if( isDataCell() ){
  575. btn_rsrv.disabled = false;
  576. if (model.getValue("/root/main/filminfo/filmlist[" + datagrid2.row + "]/lendapptm") == ""){
  577. btn_cnl.disabled = true;
  578. }else{
  579. btn_cnl.disabled = false;
  580. model.setValue("/root/main/savedata/savelist/lendapptm", model.getValue("/root/main/filminfo/filmlist[" + datagrid2.row + "]/lendapptm"));
  581. model.setValue("/root/main/savedata/savelist/seq", model.getValue("/root/main/filminfo/filmlist[" + datagrid2.row + "]/seq"));
  582. }
  583. model.setValue("/root/main/savedata/savelist/pid", model.getValue("/root/main/filminfo/filmlist[" + datagrid2.row + "]/pid"));
  584. model.setValue("/root/main/savedata/savelist/prcpdd", model.getValue("/root/main/filminfo/filmlist[" + datagrid2.row + "]/prcpdd"));
  585. model.setValue("/root/main/savedata/savelist/execprcpuniqno", model.getValue("/root/main/filminfo/filmlist[" + datagrid2.row + "]/execprcpuniqno"));
  586. model.setValue("/root/main/savedata/savelist/modality", model.getValue("/root/main/filminfo/filmlist[" + datagrid2.row + "]/modality"));
  587. model.refresh();
  588. }
  589. ]]>
  590. </script>
  591. </datagrid>
  592. <caption id="caption2" class="cell_1" style="left:830px; top:38px; width:70px; height:23px; vertical-align:middle; ">영상구분</caption>
  593. <line id="line6" class="line_1" style="x1:0px; y1:105px; x2:1188px; y2:105px; "/>
  594. <caption id="caption7" class="tit_2" style="left:0px; top:90px; width:193px; height:13px; ">환자영상검사내역</caption>
  595. <select1 id="combo4" ref="/root/send/data/modality" navindex="5" appearance="minimal" style="left:905px; top:39px; width:115px; height:19px; ">
  596. <choices>
  597. <item>
  598. <label>GR</label>
  599. <value>GR</value>
  600. </item>
  601. <item>
  602. <label>CT</label>
  603. <value>CT</value>
  604. </item>
  605. <item>
  606. <label>MRI</label>
  607. <value>MR</value>
  608. </item>
  609. <item>
  610. <label>ANGIO</label>
  611. <value>AG</value>
  612. </item>
  613. <item>
  614. <label>SP</label>
  615. <value>SP</value>
  616. </item>
  617. <item>
  618. <label>SONO</label>
  619. <value>US</value>
  620. </item>
  621. <item>
  622. <label>BMD</label>
  623. <value>BM</value>
  624. </item>
  625. <item>
  626. <label>NM</label>
  627. <value>NM</value>
  628. </item>
  629. <item>
  630. <label>CT</label>
  631. <value>Ct</value>
  632. </item>
  633. <item>
  634. <label>CT</label>
  635. <value>C</value>
  636. </item>
  637. <item>
  638. <label>MAMMO</label>
  639. <value>MG</value>
  640. </item>
  641. </choices>
  642. <script type="javascript" ev:event="xforms-value-changed">
  643. <![CDATA[
  644. btn_sea.dispatch("DOMActivate");
  645. ]]>
  646. </script>
  647. </select1>
  648. <input id="input1" ref="/root/send/data/lendapptm" disabled="true" format="yyyy-mm-dd hh:nn" style="left:383px; top:39px; width:125px; height:19px; text-align:center; "/>
  649. <caption id="caption1" class="cell_1" style="left:309px; top:13px; width:70px; height:23px; vertical-align:middle; ">진료일자</caption>
  650. <caption id="caption3" class="cell_1" style="left:515px; top:13px; width:70px; height:23px; vertical-align:middle; ">진료과</caption>
  651. <caption id="caption4" class="cell_1" style="left:830px; top:13px; width:70px; height:23px; vertical-align:middle; ">진료의</caption>
  652. <select1 id="cmb_orddr" ref="/root/send/data/drid" class="combo_search" appearance="minimal" style="left:905px; top:15px; width:115px; height:19px; ">
  653. <choices>
  654. <itemset nodeset="/root/init/cmb_orddr/initexecorddr">
  655. <label ref="execorddrcdnm"/>
  656. <value ref="execorddrcdid"/>
  657. </itemset>
  658. </choices>
  659. </select1>
  660. <select1 id="cmb_orddept" ref="/root/send/data/deptcd" class="combo_search" appearance="minimal" style="left:590px; top:15px; width:235px; height:19px; ">
  661. <choices>
  662. <itemset nodeset="/root/init/cmb_orddept/initexecorddept">
  663. <label ref="execorddeptcdnm"/>
  664. <value ref="execorddeptcdid"/>
  665. </itemset>
  666. </choices>
  667. <script type="javascript" ev:event="xforms-value-changed">
  668. <![CDATA[
  669. fChngSrchDrId();
  670. ]]>
  671. </script>
  672. </select1>
  673. <input id="ipt_srchdate1" ref="/root/send/data/srchdate1" class="input_default" inputtype="date" style="left:383px; top:15px; width:125px; height:19px; "/>
  674. <caption id="caption5" class="cell_1" style="left:0px; top:13px; width:70px; height:23px; vertical-align:middle; ">신청구분</caption>
  675. <select1 id="radio1" ref="/root/send/data/gb" appearance="full" cols="2" overflow="visible" style="left:74px; top:15px; width:206px; height:20px; border-style:none; ">
  676. <choices>
  677. <item>
  678. <label>응급판독</label>
  679. <value>1</value>
  680. </item>
  681. <item>
  682. <label>외래진료판독</label>
  683. <value>2</value>
  684. </item>
  685. </choices>
  686. <script type="javascript" ev:event="xforms-value-changed">
  687. <![CDATA[
  688. if (model.getValue("/root/send/data/gb") == "1"){
  689. ipt_srchdate1.disabled = true;
  690. cmb_orddept.disabled = true;
  691. cmb_orddr.disabled = true;
  692. datagrid2.colHidden(1) = true; // 등록번호
  693. datagrid2.colHidden(2) = true; // 환자명
  694. datagrid2.colHidden(11) = true; // 진료예약시간
  695. model.setValue("/root/send/data/lendgoal","01");
  696. }else{
  697. ipt_srchdate1.disabled = false;
  698. cmb_orddept.disabled = false;
  699. cmb_orddr.disabled = false;
  700. datagrid2.colHidden(1) = false; // 등록번호
  701. datagrid2.colHidden(2) = false; // 환자명
  702. datagrid2.colHidden(11) = false; // 진료예약시간
  703. model.setValue("/root/send/data/lendgoal","02");
  704. }
  705. model.refresh();
  706. ]]>
  707. </script>
  708. </select1>
  709. <caption id="cap_excuexectodd" class="cell_1" style="left:514px; top:64px; width:70px; height:23px; vertical-align:middle; ">조회기간</caption>
  710. <input id="ipt_fromdd" ref="/root/send/data/excuexecfromdd" class="input_default" inputtype="date" style="left:590px; top:66px; width:100px; height:19px; "/>
  711. <input id="ipt_todd" ref="/root/send/data/excuexectodd" class="input_default" inputtype="date" style="left:691px; top:66px; width:100px; height:19px; "/>
  712. <select1 id="rdo_prcpgenrflag" ref="/root/send/data/prcpgenrflag" class="radio_search" appearance="full" cellspacing="12" cols="2" rows="2" vcellspacing="5" overflow="visible" style="left:1085px; top:17px; width:95px; height:40px; border-style:none; ">
  713. <choices>
  714. <item>
  715. <label>전체</label>
  716. <value/>
  717. </item>
  718. <item>
  719. <label>입원</label>
  720. <value>I</value>
  721. </item>
  722. <item>
  723. <label>외래</label>
  724. <value>O</value>
  725. </item>
  726. <item>
  727. <label>응급</label>
  728. <value>E</value>
  729. </item>
  730. </choices>
  731. </select1>
  732. <caption id="caption10" class="cell_1" style="left:1025px; top:13px; width:54px; height:46px; text-align:center; vertical-align:middle; ">
  733. <![CDATA[처방
  734. 분류]]>
  735. </caption>
  736. <button id="button1" class="btn2_letter4" style="left:1121px; top:66px; width:64px; height:19px; ">
  737. <caption>엑설저장</caption>
  738. <script type="javascript" ev:event="DOMActivate">
  739. <![CDATA[
  740. var fileName = window.fileDialog("save", ",", false, "", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  741. if (fileName != "") {
  742. datagrid2.saveExcel(fileName);
  743. }
  744. ]]>
  745. </script>
  746. </button>
  747. </group>
  748. </xhtml:body>
  749. </xhtml:html>