SMPIJ02600_메세지현황.xrw 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374
  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. <send>
  10. <fromdd/>
  11. <todd/>
  12. <pid/>
  13. <chkflag>1</chkflag>
  14. <judgrid/>
  15. <updatedata/>
  16. <sendflag/>
  17. <chkdate>2</chkdate>
  18. </send>
  19. <main>
  20. <list1>
  21. <grdsendmsglist>
  22. <ordtype/>
  23. <kindflag/>
  24. <sendmsg/>
  25. <recvmsg/>
  26. </grdsendmsglist>
  27. <sendmsginfo/>
  28. </list1>
  29. <msginfo>
  30. <sendmsg/>
  31. <msgwrtedd/>
  32. <recvmsg/>
  33. <recvcnfmyn/>
  34. </msginfo>
  35. </main>
  36. <init>
  37. <judgrid>0</judgrid>
  38. <openchk>
  39. <refyn/>
  40. <pid/>
  41. <orddd/>
  42. <cretno/>
  43. <mskind/>
  44. <orddeptcd/>
  45. <orddrid/>
  46. <orddrnm/>
  47. <ordtype/>
  48. </openchk>
  49. </init>
  50. <hidden>
  51. <tmp/>
  52. <tmpsendmsginfo/>
  53. </hidden>
  54. </root>
  55. </instance>
  56. <script type="javascript" ev:event="xforms-ready">
  57. <![CDATA[
  58. fInitialize();
  59. model.refresh();
  60. ]]>
  61. </script>
  62. <submission id="TRPIJ02503" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/judgrid"/>
  63. <submission id="TXPIJ02501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/updatedata" resultref="/root/hidden"/>
  64. <submission id="TRPIJ02502" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list1/grdsendmsglist"/>
  65. </model>
  66. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  67. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  68. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  69. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  70. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  71. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  72. <script type="javascript">
  73. <![CDATA[
  74. function fInitialize(){
  75. var curDate = getCurrentDate();
  76. model.setValue("/root/send/fromdd", curDate);
  77. model.setValue( "/root/send/todd", curDate);
  78. submit("TRPIJ02503");
  79. //팝업으로 호출시
  80. if (checkOpener()) {
  81. curDate = curDate.toDate().getAddDate(-6,"M");
  82. var nextDate = curDate.getFullYear();
  83. nextDate = nextDate.toString() + (( curDate.getMonth() + 1 > 9 ) ? curDate.getMonth() + 1 : "0" + (curDate.getMonth() + 1));
  84. nextDate = nextDate.toString() + (( curDate.getDate() > 9 ) ? curDate.getDate() : "0" + curDate.getDate()) ;
  85. //model.setValue("/root/send/sendflag", model.getValue(""));
  86. //model.setValue("/root/init/judgrid", model.getValue(""));
  87. model.setValue("/root/send/chkdate", "2");
  88. model.setValue("/root/send/fromdd", nextDate);
  89. //model.setValue("/root/send/todd", model.getValue(""));
  90. model.setValue("/root/send/pid", model.getValue("/root/init/openchk/pid"));
  91. model.setValue("/root/send/chkflag", "1");
  92. //inputEnterKey("btn_search", "DOMActivate");
  93. btn_search.dispatch("onclick");
  94. model.refresh();
  95. }
  96. }
  97. function fSave(flag) {
  98. if(flag == "U"){
  99. var vrecvcnfmyn = ""
  100. if(model.getValue("/root/main/msginfo/recvcnfmyn") == "1")
  101. {
  102. vrecvcnfmyn = "Y"
  103. }
  104. else
  105. {
  106. vrecvcnfmyn = "N"
  107. }
  108. }
  109. model.makeValue("/root/send/updatedata/sendmsg",model.getValue("/root/main/msginfo/sendmsg"));
  110. model.makeValue("/root/send/updatedata/recvcnfmyn",vrecvcnfmyn);
  111. model.makeValue("/root/send/updatedata/msgwrtedd",model.getValue("/root/main/list1/grdsendmsglist["+ grd_sendmsglist.row +"]/msgwrtedd"));
  112. model.makeValue("/root/send/updatedata/msgwrteno",model.getValue("/root/main/list1/grdsendmsglist["+ grd_sendmsglist.row +"]/msgwrteno"));
  113. model.makeValue("/root/send/updatedata/msgwrtehistno",model.getValue("/root/main/list1/grdsendmsglist["+ grd_sendmsglist.row +"]/msgwrtehistno"));
  114. model.makeValue("/root/send/updatedata/workflag", flag);
  115. if (submit("TXPIJ02501") == true) {
  116. btn_search.dispatch("onclick"); //저장처리 후, 내역 재조회(조회 이벤트 호출)
  117. }
  118. }
  119. ]]>
  120. </script>
  121. </xhtml:head>
  122. <xhtml:body guideline="1,1195;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  123. <group id="group1" style="left:0px; top:0px; width:1194px; height:13px; ">
  124. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:269px; height:14px; ">메세지현황</caption>
  125. </group>
  126. <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:771px; ">
  127. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:10px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  128. <button id="btn_search" class="btn1_letter2" style="left:1121px; top:17px; width:56px; height:22px; ">
  129. <caption>조회</caption>
  130. <script type="javascript" ev:event="onclick">
  131. <![CDATA[
  132. model.setValue("/root/send/judgrid",model.getValue("/root/init/judgrid"));
  133. submit("TRPIJ02502");
  134. ]]>
  135. </script>
  136. </button>
  137. <line id="line13" style="x1:1115px; y1:15px; x2:1115px; y2:37px; border-color:#ffe4bb; border-left-style:solid; "/>
  138. <line id="line1" class="line_1" style="x1:1px; y1:65px; x2:1195px; y2:65px; "/>
  139. <caption id="caption1" class="search_name" style="left:150px; top:20px; width:124px; height:17px; ">심사자(송신자) :</caption>
  140. <caption id="caption2" class="search_name" style="left:767px; top:20px; width:93px; height:17px; ">등록번호 :</caption>
  141. <caption id="caption5" style="left:641px; top:24px; width:15px; height:15px; ">~</caption>
  142. <select1 id="chkflag" ref="/root/send/chkflag" overflow="visible" appearance="full" cols="3" rows="1" style="left:950px; top:20px; width:160px; height:16px; font-weight:bold; border-style:none; ">
  143. <choices>
  144. <item>
  145. <label>전체</label>
  146. <value>1</value>
  147. </item>
  148. <item>
  149. <label>응답</label>
  150. <value>2</value>
  151. </item>
  152. <item>
  153. <label>미응답</label>
  154. <value>3</value>
  155. </item>
  156. </choices>
  157. </select1>
  158. <caption id="caption3" class="tit_2" style="left:5px; top:50px; width:150px; height:13px; ">메세지 송신내역</caption>
  159. <caption id="caption7" class="tit_2" style="left:10px; top:480px; width:157px; height:14px; ">보낸 메세지</caption>
  160. <input id="ipt_fromdd" ref="/root/send/fromdd" class="input_search" inputtype="date" style="left:550px; top:20px; width:87px; height:19px; "/>
  161. <input id="ipt_todd" ref="/root/send/todd" class="input_search" inputtype="date" style="left:662px; top:20px; width:90px; height:19px; "/>
  162. <input id="ipt_pid" ref="/root/send/pid" class="input_s_essential" style="left:865px; top:20px; width:70px; height:19px; ">
  163. <script type="javascript" ev:event="onkeypress">
  164. <![CDATA[
  165. if (event.keyCode == '13') {
  166. setInputNodeCurText();
  167. btn_search.dispatch("onclick");
  168. }
  169. ]]>
  170. </script>
  171. </input>
  172. <select1 id="cmb_judgrid" ref="/root/init/judgrid" class="combo_search" appearance="minimal" style="left:285px; top:20px; width:90px; height:19px; ">
  173. <choices>
  174. <itemset nodeset="/root/init/judgrid">
  175. <label ref="nm"/>
  176. <value ref="cd"/>
  177. </itemset>
  178. </choices>
  179. </select1>
  180. <datagrid id="grd_sendmsglist" nodeset="/root/main/list1/grdsendmsglist" caption="진료형태^종류구분^수신처^등록번호^환자명^진료과^지정수신자^송신내용^송신자^송신일시^수신확인자^수신일시^수신내용^anybody^연속조회여부^주(M)/부(S)유형^진료일시^처방코드^처방코드명칭^처방급비^처방수량^처방횟수^처방일수^instcd^msgwrtedd^msgwrteno^msgwrtehistno" colsep="^" colwidth="65, 66, 55, 65, 63, 90, 77, 484, 76, 120, 76, 115, 236, 73, 91, 108, 115, 96, 204, 61, 61, 54, 60, 100, 100, 100, 100" dataheight="25" defaultrows="0" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" frozencols="6" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" tooltip="true" style="left:0px; top:70px; width:1194px; height:390px; ">
  181. <col ref="ordtype" style="text-align:center; "/>
  182. <col ref="kindflag" style="text-align:center; "/>
  183. <col ref="sendflag" style="text-align:center; "/>
  184. <col ref="pid" style="text-align:center; "/>
  185. <col ref="hngnm" style="text-align:center; "/>
  186. <col ref="orddeptcd" style="text-align:center; "/>
  187. <col ref="deliveid" style="text-align:center; "/>
  188. <col ref="sendmsg"/>
  189. <col ref="sendid" style="text-align:center; "/>
  190. <col ref="senddate" format="yyyy-mm-dd hh:nn:ss"/>
  191. <col ref="recvid" style="text-align:center; "/>
  192. <col ref="recvdate" format="yyyy-mm-dd hh:nn:ss"/>
  193. <col ref="recvmsg"/>
  194. <col ref="anybodyyn" style="text-align:center; "/>
  195. <col ref="recvcnfmyn" style="text-align:center; "/>
  196. <col ref="mskind" style="text-align:center; "/>
  197. <col ref="rgstdt" format="yyyy-mm-dd hh:nn:ss"/>
  198. <col ref="grupcalcscorcd"/>
  199. <col ref="codehngnm"/>
  200. <col ref="prcppayflag" format="yyyy-mm-dd" style="text-align:center; "/>
  201. <col ref="ordqty" format="yyyy-mm-dd" style="text-align:center; "/>
  202. <col ref="ordtims" style="text-align:center; "/>
  203. <col ref="orddays" style="text-align:center; "/>
  204. <col ref="instcd" visibility="hidden"/>
  205. <col ref="msgwrtedd" visibility="hidden"/>
  206. <col ref="msgwrteno" visibility="hidden"/>
  207. <col ref="msgwrtehistno" visibility="hidden"/>
  208. <script type="javascript" ev:event="ondblclick">
  209. <![CDATA[
  210. if (isDataCell() == true) {
  211. //if (grd_sendmsglist.row > 0) {
  212. model.resetInstanceNode("/root/send/updatedata");
  213. model.resetInstanceNode("/root/hidden/tmpsendmsginfo");
  214. model.makeNode("/root/hidden/tmpsendmsginfo");
  215. var vrecvid = model.getValue("/root/main/list1/grdsendmsglist["+ grd_sendmsglist.row +"]/recvid");
  216. if (vrecvid != "") {
  217. messageBox("이미 수신된 내역은 수정.","E001","");
  218. //btn_modify.disabled = true;
  219. btn_delete.disabled = true;
  220. txt_send.disabled = true;
  221. //return;
  222. }
  223. else{
  224. btn_modify.disabled = false;
  225. txt_send.disabled = false;
  226. btn_delete.disabled = false;
  227. }
  228. model.copyNode("/root/main/list1/sendmsginfo","/root/main/list1/grdsendmsglist["+(grd_sendmsglist.row-1)+"]");
  229. model.copyNode("/root/hidden/tmpsendmsginfo","/root/main/list1/grdsendmsglist["+(grd_sendmsglist.row-1)+"]");
  230. var vsendmsg = model.getValue("/root/main/list1/grdsendmsglist["+ grd_sendmsglist.row +"]/sendmsg");
  231. txt_send.value = vsendmsg;
  232. var vrecvmsg = model.getValue("/root/main/list1/grdsendmsglist["+ grd_sendmsglist.row +"]/recvmsg");
  233. txt_recv.value = vrecvmsg;
  234. var vrecvcnfmyn = model.getValue("/root/main/list1/grdsendmsglist["+ grd_sendmsglist.row +"]/recvcnfmyn");
  235. if (vrecvcnfmyn == 'Y')
  236. {
  237. vrecvcnfmyn = 1
  238. }
  239. else
  240. {
  241. vrecvcnfmyn = 0
  242. }
  243. cmb_recvcnfmyn.value = vrecvcnfmyn;
  244. model.refresh();
  245. }
  246. else {
  247. //messageBox("선택된 내역이 없습니다.", "E999","");
  248. //return;
  249. }
  250. ]]>
  251. </script>
  252. <script type="javascript" ev:event="onaftersort">
  253. <![CDATA[
  254. //sorting 시 인스턴스 구조를 재구성
  255. grd_sendmsglist.gridToInstance();
  256. ]]>
  257. </script>
  258. </datagrid>
  259. <caption id="caption8" class="tit_2" style="left:605px; top:480px; width:157px; height:13px; ">받은 메세지</caption>
  260. <button id="button2" class="btn4_letter2" style="left:1130px; top:735px; width:56px; height:22px; ">
  261. <caption>닫기</caption>
  262. <script type="javascript" ev:event="DOMActivate">
  263. <![CDATA[
  264. window.close();
  265. ]]>
  266. </script>
  267. </button>
  268. <button id="btn_modify" class="btn4_letter2" style="left:990px; top:735px; width:56px; height:22px; ">
  269. <caption>수정</caption>
  270. <script type="javascript" ev:event="DOMActivate">
  271. <![CDATA[
  272. fSave("U");
  273. ]]>
  274. </script>
  275. </button>
  276. <textarea id="txt_send" ref="/root/main/msginfo/sendmsg" scroll="vertical" style="left:5px; top:500px; width:585px; height:220px; "/>
  277. <textarea id="txt_recv" ref="/root/main/msginfo/recvmsg" disabled="true" scroll="vertical" style="left:605px; top:500px; width:590px; height:220px; "/>
  278. <caption id="caption9" class="search_name" style="left:320px; top:475px; width:124px; height:17px; ">연속조회여부 :</caption>
  279. <select1 id="cmb_recvcnfmyn" ref="/root/main/msginfo/recvcnfmyn" class="combo_search" appearance="minimal" style="left:455px; top:475px; width:90px; height:19px; ">
  280. <choices>
  281. <item>
  282. <label>Y</label>
  283. <value>1</value>
  284. </item>
  285. <item>
  286. <label>N</label>
  287. <value>0</value>
  288. </item>
  289. </choices>
  290. </select1>
  291. <button id="btn_delete" class="btn4_letter2" style="left:1060px; top:735px; width:56px; height:22px; ">
  292. <caption>삭제</caption>
  293. <script type="javascript" ev:event="DOMActivate">
  294. <![CDATA[
  295. fSave("D");
  296. ]]>
  297. </script>
  298. </button>
  299. <caption id="caption10" class="search_name" style="left:5px; top:20px; width:80px; height:17px; ">수신처 :</caption>
  300. <select1 id="cmb_sendflag" ref="/root/send/sendflag" class="combo_search" appearance="minimal" style="left:85px; top:20px; width:55px; height:19px; ">
  301. <choices>
  302. <item>
  303. <label>진료</label>
  304. <value>O</value>
  305. </item>
  306. <item>
  307. <label>간호</label>
  308. <value>C</value>
  309. </item>
  310. <item>
  311. <label>원무</label>
  312. <value>P</value>
  313. </item>
  314. <item>
  315. <label>수납</label>
  316. <value>R</value>
  317. </item>
  318. <item>
  319. <label/>
  320. <value/>
  321. </item>
  322. </choices>
  323. </select1>
  324. <select1 id="chkdate" ref="/root/send/chkdate" overflow="visible" appearance="full" cols="3" rows="1" style="left:390px; top:20px; width:155px; height:16px; font-weight:bold; border-style:none; ">
  325. <choices>
  326. <item>
  327. <label>처방일자</label>
  328. <value>1</value>
  329. </item>
  330. <item>
  331. <label>송신일자</label>
  332. <value>2</value>
  333. </item>
  334. </choices>
  335. </select1>
  336. <button id="button1" class="btn4_letter2" style="left:920px; top:735px; width:56px; height:22px; ">
  337. <caption>액셀</caption>
  338. <script type="javascript" ev:event="DOMActivate">
  339. <![CDATA[
  340. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  341. if (fileName != "")
  342. {
  343. grd_sendmsglist.saveExcel(fileName, "SheetName", true, true, "", "", true);
  344. }
  345. ]]>
  346. </script>
  347. </button>
  348. </group>
  349. </xhtml:body>
  350. </xhtml:html>