123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPAEB00020" position="absolute 0 0 1011 540" titletext="당일선수납관련 싱글수가 관리" onload="SPAEB00020_onload">
- <Layouts>
- <Layout>
- <Div id="grp_srch" taborder="1" position="absolute 0 25 1010 65" class="div_SA"/>
- <Static text="당일선수납관련 싱글수가 관리" position="absolute 0 0 220 25" id="caption1" class="tit_1"/>
- <Shape position="absolute 0 89 1010 95" id="line1" class="line_10"/>
- <Button position="absolute 895 67 951 89" id="btn_confirm" class="btn4" text="저장" onclick="btn_confirm_onclick"/>
- <Button position="absolute 954 67 1010 89" id="btn_close" class="btn4" text="닫기" onclick="btn_close_onclick"/>
- <Static text="M-SET코드 :" position="absolute 17 36 125 53" id="caption2" class="search_name"/>
- <Button position="absolute 942 34 998 56" id="btn_search" class="btn1" text="조회" onclick="btn_search_onclick"/>
- <Edit position="absolute 130 35 215 54" id="input1"/>
- <Grid position="absolute 0 94 1010 539" align="align:center middle;" id="grd_grupsngl" binddataset="ds_main_item" cellclickbound="cell">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25" band="left"/>
- <Column size="98"/>
- <Column size="154"/>
- <Column size="98"/>
- <Column size="144"/>
- <Column size="100"/>
- <Column size="0"/>
- <Column size="100"/>
- <Column size="0"/>
- <Column size="100"/>
- <Column size="90"/>
- <Column size="90"/>
- <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="execdeptcd"/>
- <Cell col="9" text="실시부서"/>
- <Cell col="10" text="시작일자"/>
- <Cell col="11" text="종료일자"/>
- <Cell col="12" text="seq"/>
- <Cell col="13" text="snglseqno"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" text="expr:currow+1"/>
- <Cell col="1" text="bind:calcscorcdgrup"/>
- <Cell col="2" style="align:center top;padding:5 2 3 2;" text="bind:grupnm" wordwrap="word"/>
- <Cell col="3" text="bind:snglcd"/>
- <Cell col="4" style="align:center top;padding:5 2 3 2;" text="bind:snglnm" wordwrap="word"/>
- <Cell col="5" displaytype="checkbox" edittype="checkbox" text="bind:calcyn" expr="expr:(calcyn=="Y"||calcyn==1)?1:0"/>
- <Cell col="6" text="bind:suppdeptcd"/>
- <Cell col="7" text="bind:suppdeptnm"/>
- <Cell col="8" text="bind:prcpexecdeptcd"/>
- <Cell col="9" text="bind:prcpexecdeptnm"/>
- <Cell col="10" displaytype="date" edittype="date" text="bind:fromdd" calendardisplaynulltype="nulltext"/>
- <Cell col="11" displaytype="date" edittype="date" text="bind:todd" calendardisplaynulltype="nulltext" enable="false"/>
- <Cell col="12" text="bind:seq"/>
- <Cell col="13" text="bind:snglseqno"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static position="absolute 634 64 719 89" id="cap_result" style="color:#ff0000ff;font:Dotum,14,bold;"/>
- <Button position="absolute 729 67 809 89" id="btn_all_sel" class="btn4" text="전체선택" onclick="btn_all_sel_onclick"/>
- <Button position="absolute 812 67 892 89" id="btn_all_desel" class="btn4" text="전체해제" onclick="btn_all_desel_onclick"/>
- <Shape id="line13" linetype="vertical" class="line_4" position="absolute 930 34 936 56"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_send_srch" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="calcscorcdgrup" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="calcscorcdgrup"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_send_req_savedata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep"/>
- <Dataset id="ds_main_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep" oncolumnchanged="ds_main_item_oncolumnchanged">
- <ColumnInfo>
- <Column id="calcscorcdgrup" type="STRING" size="256"/>
- <Column id="grupnm" type="STRING" size="256"/>
- <Column id="snglcd" type="STRING" size="256"/>
- <Column id="snglnm" type="STRING" size="256"/>
- <Column id="calcyn" type="STRING" size="256"/>
- <Column id="suppdeptcd" type="STRING" size="256"/>
- <Column id="suppdeptnm" type="STRING" size="256"/>
- <Column id="prcpexecdeptcd" type="STRING" size="256"/>
- <Column id="prcpexecdeptnm" type="STRING" size="256"/>
- <Column id="fromdd" type="STRING" size="256"/>
- <Column id="todd" type="STRING" size="256"/>
- <Column id="seq" type="STRING" size="256"/>
- <Column id="snglseqno" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="calcscorcdgrup"/>
- <Col id="grupnm"/>
- <Col id="snglcd"/>
- <Col id="snglnm"/>
- <Col id="calcyn"/>
- <Col id="suppdeptcd"/>
- <Col id="suppdeptnm"/>
- <Col id="prcpexecdeptcd"/>
- <Col id="prcpexecdeptnm"/>
- <Col id="fromdd"/>
- <Col id="todd"/>
- <Col id="seq"/>
- <Col id="snglseqno"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="hidden" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="input1" propid="value" datasetid="ds_send_srch" columnid="calcscorcdgrup"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2017-12-04
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2017-06-19 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- //=======================================================================================
- // Lib Include
- //---------------------------------------------------------------------------------------
- include "com_commonxp::comm_main.xjs";
- include "ast_commonxp::AST.xjs";
- include "ast_examcurexp::AEZ0001.xjs";
- include "ast_examcurexp::combolist.xjs";
- //=======================================================================================
- // Global Form Variable
- //---------------------------------------------------------------------------------------
- var arErrorCode = new HashArray();
- //=======================================================================================
- // Event
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Components : Form
- * Description : 화면 처음 초기화시 폼초기화
- ****************************************************************************************/
- function SPAEB00020_onload(obj:Form, e:LoadEventInfo) {
- frmf_initForm(obj);
- //grdf_initGrid(grd_XXX);
- grdf_setGridSort(grd_grupsngl);
- //grdf_setRowTypeIcon(grd_XXX, 0_컬럼위치값);
- var excucd = opener.frmf_getParameter("excucd");
- if(!utlf_isNull(excucd)){
- dsf_makeValue( ds_send_srch, "calcscorcdgrup", "string", excucd);
- btn_search.click();
- cap_result.value = "미저장";
- }
- }
- /****************************************************************************************
- * Components : Button
- * Description : 저장
- ****************************************************************************************/
- function btn_confirm_onclick(obj:Button, e:ClickEventInfo) {
- var rows = ds_main_item.rowcount;
- var csvdata = "instcd"+"▦"+"calcscorcdgrup"+"▦"+"snglcd"+"▦"+"snglseqno"+"▦"+"calcyn"+"▦"+"suppdeptcd"+"▦"+"prcpexecdeptcd"+"▦"+"fromdd"+"▦"+"todd"+"▦"+"seq"+"▩";
-
- for(var i = 0; i < rows ; i++){
- csvdata += sysf_getUserInfo("dutplceinstcd") + "▦" + ds_main_item.getColumn(i, "calcscorcdgrup")+"▦"+ ds_main_item.getColumn(i, "snglcd")+"▦"+
- ds_main_item.getColumn(i, "snglseqno") + "▦" + ds_main_item.getColumn(i, "calcyn") + "▦" + ds_main_item.getColumn(i, "suppdeptcd") + "▦" +
- ds_main_item.getColumn(i, "prcpexecdeptcd") + "▦" + ds_main_item.getColumn(i, "fromdd") + "▦" +
- ds_main_item.getColumn(i, "todd") + "▦" + ds_main_item.getColumn(i, "seq") + "▩";
- }
- dsf_setCSVToDs("ds_send_req_savedata", csvdata);
- var oParam = {};
- oParam.id = "TXAEB00020";
- oParam.service = "examcurebaseapp.ComCode";
- oParam.method = "reqSetGrupSngl";
- oParam.inds = "req=ds_send_req_savedata";
- oParam.outds = "ds_main_item=item";
- oParam.async = false;
- oParam.callback = "cf_TXAEB00020";
- tranf_submit(oParam);
- if(arErrorCode.pop("TXAEB00020") > -1) {
- sysf_messageBox("저장 되었습니다.", "I");
- cap_result.value="저장완료";
- }
- }
- function cf_TXAEB00020(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- /****************************************************************************************
- * Components : Button
- * Description : 닫기
- ****************************************************************************************/
- function btn_close_onclick(obj:Button, e:ClickEventInfo) {
- this.close();
- }
- /****************************************************************************************
- * Components : Button
- * Description : 조회
- ****************************************************************************************/
- function btn_search_onclick(obj:Button, e:ClickEventInfo) {
- dsf_makeValue( ds_send_srch, "instcd", "string", sysf_getUserInfo("dutplceinstcd"));
- var oParam = {};
- oParam.id = "TRAEB00020";
- oParam.service = "examcurebaseapp.ComCode";
- oParam.method = "reqGetGrupSugaInfo";
- oParam.inds = "req=ds_send_srch";
- oParam.outds = "ds_main_item=item";
- oParam.async = false;
- oParam.callback = "cf_TRAEB00020";
- tranf_submit(oParam);
- }
- function cf_TRAEB00020(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
- dsf_setDefaultVal(ds_main_item, "calcyn:N");
- }
- /****************************************************************************************
- * Components : Button
- * Description : 전체선택
- ****************************************************************************************/
- function btn_all_sel_onclick(obj:Button, e:ClickEventInfo) {
- for(var i=0; i < ds_main_item.rowcount; i++){
- ds_main_item.setColumn(i, "calcyn", "Y");
- }
- }
- /****************************************************************************************
- * Components : Button
- * Description : 전체해제
- ****************************************************************************************/
- function btn_all_desel_onclick(obj:Button, e:ClickEventInfo) {
- for(var i=0; i < ds_main_item.rowcount; i++){
- ds_main_item.setColumn(i, "calcyn", "N");
- }
- }
- function ds_main_item_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
- {
- if(e.columnid=="calcyn") {
- obj.setColumn(e.row,e.columnid,(e.newvalue=="Y"||e.newvalue==1)?"Y":"N");
- }
- }
- ]]></Script>
- </Form>
- </FDL>
|