SMMNW15100_검사실전달사항.xrw 50 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000
  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. <wardcd/>
  12. <pid/>
  13. <fromdd/>
  14. <todd/>
  15. <rsrvfromdd/>
  16. <exceptflag>Y</exceptflag>
  17. <exceptflag2>Y</exceptflag2>
  18. <deptcd/>
  19. <roomcd/>
  20. <roomflag>room</roomflag>
  21. <zonecd/>
  22. <instcd/>
  23. <patnm/>
  24. <upinfoyn/>
  25. <ordtype/>
  26. <orddd/>
  27. <refflag>room</refflag>
  28. <settingrnid/>
  29. <multicheck/>
  30. <rsrvyn/>
  31. <rsrvtodd/>
  32. </cond>
  33. <examtrnsinfo>
  34. <examtrnslist/>
  35. <patserchinfolist>
  36. <instcd/>
  37. <pid/>
  38. <indd/>
  39. <cretno/>
  40. <wardcd/>
  41. <roomcd/>
  42. <patnm/>
  43. <sexage/>
  44. <sex/>
  45. <brthdd/>
  46. </patserchinfolist>
  47. </examtrnsinfo>
  48. <examtrnsinfo2>
  49. <examtrnslist/>
  50. </examtrnsinfo2>
  51. </main>
  52. <send>
  53. <reqdata/>
  54. <savedata/>
  55. </send>
  56. <init/>
  57. <temp>
  58. <zoneinfo/>
  59. </temp>
  60. <tmp/>
  61. </root>
  62. </instance>
  63. <script type="javascript" ev:event="xforms-ready">
  64. <![CDATA[
  65. // cap_roomcd.visible = true;
  66. // cmb_roomcd.visible = true;
  67. // cap_Zone.visible = false;
  68. // cmb_Zone.visible = false;
  69. var pCode = "'197','N02'"; // 조회할 CdGrupID 코드정보
  70. var pDate = getCurrentDate(); //조회기준일자
  71. fGetNursHardCdInfo(pCode, pDate);
  72. addComboItem("cmb_deptcd", "-", "", "above");
  73. cmb_deptcd.refresh();
  74. var instcd = getUserInfo("dutplceinstcd");
  75. var plcecd = getUserInfo("dutplcecd");
  76. var standard_yn = "orduseyn";
  77. var ord_deptflag = 'W';
  78. var rslt_ref = "/root/init/dept";
  79. var sort_field = "depthngnm";
  80. var sort_method = "asc";
  81. var dt = getCurrentDate();
  82. var df = ((dt.toDate("YYYYMMDD")).getAddDate(-1, "M")).getDateFormat("YYYYMMDD") ;
  83. var userkind = getUserInfo("jobkindcd");
  84. zbcfGetDeptCodeList(instcd, standard_yn, ord_deptflag, rslt_ref, sort_field, sort_method, dt);
  85. addComboItem("cmb_wardcd", "-", "", "above");
  86. model.setValue(ipt_fromdd.attribute("ref"), df);
  87. model.setValue(ipt_todd.attribute("ref"), dt);
  88. var deptcd = model.getValue("/root/init/codeinfo/codelist[cdgrupid='197' and cdid ='" + plcecd +"']/cdid");
  89. if(deptcd == null || deptcd == "") {
  90. } else {
  91. model.setValue(cmb_deptcd.attribute("ref"), plcecd);
  92. }
  93. if(userkind == "1140"){
  94. button8.disabled = false;
  95. model.setValue(cmb_wardcd.attribute("ref"),plcecd);
  96. if(model.getValue("/root/main/cond/wardcd") != ""){
  97. fGetRoomList();
  98. fGetSettringInfoRef();
  99. model.setValue("/root/main/cond/patnm", "");
  100. model.setValue("/root/main/cond/pid", "");
  101. fPatInfoRef();
  102. }
  103. }
  104. model.refresh();
  105. fSearch() ;
  106. //grd_examtrnsinfo.deleteRow(grd_examtrnsinfo.fixedRows);
  107. grd_examtrnsinfo2.deleteRow(grd_examtrnsinfo2.fixedRows);
  108. ]]>
  109. </script>
  110. <submission id="TRMNR00602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/room"/>
  111. <!--submission id="TRMNR06302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/temp/zoneinfo"/ 응급의료센터 구역정보-->
  112. <submission id="TRMNW10903" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/patinfo"/>
  113. <submission id="TRMNW10910" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/settinginfo"/>
  114. <submission id="TRMNW10902" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/roominfo"/>
  115. <submission id="TRMNW00001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/cmblist"/>
  116. <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="urlencoded-post" replace="instance"/>
  117. <submission id="TRMNW15201" mediatype="application/x-www-form-urlencoded" method="urlencoded-post" ref="/root/send" replace="instance" resultref="/root/main/examtrnsinfo"/>
  118. <submission id="TXMNW15000" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/temp"/>
  119. <submission id="TXMNW15100" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata/examtrnslist" resultref="/root/main/examtrnsinfo"/>
  120. </model>
  121. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  122. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  123. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  124. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  125. <script type="javascript" src="../../../emr/carecomweb/js/CareCom.js"/>
  126. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  127. <script type="javascript">
  128. <![CDATA[
  129. function fSearch() {
  130. model.copyNode("/root/send", "/root/main/cond");
  131. submit("TRMNW15201");
  132. model.setValue("/root/main/cond/multicheck", false );
  133. model.refresh();
  134. var pid = model.getValue("/root/main/cond/pid");
  135. if(pid != ""){
  136. var instcd = model.getValue("/root/main/examtrnsinfo/patserchinfolist/instcd");
  137. if(instcd != ""){
  138. condparam = model.getValue("/root/main/examtrnsinfo/patserchinfolist/ordtype")
  139. + "▦" + model.getValue("/root/main/cond/pid")
  140. + "▦" + model.getValue("/root/main/examtrnsinfo/patserchinfolist/indd")
  141. + "▦" + model.getValue("/root/main/examtrnsinfo/patserchinfolist/cretno")
  142. + "▦" + model.getValue("/root/main/examtrnsinfo/patserchinfolist/instcd")
  143. + "▦" + getCurrentDate();
  144. setParameter("condparam", condparam);
  145. //상단 세팅 화면 사이즈 작게 띄움
  146. modal("SPMMO08900", 1, "", "", "", "", "", "left:0; right:0; width:0; height:0; sysmenu:hidden; caption:hidden; min:hidden, max:hidden;");
  147. }
  148. }
  149. }
  150. function fGetRoomList(){
  151. model.setValue("/root/main/cond/roomcd", "");
  152. model.removeNodeset("/root/send/reqdata");
  153. model.makeNode("/root/send/reqdata");
  154. model.copynode("/root/send/reqdata", "/root/main/cond");
  155. submit("TRMNR00602");
  156. model.refresh();
  157. }
  158. // function fnZoneDisp() {
  159. //
  160. // submit("TRMNR06302");
  161. //
  162. // model.refresh();
  163. // }
  164. function fPatInfoRef() {
  165. model.setValue("/root/main/cond/upinfoyn", "N");
  166. model.setValue("/root/main/cond/ordtype", "I");
  167. model.setValue("/root/main/cond/orddd", getCurrentDate());
  168. model.removeNodeset("/root/send/reqdata");
  169. model.makeNode("/root/send/reqdata");
  170. model.copynode("/root/send/reqdata", "/root/main/cond");
  171. submit("TRMNW10903");
  172. model.refresh();
  173. }
  174. function fGetSettringInfoRef() {
  175. model.makeValue("/root/send/reqdata/wardcd", model.getValue("/root/main/cond/wardcd") );
  176. submit("TRMNW10910");
  177. cmb_settingrn.refresh();
  178. }
  179. function fGetPatInfo() {
  180. var settingnurid = model.getValue("/root/main/cond/settingrnid");
  181. if(settingnurid == null || settingnurid == "") {
  182. cmb_roomcd.disabled = false;
  183. } else {
  184. cmb_roomcd.disabled = true;
  185. }
  186. model.removeNodeset("/root/send/reqdata");
  187. model.makeNode("/root/send/reqdata");
  188. model.makeValue("/root/send/reqdata/wardcd", model.getValue("/root/main/cond/wardcd"));
  189. model.makeValue("/root/send/reqdata/settingrnid", model.getValue("/root/main/cond/settingrnid"));
  190. submit("TRMNW10902", false);
  191. if(model.getValue("/root/main/cond/settingrnid") != ""){
  192. model.setValue("/root/main/cond/roomcd", "-"); //해당 병실 셋팅
  193. cmb_roomcd.refresh();
  194. }else{
  195. model.setValue("/root/main/cond/roomcd", ""); //해당 병실 셋팅
  196. model.setValue("/root/main/cond/patnm", "");
  197. model.setValue("/root/main/cond/pid", "");
  198. model.refresh();
  199. fSearch() ;
  200. }
  201. //해당 병실의 환자 조회
  202. model.removeNodeset("/root/send/reqdata");
  203. model.makeNode("/root/send/reqdata");
  204. model.makeValue("/root/send/reqdata/orddd", getCurrentDate());
  205. model.makeValue("/root/send/reqdata/wardcd", model.getValue("/root/main/cond/wardcd"));
  206. model.makeValue("/root/send/reqdata/roomcd", model.getValue("/root/main/cond/roomcd"));
  207. model.makeValue("/root/send/reqdata/refflag", "room");
  208. model.makeValue("/root/send/reqdata/ordtype", "I");
  209. model.makeValue("/root/send/reqdata/settingrnid", model.getValue("/root/main/cond/settingrnid"));
  210. submit("TRMNW10903", false);
  211. model.setValue("/root/main/cond/patnm", "");
  212. model.setValue("/root/main/cond/pid", "");
  213. model.refresh();
  214. }
  215. ]]>
  216. </script>
  217. </xhtml:head>
  218. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  219. <group id="group3" scroll="auto" style="left:0px; top:0px; width:1195px; height:784px; font-family:굴림; ">
  220. <datagrid id="grd_examtrnsinfo2" nodeset="/root/main/examtrnsinfo2/examtrnslist" class="datagrid2" autoresize="true" caption="^병동^병실^등록번호^환자명^S/A^실시일자^예약일시^검사실^처방명^처방 전달사항^지원부서^간호 전달사항^간호 작성일자^간호&#xA;작성자^간호&#xA;연락처^검사실 전달사항^검사실 작성일자^검사실&#xA;작성자^검사실&#xA;연락처^간호확인일시^확인자" colsep="^" colwidth="23, 90, 55, 66, 54, 36, 100, 85, 100, 100, 100, 100, 100, 85, 46, 43, 100, 100, 43, 44, 85, 56, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" frozencols="6" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:390px; width:1194px; height:370px; font-family:굴림; ">
  221. <col checkvalue="Y,N" ref="chkyn" type="checkbox" style="font-family:굴림; "/>
  222. <col ref="wardcd" type="combo" style="font-family:굴림; text-align:left; ">
  223. <choices>
  224. <itemset nodeset="/root/init/dept/dept">
  225. <label ref="depthngnm"/>
  226. <value ref="deptcd"/>
  227. </itemset>
  228. </choices>
  229. </col>
  230. <col ref="roomcd" style="font-family:굴림; "/>
  231. <col ref="pid" style="font-family:굴림; "/>
  232. <col ref="patnm" style="font-family:굴림; "/>
  233. <col ref="sexage" style="font-family:굴림; "/>
  234. <col ref="execdd" style="font-family:굴림; text-align:center; "/>
  235. <col ref="rsrvdt" format="yyyy/mm/dd hh:nn" style="font-family:굴림; "/>
  236. <col ref="examroom" style="font-family:굴림; "/>
  237. <col ref="prcpnm" style="font-family:굴림; "/>
  238. <col ref="prcpdelivefact" style="font-family:굴림; "/>
  239. <col ref="prcpexecdeptcd" type="combo" style="font-family:굴림; ">
  240. <choices>
  241. <itemset nodeset="/root/init/codeinfo/codelist[cdgrupid='197']">
  242. <label ref="cdnm"/>
  243. <value ref="cdid"/>
  244. </itemset>
  245. </choices>
  246. </col>
  247. <col ref="nrmrk" type="input" style="font-family:굴림; "/>
  248. <col ref="nrdt" style="font-family:굴림; "/>
  249. <col ref="nrid" style="font-family:굴림; "/>
  250. <col ref="nrtel" type="input" style="font-family:굴림; "/>
  251. <col ref="examrmrmk" type="input" style="font-family:굴림; "/>
  252. <col ref="examrmdt" style="font-family:굴림; "/>
  253. <col ref="examrmid" style="font-family:굴림; "/>
  254. <col ref="examrmtel" type="input" style="font-family:굴림; "/>
  255. <col ref="nrckdt" style="font-family:굴림; "/>
  256. <col ref="nrckid" style="font-family:굴림; "/>
  257. <col ref="indd" visibility="hidden"/>
  258. <col ref="cretno" visibility="hidden"/>
  259. <col ref="prcpdd" visibility="hidden"/>
  260. <col ref="prcpno" visibility="hidden"/>
  261. <col ref="prcphistno" visibility="hidden"/>
  262. <col ref="prcpclscd" visibility="hidden"/>
  263. <col ref="rsrvdd" visibility="hidden"/>
  264. <col ref="rsrvtm" visibility="hidden"/>
  265. <col ref="sex" visibility="hidden"/>
  266. <col ref="brthdd" visibility="hidden"/>
  267. <col ref="wardcd" visibility="hidden"/>
  268. </datagrid>
  269. <datagrid id="grd_examtrnsinfo" nodeset="/root/main/examtrnsinfo/examtrnslist" class="datagrid2" autoresize="true" caption="^예약&#xA;여부^병동^병실^등록번호^환자명^S/A^실시일자^예약일시^검사실^처방명^처방 전달사항^지원부서^간호 전달사항^간호 전달사항^간호&#xA;작성일자^간호&#xA;작성자^간호&#xA;연락처^검사실 전달사항^검사실&#xA;작성일자^검사실&#xA;작성자^검사실&#xA;연락처^간호&#xA;확인일시^확인자^최초&#xA;작성일자" colsep="^" colwidth="23, 30, 50, 40, 55, 54, 36, 75, 75, 80, 110, 60, 95, 100, 110, 75, 60, 43, 210, 75, 60, 44, 75, 45, 75, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" explorerbar="sort" frozencols="7" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:165px; width:1194px; height:595px; font-family:굴림; ">
  270. <col checkvalue="Y,N" ref="chkyn" type="checkbox" style="font-family:굴림; "/>
  271. <col disabled="true" ref="rsrvyn" style="text-align:center; "/>
  272. <col disabled="true" ref="wardcd" type="combo" style="font-family:굴림; text-align:left; ">
  273. <choices>
  274. <itemset nodeset="/root/init/dept/dept">
  275. <label ref="depthngnm"/>
  276. <value ref="deptcd"/>
  277. </itemset>
  278. </choices>
  279. </col>
  280. <col ref="roomcd" style="font-family:굴림; "/>
  281. <col ref="pid" style="font-family:굴림; text-align:center; "/>
  282. <col ref="patnm" style="font-family:굴림; "/>
  283. <col ref="sexage" style="font-family:굴림; text-align:center; "/>
  284. <col ref="execdd" format="yyyy-mm-dd" style="font-family:굴림; text-align:center; "/>
  285. <col ref="rsrvdt" type="input" format="yyyy-mm-dd hh:nn" maxlength="14" style="font-family:굴림; text-align:center; "/>
  286. <col ref="examroom" type="input" maxlength="100" style="font-family:굴림; "/>
  287. <col ref="prcpnm" type="input" maxlength="300" style="font-family:굴림; "/>
  288. <col ref="prcpdelivefact" type="input" maxlength="1000" style="font-family:굴림; "/>
  289. <col ref="prcpexecdeptcd" type="combo" style="font-family:굴림; ">
  290. <choices>
  291. <itemset nodeset="/root/init/codeinfo/codelist[cdgrupid='197' or cdid='']">
  292. <label ref="cdnm"/>
  293. <value ref="cdid"/>
  294. </itemset>
  295. </choices>
  296. </col>
  297. <col ref="nrrmkcd" type="combo" style="font-family:굴림; ">
  298. <choices>
  299. <itemset nodeset="/root/init/codeinfo/codelist[cdgrupid='N02']">
  300. <label ref="cdnm"/>
  301. <value ref="cdid"/>
  302. </itemset>
  303. </choices>
  304. </col>
  305. <col ref="nrrmk" type="input" maxlength="1000" style="font-family:굴림; "/>
  306. <col ref="nrdt" format="yyyy-mm-dd hh:nn" style="font-family:굴림; text-align:center; "/>
  307. <col ref="nrid" type="inputbutton" style="font-family:굴림; "/>
  308. <col ref="nrtel" type="input" maxlength="20" style="font-family:굴림; "/>
  309. <col ref="examrmrmk" type="input" maxlength="1000" style="font-family:굴림; "/>
  310. <col ref="examrmdt" format="yyyy-mm-dd hh:nn" style="left:1103px; top:32px; width:100px; height:23px; font-family:굴림; text-align:center; "/>
  311. <col ref="examrmid" type="inputbutton" style="font-family:굴림; "/>
  312. <col ref="examrmtel" type="input" maxlength="20" style="font-family:굴림; "/>
  313. <col ref="nrckdt" format="yyyy-mm-dd hh:nn" style="font-family:굴림; text-align:center; "/>
  314. <col ref="nrckid" style="font-family:굴림; text-align:center; "/>
  315. <col ref="fstrgstdt" format="yyyy-mm-dd hh:nn" style="font-family:굴림; text-align:center; "/>
  316. <col ref="indd" visibility="hidden"/>
  317. <col ref="cretno" visibility="hidden"/>
  318. <col ref="prcpdd" visibility="hidden"/>
  319. <col ref="prcpno" visibility="hidden"/>
  320. <col ref="prcphistno" visibility="hidden"/>
  321. <col ref="prcpclscd" visibility="hidden"/>
  322. <col ref="rsrvdd" visibility="hidden"/>
  323. <col ref="rsrvtm" visibility="hidden"/>
  324. <col ref="sex" visibility="hidden"/>
  325. <col ref="brthdd" visibility="hidden"/>
  326. <col ref="seqno" visibility="hidden"/>
  327. <script type="javascript" ev:event="onbuttonclick">
  328. <![CDATA[
  329. var dt = getCurrentDate() + getCurrentTime();
  330. if(grd_examtrnsinfo.col == grd_examtrnsinfo.colRef("nrid")) {
  331. grd_examtrnsinfo.valueMatrix(grd_examtrnsinfo.row, grd_examtrnsinfo.colRef("nrid")) = getUserInfo("usernm");
  332. grd_examtrnsinfo.valueMatrix(grd_examtrnsinfo.row, grd_examtrnsinfo.colRef("nrdt")) = dt;
  333. if(grd_examtrnsinfo.valueMatrix(grd_examtrnsinfo.row, grd_examtrnsinfo.colRef("seqno")) != ""){
  334. grd_examtrnsinfo.rowStatus(grd_examtrnsinfo.row) = '2';
  335. }else{
  336. grd_examtrnsinfo.rowStatus(grd_examtrnsinfo.row) = '1';
  337. }
  338. }else if(grd_examtrnsinfo.col == grd_examtrnsinfo.colRef("examrmid")) {
  339. grd_examtrnsinfo.valueMatrix(grd_examtrnsinfo.row, grd_examtrnsinfo.colRef("examrmid")) = getUserInfo("usernm");
  340. grd_examtrnsinfo.valueMatrix(grd_examtrnsinfo.row, grd_examtrnsinfo.colRef("examrmdt")) = dt;
  341. if(grd_examtrnsinfo.valueMatrix(grd_examtrnsinfo.row, grd_examtrnsinfo.colRef("seqno")) != ""){
  342. grd_examtrnsinfo.rowStatus(grd_examtrnsinfo.row) = '2';
  343. }else{
  344. grd_examtrnsinfo.rowStatus(grd_examtrnsinfo.row) = '1';
  345. }
  346. }
  347. ]]>
  348. </script>
  349. <script type="javascript" ev:event="onclick">
  350. <![CDATA[
  351. if ( grd_examtrnsinfo.mouseCol == grd_examtrnsinfo.colRef("rsrvdt") ){
  352. if(grd_examtrnsinfo.valueMatrix(grd_examtrnsinfo.row , grd_examtrnsinfo.colRef("rsrvyn"))== "Y"){
  353. grd_examtrnsinfo.colDisabled(grd_examtrnsinfo.colRef("rsrvdt")) = true;
  354. }else if(grd_examtrnsinfo.valueMatrix(grd_examtrnsinfo.row , grd_examtrnsinfo.colRef("rsrvyn"))== "N"){
  355. grd_examtrnsinfo.colDisabled(grd_examtrnsinfo.colRef("rsrvdt")) = false;
  356. }
  357. }else if ( grd_examtrnsinfo.mouseCol == grd_examtrnsinfo.colRef("examroom") ){
  358. if(grd_examtrnsinfo.valueMatrix(grd_examtrnsinfo.row , grd_examtrnsinfo.colRef("rsrvyn"))== "Y"){
  359. grd_examtrnsinfo.colDisabled(grd_examtrnsinfo.colRef("examroom")) = true;
  360. }else if(grd_examtrnsinfo.valueMatrix(grd_examtrnsinfo.row , grd_examtrnsinfo.colRef("rsrvyn"))== "N"){
  361. grd_examtrnsinfo.colDisabled(grd_examtrnsinfo.colRef("examroom")) = false;
  362. }
  363. }else if ( grd_examtrnsinfo.mouseCol == grd_examtrnsinfo.colRef("prcpnm") ){
  364. if(grd_examtrnsinfo.valueMatrix(grd_examtrnsinfo.row , grd_examtrnsinfo.colRef("rsrvyn"))== "Y"){
  365. grd_examtrnsinfo.colDisabled(grd_examtrnsinfo.colRef("prcpnm")) = true;
  366. }else if(grd_examtrnsinfo.valueMatrix(grd_examtrnsinfo.row , grd_examtrnsinfo.colRef("rsrvyn"))== "N"){
  367. grd_examtrnsinfo.colDisabled(grd_examtrnsinfo.colRef("prcpnm")) = false;
  368. }
  369. }else if ( grd_examtrnsinfo.mouseCol == grd_examtrnsinfo.colRef("prcpdelivefact") ){
  370. if(grd_examtrnsinfo.valueMatrix(grd_examtrnsinfo.row , grd_examtrnsinfo.colRef("rsrvyn"))== "Y"){
  371. grd_examtrnsinfo.colDisabled(grd_examtrnsinfo.colRef("prcpdelivefact")) = true;
  372. }else if(grd_examtrnsinfo.valueMatrix(grd_examtrnsinfo.row , grd_examtrnsinfo.colRef("rsrvyn"))== "N"){
  373. grd_examtrnsinfo.colDisabled(grd_examtrnsinfo.colRef("prcpdelivefact")) = false;
  374. }
  375. }
  376. ]]>
  377. </script>
  378. <script type="javascript" ev:event="ondblclick">
  379. <![CDATA[
  380. if(grd_examtrnsinfo.mouseCol == grd_examtrnsinfo.colRef("rsrvyn") || grd_examtrnsinfo.mouseCol == grd_examtrnsinfo.colRef("wardcd") || grd_examtrnsinfo.mouseCol == grd_examtrnsinfo.colRef("roomcd")
  381. || grd_examtrnsinfo.mouseCol == grd_examtrnsinfo.colRef("pid") || grd_examtrnsinfo.mouseCol == grd_examtrnsinfo.colRef("patnm") || grd_examtrnsinfo.mouseCol == grd_examtrnsinfo.colRef("sexage") ){
  382. model.setValue("/root/main/cond/pid",grd_examtrnsinfo.valueMatrix(grd_examtrnsinfo.row , grd_examtrnsinfo.colRef("pid")));
  383. fSearch() ;
  384. }
  385. ]]>
  386. </script>
  387. <script type="javascript" ev:event="onaftersort">
  388. <![CDATA[
  389. grd_examtrnsinfo.gridToInstance();
  390. ]]>
  391. </script>
  392. </datagrid>
  393. <caption id="cpt_title" class="tit_1" style="left:0px; top:0px; width:145px; height:15px; font-family:굴림; ">검사실 전달사항</caption>
  394. <group id="grp_sea" style="left:0px; top:20px; width:1194px; height:110px; font-family:굴림; vertical-align:top; ">
  395. <shape id="roundrect2" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:110px; font-family:굴림; "/>
  396. <button id="btn_ref" class="btn1_letter2" navindex="7" style="left:1000px; top:25px; width:56px; height:22px; font-family:굴림; ">
  397. <caption>조회</caption>
  398. <script type="javascript" ev:event="DOMActivate">
  399. <![CDATA[
  400. fSearch() ;
  401. ]]>
  402. </script>
  403. </button>
  404. <line id="line2" class="line_4" border-eft-style="solid" style="x1:985px; y1:10px; x2:985px; y2:61px; font-family:굴림; border-color:#ffe4bb; "/>
  405. <caption id="caption29" class="search_name" style="left:15px; top:16px; width:70px; height:17px; font-family:굴림; ">병 동 :</caption>
  406. <select1 id="cmb_wardcd" ref="/root/main/cond/wardcd" class="combo_search" navindex="1" appearance="minimal" style="left:90px; top:16px; width:105px; height:19px; font-family:굴림; ">
  407. <choices>
  408. <itemset nodeset="/root/init/dept/dept">
  409. <label ref="depthngnm"/>
  410. <value ref="deptcd"/>
  411. </itemset>
  412. </choices>
  413. <script type="javascript" ev:event="xforms-value-changed">
  414. <![CDATA[
  415. // if(model.getValue("/root/main/cond/wardcd") == '2280200000'){
  416. // cap_roomcd.visible = false;
  417. // cmb_roomcd.visible = false;
  418. // cap_Zone.visible = true;
  419. // cmb_Zone.visible = true;
  420. // fnZoneDisp();
  421. // }else{
  422. // cap_roomcd.visible = true;
  423. // cmb_roomcd.visible = true;
  424. // cap_Zone.visible = false;
  425. // cmb_Zone.visible = false;
  426. // fGetRoomList();
  427. // }
  428. fGetRoomList();
  429. fGetSettringInfoRef();
  430. model.setValue("/root/main/cond/patnm", "");
  431. model.setValue("/root/main/cond/pid", "");
  432. fPatInfoRef();
  433. ]]>
  434. </script>
  435. </select1>
  436. <button id="button2" class="btn1_letter2" navindex="8" style="left:1063px; top:25px; width:56px; height:22px; font-family:굴림; ">
  437. <caption>엑셀</caption>
  438. <script type="javascript" ev:event="DOMActivate">
  439. <![CDATA[
  440. var fileName = window.fileDialog("save", ",", false, "검사실 전달사항 리스트", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  441. grd_examtrnsinfo.saveExcel(fileName, "sheetname:sheet1;exportfalsecols:1;col_2:label;col_3:label;col_13:label;");
  442. ]]>
  443. </script>
  444. </button>
  445. <caption id="caption7" class="search_name" style="left:330px; top:50px; width:90px; height:17px; font-family:굴림; ">예약일자 :</caption>
  446. <input id="ipt_rsrvfromdd" ref="/root/main/cond/rsrvfromdd" class="input_search" navindex="2" inputtype="date" style="left:420px; top:50px; width:95px; height:19px; font-family:굴림; "/>
  447. <button id="button1" class="btn3_letter4" style="left:901px; top:80px; width:80px; height:22px; font-family:굴림; ">
  448. <caption>통합결과</caption>
  449. <script type="javascript" ev:event="DOMActivate">
  450. <![CDATA[
  451. var pid = model.getValue("/root/main/cond/pid");
  452. var instcd = model.getValue("/root/main/examtrnsinfo/patserchinfolist/instcd");
  453. if(pid == "") {
  454. messageBox("환자를 선택해주십시오.", "I");
  455. return;
  456. }
  457. if(instcd == "") {
  458. messageBox("해당 환자의 정보가 없습니다.", "I");
  459. return;
  460. }
  461. open("SMMMI00100");
  462. ]]>
  463. </script>
  464. </button>
  465. <button id="button4" class="btn3_letter4" style="left:988px; top:80px; width:80px; height:22px; font-family:굴림; ">
  466. <caption>통합기록</caption>
  467. <script type="javascript" ev:event="DOMActivate">
  468. <![CDATA[
  469. var pid = model.getValue("/root/main/cond/pid");
  470. var instcd = model.getValue("/root/main/examtrnsinfo/patserchinfolist/instcd");
  471. if(pid == "") {
  472. messageBox("환자를 선택해주십시오.", "I");
  473. return;
  474. }
  475. if(instcd == "") {
  476. messageBox("해당 환자의 정보가 없습니다.", "I");
  477. return;
  478. }
  479. setParameter("SMMRI00400_param_pid", pid);
  480. open("SMMRI00400");
  481. ]]>
  482. </script>
  483. </button>
  484. <button id="button5" class="btn3_letter6" style="left:1075px; top:80px; width:104px; height:22px; font-family:굴림; ">
  485. <caption>Consult관리</caption>
  486. <script type="javascript" ev:event="DOMActivate">
  487. <![CDATA[
  488. var pid = model.getValue("/root/main/cond/pid");
  489. var instcd = model.getValue("/root/main/examtrnsinfo/patserchinfolist/instcd");
  490. if(pid == "") {
  491. messageBox("환자를 선택해주십시오.", "I");
  492. return;
  493. }
  494. if(instcd == "") {
  495. messageBox("해당 환자의 정보가 없습니다.", "I");
  496. return;
  497. }
  498. open("SMMMR05000");
  499. ]]>
  500. </script>
  501. </button>
  502. <caption id="cap_roomcd" class="search_name" style="left:220px; top:16px; width:72px; height:17px; font-family:굴림; ">병 실 :</caption>
  503. <!--caption id="cap_Zone" class="search_name" style="left:200px; top:16px; width:92px; height:17px; font-family:굴림; ">구 역 :</caption>
  504. <select1 id="cmb_Zone" ref="/root/main/cond/zonecd" class="combo_s_essential" navindex="1" appearance="minimal" style="left:290px; top:16px; width:95px; height:19px; font-family:굴림; ">
  505. <choices>
  506. <itemset nodeset="/root/temp/zoneinfo/zonelist">
  507. <label ref="bednm"/>
  508. <value ref="bedcd"/>
  509. </itemset>
  510. </choices>
  511. <script type="javascript" ev:event="xforms-value-changed">
  512. <![CDATA[
  513. model.setValue("/root/main/cond/patnm", "");
  514. model.setValue("/root/main/cond/pid", "");
  515. fPatInfoRef();
  516. ]]>
  517. </script>
  518. </select1-->
  519. <select1 id="cmb_roomcd" ref="/root/main/cond/roomcd" class="combo_search" navindex="1" appearance="minimal" style="left:295px; top:16px; width:90px; height:19px; font-family:굴림; ">
  520. <choices>
  521. <itemset nodeset="/root/init/room/room">
  522. <label ref="roomnm"/>
  523. <value ref="roomcd"/>
  524. </itemset>
  525. </choices>
  526. <script type="javascript" ev:event="xforms-value-changed">
  527. <![CDATA[
  528. model.setValue("/root/main/cond/patnm", "");
  529. model.setValue("/root/main/cond/pid", "");
  530. fPatInfoRef();
  531. ]]>
  532. </script>
  533. </select1>
  534. <input id="ipt_pid" ref="/root/main/cond/pid" style="left:765px; top:16px; width:85px; height:19px; font-family:굴림; "/>
  535. <caption id="caption2" class="search_name" style="left:575px; top:16px; width:91px; height:17px; font-family:굴림; ">등록번호 :</caption>
  536. <select1 id="cmb_patnm" ref="/root/main/cond/patnm" class="combo_search" appearance="minimal" style="left:665px; top:16px; width:95px; height:19px; font-family:굴림; ">
  537. <choices>
  538. <itemset nodeset="/root/init/patinfo/patlist">
  539. <label ref="patnm"/>
  540. <value ref="pid"/>
  541. </itemset>
  542. </choices>
  543. <script type="javascript" ev:event="xforms-value-changed">
  544. <![CDATA[
  545. var pid = model.getValue("/root/main/cond/patnm");
  546. model.setValue("/root/main/cond/pid", pid);
  547. ipt_pid.refresh();
  548. fSearch();
  549. ]]>
  550. </script>
  551. </select1>
  552. <caption id="caption3" class="search_name" style="left:15px; top:50px; width:90px; height:17px; font-family:굴림; ">작성일자 :</caption>
  553. <caption id="caption4" style="left:203px; top:50px; width:20px; height:20px; font-family:굴림; text-align:center; ">~</caption>
  554. <input id="ipt_todd" ref="/root/main/cond/todd" class="input_s_essential" navindex="2" inputtype="date" style="left:220px; top:50px; width:95px; height:19px; font-family:굴림; "/>
  555. <input id="ipt_fromdd" ref="/root/main/cond/fromdd" class="input_s_essential" navindex="2" inputtype="date" style="left:110px; top:50px; width:95px; height:19px; font-family:굴림; "/>
  556. <select1 id="cmb_settingrn" ref="/root/main/cond/settingrnid" class="combo_search" appearance="minimal" style="left:483px; top:16px; width:75px; height:19px; font-family:굴림; ">
  557. <choices>
  558. <itemset nodeset="/root/init/settinginfo/settingrn">
  559. <label ref="settingrnnm"/>
  560. <value ref="settingrnid"/>
  561. </itemset>
  562. </choices>
  563. <script type="javascript" ev:event="xforms-value-changed">
  564. <![CDATA[
  565. fGetPatInfo();
  566. ]]>
  567. </script>
  568. </select1>
  569. <caption id="cap_settingrn" class="search_name" style="left:405px; top:16px; width:75px; height:17px; font-family:굴림; ">내환자 :</caption>
  570. <select1 id="cmb_deptcd" ref="/root/main/cond/deptcd" class="combo_search" navindex="1" appearance="minimal" style="left:735px; top:50px; width:115px; height:19px; font-family:굴림; ">
  571. <choices>
  572. <itemset nodeset="/root/init/codeinfo/codelist[cdgrupid='197' or cdid='']">
  573. <label ref="cdnm"/>
  574. <value ref="cdid"/>
  575. </itemset>
  576. </choices>
  577. </select1>
  578. <caption id="caption1" class="search_name" style="left:645px; top:50px; width:92px; height:17px; font-family:굴림; ">지원부서 :</caption>
  579. <caption id="caption6" class="search_name" style="left:330px; top:80px; width:90px; height:17px; font-family:굴림; ">예약여부 :</caption>
  580. <select1 id="rdo_rsrvyn" ref="/root/main/cond/rsrvyn" appearance="full" cellspacing="10" cols="3" overflow="visible" style="left:420px; top:80px; width:265px; height:20px; font-family:굴림; border-style:none; ">
  581. <choices>
  582. <item>
  583. <label>전체</label>
  584. <value/>
  585. </item>
  586. <item>
  587. <label>예약 검사건</label>
  588. <value>Y</value>
  589. </item>
  590. <item>
  591. <label>미예약 검사건</label>
  592. <value>N</value>
  593. </item>
  594. </choices>
  595. </select1>
  596. <input id="ipt_rsrvtodd" ref="/root/main/cond/rsrvtodd" class="input_search" navindex="2" inputtype="date" style="left:535px; top:50px; width:95px; height:19px; font-family:굴림; "/>
  597. <caption id="caption8" style="left:515px; top:50px; width:20px; height:20px; font-family:굴림; text-align:center; ">~</caption>
  598. </group>
  599. <caption id="caption5" class="tit_2" style="left:5px; top:145px; width:170px; height:13px; font-family:굴림; ">검사실 전달사항 리스트</caption>
  600. <line id="line1" class="line_1" style="x1:0px; y1:160px; x2:1194px; y2:160px; font-family:굴림; "/>
  601. <button id="btn_savrem" class="btn5_letter2" style="left:1081px; top:140px; width:42px; height:19px; font-family:굴림; ">
  602. <caption>저장</caption>
  603. <script type="javascript" ev:event="DOMActivate">
  604. <![CDATA[
  605. var deptcdcnt= 0;
  606. var prcpexecdeptcd;
  607. for(var i=grd_examtrnsinfo.fixedRows; i <grd_examtrnsinfo.rows; i++) {
  608. if(grd_examtrnsinfo.rowStatus(i) == 1 || grd_examtrnsinfo.rowStatus(i) == 2 || grd_examtrnsinfo.rowStatus(i) == 3){
  609. prcpexecdeptcd = grd_examtrnsinfo.valueMatrix(i, grd_examtrnsinfo.colRef("prcpexecdeptcd"));
  610. if(prcpexecdeptcd == ""){ //지원부서
  611. deptcdcnt++;
  612. }
  613. }
  614. }
  615. if(deptcdcnt > 0){
  616. messageBox("지원부서를 입력하여 주십시오.", "E");
  617. return;
  618. }
  619. var data = getGridUpdateData(grd_examtrnsinfo) ;
  620. if(data == "") {
  621. messageBox("저장 할 내역이", "I004");
  622. return;
  623. }
  624. model.makeValue("/root/send/savedata/examtrnslist", data);
  625. submit("TXMNW15000");
  626. fSearch() ;
  627. ]]>
  628. </script>
  629. </button>
  630. <select id="checkbox1" ref="/root/main/cond/exceptflag" overflow="visible" appearance="full" style="left:15px; top:100px; width:110px; height:13px; font-family:굴림; border-style:none; ">
  631. <choices>
  632. <item>
  633. <label>검사완료건 제외</label>
  634. <value>Y</value>
  635. </item>
  636. </choices>
  637. </select>
  638. <button id="button3" class="btn1_letter2" style="left:1125px; top:45px; width:56px; height:22px; font-family:굴림; ">
  639. <caption>출력</caption>
  640. <script type="javascript" ev:event="DOMActivate">
  641. <![CDATA[
  642. var cnt = 1;
  643. var chkyn = "";
  644. var prtNode = "/root/temp/prtinfo";
  645. model.removeNodeset("/root/temp/prtinfo");
  646. model.makeNode("/root/temp/prtinfo");
  647. var node = instance1.selectNodes(grd_examtrnsinfo.nodeset + "[chkyn='Y']");
  648. if(node.length == 0){
  649. messageBox("출력할 내역을 선택해주십시오.", "I");
  650. return;
  651. }
  652. if(node.length > 0) {
  653. for(var i = grd_examtrnsinfo.fixedRows; i < grd_examtrnsinfo.rows; i++) {
  654. chkyn = grd_examtrnsinfo.valueMatrix(i, grd_examtrnsinfo.colRef("chkyn"));
  655. if(chkyn == "Y") {
  656. model.makeValue(prtNode + "[" + cnt + "]/wardcd" , grd_examtrnsinfo.labelMatrix(i, grd_examtrnsinfo.colRef("wardcd")));
  657. model.makeValue(prtNode + "[" + cnt + "]/roomcd" , grd_examtrnsinfo.labelMatrix(i, grd_examtrnsinfo.colRef("roomcd")));
  658. model.makeValue(prtNode + "[" + cnt + "]/pid" , grd_examtrnsinfo.labelMatrix(i, grd_examtrnsinfo.colRef("pid")));
  659. model.makeValue(prtNode + "[" + cnt + "]/patnm" , grd_examtrnsinfo.labelMatrix(i, grd_examtrnsinfo.colRef("patnm")));
  660. model.makeValue(prtNode + "[" + cnt + "]/sexage" , grd_examtrnsinfo.labelMatrix(i, grd_examtrnsinfo.colRef("sexage")));
  661. model.makeValue(prtNode + "[" + cnt + "]/rsrvdt" , grd_examtrnsinfo.labelMatrix(i, grd_examtrnsinfo.colRef("rsrvdt")));
  662. model.makeValue(prtNode + "[" + cnt + "]/examroom" , grd_examtrnsinfo.labelMatrix(i, grd_examtrnsinfo.colRef("examroom")));
  663. model.makeValue(prtNode + "[" + cnt + "]/prcpnm" , grd_examtrnsinfo.labelMatrix(i, grd_examtrnsinfo.colRef("prcpnm")));
  664. model.makeValue(prtNode + "[" + cnt + "]/prcpdelivefact" , grd_examtrnsinfo.labelMatrix(i, grd_examtrnsinfo.colRef("prcpdelivefact")));
  665. model.makeValue(prtNode + "[" + cnt + "]/nrrmk" , grd_examtrnsinfo.labelMatrix(i, grd_examtrnsinfo.colRef("nrrmk")));
  666. model.makeValue(prtNode + "[" + cnt + "]/nrdt" , grd_examtrnsinfo.labelMatrix(i, grd_examtrnsinfo.colRef("nrdt")));
  667. model.makeValue(prtNode + "[" + cnt + "]/nrid" , grd_examtrnsinfo.labelMatrix(i, grd_examtrnsinfo.colRef("nrid")));
  668. model.makeValue(prtNode + "[" + cnt + "]/nrtel" , grd_examtrnsinfo.labelMatrix(i, grd_examtrnsinfo.colRef("nrtel")));
  669. model.makeValue(prtNode + "[" + cnt + "]/examrmrmk" , grd_examtrnsinfo.labelMatrix(i, grd_examtrnsinfo.colRef("examrmrmk")));
  670. model.makeValue(prtNode + "[" + cnt + "]/examrmdt" , grd_examtrnsinfo.labelMatrix(i, grd_examtrnsinfo.colRef("examrmdt")));
  671. model.makeValue(prtNode + "[" + cnt + "]/examrmid" , grd_examtrnsinfo.labelMatrix(i, grd_examtrnsinfo.colRef("examrmid")));
  672. model.makeValue(prtNode + "[" + cnt + "]/examrmtel" , grd_examtrnsinfo.labelMatrix(i, grd_examtrnsinfo.colRef("examrmtel")));
  673. model.makeValue(prtNode + "[" + cnt + "]/nrckdt" , grd_examtrnsinfo.labelMatrix(i, grd_examtrnsinfo.colRef("nrckdt")));
  674. model.makeValue(prtNode + "[" + cnt + "]/nrckid" , grd_examtrnsinfo.labelMatrix(i, grd_examtrnsinfo.colRef("nrckid")));
  675. model.makeValue(prtNode + "[" + cnt + "]/fstrgstdt" , grd_examtrnsinfo.labelMatrix(i, grd_examtrnsinfo.colRef("fstrgstdt")));
  676. model.makeValue(prtNode + "[" + cnt + "]/indd" , grd_examtrnsinfo.labelMatrix(i, grd_examtrnsinfo.colRef("indd")));
  677. model.makeValue(prtNode + "[" + cnt + "]/cretno" , grd_examtrnsinfo.labelMatrix(i, grd_examtrnsinfo.colRef("cretno")));
  678. model.makeValue(prtNode + "[" + cnt + "]/prcpdd" , grd_examtrnsinfo.labelMatrix(i, grd_examtrnsinfo.colRef("prcpdd")));
  679. model.makeValue(prtNode + "[" + cnt + "]/prcpno" , grd_examtrnsinfo.labelMatrix(i, grd_examtrnsinfo.colRef("prcpno")));
  680. model.makeValue(prtNode + "[" + cnt + "]/prcphistno" , grd_examtrnsinfo.labelMatrix(i, grd_examtrnsinfo.colRef("prcphistno")));
  681. model.makeValue(prtNode + "[" + cnt + "]/sex" , grd_examtrnsinfo.labelMatrix(i, grd_examtrnsinfo.colRef("sex")));
  682. model.makeValue(prtNode + "[" + cnt + "]/brthdd" , grd_examtrnsinfo.labelMatrix(i, grd_examtrnsinfo.colRef("brthdd")));
  683. model.makeValue(prtNode + "[" + cnt + "]/seqno" , grd_examtrnsinfo.labelMatrix(i, grd_examtrnsinfo.colRef("seqno")));
  684. model.makeValue(prtNode + "[" + cnt + "]/execdd" , grd_examtrnsinfo.labelMatrix(i, grd_examtrnsinfo.colRef("execdd")));
  685. model.makeValue(prtNode + "[" + cnt + "]/prcpexecdeptcd", grd_examtrnsinfo.labelMatrix(i, grd_examtrnsinfo.colRef("prcpexecdeptcd")));
  686. model.makeValue(prtNode + "[" + cnt + "]/rsrvyn" , grd_examtrnsinfo.labelMatrix(i, grd_examtrnsinfo.colRef("rsrvyn")));
  687. cnt++;
  688. }
  689. }
  690. exeReportPreview("RPMNW15000", "XMLSTR");
  691. } else {
  692. }
  693. ]]>
  694. </script>
  695. </button>
  696. <button id="button6" class="btn2_letter3" style="left:1025px; top:140px; width:53px; height:19px; font-family:굴림; ">
  697. <caption>행삭제</caption>
  698. <script type="javascript" ev:event="DOMActivate">
  699. <![CDATA[
  700. var xPathExamTrnsList = "/root/main/examtrnsinfo/examtrnslist";
  701. if ( model.getValue(xPathExamTrnsList+"[" + grd_examtrnsinfo.row + "]/fstrgstdt") != "") {
  702. grd_examtrnsinfo.addStatus(grd_examtrnsinfo.row, "delete");
  703. } else {
  704. grd_examtrnsinfo.deleteItem(grd_examtrnsinfo.row);
  705. }
  706. ]]>
  707. </script>
  708. </button>
  709. <button id="button7" class="btn2_letter3" style="left:969px; top:140px; width:53px; height:19px; font-family:굴림; ">
  710. <caption>행추가</caption>
  711. <script type="javascript" ev:event="DOMActivate">
  712. <![CDATA[
  713. var pid = model.getValue("/root/main/cond/pid");
  714. var instcd = model.getValue("/root/main/examtrnsinfo/patserchinfolist/instcd");
  715. if(pid == "") {
  716. messageBox("환자를 선택해주십시오.", "I");
  717. return;
  718. }
  719. if(instcd == "") {
  720. messageBox("해당 환자의 정보가 없습니다.", "I");
  721. return;
  722. }
  723. if (grd_examtrnsinfo.rows > 1 ){
  724. grd_examtrnsinfo.insertRow(1, "above");
  725. }else if (grd_examtrnsinfo.rows == 1 ){
  726. grd_examtrnsinfo.addRow(true, true);
  727. }
  728. grd_examtrnsinfo.valuematrix(grd_examtrnsinfo.row, grd_examtrnsinfo.colRef("rsrvyn")) = 'N';
  729. grd_examtrnsinfo.valuematrix(grd_examtrnsinfo.row, grd_examtrnsinfo.colRef("instcd")) = model.getValue("/root/main/examtrnsinfo/patserchinfolist/instcd");
  730. grd_examtrnsinfo.valuematrix(grd_examtrnsinfo.row, grd_examtrnsinfo.colRef("cretno")) = model.getValue("/root/main/examtrnsinfo/patserchinfolist/cretno");
  731. grd_examtrnsinfo.valuematrix(grd_examtrnsinfo.row, grd_examtrnsinfo.colRef("indd")) = model.getValue("/root/main/examtrnsinfo/patserchinfolist/indd");
  732. grd_examtrnsinfo.valuematrix(grd_examtrnsinfo.row, grd_examtrnsinfo.colRef("wardcd")) = model.getValue("/root/main/examtrnsinfo/patserchinfolist/wardcd");
  733. grd_examtrnsinfo.valuematrix(grd_examtrnsinfo.row, grd_examtrnsinfo.colRef("roomcd")) = model.getValue("/root/main/examtrnsinfo/patserchinfolist/roomcd");
  734. grd_examtrnsinfo.valuematrix(grd_examtrnsinfo.row, grd_examtrnsinfo.colRef("pid")) = model.getValue("/root/main/examtrnsinfo/patserchinfolist/pid");
  735. grd_examtrnsinfo.valuematrix(grd_examtrnsinfo.row, grd_examtrnsinfo.colRef("patnm")) = model.getValue("/root/main/examtrnsinfo/patserchinfolist/patnm");
  736. grd_examtrnsinfo.valuematrix(grd_examtrnsinfo.row, grd_examtrnsinfo.colRef("sexage")) = model.getValue("/root/main/examtrnsinfo/patserchinfolist/sexage");
  737. grd_examtrnsinfo.valuematrix(grd_examtrnsinfo.row, grd_examtrnsinfo.colRef("sex")) = model.getValue("/root/main/examtrnsinfo/patserchinfolist/sex");
  738. grd_examtrnsinfo.valuematrix(grd_examtrnsinfo.row, grd_examtrnsinfo.colRef("brthdd")) = model.getValue("/root/main/examtrnsinfo/patserchinfolist/brthdd");
  739. grd_examtrnsinfo.valuematrix(grd_examtrnsinfo.row, grd_examtrnsinfo.colRef("prcpexecdeptcd")) = model.getValue("/root/main/cond/deptcd");
  740. ]]>
  741. </script>
  742. </button>
  743. <button id="button8" class="btn2_letter4" disabled="true" style="left:1126px; top:140px; width:64px; height:19px; font-family:굴림; ">
  744. <caption>간호확인</caption>
  745. <script type="javascript" ev:event="DOMActivate">
  746. <![CDATA[
  747. var data = "" ;
  748. var xCertCpapListPath = "/root/main/examtrnsinfo/examtrnslist";
  749. for(var i = 0 ; i < grd_examtrnsinfo.rows;i++) {
  750. if(model.getValue("/root/main/cond/multicheck") == "true"){
  751. data = grd_examtrnsinfo.getupdatedataAll("i")
  752. }else if(model.getValue(xCertCpapListPath + "[" + i + "]/chkyn") == "Y"){
  753. data = getGridUpdateData(grd_examtrnsinfo);
  754. }
  755. }
  756. if(data == "") {
  757. messageBox("선택된 내역이", "I004");
  758. return;
  759. }
  760. model.makeValue("/root/send/savedata/examtrnslist", data);
  761. submit("TXMNW15100");
  762. fSearch() ;
  763. ]]>
  764. </script>
  765. </button>
  766. <select id="checkbox2" ref="/root/main/cond/exceptflag2" overflow="visible" appearance="full" style="left:145px; top:100px; width:140px; height:13px; font-family:굴림; border-style:none; ">
  767. <choices>
  768. <item>
  769. <label>최종확인완료건 제외</label>
  770. <value>Y</value>
  771. </item>
  772. </choices>
  773. </select>
  774. <button id="button9" class="btn2_letter6" style="left:879px; top:140px; width:86px; height:19px; font-family:굴림; ">
  775. <caption>처방 당겨오기</caption>
  776. <script type="javascript" ev:event="DOMActivate">
  777. <![CDATA[
  778. var pid = model.getValue("/root/main/cond/pid");
  779. var instcd = model.getValue("/root/main/examtrnsinfo/patserchinfolist/instcd");
  780. if(pid == "") {
  781. messageBox("환자를 선택해주십시오.", "I");
  782. return;
  783. }
  784. if(instcd == "") {
  785. messageBox("해당 환자의 정보가 없습니다.", "I");
  786. return;
  787. }
  788. setParameter("SMMNW15100_PARAM1", pid);
  789. modal("SPMNW15200","1", "400", "400");
  790. model.copyNode("/root/main/examtrnsinfo2","/root/tmp");
  791. var cnt = getNodesetCount("/root/main/examtrnsinfo2/examtrnslist");
  792. var row1 = 1;
  793. if (cnt ==1){
  794. grd_examtrnsinfo.addRow();
  795. grd_examtrnsinfo.valuematrix(grd_examtrnsinfo.row, grd_examtrnsinfo.colRef("rsrvyn")) = 'Y';
  796. grd_examtrnsinfo.valuematrix(grd_examtrnsinfo.row, grd_examtrnsinfo.colRef("wardcd")) = model.getValue("/root/main/examtrnsinfo2/examtrnslist/wardcd");
  797. grd_examtrnsinfo.valuematrix(grd_examtrnsinfo.row, grd_examtrnsinfo.colRef("roomcd")) = model.getValue("/root/main/examtrnsinfo2/examtrnslist/roomcd");
  798. grd_examtrnsinfo.valuematrix(grd_examtrnsinfo.row, grd_examtrnsinfo.colRef("pid")) = model.getValue("/root/main/examtrnsinfo2/examtrnslist/pid");
  799. grd_examtrnsinfo.valuematrix(grd_examtrnsinfo.row, grd_examtrnsinfo.colRef("patnm")) = model.getValue("/root/main/examtrnsinfo2/examtrnslist/patnm");
  800. grd_examtrnsinfo.valuematrix(grd_examtrnsinfo.row, grd_examtrnsinfo.colRef("sexage")) = model.getValue("/root/main/examtrnsinfo2/examtrnslist/sexage");
  801. grd_examtrnsinfo.valuematrix(grd_examtrnsinfo.row, grd_examtrnsinfo.colRef("rsrvdt")) = model.getValue("/root/main/examtrnsinfo2/examtrnslist/rsrvdt");
  802. grd_examtrnsinfo.valuematrix(grd_examtrnsinfo.row, grd_examtrnsinfo.colRef("examroom")) = model.getValue("/root/main/examtrnsinfo2/examtrnslist/examroom");
  803. grd_examtrnsinfo.valuematrix(grd_examtrnsinfo.row, grd_examtrnsinfo.colRef("prcpnm")) = model.getValue("/root/main/examtrnsinfo2/examtrnslist/prcpnm");
  804. grd_examtrnsinfo.valuematrix(grd_examtrnsinfo.row, grd_examtrnsinfo.colRef("prcpdelivefact")) = model.getValue("/root/main/examtrnsinfo2/examtrnslist/prcpdelivefact");
  805. grd_examtrnsinfo.valuematrix(grd_examtrnsinfo.row, grd_examtrnsinfo.colRef("prcpexecdeptcd")) = model.getValue("/root/main/examtrnsinfo2/examtrnslist/prcpexecdeptcd");
  806. grd_examtrnsinfo.valuematrix(grd_examtrnsinfo.row, grd_examtrnsinfo.colRef("execdd")) = model.getValue("/root/main/examtrnsinfo2/examtrnslist/execdd");
  807. grd_examtrnsinfo.valuematrix(grd_examtrnsinfo.row, grd_examtrnsinfo.colRef("sex")) = model.getValue("/root/main/examtrnsinfo2/examtrnslist/sex");
  808. grd_examtrnsinfo.valuematrix(grd_examtrnsinfo.row, grd_examtrnsinfo.colRef("brthdd")) = model.getValue("/root/main/examtrnsinfo2/examtrnslist/brthdd");
  809. grd_examtrnsinfo.valuematrix(grd_examtrnsinfo.row, grd_examtrnsinfo.colRef("indd")) = model.getValue("/root/main/examtrnsinfo2/examtrnslist/indd");
  810. grd_examtrnsinfo.valuematrix(grd_examtrnsinfo.row, grd_examtrnsinfo.colRef("cretno")) = model.getValue("/root/main/examtrnsinfo2/examtrnslist/cretno");
  811. grd_examtrnsinfo.valuematrix(grd_examtrnsinfo.row, grd_examtrnsinfo.colRef("prcpdd")) = model.getValue("/root/main/examtrnsinfo2/examtrnslist/prcpdd");
  812. grd_examtrnsinfo.valuematrix(grd_examtrnsinfo.row, grd_examtrnsinfo.colRef("prcpno")) = model.getValue("/root/main/examtrnsinfo2/examtrnslist/prcpno");
  813. grd_examtrnsinfo.valuematrix(grd_examtrnsinfo.row, grd_examtrnsinfo.colRef("prcphistno")) = model.getValue("/root/main/examtrnsinfo2/examtrnslist/prcphistno");
  814. }else if(cnt > 1){
  815. for(var i = 1; i <= cnt ; i++ ){
  816. grd_examtrnsinfo.addRow();
  817. grd_examtrnsinfo.valuematrix(grd_examtrnsinfo.row, grd_examtrnsinfo.colRef("rsrvyn")) = 'Y';
  818. grd_examtrnsinfo.valuematrix(grd_examtrnsinfo.row, grd_examtrnsinfo.colRef("wardcd")) = grd_examtrnsinfo2.valuematrix(i, grd_examtrnsinfo2.colRef("wardcd"));
  819. grd_examtrnsinfo.valuematrix(grd_examtrnsinfo.row, grd_examtrnsinfo.colRef("roomcd")) = grd_examtrnsinfo2.valuematrix(i, grd_examtrnsinfo2.colRef("roomcd"));
  820. grd_examtrnsinfo.valuematrix(grd_examtrnsinfo.row, grd_examtrnsinfo.colRef("pid")) = grd_examtrnsinfo2.valuematrix(i, grd_examtrnsinfo2.colRef("pid"));
  821. grd_examtrnsinfo.valuematrix(grd_examtrnsinfo.row, grd_examtrnsinfo.colRef("patnm")) = grd_examtrnsinfo2.valuematrix(i, grd_examtrnsinfo2.colRef("patnm"));
  822. grd_examtrnsinfo.valuematrix(grd_examtrnsinfo.row, grd_examtrnsinfo.colRef("sexage")) = grd_examtrnsinfo2.valuematrix(i, grd_examtrnsinfo2.colRef("sexage"));
  823. grd_examtrnsinfo.valuematrix(grd_examtrnsinfo.row, grd_examtrnsinfo.colRef("rsrvdt")) = grd_examtrnsinfo2.valuematrix(i, grd_examtrnsinfo2.colRef("rsrvdt"));
  824. grd_examtrnsinfo.valuematrix(grd_examtrnsinfo.row, grd_examtrnsinfo.colRef("examroom")) = grd_examtrnsinfo2.valuematrix(i, grd_examtrnsinfo2.colRef("examroom"));
  825. grd_examtrnsinfo.valuematrix(grd_examtrnsinfo.row, grd_examtrnsinfo.colRef("prcpnm")) = grd_examtrnsinfo2.valuematrix(i, grd_examtrnsinfo2.colRef("prcpnm"));
  826. grd_examtrnsinfo.valuematrix(grd_examtrnsinfo.row, grd_examtrnsinfo.colRef("prcpdelivefact")) = grd_examtrnsinfo2.valuematrix(i, grd_examtrnsinfo2.colRef("prcpdelivefact"));
  827. grd_examtrnsinfo.valuematrix(grd_examtrnsinfo.row, grd_examtrnsinfo.colRef("prcpexecdeptcd")) = grd_examtrnsinfo2.valuematrix(i, grd_examtrnsinfo2.colRef("prcpexecdeptcd"));
  828. grd_examtrnsinfo.valuematrix(grd_examtrnsinfo.row, grd_examtrnsinfo.colRef("execdd")) = grd_examtrnsinfo2.valuematrix(i, grd_examtrnsinfo2.colRef("execdd"));
  829. grd_examtrnsinfo.valuematrix(grd_examtrnsinfo.row, grd_examtrnsinfo.colRef("sex")) = grd_examtrnsinfo2.valuematrix(i, grd_examtrnsinfo2.colRef("sex"));
  830. grd_examtrnsinfo.valuematrix(grd_examtrnsinfo.row, grd_examtrnsinfo.colRef("brthdd")) = grd_examtrnsinfo2.valuematrix(i, grd_examtrnsinfo2.colRef("brthdd"));
  831. grd_examtrnsinfo.valuematrix(grd_examtrnsinfo.row, grd_examtrnsinfo.colRef("indd")) = grd_examtrnsinfo2.valuematrix(i, grd_examtrnsinfo2.colRef("indd"));
  832. grd_examtrnsinfo.valuematrix(grd_examtrnsinfo.row, grd_examtrnsinfo.colRef("cretno")) = grd_examtrnsinfo2.valuematrix(i, grd_examtrnsinfo2.colRef("cretno"));
  833. grd_examtrnsinfo.valuematrix(grd_examtrnsinfo.row, grd_examtrnsinfo.colRef("prcpdd")) = grd_examtrnsinfo2.valuematrix(i, grd_examtrnsinfo2.colRef("prcpdd"));
  834. grd_examtrnsinfo.valuematrix(grd_examtrnsinfo.row, grd_examtrnsinfo.colRef("prcpno")) = grd_examtrnsinfo2.valuematrix(i, grd_examtrnsinfo2.colRef("prcpno"));
  835. grd_examtrnsinfo.valuematrix(grd_examtrnsinfo.row, grd_examtrnsinfo.colRef("prcphistno")) = grd_examtrnsinfo2.valuematrix(i, grd_examtrnsinfo2.colRef("prcphistno"));
  836. }
  837. }
  838. model.removeNodeset("/root/tmp");
  839. model.makeNode("/root/tmp");
  840. model.refresh();
  841. ]]>
  842. </script>
  843. </button>
  844. <bool id="bool1" navindex="19" ref="/root/main/cond/multicheck" style="left:22px; top:165px; width:20px; height:30px; font-family:굴림; ">
  845. <script type="javascript" ev:event="xforms-value-changed">
  846. <![CDATA[
  847. var multicheck = model.getValue("/root/main/cond/multicheck");
  848. var xCertCpapListPath = "/root/main/examtrnsinfo/examtrnslist";
  849. var nodeCnt = getNodesetCount(xCertCpapListPath);
  850. for(var i = 1; i <= nodeCnt; i++){
  851. if(multicheck == "true"){
  852. model.setValue(xCertCpapListPath + "[" + i + "]/chkyn", "Y");
  853. }else{
  854. model.setValue(xCertCpapListPath + "[" + i + "]/chkyn", "N");
  855. }
  856. }
  857. ]]>
  858. </script>
  859. </bool>
  860. </group>
  861. </xhtml:body>
  862. </xhtml:html>