123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPMNP03100" position="absolute 0 0 1208 768" titletext="수술실 물품 미불출 관리" oninit="SPMNP03100_oninit" onload="SPMNP03100_onload">
- <Layouts>
- <Layout>
- <Div position="absolute 0 0 1195 25" id="grp_tle">
- <Layouts>
- <Layout>
- <Static text="수술실 물품 미불출 관리" position="absolute 0 0 181 25" id="cap_title" class="tit_1"/>
- </Layout>
- </Layouts>
- </Div>
- <Div position="absolute 0 18 1195 760" id="grp_biz" scrollbars="autoboth">
- <Layouts>
- <Layout>
- <Div position="absolute 0 7 1194 39" align="align:center top;" id="grp_sea" class="div_SA">
- <Layouts>
- <Layout>
- <Static text="조회일자 :" position="absolute 10 9 81 26" id="caption26" class="search_name" anchor="default"/>
- <Button position="absolute 1125 7 1181 29" id="btn_search" class="btn1" text="조회" anchor="default" onclick="grp_biz_grp_sea_btn_search_onclick"/>
- <Shape position="absolute 1112 7 1118 27" linetype="vertical" id="line13" class="line_4" anchor="default"/>
- <Static text="수 술 방 :" position="absolute 411 9 479 26" id="caption1" class="search_name" anchor="default"/>
- <Calendar position="absolute 86 6 193 25" align="align:center middle;" id="ipt_fromdd" class="input_essential" mask="yyyy-mm-dd" anchor="default" style="align:center middle;" autoselect="true" autoskip="true"/>
- <Combo position="absolute 546 7 603 26" align="align:left middle;" id="cmb_oproomlist" class="combo_search" innerdataset="@ds_init_oproomlist" datacolumn="oproomnm" codecolumn="oproomcd" anchor="default"/>
- <Static text="부서구분 :" position="absolute 220 9 291 26" id="caption2" class="search_name" anchor="default"/>
- <Combo position="absolute 484 7 540 26" id="cmb_rosette" class="combo_search" innerdataset="@ds_init_rosettelist" datacolumn="rosettenm" codecolumn="rosettecd" anchor="default" onitemchanged="grp_biz_grp_sea_cmb_rosette_onitemchanged"/>
- <Combo position="absolute 296 7 371 26" id="combo1" class="combo_search" codecolumn="codecolumn" datacolumn="datacolumn" anchor="default">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">O</Col>
- <Col id="datacolumn">수술</Col>
- </Row>
- <Row>
- <Col id="codecolumn">A</Col>
- <Col id="datacolumn">마취</Col>
- </Row>
- <Row>
- <Col id="codecolumn">R</Col>
- <Col id="datacolumn">회복</Col>
- </Row>
- <Row>
- <Col id="codecolumn">E</Col>
- <Col id="datacolumn">안과</Col>
- </Row>
- </Rows>
- </Dataset>
- </Combo>
- </Layout>
- </Layouts>
- </Div>
- <Shape position="absolute 0 66 1194 72" linetype="horizontal" id="line1" class="line_10"/>
- <Grid position="absolute 0 70 1194 735" id="grd_undelivelist" class="datagrid2" binddataset="ds_main_undelivelist" cellsizingtype="both" extendsizetype="row" selecttype="multirow">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25" band="left"/>
- <Column size="38"/>
- <Column size="38"/>
- <Column size="25"/>
- <Column size="38"/>
- <Column size="38"/>
- <Column size="38"/>
- <Column size="120"/>
- <Column size="45"/>
- <Column size="65"/>
- <Column size="70"/>
- <Column size="45"/>
- <Column size="117"/>
- <Column size="65"/>
- <Column size="70"/>
- <Column size="38"/>
- <Column size="122"/>
- <Column size="80"/>
- <Column size="80"/>
- <Column size="80"/>
- <Column size="50"/>
- <Column size="122"/>
- <Column size="0"/>
- <Column size="0"/>
- </Columns>
- <Rows>
- <Row size="33" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1" style="linespace:2;" text="Cart 상태"/>
- <Cell col="2" style="linespace:2;" text="진행 상태"/>
- <Cell col="3" displaytype="checkbox" edittype="checkbox" style="align:center middle;linespace:2;"/>
- <Cell col="4" style="linespace:2;" text="불출 수량"/>
- <Cell col="5" style="linespace:2;" text="미불출 수량"/>
- <Cell col="6" style="linespace:2;" text="수술 방"/>
- <Cell col="7" style="linespace:2;" text="수술일시"/>
- <Cell col="8" style="linespace:2;" text="집도과"/>
- <Cell col="9" style="linespace:2;" text="환자명"/>
- <Cell col="10" style="linespace:2;" text="등록번호"/>
- <Cell col="11" style="linespace:2;" text="S/A"/>
- <Cell col="12" style="linespace:2;" text="수술명"/>
- <Cell col="13" style="linespace:2;" text="집도의"/>
- <Cell col="14" style="linespace:2;" text="물품코드"/>
- <Cell col="15" style="linespace:2;" text="SUB"/>
- <Cell col="16" style="linespace:2;" text="물품명"/>
- <Cell col="17" style="linespace:2;" text="규격"/>
- <Cell col="18" style="linespace:2;" text="모델"/>
- <Cell col="19" style="linespace:2;" text="제조원"/>
- <Cell col="20" style="linespace:2;" text="단위"/>
- <Cell col="21" style="linespace:2;" text="미불출사유"/>
- <Cell col="22" text="상태값"/>
- <Cell col="23" text="수술방코드"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" text="expr:currow + 1"/>
- <Cell col="1" style="align:center middle;" text="bind:ccrtstatnm"/>
- <Cell col="2" style="align:center middle;" text="bind:opstatnm"/>
- <Cell col="3" displaytype="checkbox" edittype="checkbox" style="align:center middle;" text="bind:chkflag" expr="expr:(chkflag == "true" || chkflag == 1) ? 1 : 0"/>
- <Cell col="4" displaytype="text" edittype="text" style="align:right middle;" text="bind:deliveqty"/>
- <Cell col="5" style="align:right middle;" text="bind:undeliveqty"/>
- <Cell col="6" style="align:center middle;" text="bind:oproomnm"/>
- <Cell col="7" style="align:center middle;" text="bind:opcnfmdt" mask="####-##-## ##:##"/>
- <Cell col="8" style="align:center top;padding:3 2 2 2;linespace:2;" text="bind:perfdeptnm" wordwrap="word" autosizerow="default"/>
- <Cell col="9" style="align:center middle;" text="bind:patnm"/>
- <Cell col="10" style="align:center middle;" text="bind:pid"/>
- <Cell col="11" style="align:center middle;" text="bind:sa"/>
- <Cell col="12" style="align:left top;padding:3 2 2 2;linespace:2;" text="bind:opnm" wordwrap="word" autosizerow="default"/>
- <Cell col="13" style="align:center middle;" text="bind:perfnm"/>
- <Cell col="14" style="align:center middle;" text="bind:goodcd"/>
- <Cell col="15" style="align:center middle;" text="bind:allsizespecid"/>
- <Cell col="16" style="align:left top;padding:3 2 2 2;linespace:2;" text="bind:goodnm" wordwrap="word" autosizerow="default"/>
- <Cell col="17" style="align:left top;padding:3 2 2 2;linespace:2;" text="bind:goodspec" wordwrap="word" autosizerow="default"/>
- <Cell col="18" style="align:left middle;" text="bind:goodmodel"/>
- <Cell col="19" style="align:left top;padding:3 2 2 2;linespace:2;" text="bind:prodcmpynm" wordwrap="word" autosizerow="default"/>
- <Cell col="20" style="align:center middle;" text="bind:prcpunit"/>
- <Cell col="21" style="align:left middle;" text="bind:undeliveresn"/>
- <Cell col="22" text="bind:oprsrvno"/>
- <Cell col="23" text="bind:oproomcd"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button position="absolute 1128 45 1192 64" id="btn_delivecnfm" class="btn5" visible="false" text="불출확정" onclick="grp_biz_btn_delivecnfm_onclick"/>
- <Static text="수술실 물품 미불출 리스트" position="absolute 0 50 180 66" id="caption12" class="tit_2"/>
- </Layout>
- </Layouts>
- </Div>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_init_oproomlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="oproomcd" type="STRING" size="256"/>
- <Column id="oproomnm" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_rosettelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="rosettenm" type="STRING" size="256"/>
- <Column id="rosettecd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_deliveinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="basedayflag" type="STRING" size="256"/>
- <Column id="basedtflag" type="STRING" size="256"/>
- <Column id="message" type="STRING" size="256"/>
- <Column id="basedelive" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </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="refdd" type="STRING" size="256"/>
- <Column id="oproomcd" type="STRING" size="256"/>
- <Column id="goodcd" type="STRING" size="256"/>
- <Column id="allsizespecid" type="STRING" size="256"/>
- <Column id="goodnm" type="STRING" size="256"/>
- <Column id="deptflag" type="STRING" size="256"/>
- <Column id="fromdd" type="STRING" size="256"/>
- <Column id="todd" type="STRING" size="256"/>
- <Column id="oprosette" type="STRING" size="256"/>
- <Column id="openflag" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="refdd"/>
- <Col id="oproomcd"/>
- <Col id="goodcd"/>
- <Col id="allsizespecid"/>
- <Col id="goodnm"/>
- <Col id="deptflag">O</Col>
- <Col id="fromdd"/>
- <Col id="todd"/>
- <Col id="oprosette"/>
- <Col id="openflag"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_undelivelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_undelivelist_oncolumnchanged">
- <ColumnInfo>
- <Column id="ccrtstatnm" type="STRING" size="256"/>
- <Column id="opstatnm" type="STRING" size="256"/>
- <Column id="chkflag" type="STRING" size="256"/>
- <Column id="deliveqty" type="STRING" size="256"/>
- <Column id="undeliveqty" type="STRING" size="256"/>
- <Column id="oproomnm" type="STRING" size="256"/>
- <Column id="opcnfmdt" type="STRING" size="256"/>
- <Column id="perfdeptnm" type="STRING" size="256"/>
- <Column id="patnm" type="STRING" size="256"/>
- <Column id="pid" type="STRING" size="256"/>
- <Column id="sa" type="STRING" size="256"/>
- <Column id="opnm" type="STRING" size="256"/>
- <Column id="perfnm" type="STRING" size="256"/>
- <Column id="goodcd" type="STRING" size="256"/>
- <Column id="allsizespecid" type="STRING" size="256"/>
- <Column id="goodnm" type="STRING" size="256"/>
- <Column id="goodspec" type="STRING" size="256"/>
- <Column id="goodmodel" type="STRING" size="256"/>
- <Column id="prodcmpynm" type="STRING" size="256"/>
- <Column id="prcpunit" type="STRING" size="256"/>
- <Column id="undeliveresn" type="STRING" size="256"/>
- <Column id="oprsrvno" type="STRING" size="256"/>
- <Column id="oproomcd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="ccrtstatnm"/>
- <Col id="opstatnm"/>
- <Col id="chkflag"/>
- <Col id="deliveqty"/>
- <Col id="undeliveqty"/>
- <Col id="oproomnm"/>
- <Col id="opcnfmdt"/>
- <Col id="perfdeptnm"/>
- <Col id="patnm"/>
- <Col id="pid"/>
- <Col id="sa"/>
- <Col id="opnm"/>
- <Col id="perfnm"/>
- <Col id="goodcd"/>
- <Col id="allsizespecid"/>
- <Col id="goodnm"/>
- <Col id="goodspec"/>
- <Col id="goodmodel"/>
- <Col id="prodcmpynm"/>
- <Col id="prcpunit"/>
- <Col id="undeliveresn"/>
- <Col id="oprsrvno"/>
- <Col id="oproomcd"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_deliveinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="reqenddt" type="STRING" size="256"/>
- <Column id="delivecnfmdd" type="STRING" size="256"/>
- <Column id="delivemessage" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_send_reqdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_send_savedata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_temp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="refflag" type="STRING" size="256"/>
- <Column id="kk" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_temp_logginlevel" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="usrlevel" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_reqerlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="grp_biz.grp_sea.ipt_fromdd" propid="value" datasetid="ds_main_cond" columnid="fromdd"/>
- <BindItem id="item1" compid="grp_biz.grp_sea.cmb_oproomlist" propid="value" datasetid="ds_main_cond" columnid="oproomcd"/>
- <BindItem id="item2" compid="grp_biz.grp_sea.cmb_rosette" propid="value" datasetid="ds_main_cond" columnid="oprosette"/>
- <BindItem id="item3" compid="grp_biz.grp_sea.combo1" propid="value" datasetid="ds_main_cond" columnid="deptflag"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2016-10-12
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2016-10-12 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- include "com_commonxp::comm_main.xjs";
- include "emr_opanstxp::SPMNP03000.xjs";
- var arErrorCode = new HashArray();
- function cf_TRMNP03002(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- if(nErrorCode < 0) return;
- utlf_addLog("***** cf_TRMNP03002 *****");
- }
- function SPMNP03100_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- grdf_initGrid(grp_biz.grd_undelivelist);
- }
- function SPMNP03100_onload(obj:Form, e:LoadEventInfo)
- {
- if( frmf_checkOpener() ) {
- fInit("S");
- }
- }
- function grp_biz_grp_sea_btn_search_onclick(obj:Button, e:ClickEventInfo)
- {
- fUnDeliveSearch();
- }
- function grp_biz_grp_sea_cmb_rosette_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
- ds_send_reqdata.clearData();
- dsf_makeValue(ds_send_reqdata,"opcnfmdd","string",ds_main_cond.getColumn(0, "fromdd"));
- dsf_makeValue(ds_send_reqdata,"rosette" ,"string",ds_main_cond.getColumn(0, "oprosette"));
-
- var oParam = {};
- oParam.id = "TRMNP03002";
- oParam.service = "opanstapp.OpAnstCCrtGoodMngt";
- oParam.method = "reqGetOmcdlist";
- oParam.inds = "req=ds_send_reqdata";
- oParam.outds = "ds_init_oproomlist=oproomlist";
- oParam.async = false;
- oParam.callback = "cf_TRMNP03002";
- tranf_submit(oParam);
-
- if(arErrorCode.pop("TRMNP03002") > -1) { // 수술실코드 가져오기
- frmf_addComboItem("grp_biz.grp_sea.cmb_oproomlist", "전체", "", "above");
- grp_biz.grp_sea.cmb_oproomlist.value = "";
- }
- }
- function ds_main_undelivelist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
- {//grd_erlist 그리드 없음..
- var deliveqty;
- var undeliveqty;
- // if(e.col == 4){//불출수량 입력하면
- // deliveqty = model.getValue("/root/main/reqerlist[" + grd_erlist.row + "]/deliveqty");
- // undeliveqty = model.getValue("/root/main/reqerlist[" + grd_erlist.row + "]/undeliveqty");
- // if( deliveqty < "1" ) {
- // model.setValue("/root/main/reqerlist[" + grd_erlist.row + "]/chkflag", "false");
- // }else {
- // model.setValue("/root/main/reqerlist[" + grd_erlist.row + "]/chkflag", "true");
- // model.setValue("/root/main/reqerlist[" + grd_erlist.row + "]/undeliveqty", parseInt(undeliveqty-deliveqty));
- // }
- // }
- if(e.columnid == "chkflag"){
- obj.setColumn(e.row, "chkflag", (e.newvalue == "true" || e.newvalue == 1) ? "true" : "false");
- }
- }
- function grp_biz_btn_delivecnfm_onclick(obj:Button, e:ClickEventInfo)
- {//버튼 숨김 되어있음..
- //fDeliveCnfm("S");
- }
- ]]></Script>
- </Form>
- </FDL>
|