SMAHA00810_사후관리.xrw 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SMAHA00810_사후관리.xrw
  4. * 설 명 : 건진 유소견자 리스트
  5. * 설 계 자 : 조두현
  6. * 작 성 자 : 조두현
  7. * 작 성 일 : 2007.12.06
  8. * 수정이력 : 2007.12.21 조두현 판정마다 선택할 수 있게
  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. <actitem>
  20. <item>
  21. <syn/>
  22. <lstadverse/>
  23. <lstpid/>
  24. <lstnm/>
  25. <lstsex/>
  26. <lstage/>
  27. <lstaftercmt/>
  28. <lstrst/>
  29. <lsthealexamflag/>
  30. <lsthealexamdetlflag/>
  31. <testcd/>
  32. <testnm/>
  33. <cmpynm/>
  34. </item>
  35. <item2>
  36. <syn/>
  37. <lstsickcd/>
  38. <lstpid/>
  39. <lstnm/>
  40. <lstprgstno1/>
  41. <lstprgstno2/>
  42. <lstjudghangcnts/>
  43. </item2>
  44. </actitem>
  45. <pid/>
  46. <pnm/>
  47. </main>
  48. <send>
  49. <srchhealexamflag/>
  50. <srchfromdd/>
  51. <srchtodd/>
  52. <srchinstcd/>
  53. <item>
  54. <lstadverse/>
  55. <lstpid/>
  56. <lstnm/>
  57. <lstsex/>
  58. <lstage/>
  59. <lstaftercmt/>
  60. <lstrst/>
  61. <lsthealexamflag/>
  62. <lsthealexamdetlflag/>
  63. <testcd/>
  64. </item>
  65. <prntopt>
  66. <prntpaper/>
  67. <prntDetail/>
  68. </prntopt>
  69. <cmpcd/>
  70. <cmpnm/>
  71. <pana/>
  72. <panb/>
  73. <panc/>
  74. <pand/>
  75. <panr/>
  76. <panall/>
  77. <sick/>
  78. </send>
  79. <init>
  80. <baseinfo>
  81. <hedetflaglst/>
  82. </baseinfo>
  83. </init>
  84. <hidden>
  85. <ts>
  86. <test>
  87. <sickcd/>
  88. <sicknm/>
  89. </test>
  90. </ts>
  91. </hidden>
  92. <temp>
  93. <item/>
  94. </temp>
  95. </root>
  96. </instance>
  97. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  98. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  99. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  100. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  101. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  102. <script type="javascript" src="../../../ast/healexamweb/js/AHA001.js"/>
  103. <script type="javascript" ev:event="xforms-ready">
  104. <![CDATA[
  105. {
  106. //종건선택
  107. model.toggle("case_sch");
  108. //판정조회 선택
  109. model.toggle("case_judg");
  110. btn_judg.selected = true;
  111. fGetBasicCdList();
  112. fSrchInit();
  113. fInit(false );
  114. //전체선택 미리 세팅(판정미리 전체 선택하는거임)
  115. model.setValue("/root/send/panall","Y");
  116. model.setValue("/root/send/pana","A");
  117. model.setValue("/root/send/panb","B");
  118. model.setValue("/root/send/panc","C");
  119. model.setValue("/root/send/pand","D");
  120. model.setValue("/root/send/panr","R");
  121. model.refresh();
  122. btn_search.disabled = !checkAuth("R");
  123. btn_print.disabled = !checkAuth("R");
  124. btn_sickcd.visible = false;
  125. btn_judg.visible = true;
  126. }
  127. ]]>
  128. </script>
  129. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  130. <submission id="TRAHB00710" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/actitem"/>
  131. <submission id="TRAHB00711" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/actitem"/>
  132. </model>
  133. <script type="javascript">
  134. <![CDATA[
  135. //건진분류를 하기위한 변수
  136. var m_vHealexamflag = "";
  137. /**===================================================================================
  138. *초기화
  139. * bDetl => true : 건진자별 상세내역만 초기화
  140. =====================================================================================*/
  141. function fInit(bDetl){
  142. model.removeNodeset(grd_advtlst.nodeset);
  143. model.removeNodeset(grd_sicklst.nodeset);
  144. var cur_date = getCurrentDate();
  145. cmb_Paper.select(0);
  146. cmb_prntflag.select(0);
  147. model.refresh();
  148. }
  149. /**===================================================================================
  150. ** 조회조건 초기화
  151. =====================================================================================*/
  152. function fSrchInit(){
  153. cmb_healexamflag.refresh();
  154. cmb_healexamflag.select(0);
  155. var cur_date = getCurrentDate();
  156. model.setValue(ip_fromdd.attribute("ref") , cur_date);
  157. model.setValue(ip_todd.attribute("ref") , cur_date);
  158. }
  159. /**===================================================================================
  160. *기본코드 내역 가져오기
  161. =====================================================================================*/
  162. function fGetBasicCdList(){
  163. btn_search.selected= true;
  164. if( m_vHealexamflag == "" ) {
  165. m_vHealexamflag = fGetHealExamFlag();
  166. }
  167. openLoadingBar("기초정보 ") ;//처리중 화면을 오픈한다.
  168. zbcfGetCodeList( new Array("A0069")
  169. , new Array( "/root/init/baseinfo/hedetflaglst") );
  170. closeLoadingBar() ;//처리중 화면을 close한다.
  171. }
  172. /**===================================================================================
  173. @desc : 건진내역 콤보박스 선택 시 해당 선택건진 key 값 얻기
  174. @param : index , param(rsrvdd, rsrvno, pkgnm, pkgcd )
  175. =====================================================================================*/
  176. function fGetRsrvInfoFromHistory(vCmbIndex, vParam ){
  177. if( vCmbIndex < 0 ) return "";
  178. var ndlist = instance1.selectNodes("/root/temp/histlst/item");
  179. if( ndlist == null ) return "";
  180. if( ndlist.length < 1) return ;
  181. var ret = "";
  182. if( vParam == "rsrvdd"){
  183. ret = ndlist.item(vCmbIndex).rsrvdd.text ;
  184. }
  185. else if( vParam == "rsrvno"){
  186. ret = ndlist.item(vCmbIndex).rsrvno.text ;
  187. }
  188. else if( vParam == "pkgnm"){
  189. ret = ndlist.item(vCmbIndex).pkgnm.text ;
  190. }
  191. else if( vParam == "pkgcd"){
  192. ret = ndlist.item(vCmbIndex).pkgcd.text ;
  193. }
  194. else if( vParam == "pid"){
  195. ret = ndlist.item(vCmbIndex).pid.text ;
  196. }
  197. else if( vParam == "orddd"){
  198. ret = ndlist.item(vCmbIndex).orddd.text ;
  199. }
  200. else if( vParam == "cretno"){
  201. ret = ndlist.item(vCmbIndex).cretno.text ;
  202. }
  203. else if( vParam == "healexamflag"){
  204. ret = ndlist.item(vCmbIndex).healexamflag.text ;
  205. }
  206. return ret ;
  207. }
  208. /*=====================================================================================
  209. @desc : 환자번호로 건진자 정보 가져오기...
  210. =====================================================================================*/
  211. function fGetPatinfoWithPid(sPid ) {
  212. if( sPid == "" ) return ;
  213. if( ahafGetPatInfo(2, sPid, "" , "/root/init/send/item2" )==true ) {
  214. //해당환자의 건진history조회
  215. ahafGetHistList2(sPid, cmb_srchhealexamdetlflag.value , "G");
  216. }
  217. }
  218. /*=====================================================================================
  219. @desc : 유해인자 리스트 조회 얻어오기(C,R)
  220. =====================================================================================*/
  221. function fGetAdverse(){
  222. //건진분류를 얻어오기
  223. var vHealexamflag=fGetHealExamFlag();
  224. //건진분류된것이 없다면
  225. if(vHealexamflag=="") return;
  226. model.setValue("/root/send/srchhealexamflag" ,"C");
  227. model.setValue("/root/send/srchfromdd" ,getRemoveFormatter(ip_fromdd.currentText));
  228. model.setValue("/root/send/srchtodd" ,getRemoveFormatter(ip_todd.currentText));
  229. model.setValue("/root/send/srchinstcd" , getUserInfo("dutplceinstcd") );
  230. model.setValue("/root/send/pana",chk_a.value);
  231. model.setValue("/root/send/panb",chk_b.value);
  232. model.setValue("/root/send/panc",chk_c.value);
  233. model.setValue("/root/send/pand",chk_d.value);
  234. model.setValue("/root/send/panr",chk_r.value);
  235. // model.setValue("/root/send/sick",chk_sick.value);
  236. //사업장 입력시 서브밋 설정
  237. if(ipt_concmpycd.currentText =="") {
  238. submit("TRAHB00710");
  239. }else {
  240. model.setValue("/root/send/cmpcd",ipt_concmpycd.currentText);
  241. submit("TRAHB00711");
  242. }
  243. }
  244. /*=====================================================================================
  245. @desc : 질환코드로 조회시
  246. =====================================================================================*/
  247. function fGetSickCd(){
  248. //건진분류를 얻어오기
  249. var vHealexamflag=fGetHealExamFlag();
  250. //건진분류된것이 없다면
  251. if(vHealexamflag=="") return;
  252. model.setValue("/root/send/srchhealexamflag" ,"C");
  253. model.setValue("/root/send/srchfromdd" ,getRemoveFormatter(ip_fromdd.currentText));
  254. model.setValue("/root/send/srchtodd" ,getRemoveFormatter(ip_todd.currentText));
  255. model.setValue("/root/send/srchinstcd" , getUserInfo("dutplceinstcd") );
  256. model.setValue("/root/send/sick",chk_sick.value);
  257. //사업장 입력시 서브밋 설정
  258. if(ipt_concmpycd.currentText =="") {
  259. submit("TRAHB00710");
  260. }else {
  261. model.setValue("/root/send/cmpcd",ipt_concmpycd.currentText);
  262. submit("TRAHB00711");
  263. }
  264. }
  265. /*=====================================================================================
  266. @desc : 유해인자 리스트 전체 선택
  267. =====================================================================================*/
  268. function allSelectadverse(){
  269. var iRowCount;
  270. //행이 하나도 없다면
  271. if (grd_advtlst.rows<1) return
  272. for (iRowCount=1;iRowCount<grd_advtlst.rows;iRowCount++){
  273. grd_advtlst.valueMatrix(iRowCount,1)="Y";
  274. }
  275. model.refresh();
  276. }
  277. /*=====================================================================================
  278. @desc : 유해인자 리스트 전체 선택 해제
  279. =====================================================================================*/
  280. function allunSelectadverse(){
  281. var iRowCount;
  282. for (iRowCount=1;iRowCount<grd_advtlst.rows;iRowCount++){
  283. grd_advtlst.valueMatrix(iRowCount,1)="N";
  284. }
  285. model.refresh();
  286. }
  287. /*=====================================================================================
  288. @desc : 유해인자 선택한것만 리스트 출력
  289. =====================================================================================*/
  290. function fPrntAdverse(){
  291. //저장 할 변수 확인
  292. var vPrntFg =cmb_prntflag.value;
  293. //페이퍼가 아니라면
  294. if( vPrntFg != "paper" ) {
  295. exeReportPreview("RPAHR00701", "XMLSTR" , "/root/main/actitem/item", "" ,"false" /*출력여부*/ , "", vPrntFg /*저장타입*/,"유소견자" /*파일명*/ , "", "false" );
  296. }
  297. else {
  298. exeReportPreview("RPAHR00701", "XMLSTR" , "/root/main/actitem/item" , "" ,"true" , "", "", "", "", "false" );
  299. }
  300. }
  301. ]]>
  302. </script>
  303. </xhtml:head>
  304. <xhtml:body guideline="1,1195;2,757;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  305. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  306. <caption id="caption19" class="tit_1" style="left:0px; top:0px; width:75px; height:13px; ">사후관리</caption>
  307. </group>
  308. <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  309. <switch id="switch1" style="left:3px; top:25px; width:1190px; height:713px; border-color:#c7a3cf; border-style:solid; ">
  310. <case id="case_sch" selected="true" style="left:0px; top:0px; width:1188px; height:711px; ">
  311. <caption id="caption15" class="tit_2" style="left:5px; top:53px; width:151px; height:13px; ">유소견자 리스트</caption>
  312. <group id="group1" scroll="auto" style="left:5px; top:9px; width:1165px; height:40px; vertical-align:top; ">
  313. <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1165px; height:40px; background-color:#fffbf2; border-color:#ffd799; "/>
  314. <caption id="caption1" class="search_name" style="left:6px; top:10px; width:89px; height:17px; ">건진종류 :</caption>
  315. <button id="button4" class="btn1_letter2" style="left:1100px; top:10px; width:56px; height:22px; ">
  316. <caption>조회</caption>
  317. <script type="javascript" ev:event="DOMActivate">
  318. <![CDATA[
  319. //선택된 유소견자 조회
  320. //A,B,C,D,R
  321. var val = btn_sickcd.attribute("visibility");
  322. if(val == "hidden"){
  323. fGetAdverse();
  324. }else{
  325. fGetSickCd();
  326. }
  327. //컨트롤 초기화
  328. fSrchInit();
  329. ]]>
  330. </script>
  331. </button>
  332. <select1 id="cmb_healexamflag" ref="/root/send/srchhealexamflag" class="combo_s_essential" appearance="minimal" style="left:95px; top:10px; width:85px; height:19px; ">
  333. <choices>
  334. <itemset nodeset="/root/init/baseinfo/hedetflaglst/A0069">
  335. <label ref="cdnm"/>
  336. <value ref="cdid"/>
  337. </itemset>
  338. </choices>
  339. </select1>
  340. <input id="ipt_pnm" ref="/root/main/pnm" class="input_default" style="left:975px; top:10px; width:120px; height:19px; ">
  341. <script type="javascript" ev:event="onkeyup">
  342. <![CDATA[
  343. inputEnterKey("btn_search2","DOMActivate" );
  344. ]]>
  345. </script>
  346. </input>
  347. <input id="ipt_pid" ref="/root/main/pid" class="input_default" style="left:855px; top:10px; width:105px; height:19px; ">
  348. <script type="javascript" ev:event="onkeyup">
  349. <![CDATA[
  350. inputEnterKey("btn_search2", "DOMActivate");
  351. if( event.keyCode == 13 ){
  352. //건진자 정보 가져오기...
  353. fGetPatinfoWithPid(ipt_pid.currentText);
  354. }
  355. ]]>
  356. </script>
  357. </input>
  358. <caption id="caption2" class="search_name" style="left:770px; top:10px; width:89px; height:17px; ">등록번호 :</caption>
  359. <output id="opt_sex" ref="/root/send/item1/srchsex" class="output_fix" visibility="hidden" style="left:1020px; top:10px; width:33px; height:19px; "/>
  360. <output id="opt_age" ref="/root/send/item1/srchage" class="output_fix" visibility="hidden" style="left:1055px; top:10px; width:33px; height:19px; "/>
  361. <button id="btn_search2" class="icon_search" style="left:960px; top:10px; width:16px; height:16px; ">
  362. <caption/>
  363. <script type="javascript" ev:event="DOMActivate">
  364. <![CDATA[
  365. if(ipt_pid.currentText != ""){
  366. fSearchPatInfo("SMAHA00810", "pid", ipt_pid.currentText , "N", "/root/main" ,ipt_pid.attribute("ref"), ipt_pnm.attribute("ref") );
  367. }else{
  368. fSearchPatInfo("SMAHA00810", "pnm", ipt_pnm.currentText , "N", "/root/main" ,ipt_pid.attribute("ref"), ipt_pnm.attribute("ref") );
  369. }
  370. var vPid = model.getValue(ipt_pid.attribute("ref")) ;
  371. if( vPid != "" ) {
  372. }
  373. ]]>
  374. </script>
  375. </button>
  376. <input id="ip_todd" ref="/root/send/srchtodd" class="input_s_essential" inputtype="date" style="left:235px; top:10px; width:95px; height:19px; ">
  377. <script type="javascript" ev:event="xforms-value-changed">
  378. <![CDATA[
  379. //fGetList();
  380. ]]>
  381. </script>
  382. </input>
  383. <caption id="caption9" class="search_name" style="left:182px; top:10px; width:64px; height:17px; ">일자 :</caption>
  384. <input id="ip_fromdd" ref="/root/send/srchfromdd" class="input_s_essential" inputtype="date" style="left:336px; top:10px; width:95px; height:19px; "/>
  385. <caption id="caption14" class="search_name" style="left:431px; top:10px; width:89px; height:17px; ">단체코드 :</caption>
  386. <button id="btn_cmpysel" class="icon_search" style="left:612px; top:10px; width:16px; height:16px; ">
  387. <caption/>
  388. <script type="javascript" ev:event="DOMActivate">
  389. <![CDATA[
  390. //단체 코드 불러오기
  391. fGetComnCd("SMAHA00810", "08", "cd", ipt_concmpycd.currentText , "/root/send/cmpcd", "/root/send/cmpnm");
  392. ]]>
  393. </script>
  394. </button>
  395. <output id="opt_concmpynm" ref="/root/send/cmpnm" class="output_fix" style="left:635px; top:10px; width:132px; height:19px; "/>
  396. <input id="ipt_concmpycd" ref="/root/send/cmpcd" class="input_essential" style="left:519px; top:10px; width:85px; height:19px; ">
  397. <script type="javascript" ev:event="onkeyup">
  398. <![CDATA[
  399. //단체코드 불러오기
  400. if( event.keyCode == 13 ){
  401. fGetComnCd("SMAHA00810", "08", "nm", ipt_concmpycd.currentText , "/root/send/cmpcd", "/root/send/cmpnm");
  402. }
  403. ]]>
  404. </script>
  405. </input>
  406. </group>
  407. <button id="button1" class="btn3_letter4" style="left:5px; top:75px; width:80px; height:22px; ">
  408. <caption>일괄선택</caption>
  409. <script type="javascript" ev:event="DOMActivate">
  410. <![CDATA[
  411. //일괄선택하는 이벤트
  412. allSelectadverse();
  413. ]]>
  414. </script>
  415. </button>
  416. <select1 id="cmb_Paper" ref="/root/send/prntopt/prntpaper" class="combo_default" disabled="false" appearance="minimal" style="left:265px; top:75px; width:139px; height:19px; ">
  417. <choices>
  418. <item>
  419. <label>A4</label>
  420. <value>01</value>
  421. </item>
  422. </choices>
  423. </select1>
  424. <caption id="caption11" class="cell_1" style="left:407px; top:74px; width:80px; height:23px; vertical-align:middle; ">출력구분</caption>
  425. <caption id="caption3" class="tit_2" style="left:185px; top:55px; width:74px; height:13px; ">출력옵션</caption>
  426. <line id="line1" class="line_1" style="x1:185px; y1:70px; x2:650px; y2:70px; "/>
  427. <select1 id="cmb_prntflag" ref="/root/send/prntopt/prntDetail" class="combo_default" appearance="minimal" style="left:490px; top:75px; width:154px; height:19px; ">
  428. <choices>
  429. <item>
  430. <label>Paper</label>
  431. <value>paper</value>
  432. </item>
  433. <item>
  434. <label>Excel</label>
  435. <value>xls</value>
  436. </item>
  437. <item>
  438. <label>PDF</label>
  439. <value>pdf</value>
  440. </item>
  441. <item>
  442. <label>HTML</label>
  443. <value>html</value>
  444. </item>
  445. <item>
  446. <label>Bmp</label>
  447. <value>bmp</value>
  448. </item>
  449. <item>
  450. <label>txt-File</label>
  451. <value>txt</value>
  452. </item>
  453. <item>
  454. <label>Xml</label>
  455. <value>xml</value>
  456. </item>
  457. </choices>
  458. </select1>
  459. <caption id="caption4" class="cell_1" style="left:182px; top:74px; width:80px; height:23px; vertical-align:middle; ">출력용지</caption>
  460. <line id="line2" class="line_1" style="x1:7px; y1:70px; x2:172px; y2:70px; "/>
  461. <button id="button2" class="btn3_letter4" style="left:90px; top:75px; width:80px; height:22px; ">
  462. <caption>일괄해제</caption>
  463. <script type="javascript" ev:event="DOMActivate">
  464. <![CDATA[
  465. //일괄해제 하는 함수
  466. allunSelectadverse();
  467. ]]>
  468. </script>
  469. </button>
  470. <caption id="cap_title" class="tit_2" style="left:675px; top:55px; width:74px; height:13px; ">판정선택</caption>
  471. <line id="line3" class="line_1" style="x1:675px; y1:70px; x2:1140px; y2:70px; "/>
  472. <select id="chk_all" ref="/root/send/panall" overflow="visible" appearance="full" cols="4" rows="1" style="left:675px; top:75px; width:75px; height:15px; border-style:none; ">
  473. <choices>
  474. <item>
  475. <label>전체선택</label>
  476. <value>Y</value>
  477. </item>
  478. </choices>
  479. <script type="javascript" ev:event="xforms-select">
  480. <![CDATA[
  481. //전체선택 이벤트
  482. model.setValue("/root/send/pana","A");
  483. model.setValue("/root/send/panb","B");
  484. model.setValue("/root/send/panc","C");
  485. model.setValue("/root/send/pand","D");
  486. model.setValue("/root/send/panr","R");
  487. model.refresh();
  488. ]]>
  489. </script>
  490. <script type="javascript" ev:event="xforms-deselect">
  491. <![CDATA[
  492. chk_all.selected=false;
  493. //전체해제 이벤트
  494. model.setValue("/root/send/pana","");
  495. model.setValue("/root/send/panb","");
  496. model.setValue("/root/send/panc","");
  497. model.setValue("/root/send/pand","");
  498. model.setValue("/root/send/panr","");
  499. model.refresh();
  500. ]]>
  501. </script>
  502. </select>
  503. <select id="chk_a" ref="/root/send/pana" overflow="visible" appearance="full" cols="4" rows="1" style="left:753px; top:75px; width:75px; height:15px; border-style:none; ">
  504. <choices>
  505. <item>
  506. <label>A판정</label>
  507. <value>A</value>
  508. </item>
  509. </choices>
  510. <script type="javascript" ev:event="xforms-select">
  511. <![CDATA[
  512. //A판정 선택시 이벤트
  513. model.setValue("/root/send/pana","A");
  514. ]]>
  515. </script>
  516. <script type="javascript" ev:event="xforms-deselect">
  517. <![CDATA[
  518. //A판정 미선택시 이벤트
  519. model.setValue("/root/send/pana","");
  520. ]]>
  521. </script>
  522. </select>
  523. <select id="chk_b" ref="/root/send/panb" overflow="visible" appearance="full" cols="4" rows="1" style="left:831px; top:75px; width:75px; height:15px; border-style:none; ">
  524. <choices>
  525. <item>
  526. <label>B판정</label>
  527. <value>B</value>
  528. </item>
  529. </choices>
  530. <script type="javascript" ev:event="xforms-select">
  531. <![CDATA[
  532. // B판정 선택시 이벤트
  533. model.setValue("/root/send/panb","B");
  534. ]]>
  535. </script>
  536. <script type="javascript" ev:event="xforms-deselect">
  537. <![CDATA[
  538. //B판정 미선택시 이벤트
  539. model.setValue("/root/send/panb","");
  540. ]]>
  541. </script>
  542. </select>
  543. <select id="chk_c" ref="/root/send/panc" overflow="visible" appearance="full" cols="4" rows="1" style="left:909px; top:75px; width:75px; height:15px; border-style:none; ">
  544. <choices>
  545. <item>
  546. <label>C판정</label>
  547. <value>C</value>
  548. </item>
  549. </choices>
  550. <script type="javascript" ev:event="xforms-select">
  551. <![CDATA[
  552. //C판정 선택시 이벤트
  553. model.setValue("/root/send/panc","C");
  554. ]]>
  555. </script>
  556. <script type="javascript" ev:event="xforms-deselect">
  557. <![CDATA[
  558. //C판정 미선택시 이벤트
  559. model.setValue("/root/send/panc","");
  560. ]]>
  561. </script>
  562. </select>
  563. <select id="chk_d" ref="/root/send/pand" overflow="visible" appearance="full" cols="4" rows="1" style="left:987px; top:75px; width:75px; height:15px; border-style:none; ">
  564. <choices>
  565. <item>
  566. <label>D판정</label>
  567. <value>D</value>
  568. </item>
  569. </choices>
  570. <script type="javascript" ev:event="xforms-select">
  571. <![CDATA[
  572. //D판정 선택시 이벤트
  573. model.setValue("/root/send/pand","D");
  574. ]]>
  575. </script>
  576. <script type="javascript" ev:event="xforms-deselect">
  577. <![CDATA[
  578. //D판정 미선택시 이벤트
  579. model.setValue("/root/send/pand","");
  580. ]]>
  581. </script>
  582. </select>
  583. <select id="chk_r" ref="/root/send/panr" overflow="visible" appearance="full" cols="4" rows="1" style="left:1065px; top:75px; width:75px; height:15px; border-style:none; ">
  584. <choices>
  585. <item>
  586. <label>R판정</label>
  587. <value>R</value>
  588. </item>
  589. </choices>
  590. <script type="javascript" ev:event="xforms-select">
  591. <![CDATA[
  592. //R 판정 선택시 이벤트
  593. model.setValue("/root/send/panr","R");
  594. ]]>
  595. </script>
  596. <script type="javascript" ev:event="xforms-deselect">
  597. <![CDATA[
  598. //R판정 미선택시 이벤트
  599. model.setValue("/root/send/panr","");
  600. ]]>
  601. </script>
  602. </select>
  603. <button id="btn_sickcd" class="btn2_letter4" overflow="visible" style="left:1075px; top:75px; width:64px; height:19px; ">
  604. <caption>질환코드</caption>
  605. <script type="javascript" ev:event="DOMActivate">
  606. <![CDATA[
  607. var cnt = chk_sick.length;
  608. ahafGetSickCd("SMAHB00800", "", "", cnt , "/root/hidden/ts/test" );
  609. if( model.getValue( "/root/temp/okflag") == "Y" ){
  610. chk_sick.visible = true;
  611. for( var i = 0 ; i < chk_sick.length ; i++){
  612. chk_sick.select(i);
  613. }
  614. }
  615. ]]>
  616. </script>
  617. </button>
  618. <select id="chk_sick" ref="/root/send/sick" overflow="visible" appearance="full" cellspacing="1" cols="2" sep="^" style="left:675px; top:75px; width:100px; height:20px; border-style:none; ">
  619. <choices>
  620. <itemset nodeset="/root/hidden/ts/test">
  621. <label ref="sicknm"/>
  622. <value ref="sickcd"/>
  623. </itemset>
  624. </choices>
  625. </select>
  626. <switch id="switch2" style="left:5px; top:130px; width:1178px; height:575px; ">
  627. <case id="case_judg" selected="true">
  628. <datagrid id="grd_advtlst" nodeset="/root/main/actitem/item" visibility="visible" caption="선택^판정코드^등록번호^성명^성별^연령^테스트코드^테스트이름^검사결과^건진소견^단체이름^건강구분^판정세부코드" colsep="^" colwidth="50, 60, 100, 90, 60, 60, 100, 145, 200, 350, 100, 100, 60" explorerbar="sortshow" mergecellsfixedcols="byrestriccol" mergecellsfixedrows="bycolrec" rowheader="select" rowsep="|" selectionmode="byrow" style="left:5px; top:5px; width:1166px; height:563px; text-align:center; vertical-align:middle; ">
  629. <col checkvalue="Y,N" ref="syn" type="checkbox"/>
  630. <col ref="lstadverse" style="left:41px; top:23px; width:60px; height:23px; "/>
  631. <col ref="lstpid" visibility="hidden" style="text-align:center; "/>
  632. <col ref="lstnm" style="text-align:center; "/>
  633. <col ref="lstsex" style="text-align:center; vertical-align:middle; "/>
  634. <col ref="lstage"/>
  635. <col ref="testcd"/>
  636. <col ref="testnm"/>
  637. <col ref="lstrst" style="left:682px; top:23px; width:218px; height:23px; "/>
  638. <col ref="lstaftercmt"/>
  639. <col ref="cmpynm" visibility="hidden"/>
  640. <col disabled="true" ref="lsthealexamflag" visibility="hidden" style="left:1120px; top:23px; width:100px; height:23px; "/>
  641. <col disabled="true" ref="lsthealexamdetlflag" visibility="hidden"/>
  642. <script type="javascript" ev:event="onclick">
  643. <![CDATA[
  644. //fGetRsltInfo();
  645. ]]>
  646. </script>
  647. <script type="javascript" ev:event="onaftersort">
  648. <![CDATA[
  649. grd_advtlst.gridToInstance();
  650. ]]>
  651. </script>
  652. <script type="javascript" ev:event="oncopy">
  653. <![CDATA[
  654. grid_oncopy();
  655. ]]>
  656. </script>
  657. </datagrid>
  658. </case>
  659. <case id="case_sick">
  660. <datagrid id="grd_sicklst" nodeset="/root/main/actitem/item2" visibility="visible" caption="선택^질병코드^등록번호^질환명^성명^주민번호1^주민번호2^소견" colsep="^" colwidth="50, 100, 100, 150, 150, 100, 100, 400" explorerbar="sortshow" mergecellsfixedcols="byrestriccol" mergecellsfixedrows="bycolrec" rowheader="select" rowsep="|" selectionmode="byrow" style="left:5px; top:5px; width:1166px; height:563px; text-align:center; vertical-align:middle; ">
  661. <col checkvalue="Y,N" ref="syn" type="checkbox"/>
  662. <col ref="lstsickcd" style="left:41px; top:23px; width:60px; height:23px; "/>
  663. <col ref="lstpid" style="text-align:center; "/>
  664. <col ref="lstnm" style="text-align:center; "/>
  665. <col ref="lstprgstno1" style="text-align:center; "/>
  666. <col ref="lstprgstno2" style="text-align:center; vertical-align:middle; "/>
  667. <col ref="lstjudghangcnts" style="text-align:center; vertical-align:middle; "/>
  668. <col ref="lstjudghangcnts"/>
  669. <script type="javascript" ev:event="onclick">
  670. <![CDATA[
  671. //fGetRsltInfo();
  672. ]]>
  673. </script>
  674. <script type="javascript" ev:event="onaftersort">
  675. <![CDATA[
  676. grd_advtlst.gridToInstance();
  677. ]]>
  678. </script>
  679. <script type="javascript" ev:event="oncopy">
  680. <![CDATA[
  681. grid_oncopy();
  682. ]]>
  683. </script>
  684. </datagrid>
  685. </case>
  686. </switch>
  687. <button id="btn_judg" class="btn_sw" group="tab" selected="true" style="left:8px; top:110px; width:80px; height:22px; ">
  688. <caption>판정조회</caption>
  689. <script type="javascript" ev:event="onclick">
  690. <![CDATA[
  691. model.toggle("case_judg");
  692. btn_judg.selected = true;
  693. btn_sickcd.attribute("visibility") = "hidden";
  694. chk_sick.attribute("visibility") = "hidden";
  695. chk_all.attribute("visibility") = "visible";
  696. chk_a.attribute("visibility") = "visible";
  697. chk_b.attribute("visibility") = "visible";
  698. chk_c.attribute("visibility") = "visible";
  699. chk_d.attribute("visibility") = "visible";
  700. chk_r.attribute("visibility") = "visible";
  701. cap_title.value = "판정선택";
  702. ]]>
  703. </script>
  704. </button>
  705. <button id="btn_sick" class="btn_sw" visibility="visible" group="tab" selected="true" style="left:88px; top:110px; width:85px; height:22px; ">
  706. <caption>질환조회</caption>
  707. <script type="javascript" ev:event="onclick">
  708. <![CDATA[
  709. model.toggle("case_sick");
  710. btn_sick.selected = true;
  711. btn_sickcd.attribute("visibility") = "visible";
  712. chk_sick.attribute("visibility") = "visible";
  713. chk_all.attribute("visibility") = "hidden";
  714. chk_a.attribute("visibility") = "hidden";
  715. chk_b.attribute("visibility") = "hidden";
  716. chk_c.attribute("visibility") = "hidden";
  717. chk_d.attribute("visibility") = "hidden";
  718. chk_r.attribute("visibility") = "hidden";
  719. cap_title.value = "질환선택";
  720. ]]>
  721. </script>
  722. </button>
  723. </case>
  724. <case id="case_rep"/>
  725. </switch>
  726. <button id="btn_search" class="btn_sw" group="tab" selected="true" style="left:3px; top:5px; width:80px; height:22px; ">
  727. <caption>종건조회</caption>
  728. <toggle case="case_sch" ev:event="onclick"/>
  729. </button>
  730. <button id="btn_print" class="btn_sw" disabled="true" visibility="hidden" group="tab" selected="true" style="left:83px; top:5px; width:85px; height:22px; ">
  731. <caption>일건조회</caption>
  732. <toggle case="case_rep" ev:event="onclick"/>
  733. </button>
  734. </group>
  735. <group id="grp_btn" style="left:0px; top:754px; width:1195px; height:27px; ">
  736. <button id="btn_clear" class="btn4_letter3" style="left:1122px; top:5px; width:68px; height:22px; ">
  737. <caption>초기화</caption>
  738. <script type="javascript" ev:event="DOMActivate">
  739. <![CDATA[
  740. //초기화 하기위한 함수
  741. fInit(false );
  742. ]]>
  743. </script>
  744. </button>
  745. <button id="btn_selprnt" class="btn3_letter2" style="left:0px; top:3px; width:56px; height:22px; ">
  746. <caption>출력</caption>
  747. <script type="javascript" ev:event="DOMActivate">
  748. <![CDATA[
  749. fPrntAdverse();
  750. //exeReportPreview("RPAHR00701", "XMLSTR" , "/root/main/actitem/item");
  751. ]]>
  752. </script>
  753. </button>
  754. </group>
  755. </xhtml:body>
  756. </xhtml:html>