1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399 |
- <?xml version="1.0" encoding="utf-8" standalone="no"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMRIS00301" position="absolute 0 0 1195px 780px" titletext="과제별 입출금관리" onload="SMRIS00301_onload">
- <Layouts>
- <Layout>
- <Static id="caption34" class="tit_2" position="absolute 0 450 161 466" text="입출금이력 및 첨부파일"/>
- <Shape id="line3" class="line_10" linetype="horizontal" position="absolute 0 468 430 471" style="font:돋움체,,돋움체;" anchor="default"/>
- <Div id="group2" position="absolute 0 26 430 105" style="font:돋움체,,돋움체;align: top;" class="div_SA">
- <Layouts>
- <Layout>
- <Edit id="input3" class="input_default" taborder="10" visible="true" position="absolute 126 45 308 64" style="" anchor="default" onkeypress="group2_input3_onkeypress" onkeydown="group2_input3_onkeydown" oneditclick="group2_input3_oneditclick"/>
- <Static id="caption2" class="search_name" position="absolute 12 45 125 62" text="과 제 번 호 :" anchor="left top"/>
- <Static id="caption4" class="search_name" position="absolute 12 21 132 38" text="책임 연구원 :" anchor="left top"/>
- <Button id="btn_useid" class="icon_search" taborder="5" position="absolute 314 19 330 35" style="" text="" onclick="group2_btn_useid_onclick" anchor="default"/>
- <Edit id="output1" position="absolute 226 19 307 38" style="" anchor="default" readonly="true" enable="false"/>
- <Edit id="output2" position="absolute 127 19 222 38" style="" anchor="default" readonly="true" enable="false"/>
- <Button id="btn_search" class="btn1" position="absolute 313 44 369 66" style="" text="조회" onclick="group2_btn_search_onclick" anchor="default"/>
- <CheckBox text="종결포함" truevalue="Y" falsevalue="" datacolumn="datacolumn" codecolumn="codecolumn" columncount="-1" rowcount="-1" id="cbx_e" position="absolute 335 19 405 39" style="" anchor="default">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">Y</Col>
- <Col id="datacolumn">종결포함</Col>
- </Row>
- </Rows>
- </Dataset>
- </CheckBox>
- </Layout>
- </Layouts>
- </Div>
- <Shape id="line1" class="line_10" linetype="horizontal" position="absolute 0 128 430 131" anchor="default"/>
- <Grid id="grd_ioamtlist" binddataset="ds_main_ioamtinfo_ioamtlist" class="datagrid2" taborder="21" position="absolute 0 471 430 774" style="font:돋움체,,돋움체;" oncelldblclick="grd_ioamtlist_oncelldblclick" anchor="left top bottom">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="62"/>
- <Column size="81"/>
- <Column size="160"/>
- <Column size="35"/>
- <Column size="71"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- </Columns>
- <Rows>
- <Row size="27" band="head"/>
- <Row size="25"/>
- </Rows>
- <Band id="head">
- <Cell text="업무구분"/>
- <Cell col="1" text="발생일자"/>
- <Cell col="2" text="소분류"/>
- <Cell col="3" text="일련 번호"/>
- <Cell col="4" text="입력자"/>
- <Cell col="5" text="과제 코드"/>
- <Cell col="6"/>
- <Cell col="7" text="파일명"/>
- <Cell col="8" text="파일경로"/>
- <Cell col="9" text="비고"/>
- <Cell col="10" text="amtcd"/>
- </Band>
- <Band id="body">
- <Cell displaytype="combo" style="align:center;" text="bind:bizflag" combodataset="ds_init_bizflaglist" combocodecol="cdid" combodatacol="cdnm"/>
- <Cell col="1" displaytype="date" text="bind:bsdd"/>
- <Cell col="2" style="align:left;" text="bind:acntnm"/>
- <Cell col="3" text="bind:seqno"/>
- <Cell col="4" text="bind:bsnm"/>
- <Cell col="5" text="bind:projcd"/>
- <Cell col="6" text="bind:totamt"/>
- <Cell col="7" text="bind:attfilenm"/>
- <Cell col="8" text="bind:attfilepath"/>
- <Cell col="9" text="bind:bigo"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Edit id="ipt_servcd" enable="false" position="absolute 512 29 617 48" style="background:#ecebecff;" anchor="default"/>
- <Edit id="input5" enable="false" position="absolute 620 29 1192 48" style="background:#ecebecff;" anchor="left top right"/>
- <Static id="cap_goodflagengnm" class="cell_1" position="absolute 992 52 1072 74" style="align:left middle;" text="작성일자"/>
- <Shape id="line4" class="line_10" linetype="horizontal" position="absolute 435 26 1193 29" style="font:돋움체,,돋움체;" anchor="left top right"/>
- <Static id="caption7" class="cell_1" position="absolute 435 29 510 51" style="align:left middle;" text="과 제"/>
- <Shape id="line5" class="line_2" linetype="horizontal" position="absolute 436 50 1170 53" style="font:돋움체,,돋움체;" anchor="default"/>
- <Calendar id="input6" position="absolute 1074 53 1192 72" anchor="left top right" enable="true"/>
- <Static id="caption8" class="cell_1" position="absolute 806 52 886 74" style="align:left middle;" text="책임연구원"/>
- <Edit id="input1" enable="false" position="absolute 889 53 989 72" style="background:#ecebecff;" anchor="default"/>
- <Static id="caption1" class="cell_1" position="absolute 435 52 510 74" style="align:left middle;" text="의뢰기관"/>
- <Edit id="out_reqfirm" class="output_fix" position="absolute 512 53 617 72" style="" anchor="default" readonly="true" enable="false"/>
- <Static id="caption9" class="cell_1" position="absolute 620 52 700 74" style="align:left middle;" text="연구비총액"/>
- <MaskEdit id="out_projamt" class="output_fix" position="absolute 703 53 803 72" style="align:right ;" anchor="default" readonly="true" enable="false" oneditclick="out_projamt_oneditclick" mask="#,###"/>
- <Shape id="line6" class="line_2" linetype="horizontal" position="absolute 435 75 1169 78" style="font:돋움체,,돋움체;" anchor="default"/>
- <Static id="caption3" class="cell_2" position="absolute 435 77 510 99" style="align:left middle;" text="입금액"/>
- <Shape id="line7" class="line_2" linetype="horizontal" position="absolute 435 100 1169 103" style="font:돋움체,,돋움체;" anchor="default"/>
- <Static id="caption5" class="cell_2" position="absolute 620 77 700 99" style="align:left middle;" text="지출액"/>
- <Static id="caption10" class="cell_2" position="absolute 806 77 886 99" style="align:left middle;" text="잔 액"/>
- <MaskEdit id="opt_bstotiamt" class="output_fix" position="absolute 512 78 617 97" style="align:right ;" anchor="default" readonly="true" enable="false" mask="#,###"/>
- <MaskEdit id="opt_bstotoamt" class="output_fix" position="absolute 703 78 803 97" style="align:right ;" anchor="default" readonly="true" enable="false" mask="#,###"/>
- <MaskEdit id="opt_bstotjamt" class="output_fix" position="absolute 889 78 989 97" style="align:right ;" anchor="default" readonly="true" enable="false" mask="#,###"/>
- <Button id="button6" class="btn5" position="absolute 343 448 429 467" style="" text="최종이력내역" onclick="button6_onclick"/>
- <Static id="caption11" class="tit_2" position="absolute 0 110 99 126" style="" text="과제 LIST"/>
- <Button id="button5" class="icon_top" position="absolute 376 108 402 127" style="" text="" onclick="button5_onclick"/>
- <Button id="button8" class="icon_bottom" position="absolute 404 108 430 127" style="" text="" onclick="button8_onclick"/>
- <Grid id="grd_proj" binddataset="ds_main_studyprojinfo_studyprojlist" class="datagrid2" taborder="21" position="absolute 0 131 430 441" style="font:돋움체,,돋움체;" onaftersort="grd_proj_onaftersort" oncelldblclick="grd_proj_oncelldblclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25"/>
- <Column size="42"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="125"/>
- <Column size="263"/>
- <Column size="44"/>
- <Column size="0"/>
- <Column size="0"/>
- </Columns>
- <Rows>
- <Row size="25" band="head"/>
- <Row size="25"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1" text="상태"/>
- <Cell col="2" text="기관코드"/>
- <Cell col="3" text="코드"/>
- <Cell col="4" text="책임연구원"/>
- <Cell col="5" text="과제번호"/>
- <Cell col="6" text="과제명"/>
- <Cell col="7" text="과제 코드"/>
- <Cell col="8" text="과제 코드"/>
- <Cell col="9" text="todd"/>
- </Band>
- <Band id="body">
- <Cell celltype="head"/>
- <Cell col="1" displaytype="combo" style="align:center;" text="bind:status" combodataset="ds_init_status" combocodecol="cdid" combodatacol="cdnm"/>
- <Cell col="2" text="bind:instcd"/>
- <Cell col="3" text="bind:projcd"/>
- <Cell col="4" text="bind:rshid"/>
- <Cell col="5" text="bind:studycd"/>
- <Cell col="6" style="align:left middle;" text="bind:projnm"/>
- <Cell col="7" text="bind:projcd"/>
- <Cell col="8" text="bind:fromdd"/>
- <Cell col="9" text="bind:todd"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Tab id="switch1" position="absolute 435 103 1193 776" style="" anchor="all" onchanged="switch1_onchanged">
- <Tabpages>
- <Tabpage id="case2" position="absolute 0 0 10000 10000" style="" anchor="default" text="최종 이력내역">
- <Layouts>
- <Layout>
- <Grid id="grd_excelioamtlist" binddataset="ds_main_ioamtprint_ioamtprintlist" class="datagrid2" taborder="21" position="absolute 0 3 758 644" style="font:맑은고딕,,맑은고딕;" oncelldblclick="switch1_case2_grd_excelioamtlist_oncelldblclick" anchor="all">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="85"/>
- <Column size="150"/>
- <Column size="85"/>
- <Column size="85"/>
- <Column size="85"/>
- <Column size="85"/>
- <Column size="180"/>
- </Columns>
- <Rows>
- <Row size="25" band="head"/>
- <Row size="25"/>
- <Row size="24" band="summ"/>
- </Rows>
- <Band id="head">
- <Cell text="일시"/>
- <Cell col="1" text="소분류"/>
- <Cell col="2" text="입금액"/>
- <Cell col="3" text="공제금액"/>
- <Cell col="4" text="지출액"/>
- <Cell col="5" text="지출잔액"/>
- <Cell col="6" text="비고"/>
- </Band>
- <Band id="body">
- <Cell displaytype="date" text="bind:bsdd"/>
- <Cell col="1" style="align:left;" text="bind:acntnm"/>
- <Cell col="2" displaytype="number" text="bind:inamt"/>
- <Cell col="3" displaytype="number" text="bind:gongamt"/>
- <Cell col="4" displaytype="number" text="bind:outamt"/>
- <Cell col="5" displaytype="number" text="bind:jamt"/>
- <Cell col="6" style="align:left;" text="bind:bigo"/>
- </Band>
- <Band id="summary">
- <Cell text="합계"/>
- <Cell col="1"/>
- <Cell col="2" displaytype="number" expr="expr:getSum('inamt')"/>
- <Cell col="3" displaytype="number" expr="expr:getSum('gongamt')"/>
- <Cell col="4" displaytype="number" expr="expr:getSum('outamt')"/>
- <Cell col="5" displaytype="number"/>
- <Cell col="6"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Shape id="line8" class="line_10" linetype="horizontal" position="absolute 0 0 758 3" style="font:맑은고딕,,맑은고딕;" anchor="left top right"/>
- </Layout>
- </Layouts>
- </Tabpage>
- <Tabpage id="case4" anchor="default" text="계정과목별내역">
- <Layouts>
- <Layout>
- <Grid id="grd_ioamtgrup" binddataset="ds_main_ioamtgrup_ioamtgrup" class="datagrid2" taborder="21" position="absolute 0 3 758 644" style="font:맑은고딕,,맑은고딕;" anchor="all">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="166"/>
- <Column size="85"/>
- <Column size="85"/>
- <Column size="85"/>
- <Column size="85"/>
- </Columns>
- <Rows>
- <Row size="25" band="head"/>
- <Row size="25"/>
- <Row size="24" band="summ"/>
- </Rows>
- <Band id="head">
- <Cell text="소분류"/>
- <Cell col="1" text="예산액"/>
- <Cell col="2" text="공제금액"/>
- <Cell col="3" text="지출액"/>
- <Cell col="4" text="지출잔액"/>
- </Band>
- <Band id="body">
- <Cell style="align:left;" text="bind:acntnm"/>
- <Cell col="1" displaytype="number" text="bind:inamt"/>
- <Cell col="2" displaytype="number" text="bind:gongamt"/>
- <Cell col="3" displaytype="number" text="bind:outamt"/>
- <Cell col="4" displaytype="number" text="bind:jamt"/>
- </Band>
- <Band id="summary">
- <Cell style="align:left;" text="합계"/>
- <Cell col="1" displaytype="number" expr="expr:getSum('inamt')"/>
- <Cell col="2" displaytype="number" expr="expr:getSum('gongamt')"/>
- <Cell col="3" displaytype="number" expr="expr:getSum('outamt')"/>
- <Cell col="4" displaytype="number"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Shape id="line11" class="line_10" linetype="horizontal" position="absolute 0 0 758 3" style="font:맑은고딕,,맑은고딕;" anchor="left top right"/>
- </Layout>
- </Layouts>
- </Tabpage>
- <Tabpage id="case1" selected="true" anchor="default" text="입출금 상세내역">
- <Layouts>
- <Layout>
- <Grid id="grd_ioamtdlist" binddataset="ds_main_ioamtdinfo_ioamtdlist" class="datagrid2" position="absolute 0 3 758 644" style="" anchor="all">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="150"/>
- <Column size="236"/>
- <Column size="88"/>
- <Column size="250"/>
- <Column size="0"/>
- <Column size="0"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell text="중분류"/>
- <Cell col="1" text="소분류"/>
- <Cell col="2" text="금액"/>
- <Cell col="3" text="비고"/>
- <Cell col="4" text="비고"/>
- <Cell col="5" text="비고"/>
- </Band>
- <Band id="body">
- <Cell style="align:left;" text="bind:lrgnm" suppress="1" suppressalign="middle,over"/>
- <Cell col="1" style="align:left;" text="bind:mdlnm"/>
- <Cell col="2" displaytype="number" edittype="text" text="bind:amt"/>
- <Cell col="3" edittype="text" style="align:left;" text="bind:bigo"/>
- <Cell col="4" text="bind:kind"/>
- <Cell col="5" text="bind:amtcd"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Shape id="line2" class="line_10" linetype="horizontal" position="absolute 0 0 758 3" style="font:맑은고딕,,맑은고딕;" anchor="default"/>
- </Layout>
- </Layouts>
- </Tabpage>
- <Tabpage id="case3" anchor="default" text="문서상세내역">
- <Layouts>
- <Layout>
- <Grid id="grd_attdoculst" binddataset="ds_main_attdoculst_attdoculst" position="absolute 0 3 757 644" style="" oncelldblclick="switch1_case3_grd_attdoculst_oncelldblclick" anchor="all">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="185"/>
- <Column size="489"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell text="일시"/>
- <Cell col="1" text="업무구분"/>
- <Cell col="2" text="파일경로"/>
- <Cell col="3" text="파일명"/>
- <Cell col="4" text="비고"/>
- <Cell col="5" text="보고자ID"/>
- <Cell col="6" text="파일크기"/>
- <Cell col="7" text="filetype"/>
- <Cell col="8" text="projcd"/>
- <Cell col="9" text="seqno"/>
- <Cell col="10" text="kind"/>
- <Cell col="11" text="bizflag"/>
- <Cell col="12" text="amtcd"/>
- <Cell col="13" text="amt"/>
- </Band>
- <Band id="body">
- <Cell text="bind:bsdd"/>
- <Cell col="1" text="bind:bizflag"/>
- <Cell col="2" text="bind:attfilepath"/>
- <Cell col="3" text="bind:attfilenm"/>
- <Cell col="4" text="bind:bigo"/>
- <Cell col="5" text="bind:reportid"/>
- <Cell col="6" text="bind:filesize"/>
- <Cell col="7" text="bind:filetype"/>
- <Cell col="8" text="bind:projcd"/>
- <Cell col="9" text="bind:seqno"/>
- <Cell col="10" text="bind:kind"/>
- <Cell col="11" text="bind:bizflag"/>
- <Cell col="12" text="bind:amtcd"/>
- <Cell col="13" text="bind:amt"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Shape id="line9" class="line_10" linetype="horizontal" position="absolute 0 0 758 3" style="font:맑은고딕,,맑은고딕;" anchor="left top right"/>
- </Layout>
- </Layouts>
- </Tabpage>
- </Tabpages>
- <Shape id="line9" class="line_1" linetype="horizontal" position="absolute 0 0 735 3" style="font:맑은고딕,,맑은고딕;" anchor="default"/>
- </Tab>
- <Static id="caption6" text="과제별 금액관리" class="tit_1" position="absolute 0 0 186 26"/>
- <Button id="btn_excel" class="btn7" visible="false" position="absolute 1130 105 1187 124" style="" text="Excel" onclick="btn_excel_onclick" anchor="top right"/>
- <Button id="btn_down" class="btn2" visible="false" position="absolute 1104 106 1168 125" style="" text="다운로드" onclick="btn_down_onclick" anchor="top right"/>
- <Div id="grp_buttons" taborder="28" position="absolute 777 3 1194 25" anchor="top right">
- <Layouts>
- <Layout width="593" height="15">
- <Button id="button10" taborder="0" text="문서신규" onclick="grp_buttons_button10_onclick" class="btn3" position="absolute 337 0 417 22" anchor="left top"/>
- <Button id="button2" taborder="1" text="비용신규" onclick="grp_buttons_button2_onclick" class="btn3" position="absolute 255 0 335 22" anchor="left top"/>
- <Button id="button1" taborder="2" text="수익신규" onclick="grp_buttons_button1_onclick" class="btn3" position="absolute 173 0 253 22" anchor="left top"/>
- <Button id="button4" taborder="3" text="품의" onclick="grp_buttons_button4_onclick" class="btn4" position="absolute 115 0 171 22" anchor="left top"/>
- <Button id="btn_save" taborder="4" text="저장" onclick="grp_buttons_btn_save_onclick" class="btn4" position="absolute 58 0 114 22" anchor="left top"/>
- <Button id="button3" taborder="5" text="삭제" onclick="grp_buttons_button3_onclick" class="btn4" position="absolute 0 0 56 22" anchor="left top"/>
- </Layout>
- </Layouts>
- </Div>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_hidden_statuslist_status" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="cdnm" type="STRING" size="256"/>
- <Column id="cdid" type="STRING" size="256"/>
- <Column id="cdnm" type="STRING" size="256"/>
- <Column id="cdid" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="cdnm">진행</Col>
- <Col id="cdid">P</Col>
- </Row>
- <Row>
- <Col id="cdnm">종료</Col>
- <Col id="cdid">E</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo/>
- </Dataset>
- <Dataset id="ds_main_attdoculst" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="attdoculst" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="attdoculst"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_ioamtprint" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="ioamtprintlist" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="ioamtprintlist"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_send_searchproj" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="instcd" type="STRING" size="256"/>
- <Column id="studycd" type="STRING" size="256"/>
- <Column id="rshid" type="STRING" size="256"/>
- <Column id="projnm" type="STRING" size="256"/>
- <Column id="rshnm" type="STRING" size="256"/>
- <Column id="estatus" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="instcd"/>
- <Col id="studycd"/>
- <Col id="rshid"/>
- <Col id="projnm"/>
- <Col id="rshnm"/>
- <Col id="estatus"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="status" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="status"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_send_savedata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="ioamtlist" type="STRING" size="256"/>
- <Column id="ioamtlist" type="STRING" size="256"/>
- <Column id="attdoculst" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="ioamtlist"/>
- <Col id="ioamtlist"/>
- <Col id="attdoculst"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_send_searchrephist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="instcd" type="STRING" size="256"/>
- <Column id="projcd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="instcd"/>
- <Col id="projcd"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="reportinfo" type="STRING" size="256"/>
- <Column id="studyprojinfo" type="STRING" size="256"/>
- <Column id="rephistinfo" type="STRING" size="256"/>
- <Column id="repdetlinfo" type="STRING" size="256"/>
- <Column id="ioamtinfo" type="STRING" size="256"/>
- <Column id="ioamtdinfo" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="reportinfo"/>
- <Col id="studyprojinfo"/>
- <Col id="rephistinfo"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_hidden_instlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo/>
- </Dataset>
- <Dataset id="ds_hidden_statuslist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo/>
- </Dataset>
- <Dataset id="ds_init_acntlst" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="acntlst" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="acntlst"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_temp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="temp" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_hidden_ioamt" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="seqno" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="seqno"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_hidden_instlist_inst" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="cdnm" type="STRING" size="256"/>
- <Column id="cdid" type="STRING" size="256"/>
- <Column id="cdnm" type="STRING" size="256"/>
- <Column id="cdid" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="cdnm">본원</Col>
- <Col id="cdid">031</Col>
- </Row>
- <Row>
- <Col id="cdnm">칠곡</Col>
- <Col id="cdid">032</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_ioamtgrup" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="ioamtgrup" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="ioamtgrup"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_send_savedata_attach" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="file" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="file"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="searchreport" type="STRING" size="256"/>
- <Column id="searchrepdetl" type="STRING" size="256"/>
- <Column id="reqdata" type="STRING" size="256"/>
- <Column id="userinfo" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_bizflaglist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="I0012" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="I0012"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_ioamtmain" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="instcd" type="STRING" size="256"/>
- <Column id="bsdd" type="STRING" size="256"/>
- <Column id="projcd" type="STRING" size="256"/>
- <Column id="projnm" type="STRING" size="256"/>
- <Column id="rshid" type="STRING" size="256"/>
- <Column id="rshnm" type="STRING" size="256"/>
- <Column id="reqfirm" type="STRING" size="256"/>
- <Column id="projamt" type="STRING" size="256"/>
- <Column id="bizflag" type="STRING" size="256"/>
- <Column id="studycd" type="STRING" size="256"/>
- <Column id="bstotiamt" type="STRING" size="256"/>
- <Column id="bstotoamt" type="STRING" size="256"/>
- <Column id="bstotjamt" type="STRING" size="256"/>
- <Column id="kind" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="instcd"/>
- <Col id="bsdd"/>
- <Col id="projcd"/>
- <Col id="projnm"/>
- <Col id="rshid"/>
- <Col id="rshnm"/>
- <Col id="reqfirm"/>
- <Col id="projamt"/>
- <Col id="bizflag"/>
- <Col id="studycd"/>
- <Col id="bstotiamt"/>
- <Col id="bstotoamt"/>
- <Col id="bstotjamt"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_studyprojinfo_studyprojlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_init_status" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_main_ioamtinfo_ioamtlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_send_reqdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_main_ioamtprint_ioamtprintlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_main_ioamtgrup_ioamtgrup" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_main_ioamtdinfo_ioamtdlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_main_attdoculst_attdoculst" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_attach_down" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_send_savedata_ioamtlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_ioamt" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_send_attach" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="filenm" type="STRING" size="256"/>
- <Column id="filedata" type="BLOB" size="256"/>
- <Column id="filesize" type="STRING" size="256"/>
- <Column id="filetype" type="STRING" size="256"/>
- <Column id="file" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="group2.input3" propid="value" datasetid="ds_send_searchproj" columnid="studycd"/>
- <BindItem id="item1" compid="group2.output1" propid="value" datasetid="ds_send_searchproj" columnid="rshnm"/>
- <BindItem id="item2" compid="group2.output2" propid="value" datasetid="ds_send_searchproj" columnid="rshid"/>
- <BindItem id="item3" compid="group2.cbx_e" propid="value" datasetid="ds_send_searchproj" columnid="estatus"/>
- <BindItem id="item4" compid="ipt_servcd" propid="value" datasetid="ds_main_ioamtmain" columnid="studycd"/>
- <BindItem id="item5" compid="input5" propid="value" datasetid="ds_main_ioamtmain" columnid="projnm"/>
- <BindItem id="item6" compid="input6" propid="value" datasetid="ds_main_ioamtmain" columnid="bsdd"/>
- <BindItem id="item7" compid="input1" propid="value" datasetid="ds_main_ioamtmain" columnid="rshnm"/>
- <BindItem id="item8" compid="out_reqfirm" propid="value" datasetid="ds_main_ioamtmain" columnid="reqfirm"/>
- <BindItem id="item9" compid="out_projamt" propid="value" datasetid="ds_main_ioamtmain" columnid="projamt"/>
- <BindItem id="item10" compid="opt_bstotiamt" propid="value" datasetid="ds_main_ioamtmain" columnid="bstotiamt"/>
- <BindItem id="item11" compid="opt_bstotoamt" propid="value" datasetid="ds_main_ioamtmain" columnid="bstotoamt"/>
- <BindItem id="item12" compid="opt_bstotjamt" propid="value" datasetid="ds_main_ioamtmain" columnid="bstotjamt"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2017-06-19
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2017-06-19 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- include "com_commonxp::comm_main.xjs";
- include "com_commodulexp::SSZFM00701.xjs"; // tab hidden
- var isUpdated = false;
- var gMaxSize = 10485760;
- var xsendfile = ds_send_attach;
- var studentparam = "";
- function SMRIS00301_onload(obj:Form, e:LoadEventInfo) {
- frmf_initForm(obj);
-
- grdf_initGrid(grd_proj);
- grdf_setToolTipBind(grd_proj);
- grdf_setRowTypeIcon(grd_proj, 0);
-
- grdf_initGrid(grd_ioamtlist);
- grdf_setToolTipBind(grd_ioamtlist);
-
- grdf_initGrid(switch1.case2.grd_excelioamtlist);
- grdf_setToolTipBind(switch1.case2.grd_excelioamtlist);
-
- grdf_initGrid(switch1.case1.grd_ioamtdlist);
- grdf_setToolTipBind(switch1.case1.grd_ioamtdlist);
-
- grdf_initGrid(switch1.case3.grd_attdoculst);
- grdf_setToolTipBind(switch1.case3.grd_attdoculst);
-
- grdf_initGrid(switch1.case4.grd_ioamtgrup);
- grdf_setToolTipBind(switch1.case4.grd_ioamtgrup);
-
- fInit();
- }
- /**
- * _desc : 화면초기화
- *
- * _param :
- * _return :
- * _author : 경북대학교
- * _---------------------------------------------------
- */
- function fInit(){
- var arrParam = [ {dsNm: "ds_init_status", cdGrpId: "I0010" }, // 종결_진행_삭제
- {dsNm: "ds_init_bizflaglist", cdGrpId: "I0012" }]; // 업무구분( 수익, 비용, 첨부)
- appf_getCodeList(arrParam, true );
- if (frmf_isPopup()) {
- var menuparam = opener.frmf_getParameter("SMRIS00301_menuparam");
- var rshid = opener.frmf_getParameter("SMRIS00301_rshid");
- var rshnm = opener.frmf_getParameter("SMRIS00301_rshnm");
- var studycd = opener.frmf_getParameter("SMRIS00301_studycd");
- ds_send_searchproj.setColumn( 0, "rshid", rshid);
- ds_send_searchproj.setColumn( 0, "rshnm", rshnm);
- ds_send_searchproj.setColumn( 0, "studycd", studycd);
- ds_send_searchproj.setColumn( 0, "estatus", "Y" );
- if (menuparam == "P") {
- grp_buttons.visible= false;
- group2.btn_useid.visible= false;
- button6.visible= false;
- lf_setTabPageVisble(switch1, "case1", false);
- lf_setTabPageVisble(switch1, "case3", false);
- studentparam = "P";
- button8.click();
- }
- if (!utlf_isNull(studycd)) {
- fSearch();
- ds_main_studyprojinfo_studyprojlist.rowposition = 0;
- fGetamtmaster();
- }
- }
- group2.cbx_e.value = "Y";
- }
- function fSearch(){
- ds_main_studyprojinfo_studyprojlist.clearData();
- ds_main_ioamtinfo_ioamtlist.clearData();
- ds_main_ioamtdinfo_ioamtdlist.clearData();
- ds_main_attdoculst_attdoculst.clearData();
- var oParam = {};
- oParam.id = "TRRIS00301";
- oParam.service = "ctmsapp.StudyProjMngt";
- oParam.method = "reqGetSPList";
- oParam.inds = "req=ds_send_searchproj";
- oParam.outds = "ds_main_studyprojinfo_studyprojlist=studyprojlist";
- oParam.async = false;
- //oParam.callback = "cf_TRRIS00301";
- tranf_submit(oParam);
- }
- //금액마스터
- function fGetamtmaster() {
- var idx = grd_proj.currentrow;
- ds_main_ioamtmain.copyRow( 0, ds_main_studyprojinfo_studyprojlist, idx);
- dsf_makeValue( ds_send_reqdata, "instcd", "string", ds_main_studyprojinfo_studyprojlist.getColumn(idx, "instcd"));
- dsf_makeValue( ds_send_reqdata, "projcd", "string", ds_main_studyprojinfo_studyprojlist.getColumn(idx, "projcd"));
- dsf_makeValue( ds_send_reqdata, "studentparam", "string", studentparam);
- var totiamt = 0;
- var totoamt = 0;
-
- var oParam = {};
- oParam.id = "TRRIS00302";
- oParam.service = "ctmsapp.StudyProjMngt";
- oParam.method = "reqGetAMTList";
- oParam.inds = "req=ds_send_reqdata";
- oParam.outds = "ds_main_ioamtinfo_ioamtlist=ioamtlist";
- oParam.async = false;
- //oParam.callback = "cf_TRRIS00302";
- tranf_submit(oParam);
- // 입금액, 지출액 계산 2013.05.23 cyw
- for( var i = 0; i < ds_main_ioamtinfo_ioamtlist.rowcount ; i++ ){
- if( ds_main_ioamtinfo_ioamtlist.getColumn(i, "bizflag") == "I" ){
- totiamt = totiamt + parseInt(ds_main_ioamtinfo_ioamtlist.getColumn(i, "totamt"));
- }
- if( ds_main_ioamtinfo_ioamtlist.getColumn(i, "bizflag") == "O" ){
- totoamt = totoamt + parseInt(ds_main_ioamtinfo_ioamtlist.getColumn(i, "totamt"));
- }
- }
- dsf_makeValue( ds_main_ioamtmain, "bstotiamt", "string", totiamt );
- dsf_makeValue( ds_main_ioamtmain, "bstotoamt", "string", totoamt );
- dsf_makeValue( ds_main_ioamtmain, "bstotjamt", "string", totiamt-totoamt );
-
- if (studentparam == "P") {
- button6.click();
- }
- var master = "event";
- fGetamtdetail(master); //입출금 상세내역 & 첨부파일 상세내역
- MdlLst(); // 첨부파일 중분류값 조회
- }
- function MdlLst(){
- dsf_makeValue( ds_main_ioamtmain, "seqno", "string", "");
- dsf_makeValue( ds_main_ioamtmain, "bsdd", "string", utlf_getCurrentDate());
- ds_send_reqdata.clearData();
- dsf_makeValue( ds_send_reqdata, "kind", "string", ds_main_ioamtmain.getColumn(0, "kind"));
- dsf_makeValue( ds_send_reqdata, "bsdd", "string", ds_main_ioamtmain.getColumn(0, "bsdd"));
- var oParam = {};
- oParam.id = "TRRIS00309";
- oParam.service = "ctmsapp.StudyProjMngt";
- oParam.method = "reqGetMdlLst";
- oParam.inds = "req=ds_send_reqdata";
- oParam.outds = "ds_init_acntlst=acntlst";
- oParam.async = false;
- //oParam.callback = "cf_TRRIS00309";
- tranf_submit(oParam);
- }
- function fDelMaster(bizflag){
- if( bizflag != "A"){
- var projcd = ds_main_ioamtmain.getColumn(0, "projcd");
- var bizflag = ds_main_ioamtmain.getColumn(0, "bizflag");
- var seqno = ds_main_ioamtmain.getColumn(0, "seqno");
- }
- else{
- var projcd = ds_main_attdoculst_attdoculst.getColumn(0, "projcd");
- var bizflag = ds_main_attdoculst_attdoculst.getColumn(0, "bizflag");
- var seqno = ds_main_attdoculst_attdoculst.getColumn(0, "seqno");
- }
- dsf_makeValue( ds_send_reqdata, "projcd", "string", projcd);
- dsf_makeValue( ds_send_reqdata, "bizflag", "string", bizflag);
- dsf_makeValue( ds_send_reqdata, "seqno", "string", seqno);
- if (utlf_isNull(projcd)) {
- return;
- }
- if (utlf_isNull(bizflag)) {
- return;
- }
- if (utlf_isNull(seqno)) {
- sysf_messageBox("삭제대상이 아닙니다","I");
- return;
- }
- var vbYes = sysf_messageBox("삭제 하시겠습니까?", "Q999");
- if(vbYes != 6){
- return;
- }
- var oParam = {};
- oParam.id = "TXRIS00302";
- oParam.service = "ctmsapp.StudyProjMngt";
- oParam.method = "reqDelAMTList";
- oParam.inds = "req=ds_send_reqdata attdoculst=ds_temp attach=ds_temp";
- oParam.outds = "ds_ioamt=ioamt";
- oParam.async = false;
- //oParam.callback = "cf_TXRIS00302";
- tranf_submit(oParam);
- var cnt = ds_ioamt.getColumn(0, "cnt");
- if (cnt > 0) {
- sysf_messageBox("정상적으로 삭제되었습니다!","I999");
- ds_main_attdoculst_attdoculst.clearData();
- }
- fGetamtmaster();
- }
- //금액 detail
- function fGetamtdetail(bizflag) {
- var idx = grd_ioamtlist.currentrow;
- var projcd = ds_main_ioamtinfo_ioamtlist.getColumn(idx, "projcd");
- var bizflag = ds_main_ioamtinfo_ioamtlist.getColumn(idx, "bizflag");
- var seqno = ds_main_ioamtinfo_ioamtlist.getColumn(idx, "seqno");
- var kind = ds_main_ioamtinfo_ioamtlist.getColumn(idx, "kind");
- var bsdd = ds_main_ioamtinfo_ioamtlist.getColumn(idx, "bsdd");
- var instcd = ds_main_ioamtinfo_ioamtlist.getColumn(idx, "instcd");
- var status = ds_main_ioamtinfo_ioamtlist.getColumn(idx, "status");
- //var studycd = ds_main_ioamtinfo_ioamtlist.getColumn(idx, "studycd");
- if (utlf_isNull(bsdd)) {
- bsdd = utlf_getCurrentDate();
- }
- dsf_makeValue( ds_main_ioamtmain, "bsdd", "string", utlf_getCurrentDate());
- dsf_makeValue( ds_main_ioamtmain, "bizflag", "string", bizflag);
- dsf_makeValue( ds_main_ioamtmain, "seqno", "string", seqno);
- dsf_makeValue( ds_main_ioamtmain, "status", "string", status);
- dsf_makeValue( ds_send_reqdata, "instcd", "string", instcd);
- dsf_makeValue( ds_send_reqdata, "projcd", "string", projcd);
- dsf_makeValue( ds_send_reqdata, "bizflag", "string", bizflag);
- dsf_makeValue( ds_send_reqdata, "seqno", "string", seqno);
- dsf_makeValue( ds_send_reqdata, "kind", "string", kind);
- dsf_makeValue( ds_send_reqdata, "status", "string", status);
- //dsf_makeValue( ds_send_reqdata, "bsdd", "string", bsdd);
- if (bizflag == "A") {
- var oParam = {};
- oParam.id = "TRRIS00310";
- oParam.service = "ctmsapp.StudyProjMngt";
- oParam.method = "reqGetBedSoreFileList";
- oParam.inds = "req=ds_send_reqdata";
- oParam.outds = "ds_main_attdoculst_attdoculst=attdoculst";
- oParam.async = false;
- //oParam.callback = "cf_TRRIS00310";
- tranf_submit(oParam);
- } else {
- var oParam = {};
- oParam.id = "TRRIS00303";
- oParam.service = "ctmsapp.StudyProjMngt";
- oParam.method = "reqGetAMTdList";
- oParam.inds = "req=ds_send_reqdata";
- oParam.outds = "ds_main_ioamtdinfo_ioamtdlist=ioamtdlist";
- oParam.async = false;
- //oParam.callback = "cf_TRRIS00303";
- tranf_submit(oParam);
- }
- }
- function fNewDetail(bizflag){
- dsf_makeValue( ds_main_ioamtmain, "bizflag", "string", bizflag);
- dsf_makeValue( ds_main_ioamtmain, "seqno", "string", "");
- if (bizflag == "I" || bizflag == "O") {
- switch1.tabindex = 2;
- ds_send_reqdata.clearData();
- dsf_makeValue( ds_send_reqdata, "kind", "string", ds_main_ioamtmain.getColumn(0, "kind"));
- dsf_makeValue( ds_send_reqdata, "bsdd", "string", ds_main_ioamtmain.getColumn(0, "bsdd"));
- dsf_makeValue( ds_send_reqdata, "bizflag", "string", bizflag);
- dsf_makeValue( ds_send_reqdata, "projcd", "string", "");
- dsf_makeValue( ds_send_reqdata, "seqno", "string", "");
- var oParam = {};
- oParam.id = "TRRIS00313";
- oParam.service = "ctmsapp.StudyProjMngt";
- oParam.method = "reqGetAMTdBase";
- oParam.inds = "req=ds_send_reqdata";
- oParam.outds = "ds_main_ioamtdinfo_ioamtdlist=ioamtdlist";
- oParam.async = false;
- //oParam.callback = "cf_TRRIS00313";
- tranf_submit(oParam);
- } else if (bizflag=="A") {
- switch1.tabindex = 3;
- ds_send_attach.clearData();
- ds_send_attach.addRow();
-
- ds_main_attdoculst_attdoculst.clearData();
- ds_main_attdoculst_attdoculst.addRow();
-
- var xreqdesc = ds_main_attdoculst_attdoculst;
- //var maxsize = switch1.case3.upload1.attribute("filesize");
- //파일을 받아오기 위해 파일열기 팝업창을 띄운다.
- var fd = new FileDialog;
- var fileopen = fd.open("첨부 할 파일을 선택하여 주십시오.", FileDialog.LOAD);
- var filename = fileopen.filename;
- dsf_makeValue( xreqdesc, "attfilenm", "string", filename);
- dsf_makeValue( xreqdesc, "bsdd", "string", ds_main_ioamtmain.getColumn(0, "bsdd"));
- dsf_makeValue( xreqdesc, "projcd", "string", ds_main_ioamtmain.getColumn(0, "projcd"));
- dsf_makeValue( xreqdesc, "kind", "string", ds_main_ioamtmain.getColumn(0, "kind"));
- dsf_makeValue( xreqdesc, "bigo", "string", "");
- dsf_makeValue( xreqdesc, "bizflag", "string", bizflag);
- dsf_makeValue( xreqdesc, "amtcd", "string", "-");
- dsf_makeValue( xreqdesc, "amt", "INT", 0);
- //선택한 파일이 저장버튼을 눌렀을때 저장이 되게 하기 위해 파일 저장 인스턴스에 파일주소를 저장해 둔다.
- var objFileinfo = dsf_writeFileToDs(fileopen, xsendfile, 0, "filedata");
- xsendfile.setColumn(0, "filenm", objFileinfo.filename);
- xsendfile.setColumn(0, "filesize", objFileinfo.filesize);
- xsendfile.setColumn(0, "filetype", objFileinfo.filetype);
- //파일 크기가 너무 큰경우 메세지를 띄운다.
- if (!checkFileSize(objFileinfo.filesize)){
- xsendfile.setColumn(0, "file", "");
- sysf_messageBox("파일 크기가 최대치(" + gMaxSize + "Byte)를", "E003");
- xsendfile.clearData();
- }
- }
- }
- function fSetUserinfo(){
- var rtn = appf_openUserInfoList("usernm");
- var userinfo = rtn.userInfo;
-
- if (!utlf_isNull(userinfo)) {
- userinfo = userinfo.split("|");
- var rshid = userinfo[2];
- var rshnm = userinfo[3];
- ds_send_searchproj.setColumn( 0, "rshid", rshid);
- ds_send_searchproj.setColumn( 0, "rshnm", rshnm);
- }
- }
- function fSave(flag) {
- var projcd = ds_main_ioamtmain.getColumn(0, "projcd");
- var bsdd = ds_main_ioamtmain.getColumn(0, "bsdd");
- var seqno = ds_main_ioamtmain.getColumn(0, "seqno");
- var bizflag = ds_main_ioamtmain.getColumn(0, "bizflag");
- var status = ds_main_ioamtmain.getColumn(0, "status");
- var kind = ds_main_ioamtmain.getColumn(0, "kind");
- dsf_makeValue( ds_send_savedata_ioamtlist, "bsdd", "string", bsdd);
- dsf_makeValue( ds_send_savedata_ioamtlist, "projcd", "string", projcd);
- dsf_makeValue( ds_send_savedata_ioamtlist, "bizflag", "string", bizflag);
- dsf_makeValue( ds_send_savedata_ioamtlist, "seqno", "string", seqno);
- dsf_makeValue( ds_send_savedata_ioamtlist, "status", "string", status);
- dsf_makeValue( ds_send_savedata_ioamtlist, "kind", "string", kind);
- if (flag=="IO") {
- // 입출금 상세내역
- if (ds_main_ioamtdinfo_ioamtdlist.rowcount == 0 ) {
- return;
- }
- for (i=0; i<ds_main_ioamtdinfo_ioamtdlist.rowcount; i++) {
- var arrPostion = new Array();
- arrPostion[0] = i;
- grdf_setStatus(switch1.case1.grd_ioamtdlist, "I", arrPostion);
- }
- }
- else if (flag=="A") {
- // 문서등록내역
- if (ds_main_attdoculst_attdoculst.rowcount == 0 ) {
- return;
- }
- for (i=0; i < ds_main_attdoculst_attdoculst.rowcount ; i++) {
- var arrPostion = new Array();
- arrPostion[0] = i;
- grdf_setStatus(switch1.case3.grd_attdoculst, "I", arrPostion);
- }
- var seqno = ds_main_attdoculst_attdoculst.getColumn(0, "seqno");
- if (!utlf_isNull(seqno)) {
- sysf_messageBox("자료수정은 불가합니다","I");
- return;
- }
- }
- var oParam = {};
- oParam.id = "TXRIS00301";
- oParam.service = "ctmsapp.StudyProjMngt";
- oParam.method = "reqExeAMTList";
- oParam.inds = "ioamtlist=ds_send_savedata_ioamtlist ioamtdlist=ds_main_ioamtdinfo_ioamtdlist:U attdoculst=ds_main_attdoculst_attdoculst:U attach=ds_send_attach";
- oParam.outds = "ds_ioamt=ioamt";
- oParam.async = false;
- //oParam.callback = "cf_TXRIS00301";
- tranf_submit(oParam);
- fGetamtmaster();
- }
- //
- function fDownLoad(flag) {
- if(utlf_isNull(ds_main_attdoculst_attdoculst.getColumn(0, "seqno"))) {
- return;
- }
- if(utlf_isNull(ds_main_attdoculst_attdoculst.getColumn(0, "attfilenm"))) {
- sysf_messageBox("다운로드 할 파일을 ", "C002");
- return;
- }
- //파일명를 받아옴
- var getfilenm = ds_main_attdoculst_attdoculst.getColumn(0, "attfilenm");
- var getfilepath = ds_main_attdoculst_attdoculst.getColumn(0, "attfilepath");
- dsf_makeValue( ds_send_reqdata, "attfilenm", "string", getfilenm );
- dsf_makeValue( ds_send_reqdata, "attfilepath", "string", getfilepath );
- //파일명이 있는 경우 다운로드
- if(!utlf_isNull(getfilenm)){
- //파일명을 받아옴
- var filenm = getfilenm;
- //파일명의 확장자만 받아옴
- var fileext = filenm.lastIndexOf(".");
- var ext = filenm.substring(fileext +1);
- //파일을 다운로드 하기 위해 저장할 창을 띄움
- var fd = new FileDialog;
- var filesave = fd.open("다운 받을 위치를 선택하여 주십시오.", FileDialog.SAVE, "", filenm);
-
- //키값을 가지고 DB에 저장된 데이타를 조회하러 간다
- if (!utlf_isNull(filesave)) {
- var oParam = {};
- oParam.id = "TRRIS00206";
- oParam.service = "ctmsapp.StudyProjMngt";
- oParam.method = "reqExeFileDownLoad";
- oParam.inds = "req=ds_send_reqdata";
- oParam.outds = "ds_attach_down=filelist";
- oParam.async = false;
- //oParam.callback = "cf_TRRIS00206";
- tranf_submit(oParam);
-
- if (filesave != null) {
- dsf_readFileFromDs(filesave.fullpath, ds_attach_down, 0, "attfilecnts"); // 파일저장
- }
- }
- }
- }
- function grp_buttons_button3_onclick(obj:Button, e:ClickEventInfo) {
- if( switch1.tabindex == 3 ){
- fDelMaster("A");
- }else{
- fDelMaster("IO");
- }
- }
- function grp_buttons_btn_save_onclick(obj:Button, e:ClickEventInfo) {
- var flag = "IO";
- if (switch1.tabindex == 3 ) {
- flag = "A";
- }
- fSave(flag);
- }
- function grp_buttons_button4_onclick(obj:Button, e:ClickEventInfo) {
- sysf_messageBox("준비중입니다","I999");
- }
- function grp_buttons_button10_onclick(obj:Button, e:ClickEventInfo) {
- ds_main_attdoculst_attdoculst.clearData();
- ds_main_attdoculst_attdoculst.addRow();
- var bizflag = "A" ;
- fNewDetail(bizflag);
- }
- function grp_buttons_button1_onclick(obj:Button, e:ClickEventInfo) {
- var bizflag = 'I' ;
- fNewDetail(bizflag);
- }
- function grp_buttons_button2_onclick(obj:Button, e:ClickEventInfo) {
- var bizflag = 'O' ;
- fNewDetail(bizflag);
- }
- function group2_btn_useid_onclick(obj:Button, e:ClickEventInfo) {
- fSetUserinfo();
- }
- function group2_btn_search_onclick(obj:Button, e:ClickEventInfo) {
- fSearch();
- }
- function grd_ioamtlist_oncelldblclick(obj:Grid, e:GridClickEventInfo) {
-
- var bizflag = ds_main_ioamtinfo_ioamtlist.getColumn(e.row , "bizflag");
- if (bizflag == "A") {
- btn_excel.visible = false;
- if(e.row != -1){
- fGetamtdetail("A");
- switch1.tabindex = 3;
- }
- } else {
- btn_excel.visible = false;
- if(e.row != -1){
- fGetamtdetail();
- switch1.tabindex = 2;
- }
- }
- }
- function button6_onclick(obj:Button, e:ClickEventInfo) {
- btn_excel.visible = true;
- dsf_makeValue( ds_send_reqdata, "instcd", "string", ds_main_studyprojinfo_studyprojlist.getColumn(grd_proj.currentrow, "instcd"));
- dsf_makeValue( ds_send_reqdata, "projcd", "string", ds_main_studyprojinfo_studyprojlist.getColumn(grd_proj.currentrow, "projcd"));
- var oParam = {};
- oParam.id = "TRRIS00305";
- oParam.service = "ctmsapp.StudyProjMngt";
- oParam.method = "reqGetCtmsAmtPrintList";
- oParam.inds = "req=ds_send_reqdata";
- oParam.outds = "ds_main_ioamtprint_ioamtprintlist=ioamtprintlist";
- oParam.async = false;
- //oParam.callback = "cf_TRRIS00305";
- tranf_submit(oParam);
- switch1.tabindex = 0;
- }
- function btn_excel_onclick(obj:Button, e:ClickEventInfo) {
- var sTitle = "최종 입출금 이력 리스트";
- if (ds_main_ioamtprint_ioamtprintlist.rowcount > 0) {
- grdf_exportExcel(switch1.case2.grd_excelioamtlist, sTitle , "see");
- }else{
- sysf_messageBox("엑셀저장할 내역이", "I004");
- }
- }
- //
- // function btn_comps_onclick(obj:Button, e:ClickEventInfo) {
- //
- // btn_excel.visible = false;
- // if(grd_ioamtlist.row != ""){
- // fGetamtdetail();
- // }
- //
- // //model.refresh();
- //
- // }
- //
- // function button7_onclick(obj:Button, e:ClickEventInfo) {
- //
- // btn_excel.visible = true;
- // button6.dispatch("DOMActivate");
- //
- // //model.refresh();
- //
- // }
- function button5_onclick(obj:Button, e:ClickEventInfo) {
- button6.position.y = "448";
- button6.position.x = "343";
- grd_proj.position.height = "310";
- }
- function button8_onclick(obj:Button, e:ClickEventInfo) {
- button6.position.y = "108";
- button6.position.x = "288";
- grd_proj.position.bottom = grd_ioamtlist.position.bottom;
- }
- function grd_proj_oncelldblclick(obj:Grid, e:GridClickEventInfo) {
- fGetamtmaster();
- ds_send_savedata_attach.clearData();
- }
- //
- // function btn_docu_onclick(obj:Button, e:ClickEventInfo) {
- //
- // btn_excel.visible = false;
- // if(switch1.case3.grd_attdoculst.row != ""){
- // fGetamtdetail("A");
- // }
- //
- // //model.refresh();
- //
- // }
- //
- function switch1_case2_grd_excelioamtlist_oncelldblclick(obj:Grid, e:GridClickEventInfo) {
- fGetamtdetail();
- }
- function switch1_case3_grd_attdoculst_oncelldblclick(obj:Grid, e:GridClickEventInfo) {
- fDownLoad();
- }
- //
- // function btn_down_onclick(obj:Button, e:ClickEventInfo) {
- //
- // for( i = 0; i < switch1.case3.grd_attdoculst.rows; i++){
- // if( ds_main_attdoculst_attdoculst.getColumn(i, "check") == "Y" ){
- // // alert("check");
- // var filepath = ds_main_attdoculst_attdoculst.getColumn(i, "filepath");
- // var filenm = ds_main_attdoculst_attdoculst.getColumn(i, "filenm");
- // var realfile = getActionURL("TRRIS00311") + "&filepath=" + filepath;
- // // alert("filepath : "+filepath);
- // // alert("filenm : "+filenm);
- // var localfile = window.fileDialog("save", "|", false, filenm, "", "All Files(*.*)|*.*");
- // if (localfile != "") {
- // model.download(realfile, localfile);
- // window.exec(localfile);
- // }
- // }
- // }
- //
- // }
- function group2_input3_onkeydown(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13) {
- group2.btn_search.setFocus();
- group2.btn_search.click();
- }
- }
- function switch1_onchanged(obj:Tab, e:TabIndexChangeEventInfo)
- {
- if (e.postindex == 0) {
- button6.click();
- } else if (e.postindex == 1) {
- btn_excel.visible = true;
- dsf_makeValue( ds_send_reqdata, "instcd", "string", ds_main_studyprojinfo_studyprojlist.getColumn(grd_proj.row, "instcd"));
- dsf_makeValue( ds_send_reqdata, "projcd", "string", ds_main_studyprojinfo_studyprojlist.getColumn(grd_proj.row, "projcd"));
- var oParam = {};
- oParam.id = "TRRIS00312";
- oParam.service = "ctmsapp.StudyProjMngt";
- oParam.method = "reqGetCtmsAmtGrupList";
- oParam.inds = "req=ds_send_reqdata";
- oParam.outds = "ds_main_ioamtgrup_ioamtgrup=ioamtgrup";
- oParam.async = false;
- //oParam.callback = "cf_TRRIS00312";
- tranf_submit(oParam);
- } else if (e.postindex == 2) {
- btn_excel.visible = false;
- if(grd_ioamtlist.currentrow != -1){
- fGetamtdetail();
- }
-
- } else if (e.postindex == 3) {
- btn_excel.visible = false;
- if(grd_ioamtlist.currentrow != -1){
- fGetamtdetail("A");
- }
- }
- }
- function checkFileSize(fileSize)
- {
- if (fileSize <= gMaxSize)
- return true;
- else
- return false;
- }
- function out_projamt_oneditclick(obj:MaskEdit, e:EditClickEventInfo)
- {
-
- }
- ]]></Script>
- </Form>
- </FDL>
|