123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMMNG03402" position="absolute 0 0 1200 730" titletext="린넨 일일마감 관리" oninit="SMMNG03402_oninit" onload="SMMNG03402_onload">
- <Layouts>
- <Layout>
- <Shape id="roundrect1" type="roundrectangle" class="roundrect_search" position="absolute 0 25 1185 60"/>
- <Div position="absolute 0 0 1185 23" id="grp_tle">
- <Layouts>
- <Layout>
- <Static text="린넨 일일마감 관리" position="absolute 0 0 151 24" id="caption6" class="tit_1" anchor="default"/>
- </Layout>
- </Layouts>
- </Div>
- <Div position="absolute 0 65 1185 720" id="grp_biz" scrollbars="autoboth">
- <Layouts>
- <Layout>
- <Static text="린넨 일일마감 관리" position="absolute 0 9 138 25" id="caption12" class="tit_2" anchor="default"/>
- <Shape position="absolute 0 25 1185 26" linetype="vertical" id="line1" class="line_1" anchor="default"/>
- <Button position="absolute 1135 3 1177 22" id="btn_sav" class="btn5" text="마감" anchor="default" onclick="grp_biz_btn_sav_onclick"/>
- <Grid position="absolute 0 30 1185 645" id="grd_lnedlist" class="datagrid2" visible="true" binddataset="ds_main_lnedinfo_lnedlist" anchor="default">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="20" band="left"/>
- <Column size="66"/>
- <Column size="80"/>
- <Column size="80"/>
- <Column size="0"/>
- <Column size="80"/>
- <Column size="65"/>
- <Column size="120"/>
- <Column size="80"/>
- <Column size="75"/>
- <Column size="75"/>
- <Column size="75"/>
- <Column size="65"/>
- <Column size="70"/>
- <Column size="75"/>
- <Column size="120"/>
- <Column size="120"/>
- <Column size="100"/>
- <Column size="75"/>
- <Column size="120"/>
- <Column size="80"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- </Columns>
- <Rows>
- <Row size="26" 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="마감자"/>
- <Cell col="19" text="마감일시"/>
- <Cell col="20" text="청구구분"/>
- <Cell col="21"/>
- <Cell col="22"/>
- <Cell col="23"/>
- </Band>
- <Band id="body">
- <Cell celltype="head"/>
- <Cell col="1" displaytype="combo" edittype="combo" style="align:center;" text="bind:lnedflag" combodataset="ds_init_grupcdinfo_grupcdlist" combocodecol="cdid" combodatacol="cdnm"/>
- <Cell col="2" displaytype="combo" edittype="combo" style="align:center;background:BIND(colBack2);background2:BIND(colBack2);" text="bind:erflag" combodataset="ds_erflag" combocodecol="value" combodatacol="label"/>
- <Cell col="3" displaytype="combo" text="bind:deptcd" combodataset="ds_init_csrdeptlist" combocodecol="deptcd" combodatacol="deptnm"/>
- <Cell col="4" text="bind:reqdd" mask="yyyy-mm-dd"/>
- <Cell col="5" style="align:left;" text="bind:goodcd"/>
- <Cell col="6" style="align:left;" text="bind:goodcdseq"/>
- <Cell col="7" style="align:left top;padding:4 2 2 2;" text="bind:lngoodnm" wordwrap="word"/>
- <Cell col="8" style="align:left;" text="bind:goodmodel"/>
- <Cell col="9" displaytype="number" style="align:left;" text="bind:deptlnsfcnt" mask="#,##9"/>
- <Cell col="10" style="align:left;" text="bind:lnsfcnt"/>
- <Cell col="11" displaytype="number" style="align:left;" text="bind:nowcnt" mask="#,##9"/>
- <Cell col="12" style="align:left;" text="bind:reqcnt"/>
- <Cell col="13" displaytype="number" style="align:left;" text="bind:outcnt" mask="#,##9"/>
- <Cell col="14" displaytype="number" style="align:left;" text="bind:lnrlcnt" mask="#,##9"/>
- <Cell col="15" text="bind:reqdt" mask="expr:utlf_isNull(reqdt) ? '' : '####-##-## ##:##:##'"/>
- <Cell col="16" text="bind:recdt" mask="expr:utlf_isNull(recdt) ? '' : '####-##-## ##:##:##'"/>
- <Cell col="17" text="bind:remark"/>
- <Cell col="18" text="bind:lnednm"/>
- <Cell col="19" text="bind:lneddt" mask="expr:utlf_isNull(lneddt) ? '' : '####-##-## ##:##:##'"/>
- <Cell col="20" displaytype="combo" edittype="combo" style="align:center;background:BIND(colBack20);background2:BIND(colBack20);" text="bind:lnrqflag" combodataset="ds_init_grupcdinfo1_grupcdlist" combocodecol="cdid" combodatacol="cdnm"/>
- <Cell col="21" text="bind:lnedid"/>
- <Cell col="22" text="bind:seqno"/>
- <Cell col="23" text="bind:fromdd"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Radio position="absolute 220 5 610 20" id="rdo_gubuncd" enable="false" visible="false" columncount="2" codecolumn="codecolumn" datacolumn="datacolumn" 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>
- <Button position="absolute 1089 4 1131 23" id="button1" class="btn2" text="엑셀" anchor="default" onclick="grp_biz_button1_onclick"/>
- </Layout>
- </Layouts>
- </Div>
- <Button position="absolute 1067 32 1123 54" id="btn_search" class="btn1" taborder="2" text="조회" onclick="btn_search_onclick"/>
- <Shape position="absolute 1057 30 1063 55" linetype="vertical" id="line2" class="line_4"/>
- <Static text="청구일자 :" position="absolute 210 35 281 52" id="cap_csrreqdeptcd" class="search_name"/>
- <Calendar position="absolute 285 34 370 53" id="ipt_reqdd" class="input_default" mask="yyyy-mm-dd" autoselect="true" onchanged="ipt_reqdd_onchanged"/>
- <Static text="기관코드 :" position="absolute 10 35 86 52" id="cap_instcd" class="search_name" visible="false"/>
- <Edit readonly="true" position="absolute 90 34 195 53" align="align:center middle;" id="opt_instcdnm" visible="false" class="output"/>
- <Button position="absolute 1125 32 1181 54" id="btn_prt" class="btn6" text="출력" onclick="btn_prt_onclick"/>
- <Static text="부서구분 :" position="absolute 820 35 891 52" id="caption1" class="search_name"/>
- <Combo position="absolute 900 34 995 53" id="cmb_deptcd" innerdataset="@ds_init_csrdeptlist" datacolumn="deptnm" codecolumn="deptcd"/>
- <Static text="마감구분 :" position="absolute 490 35 561 52" id="caption2" class="search_name"/>
- <Radio position="absolute 575 35 800 51" id="rdo_lnedflag" columncount="4" innerdataset="@ds_init_grupcdinfo_grupcdlist" datacolumn="cdnm" codecolumn="cdid"/>
- <Calendar position="absolute 390 34 475 53" id="ipt_reqtodd" class="input_default" visible="false" mask="yyyy-mm-dd" autoselect="true" onchanged="ipt_reqtodd_onchanged"/>
- <Static text="~" position="absolute 376 34 392 54" id="cap_bar" visible="false"/>
- <Static text="구분 :" position="absolute 10 35 59 52" id="caption4" class="search_name"/>
- <Radio position="absolute 60 35 160 51" id="rdo_flag" columncount="2." codecolumn="codecolumn" datacolumn="datacolumn" onitemchanged="rdo_flag_onitemchanged">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">1</Col>
- <Col id="datacolumn">업무</Col>
- </Row>
- <Row>
- <Col id="codecolumn">2</Col>
- <Col id="datacolumn">조회</Col>
- </Row>
- </Rows>
- </Dataset>
- </Radio>
- </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="csrreqdeptcd" type="STRING" size="256" sumtext="CSR 청구부서코드"/>
- <Column id="useyn" type="STRING" size="256" sumtext="사용여부"/>
- <Column id="csryn" type="STRING" size="256" sumtext="공급실여부"/>
- <Column id="cdgrupid" type="STRING" size="256"/>
- <Column id="reqdd" type="STRING" size="256"/>
- <Column id="deptcd" type="STRING" size="256"/>
- <Column id="lnedflag" type="STRING" size="256"/>
- <Column id="flag" type="STRING" size="256"/>
- <Column id="reqtodd" type="STRING" size="256"/>
- <Column id="instcd" type="STRING" size="256"/>
- <Column id="iodd" type="STRING" size="256"/>
- <Column id="gubuncd" type="STRING" size="256"/>
- <Column id="cdgrupid1" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_csrdeptlist" 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="deptcd" type="STRING" size="256" sumtext="부서코드"/>
- <Column id="deptnm" type="STRING" size="256" sumtext="부서명"/>
- <Column id="csrreqdeptcd" type="STRING" size="256" sumtext="CSR청구부서코드"/>
- <Column id="useyn" type="STRING" size="256" sumtext="사용여부"/>
- <Column id="cmt" type="STRING" size="256" sumtext="비고"/>
- <Column id="lastupdtrid" type="STRING" size="256" sumtext="사용여부"/>
- <Column id="lastupdtrnm" type="STRING" size="256" sumtext="사용여부"/>
- <Column id="lastupdtdt" type="STRING" size="256" sumtext="사용여부"/>
- <Column id="fstrgstdt" type="STRING" size="256" sumtext="사용여부"/>
- <Column id="csrreqdeptnm" type="STRING" size="256" sumtext="CSR청구부서코드"/>
- <Column id="useynnm" type="STRING" size="256" sumtext="사용여부"/>
- </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" sumtext="코드"/>
- <Column id="cdnm" type="STRING" size="256" sumtext="코드명"/>
- </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="cdid" type="STRING" size="256" sumtext="코드"/>
- <Column id="cdnm" type="STRING" size="256" sumtext="코드명"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_send1" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="workdd" type="STRING" size="256" sumtext="업무일자"/>
- <Column id="cdgrupid" type="STRING" size="256" sumtext="그룹코드"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_hidden_setvalue" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cdid" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_lnedinfo_lnedlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="lnedflag" type="STRING" size="256" sumtext="마감구분"/>
- <Column id="deptcd" type="STRING" size="256" sumtext="마감구분"/>
- <Column id="reqdd" 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="deptlnsfcnt" type="STRING" size="256" sumtext="운용안전재고량"/>
- <Column id="lnsfcnt" type="STRING" size="256" sumtext="안전재고량"/>
- <Column id="nowcnt" type="STRING" size="256" sumtext="현재고량"/>
- <Column id="reqcnt" type="INT" size="256" sumtext="청구량"/>
- <Column id="outcnt" type="INT" size="256" sumtext="불출량 "/>
- <Column id="lnrlcnt" type="INT" size="256" sumtext="실재고수량"/>
- <Column id="reqdt" type="STRING" size="256" sumtext="청구일시"/>
- <Column id="recdt" type="STRING" size="256" sumtext="수령일시"/>
- <Column id="lnednm" type="STRING" size="256" sumtext="품목명"/>
- <Column id="lnedid" type="STRING" size="256" sumtext="품목명"/>
- <Column id="lneddt" type="STRING" size="256" sumtext="품목명"/>
- <Column id="lnrqflag" type="STRING" size="256" sumtext="청구구분"/>
- <Column id="seqno" type="STRING" size="256" sumtext="순번"/>
- <Column id="erflag" type="STRING" size="256" sumtext="응급구분"/>
- <Column id="fromdd" type="STRING" size="256" sumtext=""/>
- <Column id="remark" type="STRING" size="256" sumtext=""/>
- <Column id="colBack2" type="STRING" size="256"/>
- <Column id="colBack20" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_whiorexinfo_whiorexlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="ioflag" type="STRING" size="256" sumtext="입력구분"/>
- <Column id="goodcd" type="STRING" size="256" sumtext="품목코드"/>
- <Column id="goodnm" type="STRING" size="256" sumtext="품목명"/>
- <Column id="goodspec" type="STRING" size="256" sumtext="품목명"/>
- <Column id="delcnt" type="STRING" size="256" sumtext="폐기량"/>
- <Column id="outcnt" type="STRING" size="256" sumtext="출고량"/>
- <Column id="remark1" type="STRING" size="256" sumtext="비고1"/>
- <Column id="iodd" type="STRING" size="256" sumtext="일자 "/>
- <Column id="ioseq" type="STRING" size="256" sumtext="순번"/>
- <Column id="fstrgstrid" type="STRING" size="256" sumtext="최초등록자"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_lnedinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="result" type="STRING" size="256" sumtext="마감구분"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_send_lnedinfo_lnedlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="status" 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="reqdd" type="STRING" size="256" sumtext="청구일자"/>
- <Column id="deptlnsfcnt" type="STRING" size="256" sumtext="운용안전재고량"/>
- <Column id="lnsfcnt" type="STRING" size="256" sumtext="안전재고량"/>
- <Column id="nowcnt" type="STRING" size="256" sumtext="현재고량"/>
- <Column id="reqcnt" type="STRING" size="256" sumtext="청구량"/>
- <Column id="outcnt" type="STRING" size="256" sumtext="불출량"/>
- <Column id="lnrlcnt" type="STRING" size="256" sumtext="실재고량"/>
- <Column id="reqdt" type="STRING" size="256" sumtext="청구일시"/>
- <Column id="recdt" type="STRING" size="256" sumtext="수령일시"/>
- <Column id="lnedid" type="STRING" size="256" sumtext="마감자id"/>
- <Column id="lneddt" type="STRING" size="256" sumtext="마감일시"/>
- <Column id="seqno" type="STRING" size="256" sumtext="순번"/>
- <Column id="erflag" type="STRING" size="256" sumtext="응급여부"/>
- <Column id="fromdd" type="STRING" size="256" sumtext="응급여부"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_erflag" 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">응급</Col>
- <Col id="value">Y</Col>
- </Row>
- <Row>
- <Col id="value">N</Col>
- <Col id="label">정규</Col>
- </Row>
- </Rows>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="rdo_flag" propid="value" datasetid="ds_send" columnid="flag"/>
- <BindItem id="item1" compid="opt_instcdnm" propid="value" datasetid="ds_send" columnid="instcdnm"/>
- <BindItem id="item2" compid="ipt_reqdd" propid="value" datasetid="ds_send" columnid="reqdd"/>
- <BindItem id="item3" compid="ipt_reqtodd" propid="value" datasetid="ds_send" columnid="reqtodd"/>
- <BindItem id="item4" compid="rdo_lnedflag" propid="value" datasetid="ds_send" columnid="lnedflag"/>
- <BindItem id="item5" compid="cmb_deptcd" propid="value" datasetid="ds_send" columnid="deptcd"/>
- <BindItem id="item6" compid="grp_biz.rdo_gubuncd" propid="value" datasetid="ds_send" columnid="gubuncd"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name : 경대 의료정보시스템
- * Job Name : emr_csrxp -> SMMNG03402
- * Creator : yjh
- * Make Date : 2017-08-21
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2017-08-21 yjh TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- //=======================================================================================
- // Lib Include
- //---------------------------------------------------------------------------------------
- include "com_commonxp::comm_main.xjs";
- //=======================================================================================
- // Global Form Variable
- //---------------------------------------------------------------------------------------
- //=======================================================================================
- // Function
- //---------------------------------------------------------------------------------------
- // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
- function fInitialize()
- {
- opt_instcdnm.value = sysf_getUserInfo("dutplceinstnm"); //기관코드
-
- // 마감업무는 전일 청구 불출 내역에 대한 작업이므로 청구일자를 전일로 셋팅한다.
- var da = utlf_getCurrentDate();
- var dat = ((da.toDate("YYYYMMDD")).getAddDate(-1, "D")).getDateFormat("YYYYMMDD") ;
- ipt_reqdd.value = dat;
- ipt_reqtodd.value = dat;
-
- grp_biz.grd_lnedlist.setCellProperty("Body", 1, "edittype", "none");
- grp_biz.grd_lnedlist.setCellProperty("Body", 3, "edittype", "none");
- grp_biz.grd_lnedlist.setCellProperty("Body", 20, "edittype", "none");
-
- // CSR 청구부서, 린넨청구부서 가져오기
- var oParam = {};
- oParam.id = "TRMNG00402";
- oParam.service = "csrapp.CsrMngt";
- oParam.method = "getCsrDeptList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_init_csrdeptlist=csrdeptlist";
- oParam.async = false;
- //oParam.callback = "cf_TRMNG00402";
- tranf_submit(oParam);
-
- // 공통코드 가져오기(T67) => 마감구분
- 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"));
-
- // 공통코드 가져오기(T64) => 마감구분
- 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);
-
- frmf_addComboItem("cmb_deptcd","--전체--","","above");
- cmb_deptcd.index = 0;
-
- frmf_addComboItem("rdo_lnedflag","전체","","above");
-
-
- // 마감구분 초기 셋팅 : 마감전
- rdo_lnedflag.value = "B";
-
- fSearch();
-
- grp_biz.grd_lnedlist.setCellProperty("Body", 2, "edittype", "none");
-
- ds_send1.setColumn(0, "workdd", utlf_getCurrentDate());
-
- var oParam = {};
- oParam.id = "TRMSG04004";
- oParam.service = "csrapp.CsrMngt";
- oParam.method = "reqGetCodeInfo";
- oParam.inds = "req=ds_send1";
- oParam.outds = "ds_hidden_setvalue=setvalue";
- oParam.async = false;
- //oParam.callback = "cf_TRMSG04004";
- tranf_submit(oParam);
-
- var pord = ds_hidden_setvalue.getColumn(0, "cdid");
- var userid = sysf_getUserInfo("userid");
-
-
- if(userid="ENR") {
- grp_biz.btn_sav.enable = true;
- } else {
-
- if (pord == userid) {
- grp_biz.btn_sav.enable = true;
- } else {
- grp_biz.btn_sav.enable = false;
- }
- }
-
- }
- function fSearch() {
-
- var oParam = {};
- oParam.id = "TRMNG03403";
- oParam.service = "csrapp.CsrDryMngt";
- oParam.method = "reqGetLnedList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_lnedinfo_lnedlist=lnedlist";
- oParam.async = false;
- //oParam.callback = "cf_TRMNG03403";
- tranf_submit(oParam);
-
- ds_main_lnedinfo_lnedlist.addColumn("colBack2", "string");
- ds_main_lnedinfo_lnedlist.addColumn("colBack20", "string");
-
- fStyleChk();
- }
- function fStyleChk() {
- ds_main_lnedinfo_lnedlist.enableevent = false;
- ds_main_lnedinfo_lnedlist.updatecontrol = false;
-
- for ( var i = 0; i < ds_main_lnedinfo_lnedlist.rowcount; i++ ) {
- if ( ds_main_lnedinfo_lnedlist.getColumn(i, "lnrqflag") == "06" ) {
- ds_main_lnedinfo_lnedlist.setColumn(i, "colBack20", "#99CC00");
- } else {
- ds_main_lnedinfo_lnedlist.setColumn(i, "colBack20", "#FFFFFF");
- }
-
- if ( ds_main_lnedinfo_lnedlist.getColumn(i, "erflag") == "Y" ) {
- ds_main_lnedinfo_lnedlist.setColumn(i, "colBack2", "#FF6600");
- } else {
- ds_main_lnedinfo_lnedlist.setColumn(i, "colBack2", "#FFFFFF");
- }
- }
-
- ds_main_lnedinfo_lnedlist.updatecontrol = true;
- ds_main_lnedinfo_lnedlist.enableevent = true;
- }
- 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;
- //oParam.callback = "cf_TRMNG03402";
- tranf_submit(oParam);
-
- var objDOM = rptf_createDOM(); // DOM 객체 설정
- rptf_setNodeListToDOM(objDOM, "/root/main/whiorexinfo/whiorexlist", ds_main_whiorexinfo_whiorexlist); // 데이터셋 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);
-
- }
- //=======================================================================================
- // Event
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Components : Form
- * Components ID : SMMNG03402
- * Event : oninit
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 처음 초기화시
- ****************************************************************************************/
- function SMMNG03402_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj); //폼 초기화
- }
- /****************************************************************************************
- * Components : Form
- * Components ID : SMMNG03402
- * Event : onload
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 로딩 완료시
- ****************************************************************************************/
- function SMMNG03402_onload(obj:Form, e:LoadEventInfo)
- {
- ds_send.setColumn(0, "gubuncd", "01");
- ds_send.setColumn(0, "cdgrupid", "T67");
- ds_send.setColumn(0, "cdgrupid1", "T64");
- ds_send.setColumn(0, "flag", "1");
-
- ds_send1.setColumn(0, "cdgrupid", "T65");
-
- grdf_setRowTypeIcon(grp_biz.grd_lnedlist, 0);
-
- fInitialize();
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_sav
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 마감버튼 클릭시
- ****************************************************************************************/
- function grp_biz_btn_sav_onclick(obj:Button, e:ClickEventInfo)
- {
- // 청구일자에 해당하는 내역중 수령까지 완료되지 않은 청구내역이 있는지 확인
- var oParam = {};
- oParam.id = "TRMNG03404";
- oParam.service = "csrapp.CsrDryMngt";
- oParam.method = "reqGetLnedRslt";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_init_lnedinfo=lnedinfo";
- oParam.async = false;
- //oParam.callback = "cf_TRMNG03404";
- tranf_submit(oParam);
-
- var result = ds_init_lnedinfo.getColumn(0, "result");
- // 청구일자에 해당하는 미확정 내역이 존재하면 마감 작업을 멈추고 미확정 내역을 보여준다.
- if ( result == "Y" ) {
- rdo_lnedflag.value = "E";
- fSearch();
- } else {
- // 미확정 내역이 없으면 마감작업을 진행한다.
- // 마감시 청구관리 테이블(mnghlnrq)에 마감구분을 'A'로 업데이트, 마감관리테이블(mnrqlned)에 마감내역 insert
- ds_main_lnedinfo_lnedlist.enableevent = false;
- ds_main_lnedinfo_lnedlist.updatecontrol = false;
-
- for ( var i = 0; i < ds_main_lnedinfo_lnedlist.rowcount ; i++ ) {
- ds_main_lnedinfo_lnedlist.setRowType(i, 2);
- }
-
- grdf_setStatusColumn(ds_main_lnedinfo_lnedlist, "status");
-
- ds_main_lnedinfo_lnedlist.updatecontrol = true;
- ds_main_lnedinfo_lnedlist.enableevent = true;
-
- ds_send_lnedinfo_lnedlist.assign(grdf_getGridUpdateData(grp_biz.grd_lnedlist));
-
- var oParam = {};
- oParam.id = "TXMNG03402";
- oParam.service = "csrapp.CsrDryMngt";
- oParam.method = "reqExeLnedList";
- oParam.inds = "req=ds_send_lnedinfo_lnedlist:A";
- oParam.outds = "";
- oParam.async = false;
- //oParam.callback = "cf_TXMNG03402";
- tranf_submit(oParam);
- }
-
- fSearch();
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : button1
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 엑셀버튼 클릭시
- ****************************************************************************************/
- function grp_biz_button1_onclick(obj:Button, e:ClickEventInfo)
- {
- if( grp_biz.grd_lnedlist.rowcount > 0 ){
- grdf_exportExcel(grp_biz.grd_lnedlist, "린넨일일마감관리", "SheetName", false, "", "user", false);
- } else {
- sysf_messageBox("조회된 데이터가 ", "I004");
- return;
- }
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_search
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 조회버튼 클릭시
- ****************************************************************************************/
- function btn_search_onclick(obj:Button, e:ClickEventInfo)
- {
- fSearch();
- }
- /****************************************************************************************
- * Components : Calendar
- * Components ID : ipt_reqdd
- * Event : onchanged
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 달력 값 변경시
- ****************************************************************************************/
- function ipt_reqdd_onchanged(obj:Calendar, e:ChangeEventInfo)
- {
- fSearch();
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_prt
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 출력버튼 클릭시
- ****************************************************************************************/
- function btn_prt_onclick(obj:Button, e:ClickEventInfo)
- {
- fPrintRex();
- }
- /****************************************************************************************
- * Components : Calendar
- * Components ID : ipt_reqtodd
- * Event : onchanged
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 달력 값 변경시
- ****************************************************************************************/
- function ipt_reqtodd_onchanged(obj:Calendar, e:ChangeEventInfo)
- {
- fSearch();
- }
- /****************************************************************************************
- * Components : Radio
- * Components ID : rdo_flag
- * Event : onitemchanged
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 라디오 값 변경시
- ****************************************************************************************/
- function rdo_flag_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
- {
- if(rdo_flag.value == "1") {
-
-
- var pord = ds_hidden_setvalue.getColumn(0, "cdid");
- var userid = sysf_getUserInfo("userid");
-
- if(userid="ENR") {
- grp_biz.btn_sav.enable = true;
- } else {
-
- if (pord == userid) {
- grp_biz.btn_sav.enable = true;
- } else {
- grp_biz.btn_sav.enable = false;
- }
- }
- ipt_reqtodd.visible = false;
- cap_bar.visible = false;
-
- } else {
- grp_biz.btn_sav.enable = false;
- ipt_reqtodd.visible = true;
- cap_bar.visible = true;
-
- }
- }
- ]]></Script>
- </Form>
- </FDL>
|