123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMRSC01700" position="absolute 0 0 1203 785" titletext="청구마감일자등록" oninit="SMRSC01700_oninit" onload="SMRSC01700_onload">
- <Layouts>
- <Layout>
- <Static id="caption6" text="청구마감일자등록" class="tit_1" position="absolute 0 0 186 25"/>
- <Shape id="line16" class="line_2" position="absolute 0 47 1195 53" anchor="left top right"/>
- <Button id="btn_prt" taborder="1" text="출력" class="btn6" visible="false" position="absolute 0 26 56 48" onclick="btn_prt_onclick"/>
- <Button id="btn_save" taborder="2" text="저장" class="btn4" position="absolute 1069 26 1125 48" anchor="top right" onclick="btn_save_onclick"/>
- <Button id="btn_clear" taborder="3" text="초기화" class="btn4" position="absolute 1127 26 1195 48" anchor="top right" onclick="btn_clear_onclick"/>
- <Div id="grp_sea" anchor="left top right" taborder="4" class="div_SA2" position="absolute 0 51 1195 91">
- <Layouts>
- <Layout width="1195" height="40">
- <Static id="cap_instcd" text="기관코드 :" class="search_name" position="absolute 15 11 101 28"/>
- <Shape id="line13" linetype="vertical" class="line_4" position="absolute 1107 3 1113 37" anchor="top right"/>
- <Button id="btn_search" taborder="1" text="조회" class="btn1" position="absolute 1124 10 1180 32" anchor="top right" onclick="grp_sea_btn_search_onclick"/>
- <Edit id="opt_instcdnm" taborder="2" readonly="true" class="output" position="absolute 103 10 257 29"/>
- <Edit id="opt_instcd" taborder="3" readonly="true" class="output" visible="false" position="absolute 269 11 299 30"/>
- <Static id="caption1" text="불출부서 :" class="search_name" position="absolute 405 11 491 28"/>
- <Button id="btn_reqdeptcd" taborder="4" class="icon_search" position="absolute 600 11 616 27" onclick="grp_sea_btn_reqdeptcd_onclick"/>
- <Edit id="ipt_deldeptnm" taborder="5" autoselect="true" autoskip="true" class="input_fix" position="absolute 620 10 760 29"/>
- <Edit id="ipt_deldeptcd" taborder="6" autoselect="true" autoskip="true" class="input_essential" position="absolute 494 10 595 29"/>
- </Layout>
- </Layouts>
- </Div>
- <Static id="caption8" text="부서 List" class="tit_2" position="absolute 0 102 129 124"/>
- <Button id="btn_grddel" taborder="5" text="행삭제" class="btn2" position="absolute 1141 99 1194 118" anchor="top right" onclick="btn_grddel_onclick"/>
- <Shape id="line1" class="line_10" position="absolute 0 117 1195 126" anchor="left top right"/>
- <Grid id="grd_rsdhdeymlist" taborder="6" binddataset="ds_main_rsdhdeymlist" useinputpanel="false" position="absolute 0 123 1195 780" autoenter="select" cellsizingtype="col" anchor="all">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="21"/>
- <Column size="200"/>
- <Column size="200"/>
- <Column size="200"/>
- <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="불출부서"/>
- </Band>
- <Band id="body">
- <Cell celltype="head"/>
- <Cell col="1" text="bind:delivedeptnm"/>
- <Cell col="2" displaytype="date" edittype="date" style="align:right middle;padding:0 2 0 0;" text="bind:reqym" mask="yyyy-MM" maskchar=" " calendardisplaynulltype="nulltext"/>
- <Cell col="3" displaytype="date" edittype="date" style="align:right middle;padding:0 2 0 0;" text="bind:todd" calendardisplaynulltype="nulltext"/>
- <Cell col="4" text="bind:instcd"/>
- <Cell col="5" text="bind:delivedeptcd"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button id="button1" taborder="7" text="행추가" class="btn2" position="absolute 1085 99 1138 118" anchor="top right" onclick="button1_onclick"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_send_oncolumnchanged">
- <ColumnInfo>
- <Column id="instcd" type="STRING" size="256"/>
- <Column id="deldeptcd" type="STRING" size="256"/>
- <Column id="deldeptnm" type="STRING" size="256"/>
- <Column id="instcdnm" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="instcd"/>
- <Col id="deldeptcd"/>
- <Col id="deldeptnm"/>
- <Col id="instcdnm"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_rsdhdeymlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_rsdhdeymlist_oncolumnchanged">
- <ColumnInfo>
- <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
- <Column id="delivedeptcd" type="STRING" size="256" sumtext="불출부서코드"/>
- <Column id="delivedeptnm" type="STRING" size="256" sumtext="불출부서"/>
- <Column id="reqym" type="STRING" size="256" sumtext="청구년월"/>
- <Column id="todd" type="STRING" size="256" sumtext="청구마지막일자"/>
- <Column id="fstrgstrid" type="STRING" size="256" sumtext="최초등록자id"/>
- <Column id="fstrgstdt" type="STRING" size="256" sumtext="최초등록일자"/>
- <Column id="lastupdtrid" type="STRING" size="256" sumtext="최종등록자id"/>
- <Column id="lastupdtdt" type="STRING" size="256" sumtext="최종등록일자"/>
- </ColumnInfo>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="grp_sea.opt_instcdnm" propid="value" datasetid="ds_send" columnid="instcdnm"/>
- <BindItem id="item1" compid="grp_sea.opt_instcd" propid="value" datasetid="ds_send" columnid="instcd"/>
- <BindItem id="item2" compid="grp_sea.ipt_deldeptcd" propid="value" datasetid="ds_send" columnid="deldeptcd"/>
- <BindItem id="item3" compid="grp_sea.ipt_deldeptnm" propid="value" datasetid="ds_send" columnid="deldeptnm"/>
- </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 "mis_miscommonxp::MIS.xjs";
- include "mis_miscommonxp::RSZ001.xjs";
- function SMRSC01700_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SMRSC01700_onload(obj:Form, e:LoadEventInfo)
- {
- grdf_initGrid(grd_rsdhdeymlist);
- grdf_setRowTypeIcon(grd_rsdhdeymlist, 0);
-
- fInitialize();
- }
-
- function fInitialize()
- {
- misfGridInit(grd_rsdhdeymlist);
- misfMsterDetailSet(grd_rsdhdeymlist,null,"TRRSC01701","Y");
- grp_sea.opt_instcd.value = sysf_getUserInfo("dutplceinstcd");
- grp_sea.opt_instcdnm.value = sysf_getUserInfo("dutplceinstnm");
- grp_sea.ipt_deldeptcd.value = sysf_getUserInfo("dutplcecd");
- grp_sea.ipt_deldeptnm.value = sysf_getUserInfo("dutplcenm");
- btn_save.enable = frmf_checkAuth("X");
- btn_prt.enable = frmf_checkAuth("P");
-
- grp_sea.btn_search.click();
- }
- function grp_sea_btn_search_onclick(obj:Button, e:ClickEventInfo)
- {
- fsearch();
- }
- function fsearch()
- {
- var updtdata = grdf_getGridUpdateData(grd_rsdhdeymlist).rowcount;
- if (updtdata != 0)
- {
- var ret = sysf_messageBox("그리드에 작업 중인 내용이 있습니다. 조회 작업을","Q003");
- if (ret != 6)
- {
- return;
- }
- }
-
- var oParam = {};
- oParam.id = "TRRSC01701";
- oParam.service = "purcbaseapp.PurcBaseMngt";
- oParam.method = "reqGetRsdhdeymList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_rsdhdeymlist=rsdhdeymlist";
- oParam.async = false;
- //oParam.callback = "cf_TRRSC01701";
- tranf_submit(oParam);
- }
- function ds_send_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
- {
- if(e.columnid == "deldeptcd")
- {
- grp_sea.ipt_deldeptcd.value = e.newvalue;
- grp_sea.ipt_deldeptcd.setFocus();
- if(String(e.newvalue).length == 0)
- {
- grp_sea.ipt_deldeptnm.value = "";
- }
- else
- {
- misfValidationCheck("02", "", "deldeptcd,deldeptnm", grp_sea.opt_instcd.value, "instcd" );
- }
- }
- if(e.columnid == "deldeptnm")
- {
- grp_sea.ipt_deldeptnm.value = e.newvalue;
- grp_sea.ipt_deldeptnm.setFocus();
- if(String(e.newvalue).length == 0)
- {
- grp_sea.ipt_deldeptcd.value = "";
- }
- else
- {
- misfValidationCheck("02", "", "deldeptcd,deldeptnm", grp_sea.opt_instcd.value, "instcd" );
- }
- }
- }
- function grp_sea_btn_reqdeptcd_onclick(obj:Button, e:ClickEventInfo)
- {
- var recv_list = "deldeptcd,deldeptnm";
- misfOpenPopUpList("02", grp_sea.ipt_deldeptcd,"", recv_list) ;
- }
- function button1_onclick(obj:Button, e:ClickEventInfo)
- {
- misfGridIUD(grd_rsdhdeymlist, "A");
- fGridAddData();
- }
- function fGridAddData()
- {
- ds_main_rsdhdeymlist.updatecontrol = false;
- ds_main_rsdhdeymlist.setColumn(ds_main_rsdhdeymlist.rowposition, "instcd", grp_sea.opt_instcd.value);
- ds_main_rsdhdeymlist.setColumn(ds_main_rsdhdeymlist.rowposition, "delivedeptcd", grp_sea.ipt_deldeptcd.value);
- ds_main_rsdhdeymlist.setColumn(ds_main_rsdhdeymlist.rowposition, "delivedeptnm", grp_sea.ipt_deldeptnm.value);
- ds_main_rsdhdeymlist.updatecontrol = true;
- }
- function btn_grddel_onclick(obj:Button, e:ClickEventInfo)
- {
- misfGridIUD(grd_rsdhdeymlist, "D");
- }
- function btn_save_onclick(obj:Button, e:ClickEventInfo)
- {
- var updtdata = grdf_getGridUpdateData(grd_rsdhdeymlist).rowcount;
- if (updtdata == 0)
- {
- sysf_messageBox("변경된 데이터가","I004");
- return;
- }
-
- rtn = sysf_messageBox("", "Q002");
- if(rtn != "6" )
- {
- return false;
- }
-
- var oParam = {};
- oParam.id = "TXRSC01701";
- oParam.service = "purcbaseapp.PurcBaseMngt";
- oParam.method = "reqExeSetRsdhdeymList";
- oParam.inds = "req=ds_main_rsdhdeymlist:u";
- oParam.outds = "";
- oParam.async = false;
- //oParam.callback = "cf_TXRSC01701";
- tranf_submit(oParam);
- fsearch();
- }
- function btn_clear_onclick(obj:Button, e:ClickEventInfo)
- {
- fInitialize();
- }
- function ds_main_rsdhdeymlist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
- {
- if(e.columnid == "reqym")
- {
- obj.setColumn(e.row, "reqym", String(e.newvalue).substr(0,6))
- }
- }
- function btn_prt_onclick(obj:Button, e:ClickEventInfo)
- {
-
- }
- ]]></Script>
- </Form>
- </FDL>
|