123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMRSO22900" position="absolute 0 0 1200 762" titletext="물품이동내역승인(물품받는부서)" oninit="SMRSO22900_oninit" onload="SMRSO22900_onload">
- <Layouts>
- <Layout>
- <Static id="caption6" text="물품이동내역승인(물품받는부서)" class="tit_1" position="absolute 0 0 243 25"/>
- <Shape id="line17" class="line_6" position="absolute 0 36 1195 42" anchor="left top right"/>
- <Button id="btn_help" taborder="1" text="도움말" class="btn4" position="absolute 1070 15 1138 37" anchor="top right" onclick="btn_help_onclick"/>
- <Button id="btn_save" taborder="2" text="저장" class="btn4" position="absolute 1138 15 1194 37" anchor="top right" onclick="btn_save_onclick"/>
- <Div id="grp_search" taborder="3" class="div_SA2" position="absolute 0 40 1195 80" anchor="left top right">
- <Layouts>
- <Layout>
- <Button id="btn_search" taborder="6" text="조회" class="btn1" position="absolute 1128 7 1184 29" anchor="top right" onclick="grp_search_btn_search_onclick"/>
- <Shape id="line30" linetype="vertical" class="line_4" position="absolute 1112 5 1118 30" anchor="top right"/>
- <Button id="btn_delivedeptcd" taborder="7" class="icon_search" position="absolute 397 10 413 26" onclick="grp_search_btn_delivedeptcd_onclick"/>
- <Combo id="cmb_instcd" taborder="8" innerdataset="@ds_main_init" codecolumn="cnstcd" datacolumn="cnstnm" class="combo_default" enable="false" position="absolute 67 9 203 28"/>
- <Calendar id="ipt_movetodd" taborder="9" autoselect="true" autoskip="true" position="absolute 810 9 911 28" mask="yyyy-mm-dd"/>
- <Static id="caption20" text="부서:" class="search_name" position="absolute 235 10 316 27"/>
- <Static id="caption4" text="~" position="absolute 798 9 810 29"/>
- <Edit id="ipt_fromdeptcd" taborder="10" autoselect="true" autoskip="true" class="input_default" position="absolute 290 9 395 28" onkeydown="grp_search_ipt_fromdeptcd_onkeydown"/>
- <Calendar id="ipt_movefromdd" taborder="11" autoselect="true" autoskip="true" position="absolute 695 9 796 28" mask="yyyy-mm-dd"/>
- <Static id="cap_instcd" text="기관:" class="search_name" position="absolute 13 10 99 27"/>
- <Edit id="opt_fromdeptcd" taborder="12" readonly="true" class="output" position="absolute 415 9 571 28"/>
- <Static id="caption9" text="이동일자:" class="search_name" position="absolute 614 10 700 27"/>
- </Layout>
- </Layouts>
- </Div>
- <Static id="caption2" text="이동요청내역승인(물품받는부서)" class="tit_2" position="absolute 0 87 215 108"/>
- <Grid id="grd_moveconflist" class="datagrid2" taborder="4" binddataset="ds_main_moveconf_moveconflist" autoenter="select" useinputpanel="false" cellsizingtype="col" autofittype="col" position="absolute 0 108 1195 758" anchor="all">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="23"/>
- <Column size="103"/>
- <Column size="125"/>
- <Column size="234"/>
- <Column size="233"/>
- <Column size="60"/>
- <Column size="170"/>
- <Column size="170"/>
- <Column size="60"/>
- <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" text="규격"/>
- <Cell col="5" text="수량"/>
- <Cell col="6" text="물품보내는부서"/>
- <Cell col="7" text="물품받는부서"/>
- <Cell col="8" text="이동승인"/>
- <Cell col="9" text="caption1"/>
- <Cell col="10" text="caption2"/>
- <Cell col="11"/>
- <Cell col="12"/>
- </Band>
- <Band id="body">
- <Cell celltype="head"/>
- <Cell col="1" displaytype="date" edittype="none" text="bind:movedd" calendardisplaynulltype="nulltext"/>
- <Cell col="2" edittype="none" style="align:left middle;" text="bind:goodcd" enable="false"/>
- <Cell col="3" style="align:left middle;" text="bind:goodhngnm"/>
- <Cell col="4" text="bind:goodspec"/>
- <Cell col="5" displaytype="text" edittype="text" style="align:center middle;" text="bind:moveqty"/>
- <Cell col="6" edittype="none" style="align:left middle;" text="bind:fromdeptnm"/>
- <Cell col="7" edittype="none" style="align:left middle;" text="bind:todeptnm"/>
- <Cell col="8" displaytype="combo" edittype="expr:movegubun == '2' ? 'none' : 'combo'" style="align:center middle;" text="bind:movegubun" combodataset="ds_cmb_movegubun" combocodecol="value" combodatacol="label"/>
- <Cell col="9" text="bind:instcd"/>
- <Cell col="10" text="bind:moveno"/>
- <Cell col="11" text="bind:fromdeptcd"/>
- <Cell col="12" text="bind:todeptcd"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Shape id="line3" class="line_10" position="absolute 0 103 1195 109" anchor="left top right"/>
- <Button id="btn_add" taborder="5" text="전체승인" class="btn2" position="absolute 1130 84 1194 103" anchor="top right" onclick="btn_add_onclick"/>
- </Layout>
- </Layouts>
- <Objects>
- <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="fromdeptcd" type="STRING" size="256"/>
- <Column id="fromdeptnm" type="STRING" size="256"/>
- <Column id="movefromdd" type="STRING" size="256"/>
- <Column id="movetodd" type="STRING" size="256"/>
- <Column id="movegubun" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="instcd"/>
- <Col id="fromdeptcd"/>
- <Col id="fromdeptnm"/>
- <Col id="movefromdd"/>
- <Col id="movetodd"/>
- <Col id="movegubun">2</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_moveconf_moveconflist" 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="goodcd" type="STRING" size="256" sumtext="물품코드"/>
- <Column id="fromdeptcd" type="STRING" size="256" sumtext="From부서"/>
- <Column id="fromdeptnm" type="STRING" size="256" sumtext="From부서"/>
- <Column id="goodhngnm" type="STRING" size="256" sumtext="물품명"/>
- <Column id="goodspec" type="STRING" size="256" sumtext="규격"/>
- <Column id="movedd" type="STRING" size="256" sumtext="이동일자"/>
- <Column id="moveno" type="STRING" size="256" sumtext="이동번호"/>
- <Column id="movegubun" type="STRING" size="256" sumtext="이동구분"/>
- <Column id="todeptcd" type="STRING" size="256" sumtext="To부서"/>
- <Column id="todeptnm" type="STRING" size="256" sumtext="To부서"/>
- <Column id="moveqty" type="STRING" size="256" sumtext="이동수량"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_cmb_movegubun" 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">Y</Col>
- <Col id="value">2</Col>
- </Row>
- <Row>
- <Col id="label">N</Col>
- <Col id="value">1</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cnstnm" type="STRING" size="256"/>
- <Column id="cnstcd" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="grp_search.cmb_instcd" propid="value" datasetid="ds_send_search" columnid="instcd"/>
- <BindItem id="item1" compid="grp_search.ipt_fromdeptcd" propid="value" datasetid="ds_send_search" columnid="fromdeptcd"/>
- <BindItem id="item2" compid="grp_search.opt_fromdeptcd" propid="value" datasetid="ds_send_search" columnid="fromdeptnm"/>
- <BindItem id="item3" compid="grp_search.ipt_movefromdd" propid="value" datasetid="ds_send_search" columnid="movefromdd"/>
- <BindItem id="item4" compid="grp_search.ipt_movetodd" propid="value" datasetid="ds_send_search" columnid="movetodd"/>
- </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 SMRSO22900_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SMRSO22900_onload(obj:Form, e:LoadEventInfo)
- {
- grdf_initGrid(grd_moveconflist);
- grdf_setRowTypeIcon(grd_moveconflist);
-
- misfComboInstCdListMulti("grp_search.cmb_instcd",utlf_getCurrentDate(),"","N");
- ds_send_search.setColumn(0, "instcd", sysf_getUserInfo("dutplceinstcd"));
- ds_send_search.setColumn(0, "movefromdd", utlf_getCurrentDate());
- ds_send_search.setColumn(0, "movetodd", utlf_getCurrentDate());
-
- var instcd = ds_send_search.getColumn(0, "instcd");
-
- if(instcd == "031")
- {
- ds_send_search.setColumn(0, "fromdeptcd", sysf_getUserInfo("dutunitcd"));
- ds_send_search.setColumn(0, "fromdeptnm", sysf_getUserInfo("dutunitnm"));
- }
- else
- {
- ds_send_search.setColumn(0, "fromdeptcd", sysf_getUserInfo("dutplcecd"));
- ds_send_search.setColumn(0, "fromdeptnm", sysf_getUserInfo("dutplcenm"));
- }
- }
- function ds_send_search_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
- {
- if(e.columnid == "fromdeptcd")
- {
- grp_search.ipt_fromdeptcd.value = e.newvalue;
- grp_search.ipt_fromdeptcd.setFocus();
-
- misfValidationCheck("02", "", "fromdeptcd,fromdeptnm" );
- }
- }
- function grp_search_ipt_fromdeptcd_onkeydown(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13)
- {
- obj.updateToDataset();
- }
- }
- function grp_search_btn_delivedeptcd_onclick(obj:Button, e:ClickEventInfo)
- {
- misfOpenPopUpList("02", ds_send_search,"", "fromdeptcd,fromdeptnm");
- }
- function grp_search_btn_search_onclick(obj:Button, e:ClickEventInfo)
- {
- if(utlf_isNull(grp_search.opt_fromdeptcd.value))
- {
- sysf_messageBox("부서가 선택되지 않았습니다. \n\n먼저 부서를 선택하십시요.", "E999", "");
- grp_search.ipt_fromdeptcd.setFocus();
- return;
- }
- if(String(grp_search.ipt_movefromdd.value).length < 8)
- {
- sysf_messageBox("이동일자가 선택되지 않았거나 잘못되었습니다. \n\n먼저 이동일자를 선택하십시요.", "E999", "");
- grp_search.ipt_movefromdd.setFocus();
- return;
- }
- if(String(grp_search.ipt_movetodd.value).length < 8)
- {
- sysf_messageBox("이동일자가 선택되지 않았거나 잘못되었습니다. \n\n먼저 이동일자를 선택하십시요.", "E999", "");
- grp_search.ipt_movetodd.setFocus();
- return;
- }
-
- misfGridInit(grd_moveconflist);
-
- var oParam = {};
- oParam.id = "TRRSO22901";
- oParam.service = "deliveapp.DeliveMngt";
- oParam.method = "reqGetMoveConfList";
- oParam.inds = "req=ds_send_search";
- oParam.outds = "ds_main_moveconf_moveconflist=moveconflist";
- oParam.async = false;
- //oParam.callback = "cf_TRRSO22901";
- tranf_submit(oParam);
- }
- function btn_add_onclick(obj:Button, e:ClickEventInfo)
- {
- for(var i = 0 ; i < ds_main_moveconf_moveconflist.rowcount ; i++)
- {
- var movegubun = ds_main_moveconf_moveconflist.getColumn(i, "movegubun");
-
- if(movegubun != "2")
- {
- ds_main_moveconf_moveconflist.setColumn(i, "movegubun", "2");
- }
- }
- }
- function btn_help_onclick(obj:Button, e:ClickEventInfo)
- {
- frmf_modal("SMRSO22901", "SMRSO22901", "", "", "", "", "", "", "", "", "", "", "M");
- }
- function btn_save_onclick(obj:Button, e:ClickEventInfo)
- {
- var oParam = {};
- oParam.id = "TXRSO22901";
- oParam.service = "deliveapp.DeliveMngt";
- oParam.method = "reqExeMoveConfList";
- oParam.inds = "moveconflist=ds_main_moveconf_moveconflist:u";
- oParam.outds = "";
- oParam.async = false;
- //oParam.callback = "cf_TXRSO22901";
- tranf_submit(oParam);
- }
- ]]></Script>
- </Form>
- </FDL>
|