123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPARC00210" classname="SPARC00200_처방검색" inheritanceid="" position="absolute 0 0 670 275" titletext="수술검색" oninit="SPARC00210_oninit" onload="SPARC00210_onload">
- <Layouts>
- <Layout>
- <Static id="caption1" text="수술정보" class="tit_2" position="absolute 0 7 74 23"/>
- <Button id="button13" taborder="4" text="선택" onclick="button13_onclick" class="btn2" position="absolute 626 4 670 23"/>
- <Grid id="grd_opinfo" taborder="5" binddataset="ds_grd_opinfo" useinputpanel="false" position="absolute 0 25 670 275" cellclickbound="cell" cellsizingtype="col" autofittype="col">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="35"/>
- <Column size="80"/>
- <Column size="300"/>
- <Column size="100"/>
- </Columns>
- <Rows>
- <Row size="26" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell displaytype="checkbox" edittype="checkbox"/>
- <Cell col="1" text="수술일"/>
- <Cell col="2" text="수술명"/>
- <Cell col="3" text="수술코드"/>
- </Band>
- <Band id="body">
- <Cell displaytype="checkbox" edittype="checkbox" text="bind:chk"/>
- <Cell col="1" text="bind:opdd" mask="####-##-##"/>
- <Cell col="2" displaytype="text" text="bind:opnm"/>
- <Cell col="3" text="bind:opcd"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- </Layout>
- </Layouts>
- <Bind/>
- <Objects>
- <Dataset id="ds_grd_opinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="chk" type="STRING"/>
- <Column id="opdd" type="STRING"/>
- <Column id="opnm" type="STRING"/>
- <Column id="opcd" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_send_opcond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="pid" type="STRING" size="256"/>
- <Column id="instcd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="pid"/>
- <Col id="instcd"/>
- </Row>
- </Rows>
- </Dataset>
- </Objects>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2017-08-10
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2018-04-23 New 전원소견서 수술정보 설정부분
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- //=======================================================================================
- // Lib Include
- //---------------------------------------------------------------------------------------
- include "com_commonxp::comm_main.xjs";
- //=======================================================================================
- // Global Form Variable
- //---------------------------------------------------------------------------------------
- var gPID = "";
- var gORDDEPTCD = "";
- var gORDDD = "";
- var gIOFLAG = "";
- //=======================================================================================
- // Function
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Argument : N/A
- * Description :
- ****************************************************************************************/
- function lf_(){
- }
- //=======================================================================================
- // Transaction Callback
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Argument : 01.sSvcId : 서비스 ID
- * : 02.nErrorCode : 에러코드
- * : 03.sErrorMsg : 에러메시지
- * Description : cf_의 콜백함수
- ****************************************************************************************/
- function cf_(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- if(nErrorCode < 0) return;
- }
- //=======================================================================================
- // Event
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Components : Form
- * Components ID : SPARC00210
- * Event : oninit
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 초기화
- ****************************************************************************************/
- function SPARC00210_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- /****************************************************************************************
- * Components : Form
- * Components ID : SPARC00210
- * Event : onload
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 초기화
- ****************************************************************************************/
- function SPARC00210_onload(obj:Form, e:LoadEventInfo)
- {
- //Grid Setting
- grdf_initGrid(grd_opinfo);
-
- var patinfo = opener.frmf_getParameter("SPARC00210_patinfo");
- if(!utlf_isNull(patinfo) && patinfo.length > 0){
- patinfo = patinfo.split("▦");
- gPID = patinfo[0];
- gORDDEPTCD = patinfo[1];
- gORDDD = patinfo[2];
- gIOFLAG = patinfo[3];
-
- ds_send_opcond.setColumn(0,"pid", gPID);
- ds_send_opcond.setColumn(0,"instcd", sysf_getUserInfo("dutplceinstcd"));
-
- fOpSearch();
- }
-
- }
- /****************************************************************************************
- * Argument : N/A
- * Description : 처방정보 조회
- ****************************************************************************************/
- function fOpSearch()
- {
- var oParam = {};
- oParam.id = "TRARC00210";
- oParam.service = "healcarecoopapp.ReqMngt";
- oParam.method = "reqGetOpSrch";
- oParam.inds = "req=ds_send_opcond";
- oParam.outds = "ds_grd_opinfo=oplist";
- oParam.async = false;
- oParam.callback = "cf_TRARC00210";
- tranf_submit(oParam);
-
- }
- /****************************************************************************************
- * Argument : 01.sSvcId : 서비스 ID
- * : 02.nErrorCode : 에러코드
- * : 03.sErrorMsg : 에러메시지
- * Description : cf_의 콜백함수
- ****************************************************************************************/
- function cf_TRARC00210(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
-
- ds_grd_opinfo.addColumn("chk","string");
-
- }
- function button13_onclick(obj:Button, e:ClickEventInfo)
- {
- var rtn1 = dsf_getDsCSV(ds_grd_opinfo, null, "N", "chk:1", "Y");
-
- if ( rtn1 == "N" ) {
- sysf_messageBox ( "선택된 수술정보가", "I004" );
- } else {
- opener.frmf_setParameter( "SPARC00210_rtn", rtn1 );
- opener.frmf_setParameter( "SPARC00210_rtn_useyn", "Y");
- close();
- }
- }
- ]]></Script>
- </Form>
- </FDL>
|