SPLLF91000_대체코드관리.xrw 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SPLLF91000_대체코드관리.xrw
  4. * 설 명 : 대체코드관리
  5. * 설 계 자 : (주)에이씨케이 -
  6. * 작 성 자 : (주)에이씨케이 - 박정은
  7. * 작 성 일 : 2010.12.21
  8. * 수정이력 :
  9. * 기 타 :
  10. -->
  11. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.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. <![CDATA[]]>
  15. <xhtml:title>대체코드관리</xhtml:title>
  16. <model id="model1">
  17. <instance id="instance1">
  18. <root>
  19. <main>
  20. <replcecdlist>
  21. <calcscorcd/>
  22. <ordnm/>
  23. <grupsnglflag/>
  24. <ordinptflag/>
  25. <insuedicd/>
  26. <prcpclscd/>
  27. <etcflag2/>
  28. <oldordcd/>
  29. <oldseqno/>
  30. <oldsnglcd/>
  31. <clincresyn/>
  32. <tsectcd/>
  33. <testmdlcd/>
  34. <prcppossyn/>
  35. <tclsscrnnm/>
  36. <tocalcscorcd/>
  37. <remark/>
  38. <errflag/>
  39. </replcecdlist>
  40. </main>
  41. <send>
  42. <refgbn/>
  43. <searchtext/>
  44. <grddata/>
  45. <codeflag/>
  46. <tsect/>
  47. </send>
  48. <init>
  49. </init>
  50. <hidden>
  51. <ref>
  52. <cmbflag>1</cmbflag>
  53. <text1/>
  54. <select02>00</select02>
  55. </ref>
  56. </hidden>
  57. </root>
  58. </instance>
  59. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  60. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  61. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  62. <script type="javascript" ev:event="xforms-ready">
  63. <![CDATA[
  64. fSetInit();
  65. //model.removeNodeset("/root/main/replcecdlist");
  66. // fGetReplceCode();
  67. //model.refresh();
  68. ]]>
  69. </script>
  70. <submission id="TXLBF00101" ref="root/send/data1" method="post" mediatype="application/x-www-form-urlencoded" replace="instance" resultref="root/main/bloodlist"/>
  71. <submission id="TRLLF91001" ref="root/send" method="post" mediatype="application/x-www-form-urlencoded" replace="instance" resultref="/root/main/replcecdlist"/>
  72. <submission id="TXLLF91001" ref="/root/send" method="post" mediatype="application/x-www-form-urlencoded" replace="instance"/>
  73. <submission id="TRLZZ00101" ref="/root/send/codeflag" method="post" mediatype="application/x-www-form-urlencoded" replace="instance" resultref="/root/LB"/>
  74. </model>
  75. <script type="javascript">
  76. <![CDATA[
  77. function fChkPatU(){
  78. var Chkuserid = model.getValue("/root/init/LB0000/cd");
  79. var n = getNodesetCount("/root/init/LB9987[cd='" + Chkuserid + "']");
  80. if(n > 0){ //권한있음
  81. btn_cnfm.disabled = false;
  82. } else{
  83. btn_cnfm.disabled = true;
  84. }
  85. }
  86. // 초기화
  87. function fSetInit(){
  88. model.setValue("/root/send/codeflag", "0000|0111|0106|9987|"); //0104 대분류 0102 중분류
  89. submit("TRLZZ00101");
  90. fChkPatU();
  91. model.setValue("/root/hidden/ref/cmbflag", "1");
  92. model.setValue("/root/send/searchtext", "");
  93. model.setValue("/root/send/tsect", "00");
  94. fGetReplceCode();
  95. }
  96. // 대체코드 조회
  97. function fGetReplceCode(text){
  98. model.setValue("/root/send/refgbn", model.getValue("/root/hidden/ref/cmbflag")); // 조회구분
  99. model.setValue("/root/send/searchtext", model.getValue("/root/hidden/ref/text1"));
  100. model.setValue("/root/send/tsect", model.getValue("/root/hidden/ref/select02"));
  101. submit("TRLLF91001");
  102. // checkKeyColumn("grd_bloodlist");
  103. }
  104. // 행삭제
  105. function fInsRowdel() {
  106. var row = grd_bloodlist.row;
  107. var selectyn = model.getValue("/root/main/bloodlist["+row+"]/selectyn");
  108. if(selectyn == "Y"){
  109. messageBox("이미 등록된 성분제제는 삭제할 수 없습니다.","I");
  110. return;
  111. }else{
  112. grd_bloodlist.rowStatus(row) = 4;
  113. }
  114. }
  115. // 행추가
  116. function fInsRowAdd() {
  117. grd_bloodlist.addRow();
  118. }
  119. // 저장(삽입, 삭제, 수정)
  120. function fExeEqmtSave() {
  121. var blodbarcd, blodcomcd, blodbasevol, dispseq;
  122. model.setValue("/root/send/data1", grd_bloodlist.getUpdateData());
  123. for(i=1; i<=grd_bloodlist.rows ; i++){
  124. if(grd_bloodlist.rowStatus(i) == 3){
  125. blodbarcd = model.getValue("/root/main/bloodlist["+i+"]/blodbarcd");
  126. blodcomcd = model.getValue("/root/main/bloodlist["+i+"]/blodcomcd");
  127. blodbasevol = model.getValue("/root/main/bloodlist["+i+"]/blodbasevol");
  128. dispseq = model.getValue("/root/main/bloodlist["+i+"]/dispseq");
  129. if(blodbarcd ==''||blodcomcd == ''||blodbasevol == ''||dispseq == ''){
  130. messageBox("혈액바코드, 성분제제코드, 기준량, 표시순서는 반드시 입력해야 합니다", "I");
  131. return;
  132. }
  133. }
  134. }
  135. submit("TXLBF00101");
  136. fblodbaseinfo();
  137. }
  138. // 저장 수정
  139. function fExeReplceCd(){
  140. var grddata = grd_replcecdlist.getUpdateData();
  141. if(grddata == ""){
  142. alert("수정된 데이터가 없습니다. ");
  143. }else{
  144. model.setValue("/root/send/grddata", grddata);
  145. submit("TXLLF91001");
  146. fGetReplceCode(); // 수정된후 재조회
  147. }
  148. }
  149. //키이벤트 엔터키 입력시
  150. function fKeyEvent(){
  151. if(event.keyCode == "13"){
  152. if(event.target =="input1"){
  153. fGetReplceCode();
  154. }
  155. }
  156. }
  157. ]]>
  158. </script>
  159. </xhtml:head>
  160. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  161. <group id="group3" scroll="auto" style="left:0px; top:40px; width:1195px; height:744; ">
  162. <line id="line1" class="line_1" style="x1:0px; y1:70px; x2:1194px; y2:70px; "/>
  163. <group id="group1" style="left:0px; top:10px; width:1195px; height:35px; font-weight:bold; ">
  164. <shape id="roundrect2" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:35px; "/>
  165. <line id="line3" class="line_4" style="x1:585px; y1:7px; x2:585px; y2:29px; "/>
  166. <button id="btn_Ref" class="btn1_letter2" style="left:600px; top:7px; width:56px; height:22px; ">
  167. <caption>조회</caption>
  168. <script type="javascript" ev:event="DOMActivate">
  169. <![CDATA[
  170. fGetReplceCode();
  171. ]]>
  172. </script>
  173. </button>
  174. <caption id="caption1" class="search_name" style="left:15px; top:9px; width:90px; height:17px; ">조회구분 :</caption>
  175. <select1 id="cmbflag" ref="/root/hidden/ref/cmbflag" class="combo_search" appearance="minimal" style="left:108px; top:8px; width:150px; height:19px; ">
  176. <choices>
  177. <item>
  178. <label>전체</label>
  179. <value>1</value>
  180. </item>
  181. <item>
  182. <label>처방코드</label>
  183. <value>2</value>
  184. </item>
  185. <item>
  186. <label>처방명</label>
  187. <value>3</value>
  188. </item>
  189. <item>
  190. <label>검사코드</label>
  191. <value>4</value>
  192. </item>
  193. <item>
  194. <label>검사명</label>
  195. <value>5</value>
  196. </item>
  197. <item>
  198. <label>대체코드</label>
  199. <value>6</value>
  200. </item>
  201. </choices>
  202. </select1>
  203. <input id="input1" ref="/root/hidden/ref/text1" style="left:264px; top:8px; width:151px; height:19px; text-align:left; ">
  204. <script type="javascript" ev:event="onkeypress">
  205. <![CDATA[
  206. if (event.keycode == "13"){
  207. if(event.target == "input1"){
  208. model.setValue("/root/send/searchtext" , input1.currentText);
  209. model.setValue("/root/send/refgbn", model.getValue("/root/hidden/ref/cmbflag")); // 조회구분
  210. //model.setValue("/root/send/searchtext", model.getValue("/root/hidden/ref/text1"));
  211. model.setValue("/root/send/tsect", model.getValue("/root/hidden/ref/select02"));
  212. submit("TRLLF91001");
  213. model.setValue("/root/hidden/ref/text1" , "" );
  214. }
  215. }
  216. ]]>
  217. </script>
  218. </input>
  219. <select1 id="combo3" ref="/root/hidden/ref/select02" appearance="minimal" itemcount="10" style="left:420px; top:8px; width:150px; height:19px; ">
  220. <choices>
  221. <itemset nodeset="/root/init/LB0106">
  222. <label ref="nm"/>
  223. <value ref="cd"/>
  224. </itemset>
  225. </choices>
  226. <script type="javascript" ev:event="xforms-value-changed">
  227. <![CDATA[
  228. fGetReplceCode();
  229. ]]>
  230. </script>
  231. </select1>
  232. </group>
  233. <caption id="caption3" class="tit_2" style="left:5px; top:55px; width:134px; height:14px; ">대체코드 조회</caption>
  234. <button id="button2" class="btn2_letter3" visibility="hidden" style="left:984px; top:50px; width:53px; height:19px; ">
  235. <caption>행추가</caption>
  236. <script type="javascript" ev:event="DOMActivate">
  237. <![CDATA[
  238. fInsRowAdd();
  239. ]]>
  240. </script>
  241. </button>
  242. <button id="button1" class="btn2_letter3" visibility="hidden" style="left:1040px; top:50px; width:53px; height:19px; ">
  243. <caption>행삭제</caption>
  244. <script type="javascript" ev:event="DOMActivate">
  245. <![CDATA[
  246. fInsRowdel();
  247. ]]>
  248. </script>
  249. </button>
  250. <datagrid id="grd_replcecdlist" nodeset="/root/main/replcecdlist" autoresize="true" caption="처방코드^처방명^수가그룹&#xA;구분^처방가능&#xA;여부(수가)^보험코드^처방&#xA;분류^Class번호(OLD)^처방코드(OLD)^처방사전&#xA;번호(OLD)^행위코드(OLD)^임상구분(1:건진)^시행부서(검사)^검사분류(검사)^처방가능여부(검사)^검사명^대체코드^비고^오류유형^이미등록된것인지여부^수정전시작일자^수정전종료일자" colwidth="67, 183, 33, 35, 51, 34, 40, 56, 50, 51, 39, 50, 50, 44, 164, 65, 108, 33" dataheight="32" defaultrows="1" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="40" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" tooltip="true" style="left:0px; top:75px; width:1194px; height:646px; ">
  251. <col ref="calcscorcd" _key="true"/>
  252. <col ref="ordnm"/>
  253. <col ref="grupsnglflag" format="yyyy-mm-dd"/>
  254. <col ref="ordinptflag" format="yyyy-mm-dd"/>
  255. <col ref="insuedicd"/>
  256. <col ref="prcpclscd"/>
  257. <col ref="etcflag2"/>
  258. <col ref="oldordcd"/>
  259. <col ref="oldseqno"/>
  260. <col ref="oldsnglcd"/>
  261. <col ref="clincresyn"/>
  262. <col ref="tsectcd" maxlength="2"/>
  263. <col ref="testmdlcd" type="input" maxlength="2" style="background-color:#99ccff; "/>
  264. <col ref="prcppossyn"/>
  265. <col ref="tclsscrnnm"/>
  266. <col ref="tocalcscorcd" type="input" style="background-color:#99ccff; "/>
  267. <col ref="remark" type="input" style="background-color:#99ccff; "/>
  268. <col ref="errflag"/>
  269. <script type="javascript" ev:event="xforms-value-changed">
  270. <![CDATA[
  271. //시작일,종료일 체크
  272. // fCellValueCheck();
  273. ]]>
  274. </script>
  275. <script type="javascript" ev:event="onaftersort">
  276. <![CDATA[
  277. grd_replcecdlist.gridToInstance();
  278. ]]>
  279. </script>
  280. </datagrid>
  281. <button id="btn_excel" class="btn2_letter4" style="left:1130px; top:49px; width:64px; height:19px; ">
  282. <caption>엑셀저장</caption>
  283. <script type="javascript" ev:event="DOMActivate">
  284. <![CDATA[
  285. //fExeExcel(grd_replcecdlist);
  286. var filename = window.fileDialog("save",",",false,"excel","xls","All File(*.*)|*.*|Excel File(*.xls)|*.xls");
  287. if(filename != "") {
  288. grd_replcecdlist.saveExcel(filename);
  289. }
  290. ]]>
  291. </script>
  292. </button>
  293. </group>
  294. <group id="group2" style="left:0px; top:0px; width:1195px; height:13px; ">
  295. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">대체코드관리</caption>
  296. </group>
  297. <group id="grp_btn" style="left:0px; top:13px; width:1195px; height:27px; ">
  298. <line id="line32" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
  299. <button id="btn_reset" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
  300. <caption>초기화</caption>
  301. <script type="javascript" ev:event="DOMActivate">
  302. <![CDATA[
  303. fSetInit();
  304. ]]>
  305. </script>
  306. </button>
  307. <button id="btn_cnfm" class="btn4_letter2" disabled="true" style="left:1068px; top:3px; width:56px; height:22px; ">
  308. <caption>저장</caption>
  309. <script type="javascript" ev:event="DOMActivate">
  310. <![CDATA[
  311. fExeReplceCd();
  312. ]]>
  313. </script>
  314. </button>
  315. </group>
  316. </xhtml:body>
  317. </xhtml:html>