SMMNH07000_24시간 전화상담.xrw 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478
  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>24시간 전화상담</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <cond>
  11. <fromdd/>
  12. <todd/>
  13. <patnm/>
  14. </cond>
  15. <cnstinfo>
  16. </cnstinfo>
  17. <cnst>
  18. <cnstdd/>
  19. <patnm/>
  20. <sex/>
  21. <age/>
  22. <relation/>
  23. <content/>
  24. <content2/>
  25. <contentid/>
  26. <rmk/>
  27. <chkall/>
  28. <seqno/>
  29. <diagcd1/>
  30. <diagcd2/>
  31. </cnst>
  32. </main>
  33. <send>
  34. <req/>
  35. <save/>
  36. </send>
  37. <init>
  38. </init>
  39. </root>
  40. </instance>
  41. <script type="javascript" ev:event="xforms-ready">
  42. <![CDATA[
  43. var pCode = "'H01'"; // 조회할 CdGrupID 코드정보
  44. var dt = getCurrentDate();
  45. fGetNursHardCdInfo(pCode, dt);
  46. model.makeValue("/root/send/refflag", "1");//상위 진단 조회
  47. submit("TRMNH02905", false);
  48. model.setValue(ipt_fromdd.attribute("ref"), dt );
  49. model.setValue(ipt_todd.attribute("ref"), dt);
  50. model.refresh();
  51. fSearch() ;
  52. ]]>
  53. </script>
  54. <submission id="TRMNW00001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/cmblist"/>
  55. <submission id="TRMNH02905" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/diagsuplist"/>
  56. <submission id="TRMNH02906" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/diaglowlist"/>
  57. <submission id="TRMNH07000" mediatype="application/x-www-form-urlencoded" method="urlencoded-post" ref="/root/send/req" replace="instance" resultref="/root/main/cnstinfo"/>
  58. <submission id="TXMNH07000" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save/saveinfo" resultref="/root/temp"/>
  59. </model>
  60. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  61. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  62. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  63. <script type="javascript" src="../../../emr/carecomweb/js/CareCom.js"/>
  64. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  65. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  66. <script type="javascript">
  67. <![CDATA[
  68. function fSearch() {
  69. if(model.getValue("/root/main/cond/fromdd") == "" || model.getValue("/root/main/cond/todd") == ""){
  70. messageBox("조회기간을 입력해주십시오.", "I");
  71. return;
  72. }
  73. model.makeNode("/root/send/req");
  74. model.copyNode("/root/send/req", "/root/main/cond");
  75. submit("TRMNH07000");
  76. fClear();
  77. }
  78. function fCheck(chk){
  79. if(isSearchString(chk, "9")) {
  80. ipt_content2.disabled = false;
  81. }else{
  82. ipt_content2.value = "";
  83. ipt_content2.disabled = true;
  84. }
  85. }
  86. function fClear(){
  87. model.setValue("/root/main/cnst/seqno","");
  88. model.setValue("/root/main/cnst/cnstdd","");
  89. model.setValue("/root/main/cnst/patnm","");
  90. model.setValue("/root/main/cnst/sex","");
  91. model.setValue("/root/main/cnst/age","");
  92. model.setValue("/root/main/cnst/relation","");
  93. model.setValue("/root/main/cnst/diagcd1","");
  94. model.setValue("/root/main/cnst/diagcd2","");
  95. model.setValue("/root/main/cnst/content","");
  96. model.setValue("/root/main/cnst/contentid","");
  97. model.setValue("/root/main/cnst/content2","");
  98. model.setValue("/root/main/cnst/rmk","");
  99. model.setValue("/root/main/cnst/chkall","");
  100. ipt_content2.disabled = true;
  101. model.removeNodeset("/root/init/diaglowlist");
  102. model.refresh();
  103. }
  104. ]]>
  105. </script>
  106. </xhtml:head>
  107. <xhtml:body style="font-family:굴림, Arial; vertical-align:middle; margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  108. <group id="group3" style="left:0px; top:0px; width:1195px; height:776px; font-family:굴림; vertical-align:middle; ">
  109. <caption id="cpt_title" class="tit_1" style="left:0px; top:0px; width:145px; height:14px; font-family:굴림; vertical-align:middle; ">24시간 전화상담</caption>
  110. <group id="grp_sea" style="left:0px; top:20px; width:1195px; height:40px; font-family:굴림; vertical-align:top; ">
  111. <shape id="roundrect2" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1195px; height:40px; font-family:굴림; "/>
  112. <caption id="caption3" class="search_name" style="left:15px; top:10px; width:91px; height:17px; font-family:굴림; ">조회기간 :</caption>
  113. <input id="ipt_fromdd" ref="/root/main/cond/fromdd" class="input_s_essential" inputtype="date" style="left:110px; top:10px; width:95px; height:19px; font-family:굴림; "/>
  114. <input id="ipt_todd" ref="/root/main/cond/todd" class="input_s_essential" inputtype="date" style="left:220px; top:10px; width:95px; height:19px; font-family:굴림; "/>
  115. <caption id="caption4" style="left:203px; top:14px; width:20px; height:15px; font-family:굴림; text-align:center; ">~</caption>
  116. <line id="line13" class="line_4" style="x1:1046px; y1:9px; x2:1046px; y2:31px; "/>
  117. <button id="button3" class="btn1_letter2" navindex="7" style="left:1060px; top:10px; width:56px; height:22px; font-family:굴림; ">
  118. <caption>조회</caption>
  119. <script type="javascript" ev:event="DOMActivate">
  120. <![CDATA[
  121. fSearch() ;
  122. ]]>
  123. </script>
  124. </button>
  125. <caption id="caption1" class="search_name" style="left:360px; top:10px; width:75px; height:17px; font-family:굴림; ">환자명 :</caption>
  126. <input id="ipt_patnm" ref="/root/main/cond/patnm" style="left:440px; top:10px; width:100px; height:19px; "/>
  127. </group>
  128. <button id="button1" class="btn1_letter2" navindex="7" style="left:1120px; top:30px; width:56px; height:22px; font-family:굴림; ">
  129. <caption>엑셀</caption>
  130. <script type="javascript" ev:event="DOMActivate">
  131. <![CDATA[
  132. var fileName = window.fileDialog("save", ",", false, "호스피스 24시간 전화상담", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  133. grd_cnstinfo.saveExcel(fileName, "sheetname");
  134. ]]>
  135. </script>
  136. </button>
  137. <datagrid id="grd_cnstinfo" nodeset="/root/main/cnstinfo/cnstlist" visibility="visible" autoresize="true" caption="seqno^상담일자^환자명^성별^나이^환자와의 관계^진단명^진단명^상담내용^비고^contentid^content2^chkall^caption2^caption3^dschrecflag" colsep="^" colwidth="22, 100, 105, 45, 45, 105, 85, 175, 340, 150, 100, 100, 100, 100, 100" explorerbar="sort" frozencols="2" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="2" ref="/root/main/cnstinfo/cnstlist" style="left:0px; top:70px; width:1195px; height:600px; font-family:굴림; vertical-align:middle; ">
  138. <col ref="seqno" visibility="hidden"/>
  139. <col ref="cnstdd" format="yyyy-mm-dd" style="text-align:center; "/>
  140. <col ref="patnm" style="text-align:center; "/>
  141. <col ref="sex" style="text-align:center; "/>
  142. <col ref="age" style="text-align:center; "/>
  143. <col disabled="true" ref="relation" type="combo" style="text-align:center; ">
  144. <choices>
  145. <itemset nodeset="/root/init/codeinfo/codelist">
  146. <label ref="cdnm"/>
  147. <value ref="cdid"/>
  148. </itemset>
  149. </choices>
  150. </col>
  151. <col disabled="true" ref="diagnm1" style="text-align:left; "/>
  152. <col disabled="true" ref="diagnm2" style="text-align:left; "/>
  153. <col ref="content" style="text-align:left; "/>
  154. <col ref="rmk" style="text-align:left; "/>
  155. <col ref="contentid" visibility="hidden"/>
  156. <col ref="content2" visibility="hidden"/>
  157. <col ref="chkall" visibility="hidden"/>
  158. <col ref="diagcd1" visibility="hidden"/>
  159. <col ref="diagcd2" visibility="hidden"/>
  160. <script type="javascript" ev:event="ondblclick">
  161. <![CDATA[
  162. var row= grd_cnstinfo.row;
  163. if(grd_cnstinfo.isCell(event.target) && grd_cnstinfo.mouseRow >= grd_cnstinfo.fixedrows){
  164. var chk = model.getValue(grd_cnstinfo.nodeset + "[" + row + "]/contentid");
  165. var diagcd1 = model.getValue(grd_cnstinfo.nodeset + "[" + row + "]/diagcd1");
  166. model.removenode("/root/send");
  167. model.makeValue("/root/send/diagcd1", diagcd1);
  168. model.makeValue("/root/send/refflag", "2");//하위 진단 조회
  169. submit("TRMNH02906", false);
  170. cmb_diagcd2.refresh();
  171. model.copyNode("/root/main/cnst", grd_cnstinfo.nodeset + "[" + row + "]");
  172. fCheck(chk);
  173. }
  174. model.refresh();
  175. ]]>
  176. </script>
  177. <script type="javascript" ev:event="onaftersort">
  178. <![CDATA[
  179. grd_cnstinfo.gridToInstance();
  180. ]]>
  181. </script>
  182. </datagrid>
  183. <line id="line4" class="line_1" style="x1:0px; y1:65px; x2:1195px; y2:65px; font-family:굴림; "/>
  184. <line id="line1" class="line_1" style="x1:0px; y1:695px; x2:1194px; y2:695px; "/>
  185. <caption id="caption2" class="tit_2" style="left:5px; top:680px; width:145px; height:13px; font-family:굴림; ">24시간 전화상담 등록</caption>
  186. <button id="btn_newpat" class="btn5_letter4" style="left:160px; top:675px; width:64px; height:19px; ">
  187. <caption>신규등록</caption>
  188. <script type="javascript" ev:event="DOMActivate">
  189. <![CDATA[
  190. fClear();
  191. ]]>
  192. </script>
  193. </button>
  194. <button id="button2" class="btn5_letter2" navindex="22" style="left:1105px; top:675px; width:42px; height:19px; ">
  195. <caption>저장</caption>
  196. <script type="javascript" ev:event="DOMActivate">
  197. <![CDATA[
  198. var chk = chk_content.value;
  199. var content = "";
  200. var content2 = "";
  201. if(model.getValue("/root/main/cnst/cnstdd") == "" || model.getValue("/root/main/cnst/cnstdd") == null){
  202. messageBox("상담일자를 입력해주십시오.", "I");
  203. return;
  204. }
  205. if(model.getValue("/root/main/cnst/patnm") == "" || model.getValue("/root/main/cnst/patnm") == null){
  206. messageBox("환자명을 입력해주십시오.", "I");
  207. return;
  208. }
  209. if(model.getValue("/root/main/cnst/contentid") == "" || model.getValue("/root/main/cnst/contentid") == null){
  210. messageBox("상담내용을 1가지라도 선택해주십시오.", "I");
  211. return;
  212. }
  213. if(model.getValue("/root/main/cnst/diagcd1") == "" || model.getValue("/root/main/cnst/diagcd1") == null){
  214. messageBox("진단명을 선택해주십시오.", "I");
  215. return;
  216. }
  217. var rtnval = messageBox("저장 하시겠습니까?", "Q");
  218. if(rtnval != "6") {
  219. return "false";
  220. }
  221. if(isSearchString(chk, "1")) {
  222. content = chk_content.item(0).label;
  223. }
  224. if(isSearchString(chk, "2")) {
  225. if(content == ""){
  226. content = chk_content.item(1).label;
  227. }else{
  228. content = content + "," + chk_content.item(1).label;
  229. }
  230. }
  231. if(isSearchString(chk, "3")) {
  232. if(content == ""){
  233. content = chk_content.item(2).label;
  234. }else{
  235. content = content + "," + chk_content.item(2).label;
  236. }
  237. }
  238. if(isSearchString(chk, "4")) {
  239. if(content == ""){
  240. content = chk_content.item(3).label;
  241. }else{
  242. content = content + "," + chk_content.item(3).label;
  243. }
  244. }
  245. if(isSearchString(chk, "5")) {
  246. if(content == ""){
  247. content = chk_content.item(4).label;
  248. }else{
  249. content = content + "," + chk_content.item(4).label;
  250. }
  251. }
  252. if(isSearchString(chk, "9")) {
  253. if(model.getValue("/root/main/cnst/content2") != ""){
  254. content2 = chk_content.item(5).label + "(" + model.getValue("/root/main/cnst/content2") + ")";
  255. }else{
  256. content2 = chk_content.item(5).label
  257. }
  258. if(content == ""){
  259. content = content2;
  260. }else{
  261. content = content + "," + content2;
  262. }
  263. }
  264. if(model.getValue("/root/main/cnst/seqno") == "" || model.getValue("/root/main/cnst/seqno") == null){
  265. model.makeValue("/root/main/cnst/setflag","I");
  266. }else{
  267. model.makeValue("/root/main/cnst/setflag","U");
  268. }
  269. model.setValue("/root/main/cnst/content",content);
  270. model.makeNode("/root/send/save/saveinfo");
  271. model.copyNode("/root/send/save/saveinfo","/root/main/cnst");
  272. if(submit("TXMNH07000") == true){
  273. fSearch() ;
  274. }
  275. ]]>
  276. </script>
  277. </button>
  278. <caption id="caption14" class="cell_1" style="left:0px; top:700px; width:89px; height:23px; text-align:center; vertical-align:middle; ">상담일자</caption>
  279. <input id="ipt_cnstdd" ref="/root/main/cnst/cnstdd" class="input_default" navindex="1" editable="false" inputtype="date" maxlength="10" format="yyyy-mm-dd" style="left:91px; top:702px; width:116px; height:19px; "/>
  280. <caption id="caption5" class="cell_1" style="left:210px; top:700px; width:89px; height:23px; text-align:center; vertical-align:middle; ">환자명</caption>
  281. <input id="input1" ref="/root/main/cnst/patnm" class="input_default" navindex="2" style="left:301px; top:702px; width:110px; height:19px; "/>
  282. <caption id="caption6" class="cell_1" style="left:415px; top:700px; width:89px; height:23px; text-align:center; vertical-align:middle; ">성별</caption>
  283. <select1 id="cmb_sex" ref="/root/main/cnst/sex" class="combo_default" navindex="3" appearance="minimal" style="left:506px; top:702px; width:56px; height:19px; ">
  284. <choices>
  285. <item>
  286. <label>F</label>
  287. <value>F</value>
  288. </item>
  289. <item>
  290. <label>M</label>
  291. <value>M</value>
  292. </item>
  293. </choices>
  294. </select1>
  295. <caption id="caption7" class="cell_1" style="left:565px; top:700px; width:89px; height:23px; text-align:center; vertical-align:middle; ">나이</caption>
  296. <input id="ipt_age" ref="/root/main/cnst/age" class="input_default" navindex="4" imemode="disabled" maxlength="3" format="999" style="left:656px; top:702px; width:71px; height:19px; "/>
  297. <caption id="caption8" class="cell_1" style="left:730px; top:700px; width:89px; height:23px; text-align:center; vertical-align:middle; ">환자와의 관계</caption>
  298. <select1 id="cmb_relation" ref="/root/main/cnst/relation" class="combo_default" navindex="5" appearance="minimal" style="left:821px; top:702px; width:165px; height:19px; ">
  299. <choices>
  300. <itemset nodeset="/root/init/codeinfo/codelist">
  301. <label ref="cdnm"/>
  302. <value ref="cdid"/>
  303. </itemset>
  304. </choices>
  305. </select1>
  306. <caption id="caption9" class="cell_1" style="left:730px; top:725px; width:89px; height:23px; text-align:center; vertical-align:middle; ">진단명</caption>
  307. <caption id="caption10" class="cell_1" style="left:0px; top:725px; width:89px; height:23px; text-align:center; vertical-align:middle; ">상담내용</caption>
  308. <line id="line2" class="line_2" style="x1:0px; y1:723px; x2:1194px; y2:723px; "/>
  309. <select id="chk_content" ref="/root/main/cnst/contentid" navindex="6" overflow="visible" appearance="full" cellspacing="20" cols="7" style="left:91px; top:729px; width:634px; height:20px; border-style:none; ">
  310. <choices>
  311. <item>
  312. <label>호스피스 병동안내 및 입실절차</label>
  313. <value>1</value>
  314. </item>
  315. <item>
  316. <label>입원기간</label>
  317. <value>2</value>
  318. </item>
  319. <item>
  320. <label>비용</label>
  321. <value>3</value>
  322. </item>
  323. <item>
  324. <label>간병인 여부</label>
  325. <value>4</value>
  326. </item>
  327. <item>
  328. <label>타기관 정보제공</label>
  329. <value>5</value>
  330. </item>
  331. <item>
  332. <label>기타</label>
  333. <value>9</value>
  334. </item>
  335. </choices>
  336. <script type="javascript" ev:event="xforms-value-changed">
  337. <![CDATA[
  338. var chk = chk_content.value;
  339. fCheck(chk);
  340. ]]>
  341. </script>
  342. </select>
  343. <caption id="caption11" class="cell_1" style="left:0px; top:750px; width:89px; height:23px; text-align:center; vertical-align:middle; ">상담내용(기타)</caption>
  344. <input id="ipt_content2" ref="/root/main/cnst/content2" class="input_default" disabled="true" navindex="9" maxlength="500" style="left:91px; top:752px; width:636px; height:19px; "/>
  345. <line id="line3" class="line_2" style="x1:0px; y1:748px; x2:1194px; y2:748px; "/>
  346. <caption id="caption12" class="cell_1" style="left:730px; top:750px; width:89px; height:23px; text-align:center; vertical-align:middle; ">비고</caption>
  347. <input id="ipt_rmk" ref="/root/main/cnst/rmk" class="input_default" navindex="10" maxlength="300" style="left:821px; top:752px; width:370px; height:19px; "/>
  348. <line id="line5" class="line_2" style="x1:0px; y1:773px; x2:1194px; y2:773px; "/>
  349. <bool id="bool1" checkvalue="Y,N" ref="/root/main/cnst/chkall" style="left:70px; top:727px; width:20px; height:20px; ">
  350. <script type="javascript" ev:event="xforms-value-changed">
  351. <![CDATA[
  352. var i = 0;
  353. if(model.getValue("/root/main/cnst/chkall") == "Y"){
  354. for(i=0; i<chk_content.length; i++)
  355. {
  356. chk_content.select(i);
  357. }
  358. }else{
  359. for(i=0; i<chk_content.length; i++)
  360. {
  361. chk_content.deselect(i);
  362. }
  363. }
  364. chk_content.refresh();
  365. ]]>
  366. </script>
  367. </bool>
  368. <input id="ipt_content" ref="/root/main/cnst/content" visibility="hidden" style="left:1010px; top:702px; width:35px; height:19px; "/>
  369. <button id="button4" class="btn5_letter2" navindex="22" style="left:1150px; top:675px; width:42px; height:19px; ">
  370. <caption>삭제</caption>
  371. <script type="javascript" ev:event="DOMActivate">
  372. <![CDATA[
  373. if(model.getValue("/root/main/cnst/seqno") == "" || model.getValue("/root/main/cnst/seqno") == null){
  374. messageBox("삭제할 내역이 없습니다.", "I");
  375. return;
  376. }
  377. var rtnval = messageBox("삭제 하시겠습니까?", "Q");
  378. if(rtnval != "6") {
  379. return "false";
  380. }
  381. model.makeValue("/root/main/cnst/setflag","D");
  382. model.makeNode("/root/send/save/saveinfo");
  383. model.copyNode("/root/send/save/saveinfo","/root/main/cnst");
  384. if(submit("TXMNH07000") == true){
  385. fSearch() ;
  386. }
  387. ]]>
  388. </script>
  389. </button>
  390. <input id="ipt_seqno" ref="/root/main/cnst/seqno" visibility="hidden" style="left:990px; top:702px; width:15px; height:19px; "/>
  391. <select1 id="cmb_diagcd1" ref="/root/main/cnst/diagcd1" navindex="7" appearance="minimal" style="left:821px; top:727px; width:165px; height:19px; ">
  392. <choices>
  393. <itemset nodeset="/root/init/diagsuplist">
  394. <label ref="cdnm"/>
  395. <value ref="cdid"/>
  396. </itemset>
  397. </choices>
  398. <script type="javascript" ev:event="xforms-value-changed">
  399. <![CDATA[
  400. var diagcd1 = model.getValue("/root/main/cnst/diagcd1");
  401. model.removenode("/root/send");
  402. model.makeValue("/root/send/diagcd1", diagcd1);
  403. model.makeValue("/root/send/refflag", "2");//하위 진단 조회
  404. submit("TRMNH02906", false);
  405. cmb_diagcd2.refresh();
  406. ]]>
  407. </script>
  408. </select1>
  409. <select1 id="cmb_diagcd2" ref="/root/main/cnst/diagcd2" navindex="8" appearance="minimal" style="left:990px; top:727px; width:200px; height:19px; ">
  410. <choices>
  411. <itemset nodeset="/root/init/diaglowlist">
  412. <label ref="cdnm"/>
  413. <value ref="cdid"/>
  414. </itemset>
  415. </choices>
  416. </select1>
  417. </group>
  418. </xhtml:body>
  419. </xhtml:html>