123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPMNP00201" position="absolute 0 0 680 480" titletext="Untitle" oninit="SPMNP00201_oninit" onload="SPMNP00201_onload">
- <Layouts>
- <Layout>
- <Static text="SMS상용문구관리" position="absolute 0 10 225 26" align="align:center middle;" id="caption1" class="tit_2"/>
- <Grid position="absolute 0 30 665 435" id="grd_smslist" binddataset="ds_main_smsinfo_smslist">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="20"/>
- <Column size="100"/>
- <Column size="542"/>
- <Column size="100"/>
- <Column size="100"/>
- </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"/>
- </Band>
- <Band id="body">
- <Cell/>
- <Cell col="1" displaytype="text" edittype="text" text="bind:codenm1"/>
- <Cell col="2" displaytype="text" edittype="text" text="bind:code3commt"/>
- <Cell col="3" style="align:left;" text="bind:lrgclscd"/>
- <Cell col="4" style="align:left;" text="bind:kindcd"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button position="absolute 513 5 566 24" id="button1" class="btn2" text="행추가" onclick="button1_onclick"/>
- <Button position="absolute 568 5 621 24" id="button2" class="btn2" text="행삭제" onclick="button2_onclick"/>
- <Button position="absolute 623 5 665 24" id="button3" class="btn5" text="저장" onclick="button3_onclick"/>
- <Button position="absolute 610 440 666 462" id="btn_cncl" class="btn4" text="취소" onclick="btn_cncl_onclick"/>
- <Button position="absolute 550 440 606 462" id="btn_cnfm" class="btn4" text="확인" onclick="btn_cnfm_onclick"/>
- <Static text="상용문구에 @로 입력하시면, 수술전처치에서 @가 환자명으로 바뀝니다. ex) @보호자님 대기실로 오세요 => 김XX 보호자님 대기실로 오세요." position="absolute 10 440 404 468" id="caption2"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_main_smsinfo_smslist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="lrgclscd" type="STRING" size="256" sumtext="이력일련번호"/>
- <Column id="kindcd" type="STRING" size="256" sumtext="코드ID"/>
- <Column id="codenm1" type="STRING" size="256" sumtext="정렬순서"/>
- <Column id="codenm2" type="STRING" size="256" sumtext="수술상태확인내역"/>
- <Column id="codenm3" type="STRING" size="256" sumtext="수술준비체크(YES)"/>
- <Column id="code3commt" type="STRING" size="256" sumtext="수술준비체크(NO)"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_send_reqdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="lrgclscd" type="STRING" size="256" sumtext="기관코드"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_send_savedata_smslist" 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="status"/>
- <Column id="lrgclscd" type="STRING" size="256" sumtext="분류코드"/>
- <Column id="codenm1" type="STRING" size="256" sumtext="SMS분류명"/>
- <Column id="code3commt" type="STRING" size="256" sumtext="SMS내용"/>
- <Column id="kindcd" type="STRING" size="256" sumtext="코드번호"/>
- </ColumnInfo>
- </Dataset>
- </Objects>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name : 경대 의료정보시스템
- * Job Name : emr_opanstxp -> SPMNP00201
- * Creator : yjh
- * Make Date : 2016-06-08
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2016-06-08 yjh TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- //=======================================================================================
- // Lib Include
- //---------------------------------------------------------------------------------------
- include "com_commonxp::comm_main.xjs";
- //=======================================================================================
- // Global Form Variable
- //---------------------------------------------------------------------------------------
- //=======================================================================================
- // Function
- //---------------------------------------------------------------------------------------
- function fSearch() {
- ds_send_reqdata.setColumn(0, "lrgclscd", "'03'");
-
- var oParam = {};
- oParam.id = "TRMNP00230";
- oParam.service = "opanstapp.OpAnstRec";
- oParam.method = "reqGetSmsBaseInfo";
- oParam.inds = "req=ds_send_reqdata";
- oParam.outds = "ds_main_smsinfo_smslist=smslist";
- oParam.async = false;
- //oParam.callback = "cf_TRMNP00230";
- tranf_submit(oParam);
-
- }
- function fSave() {
-
- var node = -1;
- for( var i=0 ; i<ds_main_smsinfo_smslist.rowcount ; i++ ){
- if( utlf_isNull(ds_main_smsinfo_smslist.getColumn(i, "codenm1")) ){
- node = i;
- }
- }
-
- var node2 = -1;
- for( var i=0 ; i<ds_main_smsinfo_smslist.rowcount ; i++ ){
- if( utlf_isNull(ds_main_smsinfo_smslist.getColumn(i, "code3commt")) ){
- node2 = i;
- }
- }
-
- if( node > -1 ){
- sysf_messageBox("분류를 입력하십시오.", "E");
- return;
- }
-
- if( node2 > -1 ){
- sysf_messageBox("SMS상용문구를 입력하십시오.", "E");
- return;
- }
-
- var savedata = grdf_getGridUpdateData(grd_smslist, "all");
- grdf_setStatusColumn(savedata, "status");
-
- if( savedata.rowcount < 1 ){
- sysf_messageBox("변경된 데이터가 없습니다", "E");
- return;
- }
-
- ds_send_savedata_smslist.assign(savedata);
-
- var oParam = {};
- oParam.id = "TXMNP00230";
- oParam.service = "opanstapp.OpAnstRec";
- oParam.method = "reqExeSmsBaseInfo";
- oParam.inds = "smslist=ds_send_savedata_smslist:A";
- oParam.outds = "";
- oParam.async = false;
- //oParam.callback = "cf_TXMNP00230";
- tranf_submit(oParam);
-
- }
- //=======================================================================================
- // Event
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Components : Form
- * Components ID : SPMNP00201
- * Event : oninit
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 처음 초기화시
- ****************************************************************************************/
- function SPMNP00201_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj); //폼 초기화
- }
- /****************************************************************************************
- * Components : Form
- * Components ID : SPMNP00201
- * Event : onload
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 로딩 완료시
- ****************************************************************************************/
- function SPMNP00201_onload(obj:Form, e:LoadEventInfo)
- {
- var popyn = sysf_getModelProperty("popyn");
-
- if(popyn == "Y") {
- btn_cnfm.enable = true;
- btn_cncl.enable = true;
- } else {
- btn_cnfm.enable = false;
- btn_cncl.enable = false;
- }
-
- fSearch() ;
-
- grdf_setRowTypeIcon(grd_smslist, 0);
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : button1
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 행추가버튼 클릭시
- ****************************************************************************************/
- function button1_onclick(obj:Button, e:ClickEventInfo)
- {
- var nRow = ds_main_smsinfo_smslist.addRow();
- ds_main_smsinfo_smslist.setColumn(nRow, "lrgclscd", "03");
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : button2
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 행삭제버튼 클릭시
- ****************************************************************************************/
- function button2_onclick(obj:Button, e:ClickEventInfo)
- {
- if( grd_smslist.currentrow > -1 ){
- ds_main_smsinfo_smslist.enableevent = false;
- ds_main_smsinfo_smslist.updatecontrol = false;
-
- ds_main_smsinfo_smslist.setRowType(ds_main_smsinfo_smslist.rowposition, 8);
-
- ds_main_smsinfo_smslist.updatecontrol = true;
- ds_main_smsinfo_smslist.enableevent = true;
- }
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : button3
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 저장버튼 클릭시
- ****************************************************************************************/
- function button3_onclick(obj:Button, e:ClickEventInfo)
- {
- fSave();
- fSearch();
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_cncl
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 취소버튼 클릭시
- ****************************************************************************************/
- function btn_cncl_onclick(obj:Button, e:ClickEventInfo)
- {
- close();
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_cnfm
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 확인버튼 클릭시
- ****************************************************************************************/
- function btn_cnfm_onclick(obj:Button, e:ClickEventInfo)
- {
- var row = grd_smslist.currentrow;
- if(row < 0) {
- sysf_messageBox("SMS 상용문구가 선택되지 않았습니다.", "E");
- return;
- }
- var smsmsg = ds_main_smsinfo_smslist.getColumn(row, "code3commt");
- opener.frmf_setParameter("SPMNP00201_smsmsg", smsmsg);
- close();
- }
- ]]></Script>
- </Form>
- </FDL>
|