SMMNO04000_산부인과자궁경부암결과발송.xrw 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  3. <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">
  4. <xhtml:head>
  5. <xhtml:title>자궁경부 환자 결과입력</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <cond>
  11. <fromdd/>
  12. <todd/>
  13. <basedd/>
  14. <pid/>
  15. <srchobgy/>
  16. <srchetc/>
  17. </cond>
  18. <obgypatlist>
  19. <obgypatlistinfo>
  20. <chk/>
  21. <srchdd/>
  22. <pid/>
  23. <patnm/>
  24. <centdeptnm/>
  25. <orddeptnm/>
  26. <subdeptnm/>
  27. <orddrnm/>
  28. <examrslt/>
  29. <prntstat/>
  30. <prcpstat/>
  31. <nextrsrv1/>
  32. <nextrsrv2/>
  33. <telno/>
  34. <hpno/>
  35. <smssenddt/>
  36. <smssendyn/>
  37. <inhopedd/>
  38. <indd/>
  39. <opcnfmdd/>
  40. <zipcd/>
  41. <addr/>
  42. <rem/>
  43. <orddd/>
  44. <cretno/>
  45. <cmmtyn/>
  46. <msgkey/>
  47. <status/>
  48. </obgypatlistinfo>
  49. </obgypatlist>
  50. </main>
  51. <send/>
  52. <init>
  53. <orddept>
  54. <dept/>
  55. </orddept>
  56. <orddr>
  57. <orddr>
  58. <usernm/>
  59. <userid/>
  60. </orddr>
  61. <orddrlist>
  62. <usernm/>
  63. <userid/>
  64. </orddrlist>
  65. </orddr>
  66. <M0005list>
  67. <M0005>
  68. <cdnm>-</cdnm>
  69. <cdid>-</cdid>
  70. </M0005>
  71. </M0005list>
  72. </init>
  73. <hidden/>
  74. <temp>
  75. <cmbinfo>
  76. <comcodeinfo>
  77. <prcpstatcd/>
  78. <prcpkindcd/>
  79. <prcpclscd/>
  80. <payflagcd/>
  81. </comcodeinfo>
  82. </cmbinfo>
  83. <patexamhistlist>
  84. <patexamhistinfo>
  85. <readdd/>
  86. <prcpdd/>
  87. <acptdt/>
  88. <orddeptcd/>
  89. <orddrid/>
  90. <acptstatcd/>
  91. <ptno/>
  92. <rsltcnts/>
  93. <spcnm/>
  94. </patexamhistinfo>
  95. </patexamhistlist>
  96. <smssendcnts/>
  97. <pid/>
  98. <patnm/>
  99. <patcmmt>
  100. <patcmmtstmtinfo>
  101. <patcmmtstmt/>
  102. </patcmmtstmtinfo>
  103. </patcmmt>
  104. <examrsltlist>
  105. <examrsltinfo/>
  106. </examrsltlist>
  107. <examrslttxt/>
  108. <ptno/>
  109. <prcpdd/>
  110. <printdata/>
  111. <pidcmmt/>
  112. <depttellist>
  113. <depttellistinfo>
  114. <depttelno/>
  115. </depttellistinfo>
  116. </depttellist>
  117. </temp>
  118. <code/>
  119. <insrslt/>
  120. </root>
  121. </instance>
  122. <script type="javascript">
  123. <![CDATA[
  124. var seoulinstcd = ""; //20090811-kys
  125. var Eyedeptcd;
  126. ]]>
  127. </script>
  128. <script type="javascript" ev:event="xforms-ready">
  129. <![CDATA[
  130. fInit();
  131. ]]>
  132. </script>
  133. <submission id="TRMNO00901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/prcpendlist"/>
  134. <submission id="TXMNO00901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send"/>
  135. <!--<submission id="TRMNO00104" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/orddr"/>-->
  136. <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" resultref="/root/hidden/orddeptlist/dept"/>
  137. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post">`x</submission>
  138. <submission id="TRMNO00902" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/orddr"/>
  139. <submission id="TRZSD00206" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  140. <submission id="TRMNW00001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/code/codelist"/>
  141. <submission id="TRMNO04001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/obgypatlist"/>
  142. <submission id="TRMNO04002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp/examrsltlist"/>
  143. <submission id="TRMNO04003" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp/patexamhistlist"/>
  144. <submission id="TRMNO04004" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp/depttellist"/>
  145. <submission id="TRMNO04005" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqcmmtdata" resultref="/root/temp/patcmmt"/>
  146. <submission id="TXMNO04002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqinscmmtdata" resultref="/root/insrslt"/>
  147. <submission id="TXMNO04001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqinsdata" resultref="/root/insrslt"/>
  148. <submission id="TXMNO04003" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqsmsdata" resultref="/root/insrslt"/>
  149. </model>
  150. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  151. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  152. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  153. <script type="javascript" src="../../../emr/carecomweb/js/CareCom.js"/>
  154. <script type="javascript" src="../../../emr/outcareweb/js/SMMNO04000.js"/>
  155. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  156. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  157. </xhtml:head>
  158. <xhtml:body guideline="1,1194;1,1195;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  159. <group id="group3" style="left:0px; top:18px; width:1194px; height:744px; ">
  160. <group id="grp_sea" style="left:3px; top:1px; width:1189px; height:35px; vertical-align:top; ">
  161. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1187px; height:35px; "/>
  162. <button id="button1" class="btn1_letter2" navindex="5" style="left:965px; top:6px; width:56px; height:22px; ">
  163. <caption>조회</caption>
  164. <script type="javascript" ev:event="DOMActivate">
  165. <![CDATA[
  166. fSearch();
  167. ]]>
  168. </script>
  169. </button>
  170. <caption id="caption8" class="search_name" style="left:6px; top:9px; width:86px; height:17px; ">기준일자:</caption>
  171. <line id="line13" class="line_4" style="x1:959px; y1:6px; x2:959px; y2:26px; "/>
  172. <caption id="caption10" class="search_name" style="left:660px; top:9px; width:90px; height:17px; ">등록번호:</caption>
  173. <caption id="caption2" style="left:279px; top:7px; width:20px; height:20px; text-align:center; ">-</caption>
  174. <select1 id="cmb_base" ref="/root/main/cond/basedd" class="combo_search" appearance="minimal" style="left:95px; top:8px; width:85px; height:19px; ">
  175. <choices>
  176. <item>
  177. <label>수납일자</label>
  178. <value>1</value>
  179. </item>
  180. <item>
  181. <label>처방일자</label>
  182. <value>2</value>
  183. </item>
  184. <item>
  185. <label>결과일자</label>
  186. <value>3</value>
  187. </item>
  188. </choices>
  189. </select1>
  190. <input id="ipt_pid" ref="/root/main/cond/pid" class="input_search" style="left:750px; top:8px; width:110px; height:19px; ">
  191. <script type="javascript" ev:event="onkeyup">
  192. <![CDATA[
  193. if(ipt_pid.currentText == ""){
  194. ipt_fromdd.disabled = false;
  195. ipt_todd.disabled = false;
  196. }else if(ipt_pid.currentText != ""){ //등록번호로 조회시에는 조회기간 달력 비활성화
  197. ipt_fromdd.disabled = true;
  198. ipt_todd.disabled = true;
  199. }
  200. if(event.keyCode == 13) {
  201. inputEnterKey("button1", "DOMActivate");
  202. //model.resetInstanceNode("/root/main/cond/pid");
  203. ipt_pid.refresh();
  204. }
  205. ]]>
  206. </script>
  207. </input>
  208. <button id="button2" class="btn1_letter5" navindex="5" style="left:1025px; top:6px; width:92px; height:22px; ">
  209. <caption>SMS전송</caption>
  210. <script type="javascript" ev:event="DOMActivate">
  211. <![CDATA[
  212. var bool = fSendSms(); //sms전송
  213. if(bool){
  214. fSearch(); //조회
  215. }
  216. ]]>
  217. </script>
  218. </button>
  219. <button id="button3" class="btn1_letter2" navindex="5" style="left:1123px; top:6px; width:56px; height:22px; ">
  220. <caption>출력</caption>
  221. <script type="javascript" ev:event="DOMActivate">
  222. <![CDATA[
  223. var j = 0, k = 0;
  224. for(var i=1;i<=getNodesetCount("/root/main/obgypatlist/obgypatlistinfo");i++){
  225. if(model.getValue("/root/main/obgypatlist/obgypatlistinfo["+ i +"]/chk") == "true"){
  226. j++;
  227. if(model.getValue("/root/main/obgypatlist/obgypatlistinfo["+ i +"]/examrslt") == ""){
  228. messageBox("결과컬럼에 값을 입력하지 않은 행이 존재합니다. [ " + i + " ]행", "E");
  229. return;
  230. }
  231. //유효 결과값 체크-kys-20100405
  232. if(eval(model.getValue("/root/main/obgypatlist/obgypatlistinfo["+ i +"]/examrslt")) > 4){
  233. messageBox("결과컬럼 값이 유효하지 않은 행이 존재합니다. [ " + i + " ]행", "E");
  234. return;
  235. }
  236. /* if(model.getValue("/root/main/obgypatlist/obgypatlistinfo["+ i +"]/prntstat") != "Y"){
  237. k++; //insert, update 판단 변수.
  238. } 결과값이 바뀌어서 출력될수 도 있으므로 주석처리 */
  239. }
  240. }
  241. if(j == 0){
  242. messageBox("출력할 환자를 선택하지", "E007");
  243. return;
  244. }
  245. var rtnval = messageBox("우편발송을 출력하시겠습니까?" , "Q");
  246. if(rtnval == 7){ //취소 버튼을 클릭한 경우
  247. return;
  248. }
  249. /* 20100520-kys-출력시미리보기창 보이기 기능수정으로 인한 수정
  250. var bool = fInsPrintInfo(); //출력된 환자 입력 및 갱신
  251. if(bool){
  252. fPrntPost(); //우편물 출력
  253. } */
  254. fPrntPost(); //우편물 출력
  255. if(getParameter("reportprintyn") == "Y"){
  256. var bool = fInsPrintInfo(); //출력된 환자 입력 및 갱신
  257. }
  258. fSearch(); //조회
  259. ]]>
  260. </script>
  261. </button>
  262. <input id="ipt_fromdd" ref="/root/main/cond/fromdd" class="input_search" navindex="3" inputtype="date" style="left:193px; top:8px; width:85px; height:19px; "/>
  263. <input id="ipt_todd" ref="/root/main/cond/todd" class="input_search" navindex="3" inputtype="date" style="left:299px; top:8px; width:85px; height:19px; "/>
  264. <input id="input1" ref="/root/temp/depttellist/depttellistinfo/depttelno" class="output_fix" visibility="hidden" style="left:868px; top:8px; width:87px; height:19px; "/>
  265. <caption id="caption9" class="search_name" style="left:404px; top:10px; width:70px; height:17px; ">진료과:</caption>
  266. <select id="chk_obgy" ref="/root/main/cond/srchobgy" overflow="visible" appearance="full" style="left:484px; top:10px; width:75px; height:15px; border-style:none; ">
  267. <choices>
  268. <item>
  269. <label>산부인과</label>
  270. <value>Y</value>
  271. </item>
  272. </choices>
  273. <script type="javascript" ev:event="xforms-select">
  274. <![CDATA[
  275. chk_obgy.value = 'Y';
  276. ]]>
  277. </script>
  278. <script type="javascript" ev:event="xforms-deselect">
  279. <![CDATA[
  280. chk_obgy.value = 'N';
  281. ]]>
  282. </script>
  283. </select>
  284. <select id="chk_etc" ref="/root/main/cond/srchetc" overflow="visible" appearance="full" style="left:569px; top:10px; width:80px; height:15px; border-style:none; ">
  285. <choices>
  286. <item>
  287. <label>그외진료과</label>
  288. <value>Y</value>
  289. </item>
  290. </choices>
  291. <script type="javascript" ev:event="xforms-select">
  292. <![CDATA[
  293. chk_etc.value = 'Y';
  294. ]]>
  295. </script>
  296. <script type="javascript" ev:event="xforms-deselect">
  297. <![CDATA[
  298. chk_etc.value = 'N';
  299. ]]>
  300. </script>
  301. </select>
  302. </group>
  303. <line id="line2" class="line_1" style="x1:0px; y1:37px; x2:1191px; y2:37px; "/>
  304. <datagrid id="grd_obgypatlist" nodeset="/root/main/obgypatlist/obgypatlistinfo" allowselection="false" caption="^일자^등록번호^성명^센터^진료과^하위부서^주치의^결과^출력^상태^다음예약1^다음예약2^전화번호1^전화번호2^SMS^전송^입원예정일^입원일^수술예정일^우편번호^주소^비고^기관코드^진료일^cretno^특이사항존재여부^msgkey^status" colsep="^" colwidth="28, 85, 70, 60, 100, 100, 100, 100, 40, 40, 66, 85, 85, 100, 100, 120, 40, 85, 85, 85, 80, 149, 100, 0, 0, 0, 0, 0, 0" ellipsis="true" explorerbar="sort" frozencols="12" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" selectionmode="byrow" tooltip="true" style="left:0px; top:40px; width:1190px; height:215px; ">
  305. <col ref="chk" type="checkbox"/>
  306. <col ref="srchdd" format="yyyy-mm-dd" style="left:28px; top:23px; width:85px; height:23px; "/>
  307. <col ref="pid"/>
  308. <col ref="patnm"/>
  309. <col ref="centdeptnm" style="text-align:center; "/>
  310. <col ref="orddeptnm" style="text-align:center; "/>
  311. <col ref="subdeptnm" style="text-align:center; "/>
  312. <col ref="orddrnm" style="text-align:center; "/>
  313. <col ref="examrslt" type="input" style="text-align:center; "/>
  314. <col ref="prntstat" style="text-align:center; "/>
  315. <col ref="prcpstat"/>
  316. <col ref="nextrsrv1" format="yyyy-mm-dd" style="text-align:center; "/>
  317. <col ref="nextrsrv2" format="yyyy-mm-dd" style="text-align:center; "/>
  318. <col ref="telno" style="text-align:center; "/>
  319. <col ref="hpno" style="text-align:center; "/>
  320. <col ref="smssenddt" format="yyyy-mm-dd hh:nn:ss" style="text-align:center; "/>
  321. <col ref="smssendyn" style="text-align:center; "/>
  322. <col ref="inhopedd" format="yyyy-mm-dd" style="text-align:center; "/>
  323. <col ref="indd" format="yyyy-mm-dd" style="text-align:center; "/>
  324. <col ref="opcnfmdd" format="yyyy-mm-dd" style="text-align:center; "/>
  325. <col ref="zipcd" style="text-align:center; "/>
  326. <col ref="addr" style="text-align:center; "/>
  327. <col ref="rem" type="input" style="text-align:center; "/>
  328. <col ref="instcd"/>
  329. <col ref="orddd"/>
  330. <col ref="cretno"/>
  331. <col ref="cmmtyn"/>
  332. <col ref="msgkey"/>
  333. <col ref="status"/>
  334. <script type="javascript" ev:event="onendedit">
  335. <![CDATA[
  336. if(grd_obgypatlist.isCell(event.target) && grd_obgypatlist.mouseRow >= grd_obgypatlist.fixedrows){
  337. model.makeValue("/root/temp/smssendcnts", model.getValue("/root/main/obgypatlist/obgypatlistinfo[" + grd_obgypatlist.row+ "]/examrslt")); //발송내용 set
  338. cmb_sendcnts.refresh();
  339. }
  340. ]]>
  341. </script>
  342. <script type="javascript" ev:event="onclick">
  343. <![CDATA[
  344. if(grd_obgypatlist.isCell(event.target) && grd_obgypatlist.mouseRow >= grd_obgypatlist.fixedrows){
  345. if(grd_obgypatlist.col != grd_obgypatlist.colRef("chk")){
  346. model.makeValue("/root/temp/smssendcnts", model.getValue("/root/main/obgypatlist/obgypatlistinfo[" + grd_obgypatlist.row+ "]/examrslt")); //발송내용 set
  347. cmb_sendcnts.refresh();
  348. model.makeValue("/root/temp/pidcmmt", model.getValue("/root/main/obgypatlist/obgypatlistinfo[" + grd_obgypatlist.row+ "]/pid")); //특이사항 등록번호 set
  349. group1.attribute("visibility") = "hidden"; //특이사항 창 숨김.
  350. group2.attribute("visibility") = "hidden"; //검사결과 히스토리 창 숨김.
  351. //환자검사결과조회후 결과값 입력시(더블클릭시) onclick이벤트가 작동하는 문제로 if처리.
  352. if(model.getValue("/root/temp/pid") != model.getValue("/root/main/obgypatlist/obgypatlistinfo[" + grd_obgypatlist.row+ "]/pid")){
  353. fInitExamRslt("1");
  354. }
  355. if(grd_obgypatlist.col != grd_obgypatlist.colRef("examrslt") && grd_obgypatlist.col != grd_obgypatlist.colRef("rem")){
  356. if(model.getValue("/root/main/obgypatlist/obgypatlistinfo["+grd_obgypatlist.row+"]/chk") == "true"){
  357. model.makeValue("/root/main/obgypatlist/obgypatlistinfo["+grd_obgypatlist.row+"]/chk","false");
  358. }else{
  359. model.makeValue("/root/main/obgypatlist/obgypatlistinfo["+grd_obgypatlist.row+"]/chk", "true");
  360. }
  361. }
  362. }
  363. if(model.getValue("/root/main/obgypatlist/obgypatlistinfo[" + grd_obgypatlist.row+ "]/cmmtyn") == "Y"){
  364. button4.value = "■ 특이사항";
  365. }else if(model.getValue("/root/main/obgypatlist/obgypatlistinfo[" + grd_obgypatlist.row+ "]/cmmtyn") == "N"){
  366. button4.value = "□ 특이사항";
  367. }
  368. }
  369. ]]>
  370. </script>
  371. <script type="javascript" ev:event="onaftersort">
  372. <![CDATA[
  373. grd_obgypatlist.gridToInstance();
  374. //행이 선택되있을 경우 정렬후 선택된행에 포커스가 가는 현상이 있어 정렬후 젤위의 행을 선택하게함.
  375. grd_obgypatlist.isSelected(1) = true;
  376. ]]>
  377. </script>
  378. <script type="javascript" ev:event="ondblclick">
  379. <![CDATA[
  380. if(grd_obgypatlist.isCell(event.target) && grd_obgypatlist.mouseRow >= grd_obgypatlist.fixedrows){
  381. if(grd_obgypatlist.mouseCol == grd_obgypatlist.colRef("examrslt") || grd_obgypatlist.mouseCol == grd_obgypatlist.colRef("rem")){
  382. //결과입력 컬럼 or 비고컬럼일경우 pass
  383. }else{
  384. model.makeValue("/root/temp/pid", model.getValue("/root/main/obgypatlist/obgypatlistinfo[" + grd_obgypatlist.row+ "]/pid")); //등록번호 set
  385. model.makeValue("/root/temp/patnm", model.getValue("/root/main/obgypatlist/obgypatlistinfo[" + grd_obgypatlist.row+ "]/patnm")); //환자이름 set
  386. output1.refresh();
  387. output2.refresh();
  388. if(grd_obgypatlist.rowstyle(grd_obgypatlist.row, "data", "color") == "#ff0000"){ //검사결과 확인 시 빨간색이면 검정색으로 변환.
  389. grd_obgypatlist.rowstyle(grd_obgypatlist.row, "data", "color") = "#000000"; //검정
  390. }
  391. fPatExamRsltSrch(); //가장최근 병리검사 결과 조회.
  392. //더블클릭시 현재행은 체크, 나머지는 체크품..
  393. //if(grd_obgypatlist.mouseCol != grd_obgypatlist.colRef("examrslt") && grd_obgypatlist.mouseCol != grd_obgypatlist.colRef("rem")){
  394. for(var i=1;i<=getNodesetCount("/root/main/obgypatlist/obgypatlistinfo");i++){
  395. model.makeValue("/root/main/obgypatlist/obgypatlistinfo[" + i + "]/chk","false");
  396. }
  397. model.makeValue("/root/main/obgypatlist/obgypatlistinfo["+grd_obgypatlist.row+"]/chk", "true");
  398. //}
  399. }
  400. }
  401. ]]>
  402. </script>
  403. </datagrid>
  404. <line id="line4" class="line_3" style="x1:0px; y1:257px; x2:1190px; y2:257px; "/>
  405. <line id="line1" class="line_3" style="x1:0px; y1:282px; x2:1190px; y2:282px; "/>
  406. <caption id="caption1" class="cell_1" style="left:5px; top:260px; width:65px; height:20px; ">등록번호</caption>
  407. <output id="output1" ref="/root/temp/pid" class="output_fix" style="left:73px; top:261px; width:105px; height:20px; "/>
  408. <caption id="caption3" class="cell_1" style="left:182px; top:260px; width:65px; height:20px; ">환자이름</caption>
  409. <output id="output2" ref="/root/temp/patnm" class="output_fix" style="left:250px; top:261px; width:105px; height:20px; "/>
  410. <caption id="caption4" class="cell_1" style="left:360px; top:260px; width:65px; height:20px; ">발송내용</caption>
  411. <button id="button4" class="btn2_letter6" style="left:1100px; top:285px; width:84px; height:19px; ">
  412. <caption>□ 특이사항</caption>
  413. <script type="javascript" ev:event="DOMActivate">
  414. <![CDATA[
  415. group1.attribute("visibility") = "visible";
  416. fCmmtSrch(); //특이사항 조회.
  417. ]]>
  418. </script>
  419. </button>
  420. <button id="button5" class="btn2_letter6" style="left:5px; top:287px; width:64px; height:19px; ">
  421. <caption>결과이력조회</caption>
  422. <script type="javascript" ev:event="DOMActivate">
  423. <![CDATA[
  424. group2.attribute("visibility") = "visible";
  425. fPatExamHist(); //검사결과이력조회
  426. ]]>
  427. </script>
  428. </button>
  429. <line id="line3" class="line_3" style="x1:0px; y1:309px; x2:1190px; y2:309px; "/>
  430. <output id="output3" ref="/root/temp/ptno" class="output_fix" style="left:98px; top:287px; width:185px; height:19px; "/>
  431. <output id="output4" ref="/root/temp/prcpdd" class="output_fix" style="left:290px; top:287px; width:375px; height:19px; "/>
  432. <select1 id="cmb_sendcnts" ref="/root/temp/smssendcnts" appearance="minimal" style="left:430px; top:261px; width:345px; height:20px; ">
  433. <choices>
  434. <item>
  435. <label>1. 정상.</label>
  436. <value>1</value>
  437. </item>
  438. <item>
  439. <label>2. 전화로 알림.</label>
  440. <value>2</value>
  441. </item>
  442. <item>
  443. <label>3. 재검-SMS로 알림</label>
  444. <value>3</value>
  445. </item>
  446. <item>
  447. <label>4. 정상+염증성 소견</label>
  448. <value>4</value>
  449. </item>
  450. </choices>
  451. <script type="javascript" ev:event="xforms-value-changed">
  452. <![CDATA[
  453. //model.makeValue("/root/main/obgypatlist/obgypatlistinfo[" + grd_obgypatlist.row+ "]/examrslt", model.getValue("/root/temp/smssendcnts"));
  454. //grd_obgypatlist.refresh();
  455. ]]>
  456. </script>
  457. <script type="javascript" ev:event="xforms-select">
  458. <![CDATA[
  459. var bool = fSaveNormal(); //발송내용 선택시 저장.
  460. if(!bool){
  461. fSearch(); //조회
  462. }else{
  463. model.makeValue("/root/main/obgypatlist/obgypatlistinfo[" + grd_obgypatlist.row+ "]/examrslt", model.getValue("/root/temp/smssendcnts"));
  464. grd_obgypatlist.refresh();
  465. }
  466. ]]>
  467. </script>
  468. </select1>
  469. <textarea id="tar_examrslt" ref="/root/temp/examrslttxt" style="left:0px; top:315px; width:1190px; height:420px; "/>
  470. <group id="group2" visibility="hidden" style="left:8px; top:316px; width:657px; height:290px; border-color:#adceff; border-width:5px; border-style:solid; gradient:linear(0,0,100%,100%,white,#d7e7ff,1); ">
  471. <datagrid id="grd_examhist" nodeset="/root/temp/patexamhistlist/patexamhistinfo" caption="결과일자^검체명^병리번호^상태^진료과^진료의^접수일자^검사결과^처방일자" colsep="^" colwidth="90, 95, 80, 55, 95, 90, 0, 0, 90" ellipsis="true" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="true" style="left:15px; top:10px; width:620px; height:240px; ">
  472. <col ref="readdd" format="yyyy-mm-dd" style="text-align:center; "/>
  473. <col ref="spcnm" style="text-align:center; "/>
  474. <col ref="ptno" style="text-align:center; "/>
  475. <col disabled="true" ref="acptstatcd" type="combo" style="text-align:center; ">
  476. <choices>
  477. <item>
  478. <label>접수</label>
  479. <value>0</value>
  480. </item>
  481. <item>
  482. <label>최종결과</label>
  483. <value>3</value>
  484. </item>
  485. <item>
  486. <label>수정결과</label>
  487. <value>4</value>
  488. </item>
  489. </choices>
  490. </col>
  491. <col ref="orddeptcd" style="text-align:center; "/>
  492. <col ref="orddrid" style="text-align:center; "/>
  493. <col ref="acptdt"/>
  494. <col ref="rsltcnts"/>
  495. <col ref="prcpdd" format="yyyy-mm-dd" style="text-align:center; "/>
  496. <script type="javascript" ev:event="onclick">
  497. <![CDATA[
  498. if(grd_examhist.isCell(event.target) && grd_examhist.mouseRow >= grd_examhist.fixedrows){
  499. fPatExamHistClick();
  500. }
  501. ]]>
  502. </script>
  503. </datagrid>
  504. <button id="button8" class="btn4_letter2" style="left:575px; top:255px; width:56px; height:22px; ">
  505. <caption>닫기</caption>
  506. <script type="javascript" ev:event="DOMActivate">
  507. <![CDATA[
  508. group2.attribute("visibility") = "hidden";
  509. ]]>
  510. </script>
  511. </button>
  512. </group>
  513. <button id="button9" class="btn1_letter2" visibility="hidden" style="left:790px; top:260px; width:65px; height:15px; ">
  514. <caption>저장</caption>
  515. <script type="javascript" ev:event="DOMActivate">
  516. <![CDATA[
  517. var j = 0;
  518. for(var i=1;i<=getNodesetCount("/root/main/obgypatlist/obgypatlistinfo");i++){
  519. if(model.getValue("/root/main/obgypatlist/obgypatlistinfo["+ i +"]/chk") == "true"){
  520. j++;
  521. if(model.getValue("/root/main/obgypatlist/obgypatlistinfo["+ i +"]/examrslt") == ""){
  522. messageBox("결과컬럼에 값을 입력하지 않은 행이 존재합니다. [ " + i + " ]행", "E");
  523. return;
  524. }
  525. }
  526. }
  527. if(j == 0){
  528. messageBox("저장할 환자를 선택하지", "E007");
  529. return;
  530. }
  531. fSaveNormal(); //일반저장(SMS전송 및 출력을 하지 않고 결과값 및 비고 저장.)
  532. fSearch(); //조회
  533. ]]>
  534. </script>
  535. </button>
  536. </group>
  537. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">자궁경부 환자 결과입력</caption>
  538. <group id="group1" visibility="hidden" style="left:860px; top:335px; width:325px; height:230px; border-color:#adceff; border-width:5px; border-style:solid; gradient:linear(0,0,100%,100%,white,#d7e7ff,1); ">
  539. <button id="button6" class="btn4_letter2" style="left:90px; top:190px; width:56px; height:22px; ">
  540. <caption>저장</caption>
  541. <script type="javascript" ev:event="DOMActivate">
  542. <![CDATA[
  543. fInsPatCmmt(); //특이사항 저장.
  544. ]]>
  545. </script>
  546. </button>
  547. <button id="button7" class="btn4_letter2" style="left:170px; top:190px; width:56px; height:22px; ">
  548. <caption>닫기</caption>
  549. <script type="javascript" ev:event="DOMActivate">
  550. <![CDATA[
  551. group1.attribute("visibility") = "hidden";
  552. model.makeValue("/root/temp/patcmmt", "");
  553. ]]>
  554. </script>
  555. </button>
  556. <textarea id="tar_cmmt" ref="/root/temp/patcmmt/patcmmtstmtinfo/patcmmtstmt" style="left:15px; top:55px; width:285px; height:125px; "/>
  557. <caption id="caption5" class="cell_1" style="left:15px; top:4px; width:285px; height:20px; font-weight:bold; text-align:center; ">특이사항입력</caption>
  558. <caption id="caption7" class="cell_1" style="left:15px; top:30px; width:75px; height:20px; ">등록번호</caption>
  559. <input id="inpt_cmmtpid" ref="/root/temp/pidcmmt" style="left:100px; top:30px; width:110px; height:20px; "/>
  560. </group>
  561. </xhtml:body>
  562. </xhtml:html>