123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPMMB02700" position="absolute 0 0 403 190" titletext="전달사항" oninit="SPMMB02700_oninit" onload="SPMMB02700_onload">
- <Layouts>
- <Layout>
- <Static text="전달사항" position="absolute 0 0 179 20" id="cap_title" class="tit_1"/>
- <Button position="absolute 280 166 336 188" id="button1" class="btn4" text="확인" onclick="button1_onclick"/>
- <Button position="absolute 340 166 396 188" id="button3" class="btn4" text="취소" onclick="button3_onclick"/>
- <Static id="cap_00_part" text="적용부위 (다중선택)" class="tit_2" position="absolute 0 28 179 48"/>
- <Edit id="ipt_00_part" taborder="2" enable="false" position="absolute 98 64 373 83"/>
- <Static id="cap_00_time1" text="적용시간" class="tit_2" position="absolute 0 90 80 110"/>
- <Static id="cap_00_time2" text="지금부터 시간" position="absolute 80 90 220 105"/>
- <Edit id="ipt_00_time" taborder="3" position="absolute 135 87 170 106" inputtype="number"/>
- <Static id="cap_00_resn1" text="적용사유" class="tit_2" position="absolute 0 122 80 142"/>
- <Combo id="sel_00_resn" taborder="4" codecolumn="value" datacolumn="label" position="absolute 80 120 395 139" onitemchanged="sel_00_resn_onitemchanged" innerdataset="@ds_resn"/>
- <Static id="cap_00_resn2" text="기타내용" position="absolute 22 144 77 159"/>
- <Edit id="ipt_00_resn" taborder="5" enable="false" position="absolute 80 141 395 160"/>
- <CheckBox id="chk_partsel1" taborder="6" text="4 Extremities" position="absolute 16 44 109 64" falsevalue="0" truevalue="1"/>
- <CheckBox id="chk_partsel2" taborder="7" text="Chest" position="absolute 115 44 176 64" falsevalue="0" truevalue="1"/>
- <CheckBox id="chk_partsel3" taborder="8" text="RA" position="absolute 184 44 229 64" falsevalue="0" truevalue="1"/>
- <CheckBox id="chk_partsel4" taborder="9" text="RL" position="absolute 232 44 277 64" falsevalue="0" truevalue="1"/>
- <CheckBox id="chk_partsel5" taborder="10" text="LA" position="absolute 280 44 325 64" onclick="chk_partsel5_onclick" falsevalue="0" truevalue="1"/>
- <CheckBox id="chk_partsel7" taborder="11" text="기타" position="absolute 16 64 91 84" onchanged="chk_partsel7_onchanged" falsevalue="0" truevalue="1"/>
- <CheckBox id="chk_partsel6" taborder="12" text="LL" position="absolute 328 44 365 64" falsevalue="0" truevalue="1"/>
- <Shape id="line00" class="line_4" position="absolute 1 10 401 31"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_main" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="partsel" type="STRING" size="256"/>
- <Column id="partrmk" type="STRING" size="256"/>
- <Column id="time" type="STRING" size="256"/>
- <Column id="resn" type="STRING" size="256"/>
- <Column id="resnrmk" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_resn" 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">의식장애 등으로 안전한 의료를 수행할 수 없는 경우</Col>
- </Row>
- <Row>
- <Col id="label">치료의 과정에서 활동의 제한이 필요한 경우</Col>
- <Col id="value">치료의 과정에서 활동의 제한이 필요한 경우</Col>
- </Row>
- <Row>
- <Col id="label">환자 자신이나 다른 사람을 해칠 명백하거나 임박한 위험이 예상되는 경우</Col>
- <Col id="value">환자 자신이나 다른 사람을 해칠 명백하거나 임박한 위험이 예상되는 경우</Col>
- </Row>
- <Row>
- <Col id="label">기타</Col>
- <Col id="value">기타</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="Dataset02" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="Dataset03" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="Dataset04" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="ipt_00_part" propid="value" datasetid="ds_main" columnid="partrmk"/>
- <BindItem id="item1" compid="ipt_00_time" propid="value" datasetid="ds_main" columnid="time"/>
- <BindItem id="item2" compid="sel_00_resn" propid="value" datasetid="ds_main" columnid="resn"/>
- <BindItem id="item3" compid="ipt_00_resn" propid="value" datasetid="ds_main" columnid="resnrmk"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2015-06-24
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2015-06-24 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- include "com_commonxp::comm_main.xjs";
- include "emr_prcpmngtxp::MMO001.xjs";
- function SPMMB02700_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SPMMB02700_onload(obj:Form, e:LoadEventInfo)
- {
- // var sCond1 = opener.frmf_getParameter("SPMMB02700_cond1"); //opener.javascript.getParameter("SPMMB02700_cond1");
- // if(sCond1 == "00") {
- // model.toggle("00");
- // } else {
- // model.toggle("00");
- // }
- }
- /*
- function chb_00_part_onchanged(obj:CheckBox, e:CheckBoxChangeEventInfo)
- {
- var sPartSel = ds_main.getColumn(0, "partsel"); //model.getValue("/root/main/partsel");
- if(sPartSel.indexOf("9") >= 0) {
- ipt_00_part.enable = true;
- } else {
- ipt_00_part.enable = false;
- ds_main.setColumn(0, "partrmk", ""); //model.setValue("/root/main/partrmk", "");
- //ipt_00_part.refresh();
- }
- }
- */
- function sel_00_resn_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
- var sResn = ds_main.getColumn(0, "resn") //model.getValue("/root/main/resn");
- if(sResn == "기타") {
- ipt_00_resn.enable = true;
- } else {
- ipt_00_resn.enable = false;
- ds_main.setColumn(0, "resnrmk", ""); //model.setValue("/root/main/resnrmk", "");
- //ipt_00_resn.refresh();
- }
- }
- function button1_onclick(obj:Button, e:ClickEventInfo)
- {
- //var sPartSel = ds_main.getColumn(0, "partsel");
- var partsel1 = parseInt(chk_partsel1.value);
- var partsel2 = parseInt(chk_partsel2.value);
- var partsel3 = parseInt(chk_partsel3.value);
- var partsel4 = parseInt(chk_partsel4.value);
- var partsel5 = parseInt(chk_partsel5.value);
- var partsel6 = parseInt(chk_partsel6.value);
- var partsel7 = parseInt(chk_partsel7.value);
- var sPartRmk = ds_main.getColumn(0, "partrmk");
- var sTime = ds_main.getColumn(0, "time");
- var sResn = ds_main.getColumn(0, "resn");
- var sResnRmk = ds_main.getColumn(0, "resnrmk");
-
- if( (partsel1+partsel2+partsel3+partsel4+partsel5+partsel6+partsel7) < 1 ) { // sPartSel == ""
- sysf_messageBox ( "적용부위를 선택하세요.", "E" );
- return;
- }
- if( partsel7 == 1 ) { // sPartSel.indexOf("9") >= 0
- if( utlf_isNull(sPartRmk) ) { // sPartRmk == ""
- sysf_messageBox ( "적용부위를 기타로 선택 하면 내용을 입력하셔야 합니다.", "E" );
- return;
- }
- }
-
- if( utlf_isNull(sTime) ) { // sTime == ""
- sysf_messageBox ( "적용시간을 입력 하세요.", "E" );
- return;
- }
- if( utlf_isNull(sResn) ) { // sResn == ""
- sysf_messageBox ( "적용사유을 입력 하세요.", "E" );
- return;
- }
-
- if( sResn == "기타" && utlf_isNull(sResnRmk)) { // sResn == "기타" && sResnRmk == ""
- sysf_messageBox ( "적용사유를 기타로 선택 하면 내용을 입력하셔야 합니다.", "E" );
- return;
- }
-
- var arrTextList = new Array();
- arrTextList[1] = chk_partsel1.text;
- arrTextList[2] = chk_partsel2.text;
- arrTextList[3] = chk_partsel3.text;
- arrTextList[4] = chk_partsel4.text;
- arrTextList[5] = chk_partsel5.text;
- arrTextList[6] = chk_partsel6.text;
- arrTextList[7] = chk_partsel7.text;
-
- var arrChkList = new Array();
- arrChkList[1] = partsel1;
- arrChkList[2] = partsel2;
- arrChkList[3] = partsel3;
- arrChkList[4] = partsel4;
- arrChkList[5] = partsel5;
- arrChkList[6] = partsel6;
- arrChkList[7] = partsel7;
- var sPartLable = "";
- var tempBool = false;
-
- for( var i = 1; i < 8; i++ ) {
- if(arrChkList[i] == 1){
- if( tempBool == false ) {
- sPartLable = sPartLable + arrTextList[i];
- tempBool = true;
- } else {
- sPartLable = sPartLable + "," + arrTextList[i];
- }
- }
- }
-
- if( partsel7 == 1 ) { // sPartSel.indexOf("9") >= 0
- sPartLable = sPartLable + " (" + sPartRmk + ")";
- }
-
- var sResnLable = sResn;
- if(sResn == "기타") {
- sResnLable = sResnLable + "(" +sResnRmk+ ")";
- }
-
- var sPrcpDeliveFact = "적용부위 : " + sPartLable + " 적용시간 : 지금부터 " + sTime + "시간 적용사유 : " + sResnLable;
- opener.frmf_setParameter("SPMMB02700_rtn", "Y");
- opener.frmf_setParameter("SPMMB02700_prcpdelivefact", sPrcpDeliveFact);
- close();
- }
- function button3_onclick(obj:Button, e:ClickEventInfo)
- {
- close();
- }
- function chk_partsel7_onchanged(obj:CheckBox, e:CheckBoxChangeEventInfo)
- {
- var sPartSel = chk_partsel7.value; //ds_main.getColumn(0, "partsel"); //model.getValue("/root/main/partsel");
-
- if(sPartSel == 1) {
- ipt_00_part.enable = true;
- } else {
- ipt_00_part.enable = false;
- ds_main.setColumn(0, "partrmk", ""); //model.setValue("/root/main/partrmk", "");
- //ipt_00_part.refresh();
- }
- }
- ]]></Script>
- </Form>
- </FDL>
|