SMLLR00200_검체별결과관리.xrw 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SMLLR00200.xrw
  4. * 설 명 : 검체별결과관리
  5. * 설 계 자 : (주)에이씨케이 -
  6. * 작 성 자 : (주)에이씨케이 - 조철형
  7. * 작 성 일 : 2007.3.5
  8. * 수정이력 :
  9. * 기 타 :
  10. -->
  11. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.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. <testpatlist>
  20. <patlist>
  21. <chk/>
  22. <bcno/>
  23. <pid/>
  24. <hngnm/>
  25. </patlist>
  26. </testpatlist>
  27. </main>
  28. <send>
  29. </send>
  30. <init>
  31. <LB0106>
  32. <cd/>
  33. <nm/>
  34. </LB0106>
  35. </init>
  36. <hidden>
  37. <refparam>
  38. <searchflag>1</searchflag>
  39. <searchtext/>
  40. <startdd/>
  41. <starttm/>
  42. <enddd/>
  43. <endtm/>
  44. <tsectcd/>
  45. <rstflag>2</rstflag>
  46. <testlrgkind/>
  47. <sectcd/>
  48. <erflag/>
  49. <trobrslt/>
  50. </refparam>
  51. <abresult>
  52. </abresult>
  53. <testpatlist>
  54. </testpatlist>
  55. <pat/>
  56. <xrwg>gcb</xrwg>
  57. </hidden>
  58. </root>
  59. </instance>
  60. <script type="javascript" ev:event="xforms-model-construct-done">
  61. <![CDATA[
  62. fBaseInfoRef("0106|0108|0109|0111|0210|0000|0124|1005|0128|"); //0128 특정검사항목 있을때 messagebox로 알려주는 검사항목 리스트 추가 20090723
  63. model.setvalue("/root/hidden/refparam/sectcd", model.getvalue("/root/init/LB0111/cd"));
  64. model.setvalue("/root/hidden/refparam/tsectcd", model.getvalue("/root/init/LB0106/cd"));
  65. model.setvalue("/root/hidden/refparam/startdd",getCurrentDate());
  66. model.setValue("/root/hidden/refparam/starttm", "0000");
  67. model.setvalue("/root/hidden/refparam/enddd",getCurrentDate());
  68. model.setValue("/root/hidden/refparam/endtm", "2359");
  69. model.setValue("/root/hidden/refparam/trobrslt", "0");
  70. combo4.disabled = true;
  71. model.refresh();
  72. ]]>
  73. </script>
  74. <submission id="TRLLR00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/hidden/testpatlist"/>
  75. <submission id="TRLZZ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init"/>
  76. </model>
  77. <script type="javascript">
  78. <![CDATA[
  79. function fSetRefFromdd() {
  80. var fromdd = model.getValue("/root/hidden/refparam/startdd");
  81. var todd = model.getValue("/root/hidden/refparam/enddd");
  82. var mDate = todd.toDate("YYYYMMDD").getAddDate(-3);
  83. if(mDate.getDateFormat("YYYYMMDD") > fromdd) {
  84. messageBox("환자개별 조회 이외의 검색구간은 최대 3일까지","E008");
  85. var mr = messageBox("최대 3일 조회","S001"); //메세지에서 선택한 값.
  86. if(mr == "6") {
  87. model.setValue("/root/hidden/refparam/startdd", mDate.getDateFormat("YYYYMMDD"));
  88. //model.setValue("/root/send/data1/sdate", model.getValue("/root/hidden/JoHoiFlag/sdate"));
  89. model.refresh();
  90. return true;
  91. } else if(mr == "2") {
  92. return false;
  93. } else{
  94. return true;
  95. }
  96. }else if(todd < fromdd) {
  97. messageBox("기간설정이 잘못", "E005");
  98. return false;
  99. }else {
  100. return true;
  101. }
  102. }
  103. function fOnclickBtnRef(gbn){
  104. model.removeNodeset("/root/main/testpatlist/patlist/urinextrvol");
  105. var sear = model.getvalue("/root/hidden/refparam/searchtext")
  106. if(gbn != "Q"){
  107. if(!fSetRefFromdd()) return;
  108. }else{
  109. if(sear.getTrim() == ""){
  110. return;
  111. }
  112. }
  113. //grd_patList.rebuildStyle(); //2008-07-07 조회시 결과상태 초기화 되어 막음.
  114. fSetClear2();
  115. //root/hidden/refparam/searchflag
  116. if(sear.getTrim().isNumber()){ //숫자라면 등록번호
  117. model.setvalue("/root/hidden/refparam/searchflag", "2");
  118. }else{ //숫자가 아니고
  119. if(model.getvalue("/root/hidden/refparam/searchflag") != "3"){ //환자명 조회 아니면 검체번호
  120. model.setvalue("/root/hidden/refparam/searchflag", "1");
  121. }
  122. }
  123. //if(model.getvalue("/root/hidden/refparam/searchflag") == "1" && sear !="" && gbn == "Q"){
  124. model.setvalue("/root/hidden/refparam/searchtext" , sear.getTrim().toUpperCase());
  125. //}
  126. model.copyNode("/root/send/data1","/root/hidden/refparam") ;
  127. if(gbn != "Q"){
  128. model.setvalue("/root/send/data1/searchtext" , "");
  129. }
  130. model.makeValue("/root/send/data1/userdeptflagcd", model.getValue("/root/init/LB0000/nm"));
  131. //var sid = document.all("TRLLR00201");
  132. //alert(gbn)
  133. if(submit("TRLLR00201")) {
  134. var addPat = false;
  135. if(gbn == "Q" && model.getvalue("/root/hidden/pat") == "1" && model.getvalue("/root/hidden/refparam/searchflag") == "1"){ // 환자붙이기, 검체추가
  136. addPat = true;
  137. var n = getNodesetCount("/root/main/testpatlist");
  138. if(getNodesetCount("/root/hidden/testpatlist/patlist") > 0){
  139. var bcno = model.getvalue("/root/hidden/testpatlist/patlist/bcno");
  140. var findrow = grd_patList.findRow(bcno,1, 2, false, false);
  141. if(findrow < 0){ //검체가 없으면 검체추가
  142. model.makeNode("/root/main/testpatlist/patlist["+grd_patList.rows +"]");
  143. model.copyNode("/root/main/testpatlist/patlist["+grd_patList.rows +"]" , "/root/hidden/testpatlist/patlist");
  144. grd_patList.rebuild();
  145. }
  146. else{ //검체가 있음
  147. messageBox("이미추가된 검체입니다. " , "C" ,"");
  148. return;
  149. }
  150. } //end if(getNodesetCount("/root/hidden/testpatlist/patlist") > 0){
  151. } //end if(gbn == "Q" && model.getvalue("/root/hidden/pat") == "1" && model.getvalue("/root/hidden/refparam/searchflag") == "1"){ // 환자붙이기, 검체추가
  152. else{ //추가가 아니라면.
  153. model.copyNode("/root/main/testpatlist" , "/root/hidden/testpatlist");
  154. grd_patList.rebuild();
  155. }
  156. model.copyNode("/root/send/data1","/root/hidden/default");
  157. //initGridStyle("grd_patList");
  158. for(i=1 ;i<grd_patList.rows;i++){ //결과 상태에 따른 이미지 변경
  159. if(model.getvalue("/root/main/testpatlist/patlist["+i+"]/rsltstat") == "-"){
  160. grd_patList.cellstyle("background-image", i, 1) = "../../../lis/commonweb/images/icnRSTFLAG_N.gif";
  161. grd_patList.cellstyle("background-position", i, 1) = "center"
  162. }else if(model.getvalue("/root/main/testpatlist/patlist["+i+"]/rsltstat") == "1"){
  163. grd_patList.cellstyle("background-image", i, 1) = "../../../lis/commonweb/images/icnRSTFLAG_1.gif";
  164. grd_patList.cellstyle("background-position", i, 1) = "center"
  165. }
  166. else if(model.getvalue("/root/main/testpatlist/patlist["+i+"]/rsltstat") == "2"){
  167. grd_patList.cellstyle("background-image", i, 1) = "../../../lis/commonweb/images/icnRSTFLAG_2.gif";
  168. grd_patList.cellstyle("background-position", i, 1) = "center"
  169. }
  170. else if(model.getvalue("/root/main/testpatlist/patlist["+i+"]/rsltstat") == "4"){
  171. grd_patList.cellstyle("background-image", i, 1) = "../../../lis/commonweb/images/icnRSTFLAG_3.gif";
  172. grd_patList.cellstyle("background-position", i, 1) = "center"
  173. }
  174. else if(model.getvalue("/root/main/testpatlist/patlist["+i+"]/rsltstat") == "3"){
  175. grd_patList.cellstyle("background-image", i, 1) = "../../../lis/commonweb/images/icnRSTFLAG_F.gif";
  176. grd_patList.cellstyle("background-position", i, 1) = "center"
  177. }
  178. if(model.getvalue("/root/main/testpatlist/patlist["+i+"]/erprcpflag") == "Y"){ //응급
  179. grd_patList.rowStyle(i, "data", "background-color") = "#f7a08b";
  180. }
  181. else{
  182. grd_patList.rowStyle(i, "data", "background-color") = "#ffffff";
  183. }
  184. } //end for(i=1 ;i<grd_patList.rows;i++){
  185. if(gbn == "Q" ) { //enter키
  186. if(grd_patList.rows > 1){ //환자가 없다.
  187. if(addPat){ //검체추가일경우 맨 마지막 검체 조회
  188. grd_patList.row= grd_patList.rows- 1;
  189. fPatListClick(grd_patList.rows- 1);
  190. }
  191. else{ //검체추가가 아닌 경우 첫번째 검체 조회
  192. grd_patList.row= 1;
  193. fPatListClick(1);
  194. }
  195. } // end if(grd_patList.rows > 1){
  196. } //end if(gbn == "Q" ) {
  197. } //end if(submit("TRLLR00201")) {
  198. }
  199. function fPatListClick(row){
  200. model.copyNode("/root/send/data1","/root/hidden/refparam") ;
  201. model.makeValue("/root/send/data1/userdeptflagcd", model.getValue("/root/init/LB0000/nm"));
  202. model.makeValue("/root/send/data1/bloodrsltflag","N");
  203. model.copyNode("/root/send/data2","/root/main/testpatlist/patlist["+row+"]");
  204. //model.makeValue("/root/send/data2/userdeptflagcd", model.getValue("/root/init/LB0000/nm"));
  205. submit("TRLLR80101");
  206. model.copyNode("/root/send/data1","/root/hidden/default");
  207. model.copyNode("/root/send/data2","/root/hidden/default");
  208. model.setValue("/root/hidden/urinextrvol", model.getValue("/root/main/testpatlist/patlist["+ row +"]/urinextrvol"));
  209. if(grd_TestInfoCnts.rows > 1) {
  210. //검사항목 알림 내용 추가건에 따라 수정 변경요청 2147
  211. var vCnt = getNodesetCount("/root/init/LB0128");
  212. var sFlag = ""; //비교대상 (1:검사항목 알림, 2 : 결과비교하여 알림)
  213. var sTestCd = ""; //검사코드
  214. var sNm = "" //검사명 or 비교 할 결과
  215. var sMsg = " 검사가 있습니다. ";
  216. var sMsgList = ""; //최종 출력 할 내용
  217. //2017의 경우만 사용
  218. var vCol = ""; //검사결과에 해당하는 col
  219. var sRslt = ""; //검사결과
  220. for(i = 1; i <= vCnt; i++){
  221. sFlag = model.getValue("/root/init/LB0128[" + i + "]/etc01");
  222. sTestCd = model.getValue("/root/init/LB0128[" + i + "]/cd");
  223. sNm = model.getValue("/root/init/LB0128[" + i + "]/nm");
  224. if(sFlag == "1"){
  225. //alert(sTestCd + " = " + model.getXPathValue('count(/root/main/TestInfo/getTestInfoCnts[testcd="'+sTestCd+'"])'));
  226. if(model.getXPathValue('count(/root/main/TestInfo/getTestInfoCnts[testcd="'+sTestCd+'"])') != 0){
  227. sMsgList += sNm + sMsg + "\n";
  228. }
  229. }else{ //HIV(LIR124) 검사 결과가 Positive일 경우에 팝업 뜨게 해달라는 요구변경요청 2017
  230. if(model.getXPathValue('count(/root/main/TestInfo/getTestInfoCnts[testcd="'+sTestCd+'"])') != 0){
  231. vCol = grd_TestInfoCnts.findRow(sTestCd, 1, grd_TestInfoCnts.colRef("testcd"), true, true);
  232. sRslt = model.getValue("/root/main/TestInfo/getTestInfoCnts["+ vCol +"]/reptrslt");
  233. if(sRslt.toUpperCase().indexOf(sNm) != -1){
  234. sMsgList += model.getValue("/root/main/TestInfo/getTestInfoCnts["+ vCol +"]/tclsscrnm") + "결과가 " + sRslt + "입니다. \n";
  235. }
  236. }
  237. }
  238. }
  239. if(sMsgList != ""){
  240. messageBox(sMsgList,"I");
  241. }
  242. //model.getvalue("/root/init/LB0128/cd")
  243. /*var Morfind = grd_TestInfoCnts.findRow("LHR004", 1, 25, true, true);
  244. var Malfind1 = grd_TestInfoCnts.findRow("LHR117", 1, 25, true, true);
  245. var Malfind2 = grd_TestInfoCnts.findRow("LHR118", 1, 25, true, true);
  246. var Parafind = grd_TestInfoCnts.findRow("LHR115", 1, 25, true, true);
  247. if(Morfind > 0) {
  248. messageBox("Morphology 검사가 있습니다","I");
  249. }
  250. if(Malfind1 > 0 || Malfind2 > 0) {
  251. messageBox("Malaria 검사가 있습니다","I");
  252. }
  253. if(Parafind > 0) {
  254. messageBox("Parasites in Blood 검사가 있습니다","I");
  255. }*/
  256. }
  257. fRemakeList();
  258. //grd_TestInfoCnts.editCell();
  259. model.refresh();
  260. }
  261. ]]>
  262. </script>
  263. </xhtml:head>
  264. <xhtml:body guideline="1,527;1,746;1,506;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  265. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  266. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:106px; height:14px; ">검체별결과관리</caption>
  267. </group>
  268. <group id="group3" scroll="auto" style="left:0px; top:40px; width:1195px; height:744px; ">
  269. <caption id="caption16" class="tit_2" style="left:5px; top:205px; width:115px; height:13px; ">환자목록</caption>
  270. <line id="line4" class="line_1" style="x1:0px; y1:220px; x2:320px; y2:220px; "/>
  271. <shape id="roundrect2" class="roundrect_search" appearance="roundrect" style="left:0px; top:10px; width:320px; height:190px; "/>
  272. <caption id="caption4" class="search_name" style="left:15px; top:73px; width:94px; height:17px; ">작업일자 :</caption>
  273. <caption id="caption5" class="search_name" style="left:15px; top:121px; width:94px; height:17px; ">시행부서 :</caption>
  274. <caption id="caption1" class="search_name" style="left:15px; top:145px; width:94px; height:17px; ">결과구분 :</caption>
  275. <select1 id="combo2" ref="/root/hidden/refparam/rstflag" class="combo_default" appearance="minimal" style="left:105px; top:144px; width:200px; height:19px; ">
  276. <choices>
  277. <item>
  278. <label>전체</label>
  279. <value>0</value>
  280. </item>
  281. <item>
  282. <label>미검사</label>
  283. <value>1</value>
  284. </item>
  285. <item>
  286. <label>미완료</label>
  287. <value>2</value>
  288. </item>
  289. <item>
  290. <label>최종보고</label>
  291. <value>3</value>
  292. </item>
  293. <item>
  294. <label>재검</label>
  295. <value>4</value>
  296. </item>
  297. </choices>
  298. </select1>
  299. <select1 id="combo3" ref="/root/hidden/refparam/sectcd" class="combo_default" appearance="minimal" style="left:105px; top:120px; width:90px; height:19px; ">
  300. <choices>
  301. <itemset nodeset="/root/init/LB0111">
  302. <label ref="nm"/>
  303. <value ref="cd"/>
  304. </itemset>
  305. </choices>
  306. <script type="javascript" ev:event="xforms-value-changed">
  307. <![CDATA[
  308. var etc = model.getvalue("/root/hidden/refparam/sectcd");
  309. if(etc == "00"){
  310. combo4.choices.itemset.attribute("nodeset") = "/root/init/LB0106";
  311. model.setvalue("/root/hidden/refparam/tsectcd" , "00");
  312. combo4.disabled = true;
  313. }
  314. else{
  315. combo4.choices.itemset.attribute("nodeset") = "/root/init/LB0106[cd= '00' or etc01='"+ etc +"']";
  316. model.setvalue("/root/hidden/refparam/tsectcd" , "00");
  317. combo4.disabled = false;
  318. }
  319. combo4.refresh();
  320. ]]>
  321. </script>
  322. </select1>
  323. <input id="input1" ref="/root/hidden/refparam/startdd" class="input_search" inputtype="date" style="left:105px; top:72px; width:90px; height:19px; "/>
  324. <caption id="caption2" class="search_no_b" style="left:240px; top:73px; width:15px; height:17px; vertical-align:middle; ">~</caption>
  325. <input id="input2" ref="/root/hidden/refparam/enddd" class="input_search" inputtype="date" style="left:105px; top:96px; width:90px; height:19px; "/>
  326. <button id="button6" class="btn1_letter2" style="left:249px; top:169px; width:56px; height:22px; ">
  327. <caption>조회</caption>
  328. <script type="javascript" ev:event="onclick">
  329. <![CDATA[
  330. fOnclickBtnRef();
  331. ]]>
  332. </script>
  333. </button>
  334. <import id="import1" instancetype="merge" src="SSLLR80100_검사항목상세.xrw" style="left:325px; top:3px; width:870px; height:738px; "/>
  335. <line id="line13" class="line_4" style="x1:234px; y1:169px; x2:234px; y2:191px; "/>
  336. <select1 id="combo1" ref="/root/hidden/refparam/searchflag" class="combo_search" appearance="minimal" style="left:105px; top:18px; width:155px; height:19px; ">
  337. <choices>
  338. <item>
  339. <label>바코드번호</label>
  340. <value>1</value>
  341. </item>
  342. <item>
  343. <label>등록번호</label>
  344. <value>2</value>
  345. </item>
  346. <item>
  347. <label>환자성명</label>
  348. <value>3</value>
  349. </item>
  350. </choices>
  351. <script type="javascript" ev:event="xforms-value-changed">
  352. <![CDATA[
  353. var flag = model.getvalue("/root/hidden/refparam/searchflag");
  354. if(flag != "1"){
  355. if(flag == "3") {
  356. iptSearch.attribute("imemode") = "hangul";
  357. } else if(flag == "2") {
  358. iptSearch.attribute("imemode") = "alpha";
  359. }
  360. checkbox1.disabled = true;
  361. }
  362. else{
  363. iptSearch.attribute("imemode") = "alpha";
  364. checkbox1.disabled = false;
  365. }
  366. ]]>
  367. </script>
  368. </select1>
  369. <caption id="caption18" class="search_name" style="left:15px; top:19px; width:94px; height:17px; ">검색구분 :</caption>
  370. <line id="line6" class="line_7" style="x1:14px; y1:66px; x2:299px; y2:66px; "/>
  371. <datagrid id="grd_patList" nodeset="/root/main/testpatlist/patlist" caption="^바코드번호^등록번호^성명^결과일시^접수일시^처방일자" colsep="^" colwidth="22, 103, 80, 74, 110, 110, 75" dataheight="23" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:225px; width:320px; height:506px; ">
  372. <col ref="chk" style="text-align:center; "/>
  373. <col ref="bcno"/>
  374. <col ref="pid"/>
  375. <col ref="hngnm"/>
  376. <col ref="lastreptdt" format="yyyy-mm-dd hh:nn"/>
  377. <col ref="spcacptdt" format="yyyy-mm-dd hh:nn"/>
  378. <col ref="prcpdd" format="yyyy-mm-dd"/>
  379. <script type="javascript" ev:event="onclick">
  380. <![CDATA[
  381. var row = grd_patList.row;
  382. if(grd_patList.isCell(event.target) && grd_patList.row >= grd_patList.fixedRows ){
  383. if(row > 0){
  384. model.setValue("/root/hidden/urinextrvol", model.getValue("/root/main/testpatlist/patlist["+ row +"]/urinextrvol"));
  385. grd_TestInfoCnts.rebuildStyle();
  386. grd_TestInfoCnts.allStyle("all","background-color") = "#ffffff";
  387. fPatListClick(row);
  388. }
  389. }
  390. ]]>
  391. </script>
  392. <script type="javascript" ev:event="onaftersort">
  393. <![CDATA[
  394. grd_patList.gridToInstance();
  395. ]]>
  396. </script>
  397. </datagrid>
  398. <input id="iptSearch" ref="/root/hidden/refparam/searchtext" class="input_button" navindex="1" imemode="alpha" inputtype="button" style="left:105px; top:42px; width:200px; height:19px; ">
  399. <script type="javascript" ev:event="onbuttonclick">
  400. <![CDATA[
  401. fOnclickBtnRef("Q");
  402. ]]>
  403. </script>
  404. <script type="javascript" ev:event="onkeyup">
  405. <![CDATA[
  406. fKeyEvent();
  407. ]]>
  408. </script>
  409. </input>
  410. <select1 id="combo4" ref="/root/hidden/refparam/tsectcd" class="combo_default" appearance="minimal" style="left:195px; top:120px; width:110px; height:19px; ">
  411. <choices>
  412. <itemset nodeset="/root/init/LB0106">
  413. <label ref="nm"/>
  414. <value ref="cd"/>
  415. </itemset>
  416. </choices>
  417. </select1>
  418. <select id="checkbox1" ref="/root/hidden/pat" overflow="visible" appearance="full" style="left:261px; top:20px; width:43px; height:20px; border-style:none; ">
  419. <choices>
  420. <item>
  421. <label>추가</label>
  422. <value>1</value>
  423. </item>
  424. </choices>
  425. <script type="javascript" ev:event="xforms-value-changed">
  426. <![CDATA[
  427. if(model.getvalue("/root/hidden/pat") == "1"){
  428. model.removeNodeset("/root/main/testpatlist/patlist");
  429. btn_rowdel.attribute("visibility") = "visible";
  430. fSetClear2();
  431. } else {
  432. model.removeNodeset("/root/main/testpatlist/patlist");
  433. btn_rowdel.attribute("visibility") = "hidden";
  434. fSetClear2();
  435. }
  436. ]]>
  437. </script>
  438. </select>
  439. <select id="checkbox2" ref="/root/hidden/refparam/erflag" overflow="visible" appearance="full" style="left:144px; top:171px; width:85px; height:20px; border-style:none; ">
  440. <choices>
  441. <item>
  442. <label>응급검체만</label>
  443. <value>1</value>
  444. </item>
  445. </choices>
  446. </select>
  447. <input id="ipt_starttm" ref="/root/hidden/refparam/starttm" class="input_search" format="hh:nn" style="left:198px; top:72px; width:35px; height:19px; "/>
  448. <input id="ipt_endtm" ref="/root/hidden/refparam/endtm" class="input_search" format="hh:nn" style="left:198px; top:96px; width:35px; height:19px; "/>
  449. <select1 id="rdo_trobrslt" ref="/root/hidden/refparam/trobrslt" appearance="full" cols="3" overflow="visible" style="left:5px; top:171px; width:135px; height:20px; border-style:none; ">
  450. <choices>
  451. <item>
  452. <label>All</label>
  453. <value>0</value>
  454. </item>
  455. <item>
  456. <label>Panic</label>
  457. <value>P</value>
  458. </item>
  459. <item>
  460. <label>Delta</label>
  461. <value>D</value>
  462. </item>
  463. </choices>
  464. </select1>
  465. <button id="btn_rowdel" class="btn2_letter2" visibility="hidden" style="left:278px; top:201px; width:42px; height:19px; ">
  466. <caption>삭제</caption>
  467. <script type="javascript" ev:event="DOMActivate">
  468. <![CDATA[
  469. grd_patList.deleteRow(grd_patList.row);
  470. var row = grd_patList.row;
  471. if(grd_patList.row >= grd_patList.fixedRows ){
  472. if(row > 0){
  473. model.setValue("/root/hidden/urinextrvol", model.getValue("/root/main/testpatlist/patlist["+ row +"]/urinextrvol"));
  474. grd_TestInfoCnts.rebuildStyle();
  475. grd_TestInfoCnts.allStyle("all","background-color") = "#ffffff";
  476. fPatListClick(row);
  477. }
  478. }
  479. ]]>
  480. </script>
  481. </button>
  482. <button id="button52" class="btn2_letter4" style="left:200px; top:200px; width:64px; height:19px; ">
  483. <caption>패턴입력</caption>
  484. <script type="javascript" ev:event="DOMActivate">
  485. <![CDATA[
  486. modal("SPLRR91720","","","","","","/root/send/pid");
  487. // modal("SPLRR91720","","","","","/root/main/testinfo/spcltestinfo/pid","/root/send/pid");
  488. ]]>
  489. </script>
  490. </button>
  491. <button id="button38" class="btn2_letter4" style="left:130px; top:200px; width:64px; height:19px; background-image:../../../com/commonweb/images/btn2_letter6.gif; ">
  492. <caption>환자조회</caption>
  493. <script type="javascript" ev:event="DOMActivate">
  494. <![CDATA[
  495. //window.load("SPLRR90700.xrw","mdichild","","left:100; top:100; width:400; height:400; sysmenu:visible; min:visible; max:true; resize:true; caption:visible;");
  496. //window.children.item("SPLRR90700").activate();
  497. open("SMLLP00100");
  498. ]]>
  499. </script>
  500. </button>
  501. </group>
  502. <group id="group5" scroll="auto" style="left:0px; top:13px; width:1195px; height:27px; ">
  503. <button id="btn_MdlRept" class="btn4_letter6" visibility="hidden" style="left:543px; top:3px; width:104px; height:22px; ">
  504. <caption>중간예비보고</caption>
  505. <script type="javascript" ev:event="onclick">
  506. <![CDATA[
  507. fSetMdlRept();
  508. ]]>
  509. </script>
  510. </button>
  511. <button id="button1" class="btn3_letter6" style="left:58px; top:3px; width:104px; height:22px; ">
  512. <caption>특이결과등록</caption>
  513. <script type="javascript" ev:event="DOMActivate">
  514. <![CDATA[
  515. fSpcfRsltSave();
  516. ]]>
  517. </script>
  518. </button>
  519. <button id="button2" class="btn3_letter7" style="left:163px; top:3px; width:116px; height:22px; ">
  520. <caption>부적합검체등록</caption>
  521. <script type="javascript" ev:event="onclick">
  522. <![CDATA[
  523. //window.load("SMLLJ90100_부적합검체등록.xrw","modeless", "", "width:360px; height:465;min:hidden;max:hidden;align:center");
  524. //modal("SPLLJ90100");
  525. if(model.getValue("/root/main/TestInfo/getSpcInfo/bcno") != ""){
  526. model.makeValue("/root/hidden/bcno", model.getValue("/root/main/TestInfo/getSpcInfo/bcno"));
  527. }else{
  528. model.makeValue("/root/hidden/bcno", "");
  529. }
  530. modal("SPLLJ90100_부적합검체등록","","","","","/root/hidden/bcno","/root/hidden/bcno");
  531. ]]>
  532. </script>
  533. </button>
  534. <button id="button8" class="btn3_letter4" style="left:1046px; top:3px; width:80px; height:22px; ">
  535. <caption>TAT조회</caption>
  536. </button>
  537. <button id="button5" class="btn3_letter4" style="left:965px; top:3px; width:80px; height:22px; ">
  538. <caption>이력조회</caption>
  539. <script type="javascript" ev:event="DOMActivate">
  540. <![CDATA[
  541. //setParameter ( "SMMMO02500_cond", model.getvalue("/root/hidden/JoHoiFlag/regnopatnm")+ "▩");
  542. setParameter ( "SMMMO02500_cond", getPatientInfo("pid"));
  543. open ( "SMMMO02500" );
  544. ]]>
  545. </script>
  546. </button>
  547. <line id="line17" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
  548. <button id="btn_rsltsave" class="btn4_letter4" style="left:406px; top:3px; width:80px; height:22px; ">
  549. <caption>예비결과</caption>
  550. <script type="javascript" ev:event="onclick">
  551. <![CDATA[
  552. fInsRsltSave();
  553. ]]>
  554. </script>
  555. </button>
  556. <button id="btn_LstRept" accesskey="f4" class="btn4_letter4" style="left:325px; top:3px; width:80px; height:22px; ">
  557. <caption>최종보고</caption>
  558. <script type="javascript" ev:event="onclick">
  559. <![CDATA[
  560. fSetLstRept();
  561. ]]>
  562. </script>
  563. <script type="javascript" ev:event="onaccesskey">
  564. <![CDATA[
  565. fSetLstRept();
  566. ]]>
  567. </script>
  568. </button>
  569. <button id="btn_cle" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
  570. <caption>초기화</caption>
  571. <script type="javascript" ev:event="onclick">
  572. <![CDATA[
  573. fSetClear();
  574. ]]>
  575. </script>
  576. </button>
  577. <button id="button7" class="btn4_letter2" style="left:487px; top:3px; width:56px; height:22px; ">
  578. <caption>재검</caption>
  579. <script type="javascript" ev:event="onclick">
  580. <![CDATA[
  581. fInsJeaGeom();
  582. ]]>
  583. </script>
  584. </button>
  585. <button id="button4" class="btn6_letter2" style="left:0px; top:3px; width:56px; height:22px; ">
  586. <caption>출력</caption>
  587. <script type="javascript" ev:event="DOMActivate">
  588. <![CDATA[
  589. fPrint();
  590. ]]>
  591. </script>
  592. </button>
  593. <button id="button9" class="btn3_letter5" style="left:872px; top:3px; width:92px; height:22px; ">
  594. <caption>Diff. 계산</caption>
  595. <script type="javascript" ev:event="DOMActivate">
  596. <![CDATA[
  597. //setParameter ( "SMMMO02500_cond", model.getvalue("/root/hidden/JoHoiFlag/regnopatnm")+ "▩");
  598. open ( "SMLLR90800" );
  599. ]]>
  600. </script>
  601. </button>
  602. </group>
  603. <!-- <script type="javascript" ev:event="onkeyup">
  604. <![CDATA[
  605. fKeyEvent();
  606. ]]>
  607. </script> -->
  608. <script type="javascript" ev:event="onmenu">
  609. <![CDATA[
  610. var popupParam = event.description;
  611. fOnmenu(popupParam);
  612. ]]>
  613. </script>
  614. </xhtml:body>
  615. </xhtml:html>