123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPMNG00401" position="absolute 0 0 590 550" titletext="세탁물청구부서코드 HELP" oninit="SPMNG00401_oninit" onload="SPMNG00401_onload">
- <Layouts>
- <Layout>
- <Div position="absolute 0 0 582 520" id="group3" scrollbars="autoboth">
- <Layouts>
- <Layout>
- <Div position="absolute 0 0 580 30" id="group2" anchor="default">
- <Layouts>
- <Layout>
- <Shape position="absolute 0 0 580 29" id="roundrect1" class="roundrect_search" type="roundrectangle" anchor="default"/>
- <Button position="absolute 519 4 575 26" id="btn_search" class="btn1" text="조회" onclick="group3_group2_btn_search_onclick" anchor="default"/>
- <Shape position="absolute 512 0 518 29" linetype="vertical" id="line13" class="line_4" anchor="default"/>
- <Static text="조회조건:" position="absolute 10 6 96 23" id="caption2" class="search_name" anchor="default"/>
- <Combo position="absolute 100 5 200 24" id="cmb_dept" innerdataset="@ds_main_csrdeptlist" datacolumn="deptnm" codecolumn="deptcd" onitemchanged="group3_group2_cmb_dept_onitemchanged" anchor="default"/>
- </Layout>
- </Layouts>
- </Div>
- <Static text="하위부서 리스트" position="absolute 0 45 117 61" id="caption1" class="tit_2" anchor="default"/>
- <Shape position="absolute 0 61 580 67" linetype="horizontal" id="line1" class="line_10" anchor="default"/>
- <Grid position="absolute 0 65 582 520" id="grd_deptlist" binddataset="ds_main_deptcodelist" onexpanddown="group3_grd_deptlist_onexpanddown" anchor="default" cellsizingtype="both" extendsizetype="row">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25" band="left"/>
- <Column size="144"/>
- <Column size="230"/>
- <Column size="100"/>
- <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"/>
- <Cell col="5"/>
- <Cell col="6"/>
- <Cell col="7"/>
- </Band>
- <Band id="body">
- <Cell celltype="head"/>
- <Cell col="1" displaytype="text" edittype="expand" class="input_essential" text="bind:deptcd" expandshow="show"/>
- <Cell col="2" text="bind:deptnm"/>
- <Cell col="3" displaytype="combo" edittype="combo" style="align:center middle;" class="input_essential" text="bind:csrreqdeptcd" combodataset="ds_main_csrreqdeptlist" combocodecol="csrreqdeptcd" combodatacol="csrreqdeptnm"/>
- <Cell col="4" text="bind:supdeptcd"/>
- <Cell col="5" text="bind:supdeptnm"/>
- <Cell col="6" text="bind:userid"/>
- <Cell col="7" text="bind:useyn"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button position="absolute 530 40 570 60" id="btn_save" class="btn5" text="저장" onclick="group3_btn_save_onclick" anchor="default"/>
- <Button position="absolute 415 40 468 60" id="button1" class="btn2" text="행추가" onclick="group3_button1_onclick" anchor="default"/>
- <Button position="absolute 470 40 523 60" id="btn_del" class="btn2" text="행삭제" onclick="group3_btn_del_onclick" anchor="default"/>
- </Layout>
- </Layouts>
- </Div>
- <Div position="absolute 0 521 580 548" id="group1" scrollbars="autoboth">
- <Layouts>
- <Layout>
- <Button position="absolute 461 2 517 24" id="btn_confirm" class="btn4" text="확인" onclick="group1_btn_confirm_onclick"/>
- <Button position="absolute 520 2 576 24" id="btn_cancel" class="btn4" text="취소" onclick="group1_btn_cancel_onclick"/>
- </Layout>
- </Layouts>
- </Div>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_main_deptcodelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="deptcd" type="STRING" size="256"/>
- <Column id="deptnm" type="STRING" size="256"/>
- <Column id="csrreqdeptcd" type="STRING" size="256"/>
- <Column id="supdeptnm" type="STRING" size="256"/>
- <Column id="userid" type="STRING" size="256"/>
- <Column id="useyn" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="deptcd"/>
- <Col id="deptnm"/>
- <Col id="csrreqdeptcd"/>
- <Col id="supdeptnm"/>
- <Col id="userid"/>
- <Col id="useyn"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="deptcd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_csrdeptlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_target" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_init_refcond" 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">deptcd</Col>
- </Row>
- <Row>
- <Col id="label">부서명</Col>
- <Col id="value">deptnm</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_send_deptref" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="refcond" type="STRING" size="256"/>
- <Column id="deptnm" type="STRING" size="256"/>
- <Column id="deptcd" type="STRING" size="256"/>
- <Column id="instcd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="refcond"/>
- <Col id="deptnm"/>
- <Col id="deptcd"/>
- <Col id="instcd"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_send_comcdref" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cdgrupid" type="STRING" size="256"/>
- <Column id="cdid" type="STRING" size="256"/>
- <Column id="cdnm" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="cdgrupid"/>
- <Col id="cdid"/>
- <Col id="cdnm"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_send_reqdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="deptcd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_csrreqdeptlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_copynode" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_send_reqdata1_reqdeptinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_send_reqdata2_csrreqdept" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="group3.group2.cmb_dept" propid="value" datasetid="ds_main_cond" columnid="deptcd"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2015-11-13
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2015-11-13 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- include "com_commonxp::comm_main.xjs";
- include "mis_miscommonxp::RSZ001.xjs";
- include "mis_miscommonxp::MIS.xjs";
- function SPMNG00401_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SPMNG00401_onload(obj:Form, e:LoadEventInfo)
- {
- grdf_setRowTypeIcon(group3.grd_deptlist,0);
-
- var oParam = {};
- oParam.id = "TRMNG00402";
- oParam.service = "csrapp.CsrMngt";
- oParam.method = "getCsrDeptList";
- oParam.inds = "req=ds_send_reqdata";
- oParam.outds = "ds_main_csrdeptlist=csrdeptlist";
- oParam.async = false;
- tranf_submit(oParam);
-
- dsf_makeValue(ds_send,"useyn", "string", "Y");
-
- var oParam = {};
- oParam.id = "TRMNG00401";
- oParam.service = "csrapp.CsrMngt";
- oParam.method = "reqGetDeptFlagList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_csrreqdeptlist=csrreqdeptlist";
- oParam.async = false;
- tranf_submit(oParam);
- }
- function group3_group2_btn_search_onclick(obj:Button, e:ClickEventInfo)
- {
- var chk = group3.group2.cmb_dept.value;
- if ( utlf_isNull(chk) ) {
- alert("상위부서를 선택하세요");
- return;
- }
-
- ds_send_reqdata.setColumn(0, "deptcd", ds_main_cond.getColumn(0, "deptcd"));
-
- var oParam = {};
- oParam.id = "TRMNG00404";
- oParam.service = "csrapp.CsrDryMngt";
- oParam.method = "reqGetClnDeptList";
- oParam.inds = "req=ds_send_reqdata";
- oParam.outds = "ds_main_deptcodelist=deptcodelist";
- oParam.async = false;
- tranf_submit(oParam);
- }
- function group3_group2_cmb_dept_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
- frmf_inputEnterKey("group3.group2.btn_search", "onclick", new ClickEventInfo);
- }
- function group3_grd_deptlist_onexpanddown(obj:Grid, e:GridMouseEventInfo)
- {
- var chk = group3.group2.cmb_dept.value;
- if ( utlf_isNull(chk) ) {
- alert("상위부서를 선택하세요");
- return;
- }
- sysf_setModelProperty("flag","req");
- if (e.col == group3.grd_deptlist.getBindCellIndex("body","deptcd")) {//부서코드 버튼을 눌렀을 때
- ds_copynode.clearData();
- rszfOpenPopUpListByWndName(group3.grd_deptlist,"","deptcd,deptnm","SPMNG00400","","", "Y");
-
- var CSV = frmf_getParameter("SPMNG00400_");
- dsf_setCSVToDs("ds_copynode", CSV);
-
- fSettingGoodList("ds_copynode");
- }
- }
- function group3_btn_save_onclick(obj:Button, e:ClickEventInfo)
- {
- for (i=0; i< ds_main_deptcodelist.rowcount; i++ ) {
- var csrreqdeptcd = group3.grd_deptlist.getCellValue(i, group3.grd_deptlist.getBindCellIndex("body","csrreqdeptcd"));
- if ( utlf_isNull(csrreqdeptcd) ) {
- if ( ds_main_deptcodelist.getRowType(i) != "2" ) {
- alert("부서구분을 입력하세요");
- return;
- }
- }
- }
- var update = grdf_getGridUpdateData(group3.grd_deptlist);
- grdf_setStatusColumn(update, "status");
-
- if (update.rowcount < 1)
- {
- sysf_messageBox("변경된 데이터가","I004");
- return;
- }
-
- dsf_createDs("ds_send_reqdata1_reqdeptinfo");
- ds_send_reqdata1_reqdeptinfo.copyData(update, true);
-
- dsf_createDs("ds_send_reqdata2_csrreqdept");
- ds_send_reqdata2_csrreqdept.copyData(update, true);
-
- var oParam = {};
- oParam.id = "TXMNG00403";
- oParam.service = "csrapp.CsrDryMngt";
- oParam.method = "reqExeSaveClnDept";
- oParam.inds = "req=ds_send_reqdata1_reqdeptinfo";
- oParam.outds = "";
- oParam.async = false;
- tranf_submit(oParam);
-
- var oParam = {};
- oParam.id = "TXMNG00402";
- oParam.service = "csrapp.CsrMngt";
- oParam.method = "reqExeSaveCsrDept";
- oParam.inds = "req=ds_send_reqdata2_csrreqdept";
- oParam.outds = "";
- oParam.async = false;
- tranf_submit(oParam);
-
- frmf_inputEnterKey("group3.group2.btn_search", "onclick", new ClickEventInfo);
- }
- function group3_button1_onclick(obj:Button, e:ClickEventInfo)
- {
- ds_main_deptcodelist.addRow();
- ds_main_deptcodelist.setColumn(ds_main_deptcodelist.rowposition , "useyn", "Y");
- }
- function group3_btn_del_onclick(obj:Button, e:ClickEventInfo)
- {
- if(ds_main_deptcodelist.rowcount == 0) {
- sysf_messageBox("삭제할 행이 존재하지 않습니다.");
- return;
- }
-
- if(ds_main_deptcodelist.rowposition < 0) {
- sysf_messageBox("삭제할 행을 선택하십시오.", "E");
- return;
- }
-
- ds_main_deptcodelist.updatecontrol =false;
- ds_main_deptcodelist.setRowType(i, "D");
- ds_main_deptcodelist.updatecontrol =true;
- }
- function group1_btn_confirm_onclick(obj:Button, e:ClickEventInfo)
- {
- if(ds_main_deptcodelist.rowcount == 0)
- {
- sysf_messageBox("적용할 내역이","I004");
- this.close();
- return;
- }
- //var iParam = model.getValue(grd_deptlist.nodeset);
-
- ds_main_deptcodelist.filter("chkyn=='Y'");
- var rCVS = dsf_getDsCSV(ds_main_deptcodelist);
-
- ds_main_deptcodelist.filter("");
- if ( frmf_checkOpener() ) {
- opener.frmf_setParameter("SPMNG00400_", rCVS);
-
- } else {
- var rtn = sysf_messageBox("상위화면을 찾을 수", "E001");
- }
- this.close();
- }
- function group1_btn_cancel_onclick(obj:Button, e:ClickEventInfo)
- {
- misfPopUpListCancel();
- }
- function fSettingGoodList(pnode)
- {
-
- var codynode = ds_copynode.rowcount;
-
- var addRow = ds_main_deptcodelist.rowcount - 1;
-
- for (var j = 0; j < codynode; j++)
- {
-
- if(addRow > ds_main_deptcodelist.rowcount - 1)
- {
- misfGridIUD(group3.grd_deptlist,"A");
- addRow = ds_main_deptcodelist.rowcount - 1;
- }
-
- ds_main_deptcodelist.updatecontrol = false;
- ds_main_deptcodelist.enableevent = false;
- ds_main_csrdeptlist.setColumn(addRow, "deptcd" , ds_copynode.getColumn(j, "deptcd"));
- ds_main_csrdeptlist.setColumn(addRow, "deptnm" , ds_copynode.getColumn(j, "depthngnm"));
- ds_main_csrdeptlist.setColumn(addRow, "supdeptcd" , group3.group2.cmb_dept.value);
- ds_main_csrdeptlist.setColumn(addRow, "supdeptnm" , group3.group2.cmb_dept.text);
- ds_main_csrdeptlist.setColumn(addRow, "userid" , sysf_getUserInfo("userid"));
- ds_main_csrdeptlist.setColumn(addRow, "useyn" , "Y");
- //grp_biz.grd_reqcollcdeptlist.showEditor(false);
- ds_main_deptcodelist.enableevent = true;
- ds_main_deptcodelist.updatecontrol = true;
-
- addRow = addRow + 1;
- }
- }]]></Script>
- </Form>
- </FDL>
|