SPPID27000_협진진료과확인코드관리.xrw 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * @(#)SPPID27000_협진 진료과 확인코드 관리.xrw
  4. * 수정이력
  5. * - 2014.11.05 / 최초작성 / 이은정
  6. -->
  7. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  8. <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">
  9. <xhtml:head>
  10. <xhtml:title>협진 진료과 확인코드 관리</xhtml:title>
  11. <model id="model1">
  12. <instance id="instance1">
  13. <root xmlns="">
  14. <main>
  15. <cnstcdlist>
  16. <cnstcd/>
  17. </cnstcdlist>
  18. </main>
  19. <send>
  20. <cnstcdlist/>
  21. <orddeptcd/>
  22. <cnfmcd/>
  23. <endyn/>
  24. </send>
  25. <init>
  26. <PAM>
  27. <PK028list/>
  28. </PAM>
  29. </init>
  30. <hidden>
  31. <popupmenu>
  32. <clcj>
  33. <item>
  34. <name>행 추가</name>
  35. <func>fSpclGridInsertRow</func>
  36. </item>
  37. <item>
  38. <name>-</name>
  39. <func/>
  40. </item>
  41. <item>
  42. <name>행 삭제</name>
  43. <func>fSpclGridDeleteRow</func>
  44. </item>
  45. </clcj>
  46. </popupmenu>
  47. </hidden>
  48. </root>
  49. </instance>
  50. <script type="javascript" ev:event="xforms-ready">
  51. <![CDATA[
  52. // 화면을 초기화한다.
  53. fInitialize();
  54. ]]>
  55. </script>
  56. <submission id="TRPIJ00203" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/hidden/tmp"/>
  57. <submission id="TRPAM00105" mediatype="application/x-www-form-urlencoded" method="post"/>
  58. <submission id="TRPID27000" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main"/>
  59. <submission id="TXPID27000" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main"/>
  60. </model>
  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="../../../com/commonweb/js/numericHelper.js"/>
  64. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  65. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  66. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  67. <script type="javascript" src="../../../pam/pamcomnweb/js/PAM001.js"/>
  68. <script type="javascript">
  69. <![CDATA[
  70. var gToday = new Date();
  71. var gBaseyear = gToday.getDateFormat("YYYY"); // (dateHelper.js)에서 제공하는 함수를 사용하여 해당 년를 구한다.
  72. var gBasemonth = gToday.getDateFormat("MM");
  73. var gBaseday = gToday.getDateFormat("DD");
  74. var gCurrentdd = gBaseyear + gBasemonth + gBaseday;
  75. var gCurrentym = gBaseyear + gBasemonth;
  76. // -----------------------
  77. // ▶ 화면초기화
  78. // -----------------------
  79. function fInitialize() {
  80. submit("TRPIJ00203", false);
  81. model.copyNode("/root/init/orddeptcd2", "/root/hidden/tmp/orddeptcd2");
  82. // 2013.02.19 - 부가코드 원무공통코드조회
  83. pamfGetCodeList(new Array(
  84. "PK028"
  85. ),
  86. new Array("/root/init/PAM/PK028list"
  87. ));
  88. //model.setValue("/root/send/orddd", getCurrentDate());
  89. model.refresh();
  90. btn_select.dispatch("DOMActivate");
  91. }
  92. // 조회
  93. function fGetDocuList() {
  94. submit("TRPID27000");
  95. }
  96. // 화면을 초기화한다.
  97. function fSpclGridInsertRow(){
  98. grd_cnstcdlist.AddRow();
  99. grd_cnstcdlist.bottomRow = grd_cnstcdlist.rows;
  100. }
  101. function fSpclGridDeleteRow(){
  102. for (var i = 0; i < grd_cnstcdlist.selectedRows; i++) {
  103. var sel = grd_cnstcdlist.selectedRow(i);
  104. grd_cnstcdlist.rowstatus(sel) = "4";
  105. }
  106. }
  107. ]]>
  108. </script>
  109. </xhtml:head>
  110. <xhtml:body pagewidth="960" pageheight="660" guideline="1,1163;2,727;2,739;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  111. <group id="grp_tle" style="left:0px; top:0px; width:865px; height:13px; ">
  112. <caption id="cap_title" class="tit_1" style="left:0px; top:0px; width:216px; height:15px; ">협진 진료과 확인코드 관리</caption>
  113. </group>
  114. <group id="grp_biz" scroll="auto" style="left:0px; top:28px; width:942px; height:592px; ">
  115. <caption id="cap_judgtrgtman" class="tit_2" style="left:4px; top:56px; width:234px; height:15px; ">협진 진료과 확인코드 리스트</caption>
  116. <line id="line1" class="line_1" style="x1:0px; y1:72px; x2:940px; y2:72px; "/>
  117. <group id="group1" style="left:0px; top:5px; width:940px; height:40px; vertical-align:top; ">
  118. <shape id="roundrect3" appearance="roundrect" style="left:0px; top:0px; width:940px; height:40px; "/>
  119. <caption id="caption30" class="search_name" style="left:8px; top:11px; width:87px; height:17px; ">확인코드 :</caption>
  120. <button id="btn_select" class="btn1_letter2" navindex="32" style="left:875px; top:10px; width:56px; height:22px; ">
  121. <caption>조회</caption>
  122. <script type="javascript" ev:event="DOMActivate">
  123. <![CDATA[
  124. fGetDocuList();
  125. ]]>
  126. </script>
  127. </button>
  128. <line id="line3" class="line_4" style="x1:860px; y1:5px; x2:860px; y2:38px; "/>
  129. <caption id="caption2" class="search_name" style="left:268px; top:11px; width:87px; height:17px; ">진료과 :</caption>
  130. <select1 id="cmb_orddeptcd" ref="/root/send/orddeptcd" class="combo_search" appearance="minimal" itemcount="20" style="left:360px; top:10px; width:100px; height:19px; ">
  131. <choices>
  132. <itemset nodeset="/root/hidden/list1/deptlist">
  133. <label ref="depthngnm"/>
  134. <value ref="deptcd"/>
  135. </itemset>
  136. </choices>
  137. <script type="javascript" ev:event="xforms-value-changed">
  138. <![CDATA[
  139. fGetDocuList();
  140. ]]>
  141. </script>
  142. </select1>
  143. <input id="ipt_cnfmcd" ref="/root/send/cnfmcd" imemode="disabled" _chartype="upper" style="left:100px; top:10px; width:100px; height:19px; ">
  144. <script type="javascript" ev:event="onkeypress">
  145. <![CDATA[
  146. if (event.keyCode == 13) {
  147. setInputNodeCurText(",");
  148. fGetDocuList();
  149. }
  150. ]]>
  151. </script>
  152. </input>
  153. <select id="chk1" ref="/root/send/endyn" class="checkbox_search" overflow="visible" appearance="full" style="left:535px; top:11px; width:100px; height:20px; font-weight:bold; border-style:none; ">
  154. <choices>
  155. <item>
  156. <label>종료이력 포함</label>
  157. <value>Y</value>
  158. </item>
  159. </choices>
  160. </select>
  161. </group>
  162. <button id="btn_excelsave" class="btn2_letter4" _auth="P" style="left:725px; top:52px; width:64px; height:19px; ">
  163. <caption>엑셀저장</caption>
  164. <script type="javascript" ev:event="DOMActivate">
  165. <![CDATA[
  166. grd_cnstcdlist.gridToInstance();
  167. if (grd_cnstcdlist.rows > 1) {
  168. var fileName = window.fileDialog("save", "", false, cap_title.value, "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  169. if (fileName != "") {
  170. grd_cnstcdlist.saveExcel(fileName, "sheetname:;colhiddenextend:true;rowhiddenextend:false;col_3:label;col_4:label;col_5:label;col_6:label;", true, true, "", "", true);
  171. }
  172. } else {
  173. messageBox("엑셀저장할 내역이", "I004"); ///엑셀저장할 내역이 없습니다.
  174. }
  175. ]]>
  176. </script>
  177. </button>
  178. <button id="button1" class="btn5_letter2" _auth="P" style="left:898px; top:52px; width:42px; height:19px; ">
  179. <caption>저장</caption>
  180. <script type="javascript" ev:event="DOMActivate">
  181. <![CDATA[
  182. var updtdata = getGridUpdateData(grd_cnstcdlist);
  183. if (updtdata == "") {
  184. messageBox("변경된 데이터가","I004");
  185. return;
  186. }
  187. for (var i=0; i < grd_cnstcdlist.rows; i++){
  188. if ((grd_cnstcdlist.rowStatus(i) == 1 || grd_cnstcdlist.rowStatus(i) == 2 || grd_cnstcdlist.rowStatus(i) == 3) &&
  189. (grd_cnstcdlist.valueMatrix(i,grd_cnstcdlist.colRef("cnfmcd")).length == 0
  190. || grd_cnstcdlist.valueMatrix(i,grd_cnstcdlist.colRef("todd")).length ==0))
  191. {
  192. var errmsg = "";
  193. if (grd_cnstcdlist.valueMatrix(i,grd_cnstcdlist.colRef("cnfmcd")).length ==0)
  194. {
  195. errmsg = grd_cnstcdlist.labelMatrix(0,grd_cnstcdlist.colRef("cnfmcd"));
  196. }
  197. if (grd_cnstcdlist.valueMatrix(i,grd_cnstcdlist.colRef("todd")).length ==0)
  198. {
  199. errmsg = grd_cnstcdlist.labelMatrix(0,grd_cnstcdlist.colRef("todd"));
  200. }
  201. messageBox(errmsg.split("\n").join("")+"는","I003");
  202. return false;
  203. }
  204. }
  205. if (messageBox("저장", "S001") == 6) {
  206. model.setValue("/root/send/cnstcdlist",grd_cnstcdlist.getUpdateData());
  207. if ( submit("TXPID27000") ) {
  208. messageBox("저장이","I002");
  209. fGetDocuList();
  210. }
  211. }
  212. ]]>
  213. </script>
  214. </button>
  215. <button id="button2" class="btn2_letter3" _auth="P" style="left:790px; top:52px; width:53px; height:19px; ">
  216. <caption>행삭제</caption>
  217. <script type="javascript" ev:event="DOMActivate">
  218. <![CDATA[
  219. fSpclGridDeleteRow();
  220. ]]>
  221. </script>
  222. </button>
  223. <button id="button3" class="btn2_letter3" _auth="P" style="left:844px; top:52px; width:53px; height:19px; ">
  224. <caption>행추가</caption>
  225. <script type="javascript" ev:event="DOMActivate">
  226. <![CDATA[
  227. fSpclGridInsertRow();
  228. ]]>
  229. </script>
  230. </button>
  231. <datagrid id="grd_cnstcdlist" nodeset="/root/main/cnstcdlist/cnstcd" class="datagrid3" caption="확인코드^구분^진료과목명^세부 전문과목명^영문과목명^진료과^시작일자^종료일자^등록자^등록일자^수정자^수정일자" colsep="^" colwidth="54, 40, 120, 120, 280, 100, 70, 70, 50, 100, 50, 105" dataheight="23" ellipsis="true" explorerbar="sort" extendlastcol="scroll" mergecellsfixedcols="bycol" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="32" rowsep="|" tooltip="true" style="left:0px; top:77px; width:940px; height:514px; ">
  232. <col autonext="true" disabled="true" ref="cnfmcd" type="input" maxlength="5" style="left:332px; top:32px; width:53px; height:23px; text-align:left; "/>
  233. <col disabled="true" ref="gubun" type="input" style="text-align:left; "/>
  234. <col disabled="true" ref="cnfmhnm" type="input" style="text-align:left; "/>
  235. <col disabled="true" ref="cnfmdnm" type="input" style="text-align:left; "/>
  236. <col autonext="true" ref="cnfmenm" type="input" style="text-align:left; "/>
  237. <col disabled="false" itemcount="20" ref="orddeptcd" type="combo" style="text-align:left; ">
  238. <choices>
  239. <itemset nodeset="/root/hidden/list1/deptlist">
  240. <label ref="depthngnm"/>
  241. <value ref="deptcd"/>
  242. </itemset>
  243. </choices>
  244. </col>
  245. <col autonext="true" ref="fromdd" type="input" format="yyyy-mm-dd" maxlength="8"/>
  246. <col autonext="true" disabled="true" ref="todd" type="input" format="yyyy-mm-dd" maxlength="8"/>
  247. <col ref="fstrgstrid" type="output" style="text-align:center; "/>
  248. <col ref="fstrgstdt" type="output" format="yyyy-mm-dd hh:nn"/>
  249. <col ref="lastupdtrid" style="text-align:center; "/>
  250. <col ref="lastupdtdt" visibility="visible" format="yyyy-mm-dd hh:nn"/>
  251. <script type="javascript" ev:event="onmousedown">
  252. <![CDATA[
  253. if (event.button == 3) { // 3 : 오른쪽 버튼
  254. if (grd_cnstcdlist.isCell(event.target) && grd_cnstcdlist.mouseRow >= grd_cnstcdlist.fixedrows) {
  255. window.setPopupMenu(true, "/root/hidden/popupmenu/clcj/item", "name", "func", false);
  256. } else {
  257. window.showPopupMenu(true);
  258. window.setPopupMenu(true, "/root/hidden/popupmenu/clcj/item", "name", "func", false);
  259. }
  260. }
  261. ]]>
  262. </script>
  263. <script type="javascript" ev:event="DOMFocusOut">
  264. <![CDATA[
  265. window.setPopupMenu(false);
  266. ]]>
  267. </script>
  268. </datagrid>
  269. </group>
  270. <button id="btn_cancel" class="btn4_letter2" style="left:884px; top:622px; width:56px; height:22px; ">
  271. <caption>종료</caption>
  272. <close ev:event="DOMActivate"/>
  273. </button>
  274. </xhtml:body>
  275. </xhtml:html>