SMPIF30150_장애인대불금관리.xfdl 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMPIF30150" position="absolute 0 0 1200 696" titletext="장애인 및 대불청구 대상자관리" oninit="SMPIF30150_oninit" onload="SMPIF30150_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 0 0 1194 669" id="group3" scrollbars="autoboth">
  8. <Layouts>
  9. <Layout width="1194" height="669">
  10. <Static text="장애인 및 대불청구 대상자관리" position="absolute 1 11 241 33" id="caption1" class="tit_2"/>
  11. <Shape position="absolute 0 27 1194 33" linetype="horizontal" id="line1" class="line_1" style="strokepen:3 solid #33bbbbff;"/>
  12. <Grid position="absolute 0 32 1194 664" id="grd_pifmiounc" class="datagrid2" binddataset="ds_main_list00_gridpifmiounc" autofittype="col" oncellclick="group3_grd_pifmiounc_oncellclick" onkeydown="group3_grd_pifmiounc_onkeydown" cellsizingtype="col">
  13. <Formats>
  14. <Format id="default">
  15. <Columns>
  16. <Column size="24"/>
  17. <Column size="31"/>
  18. <Column size="40"/>
  19. <Column size="85"/>
  20. <Column size="60"/>
  21. <Column size="70"/>
  22. <Column size="50"/>
  23. <Column size="77"/>
  24. <Column size="58"/>
  25. <Column size="47"/>
  26. <Column size="80"/>
  27. <Column size="80"/>
  28. <Column size="80"/>
  29. <Column size="65"/>
  30. <Column size="80"/>
  31. <Column size="80"/>
  32. <Column size="0"/>
  33. <Column size="0"/>
  34. <Column size="0"/>
  35. <Column size="0"/>
  36. <Column size="110"/>
  37. <Column size="0"/>
  38. <Column size="0"/>
  39. <Column size="0"/>
  40. <Column size="0"/>
  41. <Column size="0"/>
  42. <Column size="50"/>
  43. <Column size="0"/>
  44. <Column size="0"/>
  45. <Column size="0"/>
  46. <Column size="0"/>
  47. </Columns>
  48. <Rows>
  49. <Row size="31" band="head"/>
  50. <Row size="28"/>
  51. </Rows>
  52. <Band id="head">
  53. <Cell/>
  54. <Cell col="1" text="반송"/>
  55. <Cell col="2" text="입금&#10;여부"/>
  56. <Cell col="3" text="입금일자"/>
  57. <Cell col="4" text="처리구분"/>
  58. <Cell col="5" text="접수번호"/>
  59. <Cell col="6" text="명일련"/>
  60. <Cell col="7" text="등록번호"/>
  61. <Cell col="8" text="수진자명"/>
  62. <Cell col="9" text="진료과"/>
  63. <Cell col="10" text="총진료비"/>
  64. <Cell col="11" text="청구액"/>
  65. <Cell col="12" text="청구장애인"/>
  66. <Cell col="13" text="심사차수"/>
  67. <Cell col="14" text="심사결정액"/>
  68. <Cell col="15" text="심결장애인"/>
  69. <Cell col="16" text="기관삭감액"/>
  70. <Cell col="17" text="장애인전환금"/>
  71. <Cell col="18" text="입금액"/>
  72. <Cell col="19" text="입금기관기호"/>
  73. <Cell col="20" text="입금기관명"/>
  74. <Cell col="21" text="조정삭감액"/>
  75. <Cell col="22" text="반송액"/>
  76. <Cell col="23" text="비고"/>
  77. <Cell col="24" text="기관기호"/>
  78. <Cell col="25" text="기관명"/>
  79. <Cell col="26" text="심사자"/>
  80. <Cell col="27"/>
  81. <Cell col="28"/>
  82. <Cell col="29"/>
  83. <Cell col="30"/>
  84. </Band>
  85. <Band id="body">
  86. <Cell celltype="head"/>
  87. <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:lossyn" expr="expr:lossyn == 'Y' || lossyn == '1' ? 1 : 0"/>
  88. <Cell col="2" text="bind:payyn"/>
  89. <Cell col="3" text="bind:depodd" mask="yyyy-MM-dd" calendardisplaynulltype="nulltext"/>
  90. <Cell col="4" text="bind:tretflag"/>
  91. <Cell col="5" text="bind:acptno"/>
  92. <Cell col="6" text="bind:docuseqno"/>
  93. <Cell col="7" text="bind:pid"/>
  94. <Cell col="8" text="bind:patnm"/>
  95. <Cell col="9" text="bind:orddeptcd"/>
  96. <Cell col="10" displaytype="number" text="bind:clamtotordamt"/>
  97. <Cell col="11" displaytype="number" text="bind:clamamt"/>
  98. <Cell col="12" displaytype="number" text="bind:clhandicaprfund"/>
  99. <Cell col="13" text="bind:judgdg"/>
  100. <Cell col="14" displaytype="number" text="bind:jrjudgdeciamt"/>
  101. <Cell col="15" displaytype="number" text="bind:jrhandicaprfund"/>
  102. <Cell col="16" text="bind:instreductamt" mask="#,###"/>
  103. <Cell col="17" text="bind:handicapcvrtamt" mask="#,###"/>
  104. <Cell col="18" text="bind:depoamt" mask="#,###"/>
  105. <Cell col="19" text="bind:depoprocinstmark"/>
  106. <Cell col="20" style="align:left middle;" text="bind:depoprocinstmarknm"/>
  107. <Cell col="21" text="bind:adjtcutamt" mask="#,###"/>
  108. <Cell col="22" text="bind:sendamt" mask="#,###"/>
  109. <Cell col="23" text="bind:rem"/>
  110. <Cell col="24" text="bind:procinstmark"/>
  111. <Cell col="25" text="bind:procinstmarknm"/>
  112. <Cell col="26" text="bind:judgrid"/>
  113. <Cell col="27" text="bind:decoseq"/>
  114. <Cell col="28" text="bind:clamym"/>
  115. <Cell col="29" text="bind:clamdg"/>
  116. <Cell col="30" text="bind:pidsn"/>
  117. </Band>
  118. </Format>
  119. </Formats>
  120. </Grid>
  121. <Button position="absolute 1114 7 1194 26" id="button12" class="btn7" text="엑셀저장" onclick="group3_button12_onclick"/>
  122. <Button position="absolute 1005 7 1058 26" id="button10" class="btn2" text="열카피" onclick="group3_button10_onclick"/>
  123. <Button position="absolute 1060 7 1113 26" id="button11" class="btn2" text="행카피" onclick="group3_button11_onclick"/>
  124. <Button position="absolute 950 7 1003 26" id="button13" class="btn2" text="셀카피" onclick="group3_button13_onclick"/>
  125. </Layout>
  126. </Layouts>
  127. </Div>
  128. <Div position="absolute 1 663 1195 690" id="group2" scrollbars="autoboth">
  129. <Layouts>
  130. <Layout>
  131. <Button position="absolute 1136 3 1192 25" id="btn_cancel" class="btn4" text="닫기" anchor="default" onclick="group2_btn_cancel_onclick"/>
  132. <Button position="absolute 1079 3 1135 25" id="button2" class="btn4" text="저장" anchor="default" onclick="group2_button2_onclick"/>
  133. </Layout>
  134. </Layouts>
  135. </Div>
  136. </Layout>
  137. </Layouts>
  138. <Objects>
  139. <Dataset id="ds_send_sendlnk_clam_med" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  140. <Dataset id="ds_send_sendlist00" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  141. <ColumnInfo>
  142. <Column id="clamno" type="STRING" size="256"/>
  143. <Column id="acptno" type="STRING" size="256"/>
  144. <Column id="judgdg" type="STRING" size="256"/>
  145. </ColumnInfo>
  146. <Rows>
  147. <Row/>
  148. </Rows>
  149. </Dataset>
  150. <Dataset id="ds_main_list00_gridpifmiounc" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  151. <ColumnInfo>
  152. <Column id="lossyn" type="STRING" size="256" sumtext="반송여부"/>
  153. <Column id="payyn" type="STRING" size="256" sumtext="입금여부"/>
  154. <Column id="depodd" type="STRING" size="256" sumtext="입금일자"/>
  155. <Column id="tretflag" type="STRING" size="256" sumtext="처리구분명"/>
  156. <Column id="clamno" type="STRING" size="256" sumtext="청구번호"/>
  157. <Column id="acptno" type="STRING" size="256" sumtext="접수번호"/>
  158. <Column id="docuseqno" type="STRING" size="256" sumtext="명일련"/>
  159. <Column id="seqno" type="STRING" size="256" sumtext="순번"/>
  160. <Column id="orddeptcd" type="STRING" size="256" sumtext="진료과"/>
  161. <Column id="judgdg" type="STRING" size="256" sumtext="심사차수"/>
  162. <Column id="adjtresn" type="STRING" size="256" sumtext="조정사유"/>
  163. <Column id="pid" type="STRING" size="256" sumtext="등록번호"/>
  164. <Column id="patnm" type="STRING" size="256" sumtext="수진자명"/>
  165. <Column id="patrrgstno" type="STRING" size="256" sumtext="환자주민번호"/>
  166. <Column id="clamtotordamt" type="STRING" size="256" sumtext="청구총진료비"/>
  167. <Column id="clamamt" type="STRING" size="256" sumtext="청구액"/>
  168. <Column id="clhandicaprfund" type="STRING" size="256" sumtext="청구장애인기금"/>
  169. <Column id="clamsubtamt" type="STRING" size="256" sumtext="청구대불금"/>
  170. <Column id="jrjudgdeciamt" type="STRING" size="256" sumtext="심사결정액"/>
  171. <Column id="jrhandicaprfund" type="STRING" size="256" sumtext="심결장애인기금"/>
  172. <Column id="jrsubtamt" type="STRING" size="256" sumtext="심결대불금"/>
  173. <Column id="instreductamt" type="STRING" size="256" sumtext="기관삭감액"/>
  174. <Column id="handicapcvrtamt" type="STRING" size="256" sumtext="장애인전환금"/>
  175. <Column id="depoamt" type="STRING" size="256" sumtext="입금액"/>
  176. <Column id="depoprocinstmark" type="STRING" size="256" sumtext="입금보장기관기호"/>
  177. <Column id="depoprocinstmarknm" type="STRING" size="256" sumtext="입금보장기관명"/>
  178. <Column id="adjtcutamt" type="STRING" size="256" sumtext="조정삭감액"/>
  179. <Column id="sendamt" type="STRING" size="256" sumtext="반송액"/>
  180. <Column id="rem" type="STRING" size="256" sumtext="비고"/>
  181. <Column id="procinstmark" type="STRING" size="256" sumtext="기관기호"/>
  182. <Column id="procinstmarknm" type="STRING" size="256" sumtext="기관명"/>
  183. <Column id="judgrid" type="STRING" size="256" sumtext="심사자"/>
  184. <Column id="decotretflag" type="STRING" size="256" sumtext="미수처리구분"/>
  185. <Column id="clamym" type="STRING" size="256" sumtext="청구월"/>
  186. <Column id="clamdg" type="STRING" size="256" sumtext="청구차수"/>
  187. <Column id="pidsn" type="STRING" size="256" sumtext="등록번호순번"/>
  188. <Column id="decoseq" type="STRING" size="256" sumtext="미수일련번호"/>
  189. </ColumnInfo>
  190. </Dataset>
  191. </Objects>
  192. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  193. * System Name :
  194. * Job Name :
  195. * Creator :
  196. * Make Date : 2016-05-24
  197. * Description :
  198. *---------------------------------------------------------------------------------------
  199. * Modify Date Modifier Modify Description
  200. *---------------------------------------------------------------------------------------
  201. * 2016-05-24 Live Converter TF->XP
  202. *
  203. *---------------------------------------------------------------------------------------
  204. ****************************************************************************************/
  205. include "com_commonxp::comm_main.xjs";
  206. include "pam_pamcomnxp::PAM001.xjs";
  207. include "pam_pamcomnxp::PAM.xjs";
  208. var col = "N";
  209. function SMPIF30150_oninit(obj:Form, e:InitEventInfo)
  210. {
  211. frmf_initForm(obj);
  212. }
  213. function SMPIF30150_onload(obj:Form, e:LoadEventInfo)
  214. {
  215. grdf_initGrid(group3.grd_pifmiounc);
  216. grdf_setRowTypeIcon(group3.grd_pifmiounc, 0);
  217. grdf_setToolTipBind(group3.grd_pifmiounc);
  218. if(frmf_checkOpener())
  219. {
  220. ds_send_sendlnk_clam_med.copyData(arg_ds_send_sendlnk);
  221. }
  222. ds_send_sendlist00.setColumn(0, "clamno", ds_send_sendlnk_clam_med.getColumn(0, "clamno"));
  223. ds_send_sendlist00.setColumn(0, "acptno", ds_send_sendlnk_clam_med.getColumn(0, "acptno"));
  224. ds_send_sendlist00.setColumn(0, "judgdg", ds_send_sendlnk_clam_med.getColumn(0, "judgdg"));
  225. var oParam = {};
  226. oParam.id = "TRPIF30151";
  227. oParam.service = "clamuncoapp.ClamUnco";
  228. oParam.method = "reqGetPifmiounc";
  229. oParam.inds = "req=ds_send_sendlist00";
  230. oParam.outds = "ds_main_list00_gridpifmiounc=gridpifmiounc";
  231. oParam.async = false;
  232. oParam.callback = "cf_TRPIF30151";
  233. tranf_submit(oParam);
  234. }
  235. function cf_TRPIF30151()
  236. {
  237. var vrowcount = ds_main_list00_gridpifmiounc.rowcount;
  238. ds_main_list00_gridpifmiounc.updatecontrol = false;
  239. for(var i = 0; i < vrowcount; i++)
  240. {
  241. ds_main_list00_gridpifmiounc.setColumn(i, "seqno", i);
  242. }
  243. ds_main_list00_gridpifmiounc.updatecontrol = true;
  244. }
  245. function group3_button13_onclick(obj:Button, e:ClickEventInfo)
  246. {
  247. col = "N";
  248. group3.grd_pifmiounc.selecttype = "multiarea";
  249. }
  250. function group3_button10_onclick(obj:Button, e:ClickEventInfo)
  251. {
  252. col = "Y";
  253. group3.grd_pifmiounc.selecttype = "multiarea";
  254. }
  255. function group3_button11_onclick(obj:Button, e:ClickEventInfo)
  256. {
  257. col = "N";
  258. group3.grd_pifmiounc.selecttype = "multirow";
  259. }
  260. function group3_button12_onclick(obj:Button, e:ClickEventInfo)
  261. {
  262. var today = new Date();
  263. var yy = today.getYear() + "";
  264. var mm = today.getMonth() + 1;
  265. var dd = today.getDate();
  266. if(mm < 10)
  267. {
  268. mm = "0" + mm;
  269. }
  270. else
  271. {
  272. mm = mm + "";
  273. }
  274. if(dd < 10)
  275. {
  276. dd = "0" + dd;
  277. }
  278. else
  279. {
  280. dd = dd + "";
  281. }
  282. var tmp = yy + mm + dd;
  283. if(ds_main_list00_gridpifmiounc.rowcount == 0)
  284. {
  285. sysf_messageBox("엑셀저장할 내역이", "I004"); ///엑셀저장할 내역이 없습니다.
  286. }
  287. else
  288. {
  289. grdf_exportExcel(group3.grd_pifmiounc, "장애인대불금관리_"+tmp, "see");
  290. }
  291. }
  292. function group2_btn_cancel_onclick(obj:Button, e:ClickEventInfo)
  293. {
  294. this.close();
  295. }
  296. function group3_grd_pifmiounc_oncellclick(obj:Grid, e:GridClickEventInfo)
  297. {
  298. if(e.col == 1)
  299. {
  300. if(ds_main_list00_gridpifmiounc.getColumn(e.row, "lossyn") == "1")
  301. {
  302. ds_main_list00_gridpifmiounc.setColumn(e.row, "lossyn", "Y");
  303. }
  304. else
  305. {
  306. ds_main_list00_gridpifmiounc.setColumn(e.row, "lossyn", "N");
  307. }
  308. }
  309. var lv_nAreaStartRow;
  310. var lv_nAreaEndRow;
  311. var lv_nAreaStartCol;
  312. var lv_nAreaEndCol;
  313. if(col == "Y")
  314. {
  315. lv_nAreaStartRow = 0;
  316. lv_nAreaEndRow = parseInt(obj.rowcount-1);
  317. lv_nAreaStartCol = parseInt(obj.currentcol);
  318. lv_nAreaEndCol = parseInt(obj.currentcol);
  319. grdf_initGridStyle(obj);
  320. for(var nRow = lv_nAreaStartRow; nRow <= lv_nAreaEndRow; nRow++)
  321. {
  322. for(var nCell = lv_nAreaStartCol; nCell <= lv_nAreaEndCol; nCell++)
  323. {
  324. obj.setCellProperty("body",nCell,"background","#FFE7E5");
  325. obj.setCellProperty("body",nCell,"background2","#FFE7E5");
  326. }
  327. }
  328. }
  329. else
  330. {
  331. grdf_initGridStyle(obj);
  332. }
  333. }
  334. function group3_grd_pifmiounc_onkeydown(obj:Grid, e:KeyEventInfo)
  335. {
  336. if(col == "Y")
  337. {
  338. var CONST_SEPARATOR = " "; //컬럼별 구분자
  339. var lv_oBindDs = eval(obj.binddataset);
  340. var lv_sColID;
  341. var lv_sVal;
  342. var lv_sClipboard = "";
  343. var lv_nAreaStartRow;
  344. var lv_nAreaEndRow;
  345. var lv_nAreaStartCol;
  346. var lv_nAreaEndCol;
  347. if(obj.selecttype == "multiarea")
  348. {
  349. lv_nAreaStartRow = 0;
  350. lv_nAreaEndRow = parseInt(obj.rowcount-1);
  351. lv_nAreaStartCol = parseInt(obj.currentcol);
  352. lv_nAreaEndCol = parseInt(obj.currentcol);
  353. }
  354. for(var nRow = lv_nAreaStartRow; nRow <= lv_nAreaEndRow; nRow++)
  355. {
  356. for(var nCell = lv_nAreaStartCol; nCell <= lv_nAreaEndCol; nCell++)
  357. {
  358. lv_sColID = obj.getCellProperty("body",nCell,"text");
  359. lv_sVal = obj.getCellValue(nRow,nCell);
  360. lv_sClipboard = lv_sClipboard + lv_sVal + CONST_SEPARATOR;
  361. }
  362. lv_sClipboard = lv_sClipboard.substr(0,lv_sClipboard.length-1);
  363. lv_sClipboard = lv_sClipboard +String.fromCharCode(10);
  364. }
  365. lv_sClipboard = lv_sClipboard.substr(0,lv_sClipboard.length-1);
  366. iv_sClipboard = lv_sClipboard;
  367. system.setClipboard("CF_TEXT",lv_sClipboard);
  368. }
  369. else
  370. {
  371. if (e.ctrlKey == true && e.keycode == 67 )
  372. {
  373. grdf_clipboardCopy(obj, "PAM");
  374. }
  375. }
  376. }
  377. function group2_button2_onclick(obj:Button, e:ClickEventInfo)
  378. {
  379. var row = ds_main_list00_gridpifmiounc.rowcount;
  380. var cnt = 0;
  381. for(var i = 0; i < row; i++)
  382. {
  383. if(ds_main_list00_gridpifmiounc.getRowType(i) == 4)
  384. {
  385. ++cnt;
  386. }
  387. }
  388. if(cnt > 0)
  389. {
  390. var oParam = {};
  391. oParam.id = "TXPIF30151";
  392. oParam.service = "clamuncoapp.ClamUnco";
  393. oParam.method = "reqPutHandiCaprFundAmt";
  394. oParam.inds = "req=ds_main_list00_gridpifmiounc:U";
  395. oParam.outds = "";
  396. oParam.async = false;
  397. oParam.callback = "cf_TXPIF30151";
  398. tranf_submit(oParam);
  399. }
  400. }
  401. function cf_TXPIF30151(sSvcId, nErrorCode, sErrorMsg)
  402. {
  403. if(nErrorCode < 0)
  404. {
  405. return false;
  406. }
  407. else
  408. {
  409. var oParam = {};
  410. oParam.id = "TRPIF30151";
  411. oParam.service = "clamuncoapp.ClamUnco";
  412. oParam.method = "reqGetPifmiounc";
  413. oParam.inds = "req=ds_send_sendlist00";
  414. oParam.outds = "ds_main_list00_gridpifmiounc=gridpifmiounc";
  415. oParam.async = false;
  416. //oParam.callback = "cf_TRPIF30151";
  417. tranf_submit(oParam);
  418. }
  419. }
  420. ]]></Script>
  421. </Form>
  422. </FDL>