123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMMNG03501" position="absolute 0 0 1191 723" titletext="운송불출관리" oninit="SMMNG03501_oninit" onload="SMMNG03501_onload">
- <Layouts>
- <Layout>
- <Static id="caption6" text="운송 불출관리" class="tit_1" position="absolute 0 0 186 25" anchor="left top right"/>
- <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 12 96 29"/>
- <Edit id="opt_instcdnm" taborder="1" readonly="true" position="absolute 100 11 235 30" autoselect="true" autoskip="true" class="output"/>
- <Calendar id="ipt_reqfromdd" taborder="2" class="input_default" position="absolute 321 11 406 30" mask="yyyy-mm-dd" onchanged="group4_ipt_reqfromdd_onchanged"/>
- <Static id="cap_csrreqdeptcd" text="업무일자:" class="search_name" position="absolute 250 12 323 29"/>
- <Static id="caption3" text="~" position="absolute 408 11 428 36"/>
- <Calendar id="ipt_reqtodd" taborder="3" class="input_default" position="absolute 421 11 506 30" mask="yyyy-mm-dd" onchanged="group4_ipt_reqtodd_onchanged"/>
- <Static id="caption1" text="부서구분:" class="search_name" position="absolute 526 12 599 29"/>
- <Combo id="cmb_dept" taborder="4" innerdataset="@ds_main_csrdeptlist" codecolumn="deptcd" datacolumn="deptnm" position="absolute 600 11 700 30"/>
- <Static id="caption2" text="업무구분:" class="search_name" position="absolute 714 12 795 29"/>
- <Radio id="rdo_srchflag" taborder="5" columncount="-1" rowcount="-1" innerdataset="@ds_init_grupcdinfo_grupcdlist" codecolumn="cdid" datacolumn="cdnm" position="absolute 787 10 1037 30"/>
- <Shape id="line2" linetype="vertical" class="line_4" position="absolute 1047 8 1053 33" anchor="top right"/>
- <Button id="btn_search" taborder="6" text="조회" class="btn1" position="absolute 1062 10 1118 32" anchor="top right" onclick="group4_btn_search_onclick"/>
- <Button id="btn_prt" taborder="7" text="출력" class="btn1" position="absolute 1125 10 1181 32" anchor="top right" onclick="group4_btn_prt_onclick"/>
- </Layout>
- </Layouts>
- </Div>
- <Radio id="rdo_gubuncd" taborder="4" columncount="2" rowcount="0" codecolumn="codecolumn" datacolumn="datacolumn" enable="false" visible="false" position="absolute 220 78 610 93">
- <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>
- <Static id="caption12" text="운송 불출관리" class="tit_2" position="absolute 0 79 138 101"/>
- <Grid id="grd_trnslist" taborder="5" binddataset="ds_main_trnsinfo_trnslist" useinputpanel="false" position="absolute 0 100 1185 715" autoenter="select" cellsizingtype="col" anchor="all" onheadclick="grd_trnslist_onheadclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="21"/>
- <Column size="20"/>
- <Column size="30"/>
- <Column size="58"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="0"/>
- <Column size="0"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1" displaytype="checkbox" edittype="checkbox" style="linetype:onlyhorz;" expr="0"/>
- <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"/>
- </Band>
- <Band id="body">
- <Cell celltype="head"/>
- <Cell col="1" colspan="2" displaytype="checkbox" edittype="checkbox" text="bind:chkyn" expr="expr:chkyn == 'Y' || chkyn == '1' ? '1' : '0'" taborder="undefined"/>
- <Cell col="3" displaytype="checkbox" edittype="checkbox" text="bind:erflag" expr="expr:erflag == 'Y' || erflag == '1' ? '1' : '0'"/>
- <Cell col="4" displaytype="combo" edittype="combo" text="bind:trnsflag" combodataset="ds_init_grupcdinfo1_grupcdlist" combocodecol="cdid" combodatacol="cdnm" combodisplayrowcount="10"/>
- <Cell col="5" displaytype="combo" edittype="combo" text="bind:deptcd" combodataset="ds_main_csrdeptlist" combocodecol="deptcd" combodatacol="deptnm" combodisplayrowcount="40"/>
- <Cell col="6" style="align:left;" text="bind:goodcd"/>
- <Cell col="7" style="align:left;" text="bind:goodcdseq"/>
- <Cell col="8" style="align:left;" text="bind:lngoodnm"/>
- <Cell col="9" style="align:left;" text="bind:goodmodel"/>
- <Cell col="10" displaytype="number" style="align:left;" text="bind:outcnt" mask="#,###"/>
- <Cell col="11" style="align:left;" text="bind:outnm"/>
- <Cell col="12" text="bind:trscnt"/>
- <Cell col="13" text="bind:trsnm"/>
- <Cell col="14" text="bind:trsdt"/>
- <Cell col="15" text="bind:reccnt"/>
- <Cell col="16" text="bind:recnm"/>
- <Cell col="17" text="bind:reqdd"/>
- <Cell col="18" text="bind:seqno"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button id="btn_sav" taborder="6" text="저장" class="btn5" position="absolute 1143 76 1185 95" anchor="top right" onclick="btn_sav_onclick"/>
- <Shape id="line1" class="line_10" position="absolute 0 95 1185 101" anchor="left top right"/>
- </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="reqfromdd" type="STRING" size="256"/>
- <Column id="gubuncd" type="STRING" size="256"/>
- <Column id="reqtodd" type="STRING" size="256"/>
- <Column id="cdgrupid" type="STRING" size="256"/>
- <Column id="srchflag" type="STRING" size="256"/>
- <Column id="deptcd" type="STRING" size="256"/>
- <Column id="cdgrupid1" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="instcdnm"/>
- <Col id="reqfromdd"/>
- <Col id="gubuncd">01</Col>
- <Col id="reqtodd"/>
- <Col id="cdgrupid">T66</Col>
- <Col id="srchflag"/>
- <Col id="deptcd"/>
- <Col id="cdgrupid1">T64</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="reqtodd" type="STRING" size="256"/>
- <Column id="selyymmdd" type="STRING" size="256"/>
- <Column id="reqfromdd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="reqtodd"/>
- <Col id="selyymmdd">DD</Col>
- <Col id="reqfromdd"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_trnsinfo_trnslist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_trnsinfo_trnslist_oncolumnchanged">
- <ColumnInfo>
- <Column id="chkyn" type="STRING" size="256" sumtext="응급구분"/>
- <Column id="erflag" type="STRING" size="256" sumtext="응급구분"/>
- <Column id="trnsflag" 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="outcnt" type="STRING" size="256" sumtext="불출량"/>
- <Column id="outid" type="STRING" size="256" sumtext="불출자id"/>
- <Column id="outdt" type="STRING" size="256" sumtext="불출일시"/>
- <Column id="outnm" type="STRING" size="256" sumtext="불출자명"/>
- <Column id="outconfid" type="STRING" size="256" sumtext="불출확인자id"/>
- <Column id="outconfnm" type="STRING" size="256" sumtext="불출확인자명"/>
- <Column id="outconfdt" type="STRING" size="256" sumtext="불출확인시간"/>
- <Column id="trscnt" type="STRING" size="256" sumtext="운송량"/>
- <Column id="trsdt" type="STRING" size="256" sumtext="운송일시"/>
- <Column id="trsid" type="STRING" size="256" sumtext="운송자id"/>
- <Column id="trsnm" type="STRING" size="256" sumtext="운송자명"/>
- <Column id="reccmt" type="STRING" size="256" sumtext="수령량"/>
- <Column id="recid" type="STRING" size="256" sumtext="수령자id"/>
- <Column id="recnm" type="STRING" size="256" sumtext="수령자명"/>
- <Column id="recdt" type="STRING" size="256" sumtext="수령일시"/>
- <Column id="reqdd" type="STRING" size="256" sumtext="청구일자"/>
- <Column id="seqno" type="STRING" size="256" sumtext="순번"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_csrdeptlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="deptnm" type="STRING" size="256"/>
- <Column id="deptcd" 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="cdnm" type="STRING" size="256"/>
- <Column id="cdid" type="STRING" size="256"/>
- </ColumnInfo>
- </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>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="group4.opt_instcdnm" propid="value" datasetid="ds_send" columnid="instcdnm"/>
- <BindItem id="item1" compid="group4.ipt_reqfromdd" propid="value" datasetid="ds_cond" columnid="reqfromdd"/>
- <BindItem id="item2" compid="group4.ipt_reqtodd" propid="value" datasetid="ds_cond" columnid="reqtodd"/>
- <BindItem id="item3" compid="group4.cmb_dept" propid="value" datasetid="ds_send" columnid="deptcd"/>
- <BindItem id="item4" compid="group4.rdo_srchflag" propid="value" datasetid="ds_send" columnid="srchflag"/>
- <BindItem id="item5" compid="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 SMMNG03501_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SMMNG03501_onload(obj:Form, e:LoadEventInfo)
- {
- //grdf_initGrid(grd_trnslist);
- grdf_setRowTypeIcon(grd_trnslist, 0);
- fInitialize();
- }
- function fInitialize()
- {
- //grd_trnslist.fixedcellcheckbox(0, grd_trnslist.colRef("chkyn")) = true;
-
- group4.opt_instcdnm.value = sysf_getUserInfo("dutplceinstnm");
- ds_cond.setColumn(0, "reqtodd", utlf_getCurrentDate());
-
- var da = utlf_getCurrentDate();
- var dat = ((da.toDate("YYYYMMDD")).getAddDate(-1, "D")).getDateFormat("YYYYMMDD") ;
- ds_cond.setColumn(0, "reqfromdd", dat);
-
- group4.rdo_srchflag.value = "L";
- group4.rdo_srchflag.enable = false;
-
- dsf_makeValue(ds_send, "useyn", "string", "Y", 0);
-
- grd_trnslist.setCellProperty("Body", grd_trnslist.getBindCellIndex("Body", "erflag"), "edittype", "none");
- grd_trnslist.setCellProperty("Body", grd_trnslist.getBindCellIndex("Body", "erflag"), "controlbackground", "silver");
- grd_trnslist.setCellProperty("Body", grd_trnslist.getBindCellIndex("Body", "erflag"), "controlborder", "1 solid #708090cc");
-
- var oParam = {};
- oParam.id = "TRMNG00402";
- oParam.service = "csrapp.CsrMngt";
- oParam.method = "getCsrDeptList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_csrdeptlist=csrdeptlist";
- oParam.async = false;
- //oParam.callback = "cf_TRMNG00402";
- tranf_submit(oParam);
- 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);
-
- ds_send.setColumn(0, "cdgrupid", ds_send.getColumn(0, "cdgrupid1"));
-
- var oParam = {};
- oParam.id = "TRMNG02305";
- oParam.service = "csrapp.CsrDryMngt";
- oParam.method = "reqGetGrupcdList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_init_grupcdinfo1_grupcdlist=grupcdlist";
- oParam.async = false;
- //oParam.callback = "cf_TRMNG02305";
- tranf_submit(oParam);
-
- fSearch();
- }
- function fSearch()
- {
- grd_trnslist.setCellProperty("Head", 1, "expr", "0");
-
- ds_send.setColumn(0, "reqfromdd", ds_cond.getColumn(0, "reqfromdd"));
- ds_send.setColumn(0, "reqtodd", ds_cond.getColumn(0, "reqtodd"));
- var oParam = {};
- oParam.id = "TRMNG03502";
- oParam.service = "csrapp.CsrDryMngt";
- oParam.method = "reqGetTrnsList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_trnsinfo_trnslist=trnslist";
- oParam.async = false;
- //oParam.callback = "cf_TRMNG03502";
- tranf_submit(oParam);
-
- if( utlf_isNull(ds_main_trnsinfo_trnslist.getColumnInfo("chkyn")) ){
- ds_main_trnsinfo_trnslist.addColumn("chkyn", "string");
- }
-
- ds_main_trnsinfo_trnslist.updatecontrol = false;
-
- dsf_setDefaultVal(ds_main_trnsinfo_trnslist, "chkyn:N");
-
- ds_main_trnsinfo_trnslist.updatecontrol = true;
- }
- function group4_ipt_reqfromdd_onchanged(obj:Calendar, e:ChangeEventInfo)
- {
- fSearch();
- }
- function group4_ipt_reqtodd_onchanged(obj:Calendar, e:ChangeEventInfo)
- {
- fSearch();
- }
- function group4_btn_search_onclick(obj:Button, e:ClickEventInfo)
- {
- fSearch();
- }
- function btn_sav_onclick(obj:Button, e:ClickEventInfo)
- {
- var cnt = 0;
- for (var i = 0; i < ds_main_trnsinfo_trnslist.rowcount; i++ )
- {
- if ( ds_main_trnsinfo_trnslist.getColumn(i, "chkyn") == "Y" )
- {
- ds_main_trnsinfo_trnslist.setColumn(i, "trnsflag", "05");
- ds_main_trnsinfo_trnslist.setColumn(i, "trscnt", ds_main_trnsinfo_trnslist.getColumn(i, "outcnt"));
-
- ds_main_trnsinfo_trnslist.updatecontrol = false;
- ds_main_trnsinfo_trnslist.setRowType(i, "u");
- ds_main_trnsinfo_trnslist.updatecontrol = true;
- cnt++;
- }
- }
- if ( cnt < 1)
- {
- alert("선택된 불출확인목록이 없습니다.");
- return;
- }
-
- ds_main_trnsinfo_trnslist.enableevent = false;
- ds_main_trnsinfo_trnslist.updatecontrol = false;
-
- grdf_setStatusColumn(ds_main_trnsinfo_trnslist, "status");
-
- ds_main_trnsinfo_trnslist.updatecontrol = true;
- ds_main_trnsinfo_trnslist.enableevent = true;
-
- ds_main_trnsinfo_trnslist.updateColID("trnsflag", "lnrqflag");
-
- var oParam = {};
- oParam.id = "TXMNG02504";
- oParam.service = "csrapp.CsrDryMngt";
- oParam.method = "reqExeLnrqList";
- oParam.inds = "req=ds_main_trnsinfo_trnslist:u";
- oParam.outds = "";
- oParam.typeStr = "m";
- oParam.async = false;
- oParam.callback = "cf_TXMNG02504";
- tranf_submit(oParam);
- if(arErrorCode.pop("TXMNG02504") > -1)
- {
- alert(cnt + "건이 운송 처리되었습니다.");
- }
-
- fSearch();
- }
- function cf_TXMNG02504(sSvcId, nErrorCode, sErrorMsg)
- {
- arErrorCode.push(sSvcId, nErrorCode);
- if(nErrorCode < 0) return;
- }
- function ds_main_trnsinfo_trnslist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
- {
- if(e.columnid == "chkyn")
- {
- obj.setColumn(e.row, "chkyn", (e.newvalue == "Y" || e.newvalue == 1) ? "Y" : "N");
- }
- if(e.columnid == "erflag")
- {
- obj.setColumn(e.row, "erflag", (e.newvalue == "Y" || e.newvalue == 1) ? "Y" : "N");
- }
- }
- function grd_trnslist_onheadclick(obj:Grid, e:GridClickEventInfo)
- {
- if( e.cell == 1 ){
- if( obj.getCellProperty("Head", e.cell, "expr") == "0" ){
- obj.setCellProperty("Head", e.cell, "expr", "1");
-
- ds_main_trnsinfo_trnslist.enableevent = false;
- ds_main_trnsinfo_trnslist.updatecontrol = false;
-
- for( var i=0 ; i<ds_main_trnsinfo_trnslist.rowcount ; i++ ){
- ds_main_trnsinfo_trnslist.setColumn(i, "chkyn", "Y");
- }
-
- ds_main_trnsinfo_trnslist.updatecontrol = true;
- ds_main_trnsinfo_trnslist.enableevent = true;
- }else{
- obj.setCellProperty("Head", e.cell, "expr", "0");
-
- ds_main_trnsinfo_trnslist.enableevent = false;
- ds_main_trnsinfo_trnslist.updatecontrol = false;
-
- for( var i=0 ; i<ds_main_trnsinfo_trnslist.rowcount ; i++ ){
- ds_main_trnsinfo_trnslist.setColumn(i, "chkyn", "N");
- }
-
- ds_main_trnsinfo_trnslist.updatecontrol = true;
- ds_main_trnsinfo_trnslist.enableevent = true;
- }
- }
- }
- ]]></Script>
- </Form>
- </FDL>
|