123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMRSD02701" position="absolute 0 0 1203 751" titletext="불출확정 집계 부서관리" oninit="SMRSD02701_oninit" onload="SMRSD02701_onload" scrollbars="none">
- <Layouts>
- <Layout>
- <Div position="absolute 0 0 1195 25" id="grp_tle">
- <Layouts>
- <Layout width="1195" height="25">
- <Static text="불출확정 집계 부서 관리" position="absolute 0 0 186 25" id="caption6" class="tit_1"/>
- </Layout>
- </Layouts>
- </Div>
- <Div position="absolute 0 26 1195 51" id="group1">
- <Layouts>
- <Layout>
- <Shape id="line17" class="line_1" position="absolute 0 19 1195 25" anchor="default"/>
- <Button position="absolute 1138 0 1194 22" id="btn_save" class="btn4" taborder="8" text="저장" anchor="default" onclick="group1_btn_save_onclick"/>
- </Layout>
- </Layouts>
- </Div>
- <Div position="absolute 0 63 1195 785" id="group3" scrollbars="autoboth">
- <Layouts>
- <Layout>
- <Div position="absolute 0 2 1195 38" align="align:center top;" id="grp_search" anchor="default">
- <Layouts>
- <Layout>
- <Shape position="absolute 0 0 1195 35" id="roundrect1" type="roundrectangle" anchor="default"/>
- <Button position="absolute 1121 7 1177 29" id="btn_search" class="btn1" taborder="7" text="조회" anchor="default" onclick="group3_grp_search_btn_search_onclick"/>
- <Combo position="absolute 117 10 253 29" align="align:center middle;" id="cmb_instcd" class="combo_default" enable="false" taborder="1" innerdataset="@ds_main_init" datacolumn="cnstnm" codecolumn="cnstcd" anchor="default" style=":disabled {align:center middle;}"/>
- <Static text="기관코드:" position="absolute 33 10 119 27" id="cap_instcd" class="search_name" anchor="default"/>
- <Static text="부서:" position="absolute 661 10 742 27" align="align:center middle;" id="caption20" class="search_name" anchor="default"/>
- <Shape position="absolute 1097 5 1103 32" linetype="vertical" id="line30" class="line_4" anchor="default"/>
- <Button position="absolute 853 10 869 26" id="btn_delivedeptcd" class="icon_search" taborder="3" text="" anchor="default" onclick="group3_grp_search_btn_delivedeptcd_onclick"/>
- <Edit position="absolute 746 10 851 29" id="ipt_reqdeptcd" class="input_default" taborder="2" anchor="default" onkeydown="group3_grp_search_ipt_reqdeptcd_onkeydown"/>
- <Edit readonly="true" position="absolute 871 10 1027 29" id="opt_reqdeptnm" anchor="default" class="output"/>
- </Layout>
- </Layouts>
- </Div>
- <Shape position="absolute 0 63 1195 69" linetype="horizontal" id="line1" class="line_10" anchor="default"/>
- <Static text="집계 부서 리스트" position="absolute 0 46 127 62" id="caption1" class="tit_2" anchor="default"/>
- <Button position="absolute 1084 42 1137 61" id="btn_rowinsert" class="btn2" taborder="20" text="행추가" anchor="default" onclick="group3_btn_rowinsert_onclick"/>
- <Grid position="absolute 0 67 1195 679" id="grd_deptlist" class="datagrid2" binddataset="ds_main_deptinfo_deptlist" anchor="default" onexpanddown="group3_grd_deptlist_onexpanddown" onkeydown="group3_grd_deptlist_onkeydown" autoenter="select" cellsizingtype="both" extendsizetype="row" selecttype="multirow">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25" band="left"/>
- <Column size="0"/>
- <Column size="100"/>
- <Column size="150"/>
- <Column size="100"/>
- <Column size="150"/>
- <Column size="500"/>
- </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="비고"/>
- </Band>
- <Band id="body">
- <Cell celltype="head"/>
- <Cell col="1" text="bind:instcd"/>
- <Cell col="2" displaytype="text" edittype="expr:edittype" style="align:center middle;" text="bind:deptcd" expandshow="show" enable="false"/>
- <Cell col="3" style="align:center middle;" text="bind:deptnm" enable="false"/>
- <Cell col="4" displaytype="text" edittype="text" text="bind:supdeptcd" editautoselect="true"/>
- <Cell col="5" displaytype="text" edittype="text" text="bind:supdeptnm" editautoselect="true" expandshow="show"/>
- <Cell col="6" displaytype="text" edittype="text" text="bind:cmt" editautoselect="true"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button position="absolute 1138 42 1191 61" id="btn_choidel" class="btn2" taborder="21" text="행삭제" anchor="default" onclick="group3_btn_choidel_onclick"/>
- </Layout>
- </Layouts>
- </Div>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_main_deptinfo_deptlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="instcd" type="STRING" size="255"/>
- <Column id="deptcd" type="STRING" size="255"/>
- <Column id="deptnm" type="STRING" size="255"/>
- <Column id="supdeptcd" type="STRING" size="255"/>
- <Column id="supdeptnm" type="STRING" size="255"/>
- <Column id="cmt" type="STRING" size="255"/>
- <Column id="edittype" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_send_search" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_send_search_oncolumnchanged">
- <ColumnInfo>
- <Column id="instcd" type="STRING" size="256"/>
- <Column id="reqdeptcd" type="STRING" size="256"/>
- <Column id="reqdeptnm" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_send_save_deptlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_temp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_popdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="srchdd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_popreq" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="count" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_popsubdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_main_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="group3.grp_search.cmb_instcd" propid="value" datasetid="ds_send_search" columnid="instcd"/>
- <BindItem id="item1" compid="group3.grp_search.ipt_reqdeptcd" propid="value" datasetid="ds_send_search" columnid="reqdeptcd"/>
- <BindItem id="item2" compid="group3.grp_search.opt_reqdeptnm" propid="value" datasetid="ds_send_search" columnid="reqdeptnm"/>
- </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";
- var arErrorCode = new HashArray();
- function cf_TXRSD02701(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- if(nErrorCode < 0) return;
- utlf_addLog("***** cf_TXRSD02701 *****");
- }
- function SMRSD02701_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj); //폼 초기화
- }
- function SMRSD02701_onload(obj:Form, e:LoadEventInfo)
- {
- grdf_setRowTypeIcon(group3.grd_deptlist,0);
- //화면 Control을 초기화한다
- misfGridInit(group3.grd_deptlist);
- misfGetAndSetUserInfo(); //접속자기본정보
-
- misfComboComCdListMulti("Z0007","group3.grp_search.cmb_instcd");
-
- ds_send_search.setColumn(0, "instcd", sysf_getUserInfo("dutplceinstcd")); //기관 설정
- }
- function group1_btn_save_onclick(obj:Button, e:ClickEventInfo)
- {
- var updtdata = grdf_getGridUpdateData(group3.grd_deptlist);
- grdf_setStatusColumn(updtdata, "status");
-
- dsf_createDs("ds_send_save_deptlist");
- ds_send_save_deptlist.copyData(updtdata, true);
- var oParam = {};
- oParam.id = "TXRSD02701";
- oParam.service = "reqapp.ReqMngt";
- oParam.method = "reqExeDeptSumList";
- oParam.inds = "deptlist=ds_send_save_deptlist";
- oParam.outds = "";
- oParam.async = false;
- oParam.callback = "cf_TXRSD02701";
- tranf_submit(oParam);
- if(arErrorCode.pop("TXRSD02701") > -1){
- frmf_inputEnterKey("group3.grp_search.btn_search", "onclick", new ClickEventInfo);
- }
- }
- function group3_grp_search_btn_search_onclick(obj:Button, e:ClickEventInfo)
- {
- var oParam = {};
- oParam.id = "TRRSD02701";
- oParam.service = "reqapp.ReqMngt";
- oParam.method = "reqGetDeptSumList";
- oParam.inds = "req=ds_send_search";
- oParam.outds = "ds_main_deptinfo_deptlist=deptlist";
- oParam.async = false;
- tranf_submit(oParam);
-
- ds_main_deptinfo_deptlist.addColumn("edittype", "string");
- ds_main_deptinfo_deptlist.updatecontrol = false;
- dsf_setDefaultVal(ds_main_deptinfo_deptlist, "edittype:none");
- ds_main_deptinfo_deptlist.updatecontrol = true;
- }
- function group3_grp_search_btn_delivedeptcd_onclick(obj:Button, e:ClickEventInfo)
- {
- var vOrigDeptcd = group3.grp_search.ipt_reqdeptcd.value; //popup을 열기전 부서 저장
-
- var recv_list = "reqdeptcd,reqdeptnm";
- misfOpenPopUpList("02", group3.grp_search.ipt_reqdeptcd,"", recv_list) ;
- }
- function ds_send_search_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
- {
- if(e.columnid == "reqdeptcd"){
- group3.grp_search.ipt_reqdeptcd.updateToDataset();
- group3.grp_search.ipt_reqdeptcd.setFocus();
- misfValidationCheck("02", "", "reqdeptcd,reqdeptnm" );
-
- if(ds_main_deptinfo_deptlist.rowcount > 0) {
- misfGridInit(group3.grd_deptlist);
- }
- }
- }
- function group3_grp_search_ipt_reqdeptcd_onkeydown(obj:Edit, e:KeyEventInfo)
- {
- if (e.keycode == 13) {
- obj.updateToDataset();
- misfValidationCheck("02", "", "reqdeptcd,reqdeptnm" );
-
- if(ds_main_deptinfo_deptlist.rowcount > 0) {
- misfGridInit(group3.grd_deptlist);
- }
- }
- }
- function group3_btn_rowinsert_onclick(obj:Button, e:ClickEventInfo)
- {
- //misfGridIUD(group3.grd_deptlist, "A");
- if(utlf_isNull(ds_main_deptinfo_deptlist.getColumnInfo("instcd"))){
- ds_main_deptinfo_deptlist.addColumn("instcd", "string");
- ds_main_deptinfo_deptlist.addColumn("deptcd", "string");
- ds_main_deptinfo_deptlist.addColumn("deptnm", "string");
- ds_main_deptinfo_deptlist.addColumn("supdeptcd", "string");
- ds_main_deptinfo_deptlist.addColumn("supdeptnm", "string");
- ds_main_deptinfo_deptlist.addColumn("cmt", "string");
- ds_main_deptinfo_deptlist.addColumn("edittype", "string");
- }
- var addrow = ds_main_deptinfo_deptlist.addRow();
-
- ds_main_deptinfo_deptlist.updatecontrol = false;
- ds_main_deptinfo_deptlist.setColumn(addrow, "edittype", "normal");
- ds_main_deptinfo_deptlist.selectRow(addrow, true);
- ds_main_deptinfo_deptlist.updatecontrol = true;
- }
- function group3_grd_deptlist_onexpanddown(obj:Grid, e:GridMouseEventInfo)
- {
- if(e.cell == group3.grd_deptlist.getBindCellIndex("body","supdeptnm")){
- misfOpenPopUpList("02", group3.grd_deptlist,"", "supdeptcd,supdeptnm");
- }else if(e.cell == group3.grd_deptlist.getBindCellIndex("body","deptcd")){
- misfOpenPopUpList("02", group3.grd_deptlist,"", "deptcd,deptnm");
- }
- }
- function group3_grd_deptlist_onkeydown(obj:Grid, e:KeyEventInfo)
- {
- if (e.keycode == 13) {
- //Grid 에서 엔터 입력시 다음행 수정
- if(ds_main_deptinfo_deptlist.rowposition + 1 < ds_main_deptinfo_deptlist.rowcount){
- ds_main_deptinfo_deptlist.rowposition = ds_main_deptinfo_deptlist.rowposition + 1;
- }
- //misfNextRow(grd_deptlist);
- }
- }
- function group3_btn_choidel_onclick(obj:Button, e:ClickEventInfo)
- {
- if(ds_main_deptinfo_deptlist.getRowType(ds_main_deptinfo_deptlist.rowposition) == 2){
- ds_main_deptinfo_deptlist.deleteRow(ds_main_deptinfo_deptlist.rowposition);
- }else{
- ds_main_deptinfo_deptlist.enableevent = false;
- ds_main_deptinfo_deptlist.updatecontrol = false;
- ds_main_deptinfo_deptlist.setRowType(ds_main_deptinfo_deptlist.rowposition, 8);
- ds_main_deptinfo_deptlist.updatecontrol = true;
- ds_main_deptinfo_deptlist.enableevent = true;
- }
- }
- ]]></Script>
- </Form>
- </FDL>
|