123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMRSC20800" position="absolute 0 0 1202 740" titletext="외부출처전산장비관리자모드" oninit="SMRSC20800_oninit" onload="SMRSC20800_onload">
- <Layouts>
- <Layout>
- <Static id="caption6" text="외부출처 전산장비 원내 사용/해제 신청 내역" class="tit_1" position="absolute 0 0 355 24"/>
- <Shape id="line17" class="line_6" position="absolute 0 44 1195 50" anchor="left top right"/>
- <Button id="button1" taborder="1" text="초기화" class="btn4" visible="false" position="absolute 1068 23 1136 45" anchor="top right" onclick="button1_onclick"/>
- <Button id="btn_save" taborder="2" text="저장" class="btn4" position="absolute 1137 23 1193 45" anchor="top right" onclick="btn_save_onclick"/>
- <Div id="group2" taborder="3" position="absolute 0 48 1195 88" class="div_SA2" anchor="left top right">
- <Layouts>
- <Layout>
- <Button id="btn_search" taborder="0" text="조회" class="btn1" position="absolute 1119 8 1175 30" anchor="top right" onclick="group2_btn_search_onclick"/>
- <Static id="caption4" text="기관코드 :" class="search_name" position="absolute 10 9 127 26"/>
- <Shape id="line18" linetype="vertical" class="line_4" position="absolute 1101 4 1107 34" anchor="top right"/>
- <Static id="caption14" text="신청일자 :" class="search_name" position="absolute 300 10 417 27"/>
- <Calendar id="ipt_reqdd" taborder="1" class="input_s_essential" position="absolute 385 10 488 29" autoselect="true" autoskip="true"/>
- <Combo id="cmb_instcd" taborder="2" class="combo_default" enable="false" position="absolute 95 10 255 29"/>
- <Calendar id="input3" taborder="3" class="input_s_essential" position="absolute 510 10 613 29" autoselect="true"/>
- <Static id="caption13" text="~" position="absolute 494 10 506 29"/>
- </Layout>
- </Layouts>
- </Div>
- <Static id="caption9" text="신청정보 목록" class="tit_2" position="absolute 0 97 132 120"/>
- <Grid id="grd_reqeqmtlist" class="datagrid2" taborder="4" binddataset="ds_main_reqeqmt_reqeqmtlist" useinputpanel="false" position="absolute 0 118 1195 734" anchor="all" autoenter="select" cellsizingtype="col">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="18" band="left"/>
- <Column size="0"/>
- <Column size="70"/>
- <Column size="84"/>
- <Column size="50"/>
- <Column size="65"/>
- <Column size="65"/>
- <Column size="120"/>
- <Column size="50"/>
- <Column size="200"/>
- <Column size="120"/>
- <Column size="80"/>
- <Column size="200"/>
- <Column size="150"/>
- <Column size="60"/>
- <Column size="50"/>
- <Column size="50"/>
- <Column size="150"/>
- <Column size="150"/>
- <Column size="120"/>
- <Column size="120"/>
- </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="사용자"/>
- <Cell col="9" text="목적"/>
- <Cell col="10" text="휴대전화"/>
- <Cell col="11" text="원내전화"/>
- <Cell col="12" text="이메일"/>
- <Cell col="13" text="장비종류"/>
- <Cell col="14" text="사용순번"/>
- <Cell col="15" text="동"/>
- <Cell col="16" text="층"/>
- <Cell col="17" text="사용위치"/>
- <Cell col="18" text="IP"/>
- <Cell col="19" text="From기간"/>
- <Cell col="20" text="To기간"/>
- </Band>
- <Band id="body">
- <Cell celltype="head"/>
- <Cell col="1" text="bind:instcd"/>
- <Cell col="2" displaytype="date" text="bind:reqdd" calendardisplaynulltype="nulltext"/>
- <Cell col="3" text="bind:reqseqno"/>
- <Cell col="4" text="bind:reqnm"/>
- <Cell col="5" text="bind:reqflag"/>
- <Cell col="6" style="color:#ff0000ff;color2:#ff0000ff;font:arial,9,bold;" text="bind:aprvpsnyn"/>
- <Cell col="7" text="bind:mngtdeptnm"/>
- <Cell col="8" text="bind:usernm"/>
- <Cell col="9" text="bind:usepose"/>
- <Cell col="10" text="bind:hp"/>
- <Cell col="11" text="bind:tel"/>
- <Cell col="12" text="bind:email"/>
- <Cell col="13" text="bind:eqtype"/>
- <Cell col="14" text="bind:outeseqno"/>
- <Cell col="15" text="bind:dong"/>
- <Cell col="16" text="bind:floor"/>
- <Cell col="17" text="bind:usesite"/>
- <Cell col="18" displaytype="text" edittype="text" style="align:center middle;" text="bind:ipaddr"/>
- <Cell col="19" displaytype="date" text="bind:fromdd" calendardisplaynulltype="nulltext"/>
- <Cell col="20" displaytype="date" text="bind:todd" calendardisplaynulltype="nulltext"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Shape id="line1" class="line_10" position="absolute 0 113 1195 119" anchor="left top right"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_send_search" 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="reqddfrom" type="STRING" size="256"/>
- <Column id="reqddto" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="instcd"/>
- <Col id="reqddfrom"/>
- <Col id="reqddto"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_reqeqmt_reqeqmtlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
- <Column id="reqdd" type="STRING" size="256" sumtext="신청일자"/>
- <Column id="reqseqno" type="STRING" size="256" sumtext="신청일련번호"/>
- <Column id="reqnm" type="STRING" size="256" sumtext="신청자ID"/>
- <Column id="reqflag" type="STRING" size="256" sumtext="신청여부"/>
- <Column id="aprvpsnyn" type="STRING" size="256" sumtext="승인여부"/>
- <Column id="mngtdeptnm" type="STRING" size="256" sumtext="신청부서명"/>
- <Column id="usernm" type="STRING" size="256" sumtext="사용자명"/>
- <Column id="usepose" type="STRING" size="256" sumtext="사용목적"/>
- <Column id="hp" type="STRING" size="256" sumtext="휴대전화"/>
- <Column id="tel" type="STRING" size="256" sumtext="원내전화"/>
- <Column id="email" type="STRING" size="256" sumtext="이메일"/>
- <Column id="eqtype" type="STRING" size="256" sumtext="장비종류"/>
- <Column id="outeseqno" type="STRING" size="256" sumtext="장비사용일련번호"/>
- <Column id="dong" type="STRING" size="256" sumtext="동"/>
- <Column id="floor" type="STRING" size="256" sumtext="층"/>
- <Column id="usesite" type="STRING" size="256" sumtext="사용위치"/>
- <Column id="ipaddr" type="STRING" size="256" sumtext="IP주소"/>
- <Column id="fromdd" type="STRING" size="256" sumtext="사용시작일"/>
- <Column id="todd" type="STRING" size="256" sumtext="사용종료일"/>
- <Column id="status" type="STRING" size="256" sumtext="구분"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_send_save_reqeqmtlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="group2.cmb_instcd" propid="value" datasetid="ds_send_search" columnid="instcd"/>
- <BindItem id="item1" compid="group2.ipt_reqdd" propid="value" datasetid="ds_send_search" columnid="reqddfrom"/>
- <BindItem id="item2" compid="group2.input3" propid="value" datasetid="ds_send_search" columnid="reqddto"/>
- </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";
- function SMRSC20800_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SMRSC20800_onload(obj:Form, e:LoadEventInfo)
- {
- grdf_initGrid(grd_reqeqmtlist);
- grdf_setRowTypeIcon(grd_reqeqmtlist, 0);
- fInitialize();
- }
- function fInitialize()
- {
- misfGridInit(grd_reqeqmtlist);
-
- ds_send_search.clearData();
- ds_send_search.addRow();
-
- ds_main_reqeqmt_reqeqmtlist.clearData();
-
- misfComboComCdList("Z0007",group2.cmb_instcd);
- group2.cmb_instcd.value = sysf_getUserInfo("dutplceinstcd");
- ds_send_search.setColumn(0, "reqddfrom", utlf_getCurrentDate());
- ds_send_search.setColumn(0, "reqddto", utlf_getCurrentDate());
- }
- function group2_btn_search_onclick(obj:Button, e:ClickEventInfo)
- {
- var oParam = {};
- oParam.id = "TRRSC20801";
- oParam.service = "reqapp.ReqMngt";
- oParam.method = "reqGetEqmtAdmin";
- oParam.inds = "req=ds_send_search";
- oParam.outds = "ds_main_reqeqmt_reqeqmtlist=reqeqmtlist";
- oParam.async = false;
- oParam.callback = "cf_TRRSC20801";
- tranf_submit(oParam);
- }
- function cf_TRRSC20801(sSvcId, nErrorCode, sErrorMsg)
- {
- if(nErrorCode < 0) return;
- else
- {
- var reqseqno = ds_main_reqeqmt_reqeqmtlist.getColumn(0, "reqseqno") ;
- if(utlf_isNull(reqseqno))
- {
- sysf_messageBox("조회내역이 없습니다.", "E999", "");
- fInitialize();
- }
- }
- }
- function button1_onclick(obj:Button, e:ClickEventInfo)
- {
- ds_send_search.clearData();
- ds_send_search.addRow();
-
- ds_main_reqeqmt_reqeqmtlist.clearData();
-
- fInitialize();
- btn_save.enable = true;
- }
- function btn_save_onclick(obj:Button, e:ClickEventInfo)
- {
- if(ds_main_reqeqmt_reqeqmtlist.rowcount != 0)
- {
- var updategrid = grdf_getGridUpdateData(grd_reqeqmtlist);
- grdf_setStatusColumn(updategrid, "status");
- ds_send_save_reqeqmtlist.copyData(updategrid, true);
- }
-
- var oParam = {};
- oParam.id = "TXRSC20801";
- oParam.service = "reqapp.ReqMngt";
- oParam.method = "reqExeSaveEqmtAdmin";
- oParam.inds = "reqeqmtlist=ds_send_save_reqeqmtlist";
- oParam.outds = "";
- oParam.async = false;
- oParam.callback = "cf_TXRSC20801";
- tranf_submit(oParam);
- }
- function cf_TXRSC20801(sSvcId, nErrorCode, sErrorMsg)
- {
- if(nErrorCode < 0)
- {
- return;
- }
- else
- {
- group2.btn_search.click();
- sysf_messageBox(" ", "I001", "");
- }
- }
- ]]></Script>
- </Form>
- </FDL>
|