SMAHA04610_재검레터대상자관리.xrw 53 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SMAHR01000.xrw
  4. * 설 명 : 검사결과관리[비자건진]
  5. * 설 계 자 : 손주연
  6. * 작 성 자 : 손주연
  7. * 작 성 일 : 2007.09.25
  8. * 수정이력 :
  9. * 기 타 :
  10. -->
  11. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/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. <acptlst>
  20. <all>
  21. <pid/>
  22. <visano/>
  23. <hngnm/>
  24. <engnm/>
  25. <statflag/>
  26. <ordtm/>
  27. <waitstarttm/>
  28. <pkgnm/>
  29. <orddd/>
  30. <sex/>
  31. <age/>
  32. <cmpynm>
  33. </cmpynm>
  34. <rgstno1/>
  35. <rgstno2/>
  36. <cmpycd/>
  37. <pkgcd/>
  38. <rsrvdd/>
  39. <rsrvno/>
  40. <cretno/>
  41. <orddeptcd/>
  42. <healexamflag/>
  43. <healexamdetlflag/>
  44. <acptremcnts/>
  45. <psptno/>
  46. <trnfileno/>
  47. <gender/>
  48. <brthdd/>
  49. </all>
  50. </acptlst>
  51. <acptinfo>
  52. <item>
  53. <pid/>
  54. <hngnm/>
  55. <engnm/>
  56. <rgstno1/>
  57. <rgstno2/>
  58. <sex/>
  59. <age/>
  60. <cmpycd/>
  61. <cmpynm/>
  62. <pkgcd/>
  63. <pkgnm/>
  64. <schlgrde/>
  65. <clsid/>
  66. <stuid/>
  67. <plceflag/>
  68. <orddd/>
  69. <judgdd/>
  70. <judgdrid/>
  71. <drnm/>
  72. <reexamfg/>
  73. <remcnts/>
  74. <rsltremcnts/>
  75. <statflag/>
  76. <healexamdetlflag/>
  77. <rsrvdd/>
  78. <rsrvno/>
  79. <cretno/>
  80. <orddd/>
  81. <judgdrid/>
  82. <judgdd/>
  83. <judgcnts1/>
  84. </item>
  85. <rsltlst>
  86. <letter>
  87. <engnm/>
  88. <sex/>
  89. <visano/>
  90. <age/>
  91. <lstdate/>
  92. <subclass/>
  93. <reqtests/>
  94. <rsltreqtests/>
  95. <specoption/>
  96. <signdrcd/>
  97. </letter>
  98. </rsltlst>
  99. </acptinfo>
  100. <vsltlist>
  101. <vsltinfo>
  102. <healexamflag/>
  103. <rsrvdd/>
  104. <rsrvno/>
  105. <examseq/>
  106. <sendaddressflag/>
  107. <senddd/>
  108. <retestitem/>
  109. <remark/>
  110. <subclass/>
  111. <requiretest/>
  112. <resultoftest/>
  113. <specialoption/>
  114. <letterdoctor/>
  115. <iudgb/>
  116. </vsltinfo>
  117. </vsltlist>
  118. <doctorlst>
  119. <item>
  120. <signdrhan/>
  121. <signdreng/>
  122. <signdrposhan/>
  123. <signdrposeng/>
  124. <signdrdepthan/>
  125. <signdrdepteng/>
  126. <signdrdivihan/>
  127. <signdrdivieng/>
  128. <instnmhan/>
  129. <instnmeng/>
  130. <seq/>
  131. </item>
  132. </doctorlst>
  133. <print>
  134. <letter>
  135. <patinfo/>
  136. <letterinfo/>
  137. </letter>
  138. </print>
  139. </main>
  140. <send>
  141. <srchhealexamdetlflag/>
  142. <srchfromdd/>
  143. <srchtodd/>
  144. <srchcmpycd/>
  145. <srchcmpynm/>
  146. <srchpkgcd/>
  147. <srchpkgnm/>
  148. <srchpid2/>
  149. <srchpnm/>
  150. <srchroomcd/>
  151. <srchinstcd/>
  152. <srchhealexamflag/>
  153. <srchtestcd2/>
  154. <srchrsltflag/>
  155. <srchstyle/>
  156. <srchexamseq/>
  157. <windowloadinstance>SMAHA04610</windowloadinstance>
  158. <save>
  159. <healexamflag/>
  160. <healexamdetlflag/>
  161. <rsrvdd/>
  162. <rsrvno/>
  163. <pid/>
  164. <orddd/>
  165. <cretno/>
  166. <pkgcd/>
  167. <saverslt/>
  168. <savetext/>
  169. <saveinqr/>
  170. <resultoftest/>
  171. <specialoption/>
  172. <requiretest/>
  173. <subclass/>
  174. <visano/>
  175. <signdrseq/>
  176. <signdrdept/>
  177. <signdr/>
  178. <signdrpos/>
  179. <signdrdivi/>
  180. <instnm/>
  181. </save>
  182. <srchorddd/>
  183. <srchcretno/>
  184. <srchrsrvdd/>
  185. <srchrsrvno/>
  186. <srchpid/>
  187. <srchinqrflag/>
  188. <srchbrtharea/>
  189. <srchstatfg>G</srchstatfg>
  190. <srchgb/>
  191. <saveout>
  192. <pid/>
  193. <orddd/>
  194. <cretno/>
  195. <healexamflag/>
  196. <rsrvdd/>
  197. <rsrvno/>
  198. <healexamdetlflag/>
  199. <instcd/>
  200. </saveout>
  201. <iemr>
  202. <pid/>
  203. <orddeptcd/>
  204. <indd/>
  205. <docucd/>
  206. <ioflag/>
  207. <pagetot/>
  208. <cmc_spcid/>
  209. <cmc_orddate/>
  210. <cmc_orderseqno/>
  211. <treatno/>
  212. </iemr>
  213. <srchuserid/>
  214. <srchdeptcd/>
  215. <result>
  216. <lab/>
  217. <che/>
  218. <nuc/>
  219. <mic/>
  220. <eds/>
  221. <style/>
  222. </result>
  223. </send>
  224. <init>
  225. <baseinfo>
  226. <choiflaglst/>
  227. <hedetlflaglst/>
  228. <rslttypelst/>
  229. <plceflag/>
  230. <brtharealst/>
  231. <pamcdlst>
  232. <uncocdlst/>
  233. <disccdlst/>
  234. </pamcdlst>
  235. <inqrflag/>
  236. <drlst>
  237. <itemdr/>
  238. </drlst>
  239. <statlst/>
  240. <rptgroup/>
  241. <initsendaddress>
  242. <combo/>
  243. </initsendaddress>
  244. <initsendaddressflag/>
  245. <initsendaddressflag2/>
  246. <initexaminfo>
  247. <combo/>
  248. </initexaminfo>
  249. <initaddrinfo/>
  250. </baseinfo>
  251. <send>
  252. <srchhealexamflag/>
  253. <srchhealexamdetlflag/>
  254. <srchpid2/>
  255. <srchpnm/>
  256. <srchfromdd/>
  257. <srchbrtharea/>
  258. <srchtodd/>
  259. <srchgb/>
  260. </send>
  261. </init>
  262. <hidden/>
  263. <temp>
  264. <item>
  265. <signdrseq/>
  266. <signdreng/>
  267. <signdrposeng/>
  268. <signdrdepteng/>
  269. <signdrdivieng/>
  270. <instnmeng/>
  271. </item>
  272. <popupmenu>
  273. <grid01>
  274. <item>
  275. <name>그룹 선택</name>
  276. <func>fAllCheck</func>
  277. </item>
  278. <item>
  279. <name>그룹 선택 취소</name>
  280. <func>fUnAllCheck</func>
  281. </item>
  282. </grid01>
  283. </popupmenu>
  284. </temp>
  285. </root>
  286. </instance>
  287. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  288. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  289. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  290. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  291. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  292. <script type="javascript" src="../../../ast/healexamweb/js/AHA001.js"/>
  293. <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
  294. <script type="javascript" src="../../../com/pacsweb/js/ZEP001.js"/>
  295. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  296. <script type="javascript" src="../../../ast/healthexambaseweb/js/healcombolist.js"/>
  297. <script type="javascript" ev:event="xforms-ready">
  298. <![CDATA[
  299. if(checkOpener()) {
  300. var sFlag = opener.javascript.getParameter("SMAHA04610_PARAM1");
  301. // 건진구분,건진상세구분 셋팅
  302. if(sFlag == "") {
  303. m_vHealexamflag = "G"
  304. m_vHealexamdetlflag = "G02"
  305. }else {
  306. m_vHealexamflag = sFlag.substr(0,1);
  307. m_vHealexamdetlflag = sFlag;
  308. }
  309. model.setValue("/root/send/save/healexamflag" , m_vHealexamflag);
  310. model.setValue("/root/send/save/healexamdetlflag" , m_vHealexamdetlflag);
  311. var sHopedd = opener.javascript.getParameter("SMAHA04610_PARAM2");
  312. var sPid = opener.javascript.getParameter("SMAHA04610_PARAM3");
  313. var sBrthArea = opener.javascript.getParameter("SMAHA04610_PARAM4");
  314. // 국가,일자,등록번호 셋팅
  315. model.setValue("/root/init/send/srchbrtharea" , sBrthArea );
  316. model.setValue("/root/init/send/srchfromdd" , sHopedd);
  317. model.setValue("/root/init/send/srchpid2" , sPid);
  318. ipt_pid.refresh();
  319. // 등록번호에 따른 신상정보 조회
  320. fGetPatInfo(2);
  321. model.setValue(ipt_pid.attribute("ref"), model.getValue("/root/temp/patinfo/item/pid") );
  322. model.setValue(ipt_pnm.attribute("ref"), model.getValue("/root/temp/patinfo/item/hngnm") );
  323. }
  324. fGetBasicCdList();
  325. fSrchInit();
  326. fInit(false);
  327. fGetRsltPatList();
  328. healGetCodeList( new Array("S040", "S050", "R001"),
  329. new Array("/root/init/baseinfo/initsendaddressflag", "/root/init/baseinfo/initsendaddressflag2", "/root/init/baseinfo/initaddrinfo") );
  330. submit("TRAHA00001");
  331. if (model.getValue("/root/init/send/srchbrtharea") == "AR"){
  332. copyNodesetType("/root/init/baseinfo/initsendaddress/combo", "/root/init/baseinfo/initsendaddressflag/S040", "replace");
  333. }else{
  334. copyNodesetType("/root/init/baseinfo/initsendaddress/combo", "/root/init/baseinfo/initsendaddressflag2/S050", "replace");
  335. }
  336. model.makeValue("/root/init/addrinfo/CF1", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid = 'CF1']/cdnm"));
  337. model.makeValue("/root/init/addrinfo/CP1", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid = 'CP1']/cdnm"));
  338. model.makeValue("/root/init/addrinfo/CP2", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid = 'CP2']/cdnm"));
  339. model.makeValue("/root/init/addrinfo/E01", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid = 'E01']/cdnm"));
  340. model.makeValue("/root/init/addrinfo/E02", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid = 'E02']/cdnm"));
  341. model.makeValue("/root/init/addrinfo/E03", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid = 'E03']/cdnm"));
  342. model.makeValue("/root/init/addrinfo/E04", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid = 'E04']/cdnm"));
  343. model.makeValue("/root/init/addrinfo/K01", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid = 'K01']/cdnm"));
  344. model.makeValue("/root/init/addrinfo/K02", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid = 'K02']/cdnm"));
  345. model.makeValue("/root/init/addrinfo/K03", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid = 'K03']/cdnm"));
  346. model.makeValue("/root/init/addrinfo/K04", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid = 'K04']/cdnm"));
  347. model.makeValue("/root/init/addrinfo/PV1", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid = 'PV1']/cdnm"));
  348. model.makeValue("/root/init/addrinfo/PV2", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid = 'PV2']/cdnm"));
  349. model.makeValue("/root/init/addrinfo/VF1", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid = 'VF1']/cdnm"));
  350. model.makeValue("/root/init/addrinfo/logoimg", getImageURL("cmc"));
  351. model.toggle("case_all");
  352. btn_all.selected = true;
  353. model.refresh();
  354. ]]>
  355. </script>
  356. <submission id="TRZBC00101"/>
  357. <submission id="TRAHA00101" ref="/root/send" method="post" mediatype="application/x-www-form-urlencoded" replace="instance" resultref="/root/temp/patinfo"/>
  358. <submission id="TRAHB01502" ref="/root/send" method="post" mediatype="application/x-www-form-urlencoded" replace="instance" resultref="/root/init/room/roomlst"/>
  359. <bind id="bind_rslt" ref="/root/main/rsltlst/item/testrsltcnts" readonly="../rsltflag=&quot;O&quot;"/>
  360. <submission id="TRAHA04611" ref="/root/send" method="post" mediatype="application/x-www-form-urlencoded" replace="instance" resultref="/root/main/acptlst"/>
  361. <submission id="TRAHA04612" ref="/root/send" method="post" mediatype="application/x-www-form-urlencoded" replace="instance" resultref="/root/init/baseinfo/initexaminfo"/>
  362. <submission id="TRAHA04613" ref="/root/send" method="post" mediatype="application/x-www-form-urlencoded" replace="instance" resultref="/root/main/vsltlist"/>
  363. <submission id="TRAHB01504" ref="/root/send" method="post" mediatype="application/x-www-form-urlencoded" replace="instance" resultref="/root/init/baseinfo/drlst"/>
  364. <submission id="TXAHA04611" ref="/root/main/vsltlist/vsltinfo" method="post" mediatype="application/x-www-form-urlencoded" replace="instance" resultref="/root/hidden"/>
  365. <submission id="TRAHA00001"/>
  366. </model>
  367. <script type="javascript">
  368. <![CDATA[
  369. var m_vHealexamflag = "";
  370. var m_vHealexamdetlflag = "";
  371. /**===================================================================================
  372. *초기화
  373. * bDetl => true : 건진자별 상세내역만 초기화
  374. =====================================================================================*/
  375. function fInit(bDetl){
  376. model.removeNodeset(grd_allacptlst.nodeset);
  377. model.resetInstanceNode("");
  378. if( bDetl) {
  379. return ;
  380. }
  381. model.resetInstanceNode("/root/main/info/item");
  382. model.refresh();
  383. }
  384. /**===================================================================================
  385. ** 조회조건 초기화
  386. =====================================================================================*/
  387. function fSrchInit(){
  388. cmb_srchhealexamdetlflag.refresh();
  389. cmb_srchhealexamdetlflag.value = m_vHealexamdetlflag;
  390. cmb_brtharea.select(0);
  391. model.setValue("/root/init/send/srchtodd" , getCurrentDate());
  392. model.setValue("/root/init/send/srchfromdd" , getCurrentDate().toDate("YYYYMMDD").getAddDate(-3,"M").getDateFormat("YYYYMMDD"));
  393. }
  394. /**===================================================================================
  395. *기본코드 내역 가져오기
  396. =====================================================================================*/
  397. function fGetBasicCdList(){
  398. if( m_vHealexamflag == "" ) {
  399. var sFlag = getScreenMenuParameter();
  400. if(sFlag == "") {
  401. m_vHealexamflag = "G";
  402. m_vHealexamdetlflag = "G02";
  403. }else {
  404. m_vHealexamflag = sFlag.substr(0,1);
  405. m_vHealexamdetlflag = sFlag;
  406. }
  407. }
  408. openLoadingBar("기초정보 ") ;//처리중 화면을 오픈한다.
  409. zbcfGetCodeList( new Array("A0070","A0465", "A0066","A0110","A0106", "A0107")
  410. , new Array( "/root/init/baseinfo/hedetlflaglst"
  411. , "/root/init/baseinfo/brtharealst"
  412. , "/root/init/baseinfo/plceflag"
  413. , "/root/init/baseinfo/inqrflag"
  414. , "/root/init/baseinfo/statlst") );
  415. submit("TRZBC00101");
  416. //비자건진에서 사용하는 의사목록 select
  417. //submit("TRAHA43210");
  418. //검사실 코드조회
  419. model.setValue("/root/send/srchinstcd", getUserInfo("dutplceinstcd") );
  420. submit("TRAHB01502");
  421. //판정의 조회
  422. model.setValue("/root/send/srchhealexamflag" , m_vHealexamflag);
  423. model.makeNode("/root/send/srchcond" );
  424. model.setValue("/root/send/srchcond", "J");
  425. submit("TRAHB01504");
  426. closeLoadingBar() ;//처리중 화면을 close한다.
  427. }
  428. /**===================================================================================
  429. *사용자 부서 정보
  430. =====================================================================================*/
  431. function fSetSuppDeptcd() {
  432. var dutplcecd = getUserInfo("dutplcecd");
  433. var selectplcecd = getScreenPrestDeptCd();
  434. if ( selectplcecd == "" ) {
  435. selectplcecd = dutplcecd;
  436. }
  437. model.setValue("/root/send/srchdeptcd" , selectplcecd);
  438. }
  439. /**===================================================================================
  440. *결과입력대상자 가져오기
  441. *건진구분/건진일자/검사실/환자id/단체코드/패키지코드별 조회
  442. =====================================================================================*/
  443. function fGetRsltPatList(){
  444. openLoadingBar("재검레터 대상 건진자리스트") ;//처리중 화면을 오픈한다.
  445. model.removeNodeset(grd_allacptlst.nodeset);
  446. model.resetInstanceNode("/root/send");
  447. model.setValue("/root/send/srchhealexamdetlflag", model.getValue("/root/init/send/srchhealexamdetlflag") );
  448. model.setValue("/root/send/srchpid", model.getValue("/root/init/send/srchpid2") );
  449. model.setValue("/root/send/srchpnm", model.getValue("/root/init/send/srchpnm") );
  450. model.setValue("/root/send/srchtodd", model.getValue("/root/init/send/srchtodd") );
  451. model.setValue("/root/send/srchfromdd", model.getValue("/root/init/send/srchfromdd"));
  452. model.setValue("/root/send/srchbrtharea", model.getValue("/root/init/send/srchbrtharea"));
  453. model.setValue("/root/send/srchgb", model.getValue("/root/init/send/srchgb"));
  454. var shealexamdetlflag = model.getValue("/root/init/send/srchhealexamdetlflag");
  455. var shealexamflag = shealexamdetlflag.substr(0,1);
  456. model.setValue("/root/send/srchhealexamflag" , shealexamflag);
  457. model.makeValue("/root/send/srchstatfg" , model.getValue("/root/init/send/srchstatfg"));
  458. submit("TRAHA04611");
  459. closeLoadingBar() ;//처리중 화면을 close한다.
  460. }
  461. /**=============================================================================================================
  462. *결과 내역을 조회하기 위한 조건정보 체크
  463. =============================================================================================================*/
  464. function fCheckExamInfo(){
  465. var idx = grd_allacptlst.row;
  466. if( idx < 1) {
  467. //messageBox("수진자를 ", "C002");
  468. return false;
  469. }
  470. model.copyNode("/root/main/acptinfo/item", grd_allacptlst.nodeset + "[" + idx + "]");
  471. //결과내역가져오기
  472. var sNode = grd_allacptlst.nodeset + "[" + idx + "]/";
  473. var rsrvdd = model.getValue(sNode + "rsrvdd");
  474. var rsrvno = model.getValue(sNode + "rsrvno");
  475. var pid = model.getValue(sNode + "pid");
  476. var orddd = model.getValue(sNode + "orddd");
  477. var cretno = model.getValue(sNode + "cretno");
  478. var pkgcd = model.getValue(sNode + "pkgcd");
  479. if( (pid == "" ) || (orddd=="") || (cretno == "") || (rsrvdd == "") || (rsrvno == "") ){
  480. messageBox("유효하지 않은 데이터 입니다!", "E999", "");
  481. return false;
  482. }
  483. model.resetInstanceNode("/root/send");
  484. model.setValue("/root/send/srchhealexamdetlflag" , model.getValue("/root/init/send/srchhealexamdetlflag") );
  485. model.setValue("/root/send/srchpnm" , model.getValue("/root/init/send/srchpnm") );
  486. model.setValue("/root/send/srchfromdd" , model.getValue("/root/init/send/srchfromdd") );
  487. model.setValue("/root/send/srchtodd" , model.getValue("/root/init/send/srchtodd") );
  488. model.setValue("/root/send/srchrsrvdd" , rsrvdd );
  489. model.setValue("/root/send/srchrsrvno" , rsrvno );
  490. model.setValue("/root/send/srchpid" , pid );
  491. model.setValue("/root/send/srchorddd" , orddd );
  492. model.setValue("/root/send/srchcretno" , cretno );
  493. model.setValue("/root/send/srchhealexamflag" , m_vHealexamflag );
  494. model.setValue("/root/send/srchinstcd" , getUserInfo("dutplceinstcd") );
  495. model.setValue("/root/send/srchpkgcd" , pkgcd);
  496. // ahafSetScreenTopPatInfo( pid , orddd , cretno );
  497. }
  498. /**=============================================================================================================
  499. @desc : 종합건진 결과 내역 조회
  500. =============================================================================================================*/
  501. function fGetRsltInfo(){
  502. model.resetInstanceNode("/root/main/acptinfo/item");
  503. if( fCheckExamInfo() == false ){
  504. model.refresh();
  505. return ;
  506. }
  507. openLoadingBar("비자레터정보 ") ;//처리중 화면을 오픈한다.
  508. model.setValue("/root/send/srchhealexamflag", model.getValue("/root/main/acptlst/all[" + grd_allacptlst.row + "]/healexamflag"));
  509. model.setValue("/root/send/srchrsrvdd", model.getValue("/root/main/acptlst/all[" + grd_allacptlst.row + "]/rsrvdd"));
  510. model.setValue("/root/send/srchrsrvno", model.getValue("/root/main/acptlst/all[" + grd_allacptlst.row + "]/rsrvno"));
  511. submit("TRAHA04612");
  512. combo2.select(0);
  513. readfunc();
  514. closeLoadingBar() ;//처리중 화면을 close한다.
  515. }
  516. /**
  517. @desc : 선택형 결과입력
  518. */
  519. function fAddRsltChoi(){
  520. var idx = grd_allacptlst.row ;
  521. if( idx < 1) return ;
  522. var oldrslt = model.getValue(grd_allacptlst.nodeset + "[" + idx + "]/rsltcnts" );
  523. if( grd_choilst.col != 1 ) return ;
  524. var i = grd_choilst.row;
  525. if( i < 1) return ;
  526. var nodeList = instance1.selectNodes(grd_choilst.nodeset +"[sel='Y']");
  527. var rslt = "";
  528. var node = null;
  529. if( nodeList.length > 0 ){
  530. for( var j = 0 ; j < nodeList.length ; j++){
  531. rslt = rslt + nodeList.item(j).rsltcd.text + ":" + nodeList.item(j).rsltnm.text + "\n" ;
  532. }
  533. }
  534. model.setValue(grd_allacptlst.nodeset + "[" + idx + "]/testrsltcnts", rslt );
  535. grd_allacptlst.refresh();
  536. }
  537. /**===================================================================================
  538. @desc : 결과입력
  539. @param : 결과내역
  540. ===================================================================================*/
  541. function fSaveColgRslt(){
  542. var vSaveNum = getGridUpdateData(grd_allacptlst);
  543. var vSaveText = getGridUpdateData(grd_rslttextlst);
  544. if( (vSaveNum == "") && (vSaveText == "") ) {
  545. messageBox("저장할 내역이 ", "I004");
  546. return ;
  547. }
  548. var vHfg = m_vHealexamflag;
  549. if( vHfg == "" ) {
  550. messageBox("건진구분이 ", "I004");
  551. return ;
  552. }
  553. model.resetInstanceNode("/root/send/save" );
  554. var vRsrvdd = model.getValue("/root/main/acptinfo/item/rsrvdd") ;
  555. var vRsrvno = model.getValue("/root/main/acptinfo/item/rsrvno") ;
  556. var vOrddd = model.getValue("/root/main/acptinfo/item/orddd") ;
  557. var vCretno = model.getValue("/root/main/acptinfo/item/cretno") ;
  558. var vPid = model.getValue("/root/main/acptinfo/item/pid") ;
  559. if( (vRsrvdd == "" ) || (vRsrvno == "") || (vPid == "") || (vOrddd == "") || (vCretno == "") ) {
  560. messageBox("건진정보가 ", "I004");
  561. return ;
  562. }
  563. model.setValue("/root/send/save/healexamflag" , vHfg );
  564. model.setValue("/root/send/save/healexamdetlflag", model.getValue("/root/init/send/srchhealexamdetlflag") );
  565. model.setValue("/root/send/save/rsrvdd" , vRsrvdd);
  566. model.setValue("/root/send/save/rsrvno" , vRsrvno);
  567. model.setValue("/root/send/save/pid" , vPid);
  568. model.setValue("/root/send/save/orddd" , vOrddd );
  569. model.setValue("/root/send/save/cretno" , vCretno );
  570. model.setValue("/root/send/save/pkgcd" , model.getValue("/root/main/acptinfo/item/pkgcd"));
  571. model.makeNode("/root/send/save/saverslt");
  572. model.setValue("/root/send/save/saverslt" , grd_allacptlst.getUpdateData());
  573. model.makeNode("/root/send/save/savetext");
  574. model.setValue("/root/send/save/savetext" , grd_rslttextlst.getUpdateData());
  575. openLoadingBar("검사결과정보 저장중 ") ;//처리중 화면을 오픈한다.
  576. var ret = submit("TXAHA43201");
  577. closeLoadingBar() ;//처리중 화면을 close한다.
  578. if( ret == true ){
  579. fGetRsltInfo();
  580. }
  581. }
  582. /**=============================================================================================================
  583. *입력결과 저장
  584. =================================================================================================================*/
  585. function fSaveRslt(vMod) {
  586. var vSaveNum = "";
  587. var vSaveText = "";
  588. var vSaveInqr = "";
  589. var vHfg = "G";
  590. var vRsrvdd = model.getValue("/root/main/acptinfo/item/rsrvdd") ;
  591. var vRsrvno = model.getValue("/root/main/acptinfo/item/rsrvno") ;
  592. var vOrddd = model.getValue("/root/main/acptinfo/item/orddd") ;
  593. var vCretno = model.getValue("/root/main/acptinfo/item/cretno") ;
  594. var vPid = model.getValue("/root/main/acptinfo/item/pid") ;
  595. if( (vRsrvdd == "" ) || (vRsrvno == "") || (vPid == "") || (vOrddd == "") || (vCretno == "") ) {
  596. messageBox("건진정보가 ", "I004");
  597. return ;
  598. }
  599. model.setValue("/root/send/save/healexamflag" , vHfg );
  600. model.setValue("/root/send/save/healexamdetlflag", model.getValue("/root/init/send/srchhealexamdetlflag") );
  601. model.setValue("/root/send/save/rsrvdd" , vRsrvdd);
  602. model.setValue("/root/send/save/rsrvno" , vRsrvno);
  603. model.setValue("/root/send/save/pid" , vPid);
  604. model.setValue("/root/send/save/orddd" , vOrddd );
  605. model.setValue("/root/send/save/cretno" , vCretno );
  606. model.setValue("/root/send/save/pkgcd" , model.getValue("/root/main/acptinfo/item/pkgcd"));
  607. if(vMod == "A" || vMod == "R" ) {
  608. vSaveNum = getGridUpdateData(grd_allacptlst);
  609. vSaveText = getGridUpdateData(grd_rslttextlst);
  610. if( (vSaveNum == "") && (vSaveText == "") ) {
  611. messageBox("저장할 내역이 ", "I004");
  612. return ;
  613. }
  614. model.makeNode("/root/send/save/saverslt");
  615. model.makeNode("/root/send/save/savetext");
  616. model.setValue("/root/send/save/saverslt" ,vSaveNum);
  617. model.setValue("/root/send/save/savetext" ,vSaveText);
  618. }
  619. if(vMod == "A" || vMod == "I") {
  620. vSaveInqr = getGridUpdateData(grd_inqrlst);
  621. if( (vSaveInqr == "") ) {
  622. messageBox("저장할 내역이 ", "I004");
  623. return ;
  624. }
  625. model.makeNode("/root/send/save/saveinqr");
  626. model.setValue("/root/send/save/saveinqr",vSaveInqr);
  627. }
  628. if(vMod == "A" || vMod == "V"){
  629. var letterdoctor = cmb_doctorlst.label;
  630. var letterdoctorseq = cmb_doctorlst.value;
  631. model.setValue("/root/temp/item/signdrseq", letterdoctorseq);
  632. //선택된 서명의사에 관한 정보
  633. submit("TRAHA43211");
  634. model.setValue("/root/send/save/resultoftest", model.getValue("/root/main/acptinfo/rsltlst/letter/rsltreqtests"));
  635. model.setValue("/root/send/save/specialoption", model.getValue("/root/main/acptinfo/rsltlst/letter/specoption"));
  636. model.setValue("/root/send/save/requiretest", model.getValue("/root/main/acptinfo/rsltlst/letter/reqtests"));
  637. model.setValue("/root/send/save/subclass", model.getValue("/root/main/acptinfo/rsltlst/letter/subclass"));
  638. model.setValue("/root/send/save/signdrseq", model.getValue("/root/temp/item/signdrseq"));
  639. model.setValue("/root/send/save/signdrdept", model.getValue("/root/temp/item/signdrdepteng"));
  640. model.setValue("/root/send/save/signdr", model.getValue("/root/temp/item/signdreng"));
  641. model.setValue("/root/send/save/signdrpos", model.getValue("/root/temp/item/signdrposeng"));
  642. model.setValue("/root/send/save/signdrdivi", model.getValue("/root/temp/item/signdrdivieng"));
  643. model.setValue("/root/send/save/instnm", model.getValue("/root/temp/item/instnmeng"));
  644. model.setValue("/root/send/save/visano", model.getValue("root/main/acptinfo/rsltlst/info/visano"));
  645. }
  646. openLoadingBar("결과 저장 중입니다..") ;//처리중 화면을 오픈한다.
  647. var ret = submit("TXAHA43201");
  648. closeLoadingBar() ;//처리중 화면을 close한다
  649. if( ret == true){
  650. fGetRsltInfo();
  651. }
  652. }
  653. /**===================================================================================
  654. @desc : 공통 저장정보관련 초기화
  655. =====================================================================================*/
  656. function fInitSaveData(){
  657. model.resetInstanceNode("/root/send/save");
  658. }
  659. /**===================================================================================
  660. @desc : Visa Letter 종합판정구문 선택
  661. =====================================================================================*/
  662. function fGetVisaLetterCont(vEditObj){
  663. if( vEditObj == null ) return ;
  664. model.makeNode("/root/temp/judgexaminfo");
  665. setParameter("SPAHR00300_PARAM1", "Y");
  666. setParameter("SPAHR00300_PARAM2", "/root/temp/judgexaminfo");
  667. setParameter("SPAHR00300_PARAM7", m_vHealexamflag );
  668. // setParameter("SPAHR00300_PARAM8", "G02");
  669. modal("SPAHR00300", 100, 100, "SPAHR00300");
  670. if( model.getValue("/root/temp/SPAHR00300/okflag") != "ok" ) return ;
  671. var vNodeList = instance1.selectNodes("/root/temp/judgexaminfo/list");
  672. if( vNodeList == null ) reutrn ;
  673. var vJudgCnts = model.getValue( vEditObj.attribute("ref") );
  674. for( var i = 0 ; i < vNodeList.length ; i++){
  675. vJudgCnts += vNodeList.item(i).judghangshrtcnts.text;
  676. }
  677. model.setValue( vEditObj.attribute("ref") , vJudgCnts );
  678. vEditObj.refresh();
  679. }
  680. /**===================================================================================
  681. @desc : Visa Letter 종합판정구문 선택
  682. =====================================================================================*/
  683. function fModifyDoctor(){
  684. modal("SPAHR00601", 200, 200, "SPAHR00601");
  685. }
  686. function readfunc(){
  687. model.resetInstanceNode("/root/main/vsltlist/vsltinfo");
  688. if (model.getValue("/root/send/srchexamseq") != ""){
  689. if (submit("TRAHA04613", false)){
  690. if (model.getValue("/root/main/vsltlist/vsltinfo/rsrvdd") == ""){
  691. model.setValue("/root/main/vsltlist/vsltinfo/iudgb", "I");
  692. button2.disabled = true;
  693. }else{
  694. model.setValue("/root/main/vsltlist/vsltinfo/iudgb", "U");
  695. button2.disabled = false;
  696. }
  697. model.setValue("/root/main/vsltlist/vsltinfo/healexamflag", model.getValue("/root/send/srchhealexamflag"));
  698. model.setValue("/root/main/vsltlist/vsltinfo/rsrvdd", model.getValue("/root/send/srchrsrvdd"));
  699. model.setValue("/root/main/vsltlist/vsltinfo/rsrvno", model.getValue("/root/send/srchrsrvno"));
  700. model.setValue("/root/main/vsltlist/vsltinfo/examseq", model.getValue("/root/send/srchexamseq"));
  701. button5.disabled = false;
  702. }
  703. model.refresh();
  704. }
  705. }
  706. ]]>
  707. </script>
  708. </xhtml:head>
  709. <xhtml:body guideline="1,1193;1,1195;2,786;2,783;" style="border-left-style:none; margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  710. <group id="group1" style="left:0px; top:0px; width:1194px; height:13px; ">
  711. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:159px; height:14px; ">
  712. <![CDATA[재검레터]]>
  713. <script type="javascript" ev:event="ondblclick">
  714. <![CDATA[
  715. //getPatInfo();
  716. ]]>
  717. </script>
  718. </caption>
  719. </group>
  720. <group id="group4" scroll="auto" style="left:0px; top:13px; width:1193px; height:742px; ">
  721. <caption id="caption7" class="tit_2" style="left:314px; top:63px; width:151px; height:13px; ">기본사항</caption>
  722. <line id="line4" class="line_1" style="x1:314px; y1:79px; x2:1190px; y2:79px; "/>
  723. <line id="line5" class="line_2" style="x1:313px; y1:173px; x2:1028px; y2:173px; "/>
  724. <line id="line6" class="line_2" style="x1:314px; y1:107px; x2:1190px; y2:107px; "/>
  725. <caption id="caption16" class="cell_1" style="left:314px; top:109px; width:74px; height:23px; vertical-align:middle; ">패키지명</caption>
  726. <output id="opt_pkgnm" ref="/root/main/acptinfo/item/pkgnm" class="output_fix" style="left:391px; top:111px; width:401px; height:19px; "/>
  727. <textarea id="tar_remcnts" ref="/root/main/acptinfo/item/judgcnts1" disabled="true" style="left:391px; top:134px; width:798px; height:45px; "/>
  728. <caption id="caption17" class="cell_1" style="left:314px; top:134px; width:74px; height:47px; vertical-align:middle; ">판정</caption>
  729. <select1 id="cmb_statflag" ref="/root/main/acptinfo/item/statflag" class="combo_default" disabled="true" appearance="minimal" style="left:1040px; top:86px; width:150px; height:19px; ">
  730. <choices>
  731. <itemset nodeset="/root/init/baseinfo/statlst/A0107">
  732. <label ref="cdnm"/>
  733. <value ref="cdid"/>
  734. </itemset>
  735. </choices>
  736. </select1>
  737. <caption id="caption21" class="cell_1" style="left:795px; top:84px; width:64px; height:23px; vertical-align:middle; ">성별/나이</caption>
  738. <caption id="caption22" class="cell_1" style="left:968px; top:84px; width:69px; height:23px; vertical-align:middle; ">상태</caption>
  739. <caption id="caption18" class="cell_1" style="left:320px; top:285px; width:95px; height:23px; vertical-align:middle; ">참고사항</caption>
  740. <input id="input4" ref="/root/main/vsltlist/vsltinfo/remark" class="input_default" style="left:417px; top:287px; width:663px; height:19px; "/>
  741. <line id="line9" class="line_3" style="x1:314px; y1:183px; x2:1190px; y2:183px; "/>
  742. <group id="group5" style="left:0px; top:14px; width:1193px; height:41px; vertical-align:top; ">
  743. <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1193px; height:40px; background-color:#fffbf2; border-color:#ffd799; "/>
  744. <button id="btn_search" class="btn1_letter2" style="left:1118px; top:9px; width:56px; height:22px; ">
  745. <caption>조회</caption>
  746. <script type="javascript" ev:event="DOMActivate">
  747. <![CDATA[
  748. fGetRsltPatList();
  749. ]]>
  750. </script>
  751. </button>
  752. <line id="line7" style="x1:1095px; y1:5px; x2:1095px; y2:35px; border-color:#ffe4bb; border-left-style:solid; "/>
  753. <button id="btn_srchpat" navindex="2" class="icon_search" style="left:942px; top:10px; width:16px; height:16px; ">
  754. <caption/>
  755. <script type="javascript" ev:event="DOMActivate">
  756. <![CDATA[
  757. fSearchPatInfo("SMAHA00100", "pnm", ipt_pnm.currentText , "N", "/root/send" ,ipt_pid.attribute("ref"), ipt_pnm.attribute("ref"));
  758. if( model.getValue(ipt_pid.attribute("ref")) != "" ) fGetRsltPatList();
  759. ]]>
  760. </script>
  761. </button>
  762. <input id="ipt_pid" ref="/root/init/send/srchpid2" navindex="4" class="input_search" style="left:870px; top:8px; width:66px; height:19px; ">
  763. <script type="javascript" ev:event="onkeyup">
  764. <![CDATA[
  765. if( event.keyCode != 13) return ;
  766. var spid = model.getValue("/root/init/send/srchpid2");
  767. fGetPatInfo(2);
  768. model.setValue(ipt_pid.attribute("ref"), model.getValue("/root/temp/patinfo/item/pid") );
  769. model.setValue(ipt_pnm.attribute("ref"), model.getValue("/root/temp/patinfo/item/hngnm") );
  770. fGetRsltPatList();
  771. ]]>
  772. </script>
  773. </input>
  774. <input id="ipt_pnm" ref="/root/init/send/srchpnm" navindex="3" class="input_search" disabled="true" style="left:963px; top:8px; width:83px; height:19px; ">
  775. <script type="javascript" ev:event="onkeyup">
  776. <![CDATA[
  777. inputEnterKey("btn_srchpat","DOMActivate");
  778. ]]>
  779. </script>
  780. </input>
  781. <caption id="caption23" class="search_name" style="left:766px; top:10px; width:99px; height:17px; ">신검자검색 :</caption>
  782. <select1 id="cmb_srchhealexamdetlflag" ref="/root/init/send/srchhealexamdetlflag" class="combo_search" appearance="minimal" style="left:96px; top:8px; width:108px; height:19px; ">
  783. <choices>
  784. <itemset nodeset="/root/init/baseinfo/hedetlflaglst/A0070">
  785. <label ref="cdnm"/>
  786. <value ref="cdid"/>
  787. </itemset>
  788. </choices>
  789. <script type="javascript" ev:event="xforms-select">
  790. <![CDATA[
  791. fGetRsltPatList();
  792. /*
  793. //판정의 조회
  794. model.setValue("/root/send/srchhealexamflag" , model.getValue("/root/init/send/srchhealexamdetlflag").substr(0, 1));
  795. model.makeNode("/root/send/srchcond" );
  796. model.setValue("/root/send/srchcond", "J");
  797. submit("TRAHB01504");
  798. */
  799. ]]>
  800. </script>
  801. </select1>
  802. <caption id="caption9" class="search_name" style="left:5px; top:9px; width:86px; height:17px; ">검진구분 :</caption>
  803. <caption id="caption3" class="search_name" style="left:225px; top:11px; width:66px; height:17px; ">국가 :</caption>
  804. <select1 id="cmb_brtharea" ref="/root/init/send/srchbrtharea" class="combo_search" appearance="minimal" style="left:292px; top:9px; width:118px; height:19px; ">
  805. <choices>
  806. <itemset nodeset="/root/init/baseinfo/brtharealst/A0465">
  807. <label ref="cdnm"/>
  808. <value ref="cdid"/>
  809. </itemset>
  810. </choices>
  811. <script type="javascript" ev:event="xforms-select">
  812. <![CDATA[
  813. fGetRsltPatList();
  814. if (model.getValue("/root/init/send/srchbrtharea") == "AR"){
  815. copyNodesetType("/root/init/baseinfo/initsendaddress/combo", "/root/init/baseinfo/initsendaddressflag/S040", "replace");
  816. }else{
  817. copyNodesetType("/root/init/baseinfo/initsendaddress/combo", "/root/init/baseinfo/initsendaddressflag2/S050", "replace");
  818. }
  819. model.refresh();
  820. ]]>
  821. </script>
  822. </select1>
  823. <input id="ipt_srchfromdd" ref="/root/init/send/srchfromdd" navindex="1" class="input_s_essential" inputtype="date" style="left:522px; top:9px; width:100px; height:19px; ">
  824. <script type="javascript" ev:event="onkeyup">
  825. <![CDATA[
  826. if( event.keyCode == 13 ) fGetRsltPatList();
  827. ]]>
  828. </script>
  829. <script type="javascript" ev:event="xforms-value-changed">
  830. <![CDATA[
  831. fGetRsltPatList();
  832. ]]>
  833. </script>
  834. </input>
  835. <caption id="caption11" class="search_name" style="left:435px; top:10px; width:94px; height:17px; ">신검일자:</caption>
  836. <input id="ipt_srchtodd" ref="/root/init/send/srchtodd" navindex="1" class="input_s_essential" inputtype="date" style="left:637px; top:9px; width:100px; height:19px; ">
  837. <script type="javascript" ev:event="onkeyup">
  838. <![CDATA[
  839. if( event.keyCode == 13 ) fGetRsltPatList();
  840. ]]>
  841. </script>
  842. <script type="javascript" ev:event="xforms-value-changed">
  843. <![CDATA[
  844. fGetRsltPatList();
  845. ]]>
  846. </script>
  847. </input>
  848. <caption id="caption2" style="left:623px; top:10px; width:15px; height:20px; ">~</caption>
  849. </group>
  850. <line id="line12" class="line_2" style="x1:314px; y1:132px; x2:1190px; y2:132px; "/>
  851. <button id="button12" class="btn2_letter4" visibility="hidden" style="left:728px; top:86px; width:64px; height:19px; ">
  852. <caption>진행상황</caption>
  853. <script type="javascript" ev:event="DOMActivate">
  854. <![CDATA[
  855. // alert("준비중입니다.");
  856. ]]>
  857. </script>
  858. </button>
  859. <output id="opt_sex" ref="/root/main/acptinfo/item/sex" class="output_fix" style="left:862px; top:86px; width:50px; height:19px; "/>
  860. <output id="opt_hngnm" ref="/root/main/acptinfo/item/engnm" class="output_fix" style="left:572px; top:86px; width:219px; height:19px; "/>
  861. <caption id="caption14" class="cell_1" style="left:314px; top:84px; width:74px; height:23px; vertical-align:middle; ">등록번호</caption>
  862. <caption id="caption24" class="cell_1" style="left:505px; top:84px; width:64px; height:23px; vertical-align:middle; ">영문성명</caption>
  863. <output id="opt_pid" ref="/root/main/acptinfo/item/pid" class="output_fix" style="left:391px; top:86px; width:110px; height:19px; "/>
  864. <output id="output5" ref="/root/main/acptinfo/item/age" class="output_fix" style="left:915px; top:86px; width:50px; height:19px; "/>
  865. <button id="btn_savepatinfo" class="btn5_letter4" visibility="hidden" style="left:1115px; top:285px; width:64px; height:19px; ">
  866. <caption>문진저장</caption>
  867. <script type="javascript" ev:event="DOMActivate">
  868. <![CDATA[
  869. if( messageBox("문진을 ", "Q002") == 6 ) {
  870. fSaveRslt("I"); //fSaveRsltInfo
  871. gridMergeRow(grd_allacptlst);
  872. grdImage(grd_allacptlst)
  873. }
  874. ]]>
  875. </script>
  876. </button>
  877. <button id="btn_doctmodify" class="btn2_letter6" visibility="hidden" style="left:845px; top:530px; width:81px; height:19px; ">
  878. <caption>서명의사수정</caption>
  879. <script type="javascript" ev:event="DOMActivate">
  880. <![CDATA[
  881. fModifyDoctor();
  882. ]]>
  883. </script>
  884. </button>
  885. <button id="btn_all" class="btn_sw" group="tab" style="left:0px; top:64px; width:84px; height:22px; ">
  886. <caption>전체</caption>
  887. <script type="javascript" ev:event="onclick">
  888. <![CDATA[
  889. model.toggle("case_all");
  890. btn_all.selected = true;
  891. model.setValue("/root/init/send/srchgb", "1");
  892. btn_search.dispatch("DOMActivate");
  893. ]]>
  894. </script>
  895. </button>
  896. <button id="btn_tod" class="btn_sw" group="tab" style="left:85px; top:64px; width:84px; height:22px; ">
  897. <caption>당일</caption>
  898. <script type="javascript" ev:event="onclick">
  899. <![CDATA[
  900. model.toggle("case_tod");
  901. btn_tod.selected = true;
  902. model.setValue("/root/init/send/srchgb", "2");
  903. btn_search.dispatch("DOMActivate");
  904. ]]>
  905. </script>
  906. </button>
  907. <group id="group2" style="left:0px; top:85px; width:310px; height:655px; ">
  908. <caption id="caption12" class="tit_2" style="left:0px; top:8px; width:151px; height:13px; ">
  909. <![CDATA[대기자리스트]]>
  910. <script type="javascript" ev:event="ondblclick">
  911. <![CDATA[
  912. var fileName = window.fileDialog("save", ",", false, model.getValue("/root/init/send/srchfromdd") + "_건진자", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  913. if (fileName != ""){
  914. grd_acptlst.saveExcel(fileName, "SheetName", true, true, "", "", true);
  915. }
  916. ]]>
  917. </script>
  918. </caption>
  919. <line id="line1" class="line_1" style="x1:0px; y1:24px; x2:309px; y2:24px; "/>
  920. <datagrid id="grd_allacptlst" nodeset="/root/main/acptlst/all" caption="등록번호^비자연번^한글성명^영문성명^성별^나이^패키지명^상태^건진시간^대기시간^orddd^단체명,^rrgstno1^rrgstno2^cmpycd^pkgcd^rsrvdd^rsrvno^cretno^진료과^건진구분^건진상세구분^acptremcnts^psptno^trnfileno^gender^brthdd" colwidth="68, 77, 62, 100, 40, 40, 150, 53, 42, 33, 45, 45, 46, 49, 44, 53, 46, 62, 45, 50, 57, 62, 40, 50, 50, 50, 50" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" colsep="^" style="left:0px; top:29px; width:308px; height:624px; ">
  921. <col ref="pid"/>
  922. <col ref="visano"/>
  923. <col ref="hngnm"/>
  924. <col ref="engnm"/>
  925. <col ref="sex" visibility="hidden"/>
  926. <col ref="age" visibility="hidden"/>
  927. <col ref="pkgnm"/>
  928. <col ref="statflag" type="combo" visibility="hidden" disabled="true">
  929. <choices>
  930. <itemset nodeset="/root/init/baseinfo/statlst/A0107">
  931. <label ref="cdnm"/>
  932. <value ref="cdid"/>
  933. </itemset>
  934. </choices>
  935. </col>
  936. <col ref="ordtm" visibility="hidden"/>
  937. <col ref="waitstarttm" visibility="hidden"/>
  938. <col ref="orddd" visibility="hidden"/>
  939. <col ref="cmpynm" visibility="hidden"/>
  940. <col ref="rgstno1" visibility="hidden"/>
  941. <col ref="rgstno2" visibility="hidden"/>
  942. <col ref="cmpycd" visibility="hidden"/>
  943. <col ref="pkgcd" visibility="hidden"/>
  944. <col ref="rsrvdd" visibility="hidden"/>
  945. <col ref="rsrvno" visibility="hidden"/>
  946. <col ref="cretno" visibility="hidden"/>
  947. <col ref="orddeptcd" visibility="hidden"/>
  948. <col ref="healexamflag" visibility="hidden"/>
  949. <col ref="healexamdetlflag" visibility="hidden"/>
  950. <col ref="acptremcnts" visibility="hidden"/>
  951. <col ref="psptno" visibility="hidden"/>
  952. <col ref="trnfileno" visibility="hidden"/>
  953. <col ref="gender" visibility="hidden"/>
  954. <col ref="brthdd" visibility="hidden"/>
  955. <script type="javascript" ev:event="onclick">
  956. <![CDATA[
  957. if (isDataCell()) {
  958. fGetRsltInfo();
  959. }
  960. ]]>
  961. </script>
  962. <script type="javascript" ev:event="onaftersort">
  963. <![CDATA[
  964. grd_acptlst.gridToInstance();
  965. ]]>
  966. </script>
  967. </datagrid>
  968. </group>
  969. <group id="grd_letter" ref="/root/main/acptinfo/rsltlst/letter" style="left:320px; top:313px; width:780px; height:420px; ">
  970. <caption id="caption1" class="cell_1" style="left:0px; top:103px; width:95px; height:85px; vertical-align:middle; ">Required tests</caption>
  971. <caption id="caption4" class="cell_1" style="left:0px; top:191px; width:95px; height:95px; vertical-align:middle; ">Result of required tests</caption>
  972. <caption id="caption5" class="cell_1" style="left:0px; top:290px; width:95px; height:101px; vertical-align:middle; ">Specialist Opnion</caption>
  973. <caption id="caption8" class="cell_1" style="left:0px; top:15px; width:95px; height:85px; vertical-align:middle; ">서브클래스</caption>
  974. <textarea id="tar_resultoftest" ref="/root/main/vsltlist/vsltinfo/resultoftest" style="left:98px; top:191px; width:662px; height:95px; "/>
  975. <textarea id="tar_specialoption" ref="/root/main/vsltlist/vsltinfo/specialoption" style="left:98px; top:290px; width:662px; height:101px; "/>
  976. <textarea id="tar_requiretest" ref="/root/main/vsltlist/vsltinfo/requiretest" style="left:98px; top:103px; width:662px; height:85px; "/>
  977. <textarea id="tar_subclass" ref="/root/main/vsltlist/vsltinfo/subclass" style="left:98px; top:15px; width:662px; height:85px; "/>
  978. <select1 id="cmb_doctordeptlst" ref="/root/main/acptinfo/rsltlst/letter/signdrdeptcd" class="combo_default" visibility="hidden" appearance="minimal" style="left:420px; top:392px; width:269px; height:19px; ">
  979. <choices>
  980. <itemset nodeset="/root/init/baseinfo/doctordeptlst/A0485">
  981. <label ref="cdnm"/>
  982. <value ref="cdid"/>
  983. </itemset>
  984. </choices>
  985. </select1>
  986. <caption id="caption10" class="cell_1" style="left:0px; top:396px; width:95px; height:21px; vertical-align:middle; ">서명의사</caption>
  987. <caption id="caption20" class="cell_1" visibility="hidden" style="left:329px; top:392px; width:84px; height:21px; vertical-align:middle; ">서명의사부서</caption>
  988. <select1 id="cmb_doctorlst" ref="/root/main/vsltlist/vsltinfo/letterdoctor" class="combo_default" appearance="minimal" style="left:98px; top:396px; width:207px; height:19px; ">
  989. <choices>
  990. <itemset nodeset="/root/init/baseinfo/drlst/itemdr">
  991. <label ref="drnm"/>
  992. <value ref="drid"/>
  993. </itemset>
  994. </choices>
  995. </select1>
  996. </group>
  997. <button id="btn_resultoftest" class="btn2_letter5" visibility="visible" style="left:325px; top:568px; width:75px; height:19px; ">
  998. <caption>내용선택</caption>
  999. <script type="javascript" ev:event="DOMActivate">
  1000. <![CDATA[
  1001. fGetVisaLetterCont(tar_resultoftest);
  1002. ]]>
  1003. </script>
  1004. </button>
  1005. <button id="btn_sepcialoption" class="btn2_letter5" visibility="visible" style="left:325px; top:673px; width:75px; height:19px; ">
  1006. <caption>내용선택</caption>
  1007. <script type="javascript" ev:event="DOMActivate">
  1008. <![CDATA[
  1009. fGetVisaLetterCont(tar_specialoption);
  1010. ]]>
  1011. </script>
  1012. </button>
  1013. <button id="btn_requiretest" class="btn2_letter5" visibility="visible" style="left:325px; top:468px; width:75px; height:19px; ">
  1014. <caption>내용선택</caption>
  1015. <script type="javascript" ev:event="DOMActivate">
  1016. <![CDATA[
  1017. fGetVisaLetterCont(tar_requiretest);
  1018. ]]>
  1019. </script>
  1020. </button>
  1021. <button id="btn_subclass" class="btn2_letter5" visibility="visible" style="left:325px; top:383px; width:75px; height:19px; ">
  1022. <caption>내용선택</caption>
  1023. <script type="javascript" ev:event="DOMActivate">
  1024. <![CDATA[
  1025. fGetVisaLetterCont(tar_subclass);
  1026. ]]>
  1027. </script>
  1028. </button>
  1029. <caption id="caption15" class="cell_1" style="left:320px; top:259px; width:95px; height:23px; vertical-align:middle; ">재검사항목</caption>
  1030. <input id="input1" ref="/root/main/vsltlist/vsltinfo/retestitem" style="left:417px; top:261px; width:663px; height:19px; "/>
  1031. <caption id="caption19" class="cell_1" style="left:795px; top:109px; width:64px; height:23px; vertical-align:middle; ">판정의</caption>
  1032. <input id="input2" ref="/root/main/acptinfo/item/judgdrid" disabled="true" style="left:862px; top:111px; width:103px; height:19px; "/>
  1033. <caption id="caption25" class="cell_1" style="left:968px; top:109px; width:69px; height:23px; vertical-align:middle; ">판정일자</caption>
  1034. <input id="input3" ref="/root/main/acptinfo/item/judgdd" disabled="true" format="yyyy-mm-dd" style="left:1040px; top:111px; width:150px; height:19px; text-align:center; "/>
  1035. <caption id="caption26" class="cell_1" style="left:320px; top:233px; width:95px; height:23px; vertical-align:middle; ">발송지</caption>
  1036. <caption id="caption27" class="cell_1" style="left:830px; top:233px; width:64px; height:23px; vertical-align:middle; ">발송일자</caption>
  1037. <input id="input5" ref="/root/main/vsltlist/vsltinfo/senddd" format="yyyy-mm-dd" style="left:897px; top:235px; width:103px; height:19px; text-align:center; "/>
  1038. <button id="button1" navindex="2" class="icon_search" style="left:1086px; top:263px; width:16px; height:16px; ">
  1039. <caption/>
  1040. <script type="javascript" ev:event="DOMActivate">
  1041. <![CDATA[
  1042. window.load( "SPAHR05010_코드조회(재검사항목).xrw","modal","code", "left:100px; top:150px; width:530px; height:380px;min:hidden;max:hidden;resize:false;" , "/root/main/vsltlist/vsltinfo/retestitem" , "/root/init/degnitemlevlcd" );
  1043. ]]>
  1044. </script>
  1045. </button>
  1046. <select1 id="combo1" ref="/root/main/vsltlist/vsltinfo/sendaddressflag" appearance="minimal" style="left:417px; top:235px; width:400px; height:19px; ">
  1047. <choices>
  1048. <itemset nodeset="/root/init/baseinfo/initsendaddress/combo">
  1049. <label ref="cdnm"/>
  1050. <value ref="cdid"/>
  1051. </itemset>
  1052. </choices>
  1053. </select1>
  1054. <caption id="caption28" class="cell_1" style="left:320px; top:209px; width:95px; height:23px; vertical-align:middle; ">재검레터구분</caption>
  1055. <select1 id="combo2" ref="/root/send/srchexamseq" appearance="minimal" style="left:417px; top:210px; width:135px; height:19px; ">
  1056. <choices>
  1057. <itemset nodeset="/root/init/baseinfo/initexaminfo/combo">
  1058. <label ref="examnm"/>
  1059. <value ref="examseq"/>
  1060. </itemset>
  1061. </choices>
  1062. <script type="javascript" ev:event="xforms-value-changed">
  1063. <![CDATA[
  1064. readfunc();
  1065. ]]>
  1066. </script>
  1067. </select1>
  1068. <caption id="caption13" class="tit_2" style="left:315px; top:190px; width:104px; height:13px; ">비자레터 정보</caption>
  1069. <input id="input6" ref="/root/main/vsltlist/vsltinfo/iudgb" visibility="hidden" style="left:1055px; top:210px; width:100px; height:20px; "/>
  1070. </group>
  1071. <group id="grp_btn" style="left:0px; top:756px; width:1195px; height:27px; ">
  1072. <line id="line30" style="x1:507px; y1:5px; x2:507px; y2:27px; border-color:#ffe4bb; border-left-style:solid; "/>
  1073. <line id="line31" style="x1:906px; y1:4px; x2:906px; y2:26px; border-color:#ffe4bb; border-left-style:solid; "/>
  1074. <line id="line47" style="x1:673px; y1:4px; x2:673px; y2:26px; border-color:#ffe4bb; border-left-style:solid; "/>
  1075. <button id="btn_outrsltview" class="btn3_letter6" style="left:0px; top:5px; width:104px; height:22px; ">
  1076. <caption>통합검사결과</caption>
  1077. <script type="javascript" ev:event="DOMActivate">
  1078. <![CDATA[
  1079. //ahafOpenRsltView(opt_pid.attribute("ref") );
  1080. modal("SMAER00800","","","","",opt_pid.attribute("ref"),"/root/send/data/singdata/srchpid");
  1081. ]]>
  1082. </script>
  1083. </button>
  1084. <button id="btn_colgjudg" class="btn3_letter6" visibility="hidden" style="left:400px; top:5px; width:104px; height:22px; ">
  1085. <caption>종합판정관리</caption>
  1086. <script type="javascript" ev:event="DOMActivate">
  1087. <![CDATA[
  1088. clearParameter("SMAHR00500_PARAM1");
  1089. clearParameter("SMAHR00500_PARAM2");
  1090. setParameter ("SMAHR00500_PARAM1", model.getValue("/root/main/acptlst/item[" + grd_acptlst.row + "]/healexamflag"));
  1091. setParameter ("SMAHR00500_PARAM2", model.getValue("/root/main/acptlst/item[" + grd_acptlst.row + "]/pid"));
  1092. modal("SMAHR00500");
  1093. ]]>
  1094. </script>
  1095. </button>
  1096. <button id="btn_letter_print" class="btn6_letter4" style="left:107px; top:5px; width:80px; height:22px; ">
  1097. <caption>레터출력</caption>
  1098. <script type="javascript" ev:event="DOMActivate">
  1099. <![CDATA[
  1100. copyNodesetType("/root/main/print/letter/patinfo","/root/main/acptinfo/item","replace");
  1101. copyNodesetType("/root/main/print/letter/letterinfo","/root/main/vsltlist/vsltinfo","replace");
  1102. exeReportPreview("RPAHR04610", "XMLSTR", "", "", "false","","","","","true", "", "");
  1103. ]]>
  1104. </script>
  1105. </button>
  1106. </group>
  1107. <button id="button5" class="btn5_letter4" disabled="true" style="left:1040px; top:761px; width:64px; height:19px; ">
  1108. <caption>레터저장</caption>
  1109. <script type="javascript" ev:event="DOMActivate">
  1110. <![CDATA[
  1111. if( messageBox("비자레터내역을 ", "Q002") == 6 ) {
  1112. if (submit("TXAHA04611")){
  1113. readfunc();
  1114. }
  1115. }
  1116. ]]>
  1117. </script>
  1118. </button>
  1119. <button id="button2" class="btn5_letter4" disabled="true" style="left:1110px; top:761px; width:64px; height:19px; ">
  1120. <caption>레터삭제</caption>
  1121. <script type="javascript" ev:event="DOMActivate">
  1122. <![CDATA[
  1123. if( messageBox("비자레터내역을 ", "Q001") == 6 ) {
  1124. model.setValue("/root/main/vsltlist/vsltinfo/iudgb", "D");
  1125. if (submit("TXAHA04611")){
  1126. readfunc();
  1127. }
  1128. }
  1129. ]]>
  1130. </script>
  1131. </button>
  1132. </xhtml:body>
  1133. </xhtml:html>