SMMNO02600_외래 진찰료 마감.xrw 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/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. <orddeptcd/>
  12. <orddrid/>
  13. <execflag>Y</execflag>
  14. <ordclsdeptflag/>
  15. <supdeptcd/>
  16. <orddrnm/>
  17. <fromdd/>
  18. <todd/>
  19. <stat>-</stat>
  20. </cond>
  21. <dracptinfo>
  22. <dracptlist>
  23. <ordtm/>
  24. <pid/>
  25. <hngnm/>
  26. <sexage/>
  27. <fsexamflag/>
  28. <rsrvflag/>
  29. <stat/>
  30. <endtd/>
  31. <orddeptcd/>
  32. <orddrid/>
  33. <orddd/>
  34. <nursacptyn/>
  35. <dracptyn/>
  36. <prcpgenryn/>
  37. <ordtype/>
  38. <cretno/>
  39. <instcd/>
  40. <acptseqno/>
  41. <etcordflag/>
  42. <enddd/>
  43. <endtm/>
  44. <ndstat/>
  45. <acptno/>
  46. <dracptdd/>
  47. <dracpttm/>
  48. <acptyn/>
  49. <centcd/>
  50. <subdeptcd/>
  51. <subdeptnm/>
  52. </dracptlist>
  53. </dracptinfo>
  54. </main>
  55. <send/>
  56. <init>
  57. <orddept>
  58. <dept/>
  59. </orddept>
  60. <orddr>
  61. <orddr>
  62. <usernm/>
  63. <userid/>
  64. </orddr>
  65. <orddrlist>
  66. <usernm/>
  67. <userid/>
  68. </orddrlist>
  69. </orddr>
  70. <depttret>
  71. <depttret>
  72. <deptcd/>
  73. <tret/>
  74. </depttret>
  75. </depttret>
  76. </init>
  77. <tmp>
  78. <selecteddrid/>
  79. </tmp>
  80. </root>
  81. </instance>
  82. <script type="javascript" ev:event="xforms-ready">
  83. <![CDATA[
  84. var dt = getCurrentDate();
  85. var instcd = getUserInfo("dutplceinstcd");
  86. var rslt_ref = "/root/init/orddept";
  87. var sort_field = "depthngnm";
  88. var sort_method = "asc";
  89. if (opener.javascript.getParameter("orddd") != "") {
  90. model.setValue("/root/main/cond/fromdd", opener.javascript.getParameter("orddd"));
  91. model.setValue("/root/main/cond/todd", opener.javascript.getParameter("orddd"));
  92. //zbcfGetDeptCodeList(getUserInfo("dutplceinstcd"), "rcptuseyn", "X", "/root/init/orddept", "depthngnm", "asc"); //부서코드 콤보조회
  93. //zsdfGetOutOrdDeptList( instcd, rslt_ref, sort_field, sort_method, dt );
  94. // 간호외래진료부서콤보 (특정하위부서를 포함- 분만실, 육아상담실, 인공신장실)
  95. zsdfGetCareOutOrderDepartmentList(instcd, rslt_ref, dt);
  96. cmb_orddept.value = opener.javascript.getParameter("orddeptcd");
  97. }else{
  98. model.setValue("/root/main/cond/fromdd", getCurrentDate());
  99. model.setValue("/root/main/cond/todd", getCurrentDate());
  100. //zbcfGetDeptCodeList(getUserInfo("dutplceinstcd"), "rcptuseyn", "X", "/root/init/orddept", "depthngnm", "asc"); //부서코드 콤보조회
  101. //zsdfGetOutOrdDeptList( instcd, rslt_ref, sort_field, sort_method, dt );
  102. // 간호외래진료부서콤보 (특정하위부서를 포함- 분만실, 육아상담실, 인공신장실)
  103. zsdfGetCareOutOrderDepartmentList(instcd, rslt_ref, dt);
  104. model.setValue("/root/main/cond/orddeptcd", getUserInfo("dutplcecd"));
  105. }
  106. addComboInstance("/root/init/orddept" , "deptcd^depthngnm", "-^전체", "dept"); //부서콤보 전체항목 추가
  107. // 간호하드코딩 테이블 조회_20090603(kys)-서울성모기관코드조회
  108. var pCode = "'079'"; // 조회할 CdGrupID 코드정보
  109. var pDate = getCurrentDate(); //조회기준일자
  110. fGetNursHardCdInfo(pCode, pDate);
  111. for(i=1; i<=getNodesetCount("/root/code/codeinfo/codelist"); i++){
  112. switch (model.getValue("/root/code/codeinfo/codelist["+i+"]/cdgrupid")){
  113. case "079": // 서울성모기관코드(주사실에서 등록한 코드를 사용함-20090602)
  114. Seoulinstcd = model.getValue("/root/code/codeinfo/codelist["+i+"]/cdid");
  115. break;
  116. }
  117. }
  118. //model.setValue("/root/main/cond/orddeptcd", "2010600000");
  119. fOrddr();
  120. //model.setValue("/root/main/cond/orddrid", getUserId());
  121. //model.setValue("/root/main/cond/orddrid", "91620025");
  122. //20090805-kys(그리드 상단 컬럼 전체 체크박스)
  123. grd_dracptlist.fixedcellcheckbox(0,1) = true;
  124. model.refresh();
  125. // fSearch();
  126. ]]>
  127. </script>
  128. <script type="javascript">
  129. <![CDATA[
  130. var Seoulinstcd; //서울성모병원 기관코드추가(진찰료마감조회기준변경으로 수정)-20090603
  131. function fSearch() {
  132. //진료의 조회시 전체선택박스 체크 해제-20090825-kys
  133. grd_dracptlist.fixedcellischeck(0,1) = false;
  134. grd_dracptlist.rebuildStyle();
  135. model.removeNodeset("/root/main/dracptinfo");
  136. model.removeNodeset("/root/send");
  137. model.makeNode("/root/send");
  138. model.makeValue("/root/send/fromdd" , model.getValue("/root/main/cond/fromdd"));
  139. model.makeValue("/root/send/todd" , model.getValue("/root/main/cond/todd"));
  140. model.makeValue("/root/send/orddeptcd" , model.getValue("/root/main/cond/orddeptcd"));
  141. model.makeValue("/root/send/orddrid" , model.getValue("/root/main/cond/orddrid"));
  142. model.makeValue("/root/send/execflag" , model.getValue("/root/main/cond/execflag"));
  143. model.makeValue("/root/send/ordclsdeptflag" , model.getValue("/root/main/cond/ordclsdeptflag"));
  144. model.makeValue("/root/send/stat" , model.getValue("/root/main/cond/stat"));
  145. if(model.getValue("/root/main/cond/ordclsdeptflag") != "C"){
  146. model.makeValue("/root/send/supdeptcd" , model.getValue("/root/main/cond/supdeptcd"));
  147. }else{
  148. model.makeValue("/root/send/supdeptcd" , model.getValue("/root/init/orddr/orddr[usernm = '" + model.getValue("/root/main/cond/orddrnm") + "']/deptcd") );
  149. }
  150. //8개병원 공통블로킹 처리(진찰료미마감,외래선처치마감)_20090707_SMY
  151. // if(Seoulinstcd == getUserInfo('dutplceinstcd')){//20090603-서울성모만 반영
  152. model.makeValue("/root/send/applyyn" , "Y");
  153. /*
  154. }else{
  155. model.makeValue("/root/send/applyyn" , "N");
  156. }
  157. */
  158. submit("TRMNO02601");
  159. for(i=1 ; i < grd_dracptlist.rows ; i++ ){
  160. grd_dracptlist.isReadOnly(i, 12) = true; //20090805-kys선택추가로 인한 인덱스변경 6->8->12
  161. ndstat = model.getValue("/root/main/dracptinfo/dracptlist[" + i + "]/ndstat");
  162. if( ndstat == "NN" ){
  163. grd_dracptlist.rowStyle(i, "data", "background-color") = "#ff7f50";
  164. //grd_dracptlist.rowStyle(i, "data", "background-color") = "#fffd700";
  165. }else if( ndstat == "YN" ){
  166. if(model.getValue("/root/main/dracptinfo/dracptlist[" + i + "]/earnendyn") == "2"){ //간호접수를 진료부도로 수정 후 마감해도 간호접수로 조회되는 오류로 인하여 earnendyn으로 값 체크하여 조회되도록 수정_20091130_SMY
  167. grd_dracptlist.rowStyle(i, "data", "background-color") = "#ff7f50";
  168. }else{
  169. grd_dracptlist.rowStyle(i, "data", "background-color") = "#fffd700";
  170. grd_dracptlist.isReadOnly(i, 12) = false; //20090805-kys선택추가로 인한 인덱스변경 6->8->12
  171. }
  172. }
  173. //마감후 조회시 선택박스 비활성화-20090825-kys
  174. if(model.getValue("/root/main/dracptinfo/dracptlist["+i+"]/endtd") !=""){
  175. grd_dracptlist.isReadOnly(i, grd_dracptlist.colRef("acptyn")) = true;
  176. } else {
  177. grd_dracptlist.isReadOnly(i, grd_dracptlist.colRef("acptyn")) = false;
  178. }
  179. }
  180. }
  181. function fOrddr() {
  182. model.removeNodeset("/root/main/dracptinfo");
  183. caption2.attribute("text") = "";
  184. model.removeNodeset("/root/send");
  185. model.makeNode("/root/send");
  186. model.makeValue("/root/send/orddd" , model.getValue("/root/main/cond/todd"));
  187. model.makeValue("/root/send/orddeptcd" , model.getValue("/root/main/cond/orddeptcd"));
  188. model.makeValue("/root/send/prcpspecflag" ,"Y");
  189. var sordclsdeptflag = model.getValue("/root/init/orddept/dept[deptcd = '"+model.getValue("/root/main/cond/orddeptcd")+"']/ordclsdeptflag"); // 센터/대표/분과/서브 구분
  190. var sorddeptkind = model.getValue("/root/init/orddept/dept[deptcd = '"+model.getValue("/root/main/cond/orddeptcd")+"']/orddeptkind"); // 센터/대표 구분
  191. var ssupdeptcd = model.getValue("/root/init/orddept/dept[deptcd = '"+model.getValue("/root/main/cond/orddeptcd")+"']/supdeptcd"); // 상위부서코드
  192. var sorddeptflag = "";
  193. var captiontext = ""; //진찰료마감여부텍스트추가-20091113-kys
  194. if (sorddeptkind == "C") { // 센터이면
  195. sorddeptflag = "C";
  196. //} else if (sorddeptkind != "C" && sordclsdeptflag == "A") { // 센터가 아니면서 분과이면
  197. // sorddeptflag = "A";
  198. } else { // 그외에 기타과
  199. sorddeptflag = "etc";
  200. }
  201. model.setValue("/root/main/cond/ordclsdeptflag",sorddeptflag);
  202. model.setValue("/root/main/cond/supdeptcd",ssupdeptcd);
  203. model.makeValue("/root/send/ordclsdeptflag", model.getValue("/root/main/cond/ordclsdeptflag"));
  204. model.makeValue("/root/send/supdeptcd", model.getValue("/root/main/cond/supdeptcd"));
  205. //alert("Seoulinstcd : " + Seoulinstcd);
  206. //8개병원 공통블로킹 처리(진찰료미마감,외래선처치마감)_20090707_SMY
  207. //if(Seoulinstcd == getUserInfo('dutplceinstcd')){//20090603-서울성모만 반영
  208. model.makeValue("/root/send/applyyn" , "Y");
  209. /*
  210. }else{
  211. model.makeValue("/root/send/applyyn" , "N");
  212. }
  213. */
  214. submit("TRMNO02603");
  215. //센터인경우 여러개의 과가 조회되어 마감중인데도 마감완료로 나옴(첫줄 셋팅됨)-20091112-kys
  216. captiontext = model.getValue("/root/init/depttret/depttret/tret")
  217. for(i = 1;i<=getNodesetCount("/root/init/depttret/depttret/tret");i++){
  218. if(model.getValue("/root/init/depttret/depttret[" + i + "]/tret") == "(마감중)"){
  219. captiontext = "(마감중)";
  220. break;
  221. }
  222. }
  223. //caption2.attribute("text") = model.getValue("/root/init/depttret/depttret/tret");
  224. caption2.attribute("text") = captiontext;
  225. submit("TRMNO02602");
  226. if(getNodesetCount("/root/init/orddr/orddr") > 0){ //진료의콤보 전체추가-20091102-kys
  227. addComboInstance("/root/init/orddr", "usernm^userid^deptcd", "전체의사^00000000^0000000000", "orddr");
  228. model.resetInstanceNode("/root/main/cond/orddrid");
  229. } else {
  230. model.makeValue("/root/init/orddr/orddr/usernm", "전체의사");
  231. model.makeValue("/root/init/orddr/orddr/userid", "00000000");
  232. model.makeValue("/root/init/orddr/orddr/deptcd", "0000000000");
  233. }
  234. model.setValue("/root/main/cond/orddrid", "00000000");
  235. //cmb_orddrid.select(0);
  236. model.refresh();
  237. }
  238. function addComboInstance(combopath, nodename, nodeval, parentnode){
  239. nodename = nodename.split("^");
  240. nodeval = nodeval.split("^");
  241. if(nodename.length != nodeval.length){
  242. return;
  243. }
  244. var label = model.instances(0).createElement(nodename[0]);
  245. var val = model.instances(0).createElement(nodename[1]);
  246. var val2 = model.instances(0).createElement(nodename[2]);
  247. var combo = model.instances(0).createElement(parentnode);
  248. label.value = "" + nodeval[0] + "";
  249. val.value = "" + nodeval[1] + "";
  250. val2.value = "" + nodeval[2] + "";
  251. combo.appendChild(label);
  252. combo.appendChild(val);
  253. combo.appendChild(val2);
  254. chkNode = model.instances(0).selectSingleNode(combopath);
  255. if(chkNode == null){
  256. model.makeNode(combopath);
  257. srcNode = model.instances(0).selectSingleNode(combopath);
  258. }else{
  259. srcNode = model.instances(0).selectSingleNode(combopath);
  260. }
  261. desNode = model.instances(0).selectSingleNode(combopath + "/" + parentnode);
  262. srcNode.insertBefore(combo, desNode);
  263. model.refresh();
  264. }
  265. ]]>
  266. </script>
  267. <submission id="TRMNO02601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/dracptlist"/>
  268. <submission id="TRMNO02602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/orddr"/>
  269. <submission id="TRMNO02603" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/depttret"/>
  270. <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" resultref="/root/hidden/orddeptlist/dept"/>
  271. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  272. <submission id="TXMNO02601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/indate" resultref="/root/temp/rslt"/>
  273. <submission id="TRZSD00206" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  274. <submission id="TRMNW00001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/code/codelist"/>
  275. </model>
  276. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  277. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  278. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  279. <script type="javascript" src="../../../emr/carecomweb/js/CareCom.js"/>
  280. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  281. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  282. </xhtml:head>
  283. <xhtml:body guideline="1,1194;1,5;1,1195;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  284. <group id="group3" style="left:0px; top:18px; width:1194px; height:744px; ">
  285. <group id="grp_sea" style="left:3px; top:1px; width:1189px; height:59px; vertical-align:top; ">
  286. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1187px; height:55px; "/>
  287. <caption id="cap_ward" class="search_name" style="left:282px; top:9px; width:73px; height:17px; ">진료과</caption>
  288. <button id="button1" class="btn1_letter2" navindex="5" style="left:1125px; top:16px; width:56px; height:22px; ">
  289. <caption>조회</caption>
  290. <script type="javascript" ev:event="DOMActivate">
  291. <![CDATA[
  292. fSearch();
  293. ]]>
  294. </script>
  295. </button>
  296. <caption id="caption8" class="search_name" style="left:6px; top:9px; width:86px; height:17px; ">진료일자</caption>
  297. <input id="input5" ref="/root/main/cond/fromdd" class="input_search" navindex="3" inputtype="date" style="left:88px; top:8px; width:85px; height:19px; ">
  298. <script type="javascript" ev:event="xforms-value-changed">
  299. <![CDATA[
  300. model.removeNodeset("/root/main/dracptinfo");
  301. caption2.attribute("text") = "";
  302. model.setValue("/root/main/cond/todd", model.getValue("/root/main/cond/fromdd"));
  303. model.refresh();
  304. ]]>
  305. </script>
  306. </input>
  307. <caption id="caption10" class="search_name" style="left:815px; top:9px; width:56px; height:17px; ">구분:</caption>
  308. <line id="line13" class="line_4" style="x1:1114px; y1:6px; x2:1114px; y2:49px; "/>
  309. <select1 id="cmb_orddept" ref="/root/main/cond/orddeptcd" class="combo_s_essential" navindex="2" appearance="minimal" style="left:352px; top:8px; width:133px; height:19px; ">
  310. <choices>
  311. <itemset nodeset="/root/init/orddept/dept">
  312. <label ref="depthngnm"/>
  313. <value ref="deptcd"/>
  314. </itemset>
  315. </choices>
  316. <script type="javascript" ev:event="xforms-value-changed">
  317. <![CDATA[
  318. fOrddr();
  319. ]]>
  320. </script>
  321. </select1>
  322. <select1 id="cmb_orddrid" ref="/root/main/cond/orddrid" class="combo_search" appearance="minimal" style="left:654px; top:8px; width:141px; height:19px; ">
  323. <choices>
  324. <itemset nodeset="/root/init/orddr/orddr">
  325. <label ref="usernm"/>
  326. <value ref="userid"/>
  327. </itemset>
  328. </choices>
  329. <script type="javascript" ev:event="xforms-select">
  330. <![CDATA[
  331. //20090805-kys(마감후 클릭되어 있던 진료의의 마감정보를 조회하기 위해)
  332. //model.setValue("/root/main/cond/orddrid", model.getValue("/root/init/orddr/orddr[usernm = '" + model.getValue("/root/main/cond/orddrnm") + "']/userid"));
  333. //model.setValue("root/tmp/selecteddrid","");
  334. model.setValue("root/tmp/selecteddrid",model.getValue("/root/main/cond/orddrid"));
  335. fSearch();
  336. ]]>
  337. </script>
  338. </select1>
  339. <select1 id="combo1" ref="/root/main/cond/execflag" class="combo_search" appearance="minimal" style="left:872px; top:8px; width:73px; height:19px; ">
  340. <choices>
  341. <item>
  342. <label>전체</label>
  343. <value>A</value>
  344. </item>
  345. <item>
  346. <label>마감전</label>
  347. <value>Y</value>
  348. </item>
  349. <item>
  350. <label>마감후</label>
  351. <value>N</value>
  352. </item>
  353. </choices>
  354. <script type="javascript" ev:event="xforms-value-changed">
  355. <![CDATA[
  356. if(combo1.value == "Y"){
  357. btn_acting.visible = true;
  358. }else {
  359. btn_acting.visible = false;
  360. }
  361. fSearch();
  362. ]]>
  363. </script>
  364. </select1>
  365. <caption id="caption3" class="search_name" style="left:587px; top:9px; width:66px; height:17px; ">진료의</caption>
  366. <caption id="caption2" style="left:489px; top:10px; width:76px; height:17px; font-weight:bold; "/>
  367. <caption id="caption4" style="left:175px; top:10px; width:15px; height:20px; ">~</caption>
  368. <input id="input3" ref="/root/main/cond/todd" class="input" inputtype="date" style="left:190px; top:8px; width:85px; height:19px; ">
  369. <script type="javascript" ev:event="xforms-value-changed">
  370. <![CDATA[
  371. model.removeNodeset("/root/main/dracptinfo");
  372. caption2.attribute("text") = "";
  373. model.refresh();
  374. ]]>
  375. </script>
  376. </input>
  377. <caption id="caption5" class="search_name" style="left:6px; top:32px; width:86px; height:17px; ">진료여부</caption>
  378. <select1 id="radio1" ref="/root/main/cond/stat" class="radio_search" appearance="full" cellspacing="5" cols="5" rows="1" overflow="visible" style="left:90px; top:33px; width:400px; height:20px; border-style:none; ">
  379. <choices>
  380. <item>
  381. <label>전체</label>
  382. <value>-</value>
  383. </item>
  384. <item>
  385. <label>진료부도</label>
  386. <value>0</value>
  387. </item>
  388. <item>
  389. <label>간호접수</label>
  390. <value>1</value>
  391. </item>
  392. <item>
  393. <label>진료종료</label>
  394. <value>2</value>
  395. </item>
  396. <item>
  397. <label>진료부도+간호접수</label>
  398. <value>9</value>
  399. </item>
  400. </choices>
  401. <script type="javascript" ev:event="xforms-value-changed">
  402. <![CDATA[
  403. fSearch();
  404. ]]>
  405. </script>
  406. </select1>
  407. </group>
  408. <caption id="caption1" class="tit_2" style="left:5px; top:73px; width:75px; height:13px; ">진료내역</caption>
  409. <button id="btn_acting" class="btn5_letter2" navindex="6" style="left:1148px; top:68px; width:42px; height:19px; ">
  410. <caption>마감</caption>
  411. <script type="javascript" ev:event="onclick">
  412. <![CDATA[
  413. var chkcnt = 0; //20090825-kys
  414. if(cmb_orddrid.label == "") { //20091102-kys-추가
  415. messageBox("진료의를 선택하지 ","E007");
  416. return;
  417. }
  418. if(getNodesetCount("/root/main/dracptinfo/dracptlist") < 1 ){
  419. messageBox("외래 진찰료 마감 대상내역이","E014");
  420. return;
  421. }
  422. var sCurrentDt = getCurrentDate() + getCurrentTime().substr(0,4);
  423. for (var i =1 ; i < grd_dracptlist.rows ; i++){
  424. if(model.getValue("/root/main/dracptinfo/dracptlist["+i+"]/acptyn") == "true"){
  425. if(model.getValue("/root/main/dracptinfo/dracptlist["+i+"]/ndstat") == "YN"){
  426. messageBox("간호 접수건이 있으면 마감을","E001");
  427. return;
  428. }
  429. var sOrdDt = model.getValue("/root/main/dracptinfo/dracptlist["+i+"]/orddd") + model.getValue("/root/main/dracptinfo/dracptlist["+i+"]/ordtm") ;
  430. if(sOrdDt > sCurrentDt ) { // 현재 시간 이후 예약 마감할수 없도록 추가 2015.11.17 엄영만
  431. messageBox("진료예약 시간이 현재 시간 이후이면 마감을","E001");
  432. return;
  433. }
  434. chkcnt = chkcnt + 1;
  435. }
  436. }
  437. //체크여부 블럭추가-20090825-kys
  438. if(chkcnt == 0){
  439. messageBox("마감할 진료내역이 없습니다. 선택후 진찰료 마감을 해 주십시오.","I");
  440. return;
  441. }
  442. model.removeNodeset("/root/send/indate");
  443. model.makeValue("/root/send/indate",grd_dracptlist.getupdatedataAll("i"));
  444. if ( submit("TXMNO02601") == true ) {
  445. messageBox("마감이 정상적으로","I002");
  446. //fSearch();(20090805주석처리)
  447. //cmb_orddept.refresh();
  448. fOrddr(); // 마감후 진료의/구분 재조회
  449. model.setValue("/root/main/cond/orddrid", model.getValue("root/tmp/selecteddrid"));
  450. fSearch(); //20090805-kys(마감후 선택되어있던 진료의로 조회를 하기위해 순서변경)
  451. }
  452. ]]>
  453. </script>
  454. </button>
  455. <line id="line2" class="line_1" style="x1:0px; y1:90px; x2:1191px; y2:90px; "/>
  456. <datagrid id="grd_dracptlist" nodeset="/root/main/dracptinfo/dracptlist" caption="^진료일^진료시간^도착시간^진료종료^등록번호^환자명^S/A^센터^진료과^하위부서^진료의^진료의^초재진^예약구분^진료기록^진료여부^마감일시^마감자^출장의사점검여부" colsep="^" colwidth="25, 70, 55, 55, 55, 65, 70, 40, 110, 110, 0, 70, 0, 45, 70, 60, 70, 110, 60, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0" dataheight="23" defaultrows="2" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" navindex="7" style="left:1px; top:95px; width:1190px; height:645px; ">
  457. <col ref="acptyn" type="checkbox"/>
  458. <col ref="orddd" format="yyyy-mm-dd" style="text-align:center; "/>
  459. <col ref="ordtm" format="mm:hh" style="text-align:center; "/>
  460. <col ref="nursacpttm" format="mm:hh" style="text-align:center; "/>
  461. <col ref="dracpttm" format="mm:hh" style="text-align:center; "/>
  462. <col ref="pid" style="text-align:center; "/>
  463. <col ref="hngnm" style="text-align:center; "/>
  464. <col ref="sexage" style="text-align:center; "/>
  465. <col disabled="true" ref="centcd" type="combo" style="text-align:center; ">
  466. <choices>
  467. <itemset nodeset="/root/init/orddept/dept">
  468. <label ref="depthngnm"/>
  469. <value ref="deptcd"/>
  470. </itemset>
  471. </choices>
  472. </col>
  473. <col disabled="true" ref="orddeptcd" type="combo" style="text-align:left; ">
  474. <choices>
  475. <itemset nodeset="/root/init/orddept/dept">
  476. <label ref="depthngnm"/>
  477. <value ref="deptcd"/>
  478. </itemset>
  479. </choices>
  480. </col>
  481. <col ref="subdeptnm" style="text-align:center; "/>
  482. <col ref="orddrnm" style="text-align:center; "/>
  483. <col disabled="true" ref="orddrid" type="combo" style="text-align:center; ">
  484. <choices>
  485. <itemset nodeset="/root/init/orddr/orddrlist">
  486. <label ref="usernm"/>
  487. <value ref="userid"/>
  488. </itemset>
  489. </choices>
  490. </col>
  491. <col ref="fsexamflag" style="text-align:center; "/>
  492. <col ref="rsrvflag" style="text-align:center; "/>
  493. <col ref="reccheck" style="text-align:center; "/>
  494. <col disabled="true" ref="stat" type="combo" style="text-align:center; ">
  495. <choices>
  496. <item>
  497. <label>진료부도</label>
  498. <value>진료부도</value>
  499. </item>
  500. <item>
  501. <label>진료종료</label>
  502. <value>진료종료</value>
  503. </item>
  504. <item>
  505. <label>간호접수</label>
  506. <value>간호접수</value>
  507. </item>
  508. </choices>
  509. </col>
  510. <col ref="endtd" format="yyyy-mm-dd hh:mm" style="text-align:center; "/>
  511. <col ref="endnm" style="left:1165px; top:23px; width:100px; height:23px; text-align:center; "/>
  512. <col ref="holicheck" visibility="hidden"/>
  513. <col ref="orddeptcd" visibility="hidden" style="text-align:center; "/>
  514. <col ref="orddrid" visibility="hidden" style="text-align:center; "/>
  515. <col ref="nursacptyn" visibility="hidden" style="left:1061px; top:23px; width:100px; height:23px; text-align:center; "/>
  516. <col ref="dracptyn" visibility="hidden" style="text-align:center; "/>
  517. <col ref="prcpgenryn" visibility="hidden" style="text-align:center; "/>
  518. <col ref="ordtype" visibility="hidden" style="text-align:center; "/>
  519. <col ref="cretno" visibility="hidden" style="text-align:center; "/>
  520. <col ref="instcd" visibility="hidden" style="text-align:center; "/>
  521. <col ref="acptseqno" visibility="hidden" style="text-align:center; "/>
  522. <col ref="etcordflag" visibility="hidden" style="text-align:center; "/>
  523. <col ref="enddd" visibility="hidden" style="text-align:center; "/>
  524. <col ref="endtm" visibility="hidden" style="text-align:center; "/>
  525. <col ref="ndstat" visibility="hidden" style="text-align:center; "/>
  526. <col ref="acptno" visibility="hidden" style="text-align:center; "/>
  527. <col ref="dracptdd" visibility="hidden" style="text-align:center; "/>
  528. <col ref="nursacptdd" visibility="hidden" style="text-align:center; "/>
  529. <col ref="subdeptcd" visibility="hidden" style="text-align:center; "/>
  530. <script type="javascript" ev:event="xforms-value-changed">
  531. <![CDATA[
  532. //var iCol2 = 0;
  533. //iCol2 = grd_dracptlist.col;
  534. if(grd_dracptlist.col == grd_dracptlist.colRef("stat")){
  535. var stat = model.getValue("/root/main/dracptinfo/dracptlist[" + grd_dracptlist.row + "]/stat");
  536. if(stat == "진료부도" ){
  537. model.setValue("/root/main/dracptinfo/dracptlist[" + grd_dracptlist.row + "]/ndstat","NN");
  538. }else if(stat == "진료종료" ){
  539. model.setValue("/root/main/dracptinfo/dracptlist[" + grd_dracptlist.row + "]/stat","간호접수");
  540. model.setValue("/root/main/dracptinfo/dracptlist[" + grd_dracptlist.row + "]/ndstat","YN");
  541. messageBox("진료종료를 선택할 수","I004");
  542. }else if(stat == "간호접수" ){
  543. model.setValue("/root/main/dracptinfo/dracptlist[" + grd_dracptlist.row + "]/ndstat","YN");
  544. }
  545. model.refresh();
  546. }
  547. ]]>
  548. </script>
  549. <script type="javascript" ev:event="onclick">
  550. <![CDATA[
  551. var iRow = 0;
  552. var iCol = 0;
  553. var xDracptListPath = "/root/main/dracptinfo/dracptlist";
  554. iRow = grd_dracptlist.row;
  555. iCol = grd_dracptlist.col;
  556. //alert("iCol : " + iCol);
  557. //** 전체선택 체크박스 기능******************************************//
  558. if(iRow == "0"){
  559. if(grd_dracptlist.fixedcellischeck(0, grd_dracptlist.colRef("acptyn"))==true){ // 선택시
  560. for(i=1;i<=getNodesetCount(xDracptListPath);i++){
  561. model.makeValue(xDracptListPath + "[" + i + "]/acptyn", "true");
  562. }
  563. } else{
  564. for(i=1;i<=getNodesetCount(xDracptListPath);i++){
  565. model.makeValue(xDracptListPath + "[" + i + "]/acptyn", "false");
  566. }
  567. }
  568. }
  569. //***************************************************************************************//
  570. if(iCol == grd_dracptlist.colRef("acptyn") || iCol == grd_dracptlist.colRef("stat")) return; //8->12로변경-kys-20091030
  571. if(iRow < 1) return;
  572. if(model.getValue(xDracptListPath+"["+iRow+"]/acptyn") == "true"){
  573. model.setValue(xDracptListPath+"["+iRow+"]/acptyn","false");
  574. }else{
  575. model.setValue(xDracptListPath+"["+iRow+"]/acptyn", "true");
  576. }
  577. ]]>
  578. </script>
  579. <script type="javascript" ev:event="ondblclick">
  580. <![CDATA[
  581. iRow = grd_dracptlist.row;
  582. iCol = grd_dracptlist.col;
  583. if(iRow < 1) return;
  584. if(iCol == grd_dracptlist.colRef("reccheck")) { // 기록여부 더블클릭시만
  585. button5.dispatch("DOMActivate");
  586. }
  587. ]]>
  588. </script>
  589. </datagrid>
  590. <button id="button5" class="btn2_letter6" style="left:963px; top:68px; width:86px; height:19px; ">
  591. <caption>통합기록조회</caption>
  592. <script type="javascript" ev:event="DOMActivate">
  593. <![CDATA[
  594. var iRow = grd_dracptlist.row;
  595. var pid = model.getValue("/root/main/dracptinfo/dracptlist[" +iRow+ "]/pid");
  596. if(pid == ""){
  597. messageBox("환자를 선택 하세요.", "C999");
  598. return;
  599. }
  600. setParameter("SMMRI00400_param_pid", pid);
  601. open("SMMRI00400");
  602. ]]>
  603. </script>
  604. </button>
  605. <button id="btn_ordend" class="btn2_letter5" navindex="6" style="left:1055px; top:68px; width:75px; height:19px; ">
  606. <caption>선처치 마감</caption>
  607. <script type="javascript" ev:event="onclick">
  608. <![CDATA[
  609. setParameter("orddeptcd", model.getValue("/root/main/cond/orddeptcd"));
  610. setParameter("orddd", model.getValue("/root/main/cond/todd"));
  611. modal("SMMNO00900");
  612. ]]>
  613. </script>
  614. </button>
  615. </group>
  616. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">외래 진찰료 마감</caption>
  617. </xhtml:body>
  618. </xhtml:html>