SMMNR03900_기본간호등록조회.xrw 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356
  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. <searchfromdd/>
  13. <searchtodd/>
  14. <settingrnid/>
  15. <userid/>
  16. <usernm/>
  17. <exceptdsch/>
  18. </cond>
  19. <nursebasicinfo>
  20. <info>
  21. <roomcd/>
  22. <patnm/>
  23. <sexage/>
  24. <pid/>
  25. <indd/>
  26. <cretno/>
  27. <instcd/>
  28. <seqno/>
  29. <timsval01/>
  30. <timsval02/>
  31. <timsval04/>
  32. <clsgrupkind/>
  33. <recid1/>
  34. <recnm1/>
  35. <recdd1/>
  36. <recid2/>
  37. <recnm2/>
  38. <recdd2/>
  39. <recid3/>
  40. <recnm3/>
  41. <recdd3/>
  42. <recid4/>
  43. <recnm4/>
  44. <recdd4/>
  45. <recid5/>
  46. <recnm5/>
  47. <recdd5/>
  48. <recid6/>
  49. <recnm6/>
  50. <recdd6/>
  51. <recid7/>
  52. <recnm7/>
  53. <recdd7/>
  54. <recid8/>
  55. <recnm8/>
  56. <recdd8/>
  57. <recid9/>
  58. <recnm9/>
  59. <recdd9/>
  60. <recid10/>
  61. <recnm10/>
  62. <recdd10/>
  63. <recid11/>
  64. <recnm11/>
  65. <recdd11/>
  66. <recid12/>
  67. <recnm12/>
  68. <recdd12/>
  69. </info>
  70. </nursebasicinfo>
  71. </main>
  72. <init>
  73. <ward>
  74. <wardcd/>
  75. <wardnm/>
  76. </ward>
  77. <dept>
  78. <deptcd/>
  79. <depthngnm/>
  80. </dept>
  81. <settingrn>
  82. <settingrnid/>
  83. <settingrnnm/>
  84. </settingrn>
  85. <A0078list/>
  86. </init>
  87. <send/>
  88. </root>
  89. </instance>
  90. <script type="javascript" ev:event="xforms-ready">
  91. <![CDATA[
  92. fInitialize();
  93. ]]>
  94. </script>
  95. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  96. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  97. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  98. <script type="javascript" src="../../../emr/carecomweb/js/CareCom.js"/>
  99. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  100. <script type="javascript">
  101. <![CDATA[
  102. function fInitialize(){
  103. for(i= grd_nursebasic.colRef("recdd1") ;i<= grd_nursebasic.colRef("actingcon12");i++){
  104. grd_nursebasic.mergeCol(i) = false;
  105. }
  106. //오늘 날짜로 초기화 하는 부분.(조회일자를 default로 오늘 날짜로 선택함)
  107. var currDate;
  108. currDate = getCurrentDate();
  109. var addDy = currDate.toDate().getAddDate(-7,"D"); // Y가 연M,D
  110. addDy = addDy.getDateFormat("YYYYMMDD");
  111. model.setValue("/root/main/cond/wardcd", getUserInfo("dutplcecd"));
  112. model.setValue("/root/main/cond/settingrnid", "");
  113. model.setValue("/root/main/cond/userid", getUserId());
  114. model.setValue("/root/main/cond/usernm", getUserName());
  115. model.setValue("/root/main/cond/searchfromdd", addDy );
  116. model.setValue("/root/main/cond/searchtodd", getCurrentDate() );
  117. model.setValue("/root/main/cond/exceptdsch", "N" );
  118. fMySettingNurseList();
  119. if ( (model.getValue("/root/main/cond/wardcd") != "All" && !isNull(model.getValue("/root/main/cond/wardcd")) )
  120. || (model.getValue("/root/main/cond/wardcd") == "All" )){
  121. fGetBasicNursePatList();
  122. }
  123. }
  124. //병동및 내환자 세팅 간호사 아디 조회
  125. function fMySettingNurseList(){
  126. model.setValue("/root/main/cond/settingrnid", "");
  127. model.removenode("/root/send");
  128. model.makeValue ("/root/send/reqdata/wardcd" , model.getValue("/root/main/cond/wardcd"));
  129. model.makeValue ("/root/send/reqdata/wardlistopt" , "A"); // 병동리스트조회옵션(A:[전체]포함)
  130. if ( submit("TRMNW00101") ){
  131. for(i=1; i <= getNodesetCount("/root/init/settingrn"); i++ ) {
  132. if (model.getValue("/root/main/cond/userid") == model.getValue("/root/init/settingrn["+ i +"]/settingrnid")) {
  133. model.setValue("/root/main/cond/settingrnid", model.getValue("/root/main/cond/userid"));
  134. }
  135. }
  136. }
  137. }
  138. function fGetBasicNursePatList(){
  139. if( !isNull(model.getValue("/root/main/cond/wardcd")) ){
  140. if( !isRequiredControls("ipt_searchfromdd","ipt_searchtodd","cmb_wardcd") ){
  141. return;
  142. }
  143. if( getDateInterval( model.getValue("/root/main/cond/searchfromdd"), model.getValue("/root/main/cond/searchtodd") ) > '7' ){
  144. messageBox( "최대 조회기간은 1주일입니다.", "I007");//확인하십시오
  145. return;
  146. }
  147. // if( model.getValue("/root/main/cond/wardcd") == "All" && bl_exceptdsch.selected != true ){
  148. // messageBox( "전체 병동 조회시 퇴원환자제외 체크는 필수입니다.", "I007");//확인하십시오
  149. // return;
  150. // }20100524 khj 강정우 itc요청에 의해 퇴원환자도 전체병동으로 조회가능하도록 요청 - 속도가 느려도 보고싶어하심.
  151. model.removenode("/root/send");
  152. model.makeValue("/root/send/searchfromdd",model.getValue("/root/main/cond/searchfromdd") );
  153. model.makeValue("/root/send/searchtodd",model.getValue("/root/main/cond/searchtodd") );
  154. model.makeValue("/root/send/wardcd",model.getValue("/root/main/cond/wardcd") );
  155. model.makeValue("/root/send/settingrnid",model.getValue("/root/main/cond/settingrnid") );
  156. model.makeValue("/root/send/exceptdsch",model.getValue("/root/main/cond/exceptdsch") );
  157. submit("TRMNR04112");
  158. fGridColorChange();
  159. }
  160. }
  161. function fGridColorChange(){
  162. var nodeList1 = instance1.selectNodes("/root/main/nursebasicinfo/info/timsval01");
  163. var nodeList2 = instance1.selectNodes("/root/main/nursebasicinfo/info/timsval02");
  164. var nodeList3 = instance1.selectNodes("/root/main/nursebasicinfo/info/timsval04");
  165. var row = grd_nursebasic.fixedRows;
  166. var color ="";
  167. var rowidx = 0;
  168. if ( nodeList1 != null && nodeList1.length > 0 ){
  169. for ( var idx = 0 ; idx < nodeList1.length ; idx++ ){
  170. rowidx = 0;
  171. rowidx = idx+row;
  172. if( nodeList1.item(idx).value >= '3' ){
  173. grd_nursebasic.cellStyle("background-color", rowidx, 6) = "#FFFF00";
  174. } else {
  175. grd_nursebasic.cellStyle("background-color", rowidx, 6) = "#f2f2f2";
  176. }
  177. }
  178. }
  179. if ( nodeList2 != null && nodeList2.length > 0 ){
  180. for ( var idx = 0 ; idx < nodeList2.length ; idx++ ){
  181. rowidx = 0;
  182. rowidx = idx+row;
  183. if( nodeList2.item(idx).value >= '3' ){
  184. grd_nursebasic.cellStyle("background-color", rowidx, 7) = "#FFFF00";
  185. } else {
  186. grd_nursebasic.cellStyle("background-color", rowidx, 7) = "#f2f2f2";
  187. }
  188. }
  189. }
  190. if ( nodeList3 != null && nodeList3.length > 0 ){
  191. for ( var idx = 0 ; idx < nodeList3.length ; idx++ ){
  192. rowidx = 0;
  193. rowidx = idx+row;
  194. if( nodeList3.item(idx).value >= '3' ){
  195. grd_nursebasic.cellStyle("background-color", rowidx, 8) = "#FFFF00";
  196. } else {
  197. grd_nursebasic.cellStyle("background-color", rowidx, 8) = "#f2f2f2";
  198. }
  199. }
  200. }
  201. model.refresh();
  202. }
  203. ]]>
  204. </script>
  205. <submission id="TRMNW00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init"/>
  206. <submission id="TRMNR04112" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/nursebasicinfo"/>
  207. </model>
  208. </xhtml:head>
  209. <xhtml:body guideline="1,1195;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  210. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  211. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:257px; height:14px; ">기본간호등록조회</caption>
  212. </group>
  213. <group id="grp_btn" scroll="auto" style="left:0px; top:757px; width:1195px; height:27px; ">
  214. <caption id="caption3" style="left:1160px; top:5px; width:30px; height:20px; text-align:right; ">[표]</caption>
  215. </group>
  216. <group id="group5" class="datagrid2" scroll="auto" style="left:0px; top:13px; width:1195px; height:742px; ">
  217. <group id="grp_sea" style="left:0px; top:10px; width:1195px; height:35px; vertical-align:top; ">
  218. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1195px; height:35px; "/>
  219. <caption id="cap_searchfromdd" class="search_name" style="left:16px; top:10px; width:89px; height:17px; ">조회일자 :</caption>
  220. <caption id="cap_searchtodd" class="search_name" style="left:16px; top:10px; width:89px; height:17px; ">조회일자 :</caption>
  221. <button id="button1" class="btn1_letter2" style="left:1036px; top:7px; width:56px; height:22px; ">
  222. <caption>조회</caption>
  223. <script type="javascript" ev:event="DOMActivate">
  224. <![CDATA[
  225. fMySettingNurseList();
  226. fGetBasicNursePatList();
  227. ]]>
  228. </script>
  229. </button>
  230. <line id="line13" class="line_4" style="x1:1020px; y1:7px; x2:1020px; y2:29px; "/>
  231. <button id="button3" class="btn1_letter4" style="left:1097px; top:7px; width:80px; height:22px; ">
  232. <caption>엑셀저장</caption>
  233. <script type="javascript" ev:event="DOMActivate">
  234. <![CDATA[
  235. var fileName = window.fileDialog("save", ",", false, "기본간호등록조회", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  236. if (fileName != "") grd_nursebasic.saveExcel(fileName, "기본간호등록조회", false, false, "", "", false);
  237. ]]>
  238. </script>
  239. </button>
  240. <input id="ipt_searchfromdd" ref="/root/main/cond/searchfromdd" class="input_s_essential" inputtype="date" style="left:105px; top:9px; width:90px; height:19px; "/>
  241. <caption id="caption1" class="search_name" style="left:600px; top:11px; width:74px; height:17px; ">내환자 :</caption>
  242. <select1 id="cmb_settingrnid" ref="/root/main/cond/settingrnid" appearance="minimal" style="left:675px; top:10px; width:95px; height:19px; ">
  243. <choices>
  244. <itemset nodeset="/root/init/settingrn">
  245. <label ref="settingrnnm"/>
  246. <value ref="settingrnid"/>
  247. </itemset>
  248. </choices>
  249. <script type="javascript" ev:event="xforms-value-changed">
  250. <![CDATA[
  251. fGetBasicNursePatList();
  252. ]]>
  253. </script>
  254. </select1>
  255. <caption id="cap_wardcd" class="search_name" style="left:320px; top:11px; width:65px; height:17px; ">병동 :</caption>
  256. <select1 id="cmb_wardcd" ref="/root/main/cond/wardcd" class="input_s_essential" appearance="minimal" style="left:385px; top:10px; width:95px; height:19px; ">
  257. <choices>
  258. <itemset nodeset="/root/init/ward/">
  259. <label ref="wardnm"/>
  260. <value ref="wardcd"/>
  261. </itemset>
  262. </choices>
  263. <script type="javascript" ev:event="xforms-value-changed">
  264. <![CDATA[
  265. if( model.getValue("/root/main/cond/wardcd") == "All" && bl_exceptdsch.selected != true ){
  266. bl_exceptdsch.selected = true;
  267. }
  268. fMySettingNurseList();
  269. fGetBasicNursePatList();
  270. ]]>
  271. </script>
  272. </select1>
  273. <input id="ipt_searchtodd" ref="/root/main/cond/searchtodd" class="input_s_essential" inputtype="date" style="left:210px; top:9px; width:90px; height:19px; "/>
  274. <caption id="caption4" style="left:195px; top:10px; width:15px; height:15px; text-align:center; ">-</caption>
  275. <bool id="bl_exceptdsch" checkvalue="Y,N" ref="/root/main/cond/exceptdsch" style="left:485px; top:9px; width:20px; height:20px; "/>
  276. <caption id="caption2" style="left:505px; top:12px; width:75px; height:15px; ">퇴원환자제외</caption>
  277. </group>
  278. <line id="line2" class="line_1" style="x1:0px; y1:55px; x2:1195px; y2:55px; "/>
  279. <datagrid id="grd_nursebasic" nodeset="/root/main/nursebasicinfo/info" class="datagrid2" autoresize="true" caption="병실^성명^S/A^등록번호^환자분류(중증도) 사정결과^환자분류(중증도) 사정결과^환자분류(중증도) 사정결과^환자분류(중증도) 사정결과^구강간호&#xA;1회/1일^구강간호&#xA;1회/1일^구강간호&#xA;1회/1일^세발간호&#xA;1회/3일^세발간호&#xA;1회/3일^세발간호&#xA;1회/3일^목욕(전신)&#xA;1회/1주^목욕(전신)&#xA;1회/1주^목욕(전신)&#xA;1회/1주^목욕(부분)&#xA;1회/1주^목욕(부분)&#xA;1회/1주^목욕(부분)&#xA;1회/1주^회음부간호&#xA;1회/1일^회음부간호&#xA;1회/1일^회음부간호&#xA;1회/1일^식사보조&#xA;1회/Duty^식사보조&#xA;1회/Duty^식사보조&#xA;1회/Duty^배설간호&#xA;1회/Duty^배설간호&#xA;1회/Duty^배설간호&#xA;1회/Duty^체위변경&#xA;2회/Duty^체위변경&#xA;2회/Duty^체위변경&#xA;2회/Duty^마사지&#xA;2회/Duty^마사지&#xA;2회/Duty^마사지&#xA;2회/Duty^피부관찰&#xA;2회/Duty^피부관찰&#xA;2회/Duty^피부관찰&#xA;2회/Duty^흡인간호&#xA;2회/Duty^흡인간호&#xA;2회/Duty^흡인간호&#xA;2회/Duty^상체거상체위&#xA;1회/Duty^상체거상체위&#xA;1회/Duty^상체거상체위&#xA;1회/Duty|병실^성명^S/A^등록번호^분류결과^위생^영양^운동/활동^구강간호&#xA;1회/1일^구강간호&#xA;1회/1일^구강간호&#xA;1회/1일^세발간호&#xA;1회/3일^세발간호&#xA;1회/3일^세발간호&#xA;1회/3일^목욕(전신)&#xA;1회/1주^목욕(전신)&#xA;1회/1주^목욕(전신)&#xA;1회/1주^목욕(부분)&#xA;1회/1주^목욕(부분)&#xA;1회/1주^목욕(부분)&#xA;1회/1주^회음부간호&#xA;1회/1일^회음부간호&#xA;1회/1일^회음부간호&#xA;1회/1일^식사보조&#xA;1회/Duty^식사보조&#xA;1회/Duty^식사보조&#xA;1회/Duty^배설간호&#xA;1회/Duty^배설간호&#xA;1회/Duty^배설간호&#xA;1회/Duty^체위변경&#xA;2회/Duty^체위변경&#xA;2회/Duty^체위변경&#xA;2회/Duty^마사지&#xA;2회/Duty^마사지&#xA;2회/Duty^마사지&#xA;2회/Duty^피부관찰&#xA;2회/Duty^피부관찰&#xA;2회/Duty^피부관찰&#xA;2회/Duty^흡인간호&#xA;2회/Duty^흡인간호&#xA;2회/Duty^흡인간호&#xA;2회/Duty^상체거상체위&#xA;1회/Duty^상체거상체위&#xA;1회/Duty^상체거상체위&#xA;1회/Duty" colsep="^" colwidth="40, 50, 40, 60, 62, 36, 35, 67, 70, 55, 80, 70, 55, 80, 70, 55, 80, 70, 55, 80, 70, 55, 80, 70, 55, 80, 70, 55, 80, 70, 55, 80, 70, 55, 80, 70, 55, 80, 70, 55, 80, 70, 55, 80" frozencols="8" mergecells="byrestriccol" mergecellsfixedrows="byrowrec" rowheader="seq" rowsep="|" tooltip="true" style="left:0px; top:60px; width:1195px; height:675px; ">
  280. <col ref="roomcd" style="text-align:center; "/>
  281. <col ref="patnm" style="text-align:center; "/>
  282. <col ref="sexage" style="text-align:center; "/>
  283. <col ref="pid" style="text-align:center; "/>
  284. <col ref="clsgrupkind" style="text-align:center; "/>
  285. <col ref="timsval01" style="text-align:center; "/>
  286. <col ref="timsval02" style="text-align:center; "/>
  287. <col ref="timsval04" style="text-align:center; "/>
  288. <col ref="recdd1"/>
  289. <col ref="recnm1"/>
  290. <col ref="actingcon1"/>
  291. <col ref="recdd2"/>
  292. <col ref="recnm2"/>
  293. <col ref="actingcon2"/>
  294. <col ref="recdd3"/>
  295. <col ref="recnm3"/>
  296. <col ref="actingcon3"/>
  297. <col ref="recdd4"/>
  298. <col ref="recnm4"/>
  299. <col ref="actingcon4"/>
  300. <col ref="recdd11"/>
  301. <col ref="recnm11"/>
  302. <col ref="actingcon11"/>
  303. <col ref="recdd5"/>
  304. <col ref="recnm5"/>
  305. <col ref="actingcon5"/>
  306. <col ref="recdd6"/>
  307. <col ref="recnm6"/>
  308. <col ref="actingcon6"/>
  309. <col ref="recdd7"/>
  310. <col ref="recnm7"/>
  311. <col ref="actingcon7"/>
  312. <col ref="recdd8"/>
  313. <col ref="recnm8"/>
  314. <col ref="actingcon8"/>
  315. <col ref="recdd9"/>
  316. <col ref="recnm9"/>
  317. <col ref="actingcon9"/>
  318. <col ref="recdd10"/>
  319. <col ref="recnm10"/>
  320. <col ref="actingcon10"/>
  321. <col ref="recdd12"/>
  322. <col ref="recnm12"/>
  323. <col ref="actingcon12"/>
  324. </datagrid>
  325. </group>
  326. </xhtml:body>
  327. </xhtml:html>