123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPMNP00306" position="absolute 0 0 740 450" titletext="변경수술스케줄" oninit="SPMNP00306_oninit" onload="SPMNP00306_onload">
- <Layouts>
- <Layout>
- <Div position="absolute 0 1 740 449" id="grp_biz" scrollbars="autoboth">
- <Layouts>
- <Layout>
- <Shape position="absolute 0 35 740 41" linetype="horizontal" id="line1" class="line_10" anchor="default"/>
- <Div position="absolute 0 0 740 35" id="group2" class="div_SA2" anchor="default">
- <Layouts>
- <Layout>
- <Static text="변경대상 수술 스케줄" position="absolute 0 11 175 27" id="caption7" class="tit_2" anchor="default"/>
- <Static text="(신중하게 진행하시기 바랍니다)" position="absolute 156 9 368 29" id="caption1" style="color:#ff0000ff;font:Dotum,9,bold;" anchor="default"/>
- <Static id="caption00" text="진행하시기전 반드시 마취기록 저장 확인 하세요" position="absolute 360 5 660 33" style="color:#ff0000ff;font:Dotum,9,bold;" onclick="grp_biz_group2_caption00_onclick"/>
- </Layout>
- </Layouts>
- </Div>
- <Button position="absolute 670 7 726 29" id="btn_select" class="btn3" text="저장" onclick="grp_biz_btn_select_onclick" anchor="default"/>
- <Grid position="absolute 0 40 740 448" id="grd_oplist" binddataset="ds_main_oplist" anchor="default" cellsizebandtype="allband" cellsizingtype="both" extendsizetype="row" autoenter="select" oncloseup="grp_biz_grd_oplist_oncloseup">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="20" band="left"/>
- <Column size="111"/>
- <Column size="82"/>
- <Column size="62"/>
- <Column size="37"/>
- <Column size="58"/>
- <Column size="71"/>
- <Column size="56"/>
- <Column size="100"/>
- <Column size="162"/>
- <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="S/A"/>
- <Cell col="5" text="집도과"/>
- <Cell col="6" text="집도의"/>
- <Cell col="7" text="수술방"/>
- <Cell col="8" text="협진여부"/>
- <Cell col="9" text="주수술번호"/>
- <Cell col="10"/>
- <Cell col="11"/>
- <Cell col="12"/>
- </Band>
- <Band id="body">
- <Cell celltype="head"/>
- <Cell col="1" style="align:left;" text="bind:oprsrvno"/>
- <Cell col="2" style="align:left;" text="bind:hngnm"/>
- <Cell col="3" style="align:left;" text="bind:pid"/>
- <Cell col="4" style="align:left;padding:2 2 2 2;" text="bind:sa"/>
- <Cell col="5" style="align:left;" text="bind:depthngnm"/>
- <Cell col="6" style="align:left;" text="bind:perfdridnm1"/>
- <Cell col="7" style="align:left;" text="bind:oproomcdnm"/>
- <Cell col="8" displaytype="combo" edittype="combo" style="align:center;" text="bind:cnstopflag" combodataset="ds_cnstopflag" combocodecol="value" combodatacol="label"/>
- <Cell col="9" text="bind:mainoprsrvno"/>
- <Cell col="10" text="bind:goodspec"/>
- <Cell col="11" text="bind:prodcmpy"/>
- <Cell col="12" text="bind:prodcmpy"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- </Layout>
- </Layouts>
- </Div>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_main_oplist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false" oncolumnchanged="ds_main_oplist_oncolumnchanged">
- <ColumnInfo>
- <Column id="oprsrvno" type="STRING"/>
- <Column id="pid" type="STRING"/>
- <Column id="hngnm" type="STRING"/>
- <Column id="sa" type="STRING"/>
- <Column id="depthngnm" type="STRING"/>
- <Column id="perfdridnm1" type="STRING"/>
- <Column id="oproomcdnm" type="STRING"/>
- <Column id="cnstopflag" type="STRING"/>
- <Column id="mainoprsrvno" type="STRING"/>
- <Column id="goodspec" type="STRING"/>
- <Column id="prodcmpy" type="STRING"/>
- <Column id="prodcmpy" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_send_reqdata_oplist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="oprsrvno" type="STRING" size="256" sumtext="수술번호"/>
- <Column id="mainoprsrvno" type="STRING" size="256" sumtext="메인수술번호"/>
- <Column id="cnstopflag" type="STRING" size="256" sumtext="주부상태"/>
- <Column id="pid" type="STRING" size="256" sumtext="챠트번호"/>
- <Column id="status" type="STRING" size="256" sumtext="상태"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_extinfo_resultinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cnt" type="STRING" size="256" sumtext="변경건수"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_cnstopflag" 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="label">주수술</Col>
- <Col id="value">N</Col>
- </Row>
- </Rows>
- </Dataset>
- </Objects>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name : 경대 의료정보시스템
- * Job Name : emr_opanstxp -> SPMNP00306
- * Creator : yjh
- * Make Date : 2016-03-31
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2016-03-31 yjh TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- //=======================================================================================
- // Lib Include
- //---------------------------------------------------------------------------------------
- include "com_commonxp::comm_main.xjs";
- //=======================================================================================
- // Global Form Variable
- //---------------------------------------------------------------------------------------
- //=======================================================================================
- // Function
- //---------------------------------------------------------------------------------------
- //=======================================================================================
- // Event
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Components : Form
- * Components ID : SPMNP00306
- * Event : oninit
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 처음 초기화시
- ****************************************************************************************/
- function SPMNP00306_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj); //폼 초기화
- }
- /****************************************************************************************
- * Components : Form
- * Components ID : SPMNP00306
- * Event : onload
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 로딩 완료시
- ****************************************************************************************/
- function SPMNP00306_onload(obj:Form, e:LoadEventInfo)
- {
- grdf_setRowTypeIcon(grp_biz.grd_oplist, 0);
-
- try{
- // arg_ds_main_opinfo_oplist.enableevent = false;
- // arg_ds_main_opinfo_oplist.updatecontrol = false;
- // arg_ds_main_opinfo_oplist.deleteColumn("mainoprsrvno");
- // arg_ds_main_opinfo_oplist.updatecontrol = true;
- // arg_ds_main_opinfo_oplist.enableevent = true;
- ds_main_oplist.copyData(arg_ds_main_opinfo_oplist);
- ds_main_oplist.rowposition = -1;
- dsf_setTypeFormat(ds_main_oplist, "pid:STRING");
- }catch(e){
- }
- }
- /****************************************************************************************
- * Components : Dataset
- * Components ID : ds_main_oplist
- * Event : oncolumnchanged
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 데이터셋 값 변경시
- ****************************************************************************************/
- function ds_main_oplist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
- {
- switch( e.columnid ){
- case "cnstopflag" :
- var cnt = ds_main_oplist.getCaseCount("cnstopflag=='N'");
-
- if (cnt == 0) {
- sysf_messageBox("변경할 수 없습니다","I");
- ds_main_oplist.setColumn(e.row, e.columnid, "N");
- } else {
- if( ds_main_oplist.getColumn(e.row, e.columnid) == "N" ){
- ds_main_oplist.setColumn(e.row, "mainoprsrvno", ds_main_oplist.getColumn(e.row, "oprsrvno"));
- }
- else {
- var oprsrvno = ds_main_oplist.getColumn(ds_main_oplist.findRow("cnstopflag", "N"), "oprsrvno");
- ds_main_oplist.setColumn(e.row, "mainoprsrvno", oprsrvno);
- }
-
- }
-
- break;
-
- default :
- break;
- }
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_select
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 저장버튼 클릭시
- ****************************************************************************************/
- function grp_biz_btn_select_onclick(obj:Button, e:ClickEventInfo)
- {
- if( "6" == sysf_messageBox("저장하시겠습니까?","Q") ){
- grdf_setStatusColumn(ds_main_oplist, "status");
- ds_send_reqdata_oplist.copyData(grdf_getGridUpdateData(grp_biz.grd_oplist, "all"));
-
- var oParam = {};
- oParam.id = "TXMNP00306";
- oParam.service = "opanstapp.OpAnstRec";
- oParam.method = "reqSetOprscnstList";
- oParam.inds = "oplist=ds_send_reqdata_oplist";
- oParam.outds = "ds_extinfo_resultinfo=resultinfo";
- oParam.async = false;
- //oParam.callback = "cf_TXMNP00306";
- tranf_submit(oParam);
-
- var cnt = ds_extinfo_resultinfo.getColumn(0, "cnt");
- if (cnt > 0 ) {
- sysf_messageBox("정상적으로 변경되었습니다","I");
- close();
- }
- }
- }
- function grp_biz_grd_oplist_oncloseup(obj:Grid, e:GridEditEventInfo)
- {
- obj.showEditor(false);
- }
- function grp_biz_group2_caption00_onclick(obj:Static, e:ClickEventInfo)
- {
-
- }
- ]]></Script>
- </Form>
- </FDL>
|