123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMMNG00401" position="absolute 0 0 1211 784" titletext="린넨부서구분 등록" oninit="SMMNG00401_oninit" onload="SMMNG00401_onload">
- <Layouts>
- <Layout>
- <Div position="absolute 0 0 1195 25" id="grp_tle">
- <Layouts>
- <Layout>
- <Static text="린넨부서구분 등록" position="absolute 0 0 149 25" id="caption6" class="tit_1"/>
- </Layout>
- </Layouts>
- </Div>
- <Div position="absolute 0 38 1195 782" id="grp_biz" scrollbars="autoboth">
- <Layouts>
- <Layout width="1195" height="744">
- <Div position="absolute 0 10 1195 45" align="align:center top;" id="grp_sea">
- <Layouts>
- <Layout>
- <Shape position="absolute 0 0 1195 35" id="roundrect1" class="roundrect_search" type="roundrectangle"/>
- <Static text="기관코드 :" position="absolute 15 9 101 26" id="cap_instcd" class="search_name"/>
- <Shape position="absolute 1117 5 1123 30" linetype="vertical" id="line13" class="line_4"/>
- <Button position="absolute 1130 8 1186 30" id="btn_search" class="btn1" taborder="2" text="조회" onclick="grp_biz_grp_sea_btn_search_onclick"/>
- <Combo position="absolute 102 8 260 27" id="cmb_instcd" class="combo_essential" enable="false" innerdataset="@ds_hidden_common_instcdinfo" datacolumn="cdnm" codecolumn="cdid" onitemchanged="grp_biz_grp_sea_cmb_instcd_onitemchanged"/>
- <Static text="그룹명 :" position="absolute 270 10 358 27" id="caption2" class="search_name"/>
- <Edit position="absolute 348 8 520 27" id="ipt_reqdeptnm" class="input_search" autoselect="true"/>
- </Layout>
- </Layouts>
- </Div>
- <Shape position="absolute 250 75 1195 81" linetype="horizontal" id="line2" class="line_10"/>
- <Static text="그룹구분" position="absolute 5 59 88 75" id="caption8" class="tit_2"/>
- <Button position="absolute 1064 54 1106 73" id="btn_grdadd" class="btn2" enable="false" text="추가" onclick="grp_biz_btn_grdadd_onclick"/>
- <Static text="린넨청구부서 등록" position="absolute 250 59 383 75" id="caption1" class="tit_2"/>
- <Shape position="absolute 5 75 245 81" linetype="horizontal" id="line1" class="line_10"/>
- <Grid position="absolute 5 79 245 720" id="grd_grupdeptlist" binddataset="ds_main_grupdeptlist" oncellclick="grp_biz_grd_grupdeptlist_oncellclick" cellsizingtype="both" extendsizetype="row" selecttype="multirow">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25" band="left"/>
- <Column size="50"/>
- <Column size="109"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1" text="코드"/>
- <Cell col="2" text="그룹명"/>
- </Band>
- <Band id="body">
- <Cell celltype="head"/>
- <Cell col="1" style="align:center middle;" text="bind:grupdeptcd" enable="false"/>
- <Cell col="2" displaytype="text" edittype="text" text="bind:grupdeptnm" editautoselect="true"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button position="absolute 1009 54 1062 73" id="button1" class="btn2" text="초기화" onclick="grp_biz_button1_onclick"/>
- <Button position="absolute 1152 54 1194 73" id="btn_save" class="btn5" enable="false" text="저장" onclick="grp_biz_btn_save_onclick"/>
- <Grid position="absolute 250 79 1195 719" id="grd_deptlist" binddataset="ds_main_deptlist" onexpanddown="grp_biz_grd_deptlist_onexpanddown" oncellclick="grp_biz_grd_deptlist_oncellclick" autoenter="select" selecttype="multirow" cellsizingtype="both" extendsizetype="row">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25" band="left"/>
- <Column size="107"/>
- <Column size="150"/>
- <Column size="100"/>
- <Column size="250"/>
- <Column size="60"/>
- <Column size="0"/>
- <Column size="100"/>
- <Column size="100"/>
- </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="수정자ID"/>
- <Cell col="7" text="수정자"/>
- <Cell col="8" text="수정일자"/>
- </Band>
- <Band id="body">
- <Cell celltype="head"/>
- <Cell col="1" displaytype="text" edittype="expr:ds_main_deptlist.getRowType(currow) == 2 ? 'text' : 'expand'" style="background2:URL('theme://images/bg_edit_est_N.png') stretch 9,9;" class="input_essential" text="bind:deptcd" editautoselect="true" expandshow="show"/>
- <Cell col="2" style="align:left middle;" text="bind:deptnm"/>
- <Cell col="3" displaytype="combo" edittype="combo" style="align:center middle;padding:0 0 0 0;background2:URL('theme://images/bg_edit_est_N.png') stretch 9,9;" class="input_essential" text="bind:grupdeptcd" editautoselect="false" combodataset="ds_main_grupdeptlist" combocodecol="grupdeptcd" combodatacol="grupdeptnm"/>
- <Cell col="4" displaytype="text" edittype="text" text="bind:cmt" editautoselect="true"/>
- <Cell col="5" displaytype="text" edittype="text" style="align:center middle;" text="bind:sortseq" editautoselect="true"/>
- <Cell col="6" displaytype="normal" edittype="none" style="align:center middle;" text="bind:lastupdtrid"/>
- <Cell col="7" displaytype="normal" edittype="none" style="align:center middle;" text="bind:lastupdtrnm"/>
- <Cell col="8" displaytype="normal" edittype="none" style="align:center middle;" text="bind:lastupdtdt" mask="expr:utlf_isNull(lastupdtdt) ? '' : '####-##-##'"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button position="absolute 111 54 153 73" id="btn_new" class="btn2" taborder="3" text="추가" onclick="grp_biz_btn_new_onclick"/>
- <Button position="absolute 156 54 198 73" id="btn_updt" class="btn2" taborder="4" text="삭제" onclick="grp_biz_btn_updt_onclick"/>
- <Button position="absolute 201 54 243 73" id="btn_save1" class="btn5" taborder="17" text="저장" onclick="grp_biz_btn_save1_onclick"/>
- <Button position="absolute 1108 54 1153 73" id="button3" class="btn2" text="삭제" onclick="grp_biz_button3_onclick"/>
- </Layout>
- </Layouts>
- </Div>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_main_grupdeptlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_main_deptlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_deptlist_oncolumnchanged"/>
- <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="instcd" type="STRING" size="256"/>
- <Column id="grupdeptnm" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_hidden_common_instcdinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_temp_useinfo" 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_main_csrreqdeptlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_main_csrdeptlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_send_reqdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_send_reqdata1" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_send_reqdata2" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_send_reqdata_grupdeptlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="grp_biz.grp_sea.cmb_instcd" propid="value" datasetid="ds_send" columnid="instcd"/>
- <BindItem id="item1" compid="grp_biz.grp_sea.ipt_reqdeptnm" propid="value" datasetid="ds_send" columnid="grupdeptnm"/>
- </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::MIS.xjs";
- include "mis_miscommonxp::RSZ001.xjs";
- function SMMNG00401_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SMMNG00401_onload(obj:Form, e:LoadEventInfo)
- {
- grdf_setRowTypeIcon(grp_biz.grd_grupdeptlist,0);
- grdf_setRowTypeIcon(grp_biz.grd_deptlist,0);
- grdf_initGrid(grp_biz.grd_deptlist);
-
- fInitialize();
-
- var oParam = {};
- oParam.id = "TRMNG02302";
- oParam.service = "csrapp.CsrDryMngt";
- oParam.method = "reqGetDeptUseInfo";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_temp_useinfo=useinfo";
- oParam.async = false;
- tranf_submit(oParam);
- var getuserinstcd = ds_temp_useinfo.getColumn(0, "cdid");
-
- if ( getuserinstcd == "N") {
- //grp_biz.btn_clndept.visible = false;
- }
- }
- function grp_biz_grp_sea_btn_search_onclick(obj:Button, e:ClickEventInfo)
- {
- fSearch();
- }
- var rowStat = "C";
- var curRow = -1;
- // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
- function fInitialize() {
- ds_main_csrreqdeptlist.clearData();
- ds_main_csrdeptlist.clearData();
-
- var arrParam = [
- {dsNm: "ds_hidden_common_instcdinfo", cdGrpId: "Z0007"}
- ];
- appf_getCodeList(arrParam, false, false);
- ds_send.setColumn(0, "instcd", sysf_getUserInfo("dutplceinstcd"));
- ds_send_reqdata.clearData();
- fSearch();
- //화면 권한 설정
- grp_biz.btn_save.enable = frmf_checkAuth("X");
- }
- function fSearch(){
-
- ds_main_deptlist.clearData();
-
- var oParam = {};
- oParam.id = "TRMNG00405";
- oParam.service = "csrapp.CsrDryMngt";
- oParam.method = "reqGetGrupDeptList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_grupdeptlist=grupdeptlist";
- oParam.async = false;
- tranf_submit(oParam);
- ds_main_grupdeptlist.rowposition = -1;
- }
- function grp_biz_grp_sea_cmb_instcd_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
- frmf_inputEnterKey("grp_biz.grp_sea.btn_search", "onclick", new ClickEventInfo);
- }
- function grp_biz_btn_grdadd_onclick(obj:Button, e:ClickEventInfo)
- {
- ds_main_deptlist.addRow();
- var cur_row = ds_main_deptlist.rowposition;
-
- //grd_deptlist.editCell();
- }
- function grp_biz_grd_grupdeptlist_oncellclick(obj:Grid, e:GridClickEventInfo)
- {
- if(e.row > -1 && e.col > -1){
- if(ds_main_grupdeptlist.getRowType(ds_main_grupdeptlist.rowposition) == "1") {
- fSearch2();
- grp_biz.btn_grdadd.enable= true;
- grp_biz.btn_save.enable= true;
- }
- }
- }
- function fSearch2() {
- dsf_makeValue(ds_send_reqdata1,"grupdeptcd", "string", grp_biz.grd_grupdeptlist.getCellValue(ds_main_grupdeptlist.rowposition, grp_biz.grd_grupdeptlist.getBindCellIndex("body","grupdeptcd"))); //청구부서구분코드
-
- var oParam = {};
- oParam.id = "TRMNG00406";
- oParam.service = "csrapp.CsrDryMngt";
- oParam.method = "reqGetDeptList";
- oParam.inds = "req=ds_send_reqdata1";
- oParam.outds = "ds_main_deptlist=deptlist";
- oParam.async = false;
- tranf_submit(oParam);
-
- ds_main_deptlist.rowposition = -1;
- }
- function grp_biz_button1_onclick(obj:Button, e:ClickEventInfo)
- {
- fInitialize();
- }
- function grp_biz_btn_save_onclick(obj:Button, e:ClickEventInfo)
- {
- fsave();
- fSearch2();
- }
- function fsave(){
- var updtdata = grdf_getGridUpdateData(grp_biz.grd_deptlist);
- grdf_setStatusColumn(updtdata, "status");
-
- if (updtdata.rowcount < 1)
- {
- sysf_messageBox("변경된 데이터가","I004");
- return;
- }
- dsf_createDs("ds_send_reqdata2");
- ds_send_reqdata2.copyData(updtdata, true);
-
- var oParam = {};
- oParam.id = "TXMNG00405";
- oParam.service = "csrapp.CsrDryMngt";
- oParam.method = "reqExeDeptList";
- oParam.inds = "req=ds_send_reqdata2";
- oParam.outds = "";
- oParam.async = false;
- tranf_submit(oParam);
-
- fSearch2();
- }
- function grp_biz_grd_deptlist_onexpanddown(obj:Grid, e:GridMouseEventInfo)
- {
- sysf_setModelProperty("flag", "req");
-
- if (e.col == grp_biz.grd_deptlist.getBindCellIndex("body","deptcd")) {//부서코드 버튼을 눌렀을 때
- ds_copynode.clearData();
- rszfOpenPopUpListByWndName(grp_biz.grd_deptlist,"","deptcd,deptnm","SPMNG00402","","", "Y");
-
- var CSV = frmf_getParameter("SPMNG00402_");
- //frmf_clearParameter("SPMNG00400_");
- dsf_setCSVToDs("ds_copynode", CSV);
- fSettingGoodList("ds_copynode");
- }
- }
- function fSettingGoodList(pnode)
- {
-
- var codynode = ds_copynode.rowcount;
-
- var addRow = ds_main_deptlist.rowcount - 1;
-
- for (var j = 0; j < codynode; j++)
- {
-
- if(addRow > ds_main_deptlist.rowcount - 1)
- {
- misfGridIUD(grp_biz.grd_deptlist,"A");
- addRow = ds_main_deptlist.rowcount - 1;
- }
-
- ds_main_deptlist.updatecontrol = false;
- ds_main_deptlist.enableevent = false;
- ds_main_deptlist.setColumn(addRow, "deptcd" , ds_copynode.getColumn(j, "deptcd"));
- ds_main_deptlist.setColumn(addRow, "deptnm" , ds_copynode.getColumn(j, "depthngnm"));
- ds_main_deptlist.setColumn(addRow, "grupdeptcd" , grp_biz.grd_grupdeptlist.getCellValue(ds_main_grupdeptlist.rowposition, grp_biz.grd_grupdeptlist.getBindCellIndex("body","grupdeptcd")));
- grp_biz.grd_deptlist.showEditor(false);
- ds_main_deptlist.enableevent = true;
- ds_main_deptlist.updatecontrol = true;
-
-
- addRow = addRow + 1;
- }
- }
- function ds_main_deptlist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
- {/*
- SPRSS00230 화면 없음..
- if (grd_deptlist.col == grd_deptlist.colRef("deptcd"))
- {
-
- if(grd_deptlist.valueMatrix(grd_deptlist.row, grd_deptlist.colRef("deptcd")) != "")
- {
- model.removenode("/root/init/main/deptcodelist");
-
- rszfOpenPopUpListByWndName(grd_deptlist,"","deptcd,deptnm","SPRSS00230","","", "Y");
- var CSV = model.getValue(gvParamPath +"/SPRSS00230_/SPRSS00230_value");
-
- setCSVToNode("/root/copynode", CSV, "grd_deptlist");
-
- fSettingGoodList("/root/copynode");
- }
- model.refresh();
- }*/
- }
- function grp_biz_grd_deptlist_oncellclick(obj:Grid, e:GridClickEventInfo)
- {
- //grd_deptlist.editCell();
- }
- function grp_biz_btn_new_onclick(obj:Button, e:ClickEventInfo)
- {
- ds_main_grupdeptlist.addRow();
- }
- function grp_biz_btn_updt_onclick(obj:Button, e:ClickEventInfo)
- {
- if(( ds_main_grupdeptlist.getRowType(ds_main_grupdeptlist.rowposition) =="2" )){
- ds_main_grupdeptlist.deleteRow(ds_main_grupdeptlist.rowposition);
- }else{
- ds_main_grupdeptlist.updatecontrol = false;
- ds_main_grupdeptlist.setRowType(ds_main_grupdeptlist.rowposition, 8);
- ds_main_grupdeptlist.updatecontrol = true;
- }
- }
- function grp_biz_btn_save1_onclick(obj:Button, e:ClickEventInfo)
- {
- var btn = sysf_messageBox("저장하시겠습니까?", "Q");
-
- if(btn == "6") {
-
- fSavData();
- fSearch()
- } else {
- return;
- }
- }
- function fSavData() {
- var updtdata = grdf_getGridUpdateData(grp_biz.grd_grupdeptlist);
-
- grdf_setStatusColumn(updtdata, "status");
-
- dsf_createDs("ds_send_reqdata_grupdeptlist");
- ds_send_reqdata_grupdeptlist.copyData(updtdata, true);
-
- var oParam = {};
- oParam.id = "TXMNG00404";
- oParam.service = "csrapp.CsrDryMngt";
- oParam.method = "reqExeGrupDeptList";
- oParam.inds = "req=ds_send_reqdata_grupdeptlist";
- oParam.outds = "";
- oParam.async = false;
- tranf_submit(oParam);
- }
- function grp_biz_button3_onclick(obj:Button, e:ClickEventInfo)
- {
- if( ds_main_deptlist.rowposition > -1 ){
- var firstRow = grp_biz.grd_deptlist.selectstartrow[0];
- var lastRow = grp_biz.grd_deptlist.selectendrow[grp_biz.grd_deptlist.selectcount-1];
- for(var i = firstRow; i <= lastRow; i++) {
- ds_main_deptlist.enableevent = false;
- ds_main_deptlist.updatecontrol = false;
-
- ds_main_deptlist.setRowType(i, 8);
-
- ds_main_deptlist.updatecontrol = true;
- ds_main_deptlist.enableevent = true;
- }
- }
- }
- ]]></Script>
- </Form>
- </FDL>
|