SPPIF30301_개인별상한액.xfdl 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPPIF30301" position="absolute 0 0 1108 690" titletext="개인별상한액" oninit="SPPIF30301_oninit" onload="SPPIF30301_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 113 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="21"/>
  17. <Column size="35"/>
  18. <Column size="35"/>
  19. <Column size="35"/>
  20. <Column size="84"/>
  21. <Column size="80"/>
  22. <Column size="75"/>
  23. <Column size="80"/>
  24. <Column size="70"/>
  25. <Column size="55"/>
  26. <Column size="80"/>
  27. <Column size="80"/>
  28. <Column size="80"/>
  29. <Column size="80"/>
  30. <Column size="80"/>
  31. <Column size="84"/>
  32. <Column size="90"/>
  33. <Column size="0"/>
  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. </Columns>
  42. <Rows>
  43. <Row size="28" band="head"/>
  44. <Row size="24"/>
  45. </Rows>
  46. <Band id="head">
  47. <Cell/>
  48. <Cell col="1" text="체크"/>
  49. <Cell col="2" text="반송&#10;여부"/>
  50. <Cell col="3" text="입금&#10;여부"/>
  51. <Cell col="4" text="입금일자"/>
  52. <Cell col="5" text="미수처리구분"/>
  53. <Cell col="6" text="접수번호"/>
  54. <Cell col="7" text="명일련"/>
  55. <Cell col="8" text="등록번호"/>
  56. <Cell col="9" text="수진자명"/>
  57. <Cell col="10" text="진료과"/>
  58. <Cell col="11" text="총진료비"/>
  59. <Cell col="12" text="청구액"/>
  60. <Cell col="13" text="상한액"/>
  61. <Cell col="14" text="심사차수"/>
  62. <Cell col="15" text="상한액환수일"/>
  63. <Cell col="16" text="상한액환수여부"/>
  64. <Cell col="17" text="caption1"/>
  65. <Cell col="18"/>
  66. <Cell col="19"/>
  67. <Cell col="20"/>
  68. <Cell col="21"/>
  69. <Cell col="22"/>
  70. <Cell col="23"/>
  71. <Cell col="24"/>
  72. </Band>
  73. <Band id="body">
  74. <Cell celltype="head" expr="expr:currow+1"/>
  75. <Cell col="1" displaytype="checkbox" edittype="expr:chkdepo == 'Y' ? 'none' : 'checkbox'" style="controlbackground:EXPR(chkdepo == 'Y' ? 'darkgray' : '');" text="bind:check" expr="expr:check == 'Y' || check == '1' ? 1 : 0"/>
  76. <Cell col="2" text="bind:sendyn"/>
  77. <Cell col="3" text="bind:depoyn"/>
  78. <Cell col="4" displaytype="date" edittype="expr:chkdepo == 'Y' ? 'none' : 'date'" text="bind:depodd" mask="yyyy-MM-dd" calendardisplaynulltype="none"/>
  79. <Cell col="5" text="bind:decotretflag"/>
  80. <Cell col="6" text="bind:acptno"/>
  81. <Cell col="7" text="bind:docuseqno"/>
  82. <Cell col="8" text="bind:pid"/>
  83. <Cell col="9" text="bind:patnm"/>
  84. <Cell col="10" text="bind:orddeptcd" enable="false"/>
  85. <Cell col="11" displaytype="number" text="bind:clmcstotamt"/>
  86. <Cell col="12" displaytype="number" text="bind:clclamamt"/>
  87. <Cell col="13" displaytype="number" text="bind:clownbmaxexamt"/>
  88. <Cell col="14" text="bind:judgdg"/>
  89. <Cell col="15" displaytype="date" text="bind:rtndd" mask="yyyy-MM-dd" calendardisplay="edit" calendardisplaynulltype="none"/>
  90. <Cell col="16" displaytype="combo" edittype="combo" text="bind:rtnyn" combodataset="ds_cmb_rtnyn" combocodecol="value" combodatacol="label" enable="false"/>
  91. <Cell col="17" text="bind:jrjudgdeciamt"/>
  92. <Cell col="18" text="bind:clamym"/>
  93. <Cell col="19" text="bind:clamdg"/>
  94. <Cell col="20" text="bind:pidsn"/>
  95. <Cell col="21" text="bind:decoseq"/>
  96. <Cell col="22" text="bind:instcd"/>
  97. <Cell col="23" text="bind:inddepoflag"/>
  98. <Cell col="24" text="bind:chkdepo"/>
  99. </Band>
  100. </Format>
  101. </Formats>
  102. </Grid>
  103. <Button position="absolute 888 7 952 26" id="button1" class="btn2" text="전체선택" onclick="group3_button1_onclick"/>
  104. <Button position="absolute 954 7 1018 26" id="button2" class="btn2" text="전체해제" onclick="group3_button2_onclick"/>
  105. <Button position="absolute 1020 7 1100 26" id="button4" class="btn7" text="엑셀저장" onclick="group3_button4_onclick"/>
  106. <Button position="absolute 612 7 720 26" id="button5" class="btn5" text="입금일자일괄적용" onclick="group3_button5_onclick"/>
  107. <Calendar position="absolute 511 7 611 26" id="ipt_depodd" enable="false" mask="yyyy-mm-dd"/>
  108. <Button position="absolute 722 7 775 26" id="button6" class="btn2" text="셀카피" onclick="group3_button6_onclick"/>
  109. <Button position="absolute 777 7 830 26" id="button7" class="btn2" text="열카피" onclick="group3_button7_onclick"/>
  110. <Button position="absolute 832 7 885 26" id="button8" class="btn2" text="행카피" onclick="group3_button8_onclick"/>
  111. <Static text="입금된 금액 :" position="absolute 105 8 190 28" id="caption3"/>
  112. <Static position="absolute 177 8 236 28" align="align:right middle;" id="cp_insumfix" mask="#,###" style="align:right middle;"/>
  113. <Static text="입금할 금액 :" position="absolute 247 8 324 28" id="caption1"/>
  114. <Static position="absolute 318 8 377 28" align="align:right middle;" id="cp_insum" mask="#,###" style="align:right middle;"/>
  115. <Static text="미수금액 :" position="absolute 389 8 446 28" id="caption2"/>
  116. <Static position="absolute 445 8 504 28" align="align:right middle;" id="cp_nonsum" mask="#,###" style="align:right middle;"/>
  117. </Layout>
  118. </Layouts>
  119. </Div>
  120. <Div position="absolute 0 655 1100 682" id="group1" scrollbars="autoboth">
  121. <Layouts>
  122. <Layout>
  123. <Button position="absolute 1044 3 1100 25" id="btn_cancel" class="btn4" text="닫기" anchor="default" onclick="group1_btn_cancel_onclick"/>
  124. <Button position="absolute 987 3 1043 25" id="button3" class="btn4" text="확인" anchor="default" onclick="group1_button3_onclick"/>
  125. </Layout>
  126. </Layouts>
  127. </Div>
  128. </Layout>
  129. </Layouts>
  130. <Objects>
  131. <Dataset id="ds_main_pifmiunc" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false" oncolumnchanged="ds_main_pifmiunc_oncolumnchanged">
  132. <ColumnInfo>
  133. <Column id="check" type="STRING"/>
  134. <Column id="sendyn" type="STRING"/>
  135. <Column id="depoyn" type="STRING"/>
  136. <Column id="depodd" type="STRING"/>
  137. <Column id="decotretflag" type="STRING"/>
  138. <Column id="acptno" type="STRING"/>
  139. <Column id="docuseqno" type="STRING"/>
  140. <Column id="pid" type="STRING"/>
  141. <Column id="patnm" type="STRING"/>
  142. <Column id="orddeptcd" type="STRING"/>
  143. <Column id="clmcstotamt" type="STRING"/>
  144. <Column id="clclamamt" type="STRING"/>
  145. <Column id="clownbmaxexamt" type="INT"/>
  146. <Column id="judgdg" type="STRING"/>
  147. <Column id="rtndd" type="STRING"/>
  148. <Column id="rtnyn" type="STRING"/>
  149. <Column id="jrjudgdeciamt" type="STRING"/>
  150. <Column id="clamym" type="STRING"/>
  151. <Column id="clamdg" type="STRING"/>
  152. <Column id="pidsn" type="STRING"/>
  153. <Column id="decoseq" type="STRING"/>
  154. <Column id="instcd" type="STRING"/>
  155. <Column id="inddepoflag" type="STRING"/>
  156. <Column id="chkdepo" type="STRING"/>
  157. </ColumnInfo>
  158. </Dataset>
  159. <Dataset id="ds_tmp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  160. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  161. <ColumnInfo>
  162. <Column id="insuflag" type="STRING" size="256"/>
  163. <Column id="clamym" type="STRING" size="256"/>
  164. <Column id="clamdd" type="STRING" size="256"/>
  165. <Column id="acptno" type="STRING" size="256"/>
  166. <Column id="judgdg" type="STRING" size="256"/>
  167. <Column id="opn_row" type="STRING" size="256"/>
  168. <Column id="openerflag" type="STRING" size="256"/>
  169. <Column id="rtndd" type="STRING" size="256"/>
  170. <Column id="inddepoflag" type="STRING" size="256"/>
  171. <Column id="openflag" type="STRING" size="256"/>
  172. <Column id="clamno" type="STRING" size="256"/>
  173. </ColumnInfo>
  174. <Rows>
  175. <Row>
  176. <Col id="insuflag"/>
  177. <Col id="clamym"/>
  178. <Col id="clamdd"/>
  179. <Col id="acptno"/>
  180. <Col id="judgdg"/>
  181. <Col id="opn_row"/>
  182. <Col id="openerflag"/>
  183. <Col id="rtndd"/>
  184. <Col id="inddepoflag"/>
  185. </Row>
  186. </Rows>
  187. </Dataset>
  188. <Dataset id="ds_temp_depoddbatch" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  189. <ColumnInfo>
  190. <Column id="depodd" type="STRING" size="256"/>
  191. </ColumnInfo>
  192. <Rows>
  193. <Row/>
  194. </Rows>
  195. </Dataset>
  196. <Dataset id="ds_cmb_rtnyn" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  197. <ColumnInfo>
  198. <Column id="label" type="STRING" size="256"/>
  199. <Column id="value" type="STRING" size="256"/>
  200. </ColumnInfo>
  201. <Rows>
  202. <Row>
  203. <Col id="label">Y</Col>
  204. <Col id="value">Y</Col>
  205. </Row>
  206. <Row>
  207. <Col id="label">N</Col>
  208. <Col id="value">N</Col>
  209. </Row>
  210. </Rows>
  211. </Dataset>
  212. </Objects>
  213. <Bind>
  214. <BindItem id="item0" compid="group3.ipt_depodd" propid="value" datasetid="ds_temp_depoddbatch" columnid="depodd"/>
  215. </Bind>
  216. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  217. * System Name :
  218. * Job Name :
  219. * Creator :
  220. * Make Date : 2016-05-24
  221. * Description :
  222. *---------------------------------------------------------------------------------------
  223. * Modify Date Modifier Modify Description
  224. *---------------------------------------------------------------------------------------
  225. * 2016-05-24 Live Converter TF->XP
  226. *
  227. *---------------------------------------------------------------------------------------
  228. ****************************************************************************************/
  229. include "com_commonxp::comm_main.xjs";
  230. include "pam_pamcomnxp::PAM001.xjs";
  231. include "pam_pamcomnxp::PAM.xjs";
  232. var col = "N";
  233. function SPPIF30301_oninit(obj:Form, e:InitEventInfo)
  234. {
  235. frmf_initForm(obj);
  236. }
  237. function SPPIF30301_onload(obj:Form, e:LoadEventInfo)
  238. {
  239. ds_tmp.copyData(arg_ds_send);
  240. ds_send.setColumn(0, "insuflag", ds_tmp.getColumn(0, "insuflag"));
  241. ds_send.setColumn(0, "acptno", ds_tmp.getColumn(0, "acptno"));
  242. ds_send.setColumn(0, "judgdg", ds_tmp.getColumn(0, "judgdg"));
  243. ds_send.setColumn(0, "opn_row", ds_tmp.getColumn(0, "opn_row"));
  244. ds_send.setColumn(0, "clamno", ds_tmp.getColumn(0, "clamno"));
  245. ds_send.setColumn(0, "openerflag", ds_tmp.getColumn(0, "openerflag"));
  246. ds_send.setColumn(0, "inddepoflag", ds_tmp.getColumn(0, "inddepoflag"));
  247. ds_send.setColumn(0, "rtndd", ds_tmp.getColumn(0, "rtndd"));
  248. ds_temp_depoddbatch.setColumn(0, "depodd", ds_send.getColumn(0, "rtndd"));
  249. CommCode_Load();
  250. }
  251. function CommCode_Load()
  252. {
  253. ds_send.setColumn(0, "openflag", "상한금");
  254. var oParam = {};
  255. oParam.id = "TRPIF30305";
  256. oParam.service = "clamuncoapp.ClamUnco";
  257. oParam.method = "reqGetPsnMaxAmtSrch";
  258. oParam.inds = "req=ds_send";
  259. oParam.outds = "ds_main_pifmiunc=gridpifmiunc";
  260. oParam.async = false;
  261. oParam.callback = "cf_TRPIF30305";
  262. tranf_submit(oParam);
  263. finnonSum();
  264. }
  265. function cf_TRPIF30305(sSvcId, nErrorCode, sErrorMsg)
  266. {
  267. if(nErrorCode < 0)
  268. {
  269. return;
  270. }
  271. else
  272. {
  273. ds_main_pifmiunc.updatecontrol = false;
  274. for(var i = 0; i < ds_main_pifmiunc.rowcount; i++)
  275. {
  276. if(ds_main_pifmiunc.getColumn(i, "chkdepo") != "Y")
  277. {
  278. ds_main_pifmiunc.setColumn(i, "check", "Y");
  279. }
  280. }
  281. ds_main_pifmiunc.updatecontrol = true;
  282. }
  283. }
  284. function finnonSum()
  285. {
  286. var rows = ds_main_pifmiunc.rowcount;
  287. var insumfix = 0; // 입금된 금액
  288. var insum = 0; // 입금할 금액
  289. var nonsum = 0 ; // 미수 금액
  290. for(var i = 0; i < rows; i++)
  291. {
  292. if(ds_main_pifmiunc.getColumn(i, "depoyn") == "Y")
  293. {
  294. if(ds_main_pifmiunc.getColumn(i, "check") != "Y")
  295. {
  296. insumfix = insumfix + ds_main_pifmiunc.getColumn(i, "clownbmaxexamt");
  297. }
  298. else
  299. {
  300. if(ds_main_pifmiunc.getColumn(i, "sendyn") != "Y")
  301. {
  302. insum = insum + ds_main_pifmiunc.getColumn(i, "clownbmaxexamt");
  303. }
  304. }
  305. }
  306. else
  307. {
  308. nonsum = nonsum + ds_main_pifmiunc.getColumn(i, "clownbmaxexamt");
  309. }
  310. }
  311. group3.cp_insumfix.text = insumfix;
  312. group3.cp_insum.text = insum;
  313. group3.cp_nonsum.text = nonsum;
  314. }
  315. function group3_button5_onclick(obj:Button, e:ClickEventInfo)
  316. {
  317. var rows = ds_main_pifmiunc.rowcount;
  318. for(var i = 0; i < rows; i++)
  319. {
  320. if(ds_main_pifmiunc.getColumn(i, "check") == "Y")
  321. {
  322. ds_main_pifmiunc.setColumn(i, "depodd", group3.ipt_depodd.value);
  323. }
  324. }
  325. }
  326. function group3_button6_onclick(obj:Button, e:ClickEventInfo)
  327. {
  328. col = "N";
  329. group3.grd_pifmmiun.selecttype = "multiarea";
  330. }
  331. function group3_button7_onclick(obj:Button, e:ClickEventInfo)
  332. {
  333. col = "Y";
  334. group3.grd_pifmmiun.selecttype = "multiarea";
  335. }
  336. function group3_button8_onclick(obj:Button, e:ClickEventInfo)
  337. {
  338. col = "N";
  339. group3.grd_pifmmiun.selecttype = "multirow";
  340. }
  341. function group3_grd_pifmiunc_oncellclick(obj:Grid, e:GridClickEventInfo)
  342. {
  343. var lv_nAreaStartRow;
  344. var lv_nAreaEndRow;
  345. var lv_nAreaStartCol;
  346. var lv_nAreaEndCol;
  347. if(col == "Y")
  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. grdf_initGridStyle(obj);
  354. for(var nRow = lv_nAreaStartRow; nRow <= lv_nAreaEndRow; nRow++)
  355. {
  356. for(var nCell = lv_nAreaStartCol; nCell <= lv_nAreaEndCol; nCell++)
  357. {
  358. obj.setCellProperty("body",nCell,"background","#FFE7E5");
  359. obj.setCellProperty("body",nCell,"background2","#FFE7E5");
  360. }
  361. }
  362. }
  363. else
  364. {
  365. grdf_initGridStyle(obj);
  366. }
  367. }
  368. function group3_grd_pifmiunc_onkeydown(obj:Grid, e:KeyEventInfo)
  369. {
  370. if(col == "Y")
  371. {
  372. var CONST_SEPARATOR = " "; //컬럼별 구분자
  373. var lv_oBindDs = eval(obj.binddataset);
  374. var lv_sColID;
  375. var lv_sVal;
  376. var lv_sClipboard = "";
  377. var lv_nAreaStartRow;
  378. var lv_nAreaEndRow;
  379. var lv_nAreaStartCol;
  380. var lv_nAreaEndCol;
  381. if(obj.selecttype == "multiarea")
  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. }
  388. for(var nRow = lv_nAreaStartRow; nRow <= lv_nAreaEndRow; nRow++)
  389. {
  390. for(var nCell = lv_nAreaStartCol; nCell <= lv_nAreaEndCol; nCell++)
  391. {
  392. lv_sColID = obj.getCellProperty("body",nCell,"text");
  393. lv_sVal = obj.getCellValue(nRow,nCell);
  394. lv_sClipboard = lv_sClipboard + lv_sVal + CONST_SEPARATOR;
  395. }
  396. lv_sClipboard = lv_sClipboard.substr(0,lv_sClipboard.length-1);
  397. lv_sClipboard = lv_sClipboard +String.fromCharCode(10);
  398. }
  399. lv_sClipboard = lv_sClipboard.substr(0,lv_sClipboard.length-1);
  400. iv_sClipboard = lv_sClipboard;
  401. system.setClipboard("CF_TEXT",lv_sClipboard);
  402. }
  403. else
  404. {
  405. if (e.ctrlKey == true && e.keycode == 67 )
  406. {
  407. grdf_clipboardCopy(obj, "PAM");
  408. }
  409. }
  410. }
  411. function group3_button1_onclick(obj:Button, e:ClickEventInfo)
  412. {
  413. var rows = ds_main_pifmiunc.rowcount;
  414. for(var i = 0; i < rows; i++)
  415. {
  416. if(ds_main_pifmiunc.getColumn(i, "depoyn") == "Y")
  417. {
  418. continue;
  419. }
  420. else
  421. {
  422. ds_main_pifmiunc.setColumn(i, "check", "Y");
  423. group3.grd_pifmiunc.setCellProperty("Body", 4, "edittype", "date");
  424. }
  425. }
  426. finnonSum();
  427. }
  428. function group3_button2_onclick(obj:Button, e:ClickEventInfo)
  429. {
  430. var rows = ds_main_pifmiunc.rowcount;
  431. for(var i = 0; i < rows; i++)
  432. {
  433. if(ds_main_pifmiunc.getColumn(i, "check") != "Y")
  434. {
  435. continue;
  436. }
  437. else
  438. {
  439. ds_main_pifmiunc.setColumn(i, "check", "N");
  440. grdf_setStatus(group3.grd_pifmiunc, "", i);
  441. ds_main_pifmiunc.setColumn(i, "depoyn", "N");
  442. ds_main_pifmiunc.setColumn(i, "depodd", "");
  443. group3.grd_pifmiunc.setCellProperty("Body", 4, "edittype", "none");
  444. }
  445. }
  446. finnonSum();
  447. }
  448. function group3_button4_onclick(obj:Button, e:ClickEventInfo)
  449. {
  450. var today = new Date();
  451. var yy = today.getYear()+"";
  452. var mm = today.getMonth()+1;
  453. var dd = today.getDate();
  454. if(mm < 10)
  455. {
  456. mm = "0" + mm;
  457. }
  458. else
  459. {
  460. mm = mm + "";
  461. }
  462. if(dd < 10)
  463. {
  464. dd = "0" + dd;
  465. }
  466. else
  467. {
  468. dd = dd + "";
  469. }
  470. var tmp = yy + mm + dd;
  471. if (ds_main_pifmiunc.rowcount > 0)
  472. {
  473. grdf_exportExcel(group3.grd_pifmiunc, "개인별상한금관리_"+tmp, "see");
  474. }
  475. else
  476. {
  477. sysf_messageBox("엑셀저장할 내역이", "I004");
  478. }
  479. }
  480. function group1_button3_onclick(obj:Button, e:ClickEventInfo)
  481. {
  482. var rows = ds_main_pifmiunc.rowcount;
  483. var totsum = 0;
  484. var cnt = 0;
  485. for(var i = 0; i <rows; i++)
  486. {
  487. if(ds_main_pifmiunc.getColumn(i, "check") == "Y")
  488. {
  489. cnt++;
  490. if(ds_main_pifmiunc.getColumn(i, "sendyn") != "Y")
  491. {
  492. totsum += Number(ds_main_pifmiunc.getColumn(i, "clownbmaxexamt"));
  493. }
  494. else
  495. {
  496. ds_main_pifmiunc.setColumn(i, "clownbmaxexamt", "0");
  497. }
  498. }
  499. }
  500. // model.setValue("/root/main/list02/gridpifmidep", '');
  501. // model.setValue("/root/main/list02/gridpifmidep", getNodeListCSV(instance1.selectNodes("/root/main/list01/gridpifmiunc[check = 'Y']")));
  502. //
  503. // opener.model.makeNode("/root/main/list02/gridpifmidep");
  504. // opener.model.setValue("/root/main/list02/gridpifmidep",model.getValue("/root/main/list02/gridpifmidep"));
  505. ds_main_pifmiunc.filterstr = "check == 'Y'";
  506. opener.ds_main_list02_gridpifmidep.clearData();
  507. opener.ds_main_list02_gridpifmidep.copyData(ds_main_pifmiunc)
  508. opener.ds_main_list01_gridpifhbsdp.setColumn(ds_send.getColumn(0, "opn_row"), "depoamt", totsum);
  509. opener.ds_main_list01_gridpifhbsdp.setColumn(ds_send.getColumn(0, "opn_row"), "depocnt", cnt);
  510. ds_main_pifmiunc.filterstr = "";
  511. this.close();
  512. }
  513. function group1_btn_cancel_onclick(obj:Button, e:ClickEventInfo)
  514. {
  515. this.close();
  516. }
  517. function ds_main_pifmiunc_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  518. {
  519. if( e.columnid == "check" )
  520. {
  521. obj.setColumn(e.row, "check", (e.newvalue == "Y" || e.newvalue == 1) ? "Y" : "N");
  522. if(e.newvalue == 0)
  523. {
  524. obj.updatecontrol = false;
  525. obj.setRowType(e.row, "1");
  526. obj.updatecontrol = true;
  527. obj.setColumn(e.row, "depodd", "");
  528. obj.setColumn(e.row, "depoyn", "N");
  529. group3.grd_pifmiunc.setCellProperty("Body", 4, "edittype", "none");
  530. }
  531. else
  532. {
  533. group3.grd_pifmiunc.setCellProperty("Body", 4, "edittype", "date");
  534. obj.setRowType(e.row, "4");
  535. if ( obj.getColumn(e.row, "sendyn") != "Y" )
  536. {
  537. obj.setColumn(e.row, "depoyn", "Y");
  538. }
  539. }
  540. finnonSum();
  541. }
  542. }
  543. ]]></Script>
  544. </Form>
  545. </FDL>