123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMMNG03502" position="absolute 0 0 1191 718" titletext="운송수거관리" oninit="SMMNG03502_oninit" onload="SMMNG03502_onload">
- <Layouts>
- <Layout>
- <Static id="caption6" text="수거 관리" class="tit_1" position="absolute 0 0 186 25"/>
- <Div id="group4" taborder="3" position="absolute 0 25 1185 65" class="div_SA" anchor="left top right">
- <Layouts>
- <Layout>
- <Static id="cap_instcd" text="기관코드 :" class="search_name" position="absolute 10 11 96 28"/>
- <Edit id="opt_instcdnm" taborder="1" readonly="true" position="absolute 100 11 235 30" autoselect="true" autoskip="true" class="output"/>
- <Static id="cap_csrreqdeptcd" text="업무일자:" class="search_name" position="absolute 254 12 327 29"/>
- <Calendar id="ipt_workdd" taborder="2" class="input_default" position="absolute 330 11 415 30" mask="yyyy-mm-dd" autoselect="true" autoskip="true" onchanged="group4_ipt_workdd_onchanged"/>
- <Static id="caption1" text="부서구분:" class="search_name" position="absolute 440 12 513 29"/>
- <Combo id="cmb_deptcd" taborder="3" innerdataset="@ds_init_grupcdinfo_grupcdlist" codecolumn="cdid" datacolumn="cdnm" position="absolute 521 11 621 30"/>
- <Static id="caption2" text="업무구분:" class="search_name" position="absolute 645 12 718 29"/>
- <Radio id="rdo_workflag" taborder="4" columncount="-1" rowcount="-1" innerdataset="@ds_init_grupcdinfo1_grupcdlist" codecolumn="cdid" datacolumn="cdnm" position="absolute 722 9 1043 32" style="itempadding:5 5 5 5;"/>
- <Shape id="line2" linetype="vertical" class="line_4" position="absolute 1047 6 1053 31" anchor="top right"/>
- <Button id="btn_search" taborder="5" text="조회" class="btn1" position="absolute 1062 8 1118 30" anchor="top right" onclick="group4_btn_search_onclick"/>
- <Button id="btn_prt" taborder="6" text="출력" class="btn1" position="absolute 1125 8 1181 30" anchor="top right"/>
- </Layout>
- </Layouts>
- </Div>
- <Static id="caption12" text="수거 관리" class="tit_2" position="absolute 0 76 138 98"/>
- <Shape id="line1" linetype="horizontal" class="line_10" position="absolute 0 91 1185 100" anchor="left top right"/>
- <Button id="btn_sav" taborder="4" text="저장" class="btn5" position="absolute 1143 72 1185 91" anchor="top right" onclick="btn_sav_onclick"/>
- <Grid id="grd_takelist" taborder="5" binddataset="ds_main_takeinfo_takelist" useinputpanel="false" position="absolute 0 97 1185 712" autoenter="select" autofittype="col" cellsizingtype="col" anchor="all" onexpanddown="grd_takelist_onexpanddown">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="22"/>
- <Column size="70"/>
- <Column size="100"/>
- <Column size="80"/>
- <Column size="70"/>
- <Column size="150"/>
- <Column size="100"/>
- <Column size="55"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="70"/>
- <Column size="120"/>
- <Column size="130"/>
- <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="무게"/>
- <Cell col="10" text="수거자"/>
- <Cell col="11" text="수거일시"/>
- <Cell col="12" text="비고"/>
- <Cell col="13"/>
- <Cell col="14"/>
- <Cell col="15"/>
- </Band>
- <Band id="body">
- <Cell celltype="head"/>
- <Cell col="1" displaytype="combo" style="padding:0 0 0 2;" text="bind:workflag" combodataset="ds_init_grupcdinfo1_grupcdlist" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
- <Cell col="2" displaytype="combo" edittype="combo" style="padding:0 0 0 2;" text="bind:deptcd" combodataset="ds_init_grupcdinfo_grupcdlist" combocodecol="cdid" combodatacol="cdnm"/>
- <Cell col="3" displaytype="text" edittype="text" text="bind:goodcd" expandshow="show" enable="false"/>
- <Cell col="4" text="bind:goodcdseq"/>
- <Cell col="5" text="bind:lngoodnm"/>
- <Cell col="6" text="bind:goodmodel"/>
- <Cell col="7" text="bind:goodunit"/>
- <Cell col="8" displaytype="number" edittype="text" text="bind:takecnt"/>
- <Cell col="9" displaytype="text" edittype="text" text="bind:weight"/>
- <Cell col="10" text="bind:takenm"/>
- <Cell col="11" text="bind:takedt" mask="####-##-## ##:##" maskchar=" "/>
- <Cell col="12" displaytype="text" edittype="text" text="bind:remark"/>
- <Cell col="13" text="bind:takeid"/>
- <Cell col="14" text="bind:workdd"/>
- <Cell col="15" text="bind:workno"/>
- </Band>
- </Format>
- <Format id="format_copy"/>
- </Formats>
- </Grid>
- <Button id="btn_add" taborder="6" text="추가" class="btn2" position="absolute 1053 72 1095 91" anchor="top right" onclick="btn_add_onclick"/>
- <Button id="btn_del" taborder="7" text="삭제" class="btn2" position="absolute 1098 72 1140 91" anchor="top right" onclick="btn_del_onclick"/>
- <Div id="grp_lncd" taborder="8" visible="false" position="absolute 215 207 683 342" style="background:#339966ff;border:1 solid #000000ff ;">
- <Layouts>
- <Layout>
- <Grid id="grd_lncdlist" taborder="1" binddataset="ds_init_lncdinfo_lncdlist" useinputpanel="false" position="absolute 2 31 465 104" anchor="default" autoenter="select" autofittype="col" cellsizingtype="col">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="80"/>
- <Column size="60"/>
- <Column size="150"/>
- <Column size="86"/>
- <Column size="83"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell text="물품코드"/>
- <Cell col="1" text="상세코드"/>
- <Cell col="2" text="린넨품명"/>
- <Cell col="3" text="상세규격"/>
- <Cell col="4" text="단위"/>
- </Band>
- <Band id="body">
- <Cell text="bind:goodcd"/>
- <Cell col="1" text="bind:goodcdseq"/>
- <Cell col="2" text="bind:lngoodnm"/>
- <Cell col="3" text="bind:goodmodel"/>
- <Cell col="4" text="bind:goodunit"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button id="button1" taborder="2" text="닫기" class="btn2" position="absolute 419 109 461 128" anchor="default"/>
- <Static id="caption3" text="물품목록" class="search_name" position="absolute 10 10 96 27" anchor="default"/>
- </Layout>
- </Layouts>
- </Div>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="instcdnm" type="STRING" size="256"/>
- <Column id="workdd" type="STRING" size="256"/>
- <Column id="deptcd" type="STRING" size="256"/>
- <Column id="workflag" type="STRING" size="256"/>
- <Column id="cdgrupid1" type="STRING" size="256"/>
- <Column id="cdgrupid" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="instcdnm"/>
- <Col id="workdd"/>
- <Col id="deptcd"/>
- <Col id="workflag"/>
- <Col id="cdgrupid1">T66</Col>
- <Col id="cdgrupid">T82</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_grupcdinfo1_grupcdlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cdnm" type="STRING" size="256"/>
- <Column id="cdid" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_grupcdinfo_grupcdlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cdid" type="STRING" size="256"/>
- <Column id="cdnm" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_takeinfo_takelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="workflag" type="STRING" size="256" sumtext="업무구분"/>
- <Column id="workno" type="STRING" size="256" sumtext="일련번호"/>
- <Column id="deptcd" type="STRING" size="256" sumtext="부서코드"/>
- <Column id="goodcd" type="STRING" size="256" sumtext="물품코드"/>
- <Column id="goodcdseq" type="STRING" size="256" sumtext="상세코드"/>
- <Column id="lngoodnm" type="STRING" size="256" sumtext="린넨품명"/>
- <Column id="goodmodel" type="STRING" size="256" sumtext="상세코드"/>
- <Column id="goodunit" type="STRING" size="256" sumtext="단위"/>
- <Column id="takecnt" type="STRING" size="256" sumtext="수거량"/>
- <Column id="weight" type="STRING" size="256" sumtext="무게"/>
- <Column id="takenm" type="STRING" size="256" sumtext="수거자명"/>
- <Column id="takeid" type="STRING" size="256" sumtext="수거자id"/>
- <Column id="takedt" type="STRING" size="256" sumtext="상세코드"/>
- <Column id="remark" type="STRING" size="256" sumtext="비고"/>
- <Column id="workdd" type="STRING" size="256" sumtext="업무일자"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_lncdinfo_lncdlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="goodcd" type="STRING" size="256" sumtext="물품코드"/>
- <Column id="goodcdseq" type="STRING" size="256" sumtext="상세코드"/>
- <Column id="lngoodnm" type="STRING" size="256" sumtext="린넨품명"/>
- <Column id="goodmodel" type="STRING" size="256" sumtext="상세코드"/>
- <Column id="goodunit" type="STRING" size="256" sumtext="단위"/>
- </ColumnInfo>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="group4.opt_instcdnm" propid="value" datasetid="ds_send" columnid="instcdnm"/>
- <BindItem id="item1" compid="group4.ipt_workdd" propid="value" datasetid="ds_send" columnid="workdd"/>
- <BindItem id="item2" compid="group4.cmb_deptcd" propid="value" datasetid="ds_send" columnid="deptcd"/>
- <BindItem id="item3" compid="group4.rdo_workflag" propid="value" datasetid="ds_send" columnid="workflag"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2017-07-11
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2017-07-11 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- include "com_commonxp::comm_main.xjs";
- function SMMNG03502_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SMMNG03502_onload(obj:Form, e:LoadEventInfo)
- {
- grdf_initGrid(grd_takelist);
- grdf_setRowTypeIcon(grd_takelist, 0);
- grdf_initGrid(grp_lncd.grd_lncdlist);
- fInitialize();
- }
- function fInitialize()
- {
- group4.opt_instcdnm.value = sysf_getUserInfo("dutplceinstnm");
-
- ds_send.setColumn(0, "workdd", utlf_getCurrentDate());
-
- var oParam = {};
- oParam.id = "TRMNG02305";
- oParam.service = "csrapp.CsrDryMngt";
- oParam.method = "reqGetGrupcdList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_init_grupcdinfo_grupcdlist=grupcdlist";
- oParam.async = false;
- //oParam.callback = "cf_TRMNG02305";
- tranf_submit(oParam);
-
- dsf_createDsRow("ds_req", [{col:"cdgrupid", type:"STRING", size:256 , val : ds_send.getColumn(0, "cdgrupid1")}]);
-
- var oParam = {};
- oParam.id = "TRMNG02305";
- oParam.service = "csrapp.CsrDryMngt";
- oParam.method = "reqGetGrupcdList";
- oParam.inds = "req=ds_req";
- oParam.outds = "ds_init_grupcdinfo1_grupcdlist=grupcdlist";
- oParam.async = false;
- //oParam.callback = "cf_TRMNG02305";
- tranf_submit(oParam);
-
- group4.rdo_workflag.value = "L";
- group4.rdo_workflag.enable = false;
- grd_takelist.setCellProperty("Body", grd_takelist.getBindCellIndex("Body", "goodcd"), "edittype", "none");
- frmf_addComboItem("group4.cmb_deptcd","--전체--","","above");
-
- var oParam = {};
- oParam.id = "TRMNG03504";
- oParam.service = "csrapp.CsrDryMngt";
- oParam.method = "reqGetTakeLncdList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_init_lncdinfo_lncdlist=lncdlist";
- oParam.async = false;
- //oParam.callback = "cf_TRMNG03504";
- tranf_submit(oParam);
- }
- function group4_ipt_workdd_onchanged(obj:Calendar, e:ChangeEventInfo)
- {
- fSearch();
- }
- function group4_btn_search_onclick(obj:Button, e:ClickEventInfo)
- {
- fSearch();
- }
- function fSearch()
- {
- var oParam = {};
- oParam.id = "TRMNG03503";
- oParam.service = "csrapp.CsrDryMngt";
- oParam.method = "reqGetTakeList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_takeinfo_takelist=takelist";
- oParam.async = false;
- //oParam.callback = "cf_TRMNG03503";
- tranf_submit(oParam);
- }
- function btn_add_onclick(obj:Button, e:ClickEventInfo)
- {
- var addRow = ds_main_takeinfo_takelist.addRow();
- ds_main_takeinfo_takelist.setColumn(addRow, "workflag", group4.rdo_workflag.value);
- }
- function btn_del_onclick(obj:Button, e:ClickEventInfo)
- {
- if ( ds_main_takeinfo_takelist.getRowType(ds_main_takeinfo_takelist.rowposition) == 2)
- {
- ds_main_takeinfo_takelist.deleteRow(ds_main_takeinfo_takelist.rowposition);
- }
- else
- {
- ds_main_takeinfo_takelist.updatecontrol = false;
- ds_main_takeinfo_takelist.setRowType(ds_main_takeinfo_takelist.rowposition, "d");
- ds_main_takeinfo_takelist.updatecontrol = true;
- }
- }
- function btn_sav_onclick(obj:Button, e:ClickEventInfo)
- {
- var oParam = {};
- oParam.id = "TXMNG03502";
- oParam.service = "csrapp.CsrDryMngt";
- oParam.method = "reqExeTakeList";
- oParam.inds = "req=ds_main_takeinfo_takelist:u";
- oParam.outds = "";
- oParam.async = false;
- //oParam.callback = "cf_TXMNG03502";
- tranf_submit(oParam);
- }
- function grd_takelist_onexpanddown(obj:Grid, e:GridMouseEventInfo)
- {
- grp_lncd.visible = true;
- }
- ]]></Script>
- </Form>
- </FDL>
|