SMCHI01200_건진고객추적관리.xrw 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * Name : SMCHI01200_건진고객추적관리
  4. * Summary : 건진고객추적관리
  5. * Programmer : 엄윤호
  6. * Date Written : 2007.09.18
  7. * History : 2007.09.18
  8. * Remark :
  9. -->
  10. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  11. <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">
  12. <xhtml:head>
  13. <xhtml:title>건진고객 추적관리</xhtml:title>
  14. <model id="model1">
  15. <instance id="instance1">
  16. <root xmlns="">
  17. <main>
  18. <list>
  19. <inlist/>
  20. <outlist/>
  21. </list>
  22. </main>
  23. <send>
  24. <srch>
  25. <ordfromdd/>
  26. <ordtodd/>
  27. <hefromdd/>
  28. <hetodd/>
  29. <orddept/>
  30. <assgward/>
  31. <pid/>
  32. <patnm/>
  33. </srch>
  34. <list>
  35. <inlist/>
  36. <outlist/>
  37. </list>
  38. </send>
  39. <init>
  40. <comncdlist>
  41. <P0021list/>
  42. <A0118list/>
  43. </comncdlist>
  44. <basecdlist>
  45. <orddeptlist/>
  46. <wardlist/>
  47. </basecdlist>
  48. </init>
  49. <temp>
  50. <result/>
  51. </temp>
  52. </root>
  53. </instance>
  54. <script type="javascript" ev:event="xforms-ready">
  55. <![CDATA[
  56. // P0021: 초재진구분, A0118: 건진등급
  57. zbcfGetCodeList(new Array("P0021", "A0118"), new Array("/root/init/comncdlist/P0021list", "/root/init/comncdlist/A0118list"));
  58. var instcd = getUserInfo("dutplceinstcd");
  59. var standard_yn = "orduseyn";
  60. var ord_deptflag = "D"; // 외래진료과
  61. var rslt_ref = "/root/init/basecdlist/orddeptlist";
  62. zbcfGetDeptCodeList(instcd, standard_yn, ord_deptflag, rslt_ref);
  63. var ord_deptflag = "W"; // 병동
  64. var rslt_ref = "/root/init/basecdlist/wardlist";
  65. zbcfGetDeptCodeList(instcd, standard_yn, ord_deptflag, rslt_ref);
  66. var ord_dd = getCurrentDate();
  67. model.setValue("/root/send/srch/ordfromdd", ord_dd);
  68. model.setValue("/root/send/srch/ordtodd", ord_dd);
  69. addComboItemAll( "cmb_orddept|cmb_wardcd");
  70. fCheckAuth();
  71. fInitList();
  72. submit("TRCHI01201"); //시작 시 데이터 로드
  73. //model.refresh();
  74. ]]>
  75. </script>
  76. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  77. <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  78. <submission id="TRCHI01201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srch" resultref="/root/main/list"/>
  79. <submission id="TXCHI01201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/list" resultref="/root/temp/result"/>
  80. </model>
  81. <script type="javascript" src="../../../crm/crmweb/js/CCZ001.js"/>
  82. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  83. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  84. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  85. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  86. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  87. <script type="javascript">
  88. <![CDATA[
  89. function fCheckAuth() {
  90. // 권한체크
  91. if (!checkAuth("r")) {
  92. btn_search.disabled=true;
  93. }
  94. if (!checkAuth("x")) {
  95. btn_save.disabled=true;
  96. btn_indel.disabled=true;
  97. btn_outdel.disabled=true;
  98. }
  99. if (!checkAuth("p")) {
  100. btn_saveexcel.disabled = true;
  101. btn_saveexcel2.disabled = true;
  102. }
  103. }
  104. function fInitList() {
  105. // 그리드 초기화
  106. model.removeNodeset("/root/main/list/inlist");
  107. model.removeNodeset("/root/main/list/outlist");
  108. //model.refresh();
  109. }
  110. function fSaveList() {
  111. // 입원 고객 목록 및 외래 고객 목록 메모저장
  112. var grid1 = grd_inlist;
  113. var grid2 = grd_outlist;
  114. var updt_list1 = getGridUpdateData(grid1);
  115. if (updt_list1 != "") {
  116. model.setValue("/root/send/list/inlist", grid1.getUpdateData());
  117. }
  118. var updt_list2 = getGridUpdateData(grid2);
  119. if (updt_list2 != "") {
  120. model.setValue("/root/send/list/outlist", grid2.getUpdateData());
  121. }
  122. if (submit("TXCHI01201")) {
  123. grid1.clearStatus(); // submit() 성공하면 그리드의 i,u,d 상태 제거
  124. grid1.colStyle(1, "data","background-image") = "../../../com/commonweb/images/icon_n.gif";
  125. model.setValue("/root/send/list/inlist","");
  126. grid2.clearStatus(); // submit() 성공하면 그리드의 i,u,d 상태 제거
  127. grid2.colStyle(1, "data","background-image") = "../../../com/commonweb/images/icon_n.gif";
  128. model.setValue("/root/send/list/outlist","");
  129. messageBox("저장이","I002");
  130. }
  131. submit("TRCHI01201"); // 다시 데이터 로드
  132. }
  133. ]]>
  134. </script>
  135. </xhtml:head>
  136. <xhtml:body guideline="1,1194;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  137. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  138. <caption id="caption1" class="tit_1" style="left:0px; top:0px; width:189px; height:14px; ">건진고객 추적관리</caption>
  139. </group>
  140. <group id="group2" style="left:0px; top:23px; width:1194px; height:60px; vertical-align:top; ">
  141. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:59px; "/>
  142. <caption id="caption3" class="search_name" style="left:16px; top:9px; width:86px; height:17px; ">진료일자 :</caption>
  143. <input id="ipt_ordfromdd" ref="/root/send/srch/ordfromdd" class="input_search" inputtype="date" style="left:108px; top:8px; width:120px; height:19px; "/>
  144. <caption id="caption4" class="search_no_b" style="left:233px; top:9px; width:12px; height:17px; ">~</caption>
  145. <input id="ipt_ordtodd" ref="/root/send/srch/ordtodd" class="input_search" inputtype="date" style="left:248px; top:8px; width:120px; height:19px; "/>
  146. <caption id="caption5" class="search_name" style="left:411px; top:9px; width:88px; height:17px; ">진료부서 :</caption>
  147. <select1 id="cmb_orddept" ref="/root/send/srch/orddept" class="combo_search" appearance="minimal" style="left:503px; top:8px; width:145px; height:19px; ">
  148. <choices>
  149. <itemset nodeset="/root/init/basecdlist/orddeptlist/dept">
  150. <label ref="depthngnm"/>
  151. <value ref="deptcd"/>
  152. </itemset>
  153. </choices>
  154. </select1>
  155. <caption id="caption10" class="search_name" style="left:690px; top:9px; width:86px; height:17px; ">병동명 :</caption>
  156. <select1 id="cmb_wardcd" ref="/root/send/srch/assgward" class="combo_search" appearance="minimal" style="left:770px; top:8px; width:120px; height:19px; ">
  157. <choices>
  158. <itemset nodeset="/root/init/basecdlist/wardlist/dept">
  159. <label ref="depthngnm"/>
  160. <value ref="deptcd"/>
  161. </itemset>
  162. </choices>
  163. </select1>
  164. <caption id="caption2" class="search_name" style="left:16px; top:33px; width:86px; height:17px; ">건진일자 :</caption>
  165. <input id="ipt_hefromdd" ref="/root/send/srch/hefromdd" class="input_search" inputtype="date" style="left:108px; top:32px; width:120px; height:19px; "/>
  166. <caption id="caption7" class="search_no_b" style="left:233px; top:33px; width:12px; height:17px; ">~</caption>
  167. <input id="ipt_hetodd" ref="/root/send/srch/hetodd" class="input_search" inputtype="date" style="left:248px; top:32px; width:120px; height:19px; "/>
  168. <caption id="caption8" class="search_name" style="left:411px; top:33px; width:86px; height:17px; ">등록번호 :</caption>
  169. <input id="ipt_pid" ref="/root/send/srch/pid" class="input_search" style="left:503px; top:32px; width:120px; height:19px; "/>
  170. <button id="btn_pid_srch" class="icon_search" style="left:628px; top:33px; width:16px; height:16px; ">
  171. <caption/>
  172. <script type="javascript" ev:event="DOMActivate">
  173. <![CDATA[
  174. var search_condition = "pid";
  175. var search_term = model.getValue("/root/send/srch/pid");
  176. var receive_pid_path = "/root/send/srch/pid";
  177. var receive_patnm_path = "/root/send/srch/patnm";
  178. cczfOpenSelectClnt2(search_condition, search_term, receive_pid_path, receive_patnm_path);
  179. ]]>
  180. </script>
  181. </button>
  182. <caption id="caption9" class="search_name" style="left:690px; top:33px; width:86px; height:17px; ">고객명 :</caption>
  183. <input id="ipt_patnm" ref="/root/send/srch/patnm" class="input_search" style="left:770px; top:32px; width:95px; height:19px; "/>
  184. <button id="btn_patnm_srch" class="icon_search" style="left:870px; top:33px; width:16px; height:16px; ">
  185. <caption/>
  186. <script type="javascript" ev:event="DOMActivate">
  187. <![CDATA[
  188. var search_condition = "patnm";
  189. var search_term = model.getValue("/root/send/srch/patnm");
  190. var receive_pid_path = "/root/send/srch/pid";
  191. var receive_patnm_path = "/root/send/srch/patnm";
  192. cczfOpenSelectClnt2(search_condition, search_term, receive_pid_path, receive_patnm_path);
  193. ]]>
  194. </script>
  195. </button>
  196. <line id="line1" class="line_4" style="x1:1106px; y1:7px; x2:1106px; y2:53px; border-left-style:solid; "/>
  197. <button id="btn_search" class="btn1_letter2" style="left:1122px; top:19px; width:56px; height:22px; ">
  198. <caption>조회</caption>
  199. <script type="javascript" ev:event="DOMActivate">
  200. <![CDATA[
  201. submit("TRCHI01201");
  202. ]]>
  203. </script>
  204. </button>
  205. </group>
  206. <group id="group3" scroll="auto" style="left:0px; top:83px; width:1195px; height:668px; ">
  207. <caption id="caption11" class="tit_2" style="left:5px; top:10px; width:126px; height:14px; ">입원고객 목록</caption>
  208. <button id="btn_indel" class="btn2_letter3" style="left:1074px; top:5px; width:53px; height:19px; ">
  209. <caption>행삭제</caption>
  210. <script type="javascript" ev:event="DOMActivate">
  211. <![CDATA[
  212. var grid = grd_inlist;
  213. grid.cellStyle("background-image", grid.row, 1) = "../../../com/commonweb/images/icon_d.gif";
  214. deleteSelectedRows(grd_inlist, true);
  215. ]]>
  216. </script>
  217. </button>
  218. <button id="btn_saveexcel" class="btn2_letter4" style="left:1130px; top:5px; width:64px; height:19px; ">
  219. <caption>엑셀저장</caption>
  220. <script type="javascript" ev:event="DOMActivate">
  221. <![CDATA[
  222. var file_nm = window.fileDialog("save", ",", false, "excel", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  223. if (file_nm != "") {
  224. grd_inlist.saveExcel(file_nm, "SheetName", true, true, "", "", false);
  225. }
  226. ]]>
  227. </script>
  228. </button>
  229. <line id="line2" class="line_1" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
  230. <datagrid id="grd_inlist" nodeset="/root/main/list/inlist" class="text_center" caption="^입원일자^등록번호^고객명^병동^병실^진료과^전문의^건진일자^건진등급^메모" colwidth="25, 90, 100, 100, 100, 100, 140, 100, 100, 100, 200, 0, 0, 0" explorerbar="sortshowmove" extendlastcol="scroll" rowheader="seq" tooltip="true" style="left:0px; top:30px; width:1194px; height:300px; ">
  231. <col class="update_n" ref="update"/>
  232. <col ref="orddd" format="yyyy-mm-dd"/>
  233. <col ref="pid"/>
  234. <col ref="hngnm"/>
  235. <col ref="wardnm"/>
  236. <col ref="roomcd"/>
  237. <col ref="orddeptnm"/>
  238. <col ref="orddrnm"/>
  239. <col ref="healexamdd" format="yyyy-mm-dd"/>
  240. <col disabled="true" ref="healexamvipgrde" type="combo">
  241. <choices>
  242. <itemset nodeset="/root/init/comncdlist/A0118list/A0118">
  243. <label ref="cdnm"/>
  244. <value ref="cdid"/>
  245. </itemset>
  246. </choices>
  247. </col>
  248. <col ref="memo" type="input" style="text-align:left; "/>
  249. <col ref="outinflag" visibility="hidden"/>
  250. <col ref="cretno" visibility="hidden"/>
  251. <col ref="acptseqno" visibility="hidden"/>
  252. <script type="javascript" ev:event="xforms-value-changed">
  253. <![CDATA[
  254. // rowStatus - 0 : new, 1 : insert, 2 : update, 3 : insert & new, 4 : delete
  255. var grid = grd_inlist;
  256. var curRowStatus = grid.rowStatus(grid.row);
  257. if (curRowStatus != 4) {
  258. grid.cellStyle("background-image", grid.row, 1) = "../../../com/commonweb/images/icon_u.gif";
  259. }
  260. ]]>
  261. </script>
  262. </datagrid>
  263. <caption id="caption6" class="tit_2" style="left:5px; top:342px; width:125px; height:13px; ">외래고객 목록</caption>
  264. <button id="btn_outdel" class="btn2_letter3" style="left:1074px; top:337px; width:53px; height:19px; ">
  265. <caption>행삭제</caption>
  266. <script type="javascript" ev:event="DOMActivate">
  267. <![CDATA[
  268. var grid = grd_outlist;
  269. grid.cellStyle("background-image", grid.row, 1) = "../../../com/commonweb/images/icon_d.gif";
  270. deleteSelectedRows(grd_outlist, true);
  271. ]]>
  272. </script>
  273. </button>
  274. <button id="btn_saveexcel2" class="btn2_letter4" style="left:1130px; top:337px; width:64px; height:19px; ">
  275. <caption>엑셀저장</caption>
  276. <script type="javascript" ev:event="DOMActivate">
  277. <![CDATA[
  278. var file_nm = window.fileDialog("save", ",", false, "excel", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  279. if (file_nm != "") {
  280. grd_outlist.saveExcel(file_nm, "SheetName", true, true, "", "", false);
  281. }
  282. ]]>
  283. </script>
  284. </button>
  285. <line id="line3" class="line_1" style="x1:0px; y1:357px; x2:1194px; y2:357px; "/>
  286. <datagrid id="grd_outlist" nodeset="/root/main/list/outlist" class="text_center" caption="^진료일자^등록번호^고객명^진료과^진료의^초재진^건진일자^건진등급^메모" colwidth="25, 90, 100, 100, 140, 100, 65, 100, 100, 335, 0, 0, 0" explorerbar="sortshowmove" extendlastcol="scroll" rowheader="seq" tooltip="true" style="left:0px; top:362px; width:1194px; height:300px; ">
  287. <col class="update_n" ref="update"/>
  288. <col ref="orddd" format="yyyy-mm-dd"/>
  289. <col ref="pid"/>
  290. <col ref="hngnm"/>
  291. <col ref="orddeptnm"/>
  292. <col ref="orddrnm"/>
  293. <col disabled="true" ref="fsexamflag" type="combo">
  294. <choices>
  295. <itemset nodeset="/root/init/comncdlist/P0021list/P0021">
  296. <label ref="cdnm"/>
  297. <value ref="cdid"/>
  298. </itemset>
  299. </choices>
  300. </col>
  301. <col ref="healexamdd" format="yyyy-mm-dd"/>
  302. <col disabled="true" ref="healexamvipgrde" type="combo">
  303. <choices>
  304. <itemset nodeset="/root/init/comncdlist/A0118list/A0118">
  305. <label ref="cdnm"/>
  306. <value ref="cdid"/>
  307. </itemset>
  308. </choices>
  309. </col>
  310. <col ref="memo" type="input" style="text-align:left; "/>
  311. <col ref="outinflag" visibility="hidden"/>
  312. <col ref="cretno" visibility="hidden"/>
  313. <col ref="acptseqno" visibility="hidden"/>
  314. <script type="javascript" ev:event="xforms-value-changed">
  315. <![CDATA[
  316. // rowStatus - 0 : new, 1 : insert, 2 : update, 3 : insert & new, 4 : delete
  317. var grid = grd_outlist;
  318. var curRowStatus = grid.rowStatus(grid.row);
  319. if (curRowStatus != 4) {
  320. grid.cellStyle("background-image", grid.row, 1) = "../../../com/commonweb/images/icon_u.gif";
  321. }
  322. ]]>
  323. </script>
  324. </datagrid>
  325. </group>
  326. <group id="group4" style="left:0px; top:751px; width:1195px; height:29px; vertical-align:top; ">
  327. <button id="btn_setup" class="btn3_letter6" style="left:1px; top:0px; width:104px; height:22px; ">
  328. <caption>내원부서설정</caption>
  329. <script type="javascript" ev:event="DOMActivate">
  330. <![CDATA[
  331. modal("SPCHI01300");
  332. ]]>
  333. </script>
  334. </button>
  335. <button id="btn_save" class="btn4_letter2" _auth="X" style="left:1068px; top:0px; width:56px; height:22px; ">
  336. <caption>저장</caption>
  337. <script type="javascript" ev:event="DOMActivate">
  338. <![CDATA[
  339. fSaveList();
  340. ]]>
  341. </script>
  342. </button>
  343. <button id="btn_init" class="btn4_letter3" style="left:1127px; top:0px; width:68px; height:22px; ">
  344. <caption>초기화</caption>
  345. <script type="javascript" ev:event="DOMActivate">
  346. <![CDATA[
  347. fInitList();
  348. model.refresh();
  349. ]]>
  350. </script>
  351. </button>
  352. </group>
  353. </xhtml:body>
  354. </xhtml:html>