SPPIR31300_원내처방E삭감내역.xfdl 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407
  1. <?xml version="1.0" encoding="utf-8" standalone="no"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml" />
  4. <Form id="SPPIR31300" position="absolute 0 0 1100 784" titletext="원내처방 E 삭감내역 조회" onload="SPPIR31300_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div id="group2" position="absolute 0 23 1100 60" style="">
  8. <Layouts>
  9. <Layout>
  10. <Shape id="roundrect2" anchor="default" class="roundrect_search" type="roundrectangle" position="absolute 5 0 1095 35" style="border: solid #ffd799 #ffd799;background:#fffbf2 ;" />
  11. <Button id="btn_search" class="btn1_letter2" position="absolute 1025 10 1081 32" style="" text="조회" onclick="group2_btn_search_onclick" />
  12. <Shape id="line1" class="line_4" linetype="vertical" position="absolute 1015 10 1018 32" style="border: solid #ffe4bb #ffe4bb;" anchor="default" />
  13. <Static id="caption4" class="search_name" position="absolute 10 10 101 27" style="" text="일자 :" />
  14. <Calendar id="input1" class="input_s_essential" position="absolute 77 9 167 28" style="" anchor="default" />
  15. <Calendar id="input2" class="input_s_essential" position="absolute 190 9 280 28" style="" anchor="default" />
  16. <Static id="caption1" position="absolute 172 9 192 29" style="font:,12,bold;" text="~" />
  17. <Edit id="input3" class="input_essential" position="absolute 410 10 495 29" style="" anchor="default" onkeypress="group2_input3_onkeypress" />
  18. <Static id="caption3" class="search_name" position="absolute 320 10 420 27" style="" text="환자번호 :" />
  19. <Button id="button3" class="icon_search" position="absolute 500 10 516 26" style="" text="" onclick="group2_button3_onclick" />
  20. </Layout>
  21. </Layouts>
  22. </Div>
  23. <Div id="group3" position="absolute 0 0 1100 13" style="">
  24. <Layouts>
  25. <Layout>
  26. <Static id="caption60" class="tit_1" position="absolute 0 0 183 14" style="font:돋움,,돋움;align: middle;" text="원내처방 E 삭감내역 조회" />
  27. </Layout>
  28. </Layouts>
  29. </Div>
  30. <Static id="caption2" class="tit_2" position="absolute 10 68 150 81" style="" text="원내처방 E 삭감내역" />
  31. <Grid id="grd_outcutlist" binddataset="ds_main_outcut_outcutlist" position="absolute 0 90 1095 752" style="align:center ;">
  32. <Formats>
  33. <Format id="default">
  34. <Columns>
  35. <Column size="60" />
  36. <Column size="60" />
  37. <Column size="90" />
  38. <Column size="50" />
  39. <Column size="50" />
  40. <Column size="70" />
  41. <Column size="55" />
  42. <Column size="65" />
  43. <Column size="65" />
  44. <Column size="55" />
  45. <Column size="75" />
  46. <Column size="30" />
  47. <Column size="70" />
  48. <Column size="35" />
  49. <Column size="70" />
  50. <Column size="70" />
  51. <Column size="200" />
  52. <Column size="70" />
  53. <Column size="33" />
  54. <Column size="33" />
  55. <Column size="33" />
  56. <Column size="75" />
  57. <Column size="75" />
  58. <Column size="33" />
  59. <Column size="33" />
  60. <Column size="33" />
  61. <Column size="75" />
  62. <Column size="500" />
  63. </Columns>
  64. <Rows>
  65. <Row size="24" band="head" />
  66. <Row size="24" />
  67. </Rows>
  68. <Band id="head">
  69. <Cell text="환자번호" />
  70. <Cell col="1" text="환자명" />
  71. <Cell col="2" text="진료과" />
  72. <Cell col="3" text="진료의" />
  73. <Cell col="4" text="심사자" />
  74. <Cell col="5" text="보험유형" />
  75. <Cell col="6" text="청구년월" />
  76. <Cell col="7" text="심사차수" />
  77. <Cell col="8" text="접수번호" />
  78. <Cell col="9" text="명일련" />
  79. <Cell col="10" text="본인추가금" />
  80. <Cell col="11" text="줄" />
  81. <Cell col="12" text="처방일" />
  82. <Cell col="13" text="조정&#xA;코드" />
  83. <Cell col="14" text="처방코드" />
  84. <Cell col="15" text="EDI코드" />
  85. <Cell col="16" text="처방명" />
  86. <Cell col="17" text="단가" />
  87. <Cell col="18" text="청구" />
  88. <Cell col="19" text="청구" />
  89. <Cell col="20" text="청구" />
  90. <Cell col="21" text="청구" />
  91. <Cell col="22" text="청구" />
  92. <Cell col="23" text="삭감" />
  93. <Cell col="24" text="삭감" />
  94. <Cell col="25" text="삭감" />
  95. <Cell col="26" text="삭감" />
  96. <Cell col="27" text="삭감|환자번호" />
  97. <Cell col="28" text="환자명" />
  98. <Cell col="29" text="진료과" />
  99. <Cell col="30" text="진료의" />
  100. <Cell col="31" text="심사자" />
  101. <Cell col="32" text="보험유형" />
  102. <Cell col="33" text="청구년월" />
  103. <Cell col="34" text="심사차수" />
  104. <Cell col="35" text="접수번호" />
  105. <Cell col="36" text="명일련" />
  106. <Cell col="37" text="본인추가금" />
  107. <Cell col="38" text="줄" />
  108. <Cell col="39" text="처방일" />
  109. <Cell col="40" text="조정&#xA;코드" />
  110. <Cell col="41" text="처방코드" />
  111. <Cell col="42" text="EDI코드" />
  112. <Cell col="43" text="처방명" />
  113. <Cell col="44" text="단가" />
  114. <Cell col="45" text="수량" />
  115. <Cell col="46" text="횟수" />
  116. <Cell col="47" text="날수" />
  117. <Cell col="48" text="금액" />
  118. <Cell col="49" text="청구액" />
  119. <Cell col="50" text="수량" />
  120. <Cell col="51" text="일투" />
  121. <Cell col="52" text="총투" />
  122. <Cell col="53" text="삭감액" />
  123. <Cell col="54" text="부제기 사유" />
  124. </Band>
  125. <Band id="body">
  126. <Cell text="bind:pid" />
  127. <Cell col="1" text="bind:patnm" />
  128. <Cell col="2" text="bind:orddeptnm" />
  129. <Cell col="3" text="bind:orddrnm" />
  130. <Cell col="4" text="bind:judgrnm" />
  131. <Cell col="5" text="bind:insukind" />
  132. <Cell col="6" text="bind:clamym" />
  133. <Cell col="7" text="bind:judgdg" />
  134. <Cell col="8" text="bind:acptno" />
  135. <Cell col="9" text="bind:docuseqno" />
  136. <Cell col="10" text="bind:insubramt" />
  137. <Cell col="11" text="bind:lnno" />
  138. <Cell col="12" text="bind:orddd" />
  139. <Cell col="13" text="bind:adjtresncd" />
  140. <Cell col="14" text="bind:calcscorcd" />
  141. <Cell col="15" text="bind:edicd" />
  142. <Cell col="16" text="bind:hngnm" />
  143. <Cell col="17" text="bind:ediunitcost" />
  144. <Cell col="18" text="bind:edidrugqty" />
  145. <Cell col="19" text="bind:tims" />
  146. <Cell col="20" text="bind:edidayno" />
  147. <Cell col="21" text="bind:ediamt" />
  148. <Cell col="22" text="bind:clamamt" />
  149. <Cell col="23" text="bind:adjtoneqty" />
  150. <Cell col="24" text="bind:adjtdayqty" />
  151. <Cell col="25" text="bind:adjttotqty" />
  152. <Cell col="26" text="bind:adjtamt" />
  153. <Cell col="27" text="bind:abdresnmemo" />
  154. </Band>
  155. </Format>
  156. </Formats>
  157. </Grid>
  158. <Button id="button2" class="btn2_letter4" position="absolute 1024 64 1088 83" style="" text="엑셀저장" onclick="button2_onclick" />
  159. <Button id="button1" class="btn2_letter2" position="absolute 1040 758 1082 777" style="" text="닫기" onclick="button1_onclick" />
  160. <Shape id="line2" class="line_1" linetype="horizontal" position="absolute 0 85 1095 88" style="" anchor="default" />
  161. </Layout>
  162. </Layouts>
  163. <Objects>
  164. <Dataset id="ds_main_patinfo_patinfolist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  165. <ColumnInfo>
  166. <Column id="pid" type="STRING" size="256" />
  167. </ColumnInfo>
  168. <Rows>
  169. <Row>
  170. <Col id="pid"></Col>
  171. </Row>
  172. </Rows>
  173. </Dataset>
  174. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  175. <ColumnInfo>
  176. <Column id="fromdd" type="STRING" size="256" />
  177. <Column id="todd" type="STRING" size="256" />
  178. <Column id="sendflag" type="STRING" size="256" />
  179. <Column id="srchpid" type="STRING" size="256" />
  180. </ColumnInfo>
  181. <Rows>
  182. <Row>
  183. <Col id="fromdd"></Col>
  184. <Col id="todd"></Col>
  185. <Col id="sendflag"></Col>
  186. </Row>
  187. </Rows>
  188. </Dataset>
  189. <Dataset id="ds_main" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  190. <ColumnInfo />
  191. </Dataset>
  192. <Dataset id="ds_temp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  193. <ColumnInfo>
  194. <Column id="temp" type="STRING" size="256" />
  195. </ColumnInfo>
  196. </Dataset>
  197. <Dataset id="ds_result" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  198. <ColumnInfo>
  199. <Column id="result" type="STRING" size="256" />
  200. </ColumnInfo>
  201. <Rows>
  202. <Row>
  203. <Col id="result"></Col>
  204. </Row>
  205. </Rows>
  206. </Dataset>
  207. <Dataset id="ds_source" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  208. <ColumnInfo>
  209. <Column id="source" type="STRING" size="256" />
  210. </ColumnInfo>
  211. <Rows>
  212. <Row>
  213. <Col id="source"></Col>
  214. </Row>
  215. </Rows>
  216. </Dataset>
  217. <Dataset id="ds_main_outcut" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  218. <ColumnInfo>
  219. <Column id="outcutlist" type="STRING" size="256" />
  220. </ColumnInfo>
  221. <Rows>
  222. <Row>
  223. <Col id="outcutlist"></Col>
  224. </Row>
  225. </Rows>
  226. </Dataset>
  227. <Dataset id="ds_main_patinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  228. <ColumnInfo />
  229. </Dataset>
  230. <Dataset id="ds_send_data" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  231. <ColumnInfo>
  232. <Column id="pid" type="STRING" size="256" />
  233. <Column id="srchcond" type="STRING" size="256" />
  234. </ColumnInfo>
  235. <Rows>
  236. <Row>
  237. <Col id="pid"></Col>
  238. <Col id="srchcond"></Col>
  239. </Row>
  240. </Rows>
  241. </Dataset>
  242. </Objects>
  243. <Bind>
  244. <BindItem id="item0" compid="group2.input1" propid="value" datasetid="ds_send" columnid="fromdd" />
  245. <BindItem id="item1" compid="group2.input2" propid="value" datasetid="ds_send" columnid="todd" />
  246. <BindItem id="item2" compid="group2.input3" propid="value" datasetid="ds_send" columnid="srchpid" />
  247. </Bind>
  248. <Script type="xscript4.0"><![CDATA[include '../../.._com_commonweb_js_common.js'
  249. include '../../.._com_commonweb_js_utilHelper.js'
  250. include '../../.._com_commonweb_js_tfHelper.js'
  251. include '../../.._com_commonweb_js_dateHelper.js'
  252. include '../../.._com_commonweb_js_numericHelper.js'
  253. include '../../.._com_commonweb_js_stringHelper.js'
  254. include '../../.._com_basiccodeweb_js_ZBC001.js'
  255. include '../../.._com_zipcodeweb_js_ZBP001.js'
  256. function SPPIR31300_onload(obj:Form, e:LoadEventInfo) {
  257. frmf_initForm(obj);
  258. //grdf_initGrid(grd_XXX);
  259. //grdf_setGridSort(grd_XXX);
  260. //grdf_setRowTypeIcon(grd_XXX, 0_컬럼위치값);
  261. ds_send.setColumn( 0, "fromdd", utlf_getCurrentDate() );
  262. ds_send.setColumn( 0, "todd", utlf_getCurrentDate() );
  263. //model.refresh();
  264. grd_outcutlist.mergeCol(grd_outcutlist.colRef("pid")) = true;
  265. grd_outcutlist.mergeCol(grd_outcutlist.colRef("patnm")) = true;
  266. grd_outcutlist.mergeCol(grd_outcutlist.colRef("orddeptnm")) = true;
  267. grd_outcutlist.mergeCol(grd_outcutlist.colRef("orddrnm")) = true;
  268. grd_outcutlist.mergeCol(grd_outcutlist.colRef("judgrnm")) = true;
  269. grd_outcutlist.colDisabled(grd_outcutlist.colRef("insukind")) = true;
  270. grd_outcutlist.mergeCol(grd_outcutlist.colRef("insukind")) = true;
  271. grd_outcutlist.mergeCol(grd_outcutlist.colRef("clamym")) = true;
  272. grd_outcutlist.mergeCol(grd_outcutlist.colRef("acptno")) = true;
  273. grd_outcutlist.mergeCol(grd_outcutlist.colRef("docuseqno")) = true;
  274. grd_outcutlist.mergeCol(grd_outcutlist.colRef("lnno")) = false;
  275. grd_outcutlist.mergeCol(grd_outcutlist.colRef("orddd")) = false;
  276. grd_outcutlist.mergeCol(grd_outcutlist.colRef("adjtresncd")) = false;
  277. grd_outcutlist.mergeCol(grd_outcutlist.colRef("calcscorcd")) = false;
  278. grd_outcutlist.mergeCol(grd_outcutlist.colRef("edicd")) = false;
  279. grd_outcutlist.mergeCol(grd_outcutlist.colRef("hngnm")) = false;
  280. grd_outcutlist.mergeCol(grd_outcutlist.colRef("ediunitcost")) = false;
  281. grd_outcutlist.mergeCol(grd_outcutlist.colRef("edidrugqty")) = false;
  282. grd_outcutlist.mergeCol(grd_outcutlist.colRef("tims")) = false;
  283. grd_outcutlist.mergeCol(grd_outcutlist.colRef("edidayno")) = false;
  284. grd_outcutlist.mergeCol(grd_outcutlist.colRef("ediamt")) = false;
  285. grd_outcutlist.mergeCol(grd_outcutlist.colRef("clamamt")) = false;
  286. grd_outcutlist.mergeCol(grd_outcutlist.colRef("adjtoneqty")) = false;
  287. grd_outcutlist.mergeCol(grd_outcutlist.colRef("adjtdayqty")) = false;
  288. grd_outcutlist.mergeCol(grd_outcutlist.colRef("adjttotqty")) = false;
  289. grd_outcutlist.mergeCol(grd_outcutlist.colRef("adjtamt")) = false;
  290. grd_outcutlist.mergeCol(grd_outcutlist.colRef("insubramt")) = true;
  291. grd_outcutlist.mergeCol(grd_outcutlist.colRef("abdresnmemo")) = false;
  292. }
  293. function group2_btn_search_onclick(obj:Button, e:ClickEventInfo) {
  294. // submit("TRPIR31300", true) ;
  295. var oParam = {};
  296. oParam.id = "TRPIR31300";
  297. oParam.service = "cutmngtapp.CutMngt";
  298. oParam.method = "reqGetInECutList";
  299. oParam.inds = "req=ds_";
  300. oParam.outds = "ds_=outcutlist";
  301. oParam.async = false;
  302. oParam.callback = "cf_TRPIR31300";
  303. tranf_submit(oParam);
  304. /*
  305. function cf_TRPIR31300(sSvcId, nErrorCode, sErrorMsg) {
  306. if(nErrorCode < 0) return;
  307. }
  308. function cf_TRPIR31300(sSvcId, nErrorCode, sErrorMsg) {
  309. arErrorCode.push(sSvcId, nErrorCode);
  310. }
  311. arErrorCode.pop("TRPIR31300") > -1
  312. arErrorCode.pop("TRPIR31300") < 0
  313. */
  314. var cnt = ds_main_outcut_outcutlist_insukind.rowcount;
  315. if ( cnt < 1 ) {
  316. sysf_messageBox("조회된 내역이 없습니다.", "I");
  317. } else {
  318. for ( i=grd_outcutlist.fixedrows; i<grd_outcutlist.rows; i++ ) {
  319. var pid = grd_outcutlist.valueMatrix(i-1, grd_outcutlist.colRef("pid"));
  320. var pid_up = grd_outcutlist.valueMatrix(i, grd_outcutlist.colRef("pid"));
  321. var orddeptnm = grd_outcutlist.valueMatrix(i-1, grd_outcutlist.colRef("orddeptnm"));
  322. var orddeptnm_up = grd_outcutlist.valueMatrix(i, grd_outcutlist.colRef("orddeptnm"));
  323. var insu = grd_outcutlist.valueMatrix(i-1, grd_outcutlist.colRef("insukind"));
  324. var insu_up = grd_outcutlist.valueMatrix(i, grd_outcutlist.colRef("insukind"));
  325. var clamym = grd_outcutlist.valueMatrix(i-1, grd_outcutlist.colRef("clamym"));
  326. var clamym_up = grd_outcutlist.valueMatrix(i, grd_outcutlist.colRef("clamym"));
  327. var acptno = grd_outcutlist.valueMatrix(i-1, grd_outcutlist.colRef("acptno"));
  328. var acptno_up = grd_outcutlist.valueMatrix(i, grd_outcutlist.colRef("acptno"));
  329. var docuseqno = grd_outcutlist.valueMatrix(i-1, grd_outcutlist.colRef("docuseqno"));
  330. var docuseqno_up = grd_outcutlist.valueMatrix(i, grd_outcutlist.colRef("docuseqno"));
  331. if ( insu == insu_up && orddeptnm == orddeptnm_up && pid == pid_up && clamym == clamym_up && acptno == acptno_up && docuseqno == docuseqno_up) {
  332. grd_outcutlist.mergeRow(i) = true;
  333. grd_outcutlist.mergeRow(i-1) = true;
  334. } else {
  335. grd_outcutlist.mergeRow(i) = false;
  336. }
  337. }
  338. }
  339. grd_outcutlist.mergeCells = "bycol";
  340. }
  341. function group2_input3_onkeydown(obj:Edit, e:KeyEventInfo) {
  342. if (event.keyCode == "13")
  343. {
  344. ds_send.setColumn( 0, "srchpid", group2.input3.text);
  345. group2.btn_search.dispatch("DOMActivate");
  346. }
  347. }
  348. function group2_button3_onclick(obj:Button, e:ClickEventInfo) {
  349. var ptbs_pid = ds_send.getColumn(0, "srchpid");
  350. if (ptbs_pid == null || ptbs_pid ==" " || ptbs_pid == "") {
  351. ds_send_data.clearData(); ds_send_data.addRow();
  352. } else {
  353. ds_send_data.clearData(); ds_send_data.addRow();
  354. ds_send_data.setColumn( 0, "pid",ds_send.getColumn(0, "srchpid"));
  355. ds_send_data.setColumn( 0, "srchcond","1")
  356. }
  357. frmf_modal("../../.._pam_commonweb_xrw_SPPMC02500", "SPPMC02500", "ds_send_data""-"ds_send"", "", "1", "150", "150", "", "", "", "", "", "M");
  358. if ( ds_main.getColumn(0, "popupendflag") == "ok" ) {
  359. ds_send.setColumn( 0, "srchpid", ds_main_patinfo_patinfolist.getColumn(0, "pid"));
  360. //model.refresh();
  361. }
  362. group2.btn_search.dispatch("DOMActivate");
  363. }
  364. function button2_onclick(obj:Button, e:ClickEventInfo) {
  365. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  366. if (fileName != "")
  367. {
  368. grdf_exportExcel(grd_outcutlist, "Sheet1", fileName, false, "" , 'user' , true);
  369. }
  370. }
  371. function button1_onclick(obj:Button, e:ClickEventInfo) {
  372. window.close();
  373. }
  374. ]]></Script>
  375. </Form>
  376. </FDL>