SMLLJ00900_CMC수탁접수결과관리(수탁병원).xrw 48 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SMLLJ00900_CMC수탁접수결과관리(수탁병원).xrw
  4. * 설 명 : CMC수탁접수결과관리(수탁병원)
  5. * 설 계 자 : (주)에이씨케이 -
  6. * 작 성 자 : (주)에이씨케이 - 박정은
  7. * 작 성 일 : 2009.12.10
  8. * 수정이력 : 2009.12.20 박정은 접수시 의뢰서 전송기능 추가
  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>CMC위수탁접수관리</xhtml:title>
  15. <model id="model1">
  16. <instance id="instance1">
  17. <root xmlns="">
  18. <main>
  19. <trustlist>
  20. <chk/>
  21. <reqinstcd/>
  22. <reqbcno/>
  23. <tclsnm/>
  24. <spcnm/>
  25. <reqtclscd/>
  26. <reqspccd/>
  27. <trustinstcd/>
  28. <trustbcno/>
  29. <reqpid/>
  30. <trustpid/>
  31. <patnm/>
  32. <rrgstno1/>
  33. <rrgstno2/>
  34. <psptno/>
  35. <age/>
  36. <sex/>
  37. <bixflagcd/>
  38. <reqdd/>
  39. <reqtm/>
  40. <reqnm/>
  41. <cnfmdd/>
  42. <cnfttm/>
  43. <cnfmnm/>
  44. <conttestintvlflagcd/>
  45. <conttestorgtims/>
  46. <conttestbasetm/>
  47. <prcpdelivefact/>
  48. <suppkind/>
  49. <acptstatcd/>
  50. <etc1/>
  51. <etc2/>
  52. <etc3/>
  53. <urinextrvol/>
  54. <reqno/>
  55. <userflagcd/>
  56. <reqorddrnm/>
  57. <reqorddeptnm/>
  58. <reqwardroom/>
  59. <reqcnts/>
  60. <reqfrmcd/>
  61. </trustlist>
  62. <TestInfo>
  63. <barcodeinfo/>
  64. <errinfo/>
  65. </TestInfo>
  66. <outerlist>
  67. <chk/>
  68. <reqdd/>
  69. <reqinstcd/>
  70. <reqbcno/>
  71. <trustbcno/>
  72. <tclsnm/>
  73. <spcnm/>
  74. <reqpid/>
  75. <trustpid/>
  76. <hngnm/>
  77. <sex/>
  78. <age/>
  79. <rsltstat/>
  80. <reptrslt/>
  81. <descrsltyn/>
  82. <readrslt/>
  83. <descrslt/>
  84. <imagrsltyn/>
  85. <imgrslt/>
  86. <imghht/>
  87. <imgwidt/>
  88. <rrgstno/>
  89. <usernm/>
  90. <deptengabbr/>
  91. <wardroom/>
  92. <urinextrvol/>
  93. <tclscd/>
  94. <spccd/>
  95. <testcd/>
  96. <tclskind/>
  97. <trustinstcd/>
  98. <userflagcd/>
  99. <level/>
  100. <sectnm/>
  101. <cmtyn/>
  102. </outerlist>
  103. <bcoll>
  104. <jaewoninfo>
  105. <jaewon/>
  106. </jaewoninfo>
  107. </bcoll>
  108. </main>
  109. <send>
  110. <data1/>
  111. <data2/>
  112. <codeflag/>
  113. <drid/>
  114. <orddeptcd/>
  115. <scrnid/>
  116. <outerdata/>
  117. </send>
  118. <init>
  119. </init>
  120. <hidden>
  121. <ref>
  122. <trustgbn>1</trustgbn>
  123. <fromdd/>
  124. <fromtm>0000</fromtm>
  125. <todd/>
  126. <totm>2359</totm>
  127. <trustinstcd>00</trustinstcd>
  128. <extrinstcd>00</extrinstcd>
  129. <reqpid/>
  130. <trustpid/>
  131. <acptgbn>1</acptgbn>
  132. <sectcd>00</sectcd>
  133. <tsectcd>00</tsectcd>
  134. </ref>
  135. <drid>00</drid>
  136. <cancelcombo/>
  137. <cancelcd/>
  138. <JoHoiFlag>
  139. <regnopatnm/>
  140. <bizflag>
  141. <Out/>
  142. </bizflag>
  143. <xrwGBN/>
  144. <bcollflag>1</bcollflag>
  145. <refflag>1</refflag>
  146. </JoHoiFlag>
  147. </hidden>
  148. <temp>
  149. </temp>
  150. </root>
  151. </instance>
  152. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  153. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  154. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  155. <script type="javascript" src="../../../lis/commonweb/js/LLZ001.js"/>
  156. <script type="javascript" src="../../../lis/commonweb/js/LZZ001.js"/>
  157. <script type="javascript" src="../../../lis/commonweb/js/LPZ001.js"/>
  158. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  159. <script type="javascript" src="../../../lis/commonweb/js/HanFont24.js"/>
  160. <script type="javascript" ev:event="xforms-ready">
  161. <![CDATA[
  162. fSetInit();
  163. ]]>
  164. </script>
  165. <submission id="TRLZZ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/codeflag" replace="instance" resultref="/root/LB"/>
  166. <submission id="TRLLJ00801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/trustlist"/>
  167. <submission id="TXLLJ00801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/TestInfo"/>
  168. <!-- 프린터 설정-->
  169. <submission id="TRLLC90101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/barcdprntsetup"/>
  170. <submission id="TRLOR00301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/outerlist"/>
  171. <submission id="TXLOR00301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance"/>
  172. <submission id="TXLLJ00802" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance"/>
  173. <submission id="TRLLC00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/hidden/JoHoiFlag" resultref="/root/main/bcoll"/>
  174. </model>
  175. <script type="javascript">
  176. <![CDATA[
  177. function fSetInit(ref){
  178. model.resetInstanceNode("/root/init");
  179. model.makeValue("/root/send/codeflag", "0110|0000|0415|0111|0106|0101|"); //0110 외부기관코드 0000 유저플래그 0415 후인증의사 0111 시행부서 0106 세부 시행부서 0101취소사유
  180. submit("TRLZZ00101");
  181. var today = getCurrentDate();
  182. grd_trustlist.fixedcellcheckbox(0,1)=true;
  183. grd_outer.fixedcellcheckbox(0,1)=true;
  184. model.toggle("case_acpt");
  185. model.setvalue("/root/hidden/JoHoiFlag/xrwGBN" , "outbcoll");
  186. model.setvalue("/root/hidden/JoHoiFlag/bizflag" , "Out");
  187. fSetacptbutton(); // 조건따라 버튼 보이기 숨기기
  188. //model.setValue("/root/hidden/ref/fromdd", today);
  189. //model.setValue("/root/hidden/ref/todd", today);
  190. model.resetInstanceNode("/root/main/trustlist");
  191. model.resetInstanceNode("/root/main/TestInfo");
  192. model.resetInstanceNode("/root/main/outerlist");
  193. model.resetInstanceNode("/root/send/data1");
  194. model.setValue("/root/properties/menu/menuparam", "L");
  195. //fSetCancelCombo(); // 취소사유
  196. model.makeValue("/root/send/scrnid", getScreenID());
  197. submit("TRLLC90101");
  198. lzzfMakeBrcdPrntObjHanDo("CommAX");
  199. model.refresh();
  200. }
  201. // 취소 콤보 변경
  202. function fSetCancelCombo(){
  203. model.resetInstanceNode("/root/hidden/cancelcombo");
  204. var cntCR = instance1.selectNodes("/root/init/LB0101").length;
  205. NodeCnt = 1;
  206. for(i=1; i<= cntCR; i++){
  207. if(model.getValue("/root/init/LB0101["+ i +"]/etc01") == "03"){
  208. model.makeValue("/root/hidden/cancelcombo["+ NodeCnt +"]/cd", model.getValue("/root/init/LB0101["+ i +"]/cd"));
  209. model.makeValue("/root/hidden/cancelcombo["+ NodeCnt +"]/nm", model.getValue("/root/init/LB0101["+ i +"]/nm"));
  210. NodeCnt++;
  211. }
  212. }
  213. model.refresh();
  214. }
  215. // 수탁접수 조회버튼
  216. function fGetTrustOperList(){
  217. model.removenode("/root/send");
  218. model.makeValue("/root/hidden/ref/userflagcd", model.getValue("/root/init/LB0000/nm"));
  219. model.makeNode("/root/send/data1");
  220. model.copyNode("/root/send/data1" , "/root/hidden/ref");
  221. submit("TRLLJ00801");
  222. grd_trustlist.refresh();
  223. }
  224. // 접수
  225. function fSetTrustAcpt(){
  226. var drid = model.getValue("/root/hidden/drid");
  227. var orddeptcd;
  228. var lpid ;
  229. if(drid == "00"){
  230. alert("후인증 의사를 지정해 주십시오.");
  231. return;
  232. }
  233. var n = getNodesetCount("/root/init/LB0415");
  234. for(var dRow = 1 ; dRow < n ; dRow++){
  235. if(model.getValue("/root/init/LB0415["+dRow+"]/cd") == drid){
  236. orddeptcd = model.getValue("/root/init/LB0415["+dRow+"]/etc01");
  237. }
  238. }
  239. for(var tRow = 1; tRow < grd_trustlist.rows ; tRow++){
  240. model.setvalue("/root/hidden/JoHoiFlag/regnopatnm", model.getValue("/root/main/trustlist["+ tRow +"]/reqpid"));
  241. // model.copyNode("/root/send/receivedata","/root/hidden/JoHoiFlag");
  242. // alert(model.getValue("/root/hidden/JoHoiFlag/regnopatnm"));
  243. // alert(model.getValue("/root/hidden/JoHoiFlag/bizflag"));
  244. // alert(model.getValue("/root/hidden/JoHoiFlag/xrwGBN"));
  245. // alert(model.getValue("/root/hidden/JoHoiFlag/bcollflag"));
  246. // alert(model.getValue("/root/hidden/JoHoiFlag/refflag"));
  247. if(model.getValue("/root/main/trustlist["+ tRow +"]/chk") == "true"){
  248. submit("TRLLC00101");
  249. //=============================================================
  250. //2013 04. 08일 입원유무체크 이재오 추가
  251. //=============================================================
  252. if(model.getValue("/root/main/bcoll/jaewoninfo/jaewon") == "Y") {
  253. alert(model.getValue("/root/main/trustlist["+ tRow +"]/reqpid") + " 는 입원환자입니다. 확인하세요.");
  254. model.setValue("/root/main/trustlist["+ tRow +"]/chk", "false");
  255. }
  256. }
  257. }
  258. for(var tRow = 1; tRow < grd_trustlist.rows ; tRow++){
  259. if(model.getValue("/root/main/trustlist["+ tRow +"]/chk") == "true"){
  260. grd_trustlist.rowStatus(tRow) = 2;
  261. }else{
  262. grd_trustlist.rowStatus(tRow) = 0;
  263. }
  264. }
  265. model.makeValue("/root/send/orddeptcd", orddeptcd);
  266. model.makeValue("/root/send/drid", drid);
  267. model.makeValue("/root/send/data2", getGridUpdateData(grd_trustlist));
  268. model.makeValue("/root/send/NL", model.getValue("root/properties/menu/menuparam")); //이재오 20130327일 추가
  269. // alert(model.getValue("root/properties/menu/menuparam"));
  270. // alert(orddeptcd);
  271. // alert(drid);
  272. // return ;
  273. submit("TXLLJ00801");
  274. if(getNodesetCount("/root/main/TestInfo/barcodeinfo") > 0){ // 바코드내용 있을때
  275. var prtkind = model.getvalue("/root/main/barcdprntsetup/prntsetupinfo/setupinfo/prntkind");
  276. var portnm = model.getvalue("/root/main/barcdprntsetup/prntsetupinfo/setupinfo/commkind");
  277. if( (prtkind == "9" && portnm == "01") || (prtkind == "11" && portnm == "01") || prtkind == "10" || prtkind == "2" || prtkind == "6" || prtkind == "7" ){
  278. fLisSpcBarcodePrint2("/root/main/TestInfo/barcodeinfo", "", "", "true");
  279. }else if(prtkind=="8"){ // B472
  280. fLisSpcBarcodePrint3("/root/main/TestInfo/barcodeinfo", "", "", "true");
  281. }else{ // Zebra
  282. fLisSpcBarcodePrint("/root/main/TestInfo/barcodeinfo", "", "", "true"); //fLisSpcBarcodePrint(진검바코드인스턴스, 보관검체바코드갯수, 병리바코드갯수, 화면구분(병동,환자별일때 true))
  283. }
  284. }
  285. // err있으면
  286. if(model.getValue("/root/main/TestInfo/errinfo/errcnt") !="" ){
  287. alert("▶ " + model.getValue("/root/main/TestInfo/errinfo/errcnt"));
  288. }
  289. // 접수후 재조회
  290. fGetTrustOperList();
  291. }
  292. // 접수취소
  293. function fSetTrustAcptCancel(){
  294. //alert("개발중");
  295. //return;
  296. if(model.getValue("/root/hidden/cancelcd")==""){
  297. alert("취소 사유를 선택해 주십시오.");
  298. return;
  299. }
  300. for(var tRow = 1; tRow < grd_trustlist.rows ; tRow++){
  301. if(model.getValue("/root/main/trustlist["+ tRow +"]/chk") == "true"){
  302. grd_trustlist.rowStatus(tRow) = 2;
  303. }else{
  304. grd_trustlist.rowStatus(tRow) = 0;
  305. }
  306. var bcno1 = "";
  307. if(model.getValue("/root/main/trustlist["+ tRow +"]/chk") == "true"){
  308. if(model.getValue("/root/main/trustlist["+ tRow +"]/cmcrsltstat") != "" ){ // cmc수탁에서 결과전송한거
  309. messageBox(model.getValue("/root/main/trustlist["+ tRow +"]/trustbcno") + " 수탁결과 전송된 검체가 있습니다. 접수취소 할 수 없습니다. ", "I");
  310. return;
  311. }
  312. }
  313. }
  314. //model.setValue("/root/send/orddeptcd", orddeptcd);
  315. //model.setValue("/root/send/drid", drid);
  316. model.makeValue("/root/send/data2", getGridUpdateData(grd_trustlist));
  317. model.makeValue("/root/send/resncd", model.getValue("/root/hidden/cancelcd"));
  318. model.makeValue("/root/send/resndesc", cmb_cancel.label);
  319. submit("TXLLJ00802");
  320. // 접수취소후 재조회
  321. fGetTrustOperList();
  322. }
  323. //프린터 설정
  324. function fSetPrint() {
  325. var count = getNodesetCount("/root/main/barcdprntsetup/prntsetupinfo/setupinfo");
  326. if(count == 0) {
  327. model.makeNode("/root/main/barcdprntsetup/prntsetupinfo/setupinfo");
  328. }
  329. open("SPLLC90100_바코드프린터설정.xrw", "", "", "", "", "/root/main/barcdprntsetup/prntsetupinfo/setupinfo", "/root/main/barcdprntsetup/prntsetupinfo/setupinfo");
  330. }
  331. function fSetallcheck(){
  332. for(var tRow = 1; tRow < grd_trustlist.rows ; tRow++){
  333. if(model.getValue("/root/main/trustlist["+ tRow +"]/chk") == "true"){
  334. grd_trustlist.rowStatus(tRow) = 2; // 수정
  335. }else{
  336. grd_trustlist.rowStatus(tRow) = 0; // 취소
  337. }
  338. }
  339. grd_trustlist.refresh();
  340. }
  341. // 접수, 접수취소버튼 보이게
  342. function fSetacptbutton(){
  343. var today = getCurrentDate();
  344. // 수탁접수 선택됐을때
  345. if(sw_acpt.selected == true){
  346. model.toggle("case_acpt");
  347. if(model.getValue("/root/hidden/ref/trustgbn") == "1"){ // 미접수일때 접수만 보이게
  348. btn_acpt.visible = true;
  349. btn_acptcancel.visible = false;
  350. btn_rsltsend.visible = false;
  351. cap_cancel.visible = false;
  352. cmb_cancel.visible = false;
  353. }else{ // 접수완료일때 접수취소만 보이게
  354. btn_acpt.visible = false;
  355. btn_acptcancel.visible = true;
  356. btn_rsltsend.visible = false;
  357. cap_cancel.visible = true;
  358. cmb_cancel.visible = true;
  359. fSetCancelCombo(); // 취소사유 표시
  360. }
  361. cmb_TLrgCd.disabled = true;
  362. cmd_TMdlCd.disabled =true;
  363. var mDate = getCurrentDate().toDate("YYYYMMDD").getAddDate(-5);
  364. model.setValue("/root/hidden/ref/fromdd", mDate.getDateFormat("YYYYMMDD"));
  365. model.setValue("/root/hidden/ref/todd", today);
  366. }else{
  367. model.toggle("case_rslt");
  368. if(model.getValue("/root/hidden/ref/acptgbn") == "1"){ // 미전송 상태 결과전송만 보이게
  369. btn_acpt.visible = false;
  370. btn_acptcancel.visible = false;
  371. btn_rsltsend.visible = true;
  372. cmb_sect_rslt.disabled = false;
  373. cmb_tsec_rslt.disabled = false;
  374. grd_outer.colHidden(21) = false;
  375. }else{ // 암것도 안보이게
  376. btn_acpt.visible = false;
  377. btn_acptcancel.visible = false;
  378. btn_rsltsend.visible = false;
  379. cmb_sect_rslt.disabled = true;
  380. cmb_tsec_rslt.disabled = true;
  381. grd_outer.colHidden(21) = true;
  382. }
  383. var mDate = getCurrentDate().toDate("YYYYMMDD").getAddDate(-3);
  384. model.setValue("/root/hidden/ref/fromdd", mDate.getDateFormat("YYYYMMDD"));
  385. model.setValue("/root/hidden/ref/todd", today);
  386. }
  387. model.refresh();
  388. }
  389. // 수탁검사결과조회
  390. function fGetSutakRslt(){
  391. model.removenode("/root/send");
  392. model.makeValue("/root/send/userflagcd", model.getValue("/root/init/LB0000/nm"));
  393. model.makeNode("root/send/data1");
  394. model.copyNode("root/send/data1", "root/hidden/ref");
  395. submit("TRLOR00301");
  396. setTree(grd_outer, 3, 2, true); // 그리드 , level, tree, ..
  397. //model.refresh();
  398. }
  399. // 엑셀 저장
  400. function fExeExcel(pGridId) {
  401. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  402. if (fileName != "")
  403. {
  404. pGridId.saveExcel(fileName);
  405. }
  406. }
  407. // 결과전송
  408. function fExeSutakRslt(){
  409. for(var tRow = 1; tRow < grd_outer.rows ; tRow++){
  410. if(model.getValue("/root/main/outerlist["+ tRow +"]/testcd") == "LSI110"){
  411. if((model.getValue("/root/main/outerlist["+ tRow +"]/chk") == "true" &&
  412. model.getValue("/root/main/outerlist["+ tRow +"]/rsltstat") == "4" ) &&
  413. ( model.getValue("/root/main/outerlist["+ tRow +"]/imagrsltyn") != "Y"||
  414. model.getValue("/root/main/outerlist["+ tRow +"]/descrsltyn") != "Y" )){
  415. alert(model.getValue("/root/main/outerlist["+ tRow +"]/trustpid") + " 이미지나 서술결과가 입력되었는지 확인바랍니다" );
  416. return;
  417. }
  418. }
  419. if(model.getValue("/root/main/outerlist["+ tRow +"]/testcd") == "LC1004"){
  420. if((model.getValue("/root/main/outerlist["+ tRow +"]/chk") == "true" &&
  421. model.getValue("/root/main/outerlist["+ tRow +"]/rsltstat") == "4" ) &&
  422. ( model.getValue("/root/main/outerlist["+ tRow +"]/imagrsltyn") != "Y"||
  423. model.getValue("/root/main/outerlist["+ tRow +"]/descrsltyn") != "Y" )){
  424. alert(model.getValue("/root/main/outerlist["+ tRow +"]/trustpid") + " 이미지나 서술결과를 확인바랍니다" );
  425. return;
  426. }
  427. }
  428. if(model.getValue("/root/main/outerlist["+ tRow +"]/testcd") == "LSI102"){
  429. if((model.getValue("/root/main/outerlist["+ tRow +"]/chk") == "true" &&
  430. model.getValue("/root/main/outerlist["+ tRow +"]/rsltstat") == "4" ) &&
  431. ( model.getValue("/root/main/outerlist["+ tRow +"]/imagrsltyn") != "Y"||
  432. model.getValue("/root/main/outerlist["+ tRow +"]/descrsltyn") != "Y" )){
  433. alert(model.getValue("/root/main/outerlist["+ tRow +"]/trustpid") + " 이미지나 서술결과를 확인바랍니다" );
  434. return;
  435. }
  436. }
  437. }
  438. for(var tRow = 1; tRow < grd_outer.rows ; tRow++){
  439. if(model.getValue("/root/main/outerlist["+ tRow +"]/chk") == "true"){
  440. grd_outer.rowStatus(tRow) = 2; // 수정
  441. }else{
  442. grd_outer.rowStatus(tRow) = 0; // 취소
  443. }
  444. }
  445. if(getGridUpdateData(grd_outer) ==""){
  446. messageBox("저장 할 내역이 없습니다." , "I");
  447. return;
  448. }
  449. model.makeValue("/root/send/outerdata", getGridUpdateData(grd_outer));
  450. // 위수탁 결과 CMCDB로 전송
  451. //alert(model.getValue("/root/send/outerdata"));
  452. submit("TXLOR00301");
  453. fGetSutakRslt();
  454. }
  455. function fExeSutakRslt_test(){
  456. for(var tRow = 1; tRow < grd_outer.rows ; tRow++){
  457. if(model.getValue("/root/main/outerlist["+ tRow +"]/testcd") == "LSI110"){
  458. if((model.getValue("/root/main/outerlist["+ tRow +"]/chk") == "true" &&
  459. model.getValue("/root/main/outerlist["+ tRow +"]/rsltstat") == "4" ) &&
  460. ( model.getValue("/root/main/outerlist["+ tRow +"]/imagrsltyn") != "Y"||
  461. model.getValue("/root/main/outerlist["+ tRow +"]/descrsltyn") != "Y" )){
  462. alert(model.getValue("/root/main/outerlist["+ tRow +"]/trustpid") + " 이미지나 서술결과가 입력되었는지 확인바랍니다" );
  463. return;
  464. //grd_outer.rowStatus(tRow) = 0; // 취소
  465. //model.setValue("/root/main/outerlist["+tRow+"]/chk", "false");
  466. /*
  467. for(var j = tRow + 1 ; tRow < grd_outer.rows ; j++){
  468. if(model.getValue("/root/main/outerlist["+ tRow +"]/testcd").substring(0,6) == "LSI110" ){
  469. grd_outer.rowStatus(tRow) = 0; // 취소
  470. model.setValue("/root/main/outerlist["+tRow+"]/chk", "false");
  471. }
  472. }
  473. */
  474. }
  475. // return;
  476. }
  477. if(model.getValue("/root/main/outerlist["+ tRow +"]/testcd") == "LC1004"){
  478. if((model.getValue("/root/main/outerlist["+ tRow +"]/chk") == "true" &&
  479. model.getValue("/root/main/outerlist["+ tRow +"]/rsltstat") == "4" ) &&
  480. ( model.getValue("/root/main/outerlist["+ tRow +"]/imagrsltyn") != "Y"||
  481. model.getValue("/root/main/outerlist["+ tRow +"]/descrsltyn") != "Y" )){
  482. alert(model.getValue("/root/main/outerlist["+ tRow +"]/trustpid") + " 이미지나 서술결과를 확인바랍니다" );
  483. return;
  484. //grd_outer.rowStatus(tRow) = 0; // 취소
  485. //model.setValue("/root/main/outerlist["+tRow+"]/chk", "false");
  486. }
  487. }
  488. if(model.getValue("/root/main/outerlist["+ tRow +"]/testcd") == "LSI102"){
  489. if((model.getValue("/root/main/outerlist["+ tRow +"]/chk") == "true" &&
  490. model.getValue("/root/main/outerlist["+ tRow +"]/rsltstat") == "4" ) &&
  491. ( model.getValue("/root/main/outerlist["+ tRow +"]/imagrsltyn") != "Y"||
  492. model.getValue("/root/main/outerlist["+ tRow +"]/descrsltyn") != "Y" )){
  493. alert(model.getValue("/root/main/outerlist["+ tRow +"]/trustpid") + " 이미지나 서술결과를 확인바랍니다" );
  494. return;
  495. //grd_outer.rowStatus(tRow) = 0; // 취소
  496. //model.setValue("/root/main/outerlist["+tRow+"]/chk", "false");
  497. }
  498. }
  499. }
  500. }
  501. // 서술결과버튼 클릭하면 상세보기 팝업
  502. function fGetDescrslt(){
  503. model.resetInstanceNode("/root/hidden/descrslt");
  504. var row = grd_outer.row;
  505. if(row> 0){
  506. if(model.getValue("/root/main/outerlist["+row+"]/descrsltyn")=="Y"){
  507. model.makeValue("/root/hidden/descrslt/readrslt", model.getValue("/root/main/outerlist["+row+"]/readrslt"));
  508. modal("SPLOR90100","", "", "","", "/root/hidden/descrslt", "/root/hidden/descrslt");
  509. }
  510. }
  511. }
  512. // 이미지결과 보여주기
  513. function fSetImgRsltView(){
  514. model.resetInstanceNode("/root/hidden/spcltestinfo");
  515. var row = grd_outer.row ;
  516. if(row> 0){
  517. if(model.getValue("/root/main/outerlist["+row+"]/imagrsltyn")=="Y"){
  518. model.makeValue("/root/hidden/spcltestinfo/bcno", model.getValue("/root/main/outerlist["+row+"]/trustbcno"));
  519. model.makeValue("/root/hidden/spcltestinfo/testcd", model.getValue("/root/main/outerlist["+row+"]/testcd"));
  520. model.makeValue("/root/hidden/spcltestinfo/spccd", model.getValue("/root/main/outerlist["+row+"]/spccd"));
  521. model.makeValue("/root/hidden/spcltestinfo/tclscd", model.getValue("/root/main/outerlist["+row+"]/tclscd"));
  522. model.makeValue("/root/hidden/spcltestinfo/pid", model.getValue("/root/main/outerlist["+row+"]/trustpid"));
  523. model.makeValue("/root/hidden/spcltestinfo/rsltstat", model.getValue("/root/main/outerlist["+row+"]/rsltstat"));
  524. modal("SMLRR01500","", "", "","", "/root/hidden/spcltestinfo", "/root/hidden/spcltestinfo");
  525. }
  526. }
  527. }
  528. // 의뢰서 내용 보여주기
  529. function fGetReqCnts(){
  530. var row = grd_outer.row ;
  531. if(row> 0){
  532. var reqfrmcd = model.getValue("/root/main/trustlist["+row+"]/reqfrmcd");
  533. alert("reqfrmcd= " + reqfrmcd);
  534. model.makeValue("/root/hidden/reqfrm/reqcnts", model.getValue("/root/main/trustlist["+row+"]/reqcnts"));
  535. model.makeValue("/root/hidden/reqfrm/reqcnts", model.getValue("/root/main/trustlist["+row+"]/reqcnts"));
  536. model.makeValue("/root/hidden/reqfrm/reqcnts", model.getValue("/root/main/trustlist["+row+"]/reqcnts"));
  537. model.makeValue("/root/hidden/reqfrm/reqcnts", model.getValue("/root/main/trustlist["+row+"]/reqcnts"));
  538. if(reqfrmcd == "01") { //Bone Marrow
  539. modal("SPLRR90100","","","","","/root/main/testinfo/spcltestinfo", "/root/hidden/reqfrminfo");
  540. } else if(reqfrmcd == "02") { //분자유전
  541. modal("SPLRR90200","","","","","/root/main/testinfo/spcltestinfo", "/root/hidden/reqfrminfo");
  542. } else if(reqfrmcd == "03") { //세포유전
  543. if(reqfrmcd =="04" ){
  544. modal("SPLRR90400","","","","","/root/main/testinfo/spcltestinfo", "/root/hidden/reqfrminfo");
  545. }
  546. else{
  547. modal("SPLRR91300","","","","","/root/main/testinfo/spcltestinfo", "/root/hidden/reqfrminfo");
  548. }
  549. } else if(reqfrmcd == "10" || model.getValue("/root/main/rslt/desc/rslt/refflag") == "11") { //PRA, 교차시험
  550. modal("SPLRR90500","","","","","/root/main/testinfo/spcltestinfo", "/root/hidden/reqfrminfo");
  551. } else if(reqfrmcd == "09") {//산전기형
  552. modal("SPLRR90300","","","","","/root/main/testinfo/spcltestinfo", "/root/hidden/reqfrminfo");
  553. } else if(reqfrmcd == "12") { //TDM
  554. modal("SPLRR90600","","","","","/root/main/testinfo/spcltestinfo", "/root/hidden/reqfrminfo");
  555. }else if(reqfrmcd == "07") { //PB
  556. modal("SPLRR91400","","","","","/root/main/testinfo/spcltestinfo", "/root/hidden/reqfrminfo");
  557. }else if(reqfrmcd == "99") { //범용보고서
  558. modal("SPLRR91000","","","","","/root/main/testinfo/spcltestinfo", "/root/hidden/reqfrminfo");
  559. }
  560. } // row 있는지
  561. }
  562. // 검체번호 같은겉 전부선택되게
  563. function fSetBcnocheck(){
  564. for(i=1; i<grd_outer.rows; i++ ){
  565. if(model.getValue("/root/main/outerlist["+grd_outer.row+"]/chk")=="true"){
  566. if(model.getValue("/root/main/outerlist["+grd_outer.row+"]/trustbcno")== model.getValue("/root/main/outerlist["+i+"]/trustbcno")){
  567. model.setValue("/root/main/outerlist["+i+"]/chk", "true");
  568. }
  569. //grd_outer.rowStatus(i) = 2; // 수정
  570. }else{
  571. //alert("i= " + i);
  572. if(model.getValue("/root/main/outerlist["+grd_outer.row+"]/trustbcno")== model.getValue("/root/main/outerlist["+i+"]/trustbcno")){
  573. model.setValue("/root/main/outerlist["+i+"]/chk", "false");
  574. }
  575. //grd_outer.rowStatus(i) = 0; // 취소
  576. }
  577. if(model.getValue("/root/main/outerlist["+ i +"]/chk") == "true"){
  578. grd_outer.rowStatus(i) = 2; // 수정
  579. }else{
  580. grd_outer.rowStatus(i) = 0; // 취소
  581. }
  582. }
  583. grd_outer.refresh();
  584. }
  585. function fSetallcheck_rslt(){
  586. for(var tRow = 1; tRow < grd_outer.rows ; tRow++){
  587. if(model.getValue("/root/main/outerlist["+ tRow +"]/chk") == "true"){
  588. grd_outer.rowStatus(tRow) = 2; // 수정
  589. }else{
  590. grd_outer.rowStatus(tRow) = 0; // 취소
  591. }
  592. }
  593. }
  594. // 대분류콤보 선택시
  595. function fSetTLrgCd() {
  596. var etc = model.getvalue("/root/hidden/ref/sectcd");
  597. if(etc == "00"){
  598. cmd_TMdlCd.choices.itemset.attribute("nodeset") = "/root/init/LB0106";
  599. cmb_tsec_rslt.choices.itemset.attribute("nodeset") = "/root/init/LB0106";
  600. model.setValue("/root/hidden/ref/tsectcd" , "00");
  601. }
  602. else{
  603. model.setValue("/root/hidden/ref/tsectcd" , "00");
  604. cmd_TMdlCd.choices.itemset.attribute("nodeset") = "/root/init/LB0106[cd= '00' or etc01='"+ etc +"']";
  605. cmb_tsec_rslt.choices.itemset.attribute("nodeset") = "/root/init/LB0106[cd= '00' or etc01='"+ etc +"']";
  606. }
  607. cmd_TMdlCd.refresh();
  608. cmb_tsec_rslt.refresh();
  609. }
  610. // *사용* 키이벤트 엔터키 입력시 접수flow
  611. function fKeyEvent(){
  612. if(event.keyCode == "13"){
  613. if(event.target == "ipt_reqpid_acpt"){ // 수탁접수 의뢰병원등록번호
  614. model.setvalue("/root/hidden/ref/reqpid", (ipt_reqpid_acpt.currentText).toUpperCase());
  615. fGetTrustOperList();
  616. model.setFocus("ipt_reqpid_acpt");
  617. ipt_reqpid_acpt.selBegin = 0;
  618. ipt_reqpid_acpt.selEnd = ipt_reqpid_acpt.currentText.length;
  619. }
  620. if(event.target == "ipt_trustpid_acpt"){ // 수탁접수 의뢰병원등록번호
  621. model.setvalue("/root/hidden/ref/trustpid", (ipt_trustpid_acpt.currentText).toUpperCase());
  622. fGetTrustOperList();
  623. model.setFocus("ipt_trustpid_acpt");
  624. ipt_trustpid_acpt.selBegin = 0;
  625. ipt_trustpid_acpt.selEnd = ipt_trustpid_acpt.currentText.length;
  626. }
  627. }
  628. }
  629. ]]>
  630. </script>
  631. </xhtml:head>
  632. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  633. <group id="group3" scroll="auto" style="left:0px; top:40px; width:1195px; height:744; ">
  634. <button id="sw_acpt" class="btn_sw" group="tab" selected="true" style="left:0px; top:4px; width:85px; height:22px; ">
  635. <caption>수탁접수</caption>
  636. <toggle case="case_acpt" ev:event="DOMActivate"/>
  637. <script type="javascript" ev:event="DOMActivate">
  638. <![CDATA[
  639. //fbuttonvisible("A");
  640. //model.toggle("case_acpt");
  641. //fSetInit("A");
  642. fSetacptbutton();
  643. ]]>
  644. </script>
  645. </button>
  646. <button id="sw_rslt" class="btn_sw" group="tab" style="left:85px; top:4px; width:99px; height:22px; ">
  647. <caption>수탁결과전송</caption>
  648. <toggle case="case_rslt" ev:event="DOMActivate"/>
  649. <script type="javascript" ev:event="DOMActivate">
  650. <![CDATA[
  651. //fbuttonvisible("B");
  652. //model.toggle("case_rslt");
  653. //fSetInit("B");
  654. fSetacptbutton();
  655. ]]>
  656. </script>
  657. </button>
  658. <switch id="switch1" style="left:0px; top:25px; width:1194px; height:710px; ">
  659. <case id="case_acpt">
  660. <datagrid id="grd_trustlist" nodeset="/root/main/trustlist" class="datagrid2" caption="^요청일자^의뢰 병원^의뢰병원&#xA;바코드번호^본원&#xA;바코드번호^검사명^검체명^의뢰병원&#xA;등록번호^본원&#xA;등록번호^환자명^성별^나이^주민번호^주민번호^여권번호^구분코드^의뢰일자^의뢰시간^의뢰자명^확인일자^확인시간^확인자명^연속검사여부^연속검사^연속검사^전달사항^의뢰의사^의뢰부서^의뢰병동/병실^미수코드^접수구분^수탁병원^소변량^tclscd^spccd^reqno^reqcnts^userflagcd" colsep="^" colwidth="25, 80, 100, 90, 90, 150, 100, 80, 80, 70, 35, 35, 55, 60, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 72, 74, 100, 67, 53, 49, 43, 41, 100" dataheight="23" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" tooltip="true" style="left:0px; top:105px; width:1189px; height:595px; text-align:center; ">
  661. <col checkvalue="true,false" ref="chk" type="checkbox"/>
  662. <col ref="reqdd" format="yyyy-mm-dd"/>
  663. <col disabled="true" ref="reqinstcd" type="combo">
  664. <choices>
  665. <itemset nodeset="/root/init/LB0110">
  666. <label ref="nm"/>
  667. <value ref="cd"/>
  668. </itemset>
  669. </choices>
  670. </col>
  671. <col ref="reqbcno" type="input"/>
  672. <col ref="trustbcno" type="input"/>
  673. <col ref="tclsnm" style="text-align:left; "/>
  674. <col ref="spcnm" style="text-align:left; "/>
  675. <col ref="reqpid" type="input"/>
  676. <col ref="trustpid" type="input"/>
  677. <col ref="patnm"/>
  678. <col ref="sex"/>
  679. <col ref="age"/>
  680. <col ref="rrgstno1"/>
  681. <col ref="rrgstno2"/>
  682. <col ref="psptno" visibility="hidden"/>
  683. <col ref="bixflagcd" visibility="hidden"/>
  684. <col ref="reqdd" format="yyyy-mm-dd"/>
  685. <col ref="reqtm" format="hh:nn:ss"/>
  686. <col ref="reqnm"/>
  687. <col ref="cnfmdd" format="yyyy-mm-dd"/>
  688. <col ref="cnfmtm" format="hh:nn:ss"/>
  689. <col ref="cnfmnm"/>
  690. <col ref="conttestintvlflagcd"/>
  691. <col ref="conttestorgtims"/>
  692. <col ref="conttestbasetm"/>
  693. <col ref="prcpdelivefact"/>
  694. <col ref="reqorddrnm"/>
  695. <col ref="reqorddeptnm"/>
  696. <col ref="reqwardroom"/>
  697. <col ref="suppkind"/>
  698. <col ref="acptstatcd" visibility="hidden"/>
  699. <col disabled="true" ref="trustinstcd" type="combo">
  700. <choices>
  701. <itemset nodeset="/root/init/LB0110">
  702. <label ref="nm"/>
  703. <value ref="cd"/>
  704. </itemset>
  705. </choices>
  706. </col>
  707. <col ref="urinextrvol"/>
  708. <col ref="reqtclscd"/>
  709. <col ref="reqspccd"/>
  710. <col ref="reqno" visibility="hidden"/>
  711. <col visibility="hidden"/>
  712. <col ref="userflagcd" visibility="hidden"/>
  713. <script type="javascript" ev:event="onaftersort">
  714. <![CDATA[
  715. grd_trustlist.gridToInstance();
  716. ]]>
  717. </script>
  718. <script type="javascript" ev:event="xforms-select">
  719. <![CDATA[
  720. fSetallcheck();
  721. ]]>
  722. </script>
  723. <script type="javascript" ev:event="xforms-deselect">
  724. <![CDATA[
  725. fSetallcheck();
  726. ]]>
  727. </script>
  728. </datagrid>
  729. <group id="group1" style="left:0px; top:5px; width:1190px; height:70px; ">
  730. <shape id="roundrect2" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1189px; height:70px; "/>
  731. <line id="line3" class="line_4" style="x1:1099px; y1:24px; x2:1099px; y2:46px; "/>
  732. <caption id="caption3" class="search_name" style="left:19px; top:9px; width:86px; height:17px; ">조회구분 :</caption>
  733. <caption id="caption2" class="search_no_b" style="left:505px; top:10px; width:15px; height:17px; vertical-align:middle; ">~</caption>
  734. <input id="ipt_to" ref="/root/hidden/ref/todd" class="input_search" inputtype="date" style="left:520px; top:8px; width:85px; height:19px; "/>
  735. <caption id="caption4" class="search_name" style="left:324px; top:9px; width:87px; height:17px; ">조회일자 :</caption>
  736. <caption id="caption11" class="search_name" style="left:670px; top:9px; width:92px; height:17px; ">의뢰병원 :</caption>
  737. <caption id="caption5" class="search_name" style="left:19px; top:38px; width:149px; height:17px; ">의뢰병원 등록번호 :</caption>
  738. <caption id="caption7" class="search_name" style="left:324px; top:38px; width:149px; height:17px; ">수탁병원 등록번호 :</caption>
  739. <select1 id="rdo_acpt" ref="/root/hidden/ref/trustgbn" appearance="full" cellspacing="15" cols="3" overflow="visible" style="left:115px; top:8px; width:165px; height:20px; border-style:none; ">
  740. <choices>
  741. <item>
  742. <label>미접수</label>
  743. <value>1</value>
  744. </item>
  745. <item>
  746. <label>접수완료</label>
  747. <value>2</value>
  748. </item>
  749. </choices>
  750. <script type="javascript" ev:event="xforms-value-changed">
  751. <![CDATA[
  752. //fExeTrustRadio();
  753. fSetacptbutton();
  754. ]]>
  755. </script>
  756. </select1>
  757. <input id="ipt_to_acpt" ref="/root/hidden/ref/fromdd" class="input_search" inputtype="date" style="left:415px; top:8px; width:85px; height:19px; "/>
  758. <select1 id="cmb_instcd_acpt" ref="/root/hidden/ref/trustinstcd" class="combo_default" appearance="minimal" style="left:765px; top:8px; width:120px; height:19px; ">
  759. <choices>
  760. <itemset nodeset="/root/init/LB0110">
  761. <label ref="nm"/>
  762. <value ref="cd"/>
  763. </itemset>
  764. </choices>
  765. </select1>
  766. <input id="ipt_reqpid_acpt" ref="/root/hidden/ref/reqpid" class="input_search" inputtype="button" style="left:180px; top:37px; width:100px; height:19px; ">
  767. <script type="javascript" ev:event="onkeypress">
  768. <![CDATA[
  769. fKeyEvent();
  770. ]]>
  771. </script>
  772. </input>
  773. <input id="ipt_trustpid_acpt" ref="/root/hidden/ref/trustpid" class="input_search" inputtype="button" style="left:505px; top:37px; width:100px; height:19px; ">
  774. <script type="javascript" ev:event="onkeypress">
  775. <![CDATA[
  776. fKeyEvent();
  777. ]]>
  778. </script>
  779. </input>
  780. <button id="btn_ref_acpt" class="btn1_letter2" style="left:1114px; top:24px; width:56px; height:22px; ">
  781. <caption>조회</caption>
  782. <script type="javascript" ev:event="DOMActivate">
  783. <![CDATA[
  784. fGetTrustOperList();
  785. ]]>
  786. </script>
  787. </button>
  788. <caption id="caption14" class="search_name" style="left:670px; top:38px; width:92px; height:17px; ">시행부서 :</caption>
  789. <select1 id="cmd_TMdlCd" ref="/root/hidden/ref/tsectcd" class="combo_s_essential" appearance="minimal" itemcount="10" style="left:866px; top:37px; width:100px; height:19px; text-align:left; ">
  790. <choices>
  791. <itemset nodeset="/root/init/LB0106">
  792. <label ref="nm"/>
  793. <value ref="cd"/>
  794. </itemset>
  795. </choices>
  796. </select1>
  797. <select1 id="cmb_TLrgCd" ref="/root/hidden/ref/sectcd" class="combo_s_essential" appearance="minimal" itemcount="10" style="left:765px; top:37px; width:100px; height:19px; text-align:left; ">
  798. <choices>
  799. <itemset nodeset="/root/init/LB0111">
  800. <label ref="nm"/>
  801. <value ref="cd"/>
  802. </itemset>
  803. </choices>
  804. <script type="javascript" ev:event="xforms-value-changed">
  805. <![CDATA[
  806. fSetTLrgCd();
  807. ]]>
  808. </script>
  809. </select1>
  810. </group>
  811. <select1 id="cmb_orddrid_acpt" ref="/root/hidden/drid" appearance="minimal" style="left:1042px; top:79px; width:100px; height:19px; ">
  812. <choices>
  813. <itemset nodeset="/root/init/LB0415">
  814. <label ref="nm"/>
  815. <value ref="cd"/>
  816. </itemset>
  817. </choices>
  818. </select1>
  819. <!-- 후인증 의사 추가할때 llfmtdpu에 들어가고 userflag칼럼 '-' 아니면 됨 -->
  820. <caption id="caption1" class="tit_2" style="left:5px; top:85px; width:123px; height:13px; ">수탁검사리스트</caption>
  821. <line id="line1" class="line_1" style="x1:0px; y1:100px; x2:1189px; y2:100px; "/>
  822. <caption id="cap_orddrid" class="cell_1" style="left:958px; top:77px; width:81px; height:23px; font-family:돋움; vertical-align:middle; ">후인증 의사</caption>
  823. <button id="btn_excel_acpt" class="btn2_letter2" visibility="visible" style="left:1147px; top:79px; width:42px; height:19px; ">
  824. <caption>엑셀</caption>
  825. <script type="javascript" ev:event="DOMActivate">
  826. <![CDATA[
  827. fExeExcel(grd_trustlist);
  828. ]]>
  829. </script>
  830. </button>
  831. </case>
  832. <case id="case_rslt" selected="true">
  833. <group id="group5" style="left:0px; top:5px; width:1190px; height:35px; ">
  834. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1190px; height:34px; "/>
  835. <line id="line11" class="line_4" style="x1:1093px; y1:7px; x2:1093px; y2:29px; "/>
  836. <caption id="caption10" class="search_name" style="left:395px; top:9px; width:94px; height:17px; ">결과구분 :</caption>
  837. <caption id="caption9" class="search_name" style="left:585px; top:9px; width:92px; height:17px; ">의뢰병원 :</caption>
  838. <caption id="caption12" class="search_name" style="left:15px; top:8px; width:86px; height:17px; ">접수일시 :</caption>
  839. <caption id="caption13" class="search_no_b" style="left:231px; top:8px; width:12px; height:17px; ">~</caption>
  840. <input id="ipt_fromdd_rslt" ref="/root/hidden/ref/fromdd" class="input_search" inputtype="date" style="left:105px; top:8px; width:85px; height:19px; "/>
  841. <input id="ipt_fromtm_rslt" ref="/root/hidden/ref/fromtm" class="input_search" format="hh:nn" style="left:189px; top:8px; width:40px; height:19px; text-align:center; "/>
  842. <input id="ipt_todd_rslt" ref="/root/hidden/ref/todd" class="input_search" inputtype="date" style="left:245px; top:8px; width:85px; height:19px; "/>
  843. <input id="ipt_totm_rslt" ref="/root/hidden/ref/totm" class="input_search" format="hh:nn" style="left:329px; top:8px; width:40px; height:19px; text-align:center; "/>
  844. <select1 id="cmb_acptgbn_rslt" ref="/root/hidden/ref/acptgbn" class="combo_default" appearance="minimal" style="left:485px; top:8px; width:80px; height:19px; ">
  845. <choices>
  846. <item>
  847. <label>미전송</label>
  848. <value>1</value>
  849. </item>
  850. <item>
  851. <label>전송완료</label>
  852. <value>2</value>
  853. </item>
  854. </choices>
  855. <script type="javascript" ev:event="xforms-value-changed">
  856. <![CDATA[
  857. fSetacptbutton();
  858. ]]>
  859. </script>
  860. </select1>
  861. <select1 id="cmb_instcd_rslt" ref="/root/hidden/ref/extrinstcd" class="combo_default" appearance="minimal" style="left:675px; top:8px; width:105px; height:19px; ">
  862. <choices>
  863. <itemset nodeset="/root/init/LB0110">
  864. <label ref="nm"/>
  865. <value ref="cd"/>
  866. </itemset>
  867. </choices>
  868. </select1>
  869. <button id="btn_ref_rslt" class="btn1_letter2" style="left:1109px; top:7px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
  870. <caption>조회</caption>
  871. <script type="javascript" ev:event="DOMActivate">
  872. <![CDATA[
  873. fGetSutakRslt();
  874. ]]>
  875. </script>
  876. </button>
  877. <caption id="caption16" class="search_name" style="left:800px; top:9px; width:92px; height:17px; ">시행부서 :</caption>
  878. <select1 id="cmb_sect_rslt" ref="/root/hidden/ref/sectcd" class="combo_s_essential" appearance="minimal" itemcount="10" style="left:895px; top:8px; width:80px; height:19px; text-align:left; ">
  879. <choices>
  880. <itemset nodeset="/root/init/LB0111">
  881. <label ref="nm"/>
  882. <value ref="cd"/>
  883. </itemset>
  884. </choices>
  885. <script type="javascript" ev:event="xforms-value-changed">
  886. <![CDATA[
  887. fSetTLrgCd();
  888. ]]>
  889. </script>
  890. </select1>
  891. <select1 id="cmb_tsec_rslt" ref="/root/hidden/ref/tsectcd" class="combo_s_essential" appearance="minimal" itemcount="10" style="left:974px; top:8px; width:100px; height:19px; text-align:left; ">
  892. <choices>
  893. <itemset nodeset="/root/init/LB0106">
  894. <label ref="nm"/>
  895. <value ref="cd"/>
  896. </itemset>
  897. </choices>
  898. </select1>
  899. </group>
  900. <datagrid id="grd_outer" nodeset="/root/main/outerlist" class="datagrid2" caption="^▣^level^접수일자^의뢰 병원^의뢰병원&#xA;바코드번호^본원&#xA;바코드번호^검사명^검체명^의뢰병원&#xA;등록번호^본원&#xA;등록번호^환자명^성별^나이^결과&#xA;상태^결과^서술결과여부^^이미지&#xA;결과여부^^시행부서^주민등록번호^의뢰의사명^진료과명^병동/병실^소변량^tclscd^spccd^testcd^tclskind^수탁병원^imgth^imgwidt^descrslt^userflagcd^수탁결과보고일^의뢰서서식^의뢰서^주석" colsep="^" colwidth="30, 25, 33, 72, 90, 74, 74, 120, 80, 70, 70, 62, 34, 34, 60, 80, 40, 18, 54, 20, 70, 110, 70, 60, 69, 50, 54, 40, 57, 24, 86, 47, 37, 100, 69, 100, 100, 41,30" dataheight="23" defaultrows="0" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" tooltip="true" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:69px; width:1190px; height:631px; ">
  901. <col checkvalue="true,false" ref="chk" type="checkbox" format="yyyy-mm-dd"/>
  902. <col/>
  903. <col ref="level" visibility="hidden"/>
  904. <col ref="reqdd" format="yyyy-mm-dd"/>
  905. <col ref="reqinstcd" type="combo">
  906. <choices>
  907. <itemset nodeset="/root/init/LB0110">
  908. <label ref="nm"/>
  909. <value ref="cd"/>
  910. </itemset>
  911. </choices>
  912. </col>
  913. <col ref="reqbcno" type="input"/>
  914. <col ref="trustbcno" type="input"/>
  915. <col ref="tclsnm"/>
  916. <col ref="spcnm"/>
  917. <col ref="reqpid" type="input"/>
  918. <col ref="trustpid" type="input"/>
  919. <col ref="hngnm"/>
  920. <col ref="sex"/>
  921. <col ref="age" style="left:940px; top:23px; width:100px; height:23px; "/>
  922. <col ref="rsltstat" type="combo">
  923. <choices>
  924. <item>
  925. <label>결과저장</label>
  926. <value>1</value>
  927. </item>
  928. <item>
  929. <label>중간보고</label>
  930. <value>2</value>
  931. </item>
  932. <item>
  933. <label>최종보고중</label>
  934. <value>3</value>
  935. </item>
  936. <item>
  937. <label>최종보고</label>
  938. <value>4</value>
  939. </item>
  940. <item>
  941. <label>수정보고</label>
  942. <value>5</value>
  943. </item>
  944. </choices>
  945. </col>
  946. <col ref="reptrslt"/>
  947. <col ref="descrsltyn"/>
  948. <col type="inputbutton"/>
  949. <col ref="imagrsltyn"/>
  950. <col ref="imgrslt" type="inputbutton"/>
  951. <col ref="sectnm"/>
  952. <col ref="rrgstno" format="999999-9999999"/>
  953. <col ref="usernm"/>
  954. <col ref="deptengabbr"/>
  955. <col ref="wardroom"/>
  956. <col ref="urinextrvol"/>
  957. <col ref="tclscd"/>
  958. <col ref="spccd"/>
  959. <col ref="testcd"/>
  960. <col ref="tclskind" visibility="hidden"/>
  961. <col ref="trustinstcd" type="combo">
  962. <choices>
  963. <itemset nodeset="/root/init/LB0110">
  964. <label ref="nm"/>
  965. <value ref="cd"/>
  966. </itemset>
  967. </choices>
  968. </col>
  969. <col ref="imght" visibility="hidden"/>
  970. <col ref="imgwidt" visibility="hidden"/>
  971. <col ref="descrslt" visibility="hidden"/>
  972. <col ref="userflagcd" visibility="hidden"/>
  973. <col ref="trustreptdt" format="yyyy-mm-dd hh:nn"/>
  974. <col ref="reqfrmcd" visibility="hidden"/>
  975. <col type="inputbutton" visibility="hidden"/>
  976. <col ref="cmtyn"/>
  977. <script type="javascript" ev:event="onbuttonclick">
  978. <![CDATA[
  979. //fSetImgRsltView();
  980. if(grd_outer.col == "18"){ // 서술결과버톤
  981. fGetDescrslt();
  982. }else if(grd_outer.col== "20"){ // 이미지결과버튼
  983. fSetImgRsltView();
  984. }else if(grd_outer.col =="37"){
  985. //fGetReqCnts();
  986. }
  987. ]]>
  988. </script>
  989. <script type="javascript" ev:event="xforms-select">
  990. <![CDATA[
  991. //alert("col= " + grd_outer.col+ " row = " + grd_outer.row);
  992. if(grd_outer.row == "0"){
  993. fSetallcheck_rslt();
  994. }else{
  995. fSetBcnocheck();
  996. }
  997. ]]>
  998. </script>
  999. <script type="javascript" ev:event="xforms-deselect">
  1000. <![CDATA[
  1001. //alert("col= " + grd_outer.col+ " row = " + grd_outer.row);
  1002. if(grd_outer.row == "0"){
  1003. fSetallcheck_rslt();
  1004. }else{
  1005. fSetBcnocheck();
  1006. }
  1007. ]]>
  1008. </script>
  1009. </datagrid>
  1010. <caption id="caption8" class="tit_2" style="left:5px; top:49px; width:131px; height:13px; ">수탁검사리스트</caption>
  1011. <line id="line4" class="line_1" style="x1:0px; y1:64px; x2:1190px; y2:64px; "/>
  1012. <button id="btn_excel_rslt" class="btn2_letter4" style="left:1126px; top:43px; width:64px; height:19px; ">
  1013. <caption>엑셀저장</caption>
  1014. <script type="javascript" ev:event="DOMActivate">
  1015. <![CDATA[
  1016. fExeExcel(grd_outer);
  1017. ]]>
  1018. </script>
  1019. </button>
  1020. </case>
  1021. </switch>
  1022. <select1 id="cmb_cancel" ref="/root/hidden/cancelcd" visibility="hidden" appearance="minimal" style="left:1059px; top:5px; width:135px; height:19px; ">
  1023. <choices>
  1024. <itemset nodeset="/root/hidden/cancelcombo">
  1025. <label ref="nm"/>
  1026. <value ref="cd"/>
  1027. </itemset>
  1028. </choices>
  1029. </select1>
  1030. <caption id="cap_cancel" style="left:990px; top:5px; width:60px; height:20px; ">취소사유</caption>
  1031. </group>
  1032. <group id="group4" scroll="auto" style="left:0px; top:13px; width:1195px; height:27px; ">
  1033. <button id="btn_rsltsend" class="btn4_letter4" style="left:1049px; top:3px; width:80px; height:22px; ">
  1034. <caption>결과전송</caption>
  1035. <script type="javascript" ev:event="DOMActivate">
  1036. <![CDATA[
  1037. fExeSutakRslt();
  1038. ]]>
  1039. </script>
  1040. </button>
  1041. <button id="btn_init" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
  1042. <caption>초기화</caption>
  1043. <script type="javascript" ev:event="onclick">
  1044. <![CDATA[
  1045. fSetInit();
  1046. ]]>
  1047. </script>
  1048. </button>
  1049. <line id="line2" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
  1050. <button id="btn_prnt" class="btn3_letter5" navindex="18" style="left:0px; top:3px; width:92px; height:22px; ">
  1051. <caption>프린터설정</caption>
  1052. <script type="javascript" ev:event="DOMActivate">
  1053. <![CDATA[
  1054. fSetPrint();
  1055. ]]>
  1056. </script>
  1057. </button>
  1058. <button id="btn_acptcancel" class="btn4_letter4" visibility="hidden" style="left:1049px; top:3px; width:80px; height:22px; ">
  1059. <caption>접수취소</caption>
  1060. <script type="javascript" ev:event="onclick">
  1061. <![CDATA[
  1062. fSetTrustAcptCancel();
  1063. ]]>
  1064. </script>
  1065. </button>
  1066. <button id="btn_acpt" class="btn4_letter2" style="left:1068px; top:3px; width:56px; height:22px; ">
  1067. <caption>접수</caption>
  1068. <script type="javascript" ev:event="onclick">
  1069. <![CDATA[
  1070. fSetTrustAcpt();
  1071. ]]>
  1072. </script>
  1073. </button>
  1074. <caption id="caption15" visibility="hidden" style="left:800px; top:5px; width:230px; height:20px; color:#0000ff; ">접수, 접수취소, 결과전송 버튼 포개져있음</caption>
  1075. <caption id="caption17" visibility="hidden" style="left:280px; top:1px; width:391px; height:25px; font-size:16pt; font-weight:bold; color:#0000ff; ">※ 운영서버에서 테스트 하지마세요</caption>
  1076. <button id="button1" class="btn4_letter4" visibility="hidden" style="left:665px; top:5px; width:110px; height:22px; ">
  1077. <caption>결과test</caption>
  1078. <script type="javascript" ev:event="DOMActivate">
  1079. <![CDATA[
  1080. fExeSutakRslt_test();
  1081. ]]>
  1082. </script>
  1083. </button>
  1084. </group>
  1085. <group id="group2" style="left:0px; top:0px; width:1195px; height:13px; ">
  1086. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:215px; height:14px; ">
  1087. <![CDATA[KNUH 수탁검사 접수 & 결과관리]]>
  1088. </caption>
  1089. </group>
  1090. </xhtml:body>
  1091. </xhtml:html>