SMPID20900_환자단위최근삭감내역조회.xfdl 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410
  1. <?xml version="1.0" encoding="utf-8" standalone="no"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml" />
  4. <Form id="SMPID20900" position="absolute 0 0 1280 1024" titletext="환자단위 최근삭감내역 조회" onload="SMPID20900_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div id="group1" position="absolute 0 0 850 13" style="">
  8. <Layouts>
  9. <Layout>
  10. <Static id="caption6" class="tit_1" position="absolute 0 0 181 13" style="" text="환자단위 최근삭감내역 조회" />
  11. </Layout>
  12. </Layouts>
  13. </Div>
  14. <Div id="group3" scrollbars="autoboth" position="absolute 0 13 850 465" style="">
  15. <Layouts>
  16. <Layout>
  17. <Static id="caption1" class="tit_2" position="absolute 5 60 100 73" style="" text="처방삭감내역" />
  18. <Shape id="line1" class="line_1" linetype="horizontal" position="absolute 0 75 850 78" style="" anchor="default" />
  19. <Grid id="grd_clodcutlist" binddataset="ds_main_list1_clod" position="absolute 0 80 850 450" style="">
  20. <Formats>
  21. <Format id="default">
  22. <Columns>
  23. <Column size="45" />
  24. <Column size="21" />
  25. <Column size="60" />
  26. <Column size="80" />
  27. <Column size="80" />
  28. <Column size="150" />
  29. <Column size="43" />
  30. <Column size="35" />
  31. <Column size="35" />
  32. <Column size="53" />
  33. <Column size="43" />
  34. <Column size="35" />
  35. <Column size="35" />
  36. <Column size="53" />
  37. <Column size="55" />
  38. </Columns>
  39. <Rows>
  40. <Row size="23" band="head" />
  41. <Row size="23" />
  42. </Rows>
  43. <Band id="head">
  44. <Cell text="청구&#xA;년월" />
  45. <Cell col="1" text="차&#xA;수" />
  46. <Cell col="2" text="청구&#xA;구분" />
  47. <Cell col="3" text="그룹코드" />
  48. <Cell col="4" text="수가코드" />
  49. <Cell col="5" text="수가명" />
  50. <Cell col="6" text="처방" />
  51. <Cell col="7" text="처방" />
  52. <Cell col="8" text="처방" />
  53. <Cell col="9" text="처방" />
  54. <Cell col="10" text="삭감" />
  55. <Cell col="11" text="삭감" />
  56. <Cell col="12" text="삭감" />
  57. <Cell col="13" text="삭감" />
  58. <Cell col="14" text="삭감사유|청구&#xA;년월" />
  59. <Cell col="15" text="차&#xA;수" />
  60. <Cell col="16" text="청구&#xA;구분" />
  61. <Cell col="17" text="그룹코드" />
  62. <Cell col="18" text="수가코드" />
  63. <Cell col="19" text="수가명" />
  64. <Cell col="20" text="투여량" />
  65. <Cell col="21" text="횟수" />
  66. <Cell col="22" text="일수" />
  67. <Cell col="23" text="금액" />
  68. <Cell col="24" text="투여량" />
  69. <Cell col="25" text="횟수" />
  70. <Cell col="26" text="일수" />
  71. <Cell col="27" text="금액" />
  72. <Cell col="28" text="삭감사유" />
  73. </Band>
  74. <Band id="body">
  75. <Cell text="bind:clamym" />
  76. <Cell col="1" text="bind:clamdg" />
  77. <Cell col="2" text="bind:clamflagcd" />
  78. <Cell col="3" text="bind:grupcalcscorcd" />
  79. <Cell col="4" text="bind:snglcalcscorcd" />
  80. <Cell col="5" text="bind:hngnm" />
  81. <Cell col="6" text="bind:drugqty" />
  82. <Cell col="7" text="bind:tims" />
  83. <Cell col="8" text="bind:dayno" />
  84. <Cell col="9" text="bind:amt" />
  85. <Cell col="10" text="bind:cutdrugqty" />
  86. <Cell col="11" text="bind:cuttims" />
  87. <Cell col="12" text="bind:cutdayno" />
  88. <Cell col="13" text="bind:cutamt" />
  89. <Cell col="14" text="bind:cutcd" />
  90. </Band>
  91. </Format>
  92. </Formats>
  93. </Grid>
  94. <Button id="button5" class="btn2_letter4" position="absolute 781 54 845 73" style="" text="엑셀저장" onclick="group3_button5_onclick" />
  95. </Layout>
  96. </Layouts>
  97. </Div>
  98. <Div id="group4" scrollbars="autoboth" position="absolute 0 467 850 494" style="">
  99. <Layouts>
  100. <Layout>
  101. <Button id="btn_confirm" class="btn4_letter3" position="absolute 779 5 835 27" style="" text="초기화" onclick="group4_btn_confirm_onclick" />
  102. </Layout>
  103. </Layouts>
  104. </Div>
  105. <Shape id="roundrect1" anchor="default" type="roundrectangle" position="absolute 0 20 850 63" style="" />
  106. <Static id="caption2" class="search_name" position="absolute 10 32 96 49" style="" text="환자번호 :" />
  107. <Button id="btn_down" class="icon_down" position="absolute 438 42 448 51" style="" text="" onclick="btn_down_onclick" />
  108. <Combo innerdataset="ds_init_clamdg_clamdglist" datacolumn="clamdgnm" codecolumn="clamdgcd" columncount="-1" rowcount="-1" id="cmb_clamdg" taborder="3" position="absolute 453 32 515 51" style="" />
  109. <Static id="caption7" class="search_name" position="absolute 275 32 361 49" style="" text="청구년월 :" />
  110. <Button id="btn_up" class="icon_up" position="absolute 438 32 448 41" style="" text="" onclick="btn_up_onclick" />
  111. <Calendar id="ipt_clamym" class="input_search" taborder="2" mask="yyyy-mm" position="absolute 365 32 434 51" style="align:center ;" anchor="default" onkillfocus="ipt_clamym_onkillfocus" />
  112. <Shape id="line3" class="line_4" linetype="vertical" position="absolute 759 30 762 52" style="" anchor="default" />
  113. <Button id="btn_search" class="btn1_letter2" taborder="32" position="absolute 775 30 831 52" style="" text="조회" onclick="btn_search_onclick" />
  114. <Edit id="ipt_pid" class="input_search" taborder="1" position="absolute 100 32 185 51" style="" anchor="default" onlbuttonup="ipt_pid_onlbuttonup" onkillfocus="ipt_pid_onkillfocus" />
  115. </Layout>
  116. </Layouts>
  117. <Objects>
  118. <Dataset id="ds_hidden_sppmc02500_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  119. <ColumnInfo>
  120. <Column id="srchcond" type="STRING" size="256" />
  121. <Column id="pid" type="STRING" size="256" />
  122. <Column id="hngnm" type="STRING" size="256" />
  123. <Column id="rrgstno1" type="STRING" size="256" />
  124. <Column id="rrgstno2" type="STRING" size="256" />
  125. </ColumnInfo>
  126. <Rows>
  127. <Row>
  128. <Col id="srchcond"></Col>
  129. <Col id="pid"></Col>
  130. <Col id="hngnm"></Col>
  131. <Col id="rrgstno1"></Col>
  132. <Col id="rrgstno2"></Col>
  133. </Row>
  134. </Rows>
  135. </Dataset>
  136. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  137. <ColumnInfo />
  138. </Dataset>
  139. <Dataset id="ds_hidden_sppmc02500" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  140. <ColumnInfo />
  141. </Dataset>
  142. <Dataset id="ds_main" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  143. <ColumnInfo>
  144. <Column id="list1" type="STRING" size="256" />
  145. </ColumnInfo>
  146. <Rows>
  147. <Row>
  148. <Col id="list1"></Col>
  149. </Row>
  150. </Rows>
  151. </Dataset>
  152. <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  153. <ColumnInfo />
  154. </Dataset>
  155. <Dataset id="ds_init_P0155list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  156. <ColumnInfo />
  157. </Dataset>
  158. <Dataset id="ds_init_P0155list_P0155" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  159. <ColumnInfo>
  160. <Column id="cdnm" type="STRING" size="256" />
  161. <Column id="cdid" type="STRING" size="256" />
  162. </ColumnInfo>
  163. <Rows>
  164. <Row>
  165. <Col id="cdnm"></Col>
  166. <Col id="cdid"></Col>
  167. </Row>
  168. </Rows>
  169. </Dataset>
  170. <Dataset id="ds_send_data1" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  171. <ColumnInfo>
  172. <Column id="pid" type="STRING" size="256" />
  173. <Column id="clamym" type="STRING" size="256" />
  174. <Column id="clamdg" type="STRING" size="256" />
  175. <Column id="ioflag" type="STRING" size="256" />
  176. </ColumnInfo>
  177. <Rows>
  178. <Row>
  179. <Col id="pid"></Col>
  180. <Col id="clamym"></Col>
  181. <Col id="clamdg"></Col>
  182. <Col id="ioflag"></Col>
  183. </Row>
  184. </Rows>
  185. </Dataset>
  186. <Dataset id="ds_main_patinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  187. <ColumnInfo>
  188. <Column id="patinfolist" type="STRING" size="256" />
  189. </ColumnInfo>
  190. <Rows>
  191. <Row>
  192. <Col id="patinfolist"></Col>
  193. </Row>
  194. </Rows>
  195. </Dataset>
  196. <Dataset id="ds_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  197. <ColumnInfo />
  198. </Dataset>
  199. <Dataset id="ds_hidden_popup" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  200. <ColumnInfo>
  201. <Column id="pid" type="STRING" size="256" />
  202. </ColumnInfo>
  203. </Dataset>
  204. </Objects>
  205. <Bind>
  206. <BindItem id="item0" compid="cmb_clamdg" propid="value" datasetid="ds_send_data1" columnid="clamdg" />
  207. <BindItem id="item1" compid="ipt_clamym" propid="value" datasetid="ds_send_data1" columnid="clamym" />
  208. <BindItem id="item2" compid="ipt_pid" propid="value" datasetid="ds_send_data1" columnid="pid" />
  209. </Bind>
  210. <Script type="xscript4.0"><![CDATA[function SMPID20900_onload(obj:Form, e:LoadEventInfo) {
  211. frmf_initForm(obj);
  212. //grdf_initGrid(grd_XXX);
  213. //grdf_setGridSort(grd_XXX);
  214. //grdf_setRowTypeIcon(grd_XXX, 0_컬럼위치값);
  215. var arrParam = [ {dsNm: "ds_init_P0155list",
  216. cdGrpId: "P0155" } ];
  217. appf_getCodeList(arrParam, );
  218. // 2. 화면초기화
  219. fInitialize();
  220. }
  221. include '../../.._com_commonweb_js_common.js'
  222. include '../../.._com_commonweb_js_dateHelper.js'
  223. include '../../.._com_commonweb_js_numericHelper.js'
  224. include '../../.._com_commonweb_js_stringHelper.js'
  225. include '../../.._com_commonweb_js_tfHelper.js'
  226. include '../../.._com_basiccodeweb_js_ZBC001.js'
  227. include '../../.._pam_aftjudgweb_js_SMPID20000.js'
  228. // 화면 초기화
  229. function fInitialize() {
  230. // 1. 조회부 초기화
  231. ds_send_data1.setColumn( 0, "pid", "");
  232. var today = new Date();
  233. var baseyear = today.getDateFormat("YYYY");
  234. var basemonth = today.getDateFormat("MM");
  235. var baseday = today.getDateFormat("DD");
  236. var currentym = baseyear + basemonth;
  237. var currentdd = baseyear + basemonth + baseday;
  238. ds_send_data1.setColumn( 0, "clamym", currentym);
  239. ds_send_data1.setColumn( 0, "clamdg", "");
  240. ds_send_data1.setColumn( 0, "ioflag", "-");
  241. // 청구년월에 대한 청구차수 조회
  242. pidfGetClamdg();
  243. // 2. 그리드 초기화
  244. ds_main_list1.clearData();
  245. dsf_makeValue( ds_main, "list1", "string", "" );
  246. // 3. 팝업인 경우 넘겨받은 pid를 넣어준다.
  247. ds_send_data1.setColumn( 0, "pid", ds_hidden_popup.getColumn(0, "pid"));
  248. //model.refresh();
  249. }
  250. // 환자단위 삭감내역 조회
  251. function fGetClodCutList() {
  252. if (ds_send_data1.getColumn(0, "pid") == "") {
  253. sysf_messageBox("환자번호가", "I004");
  254. return false;
  255. }
  256. if (ds_send_data1.getColumn(0, "clamym") == "") {
  257. sysf_messageBox("청구년월이", "I004");
  258. return false;
  259. }
  260. // if (submit("TRPID20901")) {
  261. var oParam = {};
  262. oParam.id = "TRPID20901";
  263. oParam.service = "aftjudgapp.PatRectCutSpec";
  264. oParam.method = "reqGetPatRectCutSpec";
  265. oParam.inds = "req=ds_";
  266. oParam.outds = "ds_=clod";
  267. oParam.async = false;
  268. oParam.callback = "cf_TRPID20901";
  269. tranf_submit(oParam);
  270. /*
  271. function cf_TRPID20901(sSvcId, nErrorCode, sErrorMsg) {
  272. if(nErrorCode < 0) return;
  273. }
  274. function cf_TRPID20901(sSvcId, nErrorCode, sErrorMsg) {
  275. arErrorCode.push(sSvcId, nErrorCode);
  276. }
  277. arErrorCode.pop("TRPID20901") > -1
  278. arErrorCode.pop("TRPID20901") < 0
  279. */
  280. //group3.grd_clodcutlist.refresh();
  281. group3.grd_clodcutlist.row = 2;
  282. }
  283. }
  284. function group3_button5_onclick(obj:Button, e:ClickEventInfo) {
  285. if (group3.grd_clodcutlist.rows == 2) {
  286. return;
  287. }
  288. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  289. if (fileName != "")
  290. {
  291. grdf_exportExcel(group3.grd_clodcutlist, "Sheet1", fileName, false, "" , 'user' , true);
  292. sysf_messageBox("EXCEL 저장이 완료되었습니다.","I999");
  293. }
  294. }
  295. function group4_btn_confirm_onclick(obj:Button, e:ClickEventInfo) {
  296. fInitialize();
  297. }
  298. function btn_down_onclick(obj:Button, e:ClickEventInfo) {
  299. // 청구년월 이전월
  300. var nowym = ds_send_data1.getColumn(0, "clamym");
  301. var downym;
  302. downym = pidfCalMonth(-1, nowym);
  303. ds_send_data1.setColumn( 0, "clamym", downym);
  304. //ipt_clamym.refresh();
  305. // 청구년월에 대한 청구차수 조회
  306. ds_send_data1.setColumn( 0, "clamdg", "");
  307. //cmb_clamdg.refresh();
  308. pidfGetClamdg();
  309. }
  310. function btn_up_onclick(obj:Button, e:ClickEventInfo) {
  311. // 청구년월 다음월
  312. var nowym = ds_send_data1.getColumn(0, "clamym");
  313. var upym;
  314. upym = pidfCalMonth(1, nowym);
  315. ds_send_data1.setColumn( 0, "clamym", upym);
  316. //ipt_clamym.refresh();
  317. // 청구년월에 대한 청구차수 조회
  318. ds_send_data1.setColumn( 0, "clamdg", "");
  319. //cmb_clamdg.refresh();
  320. pidfGetClamdg();
  321. }
  322. function ipt_clamym_onkillfocus(obj:Calendar, e:KillFocusEventInfo) {
  323. // 청구년월에 대한 청구차수 조회
  324. ds_send_data1.setColumn( 0, "clamdg", "");
  325. //cmb_clamdg.refresh();
  326. pidfGetClamdg();
  327. }
  328. function btn_search_onclick(obj:Button, e:ClickEventInfo) {
  329. fGetClodCutList();
  330. }
  331. function ipt_pid_onlbuttonup(obj:Edit, e:MouseEventInfo) {
  332. // 1. 환자조회 팝업 호출
  333. var pid = ds_send_data1.getColumn(0, "pid");
  334. if (pid != "") {
  335. ds_hidden_sppmc02500_cond.setColumn( 0, "srchcond", "1");
  336. ds_hidden_sppmc02500_cond.setColumn( 0, "pid", pid);
  337. } else {
  338. ds_hidden_sppmc02500_cond.clearData(); ds_hidden_sppmc02500_cond.addRow();
  339. }
  340. frmf_modal("SPPMC02500", "SPPMC02500", "ds_hidden_sppmc02500_cond""-"ds_send"", "", "1", "150", "150", "", "", "", "", "", "M");
  341. // 2. 조회된 환자번호 입력
  342. var srch_pid = ds_main_patinfo_patinfolist.getColumn(0, "pid");
  343. if (srch_pid) {
  344. ds_main_patinfo_patinfolist.clearData();
  345. dsf_makeValue( ds_main_patinfo, "patinfolist", "string", "" );
  346. ds_send_data1.setColumn( 0, "pid", srch_pid);
  347. }
  348. //model.refresh();
  349. }
  350. function ipt_pid_onkillfocus(obj:Edit, e:KillFocusEventInfo) {
  351. }
  352. ]]></Script>
  353. </Form>
  354. </FDL>