SMAHA00910_정밀검사상담관리.xrw 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SMAHA00910_정밀검사상담관리.xrw
  4. * 설 명 : 정밀검사상담관리
  5. * 설 계 자 : 서원식
  6. * 작 성 자 : 서원식
  7. * 작 성 일 : 2012.05.16
  8. * 수정이력 :
  9. * 기 타 :
  10. -->
  11. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  12. <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">
  13. <xhtml:head>
  14. <xhtml:title>정밀검사상담관리</xhtml:title>
  15. <model id="model1">
  16. <instance id="instance1">
  17. <root xmlns="">
  18. <main>
  19. <rsrvacptlst>
  20. <item>
  21. <healexamflag/>
  22. <rsrvdd/>
  23. <rsrvno/>
  24. <healexamdetlflag/>
  25. <orddd/>
  26. <healexampid/>
  27. <pid/>
  28. <hngnm/>
  29. <mpphon/>
  30. <rsltcnstdd/>
  31. <rsltcnstrsrvstarttm/>
  32. <atypeyn/>
  33. <atypedd/>
  34. <atypetm/>
  35. <btpyeyn/>
  36. <btypedd/>
  37. <btypetm/>
  38. <ctpyeyn/>
  39. <ctypedd/>
  40. <ctypetm/>
  41. <dtpyeyn/>
  42. <dtypedd/>
  43. <dtypetm/>
  44. <remcnts/>
  45. <sage/>
  46. <rsltorddd/>
  47. <rsltordtm/>
  48. <aorddd/>
  49. <aordtm/>
  50. <borddd/>
  51. <bordtm/>
  52. <corddd/>
  53. <cordtm/>
  54. <dorddd/>
  55. <dordtm/>
  56. <vipyn/>
  57. <clntgrde/>
  58. </item>
  59. </rsrvacptlst>
  60. </main>
  61. <send>
  62. <srchhealexamflag>C</srchhealexamflag>
  63. <srchhealexamdetlflag>C01</srchhealexamdetlflag>
  64. <srchtype>orddd</srchtype>
  65. <srchstatflag/>
  66. <srchfromdd/>
  67. <srchtodd/>
  68. <srchprecise/>
  69. <srchhngnm/>
  70. <srchpid/>
  71. </send>
  72. <savedata/>
  73. <temp/>
  74. <popup>
  75. <item>
  76. <name>외래등록</name>
  77. <func>fInsOtpt</func>
  78. </item>
  79. <item>
  80. <name>외래예약확인</name>
  81. <func>fRsrvOtptChk</func>
  82. </item>
  83. </popup>
  84. </root>
  85. </instance>
  86. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  87. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  88. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  89. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  90. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  91. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  92. <script type="javascript" src="../../../ast/healexamweb/js/SMAHA00910.js"/>
  93. <script type="javascript" src="../../../ast/healexamweb/js/AHA001.js"/>
  94. <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
  95. <script type="javascript" ev:event="xforms-ready">
  96. <![CDATA[
  97. var curDt = getCurrentDate();
  98. // curDt = "20120503";
  99. model.setValue(ipt_srchfromdd.attribute("ref") , curDt);
  100. model.setValue(ipt_srchtodd.attribute("ref") , curDt);
  101. model.refresh();
  102. ]]>
  103. </script>
  104. <submission id="TRAHA00910" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/rsrvacptlst"/>
  105. <submission id="TRAHA00911" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/savedata" replace="instance" resultref="/root/temp"/>
  106. </model>
  107. <script type="javascript">
  108. <![CDATA[
  109. /**==========================================================================================================================
  110. * 정밀검사상담관리 조회
  111. *==========================================================================================================================*/
  112. function GetPreciseRsrvList(){
  113. if(submit("TRAHA00910")){
  114. fSetColor();
  115. }
  116. }
  117. /**==========================================================================================================================
  118. * 정밀검사상담관리 리스트 색설정
  119. *==========================================================================================================================*/
  120. function fSetColor(){
  121. grd_rsrvacpt.rebuildStyle();
  122. for(var i=2; i<=grd_rsrvacpt.rows; i++){
  123. if(grd_rsrvacpt.valueMatrix( i , grd_rsrvacpt.colRef("vipyn")) == "Y"){
  124. grd_rsrvacpt.rowStyle(i, "data", "background-color") = "#FFC0CB"; // 주황
  125. }else{
  126. grd_rsrvacpt.rowStyle(i, "data", "background-color") = "#FFFFFF";
  127. }
  128. if(grd_rsrvacpt.valueMatrix( i , grd_rsrvacpt.colRef("atypeyn")) == "Y"){
  129. grd_rsrvacpt.cellStyle("background-color" , i , grd_rsrvacpt.colRef("atypeyn") , i , grd_rsrvacpt.colRef("atypetm")) = "#FF8888"; //빨강
  130. }
  131. if(grd_rsrvacpt.valueMatrix( i , grd_rsrvacpt.colRef("btypeyn")) == "Y"){
  132. grd_rsrvacpt.cellStyle("background-color" , i , grd_rsrvacpt.colRef("btypeyn") , i , grd_rsrvacpt.colRef("btypetm")) = "#FFDC74"; //노랑
  133. }
  134. if(grd_rsrvacpt.valueMatrix( i , grd_rsrvacpt.colRef("ctypeyn")) == "Y"){
  135. grd_rsrvacpt.cellStyle("background-color" , i , grd_rsrvacpt.colRef("ctypeyn") , i , grd_rsrvacpt.colRef("ctypetm")) = "#C4E693"; //녹색
  136. }
  137. if(grd_rsrvacpt.valueMatrix( i , grd_rsrvacpt.colRef("dtypeyn")) == "Y"){
  138. grd_rsrvacpt.cellStyle("background-color" , i , grd_rsrvacpt.colRef("dtypeyn") , i , grd_rsrvacpt.colRef("dtypetm")) = "#85B3FF"; //파랑
  139. }
  140. }
  141. }
  142. /**==========================================================================================================================
  143. * 정밀검사상담관리 저장
  144. *==========================================================================================================================*/
  145. function fSavePreciseRsrv(){
  146. model.makeValue("/root/savedata", grd_rsrvacpt.getUpdateData());
  147. if(submit("TRAHA00911")){
  148. btn_search.dispatch("DOMActivate");
  149. }
  150. }
  151. ]]>
  152. </script>
  153. </xhtml:head>
  154. <xhtml:body guideline="2,788;" style="border-left-style:none; margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  155. <group id="group1" style="left:0px; top:0px; width:1194px; height:13px; ">
  156. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:230px; height:13px; ">정밀검사상담관리</caption>
  157. </group>
  158. <group id="group4" scroll="auto" style="left:0px; top:15px; width:1195px; height:740px; ">
  159. <group id="group5" style="left:0px; top:5px; width:1195px; height:80px; vertical-align:top; ">
  160. <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:5px; width:1190px; height:70px; background-color:#fffbf2; border-color:#ffd799; "/>
  161. <caption id="caption11" class="search_name" style="left:10px; top:14px; width:105px; height:17px; ">조회기준 :</caption>
  162. <select1 id="rdo_srchcond" ref="/root/send/srchtype" class="radio_search" appearance="full" cellspacing="2" cols="2" overflow="visible" style="left:101px; top:14px; width:119px; height:16px; border-style:none; ">
  163. <choices>
  164. <item>
  165. <label>건진일</label>
  166. <value>orddd</value>
  167. </item>
  168. <item>
  169. <label>상담일</label>
  170. <value>rsltdd</value>
  171. </item>
  172. </choices>
  173. </select1>
  174. <caption id="caption8" class="search_name" style="left:367px; top:14px; width:63px; height:17px; ">일자 :</caption>
  175. <input id="ipt_srchfromdd" ref="/root/send/srchfromdd" class="input_s_essential" inputtype="date" style="left:428px; top:14px; width:99px; height:19px; "/>
  176. <caption id="caption19" class="search_n_b" style="left:531px; top:14px; width:19px; height:17px; font-weight:bolder; ">~</caption>
  177. <input id="ipt_srchtodd" ref="/root/send/srchtodd" class="input_s_essential" inputtype="date" style="left:545px; top:14px; width:99px; height:19px; "/>
  178. <caption id="caption4" class="search_name" style="left:650px; top:14px; width:89px; height:17px; ">정밀검사 :</caption>
  179. <select1 id="cmb_srchprecise" ref="/root/send/srchprecise" class="combo_s_essential" appearance="minimal" style="left:735px; top:14px; width:79px; height:19px; ">
  180. <choices>
  181. <item>
  182. <label>전체</label>
  183. <value/>
  184. </item>
  185. <item>
  186. <label>심장정밀</label>
  187. <value>A</value>
  188. </item>
  189. <item>
  190. <label>뇌정밀</label>
  191. <value>B</value>
  192. </item>
  193. <item>
  194. <label>남성정밀</label>
  195. <value>C</value>
  196. </item>
  197. <item>
  198. <label>여성정밀</label>
  199. <value>D</value>
  200. </item>
  201. </choices>
  202. </select1>
  203. <caption id="caption1" class="search_name" style="left:10px; top:45px; width:61px; height:17px; ">성명 :</caption>
  204. <input id="ipt_srchpnm" ref="/root/send/srchhngnm" class="input_search" imemode="hangul" style="left:75px; top:45px; width:67px; height:19px; ">
  205. <script type="javascript" ev:event="onkeyup">
  206. <![CDATA[
  207. if(event.keyCode == 13){
  208. ipt_srchpnm.value = ipt_srchpnm.currentText;
  209. btn_search.dispatch("DOMActivate");
  210. }
  211. ]]>
  212. </script>
  213. </input>
  214. <caption id="caption7" class="search_name" style="left:153px; top:45px; width:86px; height:17px; ">등록번호 :</caption>
  215. <input id="ipt_srchpid" ref="/root/send/srchpid" class="input_search" style="left:243px; top:45px; width:77px; height:19px; ">
  216. <script type="javascript" ev:event="onkeyup">
  217. <![CDATA[
  218. if(event.keyCode == 13){
  219. ipt_srchpid.value = ipt_srchpid.currentText;
  220. btn_search.dispatch("DOMActivate");
  221. }
  222. ]]>
  223. </script>
  224. </input>
  225. <button id="btn_prt" class="btn6_letter2" style="left:1055px; top:29px; width:56px; height:22px; ">
  226. <caption>출력</caption>
  227. <script type="javascript" ev:event="DOMActivate">
  228. <![CDATA[
  229. model.makeValue("/root/main/export/srchfromdd" , model.getValue("/root/send/srchfromdd").toDate().getDateFormat("YYYY/MM/DD"));
  230. model.makeValue("/root/main/export/srchtodd" , model.getValue("/root/send/srchtodd").toDate().getDateFormat("YYYY/MM/DD"));
  231. exeReportPreview("RPAHA00910", "XMLSTR", "/root/main/export","", "false","","","","","false");
  232. ]]>
  233. </script>
  234. </button>
  235. <line id="line2" class="line_4" style="x1:1117px; y1:14px; x2:1117px; y2:62px; border-color:#ffe4bb; border-left-style:solid; "/>
  236. <button id="btn_search" class="btn1_letter2" style="left:1124px; top:29px; width:56px; height:22px; ">
  237. <caption>조회</caption>
  238. <script type="javascript" ev:event="DOMActivate">
  239. <![CDATA[
  240. GetPreciseRsrvList();
  241. ]]>
  242. </script>
  243. </button>
  244. <select1 id="cmb_srchstatfg" ref="/root/send/srchstatflag" class="combo_s_essential" appearance="minimal" style="left:281px; top:14px; width:78px; height:19px; ">
  245. <choices>
  246. <item>
  247. <label>전체</label>
  248. <value/>
  249. </item>
  250. <item>
  251. <label>예약</label>
  252. <value>AC</value>
  253. </item>
  254. <item>
  255. <label>예약취소</label>
  256. <value>D</value>
  257. </item>
  258. <item>
  259. <label>접수</label>
  260. <value>E</value>
  261. </item>
  262. <item>
  263. <label>결과</label>
  264. <value>G</value>
  265. </item>
  266. <item>
  267. <label>판정</label>
  268. <value>HI</value>
  269. </item>
  270. </choices>
  271. </select1>
  272. <caption id="caption2" class="search_name" style="left:220px; top:14px; width:63px; height:17px; ">상태 :</caption>
  273. <button id="btn_srchpat" class="icon_search" style="left:322px; top:47px; width:16px; height:16px; ">
  274. <caption/>
  275. <script type="javascript" ev:event="DOMActivate">
  276. <![CDATA[
  277. fSearchPatInfo("SMAHA00910", "pid", ipt_srchpid.currentText , "N", "/root/send" ,ipt_srchpid.attribute("ref"), ipt_srchpnm.attribute("ref") );
  278. ]]>
  279. </script>
  280. </button>
  281. </group>
  282. <button id="button1" class="btn2_letter4" style="left:1125px; top:88px; width:64px; height:19px; ">
  283. <caption>엑셀저장</caption>
  284. <script type="javascript" ev:event="DOMActivate">
  285. <![CDATA[
  286. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  287. if(fileName != "") grd_rsrvacpt.saveExcel(fileName, "SheetName", false, false, "", "", false);
  288. ]]>
  289. </script>
  290. </button>
  291. <datagrid id="grd_rsrvacpt" nodeset="/root/main/rsrvacptlst/item" backcoloralternate="transparent" caption="healexamflag^rsrvdd^rsrvno^healexamdetlflag^healexampid^검진일^등록번호^성명^성별/&#xA;나이^연락처^VIP^VIP사유^결과상담^결과상담^외래예약(결과)^외래예약(결과)^심장정밀^심장정밀^심장정밀^외래예약(심장)^외래예약(심장)^남성정밀^남성정밀^남성정밀^외래예약(남성)^외래예약(남성)^여성정밀^여성정밀^여성정밀^외래예약(여성)^외래예약(여성)^비고^뇌정밀^뇌정밀^뇌정밀^외래예약(뇌정밀)^외래예약(뇌정밀)^VIP여부^VIP사유|healexamflag^rsrvdd^rsrvno^healexamdetlflag^healexampid^검진일^등록번호^성명^성별/&#xA;나이^연락처^VIP^VIP사유^예약일자^시간^예약일자^시간^여부^예약일자^시간^예약일자^시간^여부^예약일자^시간^예약일자^시간^여부^예약일자^시간^예약일자^시간^비고^여부^예약일자^시간^예약일자^시간^VIP여부^VIP사유" colsep="^" colwidth="10, 10, 10, 10, 10, 70, 60, 60, 38, 85, 29, 51, 75, 35, 75, 35, 30, 85, 35, 75, 35, 30, 85, 35, 75, 35, 30, 85, 35, 75, 35, 155, 30, 85, 35, 75, 35" ellipsis="true" explorerbar="sortshow" frozencols="10" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="true" style="left:0px; top:110px; width:1190px; height:625px; ">
  292. <col ref="healexamflag" visibility="hidden"/>
  293. <col ref="rsrvdd" visibility="hidden"/>
  294. <col ref="rsrvno" visibility="hidden"/>
  295. <col ref="healexamdetlflag" visibility="hidden"/>
  296. <col ref="healexampid" visibility="hidden"/>
  297. <col ref="orddd" format="yyyy-mm-dd" style="text-align:center; "/>
  298. <col ref="pid" style="text-align:left; padding-left:5; "/>
  299. <col ref="hngnm" style="text-align:center; "/>
  300. <col ref="sage" style="text-align:center; "/>
  301. <col ref="mpphon" style="text-align:center; "/>
  302. <col ref="vipyn" style="text-align:center; "/>
  303. <col ref="clntgrde" style="text-align:center; "/>
  304. <col ref="rsltcnstdd" format="yyyy-mm-dd" style="text-align:center; "/>
  305. <col ref="rsltcnstrsrvstarttm" format="hh:nn" style="text-align:center; "/>
  306. <col ref="rsltorddd" format="yyyy-mm-dd" style="text-align:center; "/>
  307. <col ref="rsltordtm" format="hh:nn" style="text-align:center; "/>
  308. <col ref="atypeyn" style="text-align:center; "/>
  309. <col ref="atypedd" type="inputdate"/>
  310. <col ref="atypetm" type="input" format="hh:nn"/>
  311. <col ref="aorddd" format="yyyy-mm-dd" style="text-align:center; "/>
  312. <col ref="aordtm" format="hh:nn" style="text-align:center; "/>
  313. <col ref="ctypeyn" style="text-align:center; "/>
  314. <col ref="ctypedd" type="inputdate"/>
  315. <col ref="ctypetm" type="input" format="hh:nn"/>
  316. <col ref="corddd" format="yyyy-mm-dd" style="text-align:center; "/>
  317. <col ref="cordtm" format="hh:nn" style="text-align:center; "/>
  318. <col ref="dtypeyn" style="text-align:center; "/>
  319. <col ref="dtypedd" type="inputdate"/>
  320. <col ref="dtypetm" type="input" format="hh:nn"/>
  321. <col ref="dorddd" format="yyyy-mm-dd" style="text-align:center; "/>
  322. <col ref="dordtm" format="hh:nn" style="text-align:center; "/>
  323. <col ref="remcnts" type="input" style="text-align:left; "/>
  324. <col ref="btypeyn" style="text-align:center; "/>
  325. <col ref="btypedd" type="inputdate"/>
  326. <col ref="btypetm" type="input" format="hh:nn"/>
  327. <col ref="borddd" format="yyyy-mm-dd" style="text-align:center; "/>
  328. <col ref="bordtm" format="hh:nn" style="text-align:center; "/>
  329. <script type="javascript" ev:event="xforms-value-changed">
  330. <![CDATA[
  331. grd_rsrvacpt.col = grd_rsrvacpt.col + 1;
  332. // if(grd_rsrvacpt.col == grd_rsrvacpt.colRef("atypedd")){
  333. // grd_rsrvacpt.col = grd_rsrvacpt.colRef("atypetm")
  334. // grd_rsrvacpt.endEditCell();
  335. // grd_rsrvacpt.editCell();
  336. // model.setFocus("grd_rsrvacpt");
  337. // }
  338. ]]>
  339. </script>
  340. <script type="javascript" ev:event="onaftersort">
  341. <![CDATA[
  342. grd_rsrvacpt.gridToInstance();
  343. ]]>
  344. </script>
  345. <script type="javascript" ev:event="onmousedown">
  346. <![CDATA[
  347. if (event.button == 3){
  348. if(grd_rsrvacpt.isCell(event.target) && grd_rsrvacpt.mouseRow >= grd_rsrvacpt.fixedRows){
  349. setPopupMenu("grd_rsrvacpt", false, "/root/popup/item", "name", "func");
  350. }
  351. }
  352. ]]>
  353. </script>
  354. <script type="javascript" ev:event="DOMFocusOut">
  355. <![CDATA[
  356. initPopupMenu();
  357. ]]>
  358. </script>
  359. <script type="javascript" ev:event="onclick">
  360. <![CDATA[
  361. //2016/10/25 동명이인 관련 알림 팝업
  362. //fChkPatNameC(grd_rsrvacpt.nodeset, "hngnm", grd_rsrvacpt.valueMatrix(grd_rsrvacpt.row, grd_rsrvacpt.colRef("hngnm")));
  363. //2016/10/25 동명이인 관련 알림 팝업
  364. ]]>
  365. </script>
  366. </datagrid>
  367. </group>
  368. <button id="btn_prntname" class="btn4_letter2" style="left:1135px; top:760px; width:56px; height:22px; ">
  369. <caption>저장</caption>
  370. <script type="javascript" ev:event="DOMActivate">
  371. <![CDATA[
  372. fSavePreciseRsrv();
  373. ]]>
  374. </script>
  375. </button>
  376. </xhtml:body>
  377. </xhtml:html>