SPPIJ03300_DRG수술코드관리.xrw 14 KB

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