SMAEB02600_핵종기준량관리.xrw 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  3. <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">
  4. <xhtml:head>
  5. <xhtml:title>검사분류별조회</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <prcpclscdlist>
  11. <prcpclscdlist/>
  12. </prcpclscdlist>
  13. <list>
  14. <nuclbasevollist/>
  15. </list>
  16. <picmmech>
  17. <picmmechlist>
  18. <picmmech_hidden/>
  19. <picmmech_calcgrupcd/>
  20. <picmmech_agepay/>
  21. <picmmech_calcscorcd/>
  22. <picmmech_insuedicd/>
  23. <picmmech_oldordcd/>
  24. <picmmech_engnm/>
  25. <picmmech_hngnm/>
  26. <picmmech_pynpy1/>
  27. <picmmech_rbpnt/>
  28. <picmmech_unitcost/>
  29. <picmmech_specrate/>
  30. <picmmech_gnrlunitcost/>
  31. <picmmech_forgnunitcost/>
  32. <picmmech_mouunitcost/>
  33. <picmmech_ordnm/>
  34. <picmmech_qty/>
  35. <picmmech_estmmncd/>
  36. <picmmech_fromdd/>
  37. <picmmech_todd/>
  38. <picmmech_lastupdtdt/>
  39. <picmmech_lastupdtrid/>
  40. <picmmech_temp_insupynpy1/>
  41. <picmmech_temp_insuunitcost/>
  42. <picmmech_temp_specrate/>
  43. <picmmech_temp_instcd/>
  44. <picmmech_temp_grupsnglflag/>
  45. <picmmech_ordinptflag/>
  46. </picmmechlist>
  47. </picmmech>
  48. </main>
  49. <prcpsrch>
  50. <prcplist>
  51. <status/>
  52. <prcpstatcd/>
  53. <prcpclscd/>
  54. <prcpkindcd/>
  55. <prcpcd/>
  56. <prcpnm/>
  57. <prcpvol/>
  58. <prcpvolunitnm/>
  59. <prcpqty/>
  60. <prcpqtyunitnm/>
  61. <prcptims/>
  62. <prcpdayno/>
  63. <drugmthdspccdnm/>
  64. <prcpmixno/>
  65. <payflagcd/>
  66. <prcpdelivefact/>
  67. <hosinhosoutflag/>
  68. <prcpexecdeptcd/>
  69. <prcphopedd/>
  70. <choiordflag/>
  71. <rgstdt/>
  72. <rgstridnm/>
  73. <testrsltunit/>
  74. <testrsltcnts/>
  75. <prcpgenrflag/>
  76. <prcphistcd/>
  77. <tempprcpflag/>
  78. <prcpsetcd/>
  79. <prcpvolunitflag/>
  80. <prcpqtyunitflag/>
  81. <orgprcpqty/>
  82. <drugspd/>
  83. <drugspdunitflag/>
  84. <powdflag/>
  85. <prnprcpflag/>
  86. <prepprcpflag/>
  87. <selfprcpflag/>
  88. <selfdrugflag/>
  89. <drugpackflag/>
  90. <erprcpflag/>
  91. <precureprcpflag/>
  92. <nigtprcpflag/>
  93. <portprcpflag/>
  94. <fixprcpflag/>
  95. <anamneflag/>
  96. <fastprcpflag/>
  97. <erreadflag/>
  98. <prcpdirecflag/>
  99. <tnsuseflag/>
  100. <tnsfiltflag/>
  101. <trnptbftestflag/>
  102. <offictourhealexamflag/>
  103. <stemcellflag/>
  104. <angioflagcd/>
  105. <opansflagcd/>
  106. <ansttm/>
  107. <mealcalrcnts/>
  108. <mealprotcnts/>
  109. <mealupdtflag/>
  110. <hosinprcpresncd/>
  111. <etcprcpresncd/>
  112. <drugmthdspccd/>
  113. <issdeptcd/>
  114. <prcpauthflag/>
  115. <prcpinptflag/>
  116. <prcpsignflag/>
  117. <rateprcpflag/>
  118. <prcprefseq/>
  119. <ordreqlnkno/>
  120. <testreqlnkno/>
  121. <prcplnkdd/>
  122. <prcplnkno/>
  123. <oprsrvno/>
  124. <tootfact/>
  125. <clinccmtcnts/>
  126. <prcpessninptflag/>
  127. <grupsnglflag/>
  128. <drugrateqty/>
  129. <asttestflag/>
  130. <clincstdyflag/>
  131. <prtlno/>
  132. <clincstdycd/>
  133. <optermcd/>
  134. <prcpflag/>
  135. <hscttempprcpflag/>
  136. <inclprcpcd/>
  137. <inclprcpno/>
  138. <pampkspec/>
  139. <prcppkspec/>
  140. <calcscormastspec/>
  141. <drugmastspec/>
  142. <rateprcpspec/>
  143. <matrsetprcpspec/>
  144. <suppdeptspec/>
  145. <contprcpspec/>
  146. <etclnkspec/>
  147. <srchcondcnts/>
  148. <orgprcpnm/>
  149. <chkcol/>
  150. <hsctdelivepos/>
  151. <hsctlnkno/>
  152. <etcprcpflag/>
  153. <aftcertflag/>
  154. <aftcertdrid/>
  155. <prcpvalidd/>
  156. <insukind/>
  157. <specdrid/>
  158. <anticncrprtlno/>
  159. <anticncrdayno/>
  160. <druglnkno/>
  161. <drprcpetc1/>
  162. <drprcpetc2/>
  163. <drprcpetc3/>
  164. <drprcpetc4/>
  165. <drprcpetc5/>
  166. <drprcpetc6/>
  167. <drprcpetc7/>
  168. <drprcpetc8/>
  169. <drprcpetc9/>
  170. <drprcpetc10/>
  171. <tempcol1/>
  172. <tempcol2/>
  173. <tempcol3/>
  174. <tempcol4/>
  175. <tempcol5/>
  176. <tempcol6/>
  177. <tempcol7/>
  178. <tempcol8/>
  179. <tempcol9/>
  180. <tempcol10/>
  181. <tempcol11/>
  182. <tempcol12/>
  183. <tempcol13/>
  184. <tempcol14/>
  185. <tempcol15/>
  186. <tempcol16/>
  187. <tempcol17/>
  188. <tempcol18/>
  189. <tempcol19/>
  190. <tempcol20/>
  191. <tempcol21/>
  192. <tempcol22/>
  193. <tempcol23/>
  194. <tempcol24/>
  195. <tempcol25/>
  196. </prcplist>
  197. </prcpsrch>
  198. <send>
  199. <midclscd/>
  200. <smlclscd/>
  201. <suppdeptcd/>
  202. <excucd/>
  203. <excucdnm/>
  204. <nuclbasevollist/>
  205. <cond1/>
  206. <cond2/>
  207. <cond3/>
  208. <cond4/>
  209. <cond5/>
  210. <cond6/>
  211. <cond7/>
  212. <cond8/>
  213. <cond9/>
  214. <cond10/>
  215. <cond99/>
  216. <data>
  217. <con1_dd/>
  218. <con2_gsflag/>
  219. <con3_search1/>
  220. <con4_search2/>
  221. <con5_insu/>
  222. <con6_calcscorcd/>
  223. <con7_todd/>
  224. <con8_instcd/>
  225. <con9_lastupdtdt/>
  226. </data>
  227. <row/>
  228. </send>
  229. <init>
  230. <P0104list>
  231. <P0104>
  232. <cdid/>
  233. <cdnm/>
  234. </P0104>
  235. </P0104list>
  236. <P0141list>
  237. <P0141>
  238. <cdid/>
  239. <cdnm/>
  240. </P0141>
  241. </P0141list>
  242. <clsnm/>
  243. <updtyn/>
  244. <prcpclscd/>
  245. </init>
  246. <hidden>
  247. <list1>
  248. <testclslist/>
  249. </list1>
  250. <list2>
  251. <nuclcdlist>
  252. <label/>
  253. <value/>
  254. </nuclcdlist>
  255. </list2>
  256. <iMouseRow/>
  257. </hidden>
  258. </root>
  259. </instance>
  260. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  261. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  262. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  263. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  264. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  265. <script type="javascript">
  266. <![CDATA[
  267. // 초기화
  268. function fInitialize() {
  269. zbcfGetCodeList(new Array("P0104","P0141"),new Array("/root/init/P0104list","/root/init/P0141list"));
  270. model.removenode("/root/prcpsrch");
  271. model.removenode("/root/main/picmmech");
  272. model.setValue("/root/send/cond1","E");
  273. submit("TRMMO02201");
  274. }
  275. // 검사 상세 분류 조회
  276. function fPrcpClsSrchInfo(flag) {
  277. var iMouseRow;
  278. var row = model.getValue("/root/hidden/iMouseRow");
  279. if (flag == "S") {
  280. iMouseRow = trv_prcpclscdlist.mouseRow;
  281. model.setValue("/root/hidden/iMouseRow",iMouseRow);
  282. } else {
  283. iMouseRow = row;
  284. }
  285. var iRow = eval(iMouseRow) + 1;
  286. var prcpclscd = model.getValue ( "/root/main/prcpclscdlist/prcpclscdlist[" + iRow + "]/prcpclscd");
  287. var prcpclscd1 = model.getValue ( "/root/main/prcpclscdlist/prcpclscdlist[" + iRow + "]/prcpclscd1");
  288. var prcpclscd2 = model.getValue ( "/root/main/prcpclscdlist/prcpclscdlist[" + iRow + "]/prcpclscd2");
  289. var prcpclscd3 = model.getValue ( "/root/main/prcpclscdlist/prcpclscdlist[" + iRow + "]/prcpclscd3");
  290. var prcpclsnm = model.getValue ( "/root/main/prcpclscdlist/prcpclscdlist[" + iRow + "]/prcpclsnm");
  291. var lvl = model.getValue ( "/root/main/prcpclscdlist/prcpclscdlist[" + iRow + "]/lvl");
  292. iRow = eval(iMouseRow) + 2;
  293. var lvl2 = model.getValue ( "/root/main/prcpclscdlist/prcpclscdlist[" + iRow + "]/lvl");
  294. if ( lvl != lvl2 && !isNull(lvl2)) {
  295. if ( lvl < lvl2 ) {
  296. trv_prcpclscdlist.expand(trv_prcpclscdlist.mouseRow, true);
  297. model.removenode("root/prcpsrch");
  298. model.refresh();
  299. return false;
  300. }
  301. }
  302. var gSRCHFLAG = "1";
  303. var gPRCPFLAG = "1";
  304. var ordprcpflag = "";
  305. var ioflag = "I";
  306. model.resetInstanceNode( "/root/send" );
  307. model.setValue ( "/root/send/cond1" , gSRCHFLAG); // 검색구분(식이, 지시..)
  308. model.setValue ( "/root/send/cond2" , ioflag ); // 외래, 입원, 응급 구분
  309. model.setValue ( "/root/send/cond3" , getCurrentDate()); // 처방일
  310. model.setValue ( "/root/send/cond4" , "11"); // 환자보험유형
  311. model.setValue ( "/root/send/cond5" , prcpclscd1); // 분류1
  312. model.setValue ( "/root/send/cond6" , prcpclscd2); // 분류2
  313. model.setValue ( "/root/send/cond7" , prcpclscd3); // 분류3
  314. model.setValue ( "/root/send/cond8" , prcpclscd ); // 분류: 약에서 사용한다.
  315. model.setValue ( "/root/send/cond9" , gPRCPFLAG ); // 지시처방
  316. model.setValue ( "/root/send/cond10", ordprcpflag); // 지시처방구분(일반:genr, BMT:bmt)
  317. model.setValue ( "/root/send/cond99","getPrcpClsSrchInfo" ); // 검색구분
  318. model.removenode("/root/main/picmmech");
  319. if (submit( "TRAEB02601" )){
  320. grd_prcpsrchlist.valueMatrix ( 0, 2 ) = prcpclsnm.getTrim();
  321. return true;
  322. }
  323. }
  324. ]]>
  325. </script>
  326. <script type="javascript" ev:event="xforms-ready">
  327. <![CDATA[
  328. fInitialize();
  329. ]]>
  330. </script>
  331. <script type="javascript" ev:event="xforms-model-construct-done">
  332. <![CDATA[
  333. //group1.attribute("height") = 0;
  334. ]]>
  335. </script>
  336. <submission id="TRZBC00101"/>
  337. <submission id="TRMMO02201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/prcpclscdlist"/>
  338. <submission id="TRAEB02601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/prcpsrch"/>
  339. <submission id="TRAEB02602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" resultref="/root/main/picmmech"/>
  340. <submission id="TXAEB02601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data/prcpsrch"/>
  341. </model>
  342. </xhtml:head>
  343. <xhtml:body pagewidth="1211" pageheight="784" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  344. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  345. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:189px; height:14px; ">검사 분류별 조회</caption>
  346. </group>
  347. <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:740px; ">
  348. <caption id="caption2" class="tit_2" style="left:0px; top:8px; width:161px; height:14px; vertical-align:middle; ">검사분류</caption>
  349. <line id="line1" class="line_1" style="x1:0px; y1:24px; x2:235px; y2:24px; "/>
  350. <button id="button2" class="btn2_letter2" style="left:151px; top:4px; width:42px; height:19px; ">
  351. <caption>처방</caption>
  352. <script type="javascript" ev:event="onclick">
  353. <![CDATA[
  354. model.removenode("root/prcpsrch");
  355. model.setValue("/root/send/cond1","E");
  356. submit("TRMMO02201");
  357. ]]>
  358. </script>
  359. </button>
  360. <button id="button1" class="btn2_letter2" style="left:194px; top:4px; width:42px; height:19px; ">
  361. <caption>재료</caption>
  362. <script type="javascript" ev:event="onclick">
  363. <![CDATA[
  364. model.removenode("root/prcpsrch");
  365. model.setValue("/root/send/cond1","L");
  366. submit("TRMMO02201");
  367. ]]>
  368. </script>
  369. </button>
  370. <treeview id="trv_prcpclscdlist" ref="/root/main/prcpclscdlist/prcpclscdlist" expanddepth="1" itemsettype="depth" style="left:0px; top:29px; width:235px; height:706px; border-style:solid; ">
  371. <itemset nodeset="/root/main/prcpclscdlist/prcpclscdlist">
  372. <label ref="prcpclsnm"/>
  373. <value ref="path"/>
  374. <depth ref="lvl"/>
  375. </itemset>
  376. <script type="javascript" ev:event="xforms-select">
  377. <![CDATA[
  378. fPrcpClsSrchInfo("S");
  379. ]]>
  380. </script>
  381. </treeview>
  382. <datagrid id="grd_prcpsrchlist" nodeset="/root/prcpsrch/prcplist" caption="선택^검사코드^검사명^종료일자^사용여부" colsep="^" colwidth="0, 146, 770, 0, 0" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:240px; top:29px; width:955px; height:441px; ">
  383. <col checkvalue="Y,N" ref="check" type="checkbox" visibility="hidden"/>
  384. <col ref="prcpcd"/>
  385. <col ref="prcpnm"/>
  386. <col ref="todd" format="yyyy-mm-dd" style="text-align:center; "/>
  387. <col disabled="true" ref="prcpuseflag" type="combo">
  388. <choices>
  389. <itemset nodeset="/root/init/P0141list/P0141">
  390. <label ref="cdnm"/>
  391. <value ref="cdid"/>
  392. </itemset>
  393. </choices>
  394. </col>
  395. <script type="javascript" ev:event="onclick">
  396. <![CDATA[
  397. if ( (grd_prcpsrchlist.row >= grd_prcpsrchlist.fixedRows) && (grd_prcpsrchlist.isCell(event.target)) ) {
  398. var row = grd_prcpsrchlist.row;
  399. var prcpcd = model.getValue("/root/prcpsrch/prcplist[ " + row + "]/prcpcd");
  400. model.setValue("/root/send/data/con1_dd",getCurrentDate());
  401. model.setValue("/root/send/data/con3_search1", "calcscorcd");
  402. model.setValue("/root/send/data/con4_search2", prcpcd);
  403. model.setValue("/root/send/data/con5_insu", "insu");
  404. model.setValue("/root/send/data/con9_lastupdtdt",getCurrentDate());
  405. submit( "TRAEB02602" );
  406. grd_mech.rebuildStyle();
  407. // 무산정 싱글이 존재하는 경우, 단가합에서 제외처리 추가 by 조중래 20141201
  408. var sUnitCostSum = 0;
  409. var sUnitCostFree = 0;
  410. var sGroupIndex = 0;
  411. var listCnt = getNodesetCount("/root/main/picmmech/picmmechlist");
  412. for (var i = 1; i <= listCnt; i++){
  413. if (model.getValue("/root/main/picmmech/picmmechlist[" + i + "]/picmmech_hidden") == "1") {
  414. sUnitCostSum = Number(model.getValue("/root/main/picmmech/picmmechlist[" + i + "]/picmmech_unitcost"));
  415. sGroupIndex = i;
  416. continue;
  417. }
  418. // 무산정 싱글의 경우, 해당 금액을 저장
  419. if (model.getValue("/root/main/picmmech/picmmechlist[" + i + "]/picmmech_freeflag") == "Y") {
  420. grd_mech.cellStyle("background-color" , i + 1, grd_mech.colRef("picmmech_freeflag") , i + 1, grd_mech.colRef("picmmech_freeflag")) = "#FFCCFF";
  421. sUnitCostFree += Number(model.getValue("/root/main/picmmech/picmmechlist[" + i + "]/picmmech_unitcost"));
  422. }
  423. }
  424. //alert( "sUnitCostSum = " + sUnitCostSum);
  425. //alert( "sUnitCostFree = " + sUnitCostFree);
  426. // 무산정 단가가 존재한다면, 단가합에서 제외처리
  427. if (sUnitCostFree > 0) {
  428. model.setValue("/root/main/picmmech/picmmechlist[" + sGroupIndex + "]/picmmech_unitcost", (sUnitCostSum - sUnitCostFree));
  429. }
  430. setTree(grd_mech, 0, 0, false);
  431. model.refresh();
  432. }
  433. ]]>
  434. </script>
  435. </datagrid>
  436. <line id="line2" class="line_1" style="x1:240px; y1:24px; x2:1195px; y2:24px; "/>
  437. <button id="button3" class="btn2_letter2" visibility="hidden" style="left:1150px; top:5px; width:42px; height:19px; ">
  438. <caption>저장</caption>
  439. <script type="javascript" ev:event="onclick">
  440. <![CDATA[
  441. var nodeList = instance1.selectNodes("/root/prcpsrch/prcplist[check='Y' ]");
  442. var rCSV = getNodeListCSV(nodeList);
  443. if ( rCSV == null ) {
  444. messageBox("그룹코드를 선택해 주십시오.","I999");
  445. return "0";
  446. }
  447. model.makeValue("/root/send/data/prcpsrch/prcplist", rCSV);
  448. if (submit("TXAEB02601")) {
  449. fPrcpClsSrchInfo("R");
  450. }
  451. ]]>
  452. </script>
  453. </button>
  454. <caption id="caption1" class="tit_2" style="left:245px; top:8px; width:161px; height:14px; vertical-align:middle; ">그룹코드</caption>
  455. <caption id="caption3" class="tit_2" style="left:240px; top:479px; width:161px; height:13px; vertical-align:middle; ">하위 수가코드</caption>
  456. <line id="line3" class="line_1" style="x1:240px; y1:495px; x2:1195px; y2:495px; "/>
  457. <datagrid id="grd_mech" nodeset="/root/main/picmmech/picmmechlist" caption="±^그룹코드^수가코드^보험EDI코드^분류번호^처방명^수량^무&#xA;산정^보험^보험^보험^일반^한글명|±^그룹코드^수가코드^보험EDI코드^분류번호^처방명^수량^무&#xA;산정^급여구분^단가합^특진단가^단가합^한글명" colsep="^" colwidth="19, 90, 90, 80, 77, 277, 40, 40, 60, 73, 60, 60, 190" mergecellsfixedrows="bycolrec" rowsep="|" style="left:240px; top:500px; width:955px; height:235px; ">
  458. <col ref="picmmech_hidden"/>
  459. <col ref="picmmech_calcgrupcd"/>
  460. <col ref="picmmech_calcscorcd"/>
  461. <col ref="picmmech_insuedicd"/>
  462. <col ref="picmmech_insuclsno"/>
  463. <col ref="picmmech_ordnm"/>
  464. <col ref="picmmech_qty" style="text-align:right; "/>
  465. <col ref="picmmech_freeflag" style="text-align:center; "/>
  466. <col disabled="true" ref="picmmech_pynpy1" type="combo" style="text-align:center; ">
  467. <choices>
  468. <itemset nodeset="/root/init/P0104list/P0104">
  469. <label ref="cdnm"/>
  470. <value ref="cdid"/>
  471. </itemset>
  472. </choices>
  473. </col>
  474. <col ref="picmmech_unitcost" format="#,###,###" style="text-align:right; "/>
  475. <col ref="picmmech_specamt" format="#,###" style="text-align:right; "/>
  476. <col ref="picmmech_gnrlunitcost" format="#,###" style="text-align:right; "/>
  477. <col ref="picmmech_hngnm" visibility="hidden"/>
  478. </datagrid>
  479. </group>
  480. </xhtml:body>
  481. </xhtml:html>