123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMMNG02800" position="absolute 0 0 1190 720" titletext="세탁물 물품 Master 등록" oninit="SMMNG02800_oninit" onload="SMMNG02800_onload">
- <Layouts>
- <Layout>
- <Shape id="roundrect1" type="roundrectangle" class="roundrect_search" position="absolute 0 20 1185 55"/>
- <Div position="absolute 0 0 1185 24" id="grp_tle">
- <Layouts>
- <Layout>
- <Static text="세탁물 물품 Master 등록" position="absolute 0 0 186 24" id="caption6" class="tit_1" anchor="default"/>
- </Layout>
- </Layouts>
- </Div>
- <Div position="absolute 0 60 1185 720" id="grp_biz" scrollbars="autoboth">
- <Layouts>
- <Layout>
- <Static text="세탁물 물품 Master 등록" position="absolute 0 8 181 24" id="caption12" class="tit_2"/>
- <Shape position="absolute 0 25 1185 26" linetype="vertical" id="line1" class="line_1"/>
- <Button position="absolute 1141 3 1183 22" id="btn_sav" class="btn5" text="저장" onclick="grp_biz_btn_sav_onclick"/>
- <Grid position="absolute 0 25 1185 641" id="grd_mscdlist" visible="true" binddataset="ds_main_mscdinfo_mscdlist" selecttype="multirow" cellsizebandtype="allband" cellsizingtype="col">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="20" band="left"/>
- <Column size="83"/>
- <Column size="172"/>
- <Column size="73"/>
- <Column size="77"/>
- <Column size="40"/>
- <Column size="60"/>
- <Column size="48"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="60"/>
- <Column size="60"/>
- <Column size="60"/>
- <Column size="60"/>
- <Column size="60"/>
- <Column size="136"/>
- <Column size="150"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell rowspan="2" taborder="undefined"/>
- <Cell col="1" rowspan="2" text="물품코드" taborder="undefined"/>
- <Cell col="2" rowspan="2" text="물품명" taborder="undefined"/>
- <Cell col="3" rowspan="2" text="구분" taborder="undefined"/>
- <Cell col="4" rowspan="2" text="규격" taborder="undefined"/>
- <Cell col="5" rowspan="2" text="단위" taborder="undefined"/>
- <Cell col="6" rowspan="2" text="사용유무" taborder="undefined"/>
- <Cell col="7" rowspan="2" text="정렬" taborder="undefined"/>
- <Cell col="8" text="시작일자"/>
- <Cell col="9" text="종료일자"/>
- <Cell col="10" text="기관코드"/>
- <Cell col="11" text="구븐코드"/>
- <Cell col="12" rowspan="2" text="폐기관리화면" wordwrap="word" taborder="undefined"/>
- <Cell col="13" rowspan="2" text="위탁/수탁화면" wordwrap="word" taborder="undefined"/>
- <Cell col="14" rowspan="2" text="보유관리화면" wordwrap="word" taborder="undefined"/>
- <Cell col="15" rowspan="2" text="청구관리화면" wordwrap="word" taborder="undefined"/>
- <Cell col="16" rowspan="2" text="린넨운용관리화면" wordwrap="word" taborder="undefined"/>
- <Cell col="17" rowspan="2" text="상세설명" taborder="undefined"/>
- <Cell col="18" rowspan="2" text="비고" taborder="undefined"/>
- <Cell row="1" col="8" text="시작일자"/>
- <Cell row="1" col="9" text="종료일자"/>
- <Cell row="1" col="10" text="기관코드"/>
- <Cell row="1" col="11" text="구븐코드"/>
- </Band>
- <Band id="body">
- <Cell celltype="head"/>
- <Cell col="1" displaytype="text" edittype="text" text="bind:goodcd"/>
- <Cell col="2" displaytype="text" edittype="text" text="bind:goodnm"/>
- <Cell col="3" displaytype="combo" edittype="combo" text="bind:goodflag" combodataset="ds_codelist" combocodecol="cdid" combodatacol="cdnm"/>
- <Cell col="4" displaytype="text" edittype="text" text="bind:goodspec"/>
- <Cell col="5" displaytype="text" edittype="text" text="bind:goodunit"/>
- <Cell col="6" displaytype="combo" edittype="combo" text="bind:useyn" combodataset="ds_useyn" combocodecol="value" combodatacol="label"/>
- <Cell col="7" displaytype="text" edittype="text" text="bind:sortseq"/>
- <Cell col="8" text="bind:fromdd"/>
- <Cell col="9" text="bind:todd"/>
- <Cell col="10" text="bind:instcd"/>
- <Cell col="11" text="bind:gubuncd"/>
- <Cell col="12" displaytype="checkbox" edittype="checkbox" text="bind:dsioyn" expr="expr:dsioyn == 'Y' || dsioyn == '1' ? '1' : '0'"/>
- <Cell col="13" displaytype="checkbox" edittype="checkbox" text="bind:csmtyn" expr="expr:csmtyn == 'Y' || csmtyn == '1' ? '1' : '0'"/>
- <Cell col="14" displaytype="checkbox" edittype="checkbox" text="bind:possyn" expr="expr:possyn == 'Y' || possyn == '1' ? '1' : '0'"/>
- <Cell col="15" displaytype="checkbox" edittype="checkbox" text="bind:porqyn" expr="expr:porqyn == 'Y' || porqyn == '1' ? '1' : '0'"/>
- <Cell col="16" displaytype="checkbox" edittype="checkbox" text="bind:linenyn" expr="expr:linenyn == 'Y' || linenyn == '1' ? '1' : '0'"/>
- <Cell col="17" displaytype="text" edittype="text" text="bind:gooddesc"/>
- <Cell col="18" displaytype="text" edittype="text" text="bind:etcremark"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button position="absolute 998 3 1051 22" id="button1" class="btn2" text="초기화" onclick="grp_biz_button1_onclick"/>
- <Button position="absolute 1097 3 1139 22" id="button3" class="btn2" text="삭제" onclick="grp_biz_button3_onclick"/>
- <Button position="absolute 1053 3 1095 22" id="btn_grdadd" class="btn2" enable="true" text="추가" onclick="grp_biz_btn_grdadd_onclick"/>
- </Layout>
- </Layouts>
- </Div>
- <Button position="absolute 1120 25 1176 47" id="btn_search" class="btn1" taborder="2" text="조회" onclick="btn_search_onclick"/>
- <Shape position="absolute 1097 25 1103 50" linetype="vertical" id="line2" class="line_4"/>
- <Static text="기관코드 :" position="absolute 10 30 91 47" id="cap_instcd" class="search_name"/>
- <Edit readonly="true" position="absolute 90 29 265 48" align="align:center middle;" id="opt_instcdnm" class="output" style="align:center middle;"/>
- <Radio position="absolute 340 29 645 49" id="rdo_gubuncd" visible="true" columncount="2" codecolumn="codecolumn" datacolumn="datacolumn" onitemchanged="rdo_gubuncd_onitemchanged">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">01</Col>
- <Col id="datacolumn">물품Master</Col>
- </Row>
- <Row>
- <Col id="codecolumn">02</Col>
- <Col id="datacolumn">창고Master</Col>
- </Row>
- </Rows>
- </Dataset>
- </Radio>
- <Static text="구분 :" position="absolute 290 30 345 47" id="caption1" class="search_name"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_datasend" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="gubuncd" type="STRING" size="256" sumtext="품목코드"/>
- <Column id="instcdnm" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_mscdinfo_mscdlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_mscdinfo_mscdlist_oncolumnchanged">
- <ColumnInfo>
- <Column id="goodcd" type="STRING" size="256" sumtext="품목코드"/>
- <Column id="goodnm" type="STRING" size="256" sumtext="폼목명"/>
- <Column id="goodflag" type="STRING" size="256" sumtext="폼목구분"/>
- <Column id="goodspec" type="STRING" size="256" sumtext="규격"/>
- <Column id="goodunit" type="STRING" size="256" sumtext="단위"/>
- <Column id="useyn" type="STRING" size="256" sumtext="사용여부"/>
- <Column id="sortseq" type="INT" size="256" sumtext="정렬"/>
- <Column id="gooddesc" type="STRING" size="256" sumtext="폼목상세설명"/>
- <Column id="etcremark" type="STRING" size="256" sumtext="비고"/>
- <Column id="fromdd" type="STRING" size="256" sumtext="시작일자"/>
- <Column id="todd" type="STRING" size="256" sumtext="종료일자"/>
- <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
- <Column id="gubuncd" type="STRING" size="256" sumtext="구분코드"/>
- <Column id="dsioyn" type="STRING" size="256" sumtext="폐기화면사용유무"/>
- <Column id="csmtyn" type="STRING" size="256" sumtext="위타수탁화면사용유무"/>
- <Column id="possyn" type="STRING" size="256" sumtext="보유량화면사용유무"/>
- <Column id="porqyn" type="STRING" size="256" sumtext="청구화면사용유무"/>
- <Column id="linenyn" type="STRING" size="256" sumtext="린넨운용화면사용유무"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_send_savedata_mscdlist" 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="goodcd" type="STRING" size="256" sumtext="품목코드"/>
- <Column id="goodnm" type="STRING" size="256" sumtext="폼목명"/>
- <Column id="goodflag" type="STRING" size="256" sumtext="폼목구분"/>
- <Column id="goodspec" type="STRING" size="256" sumtext="규격"/>
- <Column id="goodunit" type="STRING" size="256" sumtext="단위"/>
- <Column id="useyn" type="STRING" size="256" sumtext="사용여부"/>
- <Column id="sortseq" type="INT" size="256" sumtext="정렬"/>
- <Column id="gooddesc" type="STRING" size="256" sumtext="폼목상세설명"/>
- <Column id="etcremark" type="STRING" size="256" sumtext="비고"/>
- <Column id="fromdd" type="STRING" size="256" sumtext="시작일자"/>
- <Column id="todd" type="STRING" size="256" sumtext="종료일자"/>
- <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
- <Column id="gubuncd" type="STRING" size="256" sumtext="구분코드"/>
- <Column id="dsioyn" type="STRING" size="256" sumtext="폐기화면사용유무"/>
- <Column id="csmtyn" type="STRING" size="256" sumtext="위타수탁화면사용유무"/>
- <Column id="possyn" type="STRING" size="256" sumtext="보유량화면사용유무"/>
- <Column id="porqyn" type="STRING" size="256" sumtext="청구화면사용유무"/>
- <Column id="linenyn" type="STRING" size="256" sumtext="린넨운용화면사용유무"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="gubuncd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_codelist" 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_useyn" 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="opt_instcdnm" propid="value" datasetid="ds_datasend" columnid="instcdnm"/>
- <BindItem id="item1" compid="rdo_gubuncd" propid="value" datasetid="ds_main_cond" columnid="gubuncd"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name : 경대 의료정보시스템
- * Job Name : emr_csrxp -> SMMNG02800
- * 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";
- include "emr_carecomxp::CareCom.xjs";
- //=======================================================================================
- // Global Form Variable
- //---------------------------------------------------------------------------------------
- //=======================================================================================
- // Function
- //---------------------------------------------------------------------------------------
- // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
- function fInitialize()
- {
- opt_instcdnm.value = sysf_getUserInfo("dutplceinstnm");
- rdo_gubuncd.value = '01';
-
- fSearch();
- }
- function fSearch() {
- ds_datasend.setColumn(0, "gubuncd", rdo_gubuncd.value);
-
- var pCode = "'T34'"; // 조회할 CdGrupID 코드정보
- var pDate = utlf_getCurrentDate(); // 조회기준일자
- fGetNursHardCdInfo(pCode, pDate); // 간호코드 조회
-
- var oParam = {};
- oParam.id = "TRMNG02801";
- oParam.service = "csrapp.CsrDryMngt";
- oParam.method = "reqGetMscdList";
- oParam.inds = "req=ds_datasend";
- oParam.outds = "ds_main_mscdinfo_mscdlist=mscdlist";
- oParam.async = false;
- //oParam.callback = "cf_TRMNG02801";
- tranf_submit(oParam);
-
- if (rdo_gubuncd.value == '02'){
- grp_biz.grd_mscdlist.setFormatColProperty(12, "size", 0);
- grp_biz.grd_mscdlist.setFormatColProperty(13, "size", 0);
- grp_biz.grd_mscdlist.setFormatColProperty(14, "size", 0);
- grp_biz.grd_mscdlist.setFormatColProperty(15, "size", 0);
- grp_biz.grd_mscdlist.setFormatColProperty(16, "size", 0);
- } else {
- grp_biz.grd_mscdlist.setFormatColProperty(12, "size", 60);
- grp_biz.grd_mscdlist.setFormatColProperty(13, "size", 60);
- grp_biz.grd_mscdlist.setFormatColProperty(14, "size", 60);
- grp_biz.grd_mscdlist.setFormatColProperty(15, "size", 60);
- grp_biz.grd_mscdlist.setFormatColProperty(16, "size", 60);
- }
- }
- //=======================================================================================
- // Event
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Components : Form
- * Components ID : SMMNG02800
- * Event : oninit
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 처음 초기화시
- ****************************************************************************************/
- function SMMNG02800_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj); //폼 초기화
- }
- /****************************************************************************************
- * Components : Form
- * Components ID : SMMNG02800
- * Event : onload
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 로딩 완료시
- ****************************************************************************************/
- function SMMNG02800_onload(obj:Form, e:LoadEventInfo)
- {
- grdf_setRowTypeIcon(grp_biz.grd_mscdlist, 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)
- {
- ds_main_mscdinfo_mscdlist.enableevent = false;
- ds_main_mscdinfo_mscdlist.updatecontrol = false;
-
- grdf_setStatusColumn(ds_main_mscdinfo_mscdlist, "status");
-
- ds_main_mscdinfo_mscdlist.updatecontrol = true;
- ds_main_mscdinfo_mscdlist.enableevent = true;
-
- ds_send_savedata_mscdlist.assign(grdf_getGridUpdateData(grp_biz.grd_mscdlist));
-
- var oParam = {};
- oParam.id = "TXMNG02801";
- oParam.service = "csrapp.CsrDryMngt";
- oParam.method = "reqExeMscdList";
- oParam.inds = "req=ds_send_savedata_mscdlist:A";
- oParam.outds = "";
- oParam.async = false;
- //oParam.callback = "cf_TXMNG02801";
- 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)
- {
- fInitialize();
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : button3
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 삭제버튼 클릭시
- ****************************************************************************************/
- function grp_biz_button3_onclick(obj:Button, e:ClickEventInfo)
- {
- if(ds_main_mscdinfo_mscdlist.rowposition > -1){
-
- ds_main_mscdinfo_mscdlist.enableevent = false;
- ds_main_mscdinfo_mscdlist.updatecontrol = false;
-
- for( var i=0 ; i<grp_biz.grd_mscdlist.selectcount ; i++ ){
- for( var j=grp_biz.grd_mscdlist.selectendrow[i] ; j>=grp_biz.grd_mscdlist.selectstartrow[i] ; j-- ){
- ds_main_mscdinfo_mscdlist.setRowType(j, 8);
- }
- }
-
- ds_main_mscdinfo_mscdlist.updatecontrol = true;
- ds_main_mscdinfo_mscdlist.enableevent = true;
- }
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_grdadd
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 추가버튼 클릭시
- ****************************************************************************************/
- function grp_biz_btn_grdadd_onclick(obj:Button, e:ClickEventInfo)
- {
- ds_main_mscdinfo_mscdlist.addRow();
- ds_main_mscdinfo_mscdlist.setColumn(ds_main_mscdinfo_mscdlist.rowposition, "useyn", "Y");
- ds_main_mscdinfo_mscdlist.setColumn(ds_main_mscdinfo_mscdlist.rowposition, "gubuncd", rdo_gubuncd.value);
-
- var tmp = Number(utlf_transNullToEmpty(ds_main_mscdinfo_mscdlist.getColumn(ds_main_mscdinfo_mscdlist.rowposition-1, "goodcd")).substr(1,3)) + 1;
- if (tmp.toString().length == 1) {
- tmp = "00" + tmp;
- } else if (tmp.toString().length == 2) {
- tmp = "0" + tmp;
- }
- if (rdo_gubuncd.value == '01') {ds_main_mscdinfo_mscdlist.setColumn(ds_main_mscdinfo_mscdlist.rowposition, "goodcd", "A" + tmp);}
- else { }
- grp_biz.grd_mscdlist.showEditor(true);
- }
- /****************************************************************************************
- * 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 : Radio
- * Components ID : rdo_gubuncd
- * Event : onitemchanged
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 라디오 값 변경시
- ****************************************************************************************/
- function rdo_gubuncd_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
- {
- fSearch();
- }
- function ds_main_mscdinfo_mscdlist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
- {
- switch( e.columnid ){
- case "dsioyn" :
- case "csmtyn" :
- case "possyn" :
- case "porqyn" :
- case "linenyn" :
- if( e.newvalue == "Y" || e.newvalue == "1" ){
- obj.setColumn(e.row, e.columnid, "Y");
- }else{
- obj.setColumn(e.row, e.columnid, "N");
- }
- break;
-
- default :
- break;
- }
- }
- ]]></Script>
- </Form>
- </FDL>
|