SMPIF30170_상한액관리.xfdl 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMPIF30170" position="absolute 0 0 1013 584" titletext="개인별상한금 관리" oninit="SMPIF30170_oninit" onload="SMPIF30170_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 0 0 1000 555" id="group3" scrollbars="autoboth">
  8. <Layouts>
  9. <Layout>
  10. <Shape position="absolute 0 21 1000 27" linetype="horizontal" id="line8" class="line_1" style="strokepen:3 solid #33bbbbff;"/>
  11. <Static text="개인별 상한액" position="absolute 1 5 145 27" id="caption4" class="tit_2"/>
  12. <Grid position="absolute 0 26 1000 551" id="grd_pifmiunc" class="datagrid2" binddataset="ds_main_list01_gridpifmiunc" oncellclick="group3_grd_pifmiunc_oncellclick" onkeydown="group3_grd_pifmiunc_onkeydown" cellsizingtype="col">
  13. <Formats>
  14. <Format id="default">
  15. <Columns>
  16. <Column size="26"/>
  17. <Column size="30"/>
  18. <Column size="0"/>
  19. <Column size="30"/>
  20. <Column size="80"/>
  21. <Column size="80"/>
  22. <Column size="70"/>
  23. <Column size="59"/>
  24. <Column size="70"/>
  25. <Column size="50"/>
  26. <Column size="60"/>
  27. <Column size="80"/>
  28. <Column size="80"/>
  29. <Column size="80"/>
  30. <Column size="77"/>
  31. <Column size="80"/>
  32. <Column size="80"/>
  33. <Column size="50"/>
  34. <Column size="0"/>
  35. <Column size="0"/>
  36. <Column size="0"/>
  37. <Column size="0"/>
  38. <Column size="0"/>
  39. <Column size="0"/>
  40. <Column size="0"/>
  41. <Column size="0"/>
  42. <Column size="0"/>
  43. </Columns>
  44. <Rows>
  45. <Row size="29" band="head"/>
  46. <Row size="24"/>
  47. </Rows>
  48. <Band id="head">
  49. <Cell/>
  50. <Cell col="1" text="반송&#10;여부"/>
  51. <Cell col="2" text="심결&#10;상태"/>
  52. <Cell col="3" text="입금&#10;여부"/>
  53. <Cell col="4" text="입금일자"/>
  54. <Cell col="5" text="미수처리구분"/>
  55. <Cell col="6" text="접수번호"/>
  56. <Cell col="7" text="명일련"/>
  57. <Cell col="8" text="등록번호"/>
  58. <Cell col="9" text="수진자"/>
  59. <Cell col="10" text="진료과"/>
  60. <Cell col="11" text="총진료비"/>
  61. <Cell col="12" text="청구액"/>
  62. <Cell col="13" text="상한액"/>
  63. <Cell col="14" text="심결상한액"/>
  64. <Cell col="15" text="지원금"/>
  65. <Cell col="16" text="심사차수"/>
  66. <Cell col="17" text="심사자"/>
  67. <Cell col="18"/>
  68. <Cell col="19"/>
  69. <Cell col="20"/>
  70. <Cell col="21"/>
  71. <Cell col="22"/>
  72. <Cell col="23"/>
  73. <Cell col="24"/>
  74. <Cell col="25"/>
  75. <Cell col="26"/>
  76. </Band>
  77. <Band id="body">
  78. <Cell celltype="head"/>
  79. <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:sendyn" expr="expr:sendyn == 'Y' || sendyn == '1' ? 1 : 0"/>
  80. <Cell col="2" text="bind:jrstat"/>
  81. <Cell col="3" text="bind:depoyn"/>
  82. <Cell col="4" displaytype="date" text="bind:depodd" mask="yyyy-MM-dd"/>
  83. <Cell col="5" text="bind:decotretflag"/>
  84. <Cell col="6" text="bind:acptno"/>
  85. <Cell col="7" text="bind:docuseqno"/>
  86. <Cell col="8" text="bind:pid"/>
  87. <Cell col="9" text="bind:patnm"/>
  88. <Cell col="10" text="bind:orddeptcd" enable="false"/>
  89. <Cell col="11" displaytype="number" text="bind:clmcstotamt"/>
  90. <Cell col="12" displaytype="number" text="bind:clclamamt"/>
  91. <Cell col="13" displaytype="number" text="bind:clownbmaxexamt"/>
  92. <Cell col="14" displaytype="number" text="bind:jrownbmaxexamt"/>
  93. <Cell col="15" displaytype="number" text="bind:clsuppamt"/>
  94. <Cell col="16" text="bind:judgdg"/>
  95. <Cell col="17" text="bind:judgrid"/>
  96. <Cell col="18" text="bind:jrjudgdeciamt"/>
  97. <Cell col="19" text="bind:clamym"/>
  98. <Cell col="20" text="bind:clamdg"/>
  99. <Cell col="21" text="bind:pidsn"/>
  100. <Cell col="22" text="bind:decoseq"/>
  101. <Cell col="23" text="bind:instcd"/>
  102. <Cell col="24" text="bind:inddepoflag"/>
  103. <Cell col="25" text="bind:bfsendyn"/>
  104. <Cell col="26" text="bind:seq"/>
  105. </Band>
  106. </Format>
  107. </Formats>
  108. </Grid>
  109. <Button position="absolute 920 2 1000 21" id="button1" class="btn7" text="엑셀저장" onclick="group3_button1_onclick"/>
  110. <Button position="absolute 825 2 919 21" id="button7" class="btn7" text="Open Excel" onclick="group3_button7_onclick"/>
  111. <Button position="absolute 708 2 761 21" id="button10" class="btn2" text="열카피" onclick="group3_button10_onclick"/>
  112. <Button position="absolute 763 2 816 21" id="button11" class="btn2" text="행카피" onclick="group3_button11_onclick"/>
  113. <Button position="absolute 653 2 706 21" id="button13" class="btn2" text="셀카피" onclick="group3_button13_onclick"/>
  114. </Layout>
  115. </Layouts>
  116. </Div>
  117. <Div position="absolute 0 550 1000 577" id="group1" scrollbars="autoboth">
  118. <Layouts>
  119. <Layout>
  120. <Button position="absolute 944 3 1000 25" id="btn_cancel" class="btn4" text="닫기" anchor="default" onclick="group1_btn_cancel_onclick"/>
  121. <Button position="absolute 887 3 943 25" id="button2" class="btn4" text="저장" anchor="default" onclick="group1_button2_onclick"/>
  122. </Layout>
  123. </Layouts>
  124. </Div>
  125. </Layout>
  126. </Layouts>
  127. <Objects>
  128. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  129. <Dataset id="ds_main_list01_gridpifmiunc" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  130. <ColumnInfo>
  131. <Column id="check" type="STRING" size="256" sumtext="체크여부"/>
  132. <Column id="chkdepo" type="STRING" size="256" sumtext="체크박스구분"/>
  133. <Column id="sendyn" type="STRING" size="256" sumtext="반송여부"/>
  134. <Column id="offcharm" type="STRING" size="256" sumtext="지원구분"/>
  135. <Column id="jrstat" type="STRING" size="256" sumtext="심결상태"/>
  136. <Column id="depoyn" type="STRING" size="256" sumtext="입금여부"/>
  137. <Column id="depodd" type="STRING" size="256" sumtext="입금일자"/>
  138. <Column id="decotretflag" type="STRING" size="256" sumtext="미수처리구분"/>
  139. <Column id="acptno" type="STRING" size="256" sumtext="접수번호"/>
  140. <Column id="docuseqno" type="STRING" size="256" sumtext="명일련"/>
  141. <Column id="pid" type="STRING" size="256" sumtext="등록번호"/>
  142. <Column id="patnm" type="STRING" size="256" sumtext="수진자명"/>
  143. <Column id="orddeptcd" type="STRING" size="256" sumtext="진료과"/>
  144. <Column id="clmcstotamt" type="STRING" size="256" sumtext="청구총진료비"/>
  145. <Column id="clclamamt" type="STRING" size="256" sumtext="청구액"/>
  146. <Column id="clownbmaxexamt" type="STRING" size="256" sumtext="상한액"/>
  147. <Column id="jrownbmaxexamt" type="STRING" size="256" sumtext="심결상한액"/>
  148. <Column id="clsuppamt" type="STRING" size="256" sumtext="지원금"/>
  149. <Column id="jrsuppamt" type="STRING" size="256" sumtext="심결지원금"/>
  150. <Column id="judgdg" type="STRING" size="256" sumtext="심사차수"/>
  151. <Column id="rtndd" type="STRING" size="256" sumtext="지원금환수일"/>
  152. <Column id="rtnyn" type="STRING" size="256" sumtext="지원금환수여부"/>
  153. <Column id="jrjudgdeciamt" type="STRING" size="256" sumtext="심사결정액"/>
  154. <Column id="judgrid" type="STRING" size="256" sumtext="사후심사자"/>
  155. <Column id="clamym" type="STRING" size="256" sumtext="청구월"/>
  156. <Column id="clamdg" type="STRING" size="256" sumtext="청구차수"/>
  157. <Column id="pidsn" type="STRING" size="256" sumtext="등록번호순번"/>
  158. <Column id="decoseq" type="STRING" size="256" sumtext="미수일련번호"/>
  159. <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
  160. <Column id="inddepoflag" type="STRING" size="256" sumtext="개인입금구분"/>
  161. <Column id="sendyn" type="STRING" size="256" sumtext="이전반송여부"/>
  162. <Column id="seq" type="STRING" size="256" sumtext="순번"/>
  163. <Column id="bfsendyn" type="STRING" size="256"/>
  164. </ColumnInfo>
  165. </Dataset>
  166. </Objects>
  167. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  168. * System Name :
  169. * Job Name :
  170. * Creator :
  171. * Make Date : 2016-05-24
  172. * Description :
  173. *---------------------------------------------------------------------------------------
  174. * Modify Date Modifier Modify Description
  175. *---------------------------------------------------------------------------------------
  176. * 2016-05-24 Live Converter TF->XP
  177. *
  178. *---------------------------------------------------------------------------------------
  179. ****************************************************************************************/
  180. include "com_commonxp::comm_main.xjs";
  181. include "pam_pamcomnxp::PAM001.xjs";
  182. include "pam_pamcomnxp::PAM.xjs";
  183. var col = "N";
  184. function SMPIF30170_oninit(obj:Form, e:InitEventInfo)
  185. {
  186. frmf_initForm(obj);
  187. }
  188. function SMPIF30170_onload(obj:Form, e:LoadEventInfo)
  189. {
  190. grdf_initGrid(group3.grd_pifmiunc);
  191. grdf_setRowTypeIcon(group3.grd_pifmiunc, 0);
  192. if(frmf_checkOpener())
  193. {
  194. ds_send.copyData(arg_ds_send);
  195. }
  196. CommCode_Load();
  197. }
  198. function CommCode_Load()
  199. {
  200. var oParam = {};
  201. oParam.id = "TRPIF30305";
  202. oParam.service = "clamuncoapp.ClamUnco";
  203. oParam.method = "reqGetPsnMaxAmtSrch";
  204. oParam.inds = "req=ds_send";
  205. oParam.outds = "ds_main_list01_gridpifmiunc=gridpifmiunc";
  206. oParam.async = false;
  207. //oParam.callback = "cf_TRPIF30305";
  208. tranf_submit(oParam);
  209. }
  210. function group3_grd_pifmiunc_oncellclick(obj:Grid, e:GridClickEventInfo)
  211. {
  212. var row = e.row;
  213. if(e.col == 1)
  214. {
  215. if(ds_main_list01_gridpifmiunc.getColumn(row, "sendyn") == ds_main_list01_gridpifmiunc.getColumn(row, "bfsendyn"))
  216. {
  217. var arrRow = new Array();
  218. arrRow[0] = e.row;
  219. grdf_setStatus(group3.grd_pifmiunc, "", arrRow);
  220. }
  221. else if(ds_main_list01_gridpifmiunc.getColumn(row, "sendyn") == "0")
  222. {
  223. ds_main_list01_gridpifmiunc.setColumn(row, "sendyn", "N");
  224. var arrRow = new Array();
  225. arrRow[0] = e.row;
  226. grdf_setStatus(group3.grd_pifmiunc, "D", arrRow);
  227. }
  228. else if(ds_main_list01_gridpifmiunc.getColumn(row, "sendyn") == "1")
  229. {
  230. ds_main_list01_gridpifmiunc.setColumn(row, "sendyn", "Y");
  231. var arrRow = new Array();
  232. arrRow[0] = e.row;
  233. grdf_setStatus(group3.grd_pifmiunc, "U", arrRow);
  234. }
  235. }
  236. var lv_nAreaStartRow;
  237. var lv_nAreaEndRow;
  238. var lv_nAreaStartCol;
  239. var lv_nAreaEndCol;
  240. if(col == "Y")
  241. {
  242. lv_nAreaStartRow = 0;
  243. lv_nAreaEndRow = parseInt(obj.rowcount-1);
  244. lv_nAreaStartCol = parseInt(obj.currentcol);
  245. lv_nAreaEndCol = parseInt(obj.currentcol);
  246. grdf_initGridStyle(obj);
  247. for(var nRow = lv_nAreaStartRow; nRow <= lv_nAreaEndRow; nRow++)
  248. {
  249. for(var nCell = lv_nAreaStartCol; nCell <= lv_nAreaEndCol; nCell++)
  250. {
  251. obj.setCellProperty("body",nCell,"background","#FFE7E5");
  252. obj.setCellProperty("body",nCell,"background2","#FFE7E5");
  253. }
  254. }
  255. }
  256. else
  257. {
  258. grdf_initGridStyle(obj);
  259. }
  260. }
  261. function group1_button2_onclick(obj:Button, e:ClickEventInfo)
  262. {
  263. var row = ds_main_list01_gridpifmiunc.rowcount;
  264. var cnt = 0;
  265. for(var i = 0; i < row; i++)
  266. {
  267. if(ds_main_list01_gridpifmiunc.getRowType(i) == 4 || ds_main_list01_gridpifmiunc.getRowType(i) == 8)
  268. {
  269. ++cnt;
  270. }
  271. }
  272. if(cnt > 0)
  273. {
  274. var oParam = {};
  275. oParam.id = "TXPIF30305";
  276. oParam.service = "clamuncoapp.ClamUnco";
  277. oParam.method = "reqPutMaxexamt";
  278. oParam.inds = "req=ds_main_list01_gridpifmiunc:U";
  279. oParam.outds = "";
  280. oParam.async = false;
  281. oParam.callback = "cf_TXPIF30305";
  282. tranf_submit(oParam);
  283. }
  284. else
  285. {
  286. return false;
  287. }
  288. }
  289. function cf_TXPIF30305()
  290. {
  291. var oParam = {};
  292. oParam.id = "TRPIF30305";
  293. oParam.service = "clamuncoapp.ClamUnco";
  294. oParam.method = "reqGetPsnMaxAmtSrch";
  295. oParam.inds = "req=ds_send";
  296. oParam.outds = "ds_main_list01_gridpifmiunc=gridpifmiunc";
  297. oParam.async = false;
  298. //oParam.callback = "cf_TRPIF30305";
  299. tranf_submit(oParam);
  300. }
  301. function group1_btn_cancel_onclick(obj:Button, e:ClickEventInfo)
  302. {
  303. this.close();
  304. }
  305. function group3_button13_onclick(obj:Button, e:ClickEventInfo)
  306. {
  307. col = "N";
  308. group3.grd_pifmiunc.selecttype = "multiarea";
  309. }
  310. function group3_button10_onclick(obj:Button, e:ClickEventInfo)
  311. {
  312. col = "Y";
  313. group3.grd_pifmiunc.selecttype = "multiarea";
  314. }
  315. function group3_button11_onclick(obj:Button, e:ClickEventInfo)
  316. {
  317. col = "N";
  318. group3.grd_pifmiunc.selecttype = "multirow";
  319. }
  320. function group3_button7_onclick(obj:Button, e:ClickEventInfo)
  321. {
  322. system.execShell("excel");
  323. }
  324. function group3_button1_onclick(obj:Button, e:ClickEventInfo)
  325. {
  326. var today = new Date();
  327. var yy = today.getYear() + "";
  328. var mm = today.getMonth() + 1;
  329. var dd = today.getDate();
  330. if(mm < 10)
  331. {
  332. mm = "0" + mm;
  333. }
  334. else
  335. {
  336. mm = mm + "";
  337. }
  338. if(dd < 10)
  339. {
  340. dd = "0" + dd;
  341. }
  342. else
  343. {
  344. dd = dd + "";
  345. }
  346. var tmp = yy + mm + dd;
  347. if(ds_main_list01_gridpifmiunc.rowcount == 0)
  348. {
  349. sysf_messageBox("엑셀저장할 내역이", "I004"); ///엑셀저장할 내역이 없습니다.
  350. }
  351. else
  352. {
  353. grdf_exportExcel(group3.grd_pifmiunc, "상한액관리_"+tmp, "see");
  354. }
  355. }
  356. function group3_grd_pifmiunc_onkeydown(obj:Grid, e:KeyEventInfo)
  357. {
  358. if(col == "Y")
  359. {
  360. var CONST_SEPARATOR = " "; //컬럼별 구분자
  361. var lv_oBindDs = eval(obj.binddataset);
  362. var lv_sColID;
  363. var lv_sVal;
  364. var lv_sClipboard = "";
  365. var lv_nAreaStartRow;
  366. var lv_nAreaEndRow;
  367. var lv_nAreaStartCol;
  368. var lv_nAreaEndCol;
  369. if(obj.selecttype == "multiarea")
  370. {
  371. lv_nAreaStartRow = 0;
  372. lv_nAreaEndRow = parseInt(obj.rowcount-1);
  373. lv_nAreaStartCol = parseInt(obj.currentcol);
  374. lv_nAreaEndCol = parseInt(obj.currentcol);
  375. }
  376. for(var nRow = lv_nAreaStartRow; nRow <= lv_nAreaEndRow; nRow++)
  377. {
  378. for(var nCell = lv_nAreaStartCol; nCell <= lv_nAreaEndCol; nCell++)
  379. {
  380. lv_sColID = obj.getCellProperty("body",nCell,"text");
  381. lv_sVal = obj.getCellValue(nRow,nCell);
  382. lv_sClipboard = lv_sClipboard + lv_sVal + CONST_SEPARATOR;
  383. }
  384. lv_sClipboard = lv_sClipboard.substr(0,lv_sClipboard.length-1);
  385. lv_sClipboard = lv_sClipboard +String.fromCharCode(10);
  386. }
  387. lv_sClipboard = lv_sClipboard.substr(0,lv_sClipboard.length-1);
  388. iv_sClipboard = lv_sClipboard;
  389. system.setClipboard("CF_TEXT",lv_sClipboard);
  390. }
  391. else
  392. {
  393. if (e.ctrlKey == true && e.keycode == 67 )
  394. {
  395. grdf_clipboardCopy(obj, "PAM");
  396. }
  397. }
  398. }
  399. ]]></Script>
  400. </Form>
  401. </FDL>