SMMNF01800_일일방문 대장.xrw 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445
  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. <item>
  10. <chargenurse>
  11. <nurselist>
  12. <userid/>
  13. <usernm/>
  14. </nurselist>
  15. </chargenurse>
  16. <church>
  17. <church>
  18. <churchlist>
  19. <churchcd/>
  20. <churchnm/>
  21. <instdispseq/>
  22. </churchlist>
  23. </church>
  24. </church>
  25. <churchregkind>
  26. <churchregkindlist>
  27. <cd>1</cd>
  28. <nm>등록</nm>
  29. </churchregkindlist>
  30. <churchregkindlist>
  31. <cd>2</cd>
  32. <nm>무료</nm>
  33. </churchregkindlist>
  34. <churchregkindlist>
  35. <cd>3</cd>
  36. <nm>기타</nm>
  37. </churchregkindlist>
  38. </churchregkind>
  39. </item>
  40. <main>
  41. <grd_visitlist>
  42. <visitlist>
  43. <no/>
  44. <visitdd/>
  45. <careflag/>
  46. <position/>
  47. <churchcd/>
  48. <churchnm/>
  49. <kind/>
  50. <chrgnursenm/>
  51. <pid/>
  52. <pathngnm/>
  53. <sex/>
  54. <diagcd/>
  55. <diagname/>
  56. <deptnm/>
  57. <doctornm/>
  58. <hvisitcnt/>
  59. <vvistcnt/>
  60. <visitsttm/>
  61. <visitedtm/>
  62. <movetm/>
  63. <totcaretm/>
  64. </visitlist>
  65. </grd_visitlist>
  66. </main>
  67. <send>
  68. <visitdd/>
  69. <chrgnursid>%</chrgnursid>
  70. <kind/>
  71. <pid/>
  72. <inptdt/>
  73. <churchcd>-</churchcd>
  74. <inputvisitdd/>
  75. <visittodd/>
  76. </send>
  77. <temp/>
  78. <init>
  79. <careflagcd>
  80. <M0524/>
  81. </careflagcd>
  82. <patflag>
  83. <M0347/>
  84. </patflag>
  85. <kind>
  86. <M0348/>
  87. </kind>
  88. <careflagcd>
  89. <M0524/>
  90. </careflagcd>
  91. <listset1>
  92. <list>
  93. <cdid>1</cdid>
  94. <cdnm>병원</cdnm>
  95. </list>
  96. <list>
  97. <cdid>2</cdid>
  98. <cdnm>본당</cdnm>
  99. </list>
  100. <list>
  101. <cdid>3</cdid>
  102. <cdnm>재택</cdnm>
  103. </list>
  104. </listset1>
  105. <listset>
  106. <list>
  107. <cdid>1</cdid>
  108. <cdnm>병원</cdnm>
  109. </list>
  110. </listset>
  111. </init>
  112. </root>
  113. </instance>
  114. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  115. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  116. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  117. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  118. <script type="javascript" src="../../../emr/homecareweb/js/SMMNF00100.js"/>
  119. <script type="javascript">
  120. <![CDATA[
  121. var searchListFlag;
  122. ]]>
  123. </script>
  124. <script type="javascript" ev:event="xforms-ready">
  125. <![CDATA[
  126. // Default 병원선택
  127. fInitHomeCareRdo("rdo_kind");
  128. rdo_kind.value = 1;
  129. model.setValue("/root/send/visitdd", getCurrentDate());
  130. model.setValue("/root/send/visittodd", getCurrentDate());
  131. model.setValue("/root/send/kind", rdo_kind.value);
  132. model.refresh();
  133. // 조회조건의 가정간호 담당간호사 리스트를 조회, 콤보박스에 세팅한다.
  134. submit("TRMNF00106");
  135. // 공통코드 목록 가져오기
  136. zbcfGetCodeList(new Array("M0524", "M0347","M0348"), new Array("/root/init/careflagcd", "/root/init/patflag", "/root/init/kind"));
  137. var updtdata;
  138. updtdata = getGridUpdateData(grd_visitlist);
  139. model.removeNodeset("/root/grd_visitlist");
  140. grd_visitlist.rebuild();
  141. if ( updtdata != "" ) {
  142. var ret = messageBox("그리드에 작업 중인 내용이 있습니다. 조회 작업을","Q003");
  143. if (ret != 6) { // not OK
  144. return;
  145. }
  146. }
  147. // 방문대장 리스트 조회
  148. submit("TRMNF01800");
  149. ]]>
  150. </script>
  151. <submission id="TRMNF01800" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/grd_visitlist"/>
  152. <submission id="TRMNF00106" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/item/chargenurse"/>
  153. <submission id="TRMNF00130" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/item/church/churchlist"/>
  154. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  155. <submission id="TRMNW00001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/code/codelist"/>
  156. </model>
  157. </xhtml:head>
  158. <xhtml:body guideline="1,1195;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  159. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  160. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:160px; height:14px; ">일일방문 대장</caption>
  161. </group>
  162. <group id="grp_btn" scroll="auto" style="left:0px; top:757px; width:1195px; height:23px; "/>
  163. <group id="group5" class="datagrid2" scroll="auto" style="left:0px; top:13px; width:1195px; height:742px; ">
  164. <group id="grp_sea" style="left:0px; top:10px; width:1195px; height:50px; vertical-align:top; ">
  165. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:5px; width:1195px; height:40px; "/>
  166. <line id="line13" class="line_4" style="x1:1107px; y1:12px; x2:1107px; y2:38px; "/>
  167. <button id="btn_search" class="btn1_letter2" style="left:1126px; top:13px; width:56px; height:22px; ">
  168. <caption>조회</caption>
  169. <script type="javascript" ev:event="DOMActivate">
  170. <![CDATA[
  171. model.setValue("/root/send/visitdd", ipt_visitdd.value);
  172. model.setValue("/root/send/visittodd", ipt_visittodd.value);
  173. model.setValue("/root/send/kind", rdo_kind.value);
  174. model.refresh();
  175. if(model.getValue("/root/send/visitdd") > model.getValue("/root/send/visittodd"))
  176. {
  177. messageBox("시작일자는 종료일자 이후의 일자로 입력","E001");
  178. model.setFocus("ipt_visitdd");
  179. return ;
  180. }
  181. var updtdata;
  182. updtdata = getGridUpdateData(grd_visitlist);
  183. model.removeNodeset("/root/grd_visitlist");
  184. grd_visitlist.rebuild();
  185. if ( updtdata != "" ) {
  186. var ret = messageBox("그리드에 작업 중인 내용이 있습니다. 조회 작업을","Q003");
  187. if (ret != 6) { // not OK
  188. return;
  189. }
  190. }
  191. // 방문대장 리스트 조회
  192. submit("TRMNF01800");
  193. ]]>
  194. </script>
  195. </button>
  196. <select1 id="rdo_kind" ref="/root/send/kind" class="radio_search" visibility="hidden" appearance="full" cols="3" rows="1" overflow="visible" style="left:365px; top:16px; width:140px; height:20px; border-style:none; ">
  197. <choices>
  198. <itemset>
  199. <label ref="cdnm"/>
  200. <value ref="cdid"/>
  201. </itemset>
  202. </choices>
  203. <script type="javascript" ev:event="xforms-value-changed">
  204. <![CDATA[
  205. model.removeNodeset("/root/main/grd_visitlist");
  206. model.refresh();
  207. if (rdo_kind.value == 1) // 병원
  208. {
  209. grp_kindchurch.visible = false;
  210. grp_kindhosp.visible = true;
  211. }
  212. else if (rdo_kind.value == 2) // 본당
  213. {
  214. grp_kindhosp.visible = false;
  215. grp_kindchurch.visible = true;
  216. //본당리스트 조회셋팅 추가_20091030_SMY
  217. model.removeNodeset("/root/item/church");
  218. model.makeNode("/root/item/church/churchlist");
  219. model.setValue("/root/send/churchcd", "-");
  220. // 본당 리스트 조회
  221. submit("TRMNF00130");
  222. }
  223. else // 재택
  224. {
  225. grp_kindchurch.visible = false;
  226. grp_kindhosp.visible = true;
  227. }
  228. model.setValue("/root/send/kind", rdo_kind.value);
  229. model.refresh();
  230. // 조회조건의 가정간호 담당간호사 리스트를 조회, 콤보박스에 세팅한다.
  231. submit("TRMNF00106");
  232. // 방문대장 리스트 조회
  233. submit("TRMNF01800");
  234. btn_search.dispatch("DOMActivate") ;
  235. ]]>
  236. </script>
  237. <script type="javascript" ev:event="DOMFocusOut">
  238. <![CDATA[
  239. if (rdo_kind.value == 1) // 병원
  240. {
  241. grp_kindchurch.visible = false;
  242. grp_kindhosp.visible = true;
  243. }
  244. else if (rdo_kind.value == 2) // 본당
  245. {
  246. grp_kindhosp.visible = false;
  247. grp_kindchurch.visible = true;
  248. }
  249. else // 재택
  250. {
  251. grp_kindchurch.visible = false;
  252. grp_kindhosp.visible = true;
  253. }
  254. model.setValue("/root/send/kind", rdo_kind.value);
  255. model.refresh();
  256. ]]>
  257. </script>
  258. </select1>
  259. <group id="grp_kindchurch" visibility="hidden" style="left:520px; top:14px; width:560px; height:20px; background-color:transparent; ">
  260. <select1 id="combo5" ref="/root/send/churchcd" class="combo_search" appearance="minimal" style="left:75px; top:0px; width:105px; height:19px; ">
  261. <choices>
  262. <itemset nodeset="/root/item/church/church/churchlist">
  263. <label ref="churchnm"/>
  264. <value ref="churchcd"/>
  265. </itemset>
  266. </choices>
  267. <script type="javascript" ev:event="xforms-value-changed">
  268. <![CDATA[
  269. // SEND DATA 변경
  270. model.setValue("/root/send/churchcd", combo5.value);
  271. model.refresh();
  272. // 조회조건의 가정간호 담당간호사 리스트를 조회, 콤보박스에 세팅한다.
  273. submit("TRMNF00106");
  274. ]]>
  275. </script>
  276. </select1>
  277. <select1 id="combo7" ref="/root/send/chrgnursid" class="combo_search" appearance="minimal" style="left:450px; top:0px; width:90px; height:19px; ">
  278. <choices>
  279. <itemset nodeset="/root/item/chargenurse/nurselist">
  280. <label ref="usernm"/>
  281. <value ref="userid"/>
  282. </itemset>
  283. </choices>
  284. <script type="javascript" ev:event="xforms-value-changed">
  285. <![CDATA[
  286. // SEND DATA 변경
  287. //model.setValue("/root/send/chrgnursid", combo7.value);
  288. model.refresh();
  289. // 방문대장 리스트 조회
  290. submit("TRMNF01800");
  291. ]]>
  292. </script>
  293. </select1>
  294. <caption id="caption28" class="search_name" style="left:0px; top:0px; width:80px; height:17px; ">본당명 :</caption>
  295. <caption id="caption29" class="search_name" style="left:345px; top:1px; width:99px; height:17px; ">방문간호사 :</caption>
  296. <select id="checkbox1" ref="/root/item/churchregkind/churchregkindlist" class="checkbox_search" overflow="visible" appearance="full" cols="3" rows="1" style="left:205px; top:1px; width:140px; height:17px; text-align:center; border-style:none; ">
  297. <choices>
  298. <item>
  299. <label>등록</label>
  300. <value>1</value>
  301. </item>
  302. <item>
  303. <label>무료</label>
  304. <value>2</value>
  305. </item>
  306. <item>
  307. <label>기타</label>
  308. <value>3</value>
  309. </item>
  310. </choices>
  311. </select>
  312. </group>
  313. <caption id="caption1" class="search_name" style="left:15px; top:17px; width:98px; height:17px; ">방문일자 :</caption>
  314. <group id="grp_kindhosp" visibility="visible" style="left:520px; top:14px; width:225px; height:23px; background-color:transparent; ">
  315. <select1 id="combo6" ref="/root/send/chrgnursid" class="combo_search" appearance="minimal" style="left:100px; top:0px; width:100px; height:19px; ">
  316. <choices>
  317. <itemset nodeset="/root/item/chargenurse/nurselist">
  318. <label ref="usernm"/>
  319. <value ref="userid"/>
  320. </itemset>
  321. </choices>
  322. <script type="javascript" ev:event="xforms-value-changed">
  323. <![CDATA[
  324. // SEND DATA 변경
  325. //model.setValue("/root/send/chrgnursid", combo6.value);
  326. model.refresh();
  327. // 방문대장 리스트 조회
  328. submit("TRMNF01800");
  329. ]]>
  330. </script>
  331. </select1>
  332. <caption id="caption27" class="search_name" style="left:0px; top:1px; width:99px; height:22px; ">방문간호사 :</caption>
  333. </group>
  334. <input id="ipt_visitdd" ref="/root/send/visitdd" class="input_search" inputtype="date" style="left:107px; top:16px; width:100px; height:19px; ">
  335. <script type="javascript" ev:event="xforms-value-changed">
  336. <![CDATA[
  337. ]]>
  338. </script>
  339. </input>
  340. <input id="ipt_visittodd" ref="/root/send/visittodd" class="input_search" inputtype="date" style="left:230px; top:16px; width:100px; height:19px; ">
  341. <script type="javascript" ev:event="xforms-value-changed">
  342. <![CDATA[
  343. btn_search.dispatch("DOMActivate") ;
  344. ]]>
  345. </script>
  346. </input>
  347. <caption id="caption2" style="left:211px; top:17px; width:15px; height:20px; font-weight:bold; ">~</caption>
  348. </group>
  349. <caption id="caption7" class="tit_2" style="left:5px; top:72px; width:124px; height:13px; ">방문대장 리스트</caption>
  350. <line id="line2" class="line_1" style="x1:0px; y1:87px; x2:1194px; y2:87px; "/>
  351. <!--(20101206) 경북대
  352. <datagrid id="grd_visitlist" nodeset="/root/main/grd_visitlist/visitlist" caption="No^방문일^구분^소속^본당명^본당명^분류^방문간호사^등록번호^환자명^S/A^진단명^진단명^진료과^주치의^당해방문횟수^당해방문횟수^방문&#xA;시작시간^방문&#xA;종료시간^이동시간^총간호시간|No^방문일^구분^소속^본당명^본당명^분류^방문간호사^등록번호^환자명^S/A^진단명^진단명^진료과^주치의^가정^방문^방문&#xA;시작시간^방문&#xA;종료시간^이동시간^총간호시간" colsep="^" colwidth="30, 68, 36, 40, 70, 80, 40, 67, 80, 60, 50, 50, 138, 100, 54, 44, 44, 57, 57, 54, 72" explorerbar="sort" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:91px; width:1194px; height:646px; vertical-align:bottom; ">
  353. -->
  354. <datagrid id="grd_visitlist" nodeset="/root/main/grd_visitlist/visitlist" caption="No^방문일^구분^소속^본당명^본당명^분류^방문간호사^등록번호^환자명^S/A^진단명^진단명^진료과^주치의^당해방문횟수^당해방문횟수^방문&#xA;시작시간^방문&#xA;종료시간^이동시간^총간호시간|No^방문일^구분^소속^본당명^본당명^분류^방문간호사^등록번호^환자명^S/A^진단명^진단명^진료과^진료의^가정^호스피스^방문&#xA;시작시간^방문&#xA;종료시간^이동시간^총간호시간" colsep="^" colwidth="30, 68, 36, 40, 70, 80, 40, 67, 80, 60, 50, 50, 138, 100, 54, 44, 51, 57, 57, 54, 72" explorerbar="sort" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:91px; width:1194px; height:646px; vertical-align:bottom; ">
  355. <!--(20101206) 경북대 -->
  356. <col ref="no" style="text-align:center; "/>
  357. <col ref="visitdd" format="yyyy-mm-dd" style="text-align:center; "/>
  358. <col disabled="true" ref="careflag" type="combo" style="text-align:center; ">
  359. <choices>
  360. <itemset nodeset="/root/init/careflagcd/M0524">
  361. <label ref="cdnm"/>
  362. <value ref="cdid"/>
  363. </itemset>
  364. </choices>
  365. </col>
  366. <col ref="position" style="text-align:center; "/>
  367. <col ref="churchcd" visibility="hidden" style="text-align:center; "/>
  368. <col ref="churchnm" visibility="hidden" style="text-align:center; "/>
  369. <col ref="kind" style="text-align:center; "/>
  370. <col ref="chrgnursenm" style="text-align:center; "/>
  371. <col ref="pid" style="text-align:center; "/>
  372. <col ref="pathngnm" style="text-align:center; "/>
  373. <col ref="sex" style="text-align:center; "/>
  374. <col ref="diagcd" visibility="hidden" style="text-align:center; "/>
  375. <col ref="diagname" style="text-align:center; "/>
  376. <col ref="deptnm" style="text-align:center; "/>
  377. <col ref="doctornm" style="text-align:center; "/>
  378. <col ref="hvisitcnt" style="text-align:center; "/>
  379. <col ref="cvisitcnt" style="text-align:center; "/>
  380. <col ref="visitsttm" format="hh:nn" style="text-align:center; "/>
  381. <col ref="visitedtm" format="hh:nn" style="text-align:center; "/>
  382. <col ref="movetm" format="hh:nn" style="text-align:center; "/>
  383. <col ref="totcaretm" format="hh:nn" style="text-align:center; "/>
  384. </datagrid>
  385. <button id="btn_excel" class="btn2_letter3" style="left:1140px; top:67px; width:53px; height:19px; ">
  386. <caption>Excel</caption>
  387. <script type="javascript" ev:event="DOMActivate">
  388. <![CDATA[
  389. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  390. if (fileName != "")
  391. {
  392. grd_visitlist.saveExcel(fileName, "SheetName", true, true, "", "", "");
  393. }
  394. ]]>
  395. </script>
  396. </button>
  397. <button id="btn_print" class="btn2_letter2" style="left:1095px; top:67px; width:42px; height:19px; ">
  398. <caption>출력</caption>
  399. <script type="javascript" ev:event="DOMActivate">
  400. <![CDATA[
  401. exeReportPreview("RPMNF01800","XMLSTR");
  402. ]]>
  403. </script>
  404. </button>
  405. <button id="button1" class="btn5_letter7" style="left:990px; top:65px; width:97px; height:19px; ">
  406. <caption>차량 운행일지</caption>
  407. <script type="javascript" ev:event="DOMActivate">
  408. <![CDATA[
  409. modal("SMMNF00600");
  410. ]]>
  411. </script>
  412. </button>
  413. </group>
  414. </xhtml:body>
  415. </xhtml:html>