123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMRAD01900" position="absolute 0 0 1200 785" titletext="지출번호수정" oninit="SMRAD01900_oninit" onload="SMRAD01900_onload">
- <Layouts>
- <Layout>
- <Div position="absolute 0 0 1195 23" id="group1">
- <Layouts>
- <Layout>
- <Static text="지출번호수정" position="absolute 0 0 115 23" id="caption6" class="tit_1" anchor="default"/>
- </Layout>
- </Layouts>
- </Div>
- <Div position="absolute 0 38 1195 782" id="group2" scrollbars="autoboth">
- <Layouts>
- <Layout>
- <Shape id="roundrect1" type="roundrectangle" position="absolute 0 10 1194 45"/>
- <Button position="absolute 663 17 719 39" id="btn_search" class="btn1" text="조회" onclick="group2_btn_search_onclick"/>
- <Shape position="absolute 0 74 1192 80" linetype="horizontal" id="line1" class="line_10"/>
- <Combo position="absolute 108 18 240 37" id="cmb_instcd" class="combo_s_essential" enable="false"/>
- <Static text="기관 :" position="absolute 52 19 113 36" id="caption2" class="search_name"/>
- <Grid position="absolute 0 79 1192 732" id="grd_grntpsn1" binddataset="ds_main_grnt_grntlist2">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="20" band="left"/>
- <Column size="89"/>
- <Column size="119"/>
- <Column size="379"/>
- <Column size="118"/>
- <Column size="107"/>
- <Column size="64"/>
- <Column size="277"/>
- <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/>
- <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="caption1"/>
- <Cell col="9" text="caption2"/>
- <Cell col="10" text="caption3"/>
- <Cell col="11" text="caption4"/>
- <Cell col="12" text="caption5"/>
- </Band>
- <Band id="body">
- <Cell celltype="head"/>
- <Cell col="1" displaytype="combo" style="align:center;" text="bind:gubun" combodataset="ds_gubun" combocodecol="value" combodatacol="label" enable="false"/>
- <Cell col="2" text="bind:pumno"/>
- <Cell col="3" style="align:left;" text="bind:rmrk"/>
- <Cell col="4" displaytype="number" text="bind:keumak" mask="#,###"/>
- <Cell col="5" displaytype="date" text="bind:ymdgive" calendardisplaynulltype="none"/>
- <Cell col="6" displaytype="text" edittype="mask" style="align:center;" text="bind:flagseq" mask="99999" maskchar=" " edittrimtype="both" editautoselect="true"/>
- <Cell col="7" displaytype="text" edittype="mask" text="bind:pjid" mask="99999" maskchar=" " edittrimtype="both" editautoselect="true"/>
- <Cell col="8" text="bind:ymdwrite"/>
- <Cell col="9" text="bind:seqwrite"/>
- <Cell col="10" text="bind:flagseqold"/>
- <Cell col="11" text="bind:fromdd"/>
- <Cell col="12" text="bind:todd"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Calendar position="absolute 355 18 470 37" align="align:center middle;" id="ipt_unsldd" class="input_s_essential" taborder="1"/>
- <Static text="지급일자 :" position="absolute 275 19 361 36" id="caption5" class="search_name"/>
- <Calendar position="absolute 495 18 605 37" align="align:center middle;" id="input17" class="input_s_essential" taborder="2"/>
- <Static text="품의기표내역" position="absolute 0 57 131 73" id="caption1" class="tit_2"/>
- <Static text="~" position="absolute 477 19 497 39" align="align:center middle;" id="caption3"/>
- <Button position="absolute 1129 54 1193 73" align="align:left middle;" id="button4" class="btn2" text="엑셀출력" onclick="group2_button4_onclick"/>
- <Shape position="absolute 643 17 649 39" linetype="vertical" id="line13" class="line_4" visible="false"/>
- </Layout>
- </Layouts>
- </Div>
- <Div position="absolute 0 17 1195 49" id="grp_btn" scrollbars="autoboth">
- <Layouts>
- <Layout>
- <Button position="absolute 1139 3 1195 25" id="button36" class="btn4" text="저장" anchor="default" onclick="grp_btn_button36_onclick"/>
- <Button position="absolute 1069 3 1137 25" id="button35" class="btn4" visible="false" text="초기화" anchor="default" onclick="grp_btn_button35_onclick"/>
- <Shape position="absolute 0 24 1195 30" linetype="horizontal" id="line9" class="line_6" anchor="default"/>
- <Button position="absolute 1020 5 1063 24" id="button3" class="btn2" visible="false" text="출력" anchor="default" onclick="grp_btn_button3_onclick"/>
- </Layout>
- </Layouts>
- </Div>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_send_paydedu" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_send_paydedu_oncolumnchanged">
- <ColumnInfo>
- <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
- <Column id="fromdd" type="STRING" size="256" sumtext="시작일자"/>
- <Column id="todd" type="STRING" size="256" sumtext="종료일자"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_grnt_grntlist2" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="status" type="STRING" size="256"/>
- <Column id="gubun" type="STRING" size="256" sumtext="지급구분"/>
- <Column id="pumno" type="STRING" size="256" sumtext="품의번호"/>
- <Column id="rmrk" type="STRING" size="256" sumtext="적요"/>
- <Column id="keumak" type="STRING" size="256" sumtext="지급대상금액"/>
- <Column id="ymdgive" type="STRING" size="256" sumtext="지급일"/>
- <Column id="flagseq" type="STRING" size="256" sumtext="번호"/>
- <Column id="pjid" type="STRING" size="256" sumtext="프로젝트"/>
- <Column id="ymdwrite" type="STRING" size="256" sumtext="작성일자"/>
- <Column id="seqwrite" type="STRING" size="256" sumtext="지출번호"/>
- <Column id="flagseqold" type="STRING" size="256" sumtext="이전번호"/>
- <Column id="fromdd" type="STRING" size="256" sumtext="시작일자"/>
- <Column id="todd" type="STRING" size="256" sumtext="종료일자"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_hidden_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="pumno" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_gubun" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="label" type="STRING" size="256"/>
- <Column id="value" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="label">구매</Col>
- <Col id="value">A</Col>
- </Row>
- <Row>
- <Col id="label">품의</Col>
- <Col id="value">B</Col>
- </Row>
- <Row>
- <Col id="label">일반</Col>
- <Col id="value">C</Col>
- </Row>
- </Rows>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="group2.cmb_instcd" propid="value" datasetid="ds_send_paydedu" columnid="instcd"/>
- <BindItem id="item1" compid="group2.ipt_unsldd" propid="value" datasetid="ds_send_paydedu" columnid="fromdd"/>
- <BindItem id="item2" compid="group2.input17" propid="value" datasetid="ds_send_paydedu" columnid="todd"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name : 경대 의료정보시스템
- * Job Name : mis_slipxp -> SMRAD01900
- * Creator : yjh
- * Make Date : 2018-03-16
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2018-03-16 yjh TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- //=======================================================================================
- // Lib Include
- //---------------------------------------------------------------------------------------
- include "com_commonxp::comm_main.xjs";
- include "mis_miscommonxp::MIS.xjs";
- //=======================================================================================
- // Global Form Variable
- //---------------------------------------------------------------------------------------
- //=======================================================================================
- // Function
- //---------------------------------------------------------------------------------------
- function fOpenPopupDeptHelp(pControl, pInstance)
- {
- misfOpenPopUpList("02", pControl, "", pInstance);
- model.refresh();
- }
- function fOpenPopupHelp(pHelper, pControl, pInstance, pCdgrupid, pValueControl, pNodeName)
- {
- misfOpenPopUpList(pHelper, pControl, pCdgrupid, pInstance, pValueControl, pNodeName);
- model.refresh();
- }
- function initialize(){
- misfGridInit(group2.grd_grntpsn1);
- misfMsterDetailSet("group2.grd_grntpsn1",null, "TRRAD01901" ,"Y");
-
- var curdate = utlf_getCurrentDate();
-
- group2.cmb_instcd.value = sysf_getUserInfo("dutplceinstcd");
- var deptcd = sysf_getUserInfo("dutplcecd");
- var deptnm = sysf_getUserInfo("dutplcenm");
- //var emplno = getUserInfo("userid");
- //var emplnm = getUserInfo("usernm");
- misfComboInstCdListMulti("group2.cmb_instcd",utlf_getCurrentDate(),"","N");
- //misfComboComCdListMulti("R0001","grd_grntpsn1.bankcode");
- }
- function Popup(){
- var ymd = model.getValue("/root/main/grnt/grntlist1/junpyodate");
- var mdeptcd = model.getValue("/root/main/grnt/grntlist1/makedeptcd");
- var ydeptcd = model.getValue("/root/main/grnt/grntlist1/yogudeptcd");
- if (ymd != "" && mdeptcd != "" && ydeptcd != ""){
- model.setValue("/root/popdata/junpyodate", ymd);
- model.setValue("/root/popdata/makedeptcd", mdeptcd);
- model.setValue("/root/popdata/yogudeptcd", ydeptcd);
- model.setValue("/root/popdata/pumgubun", "3");
- modal("SPRAD00400", "", "", "", "SPRAD00400","/root/popdata","/root/popdata");
- }
- }
- //=======================================================================================
- // Event
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Components : Form
- * Components ID : SMRAD01900
- * Event : oninit
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 처음 초기화시
- ****************************************************************************************/
- function SMRAD01900_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj); //폼 초기화
- }
- /****************************************************************************************
- * Components : Form
- * Components ID : SMRAD01900
- * Event : onload
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 로딩 완료시
- ****************************************************************************************/
- function SMRAD01900_onload(obj:Form, e:LoadEventInfo)
- {
- grdf_setRowTypeIcon(group2.grd_grntpsn1, 0);
- grdf_setGridSort(group2.grd_grntpsn1);
-
- initialize();
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_search
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 조회버튼 클릭시
- ****************************************************************************************/
- function group2_btn_search_onclick(obj:Button, e:ClickEventInfo)
- {
- misfMsterDetailRetrieve();
- ds_main_grnt_grntlist2.rowposition = 0;
- }
- /****************************************************************************************
- * Components : Dataset
- * Components ID : ds_send_paydedu
- * Event : oncolumnchanged
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 데이터셋 값 변경시
- ****************************************************************************************/
- function ds_send_paydedu_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
- {
- switch( e.columnid ){
- case "fromdd" :
- if( !utlf_isNull(ds_send_paydedu.getColumn(0, "fromdd")) && !utlf_isNull(ds_send_paydedu.getColumn(0, "todd")) ){
- group2.btn_search.click();
- }
- break;
-
- case "todd" :
- if( !utlf_isNull(ds_send_paydedu.getColumn(0, "fromdd")) && !utlf_isNull(ds_send_paydedu.getColumn(0, "todd")) ){
- group2.btn_search.click();
- }
- break;
-
- default :
- break;
- }
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : button4
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 엑셀출력버튼 클릭시
- ****************************************************************************************/
- function group2_button4_onclick(obj:Button, e:ClickEventInfo)
- {
- if( group2.grd_grntpsn1.rowcount > 0 ){
- grdf_exportExcel(group2.grd_grntpsn1, "excel", "savetype", false, "", "user", false);
- } else {
- sysf_messageBox("조회된 데이터가 ", "I004");
- return;
- }
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : button36
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 저장버튼 클릭시
- ****************************************************************************************/
- function grp_btn_button36_onclick(obj:Button, e:ClickEventInfo)
- {
- for( var i=0 ; i<ds_main_grnt_grntlist2.rowcount ; i++ ){
- if( utlf_isNull(ds_main_grnt_grntlist2.getColumn(i, "flagseq")) ){
- sysf_messageBox((i+1) + "번째 지출번호는 필수 입력항목입니다.", "E999", "");
- return;
- }
- }
-
- ds_main_grnt_grntlist2.enableevent = false;
- ds_main_grnt_grntlist2.updatecontrol = false;
-
- grdf_setStatusColumn(ds_main_grnt_grntlist2, "status");
-
- ds_main_grnt_grntlist2.updatecontrol = true;
- ds_main_grnt_grntlist2.enableevent = true;
-
- if (misfSave("TXRAD01901")){
- group2.btn_search.click();
- }
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : button35
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 초기화버튼 클릭시
- ****************************************************************************************/
- function grp_btn_button35_onclick(obj:Button, e:ClickEventInfo)
- {
- model.resetInstanceNode("/root/main/grnt/grntlist1");
- group3.disabled = false;
- grd_grntpsn1.disabled = false;
- ipt_unsldd.disabled = false;
- ipt_costcntrdeptcd.disabled = false;
- combo1.disabled = false;
- input4.disabled = false;
- input14.disabled = true;
- input15.disabled = true;
- input10.disabled = true;
- model.setValue("/root/send/paydedu/pumno1", "");
- model.setValue("/root/send/paydedu/pumno2", "");
- initialize();
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : button3
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 출력버튼 클릭시
- ****************************************************************************************/
- function grp_btn_button3_onclick(obj:Button, e:ClickEventInfo)
- {
- if( messageBox("출력하시겠습니까" , "Q99" ) == 6 ){
- exeReportPreview("RPRAD01501", "XMLSTR" , "" , "" , "true" , "", "", "", "", "true","","","","","","","","false");
- }
- }
- ]]></Script>
- </Form>
- </FDL>
|