SMMNH07100_다학제간치료계획.xrw 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580
  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. <fromdd/>
  12. <todd/>
  13. <title/>
  14. <careaim/>
  15. <statservice/>
  16. <needservice/>
  17. <data/>
  18. <cnt/>
  19. </cond>
  20. <confinfo>
  21. <conflist>
  22. <confseq/>
  23. <confdd/>
  24. <title/>
  25. </conflist>
  26. </confinfo>
  27. <confdetlinfo>
  28. <confdetllist>
  29. <confseq/>
  30. <confdd/>
  31. <starttm/>
  32. <endtm/>
  33. <confplce/>
  34. <cmt/>
  35. <title/>
  36. <confcontent/>
  37. </confdetllist>
  38. <confatdlist>
  39. <attendnm/>
  40. <attendid/>
  41. <instcd/>
  42. <deptnm/>
  43. </confatdlist>
  44. <confpatlist>
  45. <roomcd/>
  46. <pid/>
  47. <patnm/>
  48. <sa/>
  49. <orddeptnm/>
  50. <orddrnm/>
  51. <diagnm/>
  52. </confpatlist>
  53. </confdetlinfo>
  54. </main>
  55. <send/>
  56. <init>
  57. <confdetllist>
  58. <confseq/>
  59. <confdd/>
  60. <starttm/>
  61. <endtm/>
  62. <confplce/>
  63. <cmt/>
  64. <title/>
  65. <confcontent/>
  66. </confdetllist>
  67. </init>
  68. <temp>
  69. <confdetlinfo/>
  70. </temp>
  71. </root>
  72. </instance>
  73. <script type="javascript" ev:event="xforms-ready">
  74. <![CDATA[
  75. var pCode = "'H01'"; // 조회할 CdGrupID 코드정보
  76. var dt = getCurrentDate();
  77. var sChkdd = getCurrentDate();
  78. var sCalcdd = fCalcdate(-30, dt);
  79. model.setValue(ipt_fromdd.attribute("ref"),sCalcdd );
  80. model.setValue(ipt_todd.attribute("ref"), dt);
  81. model.removeNodeset(grd_confatdlist.nodeset);
  82. model.removeNodeset(grd_confpatlist.nodeset);
  83. fDisabledCntrl(true);
  84. fSearch() ;
  85. ]]>
  86. </script>
  87. <submission id="TRMNW00001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/cmblist"/>
  88. <submission id="TRMNH07101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/confinfo"/>
  89. <submission id="TRMNH07102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata2" resultref="/root/main/confdetlinfo"/>
  90. <submission id="TRMNH07104" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata2" resultref="/root/main/confdetlinfo"/>
  91. <submission id="TXMNH07101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/temp"/>
  92. <submission id="TXMNH07102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/temp"/>
  93. </model>
  94. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  95. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  96. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  97. <script type="javascript" src="../../../emr/carecomweb/js/CareCom.js"/>
  98. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  99. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  100. <script type="javascript">
  101. <![CDATA[
  102. var curRow = -1;
  103. //조회버튼 눌렀을 때.
  104. function fSearch() {
  105. if(model.getValue("/root/main/cond/fromdd") == "" || model.getValue("/root/main/cond/todd") == ""){
  106. messageBox("조회기간을 입력해주십시오.", "I");
  107. return;
  108. }
  109. model.makeNode("/root/send/reqdata");
  110. model.copyNode("/root/send/reqdata", "/root/main/cond");
  111. submit("TRMNH07101");
  112. grd_conflist.row = curRow;
  113. }
  114. //상세조회(회의내역 선택시)
  115. function fSearchDetl() {
  116. model.makeNode("/root/send/reqdata2");
  117. model.makeValue("/root/send/reqdata2/confseq", grd_conflist.valueMatrix(grd_conflist.row, grd_conflist.colRef("confseq")));
  118. submit("TRMNH07102");
  119. }
  120. //저장
  121. function fSave() {
  122. model.makeNode("/root/send/savedata");
  123. model.copyNode("/root/send/savedata", "/root/main/confdetlinfo/confdetllist");
  124. model.makeValue("/root/send/savedata/confatdlist", getGridUpdateData(grd_confatdlist));
  125. model.makeValue("/root/send/savedata/confpatlist", getGridUpdateData(grd_confpatlist));
  126. submit("TXMNH07101");
  127. fSearch();
  128. if(curRow >= grd_conflist.fixedRows) {
  129. fSearchDetl();
  130. }
  131. }
  132. //초기화
  133. function fClear(){
  134. model.removeNodeset("/root/main/confdetlinfo");
  135. model.makeNode("/root/main/confdetlinfo/confdetllist");
  136. model.copyNode("/root/main/confdetlinfo/confdetllist", "/root/init/confdetllist");
  137. curRow = -1;
  138. model.refresh();
  139. }
  140. function fDisabledCntrl(flag) {
  141. ipt_confdd.disabled = flag;
  142. ipt_starttm.disabled = flag;
  143. ipt_endtm.disabled = flag;
  144. ipt_confplce.disabled = flag;
  145. tar_cmt.disabled = flag;
  146. ipt_title.disabled = flag;
  147. tar_confcontent.disabled = flag;
  148. btn_addattd.disabled = flag;
  149. btn_delattd.disabled = flag;
  150. btn_addpat.disabled = flag;
  151. btn_delpat.disabled = flag;
  152. btn_chngsize.disabled = flag;
  153. grd_confatdlist.disabled = flag;
  154. grd_confpatlist.disabled = flag;
  155. }
  156. function fCalcdate(calcn, calcd){
  157. calcd = calcd.toDate("YYYYMMDD");
  158. calcd = calcd.getAddDate(calcn , "D");
  159. calcd = calcd.getDateFormat("YYYYMMDD");
  160. return calcd;
  161. }
  162. function LPAD(s, c, n) {
  163. if (! s || ! c || s.length >= n) {
  164. return s;
  165. }
  166. var max = (n - s.length)/c.length;
  167. for (var i = 0; i < max; i++) {
  168. s = c + s;
  169. }
  170. return s;
  171. }
  172. function Getpatlist(){
  173. model.makeNode("/root/send/reqdata2");
  174. model.makeValue("/root/send/reqdata2/confseq", grd_conflist.valueMatrix(1, grd_conflist.colRef("confseq")));
  175. model.makeValue("/root/send/reqdata2/newflag", "Y");
  176. submit("TRMNH07104");
  177. model.makeNode("/root/main/confdetlinfo/confdetllist");
  178. model.copyNode("/root/main/confdetlinfo/confdetllist", "/root/init/confdetllist");
  179. model.setValue("/root/main/confdetlinfo/confdetllist/confdd", getCurrentDate());
  180. model.refresh();
  181. curRow = 1;
  182. for(var i = grd_confpatlist.fixedRows; i < grd_confpatlist.rows; i++) {
  183. grd_confpatlist.addStatus(i, "insert");
  184. }
  185. model.refresh();
  186. }
  187. ]]>
  188. </script>
  189. </xhtml:head>
  190. <xhtml:body style="font-family:돋움체; vertical-align:middle; margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  191. <group id="group3" style="left:0px; top:0px; width:1195px; height:776px; font-family:굴림; vertical-align:middle; ">
  192. <caption id="cpt_title" class="tit_1" style="left:0px; top:0px; width:145px; height:14px; font-family:돋움체; vertical-align:middle; ">다학제간치료계획</caption>
  193. <line id="line1" class="line_1" style="x1:0px; y1:110px; x2:495px; y2:110px; font-family:돋움체; "/>
  194. <caption id="caption1" class="tit_2" style="left:0px; top:96px; width:135px; height:13px; font-family:돋움체; ">회의내역</caption>
  195. <datagrid id="grd_conflist" nodeset="/root/main/confinfo/conflist" caption="순번^일자^제목" colsep="^" colwidth="0, 91, 383" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:115px; width:495px; height:660px; font-family:돋움체; ">
  196. <col ref="confseq" visibility="hidden"/>
  197. <col ref="confdd" type="inputdate" style="text-align:center; "/>
  198. <col ref="title"/>
  199. <script type="javascript" ev:event="ondblclick">
  200. <![CDATA[
  201. if(grd_conflist.isCell(event.target) && grd_conflist.mouseRow >= grd_conflist.fixedrows ) {
  202. fDisabledCntrl(false);
  203. fSearchDetl();
  204. curRow = grd_conflist.row;
  205. }
  206. ]]>
  207. </script>
  208. </datagrid>
  209. <group id="grp_sea" style="left:0px; top:20px; width:495px; height:65px; font-family:돋움체; vertical-align:top; ">
  210. <shape id="roundrect2" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:495px; height:65px; font-family:굴림; "/>
  211. <caption id="caption3" class="search_name" style="left:5px; top:10px; width:85px; height:17px; font-family:돋움체; ">조회기간:</caption>
  212. <input id="ipt_fromdd" ref="/root/main/cond/fromdd" class="input_s_essential" inputtype="date" style="left:90px; top:10px; width:95px; height:19px; font-family:굴림; "/>
  213. <input id="ipt_todd" ref="/root/main/cond/todd" class="input_s_essential" inputtype="date" style="left:200px; top:10px; width:95px; height:19px; font-family:굴림; "/>
  214. <caption id="caption4" style="left:183px; top:14px; width:20px; height:15px; font-family:굴림; text-align:center; ">~</caption>
  215. <line id="line13" class="line_4" style="x1:416px; y1:19px; x2:416px; y2:41px; "/>
  216. <button id="button3" class="btn1_letter2" style="left:430px; top:20px; width:56px; height:22px; font-family:굴림; ">
  217. <caption>조회</caption>
  218. <script type="javascript" ev:event="DOMActivate">
  219. <![CDATA[
  220. fDisabledCntrl(true);
  221. curRow = -1;
  222. fSearch() ;
  223. fClear();
  224. ]]>
  225. </script>
  226. </button>
  227. <caption id="caption2" class="search_name" style="left:5px; top:35px; width:92px; height:17px; font-family:돋움체; ">제 목:</caption>
  228. <input id="ipt_patnm" ref="/root/main/cond/title" class="input_search" style="left:90px; top:35px; width:270px; height:19px; ">
  229. <script type="javascript" ev:event="onkeyup">
  230. <![CDATA[
  231. ]]>
  232. </script>
  233. </input>
  234. </group>
  235. <caption id="caption5" class="tit_2" style="left:505px; top:21px; width:135px; height:13px; font-family:돋움체; ">회의 및 계획내역</caption>
  236. <line id="line2" class="line_1" style="x1:505px; y1:35px; x2:1190px; y2:35px; font-family:돋움체; "/>
  237. <button id="button1" class="btn4_letter2" style="left:1078px; top:13px; width:56px; height:22px; font-family:돋움체; ">
  238. <caption>저장</caption>
  239. <script type="javascript" ev:event="DOMActivate">
  240. <![CDATA[
  241. fSave();
  242. ]]>
  243. </script>
  244. </button>
  245. <button id="button2" class="btn4_letter2" style="left:1021px; top:13px; width:56px; height:22px; font-family:돋움체; ">
  246. <caption>삭제</caption>
  247. <script type="javascript" ev:event="DOMActivate">
  248. <![CDATA[
  249. var rtn = messageBox("팀회의 및 다학제간 치료계획내역을 정말로 삭제하시겠습니까?", "Q");
  250. if(rtn == "6") {
  251. model.makeValue("/root/send/savedata/confseq", ipt_confseq.value);
  252. model.makeValue("/root/send/savedata/delyn", "Y");
  253. submit("TXMNH07102");
  254. button3.dispatch("DOMActivate");
  255. }
  256. ]]>
  257. </script>
  258. </button>
  259. <button id="button4" class="btn4_letter2" style="left:963px; top:13px; width:56px; height:22px; font-family:돋움체; ">
  260. <caption>신규</caption>
  261. <script type="javascript" ev:event="DOMActivate">
  262. <![CDATA[
  263. fClear();
  264. fDisabledCntrl(false);
  265. Getpatlist();
  266. ]]>
  267. </script>
  268. </button>
  269. <line id="line8" class="line_2" style="x1:505px; y1:244px; x2:1188px; y2:244px; font-family:돋움체; "/>
  270. <button id="btn_addattd" class="btn2_letter2" style="left:1103px; top:43px; width:42px; height:19px; font-family:돋움체; ">
  271. <caption>추가</caption>
  272. <script type="javascript" ev:event="DOMActivate">
  273. <![CDATA[
  274. grd_confatdlist.addRow();
  275. ]]>
  276. </script>
  277. </button>
  278. <button id="btn_delattd" class="btn2_letter2" style="left:1147px; top:43px; width:42px; height:19px; font-family:돋움체; ">
  279. <caption>삭제</caption>
  280. <script type="javascript" ev:event="DOMActivate">
  281. <![CDATA[
  282. var status = grd_confatdlist.rowStatus(grd_confatdlist.row);
  283. if(status == "1" || status =="3") {
  284. grd_confatdlist.deleteRow(grd_confatdlist.row);
  285. } else {
  286. grd_confatdlist.rowStatus(grd_confatdlist.row) = "4";
  287. }
  288. ]]>
  289. </script>
  290. </button>
  291. <input id="ipt_confplce" ref="/root/main/confdetlinfo/confdetllist/confplce" navindex="4" style="left:592px; top:89px; width:278px; height:19px; font-family:돋움체; "/>
  292. <input id="ipt_starttm" ref="/root/main/confdetlinfo/confdetllist/starttm" navindex="2" format="hh:nn" validateformat="true" style="left:592px; top:65px; width:95px; height:19px; font-family:돋움체; "/>
  293. <textarea id="tar_cmt" ref="/root/main/confdetlinfo/confdetllist/cmt" navindex="5" style="left:592px; top:113px; width:278px; height:105px; font-family:돋움체; vertical-align:top; "/>
  294. <caption id="caption11" class="tit_2" style="left:877px; top:49px; width:135px; height:13px; font-family:돋움체; ">참석자 명단</caption>
  295. <textarea id="tar_confcontent" ref="/root/main/confdetlinfo/confdetllist/confcontent" navindex="7" style="left:592px; top:247px; width:598px; height:108px; font-family:돋움체; vertical-align:top; "/>
  296. <caption id="caption12" class="cell_1" style="left:505px; top:222px; width:84px; height:23px; font-family:돋움체; text-align:center; vertical-align:middle; ">제 목</caption>
  297. <datagrid id="grd_confatdlist" nodeset="/root/main/confdetlinfo/confatdlist" caption="참석자^부서^부서^caption1^caption2^caption3^confseq" colsep="^" colwidth="77, 51, 152, 100, 100, 100, 1" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:875px; top:65px; width:315px; height:153px; font-family:돋움체; ">
  298. <col ref="attendnm" type="inputbutton" style="text-align:center; "/>
  299. <col ref="inst" type="combo" style="text-align:center; ">
  300. <choices>
  301. <item>
  302. <label>본원</label>
  303. <value>031</value>
  304. </item>
  305. <item>
  306. <label>칠곡</label>
  307. <value>032</value>
  308. </item>
  309. </choices>
  310. </col>
  311. <col ref="deptnm" type="input" style="margin-left:5; "/>
  312. <col ref="deptcd" visibility="hidden"/>
  313. <col ref="attendid" visibility="hidden"/>
  314. <col ref="attendseq" visibility="hidden"/>
  315. <col ref="confseq" visibility="hidden"/>
  316. <script type="javascript" ev:event="onbuttonclick">
  317. <![CDATA[
  318. modal("SPZSU10103");
  319. var iParam = getParameter("SPZSU10103_");
  320. if(iParam != ""){
  321. model.removeNodeset("/root/hidden/onerowselect");
  322. model.makeNode("/root/hidden/onerowselect");
  323. setCSVToNode("/root/hidden/onerowselect", iParam);
  324. var row = grd_confatdlist.rows-grd_confatdlist.fixedRows;
  325. var nodePath = grd_confatdlist.nodeset;
  326. for(var i=1; i<=instance1.selectNodes("/root/hidden/onerowselect/list").length;i++){
  327. if(instance1.selectNodes(nodePath + "[attendnm='"+model.getValue("/root/hidden/onerowselect/list["+i+"]/usernm")+"']").length > 0){
  328. continue;
  329. }
  330. if(!isNull(grd_confatdlist.valueMatrix(row,grd_confatdlist.colRef("attendnm")))){
  331. grd_confatdlist.addRow();
  332. row++;
  333. }
  334. model.makeValue(nodePath + "["+row+"]/attendid", model.getValue("/root/hidden/onerowselect/list["+i+"]/userid") );
  335. model.setValue(nodePath + "["+row+"]/attendnm", model.getValue("/root/hidden/onerowselect/list["+i+"]/usernm") );
  336. model.setValue(nodePath + "["+row+"]/inst", model.getValue("/root/hidden/onerowselect/list["+i+"]/dutplceinstcd") );
  337. model.setValue(nodePath + "["+row+"]/deptcd", model.getValue("/root/hidden/onerowselect/list["+i+"]/dutplcecd") );
  338. model.setValue(nodePath + "["+row+"]/deptnm", model.getValue("/root/hidden/onerowselect/list["+i+"]/dutplcenm") );
  339. }
  340. clearParameter("SPZSU10103_");
  341. }
  342. ]]>
  343. </script>
  344. </datagrid>
  345. <caption id="caption13" class="cell_1" style="left:505px; top:246px; width:84px; height:112px; font-family:돋움체; text-align:center; vertical-align:middle; ">회의내용</caption>
  346. <input id="ipt_confdd" ref="/root/main/confdetlinfo/confdetllist/confdd" navindex="1" inputtype="date" style="left:592px; top:41px; width:95px; height:19px; font-family:돋움체; "/>
  347. <input id="ipt_confseq" ref="/root/main/confdetlinfo/confdetllist/confseq" visibility="hidden" style="left:775px; top:41px; width:95px; height:19px; font-family:돋움체; "/>
  348. <line id="line3" class="line_2" style="x1:505px; y1:62px; x2:870px; y2:62px; font-family:돋움체; "/>
  349. <line id="line4" class="line_2" style="x1:505px; y1:86px; x2:870px; y2:86px; font-family:돋움체; "/>
  350. <caption id="caption8" class="cell_1" style="left:690px; top:64px; width:84px; height:23px; font-family:돋움체; text-align:center; vertical-align:middle; ">종료시간</caption>
  351. <input id="ipt_endtm" ref="/root/main/confdetlinfo/confdetllist/endtm" navindex="3" format="hh:nn" validateformat="true" style="left:775px; top:65px; width:95px; height:19px; font-family:돋움체; "/>
  352. <line id="line5" class="line_2" style="x1:505px; y1:110px; x2:870px; y2:110px; font-family:돋움체; "/>
  353. <line id="line6" class="line_2" style="x1:505px; y1:220px; x2:1188px; y2:220px; font-family:돋움체; "/>
  354. <line id="line7" class="line_3" style="x1:875px; y1:63px; x2:1190px; y2:63px; font-family:돋움체; "/>
  355. <input id="ipt_title" ref="/root/main/confdetlinfo/confdetllist/title" navindex="6" style="left:592px; top:223px; width:598px; height:19px; font-family:돋움체; "/>
  356. <caption id="caption6" class="cell_1" style="left:505px; top:40px; width:84px; height:23px; font-family:돋움체; text-align:center; vertical-align:middle; ">일 자</caption>
  357. <caption id="caption7" class="cell_1" style="left:505px; top:64px; width:84px; height:23px; font-family:돋움체; text-align:center; vertical-align:middle; ">시작시간</caption>
  358. <caption id="caption9" class="cell_1" style="left:505px; top:88px; width:84px; height:23px; font-family:돋움체; text-align:center; vertical-align:middle; ">장 소</caption>
  359. <caption id="caption10" class="cell_1" style="left:505px; top:112px; width:84px; height:109px; font-family:돋움체; text-align:center; vertical-align:middle; ">비 고</caption>
  360. <line id="line9" class="line_1" style="x1:505px; y1:380px; x2:1190px; y2:380px; font-family:돋움체; "/>
  361. <datagrid id="grd_confpatlist" nodeset="/root/main/confdetlinfo/confpatlist" class="datagrid2" caption="병실^등록번호^환자명^S/A^진료과^주치의^진단명^치료목표^상태&#xA;/제공서비스^향후 계획&#xA;/필요서비스^caption1^caption2^caption3" colsep="^" colwidth="40, 60, 60, 41, 84, 61, 185, 120, 200, 200, 100, 100, 100" explorerbar="sort" frozencols="3" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:505px; top:385px; width:685px; height:390px; font-family:돋움체; ">
  362. <col ref="roomcd" style="text-align:center; "/>
  363. <col ref="pid" style="text-align:center; "/>
  364. <col ref="patnm" style="text-align:center; "/>
  365. <col ref="sa" style="text-align:center; "/>
  366. <col ref="orddeptnm"/>
  367. <col ref="orddrnm"/>
  368. <col ref="diagnm"/>
  369. <col ref="careaim" type="inputbutton"/>
  370. <col ref="statservice" type="inputbutton"/>
  371. <col ref="needservice" type="inputbutton"/>
  372. <col ref="cretdd" visibility="hidden"/>
  373. <col ref="crettm" visibility="hidden"/>
  374. <col ref="confseq" visibility="hidden"/>
  375. <script type="javascript" ev:event="onbuttonclick">
  376. <![CDATA[
  377. if(grd_confpatlist.mouseRow >= grd_confpatlist.fixedrows ) {
  378. var careaim = grd_confpatlist.valueMatrix(grd_confpatlist.row, grd_confpatlist.colRef("careaim"));
  379. var statservice = grd_confpatlist.valueMatrix(grd_confpatlist.row, grd_confpatlist.colRef("statservice"));
  380. var needservice = grd_confpatlist.valueMatrix(grd_confpatlist.row, grd_confpatlist.colRef("needservice"));
  381. model.setValue("/root/main/cond/careaim", careaim);
  382. model.setValue("/root/main/cond/statservice", statservice);
  383. model.setValue("/root/main/cond/needservice", needservice);
  384. tar_careaim.refresh();
  385. tar_statservice.refresh();
  386. tar_needservice.refresh();
  387. group1.visible = true;
  388. }
  389. ]]>
  390. </script>
  391. <script type="javascript" ev:event="ondblclick">
  392. <![CDATA[
  393. var col = grd_confpatlist.col;
  394. if(grd_confpatlist.isCell(event.target) && grd_confpatlist.mouseRow >= grd_confpatlist.fixedrows ) {
  395. if(col != grd_confpatlist.colRef("careaim") && col != grd_confpatlist.colRef("statservice") && col != grd_confpatlist.colRef("needservice") ) {
  396. var careaim = grd_confpatlist.valueMatrix(grd_confpatlist.row, grd_confpatlist.colRef("careaim"));
  397. var statservice = grd_confpatlist.valueMatrix(grd_confpatlist.row, grd_confpatlist.colRef("statservice"));
  398. var needservice = grd_confpatlist.valueMatrix(grd_confpatlist.row, grd_confpatlist.colRef("needservice"));
  399. model.setValue("/root/main/cond/careaim", careaim);
  400. model.setValue("/root/main/cond/statservice", statservice);
  401. model.setValue("/root/main/cond/needservice", needservice);
  402. tar_careaim.refresh();
  403. tar_statservice.refresh();
  404. tar_needservice.refresh();
  405. group1.visible = true;
  406. }
  407. }
  408. ]]>
  409. </script>
  410. <script type="javascript" ev:event="onaftersort">
  411. <![CDATA[
  412. grd_confpatlist.gridToInstance();
  413. ]]>
  414. </script>
  415. </datagrid>
  416. <button id="btn_addpat" class="btn2_letter2" style="left:1101px; top:360px; width:42px; height:19px; font-family:돋움체; ">
  417. <caption>추가</caption>
  418. <script type="javascript" ev:event="DOMActivate">
  419. <![CDATA[
  420. modal("SPMNH07100", "", event.clientX-539, event.clientY - 350);
  421. ]]>
  422. </script>
  423. </button>
  424. <button id="btn_chngsize" class="btn2_letter5" visibility="hidden" style="left:1024px; top:360px; width:75px; height:19px; font-family:돋움체; ">
  425. <caption>확대/축소</caption>
  426. <script type="javascript" ev:event="DOMActivate">
  427. <![CDATA[
  428. ]]>
  429. </script>
  430. </button>
  431. <caption id="caption14" class="tit_2" style="left:505px; top:366px; width:135px; height:14px; font-family:돋움체; ">호스피스 환자명단</caption>
  432. <button id="btn_delpat" class="btn2_letter2" style="left:1145px; top:360px; width:42px; height:19px; font-family:돋움체; ">
  433. <caption>삭제</caption>
  434. <script type="javascript" ev:event="DOMActivate">
  435. <![CDATA[
  436. var status = grd_confpatlist.rowStatus(grd_confpatlist.row);
  437. if(status == "1" || status =="3") {
  438. grd_confpatlist.deleteRow(grd_confpatlist.row);
  439. } else {
  440. grd_confpatlist.rowStatus(grd_confpatlist.row) = "4";
  441. }
  442. ]]>
  443. </script>
  444. </button>
  445. <button id="button7" class="btn4_letter2" style="left:1135px; top:13px; width:56px; height:22px; font-family:돋움체; ">
  446. <caption>출력</caption>
  447. <script type="javascript" ev:event="DOMActivate">
  448. <![CDATA[
  449. var attendnm;
  450. var inst;
  451. var deptnm;
  452. var attlist = "";
  453. var rows = grd_confatdlist.rows - grd_confatdlist.fixedRows;
  454. for(var i = grd_confatdlist.fixedRows; i < grd_confatdlist.rows; i++) {
  455. attendnm = grd_confatdlist.valueMatrix(i, grd_confatdlist.colRef("attendnm"));
  456. inst = grd_confatdlist.labelMatrix(i, grd_confatdlist.colRef("inst"));
  457. deptnm = grd_confatdlist.valueMatrix(i, grd_confatdlist.colRef("deptnm"));
  458. //공백 특수문자처리함.(자리수 맞추기위해);
  459. attlist += LPAD(attendnm, " ", 3) + " " + LPAD(inst, " " , 2) + " " + deptnm;
  460. if(i != grd_confatdlist.rows - 1) {
  461. attlist += "\n";
  462. }
  463. }
  464. model.makeValue("/root/main/confdetlinfo/confdetllist/attdlist", attlist);
  465. exeReportPreview("RPMNH07100", "XMLSTR");
  466. ]]>
  467. </script>
  468. </button>
  469. <line id="line10" class="line_3" style="x1:505px; y1:357px; x2:1190px; y2:357px; font-family:돋움체; "/>
  470. <group id="group1" visibility="hidden" style="left:505px; top:140px; width:685px; height:620px; border-style:solid; ">
  471. <textarea id="tar_careaim" ref="/root/main/cond/careaim" style="left:85px; top:30px; width:595px; height:133px; vertical-align:top; "/>
  472. <textarea id="tar_statservice" ref="/root/main/cond/statservice" style="left:85px; top:168px; width:595px; height:282px; vertical-align:top; "/>
  473. <caption id="caption17" class="cell_1" style="left:0px; top:454px; width:84px; height:139px; font-family:돋움체; text-align:center; vertical-align:middle; ">
  474. <![CDATA[향후계획/
  475. 필요서비스]]>
  476. </caption>
  477. <textarea id="tar_needservice" ref="/root/main/cond/needservice" style="left:85px; top:455px; width:595px; height:135px; vertical-align:top; "/>
  478. <line id="line11" class="line_2" style="x1:0px; y1:165px; x2:680px; y2:165px; font-family:돋움체; "/>
  479. <caption id="caption15" class="cell_1" style="left:0px; top:30px; width:84px; height:136px; font-family:돋움체; text-align:center; vertical-align:middle; ">치료목표</caption>
  480. <line id="line12" class="line_2" style="x1:0px; y1:452px; x2:680px; y2:452px; font-family:돋움체; "/>
  481. <line id="line14" class="line_3" style="x1:0px; y1:592px; x2:680px; y2:592px; font-family:돋움체; "/>
  482. <caption id="caption16" class="cell_1" style="left:0px; top:167px; width:84px; height:286px; font-family:돋움체; text-align:center; vertical-align:middle; ">
  483. <![CDATA[상태/
  484. 제공서비스]]>
  485. </caption>
  486. <button id="button5" class="btn4_letter2" style="left:570px; top:595px; width:56px; height:22px; font-family:돋움체; ">
  487. <caption>확인</caption>
  488. <script type="javascript" ev:event="DOMActivate">
  489. <![CDATA[
  490. var careaim = model.getValue(tar_careaim.attribute("ref"));
  491. var statservice = model.getValue(tar_statservice.attribute("ref"));
  492. var needservice = model.getValue(tar_needservice.attribute("ref"));
  493. grd_confpatlist.valueMatrix(grd_confpatlist.row, grd_confpatlist.colRef("careaim")) = careaim;
  494. grd_confpatlist.valueMatrix(grd_confpatlist.row, grd_confpatlist.colRef("statservice")) = statservice;
  495. grd_confpatlist.valueMatrix(grd_confpatlist.row, grd_confpatlist.colRef("needservice")) = needservice;
  496. var status = grd_confpatlist.rowStatus(grd_confpatlist.row);
  497. if(status == "0") {
  498. grd_confpatlist.rowStatus(grd_confpatlist.row) = "2";
  499. }
  500. group1.visible = false;
  501. ]]>
  502. </script>
  503. </button>
  504. <button id="button6" class="btn4_letter2" style="left:625px; top:595px; width:56px; height:22px; font-family:돋움체; ">
  505. <caption>취소</caption>
  506. <script type="javascript" ev:event="DOMActivate">
  507. <![CDATA[
  508. group1.visible = false;
  509. ]]>
  510. </script>
  511. </button>
  512. <line id="line15" class="line_1" style="x1:-1px; y1:25px; x2:679px; y2:25px; font-family:돋움체; "/>
  513. <caption id="caption18" class="tit_2" style="left:-1px; top:11px; width:205px; height:15px; ">치료목표/제공서비스/필요서비스</caption>
  514. </group>
  515. </group>
  516. </xhtml:body>
  517. </xhtml:html>