123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMMNS02000" position="absolute 0 0 615 335" titletext="SMS 전송" oninit="SMMNS02000_oninit" onload="SMMNS02000_onload">
- <Layouts>
- <Layout>
- <Div position="absolute 0 0 611 307" id="group3" scrollbars="autoboth">
- <Layouts>
- <Layout>
- <Static text="상용문구 리스트" position="absolute 0 9 118 25" id="caption7" class="tit_2" anchor="default"/>
- <TextArea position="absolute 290 30 430 190" align="align:left top;" id="textarea1" autoselect="true" anchor="default" wordwrap="word"/>
- <Shape position="absolute 290 301 611 307" linetype="horizontal" id="line4" class="line_3" anchor="default"/>
- <Shape position="absolute 0 25 611 31" linetype="horizontal" id="line5" class="line_10" anchor="default"/>
- <Grid position="absolute 0 30 285 305" id="grd_baselist" binddataset="ds_main_basecodelist_basecodelistinfo" anchor="default" oncellclick="group3_grd_baselist_oncellclick" extendsizetype="row" autosizingtype="row">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="20" band="left"/>
- <Column size="0"/>
- <Column size="245"/>
- <Column size="0"/>
- <Column size="0"/>
- <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="caption1"/>
- <Cell col="4" text="caption2"/>
- <Cell col="5" text="caption3"/>
- <Cell col="6" text="caption4"/>
- <Cell col="7" text="caption5"/>
- </Band>
- <Band id="body">
- <Cell celltype="head"/>
- <Cell col="1" text="bind:basetypenm"/>
- <Cell col="2" displaytype="text" edittype="textarea" text="bind:typenm" wordwrap="word" editlimit="80" editautoskip="true" autosizerow="limitmin"/>
- <Cell col="3" text="bind:basetypecd"/>
- <Cell col="4" text="bind:baseclsflag"/>
- <Cell col="5" text="bind:supbasetypecd"/>
- <Cell col="6" text="bind:cdcls"/>
- <Cell col="7" text="bind:orddeptcd"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button position="absolute 240 5 282 24" id="button6" class="btn2" visible="true" text="저장" anchor="default" onclick="group3_button6_onclick"/>
- <Static text="전송 내용" position="absolute 290 9 403 25" align="align:center middle;" id="caption66" class="tit_2" anchor="default"/>
- <Shape position="absolute 290 195 611 201" linetype="horizontal" id="line2" class="line_10" anchor="default"/>
- <Button position="absolute 580 130 596 146" id="button10" class="icon_clock" text="" anchor="default" onclick="group3_button10_onclick"/>
- <Calendar position="absolute 440 130 528 149" id="ipt_rsvdd" class="input_search" autoskip="true" anchor="default"/>
- <MaskEdit position="absolute 535 130 574 149" id="ipt_rsvtm" class="input_default" mask="##:##" autoselect="true" type="string" maskchar=" " displaynulltext=" " trimtype="both" anchor="default"/>
- <Radio position="absolute 440 80 537 123" id="rdo_dt" columncount="1" codecolumn="codecolumn" datacolumn="datacolumn" anchor="default" onitemchanged="group3_rdo_dt_onitemchanged">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">0</Col>
- <Col id="datacolumn">즉시전송</Col>
- </Row>
- <Row>
- <Col id="codecolumn">1</Col>
- <Col id="datacolumn">예약일시 전송</Col>
- </Row>
- </Rows>
- </Dataset>
- </Radio>
- <Button position="absolute 195 5 237 24" id="button1" class="btn2" visible="true" text="삭제" anchor="default" onclick="group3_button1_onclick"/>
- <Grid position="absolute 290 200 611 302" id="grd_manalist" binddataset="ds_main_opatlist_opatlist" anchor="default" oncellclick="group3_grd_manalist_oncellclick" onexpandup="group3_grd_manalist_onexpandup" autoenter="select">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="20" band="left"/>
- <Column size="78"/>
- <Column size="88"/>
- <Column size="134"/>
- <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="HP"/>
- <Cell col="4" text="cretno"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" expr="expr:currow + 1"/>
- <Cell col="1" displaytype="text" edittype="text" text="bind:pid" expandshow="show"/>
- <Cell col="2" text="bind:hngnm"/>
- <Cell col="3" displaytype="text" edittype="text" text="bind:mpphontel"/>
- <Cell col="4" text="bind:cretno"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button position="absolute 150 5 192 24" id="button2" class="btn2" visible="true" text="추가" anchor="default" onclick="group3_button2_onclick"/>
- <Button position="absolute 553 175 606 194" id="button11" class="btn2" text="행삭제" anchor="default" onclick="group3_button11_onclick"/>
- <Button position="absolute 495 175 548 194" id="button3" class="btn2" text="행추가" anchor="default" onclick="group3_button3_onclick"/>
- </Layout>
- </Layouts>
- </Div>
- <Div position="absolute 0 305 611 332" id="grp_btn" scrollbars="autoboth">
- <Layouts>
- <Layout>
- <Button position="absolute 555 5 611 27" id="button9" class="btn4" text="취소" onclick="grp_btn_button9_onclick"/>
- <Shape position="absolute 0 0 611 6" linetype="horizontal" id="line32" class="line_6"/>
- <Button position="absolute 495 5 551 27" id="button4" class="btn4" text="전송" onclick="grp_btn_button4_onclick"/>
- </Layout>
- </Layouts>
- </Div>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_main_opatlist_opatlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="pid" type="STRING"/>
- <Column id="hngnm" type="STRING"/>
- <Column id="mpphontel" type="STRING"/>
- <Column id="cretno" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_send_req" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="supbasetypecd" type="STRING" size="256" sumtext="선택한인덱스코드"/>
- <Column id="basetypecd" type="STRING" size="256" sumtext="선택한인덱스코드"/>
- <Column id="baseclsflag" type="STRING" size="256" sumtext="기준분류코드"/>
- <Column id="orddeptcd" type="STRING" size="256" sumtext="진료부서코드"/>
- <Column id="rsrvyn" type="STRING" size="256"/>
- <Column id="rsrvdate" type="STRING" size="256"/>
- <Column id="rsrvtime" type="STRING" size="256"/>
- <Column id="msgparam" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_basecodelist_basecodelistinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="basetypecd" type="STRING" size="256" sumtext="기준형태코드"/>
- <Column id="baseclsflag" type="STRING" size="256" sumtext="기준분류코드"/>
- <Column id="supbasetypecd" type="STRING" size="256" sumtext="분류상위코드"/>
- <Column id="cdcls" type="STRING" size="256" sumtext="코드분류"/>
- <Column id="typenm" type="STRING" size="256" sumtext="형태명칭"/>
- <Column id="refseq" type="STRING" size="256" sumtext="조회순서"/>
- <Column id="basetypenm" type="STRING" size="256" sumtext="기준형태명"/>
- <Column id="orddeptcd" type="STRING" size="256" sumtext="진료부서코드"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_send_msgdata" 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="basetypecd" type="STRING" size="256" sumtext="기준형태코드"/>
- <Column id="baseclsflag" type="STRING" size="256" sumtext="기준분류코드"/>
- <Column id="supbasetypecd" type="STRING" size="256" sumtext="분류상위코드"/>
- <Column id="cdcls" type="STRING" size="256" sumtext="코드분류"/>
- <Column id="typenm" type="STRING" size="256" sumtext="형태명칭"/>
- <Column id="refseq" type="STRING" size="256" sumtext="조회순서"/>
- <Column id="orddeptcd" type="STRING" size="256" sumtext="진료부서코드"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_send_opatinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="acptyn" type="STRING" size="256" sumtext="접수구분"/>
- <Column id="orddd" type="STRING" size="256" sumtext="진료일자"/>
- <Column id="ordtm" type="STRING" size="256" sumtext="예약일시"/>
- <Column id="pid" type="STRING" size="256" sumtext="등록번호"/>
- <Column id="hngnm" type="STRING" size="256" sumtext="환자명"/>
- <Column id="orddeptcd" type="STRING" size="256" sumtext="진료과코드"/>
- <Column id="orddrid" type="STRING" size="256" sumtext="진료의사"/>
- <Column id="mpphontel" type="STRING" size="256" sumtext="휴대전화번호"/>
- <Column id="cretno" type="STRING" size="256" sumtext="생성번호"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="item" 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="rsrvyn" type="STRING" size="256"/>
- <Column id="rsrvdate" type="STRING" size="256"/>
- <Column id="rsrvtime" type="STRING" size="256"/>
- <Column id="baseclsflag" type="STRING" size="256"/>
- <Column id="supbasetypecd" type="STRING" size="256"/>
- <Column id="orddeptcd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_temp_paminfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_data_rtn" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="group3.textarea1" propid="value" datasetid="ds_item" columnid="item"/>
- <BindItem id="item1" compid="group3.rdo_dt" propid="value" datasetid="ds_main_cond" columnid="rsrvyn"/>
- <BindItem id="item2" compid="group3.ipt_rsvdd" propid="value" datasetid="ds_main_cond" columnid="rsrvdate"/>
- <BindItem id="item3" compid="group3.ipt_rsvtm" propid="value" datasetid="ds_main_cond" columnid="rsrvtime"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name : 경대 의료정보시스템
- * Job Name : emr_spclcarexp -> SMMNS02000
- * Creator : yjh
- * Make Date : 2017-09-18
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2017-09-18 yjh TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- //=======================================================================================
- // Lib Include
- //---------------------------------------------------------------------------------------
- include "com_commonxp::comm_main.xjs";
- include "emr_spclcarexp::SMMNS02000.xjs";
- include "emr_spclcarexp::MNS001.xjs";
- //=======================================================================================
- // Global Form Variable
- //---------------------------------------------------------------------------------------
- var arErrorCode = new HashArray();
- //=======================================================================================
- // Function
- //---------------------------------------------------------------------------------------
- //=======================================================================================
- // Event
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Components : Form
- * Components ID : SMMNS02000
- * Event : oninit
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 처음 초기화시
- ****************************************************************************************/
- function SMMNS02000_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj); //폼 초기화
- }
- /****************************************************************************************
- * Components : Form
- * Components ID : SMMNS02000
- * Event : onload
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 로딩 완료시
- ****************************************************************************************/
- function SMMNS02000_onload(obj:Form, e:LoadEventInfo)
- {
- ds_main_cond.setColumn(0, "rsrvyn", "0");
-
- grdf_setRowTypeIcon(group3.grd_baselist, 0);
-
- fInitialize();
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : button6
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 저장버튼 클릭시
- ****************************************************************************************/
- function group3_button6_onclick(obj:Button, e:ClickEventInfo)
- {
- fSave("I");
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : button10
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 시계버튼 클릭시
- ****************************************************************************************/
- function group3_button10_onclick(obj:Button, e:ClickEventInfo)
- {
- fAutoSeldt();
- }
- /****************************************************************************************
- * Components : Radio
- * Components ID : rdo_dt
- * Event : onitemchanged
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 라디오 값 변경시
- ****************************************************************************************/
- function group3_rdo_dt_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
- {
- fAutoSeldt();
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : button1
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 삭제버튼 클릭시
- ****************************************************************************************/
- function group3_button1_onclick(obj:Button, e:ClickEventInfo)
- {
- fDelete(ds_main_basecodelist_basecodelistinfo.rowposition);
- }
- /****************************************************************************************
- * Components : Grid
- * Components ID : grd_manalist
- * Event : oncellclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 그리드 셀 클릭시
- ****************************************************************************************/
- function group3_grd_manalist_oncellclick(obj:Grid, e:GridClickEventInfo)
- {
- var iRow = ds_main_basecodelist_basecodelistinfo.rowposition;
- if(iRow < 0) return;
- ds_item.setColumn(0, "item", ds_main_basecodelist_basecodelistinfo.getColumn(iRow, "typenm"));
- }
- /****************************************************************************************
- * Components : Grid
- * Components ID : grd_manalist
- * Event : onexpandup
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : expand버튼 클릭시
- ****************************************************************************************/
- function group3_grd_manalist_onexpandup(obj:Grid, e:GridMouseEventInfo)
- {
- var flg = '3';
- var xpath = 'ds_main_opatlist_opatlist';
- var pNRow = e.row;
-
- //환자조회팝업 호출
- fPopPatient(flg, xpath, pNRow);
- }
- function fsetting(){
-
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : button2
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 추가버튼 클릭시
- ****************************************************************************************/
- function group3_button2_onclick(obj:Button, e:ClickEventInfo)
- {
- fAddRowSave();
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : button11
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 행삭제버튼 클릭시
- ****************************************************************************************/
- function group3_button11_onclick(obj:Button, e:ClickEventInfo)
- {
- var curRow = ds_main_opatlist_opatlist.rowposition;
- if(curRow > -1){
- ds_main_opatlist_opatlist.deleteRow(curRow);
- }
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : button3
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 행추가버튼 클릭시
- ****************************************************************************************/
- function group3_button3_onclick(obj:Button, e:ClickEventInfo)
- {
- ds_main_opatlist_opatlist.addRow();
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : button9
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 취소버튼 클릭시
- ****************************************************************************************/
- function grp_btn_button9_onclick(obj:Button, e:ClickEventInfo)
- {
- this.close();
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : button4
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 전송버튼 클릭시
- ****************************************************************************************/
- function grp_btn_button4_onclick(obj:Button, e:ClickEventInfo)
- {
- fCallMngtInfo();
- }
- /****************************************************************************************
- * Components : Grid
- * Components ID : grd_baselist
- * Event : oncellclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 그리드 셀 클릭시
- ****************************************************************************************/
- function group3_grd_baselist_oncellclick(obj:Grid, e:GridClickEventInfo)
- {
- fMoveMsg();
- }
- ]]></Script>
- </Form>
- </FDL>
|