SMLPP02810_분류별결과조회.xrw 76 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SMLPP0050_결과조회.xrw
  4. * 설 명 : 검사결과조회 - Ver.①
  5. * 설 계 자 : (주)에이씨케이 - 황상미
  6. * 작 성 자 : (주)에이씨케이 - 황상미
  7. * 작 성 일 : 2006.12.13
  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. <testrslt>
  20. <testrsltlist>
  21. <instcd/>
  22. <ptno/>
  23. <dispptno/>
  24. <prcpdd/>
  25. <acptdd/>
  26. <testcd/>
  27. <testnm/>
  28. <tgrupcd/>
  29. <acptstatcd/>
  30. <pid/>
  31. <patnm/>
  32. <reqfrmno/>
  33. <reqfrmflagcd/>
  34. <sexage/>
  35. <readdd/>
  36. <orddeptnm/>
  37. <orddrnm/>
  38. <readdrnm/>
  39. <prcpgenrflag/>
  40. <ptnoworkflagcd/>
  41. <diagcnts/>
  42. <execprcpuniqno/>
  43. </testrsltlist>
  44. <testrsltinfo>
  45. <reptrslt/>
  46. <level/>
  47. <judgmark/>
  48. <tkdt/>
  49. <rsltdd/>
  50. <suppdept/>
  51. <pacsno/>
  52. <spcno/>
  53. </testrsltinfo>
  54. </testrslt>
  55. <patinfo>
  56. <pattestrslt>
  57. <pid/>
  58. <patnm/>
  59. <dispptno/>
  60. <sexage/>
  61. <orddeptnm/>
  62. <orddrnm/>
  63. <prcpdd/>
  64. <acptdd/>
  65. <readdd/>
  66. <readdrnm/>
  67. </pattestrslt>
  68. <patinfolist>
  69. <pid/>
  70. </patinfolist>
  71. </patinfo>
  72. <popupendflag/>
  73. </main>
  74. <send/>
  75. <init>
  76. <refcrite/>
  77. <refval/>
  78. <acptfromdd/>
  79. <acpttodd/>
  80. <refdr/>
  81. <ptnocode/>
  82. <fromyear/>
  83. <fromptno/>
  84. <toptno/>
  85. <sysdt>
  86. <sysdtinfo>
  87. <sysdd/>
  88. <systm/>
  89. </sysdtinfo>
  90. </sysdt>
  91. <hospenv>
  92. <hospenvinfo>
  93. <instcd/>
  94. <lendrtnterm/>
  95. <recvqualmthdcd/>
  96. <plgydeptcd/>
  97. <plgyteamcd/>
  98. <doctjobgradcd/>
  99. <teamjobgradcd/>
  100. </hospenvinfo>
  101. </hospenv>
  102. <ptnocd>
  103. <ptnocdlist>
  104. <instcd/>
  105. <ptnocd/>
  106. <ptnonm/>
  107. </ptnocdlist>
  108. </ptnocd>
  109. <srchmthd>1</srchmthd>
  110. <popupmenu>
  111. <item>
  112. <name>이미지 조회</name>
  113. <func>fExeImgView2</func>
  114. </item>
  115. </popupmenu>
  116. <resncd>
  117. <resncdlist/>
  118. </resncd>
  119. <fromyearptno/>
  120. <toyearptno/>
  121. <toyear/>
  122. <mdlcdlist>
  123. <mdlcdinfo>
  124. <choi/>
  125. <instcd/>
  126. <baseflagcd/>
  127. <resncd/>
  128. <resncnts/>
  129. <mdlflagcd/>
  130. </mdlcdinfo>
  131. </mdlcdlist>
  132. <userinfo>
  133. <userinfolist/>
  134. <userid/>
  135. <usernm/>
  136. <jobkindcd/>
  137. </userinfo>
  138. <LB0001>
  139. <cd/>
  140. <nm/>
  141. </LB0001>
  142. <LB0002>
  143. <cd/>
  144. <nm/>
  145. </LB0002>
  146. </init>
  147. <hidden>
  148. <detlrefcrite>
  149. <extrpart/>
  150. <diag/>
  151. <extrmthd/>
  152. </detlrefcrite>
  153. <userdeptcd/>
  154. <workflagcd/>
  155. <allselect/>
  156. <statsworkflagcd/>
  157. <workflagcd3/>
  158. <allselect3/>
  159. <acptenv>
  160. <readdr/>
  161. </acptenv>
  162. <JoHoiFlag>
  163. <deptcd/>
  164. </JoHoiFlag>
  165. <LB0002>
  166. <cd/>
  167. <nm/>
  168. </LB0002>
  169. </hidden>
  170. <temp>
  171. <LB0002>
  172. <cd/>
  173. <nm/>
  174. </LB0002>
  175. </temp>
  176. </root>
  177. </instance>
  178. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  179. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  180. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  181. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  182. <script type="javascript" src="../../../lis/commonweb/js/LPZ001.js"/>
  183. <script type="javascript" src="../../../lis/commonweb/js/LLZ001.js"/>
  184. <script type="javascript" ev:event="xforms-ready">
  185. <![CDATA[
  186. fExeInitialize();
  187. ]]>
  188. </script>
  189. <submission id="TRLPZ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/hospenv/hospenvinfo"/>
  190. <submission id="TRLPZ00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/sysdt/sysdtinfo"/>
  191. <submission id="TRLPZ00107" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/testrslt/testrsltinfo"/>
  192. <submission id="TRLPZ00109" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/ptnocd/ptnocdlist"/>
  193. <submission id="TRLPP00501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/testrslt/testrsltlist"/>
  194. <submission id="TRLPZ00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/resncd/resncdlist"/>
  195. <submission id="TRLPC02802" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/mdlcdlist/mdlcdinfo"/>
  196. <submission id="TRLPZ00105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/userinfo/userinfolist"/>
  197. <submission id="TRLZZ00111" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/temp"/>
  198. </model>
  199. <script type="javascript">
  200. <![CDATA[
  201. var sWorkflagList = "" // 작업구분 체크 구분을 위해 사용
  202. var gRowSize = 0; // 병리번호 목록 확장 구분
  203. var sGridSize = 1; // 병리번호 목록 확장 구분
  204. /* @group : 병리결과조회(외래/병동)
  205. * @ver : 2006.12.04 (CMCDEV-0001)
  206. * @by : 황상미(ACK)
  207. * @-----------------------------------
  208. * @type : function
  209. * @access : public
  210. * @desc : 화면초기화 함수
  211. */
  212. function fExeInitialize(){
  213. var sWorkFlagCd = "";
  214. var iNodeCnt = -1;
  215. //----------------
  216. // 시스템일시 조회
  217. model.removeNodeset("/root/send");
  218. model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
  219. submit("TRLPZ00101", false);
  220. submit("TRLPZ00102", false);
  221. submit("TRLPZ00109");
  222. //---------------
  223. // 작업구분 조회
  224. model.makeValue("/root/send/baseflagcd", "'83'");
  225. submit("TRLPZ00103");
  226. model.removeNodeset("/root/init/resncd/resncdlist[resncd='1000']"); // 해당없음
  227. model.removeNodeset("/root/init/resncd/resncdlist[resncd='1011']"); // 기록실
  228. model.removeNodeset("/root/init/resncd/resncdlist[resncd='ZZZZ']"); // 기록실
  229. //-이재오 통계구분 2012 8월 9일 추가 //
  230. // 통계구분코드 조회
  231. model.makeValue("/root/send/codeflag","0002|");
  232. submit("TRLZZ00111");
  233. //model.setvalue("/root/hidden/JoHoiFlag/deptcd", model.getvalue("/root/init/LB0002/cd")); //진료과
  234. // model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
  235. // model.makeValue("/root/send/delflagcd", "0");
  236. // model.makeValue("/root/send/baseflagcd", "ZA");
  237. // model.makeValue("/root/send/resncd", "04");
  238. // if(submit("TRLPC02802")) {
  239. //
  240. // //---------------------------------
  241. // // 전체조회용 Instance생성
  242. // var iNodeCnt = Number(getNodesetCount("/root/init/mdlcdlist/mdlcdinfo")) + 1;
  243. // model.makeValue("/root/init/mdlcdlist/mdlcdinfo[" + iNodeCnt + "]/resncd", "ZZZZ");
  244. // model.makeValue("/root/init/mdlcdlist/mdlcdinfo[" + iNodeCnt + "]/resncnts", "전체");
  245. // model.makeValue("/root/init/mdlcdlist/mdlcdinfo[" + iNodeCnt + "]/baseflagcd", "ZA");
  246. //
  247. // }
  248. // 의사목록 조회....
  249. model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
  250. model.makeValue("/root/send/userdeptcd", "-");
  251. model.makeValue("/root/send/doctjobgradcd", "-"); // 예문 추가시 의사만 보일 수 있도록
  252. model.makeValue("/root/send/teamjobgradcd", "-");
  253. submit("TRLPZ00105");
  254. // 전체조회용 Instance생성
  255. //var iNodeCnt = Number(getNodesetCount("/root/init/userinfo/userinfolist[jobkindcd='1']")) + 1;
  256. //alert(iNodeCnt);
  257. //model.makeValue("/root/init/userinfo/userinfolist/choi", "false");
  258. //model.makeValue("/root/init/userinfo/userinfolist/dutplceinstcd","031");
  259. model.makeValue("/root/init/userinfo/userinfolist/userid","ZZ");
  260. model.makeValue("/root/init/userinfo/userinfolist/usernm","전체");
  261. model.makeValue("/root/init/userinfo/userinfolist/jobkindcd","1");
  262. //model.makeValue("/root/init/userinfo/userinfolist/userabbr", "")
  263. //model.makeValue("/root/init/userinfo/userinfolist/mpphonno", "")
  264. // /root/init/userinfo/userinfolist[jobkindcd='1']
  265. //-이재오 통계구분 2012 8월 9일 추가 //
  266. // 통계구분코드 조회
  267. //fBaseInfoRef("0001|0002|");
  268. //fBaseInfoRef("0002|");
  269. //fBaseInfoRef("0000|8001|0405|0406|0407|0408|0139|");
  270. //model.setvalue("/root/hidden/JoHoiFlag/deptcd", model.getvalue("/root/init/LB0002/cd")); //진료과
  271. //-이재오 통계구분 2012 8월 9일 //
  272. /*
  273. //---------------------------------
  274. //default 전체 체크
  275. sWorkFlagCd = "";
  276. iNodeCnt = Number(getNodesetCount("/root/init/resncd/resncdlist"));
  277. for (var iNo=1; iNo <= iNodeCnt; iNo++) {
  278. switch (model.getValue("/root/init/resncd/resncdlist["+iNo+"]/resncd")) {
  279. //case "1003" :
  280. //case "ZZZZ" :
  281. // break;
  282. default : sWorkFlagCd += model.getValue("/root/init/resncd/resncdlist["+iNo+"]/resncd") + " ";
  283. break;
  284. }
  285. }
  286. model.makeValue("/root/hidden/workflagcd", sWorkFlagCd);
  287. */
  288. //---------------------------------------------------------
  289. // 병원환경정보를 취득하여 병리과와 병리팀 코드를 편집한다.
  290. lpzfUserDeptCd("/root/init/hospenv/hospenvinfo", "/root/hidden");
  291. //--------------------------------------------
  292. model.makeValue("/root/init/refcrite", "-");
  293. model.makeValue("/root/init/acptfromdd", model.getValue("/root/init/sysdt/sysdtinfo/sysdd"));
  294. model.makeValue("/root/init/acpttodd", model.getValue("/root/init/sysdt/sysdtinfo/sysdd"));
  295. model.makeValue("/root/init/refdr", "");
  296. btn_search.selected = true;
  297. model.toggle("case3");
  298. model.makeValue("/root/init/refcrite", "2"); // 등록번호
  299. model.makeValue("/root/init/refval", ""); // 검색값
  300. //-----------------------------------------------------------------
  301. var sCurDate = model.getValue("/root/init/sysdt/sysdtinfo/sysdd");
  302. model.makeValue("/root/init/ptnocode", "");
  303. model.makeValue("/root/init/fromyear", sCurDate.substr(2,2));
  304. model.makeValue("/root/init/fromptno", "");
  305. model.makeValue("/root/init/toptno", "");
  306. //---------------------------
  307. if (window.parent == null) {
  308. // Continue
  309. } else {
  310. if (opener.javascript.getParameter("SMLPP00500_scrno") != "") {
  311. model.makeValue("/root/init/ptnocode", opener.javascript.getParameter("SMLPP00500_ptnocd"));
  312. model.makeValue("/root/init/fromyear", opener.javascript.getParameter("SMLPP00500_year"));
  313. model.makeValue("/root/init/fromptno", opener.javascript.getParameter("SMLPP00500_no"));
  314. model.makeValue("/root/init/acptfromdd", opener.javascript.getParameter("SMLPP00500_acptdd"));
  315. model.makeValue("/root/init/acpttodd", opener.javascript.getParameter("SMLPP00500_acptdd"));
  316. model.makeValue("/root/init/refcrite", "0");
  317. model.makeValue("/root/init/refval", "");
  318. //--------------------
  319. fGetTestRsltList("1");
  320. }
  321. }
  322. model.setValue("/root/init/ptnocode", "-" );
  323. model.makeValue("/root/hidden/workflagcd", "1001 1002 1003");
  324. //--------------
  325. model.refresh();
  326. }
  327. /* @group : 병리결과조회(외래/병동)
  328. * @ver : 2007.05.21 (CMCDEV-0001)
  329. * @by : 유동철(ACK)
  330. * @-----------------------------------
  331. * @type : function
  332. * @access : public
  333. * @desc : 검사결과 목록 조회 함수
  334. */
  335. function fGetTestRsltList(pFlagCd)
  336. {
  337. var sTemp = "";
  338. var re = / /g;
  339. var sFromDD = model.getValue("/root/init/acptfromdd");
  340. var sRefVal = model.getValue("/root/init/refval");
  341. var sWorkFlagCd = "";
  342. var sFromYear = "";
  343. var sToYear = "";
  344. var sreadId = "";
  345. alert(pFlagCd);
  346. //--------------------------------------------------------
  347. // 등록번호 조회 시 최소 4자리 이상 입력하도록 메세지 표시
  348. if (model.getValue("/root/init/refcrite") == "2")
  349. {
  350. if (sRefVal != "")
  351. {
  352. if (sRefVal.length < 3)
  353. {
  354. messageBox("등록번호를 4자리 이상 ", "C001");
  355. return false;
  356. }
  357. }
  358. }
  359. //------------------------------------------------
  360. if (model.getValue("/root/init/ptnocode") != "")
  361. {
  362. //------------------------------------------------
  363. if (model.getValue("/root/init/fromyear") == "")
  364. {
  365. model.makeValue("/root/init/fromyear", sFromDD.substr(2,2));
  366. }
  367. else
  368. {
  369. sTemp = model.getValue("/root/init/fromyear");
  370. model.makeValue("/root/init/fromyear", sTemp.getLeftPad(2, "0"));
  371. }
  372. //------------------------------------------------
  373. if (model.getValue("/root/init/fromptno") == "")
  374. {
  375. //model.makeValue("/root/init/fromptno", "000000");
  376. model.makeValue("/root/init/toptno", "zzzzzz");
  377. }
  378. else
  379. {
  380. sTemp = model.getValue("/root/init/fromptno");
  381. model.makeValue("/root/init/fromptno", sTemp.getLeftPad(6, "0"));
  382. model.makeValue("/root/init/toptno", sTemp.getLeftPad(6, "0"));
  383. }
  384. }
  385. //--------------------------------------------
  386. model.makeValue("/root/init/fromyearptno", lpzfExePtNoChange(model.getValue("/root/init/fromyearptno")));
  387. model.makeValue("/root/init/toyearptno", lpzfExePtNoChange(model.getValue("/root/init/toyearptno")));
  388. //--------------------------------------------
  389. sTemp = model.getValue("/root/init/ptnocode");
  390. //--------------------------------
  391. model.removeNodeset("/root/send");
  392. model.removeNodeset("/root/main/testrslt/testrsltlist");
  393. //---------------------------------------------------------------------
  394. model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
  395. model.makeValue("/root/send/refcrite", model.getValue("/root/init/refcrite"));
  396. model.makeValue("/root/send/refval", model.getValue("/root/init/refval"));
  397. model.makeValue("/root/send/acptfromdd", model.getValue("/root/init/acptfromdd"));
  398. model.makeValue("/root/send/acpttodd", model.getValue("/root/init/acpttodd"));
  399. model.makeValue("/root/send/userdeptcd", model.getValue("/root/hidden/userdeptcd"));
  400. model.makeValue("/root/send/refflagcd", pFlagCd);
  401. //model.makeValue("/root/send/ptnocode", sTemp.replace("-", ""));
  402. if(pFlagCd == "1") {
  403. model.makeValue("/root/send/ptnocode", sTemp);
  404. } else {
  405. model.makeValue("/root/send/ptnocode", "");
  406. }
  407. //model.makeValue("/root/send/fromyear", model.getValue("/root/init/fromyear"));
  408. //model.makeValue("/root/send/fromptno", model.getValue("/root/init/fromptno"));
  409. //model.makeValue("/root/send/toyear", model.getValue("/root/init/fromyear"));
  410. //model.makeValue("/root/send/toptno", model.getValue("/root/init/toptno"));
  411. model.makeValue("/root/send/srchmthd", model.getValue("/root/init/srchmthd"));
  412. model.makeValue("/root/send/scrnid", "SMLPP02810");
  413. sFromYear = model.getValue("/root/init/fromyearptno");
  414. sToYear = model.getValue("/root/init/toyearptno");
  415. if(sFromYear != "" && sToYear != "") {
  416. if(sFromYear.length == 8 || sFromYear.length == 10 || sFromYear.length == 0) {
  417. model.makeValue("/root/send/fromyear", sFromYear.substring(0, (sFromYear.length - 6)));
  418. model.makeValue("/root/send/fromptno", sFromYear.substring((sFromYear.length - 6), (sFromYear.length)));
  419. } else {
  420. messageBox("병리번호를 다시 입력하여 주세요.", "E999");
  421. return false;
  422. }
  423. if(sToYear.length == 8 || sToYear.length == 10 || sToYear.length == 0) {
  424. model.makeValue("/root/send/toyear", sToYear.substring(0, (sToYear.length - 6)));
  425. model.makeValue("/root/send/toptno", sToYear.substring((sToYear.length - 6), (sFromYear.length)));
  426. } else {
  427. messageBox("병리번호를 다시 입력하여 주세요.", "E999");
  428. return false;
  429. }
  430. } else if(sFromYear == "" && sToYear != ""){
  431. if(sToYear.length == 8 || sToYear.length == 10 || sToYear.length == 0) {
  432. model.makeValue("/root/send/toyear", sToYear.substring(0, (sToYear.length - 6)));
  433. model.makeValue("/root/send/toptno", sToYear.substring((sToYear.length - 6), (sToYear.length)));
  434. model.makeValue("/root/send/fromyear", sToYear.substring(0, (sToYear.length - 6)));
  435. model.makeValue("/root/send/fromptno", sToYear.substring((sToYear.length - 6), (sToYear.length)));
  436. } else {
  437. messageBox("병리번호를 다시 입력하여 주세요.", "E999");
  438. return false;
  439. }
  440. } else if(sFromYear != "" && sToYear == "") {
  441. if(sFromYear.length == 8 || sFromYear.length == 10 || sFromYear.length == 0) {
  442. model.makeValue("/root/send/fromyear", sFromYear.substring(0, (sFromYear.length - 6)));
  443. model.makeValue("/root/send/fromptno", sFromYear.substring((sFromYear.length - 6), (sFromYear.length)));
  444. model.makeValue("/root/send/toyear", sFromYear.substring(0, (sFromYear.length - 6)));
  445. model.makeValue("/root/send/toptno", sFromYear.substring((sFromYear.length - 6), (sFromYear.length)));
  446. } else {
  447. messageBox("병리번호를 다시 입력하여 주세요.", "E999");
  448. return false;
  449. }
  450. } else {
  451. if(model.getValue("/root/send/ptnocode") != "-") {
  452. model.makeValue("/root/send/fromyear", "00");
  453. model.makeValue("/root/send/fromptno", "000000");
  454. model.makeValue("/root/send/toyear", "99");
  455. model.makeValue("/root/send/toptno", "zzzzzz");
  456. } else {
  457. model.makeValue("/root/send/fromyear", "");
  458. model.makeValue("/root/send/fromptno", "");
  459. model.makeValue("/root/send/toyear", "");
  460. model.makeValue("/root/send/toptno", "");
  461. }
  462. }
  463. //------------------------------------------------
  464. // Regular표현식을 사용하여 공백(" ")문자를 ','로 변환
  465. //이재오 추가 20120809일
  466. // alert(pFlagCd);
  467. if(pFlagCd == "1") {
  468. sWorkFlagCd = model.getValue("/root/hidden/workflagcd");
  469. // } else if( pFlagCd == "2"){
  470. // sWorkFlagCd = model.getValue("/root/hidden/workflagcd3");
  471. // alert(sWorkFlagCd);
  472. }
  473. else {
  474. sWorkFlagCd = model.getValue("/root/hidden/workflagcd3");
  475. // alert(sWorkFlagCd);
  476. }
  477. // 이재오 막다
  478. //sWorkFlagCd = model.getValue("/root/hidden/workflagcd");
  479. if(sWorkFlagCd != "") {
  480. sWorkFlagCd = "'" + sWorkFlagCd.replace(re, "','") + "'";
  481. model.makeValue("/root/send/workflaglist", sWorkFlagCd);
  482. } else {
  483. model.makeValue("/root/send/workflaglist", "EMPTY");
  484. }
  485. //이재오 2012.8.13일 판독자ID 추가
  486. sreadId = model.getValue("/root/hidden/acptenv/readdr");
  487. if(sreadId != "" && sreadId != "ZZ") {
  488. model.makeValue("/root/send/sreadId", sreadId);
  489. alert(sreadId);
  490. } else {
  491. model.makeValue("/root/send/sreadId", "EMPTY");
  492. alert(sreadId);
  493. }
  494. //이재오 2012.8.13일 판독자 ID 추가
  495. //model.makeValue("/root/init/userinfo/userinfolist/userid","ZZ")
  496. //-----------------------------------------------
  497. // 일반조회(1), 상세(TPM)조회(2), 결과상세조회(3)
  498. if (pFlagCd == "1")
  499. {
  500. model.makeValue("/root/send/extrpart", "");
  501. model.makeValue("/root/send/diag", "");
  502. model.makeValue("/root/send/extrmthd", "");
  503. }
  504. else
  505. {
  506. model.makeValue("/root/send/extrpart", model.getValue("/root/hidden/detlrefcrite/extrpart"));
  507. model.makeValue("/root/send/diag", model.getValue("/root/hidden/detlrefcrite/diag"));
  508. model.makeValue("/root/send/extrmthd", model.getValue("/root/hidden/detlrefcrite/extrmthd"));
  509. // 이재오 2012 8.10일 진료과 상세내역 추가
  510. model.makeValue("/root/send/orddeptid", model.getValue("/root/hidden/JoHoiFlag/deptcd"));
  511. //alert(model.getValue("/root/send/orddeptid"));
  512. }
  513. //-------------------
  514. submit("TRLPP00501");
  515. //-------------------------------------------------------------
  516. if (getNodesetCount("/root/main/testrslt/testrsltlist") == 1)
  517. {
  518. grd_testrsltlist.row = 1;
  519. fGetTestRslt();
  520. }
  521. // 이재오 2012 8월 13일 추가
  522. model.refresh();
  523. // 이재오 2012 8월 13일 추가
  524. }
  525. /* @group : 병리결과조회(외래/병동)
  526. * @ver : 2006.12.04 (CMCDEV-0001)
  527. * @by : 황상미(ACK)
  528. * @-----------------------------------
  529. * @type : function
  530. * @access : public
  531. * @desc : 검사결과 조회 함수
  532. */
  533. function fGetTestRslt() {
  534. var iRowNo = -1;
  535. var sScrNode = "/root/main/testrslt/testrsltlist";
  536. var sDescNode = "/root/main/patinfo/pattestrslt";
  537. //------------------------------------------
  538. if (grd_testrsltlist.row <= 0) return false;
  539. //----------------------------
  540. iRowNo = grd_testrsltlist.row;
  541. model.makeValue(sDescNode + "/pid", model.getValue(sScrNode + "[" + iRowNo + "]/pid"));
  542. model.makeValue(sDescNode + "/patnm", model.getValue(sScrNode + "[" + iRowNo + "]/patnm"));
  543. model.makeValue(sDescNode + "/dispptno", model.getValue(sScrNode + "[" + iRowNo + "]/dispptno"));
  544. model.makeValue(sDescNode + "/sexage", model.getValue(sScrNode + "[" + iRowNo + "]/sexage"));
  545. model.makeValue(sDescNode + "/orddeptnm", model.getValue(sScrNode + "[" + iRowNo + "]/orddeptnm"));
  546. model.makeValue(sDescNode + "/orddrnm", model.getValue(sScrNode + "[" + iRowNo + "]/orddrnm"));
  547. model.makeValue(sDescNode + "/prcpdd", model.getValue(sScrNode + "[" + iRowNo + "]/prcpdd"));
  548. model.makeValue(sDescNode + "/acptdd", model.getValue(sScrNode + "[" + iRowNo + "]/acptdd"));
  549. model.makeValue(sDescNode + "/readdd", model.getValue(sScrNode + "[" + iRowNo + "]/readdd"));
  550. model.makeValue(sDescNode + "/readdrnm", model.getValue(sScrNode + "[" + iRowNo + "]/readdrnm"));
  551. //----------------------------------
  552. lpzfTopInfo(); // 상단정보 호출
  553. //---------------------------------------------------------------------------------------------
  554. if (model.getValue("/root/paminfo/pid") != model.getValue(sScrNode + "[" + iRowNo + "]/pid")) {
  555. //--------------
  556. // 상단정보 표시
  557. lpzfExeTopInfoDisp(model.getValue(sScrNode+"["+iRowNo+"]/prcpdd"),
  558. model.getValue(sScrNode+"["+iRowNo+"]/execprcpuniqno"),
  559. model.getValue(sScrNode+"["+iRowNo+"]/instcd"));
  560. }
  561. //---------------
  562. // 검사결과 조회
  563. model.removeNodeset("/root/send");
  564. model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
  565. model.makeValue("/root/send/ptno", model.getValue(sScrNode + "[" + iRowNo + "]/ptno"));
  566. model.makeValue("/root/send/pid", model.getValue(sScrNode + "[" + iRowNo + "]/pid"));
  567. model.makeValue("/root/send/workflagcd", model.getValue(sScrNode + "[" + iRowNo + "]/ptnoworkflagcd"));
  568. model.makeValue("/root/send/prcpgenrflag", model.getValue(sScrNode + "[" + iRowNo + "]/prcpgenrflag"));
  569. model.makeValue("/root/send/scrno", "10");
  570. model.resetInstanceNode("/root/main/testrslt/testrsltinfo");
  571. //-------------------
  572. submit("TRLPZ00107");
  573. //--------------
  574. model.refresh();
  575. }
  576. /* @group : 병리결과조회(외래/병동)
  577. * @ver : 2007.07.16 (CMCDEV-0001)
  578. * @by : 유동철(ACK)
  579. * @-----------------------------------
  580. * @type : function
  581. * @access : public
  582. * @desc : 통합결과조회 화면호출
  583. */
  584. function fExePopupCallSytsRslt() {
  585. if (model.getValue("/root/main/patinfo/pattestrslt/pid") == "") {
  586. modal("SMAER00800");
  587. } else {
  588. modal("SMAER00800", "", "", "", "SMAER00800", "/root/main/patinfo/pattestrslt/pid", "/root/send/data/singdata/srchpid");
  589. }
  590. }
  591. function fExePtNoClick() {
  592. if(grd_testrsltlist.row > 0 && grd_testrsltlist.isCell(event.target) && grd_testrsltlist.row >= grd_testrsltlist.fixedRows) {
  593. fGetTestRslt();
  594. }
  595. }
  596. /* @group : 병리결과조회(외래/병동)
  597. * @ver : 2007.12.19 (CMCDEV-0001)
  598. * @by : 유동철(ACK)
  599. * @-----------------------------------
  600. * @type : function
  601. * @access : public
  602. * @desc : 등록번호 조회값 입력 처리
  603. */
  604. function fExeRefValKeyPress() {
  605. if(event.keyCode == 13) {
  606. model.setValue("/root/init/refval", ipt_refval.currentText);
  607. ipt_refval.refresh();
  608. //--------------------
  609. fGetTestRsltList("1");
  610. }
  611. }
  612. /* @group : 병리결과조회(외래/병동)
  613. * @ver : 2007.12.19 (CMCDEV-0001)
  614. * @by : 유동철(ACK)
  615. * @-----------------------------------
  616. * @type : function
  617. * @access : public
  618. * @desc : 병리번호 입력값 처리
  619. */
  620. function fExePtNoInput() {
  621. if(event.keyCode == 13) {
  622. model.setValue("/root/init/fromptno", ipt_fromptno.currentText);
  623. ipt_fromptno.refresh();
  624. //--------------------
  625. fGetTestRsltList("1");
  626. }
  627. }
  628. /* @group : 병리결과조회(외래/병동)
  629. * @ver : 2008.02.21 (CMCDEV-0001)
  630. * @by : 유동철(ACK)
  631. * @-----------------------------------
  632. * @type : function
  633. * @access : public
  634. * @desc : 이미지 표시 처리
  635. */
  636. function fExeImgView() {
  637. var sPtNo = "";
  638. var aPtNo = "";
  639. var sNode = "/root/main/testrslt/testrsltlist";
  640. var iRowNo = grd_testrsltlist.row;
  641. //----------------
  642. if (iRowNo >= 0) {
  643. sPtNo = model.getValue(sNode+"["+iRowNo+"]/dispptno");
  644. aPtNo = sPtNo.split("-");
  645. //----------------------------------------------
  646. setParameter("SMLPP02000_scrno", "SMLPP00500");
  647. setParameter("SMLPP02000_pid", model.getValue(sNode+"["+iRowNo+"]/pid"));
  648. setParameter("SMLPP02000_rgstdd", getCurrentDate());
  649. // setParameter("SMLPP02000_no", aPtNo[1]);
  650. // setParameter("SMLPP02000_ptnocd", aPtNo[0].substr(0, (aPtNo[0].length-2)));
  651. // setParameter("SMLPP02000_year", aPtNo[0].substr(aPtNo[0].length-2, 2));
  652. setParameter("SMLPP02000_no", "");
  653. setParameter("SMLPP02000_ptnocd", "");
  654. setParameter("SMLPP02000_year", "");
  655. //------------------
  656. modal("SMLPP02000");
  657. }
  658. }
  659. /* @group : 병리결과조회(외래/병동)
  660. * @ver : 2008.02.21 (CMCDEV-0001)
  661. * @by : 유동철(ACK)
  662. * @-----------------------------------
  663. * @type : function
  664. * @access : public
  665. * @desc : 환자정보 그리드에 추가 처리
  666. */
  667. function fExeMakePatInfo() {
  668. var sNode = "/root/main/testrslt/testrsltinfo";
  669. var sPatInfo = "";
  670. //-------------------------------------
  671. grd_testrsltref.insertRow(1, "before");
  672. grd_testrsltref.rowHidden(1) = true;
  673. //---------------------------------------------------------------------------------------
  674. sPatInfo = "등록번호:" + model.getValue("/root/main/patinfo/pattestrslt/pid") + " ";
  675. sPatInfo += "환자명:" + model.getValue("/root/main/patinfo/pattestrslt/patnm") + " ";
  676. sPatInfo += "성별/나이:" + model.getValue("/root/main/patinfo/pattestrslt/sexage");
  677. //----------------------------------------------------
  678. model.makeValue(sNode+"[1]/reptrslt", sPatInfo, true);
  679. model.makeValue(sNode+"[1]/level", model.getValue(sNode+"[2]/level"));
  680. model.makeValue(sNode+"[1]/judgmark", model.getValue(sNode+"[2]/judgmark"));
  681. model.makeValue(sNode+"[1]/tkdt", model.getValue(sNode+"[2]/tkdt"));
  682. model.makeValue(sNode+"[1]/rsltdd", model.getValue(sNode+"[2]/rsltdd"));
  683. model.makeValue(sNode+"[1]/suppdept", model.getValue(sNode+"[2]/suppdept"));
  684. model.makeValue(sNode+"[1]/pacsno", model.getValue(sNode+"[2]/pacsno"));
  685. model.makeValue(sNode+"[1]/spcno", model.getValue(sNode+"[2]/spcno"));
  686. }
  687. /* @group : 병리결과조회(외래/병동)
  688. * @ver : 2008.11. 04 (CMCDEV-0001)
  689. * @by : 하만석(ACK)
  690. * @-----------------------------------
  691. * @type : function
  692. * @access : public
  693. * @desc : 환자정보 그리드에 추가 처리
  694. */
  695. function fExeMakePatInfo2()
  696. {
  697. grd_testrsltlist.colWidth(10) = 50; // pid
  698. grd_testrsltlist.colWidth(11) = 80; // 환자명
  699. grd_testrsltlist.colWidth(14) = 90; // 성별/나이
  700. }
  701. /* @group : 병리결과조회(외래/병동)
  702. * @ver : 2008.11. 04 (CMCDEV-0001)
  703. * @by : 하만석(ACK)
  704. * @-----------------------------------
  705. * @type : function
  706. * @access : public
  707. * @desc : 환자정보 엑셀 저장 후 삭제 처리
  708. */
  709. function fExeDelPatInfo2()
  710. {
  711. grd_testrsltlist.colWidth(10) = 0; // pid
  712. grd_testrsltlist.colWidth(11) = 0; // 환자명
  713. grd_testrsltlist.colWidth(14) = 0; // 성별/나이
  714. }
  715. /* @group : 병리결과조회(외래/병동)
  716. * @ver : 2008.07.02 (CMCDEV-0001)
  717. * @by : 유동철(ACK)
  718. * @-----------------------------------
  719. * @type : function
  720. * @access : public
  721. * @desc : 보고서 출력
  722. */
  723. function fExeReptPrnt() {
  724. //-------------------------------
  725. if (grd_testrsltlist.row <= 0) {
  726. messageBox("처방을 선택하여 주십시오!", "I007");
  727. return false;
  728. }
  729. //------------------------------------
  730. model.makeNode("/root/init/prntinfo");
  731. model.makeValue("/root/init/prntinfo/reptflagcd", "1"); // 의뢰지(0), 보고서(1)
  732. model.makeValue("/root/init/prntinfo/prntflagcd", "0"); // 출력(0), 미리보기(1)
  733. model.makeValue("/root/init/prntinfo/copyflagcd", "1"); // 의뢰지/보고서(0), 복사본(1)
  734. model.makeValue("/root/init/prntinfo/acptdd", model.getValue("/root/main/testrslt/testrsltlist["+grd_testrsltlist.row+"]/acptdd"));
  735. model.makeValue("/root/init/prntinfo/ptno", model.getValue("/root/main/testrslt/testrsltlist["+grd_testrsltlist.row+"]/ptno"));
  736. model.makeValue("/root/init/prntinfo/pid", model.getValue("/root/main/testrslt/testrsltlist["+grd_testrsltlist.row+"]/pid"));
  737. lpzfExeFrmPrnt("/root/init/prntinfo");
  738. }
  739. /* @group : 임상정보조회
  740. * @ver : 2009.01.12 (CMCDEV-0001)
  741. * @by :
  742. * @-----------------------------------
  743. * @type : function
  744. * @access : public
  745. * @desc :
  746. */
  747. function fGetIMSInfo(){
  748. var iRowNo = -1;
  749. var sScrNode = "/root/main/testrslt/testrsltlist";
  750. if (grd_testrsltlist.row <= 0) return false;
  751. iRowNo = grd_testrsltlist.row;
  752. var instcd = getUserInfo("dutplceinstcd");
  753. var ptno = model.getValue(sScrNode + "[" + iRowNo + "]/ptno");
  754. var pid = model.getValue(sScrNode + "[" + iRowNo + "]/pid");
  755. var workflagcd = model.getValue(sScrNode + "[" + iRowNo + "]/ptnoworkflagcd");
  756. var prcpgenrflag = model.getValue(sScrNode + "[" + iRowNo + "]/prcpgenrflag");
  757. var scrno = "SPLPP02500";
  758. var sflag = instcd + "▦" + ptno + "▦" + pid + "▦" + workflagcd + "▦" + prcpgenrflag + "▦" + scrno;
  759. setParameter("opener_parameter_id", sflag);
  760. modal("SPLPP02500", "", "", "", "", "", "");
  761. }
  762. /* @group : 이미지조회
  763. * @ver : 2009.01.12 (CMCDEV-0001)
  764. * @by :
  765. * @-----------------------------------
  766. * @type : function
  767. * @access : public
  768. * @desc :
  769. */
  770. function fExeImgView2() {
  771. var sPtNo = "";
  772. var aPtNo = "";
  773. var sNode = "/root/main/testrslt/testrsltinfo";
  774. if(grd_testrsltref.row <= 0) return;
  775. //----------------------------------------
  776. sPtNo = model.getValue(sNode+ "["+ grd_testrsltref.row +"]/spcno");
  777. sPtNo = sPtNo.substr(0, sPtNo.length -6) + "-" + sPtNo.substr(sPtNo.length -6, 6);
  778. aPtNo = sPtNo.split("-");
  779. //----------------------------------------------
  780. setParameter("SMLPP02000_scrno", "SMLPR00100");
  781. //setParameter("SMLPP02000_pid", model.getValue(sNode+"/pid"));
  782. setParameter("SMLPP02000_pid", "");
  783. setParameter("SMLPP02000_rgstdd", getCurrentDate());
  784. setParameter("SMLPP02000_no", aPtNo[1]);
  785. setParameter("SMLPP02000_ptnocd", aPtNo[0].substr(0, (aPtNo[0].length-2)));
  786. setParameter("SMLPP02000_year", aPtNo[0].substr(aPtNo[0].length-2, 2));
  787. //------------------
  788. modal("SMLPP02000");
  789. }
  790. function fSetPopup(){
  791. if ( (grd_testrsltref.mouseRow >= grd_testrsltref.fixedRows) && (grd_testrsltref.isCell(event.target))) {
  792. grd_testrsltref.row = grd_testrsltref.mouseRow;
  793. model.removenode("/root/init/popupmenu");
  794. if(model.getValue("/root/main/testrslt/testrsltinfo["+ grd_testrsltref.row +"]/judgmark") == "IMP") {
  795. model.makeValue("/root/init/popupmenu/item/name", "▶ 병리 이미지 보기");
  796. model.makeValue("/root/init/popupmenu/item/func", "fExeImgView2");
  797. }
  798. setPopupMenu("grd_testrsltref", false, "/root/init/popupmenu/item", "name", "func");
  799. }
  800. }
  801. function fExeWorkFlagChng() {
  802. var iFindNo = -1;
  803. var aWorkFlagCd = "";
  804. var aBfWorkFlagCd = "";
  805. var sWorkFlagCd = model.getValue("/root/hidden/workflagcd");
  806. /*
  807. //-----------------------------------
  808. aWorkFlagCd = sWorkFlagCd.split(" ");
  809. for (var iNo=aWorkFlagCd.length-1; iNo >= 0; iNo--) {
  810. if (aWorkFlagCd[iNo].getTrim() == "") {
  811. // Continue
  812. } else if (aWorkFlagCd[iNo].getTrim() == "1003") {
  813. model.makeValue("/root/hidden/workflagcd", "1003 1004 1005");
  814. break;
  815. } else if (aWorkFlagCd[iNo].getTrim() == "9999") {
  816. model.makeValue("/root/hidden/workflagcd", "9999");
  817. break;
  818. } else {
  819. //---------------
  820. sWorkFlagCd = "";
  821. for (var iNo=1; iNo <= getNodesetCount("/root/init/resncd/resncdlist"); iNo++) {
  822. switch (model.getValue("/root/init/resncd/resncdlist["+iNo+"]/resncd")) {
  823. case "1003" :
  824. case "9999" :
  825. break;
  826. default : sWorkFlagCd += model.getValue("/root/init/resncd/resncdlist["+iNo+"]/resncd") + " ";
  827. break;
  828. }
  829. }
  830. model.makeValue("/root/hidden/workflagcd", sWorkFlagCd);
  831. break;
  832. }
  833. }
  834. */
  835. //-----------------------------------
  836. aWorkFlagCd = sWorkFlagCd.split(" ");
  837. aBfWorkFlagCd = sWorkflagList.split(" "); //잡업구분 이전 값.
  838. if(sWorkFlagCd.length > sWorkflagList.length) {
  839. //select 경우
  840. if (!(aWorkFlagCd[(aWorkFlagCd.length-1)].getTrim() == "")) {
  841. if(aWorkFlagCd[(aWorkFlagCd.length-1)].getTrim() == "1001" || aWorkFlagCd[(aWorkFlagCd.length-1)].getTrim() == "1002"){
  842. //조직, 동결절편을 선택한 경우
  843. //model.makeValue("/root/hidden/workflagcd", "1001 1002 1004 1005 1006 1007 1008 1009 1012 9999");
  844. } else if(aWorkFlagCd[(aWorkFlagCd.length-1)].getTrim() == "1003"){
  845. //세포를 선택한 경우
  846. //model.makeValue("/root/hidden/workflagcd", "1003 1004 1005 1006 1007 1008 1009 1012 9999");
  847. } else if(aWorkFlagCd[(aWorkFlagCd.length-1)].getTrim() == "ZZZZ"){
  848. //전체를 선택한 경우
  849. model.makeValue("/root/hidden/workflagcd", "1001 1002 1003 1004 1005 1006 1007 1008 1009 1012 ZZZZ");
  850. }
  851. }
  852. } else if (sWorkFlagCd.length < sWorkflagList.length) {
  853. //deselect경우("전체"를 Deselect한 경우만 체크 한다.)
  854. if(fCompareArray(aWorkFlagCd, aBfWorkFlagCd) == "ZZZZ") {
  855. model.makeValue("/root/hidden/workflagcd", "");
  856. }
  857. } else if (sWorkFlagCd.length == sWorkflagList.length) {
  858. }
  859. //변경후 작업구분 값을 저장하여 다음 변경시 사용.
  860. sWorkflagList = model.getValue("/root/hidden/workflagcd");
  861. model.refresh();
  862. }
  863. /* @group : 결과조회
  864. * @ver : 2007.06.03 (CMCDEV-0001)
  865. * @by : 박중규
  866. * @-----------------------------------
  867. * @type : function
  868. * @access : public
  869. * @desc : 작업구분 체크에 사용할 배열 비교
  870. */
  871. function fCompareArray(pAfworklist, pBfworklist) {
  872. var sWorkflagcd = "";
  873. var iCount = 0;
  874. for(var i=0 ; i < pBfworklist.length ; i++) {
  875. iCount = 0;
  876. for(var j=0 ; j < pAfworklist.length ; j++) {
  877. if(pBfworklist[i] == pAfworklist[j]){
  878. iCount=0;
  879. } else {
  880. iCount++;
  881. }
  882. }
  883. if(iCount == pAfworklist.length) {
  884. return pBfworklist[i];
  885. }
  886. }
  887. return "none";
  888. }
  889. /* @group : 세포결과일괄등록
  890. * @ver : 2008.12.04 (CMCDEV-0001)
  891. * @by : 하만석(ACK)
  892. * @-----------------------------------
  893. * @type : function
  894. * @access : public
  895. * @desc : 결과항목을 확인하기 위해서 row 크기 변경
  896. */
  897. function fExeResizeRow()
  898. {
  899. if (gRowSize == 0) // 초기상태
  900. {
  901. grd_testrsltlist.autoResize = true;
  902. grd_testrsltlist.refresh();
  903. gRowSize = 1;
  904. }
  905. else if (gRowSize == 1)
  906. {
  907. grd_testrsltlist.dataHeight = 23;
  908. grd_testrsltlist.autoResize = false;
  909. grd_testrsltlist.refresh();
  910. gRowSize = 0;
  911. }
  912. }
  913. function fExeEpandGrid(cnt)
  914. {
  915. if ( cnt == "1" )
  916. {
  917. grd_testrsltlist.attribute("width") = 1185;
  918. sGridSize = "2";
  919. }
  920. else if ( cnt == "2" )
  921. {
  922. grd_testrsltlist.attribute("width") = 448;
  923. sGridSize = "1";
  924. }
  925. }
  926. ]]>
  927. </script>
  928. </xhtml:head>
  929. <xhtml:body guideline="2,784;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  930. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  931. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">결과조회</caption>
  932. </group>
  933. <group id="grp_biz" scroll="auto" style="left:0px; top:40; width:1195px; height:744px; ">
  934. <datagrid id="grd_testrsltref" nodeset="/root/main/testrslt/testrsltinfo" autoresize="true" caption="검 사 결 과 내 용^caption2^caption3^caption4^caption5^caption6^caption7^caption8" colsep="^" colwidth="719, 0, 0, 0, 0, 0, 0, 0" mergecellsfixedrows="bycolrec" rowsep="|" style="left:452px; top:149px; width:741px; height:595px; font-family:굴림체; font-size:9pt; ">
  935. <col ref="reptrslt" style="font-family:굴림체; font-size:9pt; "/>
  936. <col ref="level"/>
  937. <col ref="judgmark"/>
  938. <col ref="tkdt"/>
  939. <col ref="rsltdd"/>
  940. <col ref="suppdept"/>
  941. <col ref="pacsno"/>
  942. <col ref="spcno"/>
  943. <script type="javascript" ev:event="DOMFocusOut">
  944. <![CDATA[
  945. initPopupMenu();
  946. ]]>
  947. </script>
  948. <script type="javascript" ev:event="onmousedown">
  949. <![CDATA[
  950. fSetPopup();
  951. ]]>
  952. </script>
  953. </datagrid>
  954. <caption id="caption3" class="tit_2" style="left:452px; top:130px; width:111px; height:13px; ">검사결과</caption>
  955. <line id="line2" class="line_1" style="x1:452px; y1:144px; x2:1193px; y2:144px; "/>
  956. <caption id="caption2" class="tit_2" style="left:4px; top:129px; width:140px; height:13px; ">검사결과 목록</caption>
  957. <line id="line3" class="line_1" style="x1:0px; y1:144px; x2:448px; y2:144px; "/>
  958. <switch id="switch1" style="left:0px; top:27px; width:1195px; height:93px; ">
  959. <case id="case1" selected="true">
  960. <shape id="roundrect2" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1193px; height:90px; background-color:#fffbf2; border-color:#ffd799; "/>
  961. <caption id="caption12" class="search_name" style="left:715px; top:37px; width:115px; height:17px; ">채취방법(P) :</caption>
  962. <caption id="caption4" class="search_name" style="left:715px; top:11px; width:115px; height:17px; ">채취부위(T) :</caption>
  963. <input id="input2" ref="/root/hidden/detlrefcrite/extrpart" class="input_search" navindex="9" style="left:835px; top:10px; width:245px; height:19px; "/>
  964. <input id="input3" ref="/root/hidden/detlrefcrite/diag" class="input_search" navindex="10" style="left:835px; top:62px; width:245px; height:19px; "/>
  965. <caption id="caption9" class="search_name" style="left:715px; top:63px; width:115px; height:17px; ">진 단(M) :</caption>
  966. <input id="input4" ref="/root/hidden/detlrefcrite/extrmthd" class="input_search" navindex="11" style="left:835px; top:36px; width:245px; height:19px; "/>
  967. <button id="btn_detlsea" class="btn1_letter4" style="left:1105px; top:35px; width:80px; height:22px; ">
  968. <caption>상세조회</caption>
  969. <script type="javascript" ev:event="DOMActivate">
  970. <![CDATA[
  971. fGetTestRsltList("2");
  972. ]]>
  973. </script>
  974. </button>
  975. <input id="input9" ref="/root/init/acpttodd" class="input_s_essential" navindex="6" inputtype="date" format="yyyy-mm-dd" mask="exclude" showmask="true" style="left:121px; top:45px; width:100px; height:19px; "/>
  976. <input id="input10" ref="/root/init/acptfromdd" class="input_s_essential" navindex="5" inputtype="date" format="yyyy-mm-dd" mask="exclude" showmask="true" style="left:5px; top:45px; width:100px; height:19px; ">
  977. <script type="javascript" ev:event="xforms-value-changed">
  978. <![CDATA[
  979. lpzfExeDateChange(ipt_fromyear, "/root/init/acptfromdd", "/root/init/fromyear");
  980. ]]>
  981. </script>
  982. </input>
  983. <caption id="caption24" class="search_n_b" style="left:107px; top:47px; width:12px; height:17px; font-weight:bolder; ">~</caption>
  984. <select1 id="combo2" ref="/root/init/srchmthd" class="combo_search" appearance="minimal" style="left:5px; top:20px; width:155px; height:19px; ">
  985. <choices>
  986. <item>
  987. <label>접수일자</label>
  988. <value>1</value>
  989. </item>
  990. <item>
  991. <label>보고일자</label>
  992. <value>2</value>
  993. </item>
  994. </choices>
  995. </select1>
  996. <line id="line4" class="line_4" style="x1:230px; y1:0px; x2:230px; y2:87px; border-color:#ffe4bb; border-left-style:solid; "/>
  997. <line id="line9" class="line_4" style="x1:1045px; y1:12px; x2:1045px; y2:77px; border-color:#ffe4bb; border-left-style:solid; "/>
  998. <select1 id="cbo_statsflagcd" ref="/root/hidden/statsworkflagcd" navindex="7" visibility="hidden" appearance="minimal" style="left:1090px; top:65px; width:103px; height:19px; ">
  999. <choices>
  1000. <itemset nodeset="/root/init/mdlcdlist/mdlcdinfo">
  1001. <label ref="resncnts"/>
  1002. <value ref="resncd"/>
  1003. </itemset>
  1004. </choices>
  1005. </select1>
  1006. <caption id="caption29" class="search_name" visibility="hidden" style="left:1100px; top:10px; width:86px; height:17px; ">통계구분 :</caption>
  1007. <select id="cbo2_slipkindcd" ref="/root/hidden/workflagcd3" class="check_search" navindex="10" overflow="visible" appearance="full" cellspacing="10" cols="*" rows="3" style="left:425px; top:35px; width:285px; height:50px; border-style:none; ">
  1008. <choices>
  1009. <itemset nodeset="/root/init/resncd/resncdlist">
  1010. <label ref="resncnts"/>
  1011. <value ref="resncd"/>
  1012. </itemset>
  1013. </choices>
  1014. <script type="javascript" ev:event="xforms-value-changed">
  1015. <![CDATA[
  1016. //fExeWorkFlagChng();
  1017. ]]>
  1018. </script>
  1019. </select>
  1020. <select id="checkbox4" ref="/root/hidden/allselect3" class="check_search" overflow="visible" appearance="full" style="left:500px; top:10px; width:55px; height:20px; border-style:none; ">
  1021. <choices>
  1022. <item>
  1023. <label>전체</label>
  1024. <value>Y</value>
  1025. </item>
  1026. </choices>
  1027. <script type="javascript" ev:event="xforms-value-changed">
  1028. <![CDATA[
  1029. if(model.getValue("/root/hidden/allselect3") == "Y") {
  1030. model.makeValue("/root/hidden/workflagcd3", "1001 1002 1003 1004 1005 1006 1007 1008 1009 1012");
  1031. } else {
  1032. model.makeValue("/root/hidden/workflagcd3", "");
  1033. }
  1034. cbo2_slipkindcd.refresh();
  1035. checkbox6.refresh();
  1036. ]]>
  1037. </script>
  1038. </select>
  1039. <caption id="caption30" class="search_name" style="left:410px; top:10px; width:108px; height:17px; ">조회대상 :</caption>
  1040. <select1 id="cmb_readdr" ref="/root/hidden/acptenv/readdr" appearance="minimal" style="left:325px; top:10px; width:75px; height:19px; ">
  1041. <choices>
  1042. <itemset nodeset="/root/init/userinfo/userinfolist[jobkindcd='1']">
  1043. <label ref="usernm"/>
  1044. <value ref="userid"/>
  1045. </itemset>
  1046. </choices>
  1047. </select1>
  1048. <select1 id="combo6" ref="/root/hidden/JoHoiFlag/deptcd" class="combo_search" appearance="minimal" style="left:250px; top:60px; width:165px; height:19px; ">
  1049. <choices>
  1050. <itemset nodeset="/root/temp/LB0002">
  1051. <label ref="nm"/>
  1052. <value ref="cd"/>
  1053. </itemset>
  1054. </choices>
  1055. </select1>
  1056. <caption id="caption31" class="search_name" style="left:250px; top:35px; width:75px; height:17px; ">진료과</caption>
  1057. <caption id="caption32" class="search_name" style="left:250px; top:10px; width:70px; height:17px; ">판독의:</caption>
  1058. <line id="line14" class="line_4" style="x1:715px; y1:5px; x2:715px; y2:85px; border-color:#ffe4bb; border-left-style:solid; "/>
  1059. </case>
  1060. <case id="case2">
  1061. <shape id="roundrect3" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1193px; height:90px; background-color:#fffbf2; border-color:#ffd799; "/>
  1062. <button id="button3" class="btn1_letter4" style="left:1105px; top:35px; width:80px; height:22px; ">
  1063. <caption>상세조회</caption>
  1064. <script type="javascript" ev:event="DOMActivate">
  1065. <![CDATA[
  1066. fGetTestRsltList("3");
  1067. ]]>
  1068. </script>
  1069. </button>
  1070. <caption id="caption5" class="search_name" style="left:725px; top:37px; width:115px; height:17px; ">Microscopic :</caption>
  1071. <caption id="caption8" class="search_name" style="left:725px; top:11px; width:85px; height:17px; ">Gross :</caption>
  1072. <input id="input1" ref="/root/hidden/detlrefcrite/extrpart" class="input_search" navindex="8" style="left:845px; top:10px; width:250px; height:19px; "/>
  1073. <input id="input5" ref="/root/hidden/detlrefcrite/diag" class="input_search" navindex="12" style="left:845px; top:62px; width:250px; height:19px; "/>
  1074. <input id="input6" ref="/root/hidden/detlrefcrite/extrmthd" class="input_search" navindex="13" style="left:845px; top:36px; width:250px; height:19px; "/>
  1075. <caption id="caption15" class="search_name" style="left:725px; top:63px; width:110px; height:17px; ">Diagnosis :</caption>
  1076. <select1 id="combo1" ref="/root/init/srchmthd" class="combo_search" appearance="minimal" style="left:20px; top:20px; width:90px; height:19px; ">
  1077. <choices>
  1078. <item>
  1079. <label>접수일자</label>
  1080. <value>1</value>
  1081. </item>
  1082. <item>
  1083. <label>보고일자</label>
  1084. <value>2</value>
  1085. </item>
  1086. </choices>
  1087. </select1>
  1088. <caption id="caption1" class="search_n_b" style="left:122px; top:47px; width:12px; height:17px; font-weight:bolder; ">~</caption>
  1089. <input id="input7" ref="/root/init/acpttodd" class="input_s_essential" navindex="6" inputtype="date" format="yyyy-mm-dd" mask="exclude" showmask="true" style="left:136px; top:45px; width:100px; height:19px; "/>
  1090. <input id="input8" ref="/root/init/acptfromdd" class="input_s_essential" navindex="5" inputtype="date" format="yyyy-mm-dd" mask="exclude" showmask="true" style="left:20px; top:45px; width:100px; height:19px; ">
  1091. <script type="javascript" ev:event="xforms-value-changed">
  1092. <![CDATA[
  1093. lpzfExeDateChange(ipt_fromyear, "/root/init/acptfromdd", "/root/init/fromyear");
  1094. ]]>
  1095. </script>
  1096. </input>
  1097. <line id="line5" class="line_4" style="x1:245px; y1:12px; x2:245px; y2:77px; border-color:#ffe4bb; border-left-style:solid; "/>
  1098. <line id="line8" class="line_4" style="x1:1100px; y1:12px; x2:1100px; y2:77px; border-color:#ffe4bb; border-left-style:solid; "/>
  1099. <line id="line15" class="line_4" style="x1:715px; y1:10px; x2:715px; y2:75px; border-color:#ffe4bb; border-left-style:solid; "/>
  1100. <select1 id="combo7" ref="/root/hidden/acptenv/readdr" appearance="minimal" style="left:325px; top:10px; width:75px; height:19px; ">
  1101. <choices>
  1102. <itemset nodeset="/root/init/userinfo/userinfolist[jobkindcd='1']">
  1103. <label ref="usernm"/>
  1104. <value ref="userid"/>
  1105. </itemset>
  1106. </choices>
  1107. </select1>
  1108. <caption id="caption33" class="search_name" style="left:410px; top:10px; width:108px; height:17px; ">조회대상 :</caption>
  1109. <caption id="caption34" class="search_name" style="left:250px; top:35px; width:75px; height:17px; ">진료과</caption>
  1110. <caption id="caption35" class="search_name" style="left:250px; top:10px; width:70px; height:17px; ">판독의:</caption>
  1111. <select id="checkbox5" ref="/root/hidden/allselect3" class="check_search" overflow="visible" appearance="full" style="left:500px; top:10px; width:55px; height:20px; border-style:none; ">
  1112. <choices>
  1113. <item>
  1114. <label>전체</label>
  1115. <value>Y</value>
  1116. </item>
  1117. </choices>
  1118. <script type="javascript" ev:event="xforms-value-changed">
  1119. <![CDATA[
  1120. if(model.getValue("/root/hidden/allselect3") == "Y") {
  1121. model.makeValue("/root/hidden/workflagcd3", "1001 1002 1003 1004 1005 1006 1007 1008 1009 1012");
  1122. } else {
  1123. model.makeValue("/root/hidden/workflagcd3", "");
  1124. }
  1125. checkbox6.refresh();
  1126. cbo2_slipkindcd.refresh();
  1127. ]]>
  1128. </script>
  1129. </select>
  1130. <select1 id="combo8" ref="/root/hidden/JoHoiFlag/deptcd" class="combo_search" appearance="minimal" style="left:250px; top:60px; width:165px; height:19px; ">
  1131. <choices>
  1132. <itemset nodeset="/root/temp/LB0002">
  1133. <label ref="nm"/>
  1134. <value ref="cd"/>
  1135. </itemset>
  1136. </choices>
  1137. </select1>
  1138. <select id="checkbox6" ref="/root/hidden/workflagcd3" class="check_search" navindex="10" overflow="visible" appearance="full" cellspacing="10" cols="*" rows="3" style="left:425px; top:35px; width:285px; height:50px; border-style:none; ">
  1139. <choices>
  1140. <itemset nodeset="/root/init/resncd/resncdlist">
  1141. <label ref="resncnts"/>
  1142. <value ref="resncd"/>
  1143. </itemset>
  1144. </choices>
  1145. <script type="javascript" ev:event="xforms-value-changed">
  1146. <![CDATA[
  1147. //fExeWorkFlagChng();
  1148. ]]>
  1149. </script>
  1150. </select>
  1151. </case>
  1152. <case id="case3">
  1153. <shape id="roundrect4" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1193px; height:90px; background-color:#fffbf2; border-color:#ffd799; "/>
  1154. <select1 id="cbo_ptnocd" ref="/root/init/ptnocode" navindex="2" appearance="minimal" editmode="search" style="left:115px; top:36px; width:124px; height:19px; ">
  1155. <choices>
  1156. <itemset nodeset="/root/init/ptnocd/ptnocdlist">
  1157. <label ref="ptnonm"/>
  1158. <value ref="ptnocd"/>
  1159. </itemset>
  1160. </choices>
  1161. </select1>
  1162. <input id="ipt_refval" ref="/root/init/refval" class="input_search" navindex="1" style="left:115px; top:10px; width:100px; height:19px; ">
  1163. <script type="javascript" ev:event="onkeypress">
  1164. <![CDATA[
  1165. fExeRefValKeyPress();
  1166. ]]>
  1167. </script>
  1168. </input>
  1169. <select1 id="cmb_srchmthd" ref="/root/init/srchmthd" class="combo_search" appearance="minimal" style="left:20px; top:62px; width:90px; height:19px; ">
  1170. <choices>
  1171. <item>
  1172. <label>접수일자</label>
  1173. <value>1</value>
  1174. </item>
  1175. <item>
  1176. <label>보고일자</label>
  1177. <value>2</value>
  1178. </item>
  1179. </choices>
  1180. </select1>
  1181. <input id="ipt_fromptno" ref="/root/init/fromptno" class="text_center" navindex="4" visibility="hidden" maxlength="6" style="left:980px; top:55px; width:50px; height:19px; ">
  1182. <script type="javascript" ev:event="onkeypress">
  1183. <![CDATA[
  1184. fExePtNoInput();
  1185. ]]>
  1186. </script>
  1187. </input>
  1188. <caption id="caption10" class="search_name" style="left:20px; top:11px; width:90px; height:17px; ">등록번호 :</caption>
  1189. <button id="button4" class="btn1_letter2" navindex="7" style="left:1110px; top:35px; width:56px; height:22px; ">
  1190. <caption>조회</caption>
  1191. <script type="javascript" ev:event="DOMActivate">
  1192. <![CDATA[
  1193. fGetTestRsltList("1");
  1194. ]]>
  1195. </script>
  1196. </button>
  1197. <input id="ipt_acpttodd" ref="/root/init/acpttodd" class="combo_search" navindex="6" inputtype="date" format="yyyy-mm-dd" mask="exclude" showmask="true" style="left:231px; top:62px; width:100px; height:19px; "/>
  1198. <input id="ipt_fromyear" ref="/root/init/fromyear" class="text_center" navindex="3" visibility="hidden" maxlength="2" style="left:950px; top:55px; width:27px; height:19px; "/>
  1199. <input id="ipt_acptfromdd" ref="/root/init/acptfromdd" class="combo_search" navindex="5" inputtype="date" format="yyyy-mm-dd" mask="exclude" showmask="true" style="left:115px; top:62px; width:100px; height:19px; ">
  1200. <script type="javascript" ev:event="xforms-value-changed">
  1201. <![CDATA[
  1202. lpzfExeDateChange(ipt_fromyear, "/root/init/acptfromdd", "/root/init/fromyear");
  1203. ]]>
  1204. </script>
  1205. </input>
  1206. <caption id="caption11" class="search_n_b" style="left:217px; top:64px; width:12px; height:17px; font-weight:bolder; ">~</caption>
  1207. <caption id="caption25" class="search_name" style="left:20px; top:37px; width:105px; height:17px; ">병리번호 :</caption>
  1208. <select id="cbo_slipkindcd" ref="/root/hidden/workflagcd" class="check_search" navindex="10" overflow="visible" appearance="full" cellspacing="10" cols="*" rows="3" style="left:475px; top:30px; width:355px; height:50px; border-style:none; ">
  1209. <choices>
  1210. <itemset nodeset="/root/init/resncd/resncdlist">
  1211. <label ref="resncnts"/>
  1212. <value ref="resncd"/>
  1213. </itemset>
  1214. </choices>
  1215. <script type="javascript" ev:event="xforms-value-changed">
  1216. <![CDATA[
  1217. //fExeWorkFlagChng();
  1218. ]]>
  1219. </script>
  1220. </select>
  1221. <button id="button33" class="icon_search" style="left:219px; top:10px; width:16px; height:16px; ">
  1222. <caption/>
  1223. <script type="javascript" ev:event="DOMActivate">
  1224. <![CDATA[
  1225. var sPid = "";
  1226. model.setValue("/root/main/popupendflag", "cancel");
  1227. modal("SPPMC02500",0,100,150,"SPPMC02500","","");
  1228. if (model.getValue("/root/main/popupendflag") == "ok") {
  1229. sPid = model.getValue("/root/main/patinfo/patinfolist/pid");
  1230. if (sPid == null || sPid == "" || sPid == " ") {
  1231. return false;
  1232. }
  1233. model.setValue("/root/init/refval" , model.getValue("/root/main/patinfo/patinfolist/pid"));
  1234. ipt_refval.refresh();
  1235. }
  1236. ]]>
  1237. </script>
  1238. </button>
  1239. <button id="button8" class="btn2_letter3" visibility="visible" style="left:990px; top:15px; width:53px; height:19px; ">
  1240. <caption>초기화</caption>
  1241. <script type="javascript" ev:event="DOMActivate">
  1242. <![CDATA[
  1243. model.makeValue("/root/init/refval", "");
  1244. model.makeValue("/root/init/ptnocode", "-");
  1245. model.makeValue("/root/init/fromptno", "");
  1246. model.makeValue("/root/init/srchmthd" , "1");
  1247. model.makeValue("/root/hidden/workflagcd" , "1001 1002 1003");
  1248. model.makeValue("/root/init/acptfromdd", model.getValue("/root/init/sysdt/sysdtinfo/sysdd"));
  1249. model.makeValue("/root/init/acpttodd", model.getValue("/root/init/sysdt/sysdtinfo/sysdd"));
  1250. model.makeValue("/root/init/fromyearptno", "");
  1251. model.makeValue("/root/init/toyearptno", "");
  1252. model.refresh();
  1253. ]]>
  1254. </script>
  1255. </button>
  1256. <line id="line1" class="line_4" style="x1:440px; y1:12px; x2:440px; y2:77px; border-color:#ffe4bb; border-left-style:solid; "/>
  1257. <caption id="caption7" class="search_name" style="left:475px; top:10px; width:108px; height:17px; ">조회대상 :</caption>
  1258. <select id="checkbox1" ref="/root/hidden/allselect" class="check_search" overflow="visible" appearance="full" style="left:570px; top:10px; width:125px; height:20px; border-style:none; ">
  1259. <choices>
  1260. <item>
  1261. <label>전체</label>
  1262. <value>Y</value>
  1263. </item>
  1264. </choices>
  1265. <script type="javascript" ev:event="xforms-value-changed">
  1266. <![CDATA[
  1267. if(model.getValue("/root/hidden/allselect") == "Y") {
  1268. model.makeValue("/root/hidden/workflagcd", "1001 1002 1003 1004 1005 1006 1007 1008 1009 1012");
  1269. } else {
  1270. model.makeValue("/root/hidden/workflagcd", "");
  1271. }
  1272. cbo_slipkindcd.refresh();
  1273. ]]>
  1274. </script>
  1275. </select>
  1276. <line id="line6" class="line_4" style="x1:1075px; y1:12px; x2:1075px; y2:77px; border-color:#ffe4bb; border-left-style:solid; "/>
  1277. <input id="input11" ref="/root/init/fromyearptno" class="text_center" style="left:240px; top:36px; width:75px; height:19px; ">
  1278. <script type="javascript" ev:event="onkeypress">
  1279. <![CDATA[
  1280. if(event.keyCode == 13) {
  1281. model.setValue("/root/init/fromyearptno", input11.currentText);
  1282. input11.refresh();
  1283. //--------------------
  1284. fGetTestRsltList("1");
  1285. }
  1286. ]]>
  1287. </script>
  1288. </input>
  1289. <input id="input12" ref="/root/init/toyearptno" class="text_center" style="left:330px; top:36px; width:75px; height:19px; ">
  1290. <script type="javascript" ev:event="onkeypress">
  1291. <![CDATA[
  1292. if(event.keyCode == 13) {
  1293. model.setValue("/root/init/toyearptno", input12.currentText);
  1294. input12.refresh();
  1295. //--------------------
  1296. fGetTestRsltList("1");
  1297. }
  1298. ]]>
  1299. </script>
  1300. </input>
  1301. <caption id="caption13" class="search_n_b" style="left:316px; top:38px; width:12px; height:17px; font-weight:bolder; ">~</caption>
  1302. </case>
  1303. <case id="case5">
  1304. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1193px; height:90px; background-color:#fffbf2; border-color:#ffd799; "/>
  1305. <select1 id="combo3" ref="/root/init/ptnocode" navindex="2" appearance="minimal" editmode="search" style="left:345px; top:20px; width:124px; height:19px; ">
  1306. <choices>
  1307. <itemset nodeset="/root/init/ptnocd/ptnocdlist">
  1308. <label ref="ptnonm"/>
  1309. <value ref="ptnocd"/>
  1310. </itemset>
  1311. </choices>
  1312. </select1>
  1313. <input id="input13" ref="/root/init/refval" class="input_search" navindex="1" style="left:115px; top:20px; width:100px; height:19px; ">
  1314. <script type="javascript" ev:event="onkeypress">
  1315. <![CDATA[
  1316. fExeRefValKeyPress();
  1317. ]]>
  1318. </script>
  1319. </input>
  1320. <select1 id="combo4" ref="/root/init/srchmthd" class="combo_search" appearance="minimal" style="left:655px; top:20px; width:90px; height:19px; ">
  1321. <choices>
  1322. <item>
  1323. <label>접수일자</label>
  1324. <value>1</value>
  1325. </item>
  1326. <item>
  1327. <label>보고일자</label>
  1328. <value>2</value>
  1329. </item>
  1330. </choices>
  1331. </select1>
  1332. <input id="input14" ref="/root/init/fromptno" class="text_center" navindex="4" visibility="hidden" maxlength="6" style="left:980px; top:55px; width:50px; height:19px; ">
  1333. <script type="javascript" ev:event="onkeypress">
  1334. <![CDATA[
  1335. fExePtNoInput();
  1336. ]]>
  1337. </script>
  1338. </input>
  1339. <caption id="caption14" class="search_name" style="left:20px; top:21px; width:90px; height:17px; ">등록번호 :</caption>
  1340. <button id="button1" class="btn1_letter2" navindex="7" style="left:1110px; top:35px; width:56px; height:22px; ">
  1341. <caption>조회</caption>
  1342. <script type="javascript" ev:event="DOMActivate">
  1343. <![CDATA[
  1344. fGetTestRsltList("1");
  1345. ]]>
  1346. </script>
  1347. </button>
  1348. <input id="input15" ref="/root/init/acpttodd" class="combo_search" navindex="6" inputtype="date" format="yyyy-mm-dd" mask="exclude" showmask="true" style="left:866px; top:20px; width:100px; height:19px; "/>
  1349. <input id="input16" ref="/root/init/fromyear" class="text_center" navindex="3" visibility="hidden" maxlength="2" style="left:950px; top:55px; width:27px; height:19px; "/>
  1350. <input id="input17" ref="/root/init/acptfromdd" class="combo_search" navindex="5" inputtype="date" format="yyyy-mm-dd" mask="exclude" showmask="true" style="left:750px; top:20px; width:100px; height:19px; ">
  1351. <script type="javascript" ev:event="xforms-value-changed">
  1352. <![CDATA[
  1353. lpzfExeDateChange(ipt_fromyear, "/root/init/acptfromdd", "/root/init/fromyear");
  1354. ]]>
  1355. </script>
  1356. </input>
  1357. <caption id="caption16" class="search_n_b" style="left:852px; top:22px; width:12px; height:17px; font-weight:bolder; ">~</caption>
  1358. <caption id="caption17" class="search_name" style="left:250px; top:20px; width:105px; height:17px; ">병리번호 :</caption>
  1359. <button id="button2" class="icon_search" style="left:219px; top:20px; width:16px; height:16px; ">
  1360. <caption/>
  1361. <script type="javascript" ev:event="DOMActivate">
  1362. <![CDATA[
  1363. var sPid = "";
  1364. model.setValue("/root/main/popupendflag", "cancel");
  1365. modal("SPPMC02500",0,100,150,"SPPMC02500","","");
  1366. if (model.getValue("/root/main/popupendflag") == "ok") {
  1367. sPid = model.getValue("/root/main/patinfo/patinfolist/pid");
  1368. if (sPid == null || sPid == "" || sPid == " ") {
  1369. return false;
  1370. }
  1371. model.setValue("/root/init/refval" , model.getValue("/root/main/patinfo/patinfolist/pid"));
  1372. ipt_refval.refresh();
  1373. }
  1374. ]]>
  1375. </script>
  1376. </button>
  1377. <button id="button5" class="btn2_letter3" visibility="visible" style="left:990px; top:20px; width:53px; height:19px; ">
  1378. <caption>초기화</caption>
  1379. <script type="javascript" ev:event="DOMActivate">
  1380. <![CDATA[
  1381. model.makeValue("/root/init/refval", "");
  1382. model.makeValue("/root/init/ptnocode", "-");
  1383. model.makeValue("/root/init/fromptno", "");
  1384. model.makeValue("/root/init/srchmthd" , "1");
  1385. model.makeValue("/root/hidden/workflagcd" , "1001 1002 1003 1004 1005 1006 1007 1008 1009 1012");
  1386. model.makeValue("/root/init/acptfromdd", model.getValue("/root/init/sysdt/sysdtinfo/sysdd"));
  1387. model.makeValue("/root/init/acpttodd", model.getValue("/root/init/sysdt/sysdtinfo/sysdd"));
  1388. model.makeValue("/root/init/fromyearptno", "");
  1389. model.makeValue("/root/init/toyearptno", "");
  1390. model.refresh();
  1391. ]]>
  1392. </script>
  1393. </button>
  1394. <line id="line7" class="line_4" style="x1:1075px; y1:12px; x2:1075px; y2:77px; border-color:#ffe4bb; border-left-style:solid; "/>
  1395. <input id="input18" ref="/root/init/fromyearptno" class="text_center" style="left:470px; top:20px; width:75px; height:19px; ">
  1396. <script type="javascript" ev:event="onkeypress">
  1397. <![CDATA[
  1398. if(event.keyCode == 13) {
  1399. model.setValue("/root/init/fromyearptno", input11.currentText);
  1400. input11.refresh();
  1401. //--------------------
  1402. fGetTestRsltList("1");
  1403. }
  1404. ]]>
  1405. </script>
  1406. </input>
  1407. <input id="input19" ref="/root/init/toyearptno" class="text_center" style="left:560px; top:20px; width:75px; height:19px; ">
  1408. <script type="javascript" ev:event="onkeypress">
  1409. <![CDATA[
  1410. if(event.keyCode == 13) {
  1411. model.setValue("/root/init/toyearptno", input12.currentText);
  1412. input12.refresh();
  1413. //--------------------
  1414. fGetTestRsltList("1");
  1415. }
  1416. ]]>
  1417. </script>
  1418. </input>
  1419. <caption id="caption18" class="search_n_b" style="left:546px; top:22px; width:12px; height:17px; font-weight:bolder; ">~</caption>
  1420. </case>
  1421. <case id="case4">
  1422. <shape id="roundrect5" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1193px; height:90px; background-color:#fffbf2; border-color:#ffd799; "/>
  1423. <input id="input20" ref="/root/init/fromptno" class="text_center" navindex="4" visibility="hidden" maxlength="6" style="left:980px; top:55px; width:50px; height:19px; ">
  1424. <script type="javascript" ev:event="onkeypress">
  1425. <![CDATA[
  1426. fExePtNoInput();
  1427. ]]>
  1428. </script>
  1429. </input>
  1430. <button id="button6" class="btn1_letter2" navindex="7" style="left:1110px; top:35px; width:56px; height:22px; ">
  1431. <caption>조회</caption>
  1432. <script type="javascript" ev:event="DOMActivate">
  1433. <![CDATA[
  1434. model.makeValue("/root/init/refval", "");
  1435. model.makeValue("/root/init/ptnocode", "-");
  1436. model.makeValue("/root/init/fromptno", "");
  1437. model.makeValue("/root/init/fromyearptno", "");
  1438. model.makeValue("/root/init/toyearptno", "");
  1439. fGetTestRsltList("1");
  1440. ]]>
  1441. </script>
  1442. </button>
  1443. <input id="input21" ref="/root/init/fromyear" class="text_center" navindex="3" visibility="hidden" maxlength="2" style="left:950px; top:55px; width:27px; height:19px; "/>
  1444. <select id="checkbox2" ref="/root/hidden/workflagcd" class="check_search" navindex="10" overflow="visible" appearance="full" cellspacing="10" cols="5" rows="*" style="left:310px; top:30px; width:555px; height:50px; border-style:none; ">
  1445. <choices>
  1446. <itemset nodeset="/root/init/resncd/resncdlist">
  1447. <label ref="resncnts"/>
  1448. <value ref="resncd"/>
  1449. </itemset>
  1450. </choices>
  1451. <script type="javascript" ev:event="xforms-value-changed">
  1452. <![CDATA[
  1453. //fExeWorkFlagChng();
  1454. ]]>
  1455. </script>
  1456. </select>
  1457. <button id="button7" class="btn2_letter3" visibility="visible" style="left:990px; top:15px; width:53px; height:19px; ">
  1458. <caption>초기화</caption>
  1459. <script type="javascript" ev:event="DOMActivate">
  1460. <![CDATA[
  1461. model.makeValue("/root/init/refval", "");
  1462. model.makeValue("/root/init/ptnocode", "-");
  1463. model.makeValue("/root/init/fromptno", "");
  1464. model.makeValue("/root/init/srchmthd" , "1");
  1465. model.makeValue("/root/hidden/workflagcd" , "1001 1002 1003");
  1466. model.makeValue("/root/init/acptfromdd", model.getValue("/root/init/sysdt/sysdtinfo/sysdd"));
  1467. model.makeValue("/root/init/acpttodd", model.getValue("/root/init/sysdt/sysdtinfo/sysdd"));
  1468. model.makeValue("/root/init/fromyearptno", "");
  1469. model.makeValue("/root/init/toyearptno", "");
  1470. model.refresh();
  1471. ]]>
  1472. </script>
  1473. </button>
  1474. <caption id="caption19" class="search_name" style="left:310px; top:10px; width:108px; height:17px; ">작업구분 :</caption>
  1475. <select id="checkbox3" ref="/root/hidden/allselect" class="check_search" overflow="visible" appearance="full" style="left:405px; top:10px; width:125px; height:20px; border-style:none; ">
  1476. <choices>
  1477. <item>
  1478. <label>전체</label>
  1479. <value>Y</value>
  1480. </item>
  1481. </choices>
  1482. <script type="javascript" ev:event="xforms-value-changed">
  1483. <![CDATA[
  1484. if(model.getValue("/root/hidden/allselect") == "Y") {
  1485. model.makeValue("/root/hidden/workflagcd", "1001 1002 1003 1004 1005 1006 1007 1008 1009 1012");
  1486. } else {
  1487. model.makeValue("/root/hidden/workflagcd", "");
  1488. }
  1489. cbo_slipkindcd.refresh();
  1490. ]]>
  1491. </script>
  1492. </select>
  1493. <line id="line10" class="line_4" style="x1:1075px; y1:12px; x2:1075px; y2:77px; border-color:#ffe4bb; border-left-style:solid; "/>
  1494. <input id="input22" ref="/root/init/acpttodd" class="input_s_essential" navindex="6" inputtype="date" format="yyyy-mm-dd" mask="exclude" showmask="true" style="left:136px; top:45px; width:100px; height:19px; "/>
  1495. <input id="input23" ref="/root/init/acptfromdd" class="input_s_essential" navindex="5" inputtype="date" format="yyyy-mm-dd" mask="exclude" showmask="true" style="left:20px; top:45px; width:100px; height:19px; ">
  1496. <script type="javascript" ev:event="xforms-value-changed">
  1497. <![CDATA[
  1498. lpzfExeDateChange(ipt_fromyear, "/root/init/acptfromdd", "/root/init/fromyear");
  1499. ]]>
  1500. </script>
  1501. </input>
  1502. <select1 id="combo5" ref="/root/init/srchmthd" class="combo_search" appearance="minimal" style="left:20px; top:20px; width:90px; height:19px; ">
  1503. <choices>
  1504. <item>
  1505. <label>접수일자</label>
  1506. <value>1</value>
  1507. </item>
  1508. <item>
  1509. <label>보고일자</label>
  1510. <value>2</value>
  1511. </item>
  1512. </choices>
  1513. </select1>
  1514. <caption id="caption20" class="search_n_b" style="left:122px; top:47px; width:12px; height:17px; font-weight:bolder; ">~</caption>
  1515. <line id="line11" class="line_4" style="x1:270px; y1:12px; x2:270px; y2:77px; border-color:#ffe4bb; border-left-style:solid; "/>
  1516. </case>
  1517. </switch>
  1518. <button id="btn_tpm" class="btn_sw" group="tab" selected="true" style="left:180px; top:5px; width:90px; height:22px; ">
  1519. <caption>코드검색</caption>
  1520. <toggle case="case1" ev:event="DOMActivate"/>
  1521. </button>
  1522. <button id="btn_rsltref" class="btn_sw" group="tab" selected="true" style="left:90px; top:5px; width:90px; height:22px; ">
  1523. <caption>단어검색</caption>
  1524. <toggle case="case2" ev:event="DOMActivate"/>
  1525. </button>
  1526. <button id="btn_rsltexcel" class="btn2_letter5" style="left:1118px; top:124px; width:75px; height:19px; ">
  1527. <caption>EXCEL저장</caption>
  1528. <script type="javascript" ev:event="DOMActivate">
  1529. <![CDATA[
  1530. fExeMakePatInfo();
  1531. lpzfExeSaveToExcel(grd_testrsltref, "검사결과내용");
  1532. grd_testrsltref.deleteRow(1);
  1533. ]]>
  1534. </script>
  1535. </button>
  1536. <button id="btn_imgview" class="btn2_letter5" style="left:1040px; top:124px; width:75px; height:19px; ">
  1537. <caption>이미지보기</caption>
  1538. <script type="javascript" ev:event="DOMActivate">
  1539. <![CDATA[
  1540. fExeImgView();
  1541. ]]>
  1542. </script>
  1543. </button>
  1544. <button id="button9" class="btn2_letter6" visibility="visible" style="left:951px; top:124px; width:86px; height:19px; ">
  1545. <caption>임상정보조회</caption>
  1546. <script type="javascript" ev:event="DOMActivate">
  1547. <![CDATA[
  1548. // 임상정보 조회
  1549. fGetIMSInfo();
  1550. ]]>
  1551. </script>
  1552. </button>
  1553. <button id="btn_search" class="btn_sw" group="tab" selected="true" style="left:0px; top:5px; width:90px; height:22px; ">
  1554. <caption>결과조회</caption>
  1555. <toggle case="case3" ev:event="DOMActivate"/>
  1556. </button>
  1557. <output id="output4" ref="/root/main/patinfo/pattestrslt/readdd" class="output_fix" visibility="hidden" format="yyyy-mm-dd" style="left:883px; top:460px; width:78px; height:19px; border-color:#c0c0c0; "/>
  1558. <output id="output7" ref="/root/main/patinfo/pattestrslt/orddrnm" class="output_fix" visibility="hidden" style="left:735px; top:436px; width:82px; height:19px; border-color:#c0c0c0; "/>
  1559. <line id="line12" class="line_2" visibility="hidden" style="x1:515px; y1:433px; x2:963px; y2:433px; "/>
  1560. <output id="output8" ref="/root/main/patinfo/pattestrslt/acptdd" class="output_fix" visibility="hidden" format="yyyy-mm-dd" style="left:735px; top:460px; width:82px; height:19px; border-color:#c0c0c0; "/>
  1561. <line id="line13" class="line_2" visibility="hidden" style="x1:515px; y1:457px; x2:963px; y2:457px; "/>
  1562. <output id="output9" ref="/root/main/patinfo/pattestrslt/readdrnm" class="output_fix" visibility="hidden" style="left:880px; top:440px; width:78px; height:19px; border-color:#c0c0c0; "/>
  1563. <caption id="caption21" class="cell_1" visibility="hidden" style="left:663px; top:435px; width:69px; height:23px; vertical-align:middle; ">진료의사</caption>
  1564. <caption id="caption22" class="cell_1" visibility="hidden" style="left:663px; top:459px; width:69px; height:23px; vertical-align:middle; ">접 수 일</caption>
  1565. <caption id="caption23" class="cell_1" visibility="hidden" style="left:820px; top:435px; width:60px; height:23px; vertical-align:middle; ">판독의사</caption>
  1566. <caption id="caption26" class="cell_1" visibility="hidden" style="left:515px; top:435px; width:60px; height:23px; vertical-align:middle; ">진 료 과</caption>
  1567. <caption id="caption27" class="cell_1" visibility="hidden" style="left:515px; top:459px; width:60px; height:23px; vertical-align:middle; ">처 방 일</caption>
  1568. <caption id="caption28" class="cell_1" visibility="hidden" style="left:820px; top:459px; width:60px; height:23px; vertical-align:middle; ">보 고 일</caption>
  1569. <output id="output2" ref="/root/main/patinfo/pattestrslt/orddeptnm" class="output_fix" visibility="hidden" style="left:578px; top:436px; width:82px; height:19px; border-color:#c0c0c0; "/>
  1570. <output id="output3" ref="/root/main/patinfo/pattestrslt/prcpdd" class="output_fix" visibility="hidden" format="yyyy-mm-dd" style="left:578px; top:460px; width:82px; height:19px; border-color:#c0c0c0; "/>
  1571. <button id="button10" class="btn2_letter3" visibility="visible" style="left:341px; top:125px; width:53px; height:19px; ">
  1572. <caption>확 장</caption>
  1573. <script type="javascript" ev:event="DOMActivate">
  1574. <![CDATA[
  1575. fExeResizeRow();
  1576. ]]>
  1577. </script>
  1578. </button>
  1579. <button id="button102" class="icon_left" style="left:395px; top:125px; width:26px; height:19px; ">
  1580. <caption/>
  1581. <script type="javascript" ev:event="onclick">
  1582. <![CDATA[
  1583. fExeEpandGrid("2");
  1584. ]]>
  1585. </script>
  1586. </button>
  1587. <button id="button103" class="icon_right" style="left:422px; top:125px; width:26px; height:19px; ">
  1588. <caption/>
  1589. <script type="javascript" ev:event="onclick">
  1590. <![CDATA[
  1591. fExeEpandGrid("1");
  1592. ]]>
  1593. </script>
  1594. </button>
  1595. <datagrid id="grd_testrsltlist" nodeset="/root/main/testrslt/testrsltlist" class="datagrid2" caption="상태^기관코드^병리번호^병리번호^등록번호^환자명^진료과^처방명^처방일자^접수일자^검사코드^검사그룹코드^의뢰서&#xA;번호^의뢰지구분코드^성별/나이^판독일자^진료의사^판독의사^처방발생구분^작업구분코드^진 단^Mcode^execprcpuniqno" colsep="^" colwidth="60, 0, 0, 80, 68, 54, 46, 128, 75, 75, 100, 100, 100, 100, 100, 75, 100, 55, 100, 100, 250, 160, 100" dataheight="23" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="32" rowsep="|" style="left:0px; top:149px; width:448px; height:595px; ">
  1596. <col ref="acptstatcd" type="output"/>
  1597. <col ref="instcd"/>
  1598. <col ref="ptno"/>
  1599. <col ref="dispptno"/>
  1600. <col ref="pid"/>
  1601. <col ref="patnm"/>
  1602. <col ref="orddeptnm"/>
  1603. <col ref="testnm" type="output"/>
  1604. <col ref="prcpdd" type="output" format="yyyy-mm-dd" mask="exclude" showmask="true"/>
  1605. <col ref="acptdd" format="yyyy-mm-dd" mask="exclude" showmask="true"/>
  1606. <col ref="testcd" visibility="hidden"/>
  1607. <col ref="tgrupcd" type="output" visibility="hidden"/>
  1608. <col ref="reqfrmno" type="output" visibility="hidden"/>
  1609. <col ref="reqfrmflagcd" visibility="hidden"/>
  1610. <col ref="sexage" visibility="hidden"/>
  1611. <col ref="readdd" format="yyyy-mm-dd" mask="exclude" showmask="true"/>
  1612. <col ref="orddrnm" visibility="hidden"/>
  1613. <col ref="readdrnm"/>
  1614. <col ref="prcpgenrflag" visibility="hidden"/>
  1615. <col ref="ptnoworkflagcd" visibility="hidden"/>
  1616. <col ref="realdiagcnts"/>
  1617. <col ref="diagcnts"/>
  1618. <col ref="execprcpuniqno" visibility="hidden"/>
  1619. <script type="javascript" ev:event="onclick">
  1620. <![CDATA[
  1621. if(sGridSize == "1") {
  1622. fExePtNoClick();
  1623. }
  1624. ]]>
  1625. </script>
  1626. <script type="javascript" ev:event="onaftersort">
  1627. <![CDATA[
  1628. grd_testrsltlist.gridToInstance();
  1629. ]]>
  1630. </script>
  1631. </datagrid>
  1632. <button id="btn_work" class="btn_sw" visibility="hidden" group="tab" selected="true" style="left:270px; top:5px; width:90px; height:22px; ">
  1633. <caption>조회대상</caption>
  1634. <toggle case="case4" ev:event="DOMActivate"/>
  1635. </button>
  1636. </group>
  1637. <group id="grp_btn" scroll="auto" style="left:0px; top:13px; width:1195px; height:27px; ">
  1638. <button id="button13" class="btn6_letter5" style="left:5px; top:3px; width:92px; height:22px; ">
  1639. <caption>EXCEL저장</caption>
  1640. <script type="javascript" ev:event="DOMActivate">
  1641. <![CDATA[
  1642. fExeMakePatInfo2();
  1643. lpzfExeSaveToExcel(grd_testrsltlist, "결과조회");
  1644. fExeDelPatInfo2();
  1645. ]]>
  1646. </script>
  1647. </button>
  1648. <line id="line17" class="line_6" style="x1:0px; y1:25; x2:1194px; y2:25; "/>
  1649. <button id="btn_sytsrsltref" class="btn3_letter6" style="left:100; top:3px; width:92px; height:22px; ">
  1650. <caption>통합결과조회</caption>
  1651. <script type="javascript" ev:event="DOMActivate">
  1652. <![CDATA[
  1653. fExePopupCallSytsRslt();
  1654. ]]>
  1655. </script>
  1656. </button>
  1657. <button id="btn_prt" class="btn6_letter2" navindex="14" style="left:207px; top:3px; width:56px; height:22px; ">
  1658. <caption>출력</caption>
  1659. <script type="javascript" ev:event="DOMActivate">
  1660. <![CDATA[
  1661. fExeReptPrnt();
  1662. ]]>
  1663. </script>
  1664. </button>
  1665. </group>
  1666. </xhtml:body>
  1667. </xhtml:html>