SPPIF30304_지원금관리.xfdl 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPPIF30304" position="absolute 0 0 1110 687" titletext="지원금관리" oninit="SPPIF30304_oninit" onload="SPPIF30304_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 0 0 1100 658" id="group3" scrollbars="autoboth">
  8. <Layouts>
  9. <Layout>
  10. <Shape position="absolute 0 26 1100 32" linetype="horizontal" id="line8" class="line_1" style="strokepen:3 solid #33bbbbff;"/>
  11. <Static text="지원금관리" position="absolute 1 10 145 32" id="caption4" class="tit_2"/>
  12. <Grid position="absolute 0 31 1100 656" id="grd_pifmiunc" class="datagrid2" binddataset="ds_main_pifmiunc" oncellclick="group3_grd_pifmiunc_oncellclick" onkeydown="group3_grd_pifmiunc_onkeydown" cellmovingtype="col" cellsizingtype="col">
  13. <Formats>
  14. <Format id="default">
  15. <Columns>
  16. <Column size="20"/>
  17. <Column size="35"/>
  18. <Column size="28"/>
  19. <Column size="29"/>
  20. <Column size="84"/>
  21. <Column size="76"/>
  22. <Column size="75"/>
  23. <Column size="64"/>
  24. <Column size="70"/>
  25. <Column size="55"/>
  26. <Column size="66"/>
  27. <Column size="80"/>
  28. <Column size="80"/>
  29. <Column size="80"/>
  30. <Column size="73"/>
  31. <Column size="61"/>
  32. <Column size="71"/>
  33. <Column size="84"/>
  34. <Column size="60"/>
  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="30" band="head"/>
  46. <Row size="24"/>
  47. </Rows>
  48. <Band id="head">
  49. <Cell/>
  50. <Cell col="1" text="선택"/>
  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" text="지원금&#10;환수여부"/>
  68. <Cell col="19" text="caption1"/>
  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="expr:chkdepo == 'Y' ? 'none' : 'checkbox'" style="controlbackground:EXPR(chkdepo == 'Y' ? 'darkgray' : '');controlborder:EXPR(chkdepo == 'Y' ? '1 solid #808080ff' : '');" text="bind:check" expr="expr:check == 'Y' || check == '1' ? 1 : 0"/>
  80. <Cell col="2" text="bind:sendyn"/>
  81. <Cell col="3" text="bind:depoyn"/>
  82. <Cell col="4" displaytype="date" edittype="date" text="bind:depodd" mask="yyyy-MM-dd" calendardisplaynulltype="nulltext"/>
  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:clsuppamt"/>
  92. <Cell col="14" displaytype="number" text="bind:jrsuppamt"/>
  93. <Cell col="15" text="bind:judgdg"/>
  94. <Cell col="16" text="bind:offcharm"/>
  95. <Cell col="17" displaytype="number" text="bind:rtndd" mask="yyyy-MM-dd"/>
  96. <Cell col="18" displaytype="combo" edittype="combo" style="align:center middle;" text="bind:rtnyn" combodataset="ds_cmb_rtnyn" combocodecol="value" combodatacol="label" enable="false"/>
  97. <Cell col="19" text="bind:jrjudgdeciamt"/>
  98. <Cell col="20" text="bind:clamym"/>
  99. <Cell col="21" text="bind:clamdg"/>
  100. <Cell col="22" text="bind:pidsn"/>
  101. <Cell col="23" text="bind:decoseq"/>
  102. <Cell col="24" text="bind:instcd"/>
  103. <Cell col="25" text="bind:inddepoflag"/>
  104. <Cell col="26" text="bind:chkdepo"/>
  105. </Band>
  106. </Format>
  107. </Formats>
  108. </Grid>
  109. <Button position="absolute 888 6 952 25" id="button1" class="btn2" text="전체선택" onclick="group3_button1_onclick"/>
  110. <Button position="absolute 954 6 1018 25" id="button2" class="btn2" text="전체해제" onclick="group3_button2_onclick"/>
  111. <Button position="absolute 1020 6 1100 25" id="button4" class="btn7" text="엑셀저장" onclick="group3_button4_onclick"/>
  112. <Static text="입금된 금액 :" position="absolute 100 8 185 28" id="caption3"/>
  113. <Static position="absolute 172 8 231 28" align="align:right middle;" id="cp_insumfix" mask="#,###" style="align:right middle;"/>
  114. <Static text="입금할 금액 :" position="absolute 242 8 327 28" id="caption1"/>
  115. <Static position="absolute 313 8 372 28" align="align:right middle;" id="cp_insum" mask="#,###" style="align:right middle;"/>
  116. <Static text="미수금액 :" position="absolute 384 8 449 28" id="caption2"/>
  117. <Static position="absolute 440 8 499 28" align="align:right middle;" id="cp_nonsum" mask="#,###" style="align:right middle;"/>
  118. <Calendar position="absolute 511 6 611 25" id="ipt_depodd" enable="false" mask="yyyy-mm-dd"/>
  119. <Button position="absolute 612 6 720 25" id="button5" class="btn5" text="입금일자일괄적용" onclick="group3_button5_onclick"/>
  120. <Button position="absolute 722 6 775 25" id="button6" class="btn2" text="셀카피" onclick="group3_button6_onclick"/>
  121. <Button position="absolute 777 6 830 25" id="button7" class="btn2" text="열카피" onclick="group3_button7_onclick"/>
  122. <Button position="absolute 832 6 885 25" id="button8" class="btn2" text="행카피" onclick="group3_button8_onclick"/>
  123. <Div position="absolute 488 26 1076 84" id="grp_select" visible="false" style="background:#ffffffff;border:1 solid #808080ff ;">
  124. <Layouts>
  125. <Layout>
  126. <Shape position="absolute 0 0 583 30" id="roundrect6" type="roundrectangle" anchor="default"/>
  127. <Shape position="absolute 8 25 195 31" linetype="vertical" id="line28" class="line_2" anchor="default"/>
  128. <Shape position="absolute 6 25 348 31" linetype="horizontal" id="line29" class="line_2" style="strokepen:2 solid #dedcdcff;" anchor="default"/>
  129. <Static text="선택 구분" position="absolute 5 5 78 28" align="align:center middle;" id="caption30" class="cell_1" anchor="default"/>
  130. <Shape position="absolute 5 0 583 5" linetype="horizontal" id="line30" class="line_1" style="strokepen:3 solid #33bbbbff;" anchor="default"/>
  131. <CheckBox position="absolute 83 8 175 25" id="chk_sel1" text="희귀지원금" anchor="default" truevalue="Y" falsevalue="N" value="N" onclick="group3_grp_select_chk_sel1_onclick"/>
  132. <CheckBox position="absolute 175 8 230 25" id="chk_sel2" text="결핵" anchor="default" onclick="group3_grp_select_chk_sel2_onclick" truevalue="Y" falsevalue="N"/>
  133. <Button position="absolute 527 32 583 54" id="button3" class="btn4" text="닫기" anchor="default" onclick="group3_grp_select_button3_onclick"/>
  134. <CheckBox id="chk_sel3" taborder="1" text="결핵검진" position="absolute 238 8 319 25" anchor="default" onclick="group3_grp_select_chk_sel3_onclick" truevalue="Y" falsevalue="N"/>
  135. <CheckBox id="chk_sel4" taborder="2" text="결핵치료" position="absolute 319 8 399 25" anchor="default" onclick="group3_grp_select_chk_sel4_onclick" truevalue="Y" falsevalue="N"/>
  136. </Layout>
  137. </Layouts>
  138. </Div>
  139. </Layout>
  140. </Layouts>
  141. </Div>
  142. <Div position="absolute 0 654 1100 681" id="group1" scrollbars="autoboth">
  143. <Layouts>
  144. <Layout>
  145. <Button position="absolute 1044 3 1100 25" id="btn_cancel" class="btn4" text="닫기" anchor="default" onclick="group1_btn_cancel_onclick"/>
  146. <Button position="absolute 987 3 1043 25" id="button9" class="btn4" text="확인" anchor="default" onclick="group1_button9_onclick"/>
  147. </Layout>
  148. </Layouts>
  149. </Div>
  150. </Layout>
  151. </Layouts>
  152. <Objects>
  153. <Dataset id="ds_main_pifmiunc" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false" oncolumnchanged="ds_main_pifmiunc_oncolumnchanged">
  154. <ColumnInfo>
  155. <Column id="check" type="STRING"/>
  156. <Column id="sendyn" type="STRING"/>
  157. <Column id="depoyn" type="STRING"/>
  158. <Column id="depodd" type="STRING"/>
  159. <Column id="decotretflag" type="STRING"/>
  160. <Column id="acptno" type="STRING"/>
  161. <Column id="docuseqno" type="STRING"/>
  162. <Column id="pid" type="STRING"/>
  163. <Column id="patnm" type="STRING"/>
  164. <Column id="orddeptcd" type="STRING"/>
  165. <Column id="clmcstotamt" type="STRING"/>
  166. <Column id="clclamamt" type="STRING"/>
  167. <Column id="clsuppamt" type="STRING"/>
  168. <Column id="jrsuppamt" type="STRING"/>
  169. <Column id="judgdg" type="STRING"/>
  170. <Column id="offcharm" type="STRING"/>
  171. <Column id="rtndd" type="STRING"/>
  172. <Column id="rtnyn" type="STRING"/>
  173. <Column id="jrjudgdeciamt" type="STRING"/>
  174. <Column id="clamym" type="STRING"/>
  175. <Column id="clamdg" type="STRING"/>
  176. <Column id="pidsn" type="STRING"/>
  177. <Column id="decoseq" type="STRING"/>
  178. <Column id="instcd" type="STRING"/>
  179. <Column id="inddepoflag" type="STRING"/>
  180. <Column id="chkdepo" type="STRING"/>
  181. <Column id="clownbmaxexamt" type="STRING" size="256"/>
  182. <Column id="jrownbmaxexamt" type="STRING" size="256"/>
  183. <Column id="judgrid" type="STRING" size="256"/>
  184. <Column id="status" type="STRING" size="256"/>
  185. </ColumnInfo>
  186. </Dataset>
  187. <Dataset id="ds_tmp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  188. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  189. <ColumnInfo>
  190. <Column id="insuflag" type="STRING" size="256"/>
  191. <Column id="clamym" type="STRING" size="256"/>
  192. <Column id="clamdd" type="STRING" size="256"/>
  193. <Column id="acptno" type="STRING" size="256"/>
  194. <Column id="judgdg" type="STRING" size="256"/>
  195. <Column id="opn_row" type="STRING" size="256"/>
  196. <Column id="openerflag" type="STRING" size="256"/>
  197. <Column id="rtndd" type="STRING" size="256"/>
  198. <Column id="inddepoflag" type="STRING" size="256"/>
  199. <Column id="openflag" type="STRING" size="256"/>
  200. <Column id="clamno" type="STRING" size="256"/>
  201. </ColumnInfo>
  202. <Rows>
  203. <Row>
  204. <Col id="insuflag"/>
  205. <Col id="clamym"/>
  206. <Col id="clamdd"/>
  207. <Col id="acptno"/>
  208. <Col id="judgdg"/>
  209. <Col id="opn_row"/>
  210. <Col id="openerflag"/>
  211. <Col id="rtndd"/>
  212. <Col id="inddepoflag"/>
  213. </Row>
  214. </Rows>
  215. </Dataset>
  216. <Dataset id="ds_temp_depoddbatch" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  217. <ColumnInfo>
  218. <Column id="depodd" type="STRING" size="256"/>
  219. </ColumnInfo>
  220. <Rows>
  221. <Row/>
  222. </Rows>
  223. </Dataset>
  224. <Dataset id="ds_main" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  225. <ColumnInfo>
  226. <Column id="sel1" type="STRING" size="256"/>
  227. <Column id="sel2" type="STRING" size="256"/>
  228. <Column id="sel3" type="STRING" size="256"/>
  229. <Column id="sel4" type="STRING" size="256"/>
  230. </ColumnInfo>
  231. <Rows>
  232. <Row>
  233. <Col id="sel1">N</Col>
  234. <Col id="sel2">N</Col>
  235. <Col id="sel3">N</Col>
  236. <Col id="sel4">N</Col>
  237. </Row>
  238. </Rows>
  239. </Dataset>
  240. <Dataset id="ds_cmb_rtnyn" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  241. <ColumnInfo>
  242. <Column id="label" type="STRING" size="256"/>
  243. <Column id="value" type="STRING" size="256"/>
  244. </ColumnInfo>
  245. <Rows>
  246. <Row>
  247. <Col id="label">Y</Col>
  248. <Col id="value">Y</Col>
  249. </Row>
  250. <Row>
  251. <Col id="label">N</Col>
  252. <Col id="value">N</Col>
  253. </Row>
  254. </Rows>
  255. </Dataset>
  256. </Objects>
  257. <Bind>
  258. <BindItem id="item0" compid="group3.ipt_depodd" propid="value" datasetid="ds_temp_depoddbatch" columnid="depodd"/>
  259. <BindItem id="item1" compid="group3.grp_select.chk_sel1" propid="value" datasetid="ds_main" columnid="sel1"/>
  260. <BindItem id="item2" compid="group3.grp_select.chk_sel2" propid="value" datasetid="ds_main" columnid="sel2"/>
  261. <BindItem id="item3" compid="group3.grp_select.chk_sel3" propid="value" datasetid="ds_main" columnid="sel3"/>
  262. <BindItem id="item4" compid="group3.grp_select.chk_sel4" propid="value" datasetid="ds_main" columnid="sel4"/>
  263. </Bind>
  264. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  265. * System Name :
  266. * Job Name :
  267. * Creator :
  268. * Make Date : 2016-05-24
  269. * Description :
  270. *---------------------------------------------------------------------------------------
  271. * Modify Date Modifier Modify Description
  272. *---------------------------------------------------------------------------------------
  273. * 2016-05-24 Live Converter TF->XP
  274. *
  275. *---------------------------------------------------------------------------------------
  276. ****************************************************************************************/
  277. include "com_commonxp::comm_main.xjs";
  278. include "pam_pamcomnxp::PAM001.xjs";
  279. include "pam_pamcomnxp::PAM.xjs";
  280. var col = "N";
  281. function SPPIF30304_oninit(obj:Form, e:InitEventInfo)
  282. {
  283. frmf_initForm(obj);
  284. }
  285. function SPPIF30304_onload(obj:Form, e:LoadEventInfo)
  286. {
  287. grdf_initGrid(group3.grd_pifmiunc);
  288. grdf_setRowTypeIcon(group3.grd_pifmiunc, 0);
  289. ds_tmp.copyData(arg_ds_send);
  290. ds_send.setColumn(0, "insuflag", ds_tmp.getColumn(0, "insuflag"));
  291. ds_send.setColumn(0, "acptno", ds_tmp.getColumn(0, "acptno"));
  292. ds_send.setColumn(0, "clamno", ds_tmp.getColumn(0, "clamno"));
  293. ds_send.setColumn(0, "judgdg", ds_tmp.getColumn(0, "judgdg"));
  294. ds_send.setColumn(0, "opn_row", ds_tmp.getColumn(0, "opn_row"));
  295. ds_send.setColumn(0, "openerflag", ds_tmp.getColumn(0, "openerflag"));
  296. ds_send.setColumn(0, "inddepoflag", ds_tmp.getColumn(0, "inddepoflag"));
  297. ds_send.setColumn(0, "rtndd", ds_tmp.getColumn(0, "rtndd"));
  298. ds_temp_depoddbatch.setColumn(0, "depodd", ds_send.getColumn(0, "rtndd"));
  299. CommCode_Load();
  300. }
  301. function CommCode_Load()
  302. {
  303. ds_send.setColumn(0, "openflag", "지원금");
  304. var oParam = {};
  305. oParam.id = "TRPIF30305";
  306. oParam.service = "clamuncoapp.ClamUnco";
  307. oParam.method = "reqGetPsnMaxAmtSrch";
  308. oParam.inds = "req=ds_send";
  309. oParam.outds = "ds_main_pifmiunc=gridpifmiunc";
  310. oParam.async = false;
  311. //oParam.callback = "cf_TRPIF30305";
  312. tranf_submit(oParam);
  313. finnonSum();
  314. }
  315. function finnonSum()
  316. {
  317. var rows = ds_main_pifmiunc.rowcount;
  318. var insumfix = 0;
  319. var insum = 0;
  320. var nonsum = 0 ;
  321. for(var i = 0; i < rows; i++)
  322. {
  323. if(ds_main_pifmiunc.getColumn(i, "depoyn") == "Y")
  324. {
  325. if(ds_main_pifmiunc.getColumn(i, "check") != "Y")
  326. {
  327. insumfix = insumfix + parseInt(ds_main_pifmiunc.getColumn(i, "clsuppamt"));
  328. }
  329. else
  330. {
  331. if(ds_main_pifmiunc.getColumn(i, "sendyn") != "Y")
  332. {
  333. insum = insum + parseInt(ds_main_pifmiunc.getColumn(i, "clsuppamt"));
  334. }
  335. }
  336. }
  337. else
  338. {
  339. nonsum = nonsum + parseInt(ds_main_pifmiunc.getColumn(i, "clsuppamt"));
  340. }
  341. }
  342. group3.cp_insumfix.text= insumfix;
  343. group3.cp_insum.text = insum;
  344. group3.cp_nonsum.text = nonsum;
  345. }
  346. function group3_button5_onclick(obj:Button, e:ClickEventInfo)
  347. {
  348. var rows = ds_main_pifmiunc.rowcount;
  349. for(var i = 0; i < rows; i++)
  350. {
  351. if(ds_main_pifmiunc.getColumn(i, "check") == "Y")
  352. {
  353. if(ds_main_pifmiunc.getColumn(i, "depoyn") == "Y")
  354. {
  355. ds_main_pifmiunc.setColumn(i, "depodd", group3.ipt_depodd.value);
  356. }
  357. }
  358. }
  359. }
  360. function group3_button6_onclick(obj:Button, e:ClickEventInfo)
  361. {
  362. col = "N";
  363. group3.grd_pifmmiun.selecttype = "multiarea";
  364. }
  365. function group3_button7_onclick(obj:Button, e:ClickEventInfo)
  366. {
  367. col = "Y";
  368. group3.grd_pifmmiun.selecttype = "multiarea";
  369. }
  370. function group3_button8_onclick(obj:Button, e:ClickEventInfo)
  371. {
  372. col = "N";
  373. group3.grd_pifmmiun.selecttype = "multirow";
  374. }
  375. function group3_grd_pifmiunc_oncellclick(obj:Grid, e:GridClickEventInfo)
  376. {
  377. var lv_nAreaStartRow;
  378. var lv_nAreaEndRow;
  379. var lv_nAreaStartCol;
  380. var lv_nAreaEndCol;
  381. if(col == "Y")
  382. {
  383. lv_nAreaStartRow = 0;
  384. lv_nAreaEndRow = parseInt(obj.rowcount-1);
  385. lv_nAreaStartCol = parseInt(obj.currentcol);
  386. lv_nAreaEndCol = parseInt(obj.currentcol);
  387. grdf_initGridStyle(obj);
  388. for(var nRow = lv_nAreaStartRow; nRow <= lv_nAreaEndRow; nRow++)
  389. {
  390. for(var nCell = lv_nAreaStartCol; nCell <= lv_nAreaEndCol; nCell++)
  391. {
  392. obj.setCellProperty("body",nCell,"background","#FFE7E5");
  393. obj.setCellProperty("body",nCell,"background2","#FFE7E5");
  394. }
  395. }
  396. }
  397. else
  398. {
  399. grdf_initGridStyle(obj);
  400. }
  401. }
  402. function group3_grd_pifmiunc_onkeydown(obj:Grid, e:KeyEventInfo)
  403. {
  404. if(col == "Y")
  405. {
  406. var CONST_SEPARATOR = " "; //컬럼별 구분자
  407. var lv_oBindDs = eval(obj.binddataset);
  408. var lv_sColID;
  409. var lv_sVal;
  410. var lv_sClipboard = "";
  411. var lv_nAreaStartRow;
  412. var lv_nAreaEndRow;
  413. var lv_nAreaStartCol;
  414. var lv_nAreaEndCol;
  415. if(obj.selecttype == "multiarea")
  416. {
  417. lv_nAreaStartRow = 0;
  418. lv_nAreaEndRow = parseInt(obj.rowcount-1);
  419. lv_nAreaStartCol = parseInt(obj.currentcol);
  420. lv_nAreaEndCol = parseInt(obj.currentcol);
  421. }
  422. for(var nRow = lv_nAreaStartRow; nRow <= lv_nAreaEndRow; nRow++)
  423. {
  424. for(var nCell = lv_nAreaStartCol; nCell <= lv_nAreaEndCol; nCell++)
  425. {
  426. lv_sColID = obj.getCellProperty("body",nCell,"text");
  427. lv_sVal = obj.getCellValue(nRow,nCell);
  428. lv_sClipboard = lv_sClipboard + lv_sVal + CONST_SEPARATOR;
  429. }
  430. lv_sClipboard = lv_sClipboard.substr(0,lv_sClipboard.length-1);
  431. lv_sClipboard = lv_sClipboard +String.fromCharCode(10);
  432. }
  433. lv_sClipboard = lv_sClipboard.substr(0,lv_sClipboard.length-1);
  434. iv_sClipboard = lv_sClipboard;
  435. system.setClipboard("CF_TEXT",lv_sClipboard);
  436. }
  437. else
  438. {
  439. if (e.ctrlKey == true && e.keycode == 67 )
  440. {
  441. grdf_clipboardCopy(obj, "PAM");
  442. }
  443. }
  444. }
  445. function group3_button1_onclick(obj:Button, e:ClickEventInfo)
  446. {
  447. // ds_main.setColumn(0, "sel1", "Y");
  448. // ds_main.setColumn(0, "sel2", "Y");
  449. // ds_main.setColumn(0, "sel3", "Y");
  450. // ds_main.setColumn(0, "sel4", "Y");
  451. group3.grp_select.visible = true;
  452. // var rows = ds_main_pifmiunc.rowcount;
  453. //
  454. // for(var i = 0; i < rows; i++)
  455. // {
  456. // trace(ds_main_pifmiunc.getColumn(i, "depoyn"))
  457. // if(ds_main_pifmiunc.getColumn(i, "depoyn") == "Y")
  458. // {
  459. // continue;
  460. // }
  461. // else if(ds_main_pifmiunc.getColumn(i, "depoyn") == "N")
  462. // {
  463. // ds_main_pifmiunc.setColumn(i, "check", "Y");
  464. //
  465. // var arrRow = new Array();
  466. // arrRow[0] = i;
  467. // grdf_setStatus(group3.grd_pifmiunc, "I", arrRow);
  468. //
  469. // if(ds_main_pifmiunc.getColumn(i, "sendyn") != "Y")
  470. // {
  471. // ds_main_pifmiunc.setColumn(i, "depoyn", "Y");
  472. // }
  473. // }
  474. // }
  475. // finnonSum();
  476. }
  477. function group3_button2_onclick(obj:Button, e:ClickEventInfo)
  478. {
  479. var rows = ds_main_pifmiunc.rowcount;
  480. for(var i = 0; i < rows; i++)
  481. {
  482. if(ds_main_pifmiunc.getColumn(i, "check") != "Y")
  483. {
  484. continue;
  485. }
  486. else
  487. {
  488. ds_main_pifmiunc.setColumn(i, "check", "N");
  489. var arrRow = new Array();
  490. arrRow[0] = i;
  491. grdf_setStatus(group3.grd_pifmiunc, "", arrRow);
  492. ds_main_pifmiunc.setColumn(i, "depoyn", "N");
  493. ds_main_pifmiunc.setColumn(i, "depodd", "");
  494. //grd_pifmiunc.isReadOnly(i, grd_pifmiunc.colRef("depodd")) = true;
  495. }
  496. }
  497. finnonSum();
  498. }
  499. function group3_button4_onclick(obj:Button, e:ClickEventInfo)
  500. {
  501. var today = new Date();
  502. var yy = today.getYear()+"";
  503. var mm = today.getMonth()+1;
  504. var dd = today.getDate();
  505. if(mm < 10)
  506. {
  507. mm = "0" + mm;
  508. }
  509. else
  510. {
  511. mm = mm + "";
  512. }
  513. if(dd < 10)
  514. {
  515. dd = "0" + dd;
  516. }
  517. else
  518. {
  519. dd = dd + "";
  520. }
  521. var tmp = yy + mm + dd;
  522. if (ds_main_pifmiunc.rowcount > 0)
  523. {
  524. grdf_exportExcel(group3.grd_pifmiunc, "개인별상한금관리_"+tmp, "see");
  525. }
  526. else
  527. {
  528. sysf_messageBox("엑셀저장할 내역이", "I004");
  529. }
  530. }
  531. function group3_grp_select_button3_onclick(obj:Button, e:ClickEventInfo)
  532. {
  533. group3.grp_select.visible = false;
  534. }
  535. function fchngchk()
  536. {
  537. var sel1 = group3.grp_select.chk_sel1.value;
  538. var sel2 = group3.grp_select.chk_sel2.value;
  539. var sel3 = group3.grp_select.chk_sel3.value;
  540. var sel4 = group3.grp_select.chk_sel4.value;
  541. var sel1_txt = group3.grp_select.chk_sel1.text;
  542. var sel2_txt = group3.grp_select.chk_sel2.text;
  543. var sel3_txt = group3.grp_select.chk_sel3.text;
  544. var sel4_txt = group3.grp_select.chk_sel4.text;
  545. var rows = ds_main_pifmiunc.rowcount;
  546. for(var i = 0; i < rows; i++)
  547. {
  548. if(ds_main_pifmiunc.getColumn(i, "depoyn") == "Y")
  549. {
  550. if((ds_main_pifmiunc.getColumn(i, "offcharm") == sel1_txt && sel1 == "Y") || (ds_main_pifmiunc.getColumn(i, "offcharm") == sel3_txt && sel3 == "Y")
  551. || (ds_main_pifmiunc.getColumn(i, "offcharm") == sel4_txt && sel4 == "Y") || (ds_main_pifmiunc.getColumn(i, "offcharm") == sel2_txt && sel2 == "Y"))
  552. {
  553. continue;
  554. }
  555. else
  556. {
  557. ds_main_pifmiunc.setColumn(i, "depoyn", "N");
  558. ds_main_pifmiunc.setColumn(i, "check", "N");
  559. ds_main_pifmiunc.setColumn(i, "depodd", "");
  560. var arrRow = new Array();
  561. arrRow[0] = i;
  562. grdf_setStatus(group3.grd_pifmiunc, "", arrRow);
  563. }
  564. }
  565. else
  566. {
  567. if((ds_main_pifmiunc.getColumn(i, "offcharm") == sel1_txt && sel1 == "Y") || (ds_main_pifmiunc.getColumn(i, "offcharm") == sel3_txt && sel3 == "Y")
  568. ||(ds_main_pifmiunc.getColumn(i, "offcharm") == sel4_txt && sel4 == "Y") || (ds_main_pifmiunc.getColumn(i, "offcharm") == sel2_txt && sel2 == "Y"))
  569. {
  570. if(group3.grd_pifmiunc.getCellProperty("Body", 1, "edittype") != "none")
  571. {
  572. ds_main_pifmiunc.setColumn(i, "check", "Y");
  573. var arrRow = new Array();
  574. arrRow[0] = i;
  575. grdf_setStatus(group3.grd_pifmiunc, "I", arrRow);
  576. }
  577. if(ds_main_pifmiunc.getColumn(i, "sendyn") != "Y")
  578. {
  579. ds_main_pifmiunc.setColumn(i, "depoyn", "Y");
  580. }
  581. }
  582. }
  583. finnonSum();
  584. }
  585. }
  586. function group1_button9_onclick(obj:Button, e:ClickEventInfo)
  587. {
  588. var rows = ds_main_pifmiunc.rowcount;
  589. var totsum = 0;
  590. var cnt = 0;
  591. var offcharm = "";
  592. for(var i = 0; i < rows; i++)
  593. {
  594. if(ds_main_pifmiunc.getColumn(i, "check") == "Y")
  595. {
  596. cnt++;
  597. if(ds_main_pifmiunc.getColumn(i, "sendyn") != "Y")
  598. {
  599. offcharm = ds_main_pifmiunc.getColumn(i, "offcharm");
  600. if(ds_main_pifmiunc.getColumn(i, "offcharm") == "희귀지원금")
  601. {
  602. totsum += Number(ds_main_pifmiunc.getColumn(i, "clsuppamt"));
  603. }
  604. else
  605. {
  606. totsum += Number(ds_main_pifmiunc.getColumn(i, "clsuppamt"));
  607. }
  608. }
  609. else
  610. {
  611. if(ds_main_pifmiunc.getColumn(i, "offcharm") == "희귀지원금")
  612. {
  613. ds_main_pifmiunc.setColumn(i, "clsuppamt", "0");
  614. }
  615. else
  616. {
  617. ds_main_pifmiunc.setColumn(i, "clsuppamt", "0");
  618. }
  619. }
  620. }
  621. }
  622. ds_main_pifmiunc.filterstr = "check == 'Y'";
  623. opener.ds_main_list02_gridpifmidep.clearData();
  624. opener.ds_main_list02_gridpifmidep.copyData(ds_main_pifmiunc, true)
  625. opener.ds_main_list01_gridpifhbsdp.setColumn(ds_send.getColumn(0, "opn_row"), "depoamt", totsum);
  626. opener.ds_main_list01_gridpifhbsdp.setColumn(ds_send.getColumn(0, "opn_row"), "depocnt", cnt);
  627. opener.ds_main_list01_gridpifhbsdp.setColumn(ds_send.getColumn(0, "opn_row"), "rem", offcharm);
  628. this.close();
  629. }
  630. function group1_btn_cancel_onclick(obj:Button, e:ClickEventInfo)
  631. {
  632. this.close();
  633. }
  634. function ds_main_pifmiunc_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  635. {
  636. if( e.columnid == "check" )
  637. {
  638. obj.setColumn(e.row, "check", (e.newvalue == "Y" || e.newvalue == 1) ? "Y" : "N");
  639. }
  640. if(e.columnid == "check")
  641. {
  642. if(obj.getColumn(e.row, "check") == "N")
  643. {
  644. obj.setColumn(e.row, "depoyn", "N");
  645. obj.setColumn(e.row, "depodd", "");
  646. var arrRow = new Array();
  647. arrRow[0] = e.row;
  648. grdf_setStatus(group3.grd_pifmiunc, "", arrRow);
  649. }
  650. else
  651. {
  652. var arrRow = new Array();
  653. arrRow[0] = e.row;
  654. grdf_setStatus(group3.grd_pifmiunc, "I", arrRow);
  655. ds_main_pifmiunc.setColumn(e.row, "status", "I");
  656. if(obj.getColumn(e.row, "sendyn") != "Y")
  657. {
  658. obj.setColumn(e.row, "depoyn", "Y");
  659. }
  660. }
  661. finnonSum();
  662. }
  663. }
  664. function group3_grp_select_chk_sel1_onclick(obj:CheckBox, e:ClickEventInfo)
  665. {
  666. fchngchk();
  667. }
  668. function group3_grp_select_chk_sel2_onclick(obj:CheckBox, e:ClickEventInfo)
  669. {
  670. fchngchk();
  671. }
  672. function group3_grp_select_chk_sel3_onclick(obj:CheckBox, e:ClickEventInfo)
  673. {
  674. fchngchk();
  675. }
  676. function group3_grp_select_chk_sel4_onclick(obj:CheckBox, e:ClickEventInfo)
  677. {
  678. fchngchk();
  679. }
  680. ]]></Script>
  681. </Form>
  682. </FDL>