123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMMNG03400" position="absolute 0 0 1193 720" titletext="세탁물 폐품 관리" oninit="SMMNG03400_oninit" onload="SMMNG03400_onload">
- <Layouts>
- <Layout>
- <Div position="absolute 0 65 1185 710" id="grp_biz" scrollbars="autoboth">
- <Layouts>
- <Layout>
- <Static text="세탁물 폐품 관리" position="absolute 1 8 122 25" id="caption12" class="tit_2" anchor="default"/>
- <Shape position="absolute 0 26 1185 31" linetype="horizontal" id="line1" class="line_10" anchor="default"/>
- <Button position="absolute 1137 3 1179 22" id="btn_sav" class="btn5" text="저장" anchor="default" onclick="grp_biz_btn_sav_onclick"/>
- <Grid position="absolute 0 30 1185 645" id="grd_whiolist" visible="true" binddataset="ds_main_whioinfo_whiolist" anchor="default" autoenter="select" autofittype="col" onkeydown="grp_biz_grd_whiolist_onkeydown" cellsizebandtype="allband" cellsizingtype="col">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="24"/>
- <Column size="136"/>
- <Column size="197"/>
- <Column size="182"/>
- <Column size="101"/>
- <Column size="100"/>
- <Column size="110"/>
- <Column size="308"/>
- <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="seq"/>
- <Cell col="9" text="flag"/>
- <Cell col="10" text="일자"/>
- </Band>
- <Band id="body">
- <Cell celltype="head"/>
- <Cell col="1" style="align:left middle;" text="bind:goodcd"/>
- <Cell col="2" style="align:left middle;" text="bind:goodnm"/>
- <Cell col="3" style="align:left middle;" text="bind:goodspec"/>
- <Cell col="4" displaytype="number" edittype="text" text="bind:outcnt"/>
- <Cell col="5" displaytype="number" edittype="text" text="bind:delcnt"/>
- <Cell col="6" text="bind:fstrgstrid"/>
- <Cell col="7" displaytype="text" edittype="text" style="align:left middle;" text="bind:remark1"/>
- <Cell col="8" text="bind:ioseq"/>
- <Cell col="9" text="bind:ioflag"/>
- <Cell col="10" text="bind:iodd"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Radio position="absolute 220 5 610 20" id="rdo_gubuncd" enable="false" visible="false" columncount="-1" codecolumn="codecolumn" datacolumn="datacolumn" rowcount="-1" anchor="default">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">01</Col>
- <Col id="datacolumn">물품마스터</Col>
- </Row>
- <Row>
- <Col id="codecolumn">02</Col>
- <Col id="datacolumn">창고마스터</Col>
- </Row>
- </Rows>
- </Dataset>
- </Radio>
- </Layout>
- </Layouts>
- </Div>
- <Shape position="absolute 0 25 1185 60" id="roundrect1" class="roundrect_search" type="roundrectangle"/>
- <Button position="absolute 1007 32 1063 54" id="btn_search" class="btn1" taborder="2" text="조회" onclick="btn_search_onclick"/>
- <Shape position="absolute 997 30 1003 55" linetype="vertical" id="line2" class="line_4"/>
- <Static text="일자:" position="absolute 285 35 366 52" id="cap_csrreqdeptcd" class="search_name"/>
- <Calendar position="absolute 345 33 430 52" id="ipt_iodd" class="input_default" mask="yyyy-mm-dd" oncloseup="ipt_iodd_oncloseup"/>
- <Static text="기관코드 :" position="absolute 10 35 96 52" id="cap_instcd" class="search_name"/>
- <Edit readonly="true" position="absolute 100 33 275 52" align="align:center middle;" id="opt_instcdnm" class="output"/>
- <Button position="absolute 1125 32 1181 54" id="btn_prt" class="btn6" text="출력" onclick="btn_prt_onclick"/>
- <Radio position="absolute 525 33 700 53" id="rdo_selyymmdd" columncount="-1" codecolumn="codecolumn" datacolumn="datacolumn" rowcount="-1" onitemchanged="rdo_selyymmdd_onitemchanged">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">DD</Col>
- <Col id="datacolumn">일별</Col>
- </Row>
- <Row>
- <Col id="codecolumn">MM</Col>
- <Col id="datacolumn">월별</Col>
- </Row>
- <Row>
- <Col id="codecolumn">YY</Col>
- <Col id="datacolumn">년별</Col>
- </Row>
- </Rows>
- </Dataset>
- </Radio>
- <Static text="일자구분:" position="absolute 440 35 525 52" id="caption2" class="search_name"/>
- <Button position="absolute 1066 32 1122 54" id="button3" class="btn7" text="엑셀" onclick="button3_onclick"/>
- <Static id="caption6" text="세탁물 폐품 관리" class="tit_1" position="absolute 0 0 186 25"/>
- </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="iodd" type="STRING" size="256"/>
- <Column id="gubuncd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="instcdnm"/>
- <Col id="iodd"/>
- <Col id="gubuncd">01</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="iodd" type="STRING" size="256"/>
- <Column id="selyymmdd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="iodd"/>
- <Col id="selyymmdd">DD</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_whioinfo_whiolist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_send_savedata_whiolist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_main_whiorexinfo_whiorexlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_send_report_csmtrexinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="opt_instcdnm" propid="value" datasetid="ds_send" columnid="instcdnm"/>
- <BindItem id="item1" compid="ipt_iodd" propid="value" datasetid="ds_cond" columnid="iodd"/>
- <BindItem id="item2" compid="rdo_selyymmdd" propid="value" datasetid="ds_cond" columnid="selyymmdd"/>
- <BindItem id="item3" compid="grp_biz.rdo_gubuncd" propid="value" datasetid="ds_send" columnid="gubuncd"/>
- </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";
- var arErrorCode = new HashArray();
- function SMMNG03400_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj); //폼 초기화
- grdf_setRowTypeIcon(grp_biz.grd_whiolist, 0);
- }
- function SMMNG03400_onload(obj:Form, e:LoadEventInfo)
- {
- fInitialize();
- }
- // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
- function fInitialize()
- {
- opt_instcdnm.value = sysf_getUserInfo("dutplceinstnm");////기관코드
- ipt_iodd.value = utlf_getCurrentDate();//년월
-
- fSearch();
- }
- function fSearch() {
- ds_send.setColumn(0, "gubuncd", grp_biz.rdo_gubuncd.value); //마스터코드구분 01:물품마스터02:창고마스터
-
- var reqdd = ipt_iodd.value;
- grp_biz.btn_sav.enable = true;
- if (rdo_selyymmdd.value == 'MM' ) {
- reqdd = utlf_transNullToEmpty(String(reqdd)).substr(0, 6);
- grp_biz.btn_sav.enable = false;
-
- } else if (rdo_selyymmdd.value == 'YY' ){
- reqdd = utlf_transNullToEmpty(String(reqdd)).substr(0, 4);
- grp_biz.btn_sav.enable = false;
- }
-
- ds_send.setColumn(0, "iodd", reqdd);
-
- var oParam = {};
- oParam.id = "TRMNG03401";
- oParam.service = "csrapp.CsrDryMngt";
- oParam.method = "reqGetDsioList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_whioinfo_whiolist=whiolist";
- oParam.async = false;
- tranf_submit(oParam);
-
- var ioflag;
- for(var i = 0; i < ds_main_whioinfo_whiolist.rowcount; i++) {
- ioflag = ds_main_whioinfo_whiolist.getColumn(i, "ioflag");
-
- if(ioflag == "N") {
- ds_main_whioinfo_whiolist.enableevent = false;
- ds_main_whioinfo_whiolist.updatecontrol = false;
- ds_main_whioinfo_whiolist.setRowType(i, 2);
- ds_main_whioinfo_whiolist.updatecontrol = true;
- ds_main_whioinfo_whiolist.enableevent = true;
- }
- }
- }
- function ipt_iodd_oncloseup(obj:Calendar, e:CalendarCloseUpEventInfo)
- {
- fSearch();
- }
- function rdo_selyymmdd_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
- {
- fSearch();
- }
- function btn_search_onclick(obj:Button, e:ClickEventInfo)
- {
- fSearch();
- }
- function button3_onclick(obj:Button, e:ClickEventInfo)
- {
- grdf_exportExcel(grp_biz.grd_whiolist, "세탁물폐품관리" + utlf_getCurrentDate(), "sheetname1" , true, "" , "" , true);
- }
- function grp_biz_btn_sav_onclick(obj:Button, e:ClickEventInfo)
- {
- var updateData = grdf_getGridUpdateData(grp_biz.grd_whiolist);
- grdf_setStatusColumn(updateData, "status");
- ds_send_savedata_whiolist.copyData(updateData);
-
- var oParam = {};
- oParam.id = "TXMNG03401";
- oParam.service = "csrapp.CsrDryMngt";
- oParam.method = "reqExeDsioList";
- oParam.inds = "req=ds_send_savedata_whiolist";
- oParam.outds = "";
- oParam.async = false;
- tranf_submit(oParam);
-
- fSearch();
- }
- function grp_biz_grd_whiolist_onkeydown(obj:Grid, e:KeyEventInfo)
- {
- var row = ds_main_whioinfo_whiolist.rowposition;
- if (e.keycode == 13) { // Enter 쳤을 경우 아래 수량으로
- if (grp_biz.grd_whiolist.currentcol == grp_biz.grd_whiolist.getBindCellIndex("body", "cptcnt") ||
- grp_biz.grd_whiolist.currentcol == grp_biz.grd_whiolist.getBindCellIndex("body", "stycnt") ||
- grp_biz.grd_whiolist.currentcol == grp_biz.grd_whiolist.getBindCellIndex("body", "ingcnt")) { //불출수량이나 미불출수량 엔터시
- if (ds_main_whioinfo_whiolist.rowposition + 1 < ds_main_whioinfo_whiolist.rowcount) {
- ds_main_whioinfo_whiolist.rowposition = row + 1;
- }
- }
- }
- }
- function btn_prt_onclick(obj:Button, e:ClickEventInfo)
- {
- fPrintRex();
- }
- function fPrintRex() {
- var oParam = {};
- oParam.id = "TRMNG03402";
- oParam.service = "csrapp.CsrDryMngt";
- oParam.method = "reqGetDsioRexList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_whiorexinfo_whiorexlist=whiorexlist";
- oParam.async = false;
- tranf_submit(oParam);
-
- dsf_createDs("ds_send_report_csmtrexinfo");
- ds_send_report_csmtrexinfo.copyData(ds_main_whiorexinfo_whiorexlist);
-
- //미리보기출력
- var objDOM = rptf_createDOM();
- rptf_setNodeListToDOM(objDOM, "root/main/whiorexinfo/whiorexlist", ds_send_report_csmtrexinfo); // 데이터셋 1
-
- var objParam = new Object();
- objParam.xml_data_XML1 = objDOM.documentElement.source; // 최상의노드 XML 스트링 추출
-
- var option = "open=1;save=1;directprint=0;print=1;zoom=0;";
- rptf_exeReportPreview30(["RPMNG03400"],[objParam], option);
- }
- ]]></Script>
- </Form>
- </FDL>
|