123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPAER02300" position="absolute 0 0 391 650" titletext="예약변경 조회 지원부서 관리" onload="SPAER02300_onload">
- <Layouts>
- <Layout>
- <Static id="caption6" text="예약변경 조회 지원부서 관리" class="tit_1" position="absolute 0 0 220 25"/>
- <Static id="caption1" text="기준지원부서 관리" class="tit_2" position="absolute 0 33 142 51"/>
- <Button id="btn_grdadd" taborder="1" text="행추가" class="btn2" position="absolute 281 27 334 49" onclick="btn_grdadd_onclick" anchor="top right"/>
- <Button id="btn_grddel" taborder="2" text="행삭제" class="btn2" position="absolute 337 27 390 49" onclick="btn_grddel_onclick" anchor="top right"/>
- <Grid id="datagrid1" taborder="3" binddataset="ds_main_examcurelist_item" useinputpanel="false" position="absolute 0 54 390 621" autofittype="col" autoenter="select" anchor="all">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25" band="left"/>
- <Column size="366"/>
- <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="caption1"/>
- </Band>
- <Band id="body">
- <Cell celltype="head"/>
- <Cell col="1" displaytype="combo" edittype="expr:getRowType(currow) == '2' ? 'combo' : 'none'" text="bind:suppdeptcd" combodataset="ds_init_cmb_info_initbasesuppdeptcd" combocodecol="basesuppdeptcd" combodatacol="depthngnm" combodisplayrowcount="20" enable="false"/>
- <Cell col="2" text="bind:flag"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button id="btn_save" taborder="4" text="저장" class="btn4" position="absolute 334 625 390 647" onclick="btn_save_onclick" anchor="right bottom"/>
- <Shape id="line2" class="line_10" position="absolute 0 49 390 55" anchor="left top right"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_main_examcurelist_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="suppdeptcd" type="STRING" size="256"/>
- <Column id="flag" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="suppdeptcd"/>
- <Col id="flag"/>
- </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="basecd" type="STRING" size="256"/>
- <Column id="flag" type="STRING" size="256"/>
- <Column id="windowloadinstance" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="basecd"/>
- <Col id="flag"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_send_globalinstance" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="instance1" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="instance1"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_send_req_data" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep"/>
- <Dataset id="ds_init_cmb_info_initbasesuppdeptcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="basesuppdeptcd" type="STRING" size="256"/>
- <Column id="depthngnm" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="basesuppdeptcd"/>
- <Col id="depthngnm"/>
- </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="item" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- </Objects>
- <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_examcurexp::AEZ0001.xjs";
- //=======================================================================================
- // Global Form Variable
- //---------------------------------------------------------------------------------------
- var arErrorCode = new HashArray();
- //=======================================================================================
- // Function
- //---------------------------------------------------------------------------------------
- /*-**************************************************************************************
- * Argument : N/A
- * Description : 조회
- ****************************************************************************************/
- function readfunc() {
- ds_main_examcurelist_item.clearData();
- var oParam = {};
- oParam.id = "TRAER02301";
- oParam.service = "examcureacptexecapp.ExamCureAcpt";
- oParam.method = "reqGetSuppdeptRsrvList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_examcurelist_item=item";
- oParam.async = false;
- //oParam.callback = "cf_TRAER02301";
- tranf_submit(oParam);
- }
- /*-**************************************************************************************
- * Argument : N/A
- * Description : 저장시 데이터 체크
- ****************************************************************************************/
- function datacheck(){
- var ssuppdeptcd = "";
- var ssuppdeptcd1 = "";
- var sbaseexcuroomcd = "";
- for (var i = 0; i < ds_main_examcurelist_item.rowcount; i++){
- ssuppdeptcd = ds_main_examcurelist_item.getColumn(i, "suppdeptcd");
- if (utlf_isNull(ssuppdeptcd)){
- sysf_messageBox(i + "번째행의 수행부서는 필수 선택항목입니다.", "E999", "");
- return false;
- }
- }
- for (var i = 0; i < ds_main_examcurelist_item.rowcount - 1; i++){
- ssuppdeptcd = ds_main_examcurelist_item.getColumn(i, "suppdeptcd");
- for (var j = 0; j < ds_main_examcurelist_item.rowcount; j++){
- ssuppdeptcd1 = ds_main_examcurelist_item.getColumn(j, "suppdeptcd");
- if (i != j){
- if (ssuppdeptcd == ssuppdeptcd1){
- sysf_messageBox(j + "번째에서 중복된 자료가 존재합니다", "E999", "");
- return false;
- }
- }
- }
- }
- }
-
- //=======================================================================================
- // Event
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Components : Form
- * Description : 화면 처음 초기화시 폼초기화
- ****************************************************************************************/
- function SPAER02300_onload(obj:Form, e:LoadEventInfo) {
- frmf_initForm(obj);
- //grdf_initGrid(grd_XXX);
- //grdf_setGridSort(grd_XXX);
- grdf_setRowTypeIcon(datagrid1, 0);
- ds_send.setColumn( 0, "flag", "1"); // 1 : 예약변경 및 취소조회
- ds_init_cmb_info_initbasesuppdeptcd.clearData();
- var oParam = {};
- oParam.id = "TRAER02201";
- oParam.service = "examcurebaseapp.ExamCureRoom";
- oParam.method = "reqGetInitBaseSuppdeptcd";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_init_cmb_info_initbasesuppdeptcd=initbasesuppdeptcd";
- oParam.async = false;
- //oParam.callback = "cf_TRAER02201";
- tranf_submit(oParam);
-
- readfunc();
- }
- /****************************************************************************************
- * Components : Button
- * Description : 행추가
- ****************************************************************************************/
- function btn_grdadd_onclick(obj:Button, e:ClickEventInfo) {
- var nRow = ds_main_examcurelist_item.addRow();
- ds_main_examcurelist_item.setColumn( nRow, "flag", ds_send.getColumn(0, "flag"));
- }
- /****************************************************************************************
- * Components : Button
- * Description : 행삭제
- ****************************************************************************************/
- function btn_grddel_onclick(obj:Button, e:ClickEventInfo) {
- var grdObj = datagrid1;
- var dsObj = this.objects[grdObj.binddataset];
- var cRow = dsObj.rowposition;
- if( dsObj.getRowType(cRow) == 2 ) {
- dsObj.deleteRow(cRow);
- }else{
- grdf_setStatus(grdObj, "D", [cRow]);
- }
- }
- /****************************************************************************************
- * Components : Button
- * Description : 저장
- ****************************************************************************************/
- function btn_save_onclick(obj:Button, e:ClickEventInfo) {
- if (datacheck() == false){
- return;
- }
-
- var update = grdf_getGridUpdateData(datagrid1, "all");
- grdf_setStatusColumn(update, "m");
- if(utlf_isNull(update) || update.rowcount == 0){
- sysf_messageBox("업데이트 정보가 없습니다.", "I");
- return 0;
- } else {
- ds_send_req_data.copyData(update, true);
- var oParam = {};
- oParam.id = "TXAER02301";
- oParam.service = "examcureacptexecapp.ExamCureAcpt";
- oParam.method = "reqExeSuppdeptRsrvList";
- oParam.inds = "req=ds_send_req_data";
- oParam.outds = "ds_hidden=item";
- oParam.async = false;
- oParam.callback = "cf_TXAER02301";
- tranf_submit(oParam);
- if(arErrorCode.pop("TXAER02301") > -1) {
- readfunc();
- }
- }
- }
- function cf_TXAER02301(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- ]]></Script>
- </Form>
- </FDL>
|