123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPMNW04702" position="absolute 0 0 605 881" titletext="욕창상처관찰기록" oninit="SPMNW04702_oninit" onload="SPMNW04702_onload" onbeforeclose="SPMNW04702_onbeforeclose" ontimer="SPMNW04702_ontimer">
- <Layouts>
- <Layout>
- <Div position="absolute 0 0 604 849" align="align:center top;" id="grp_sea">
- <Layouts>
- <Layout>
- <Grid position="absolute 0 0 604 825" id="grd_userlist" binddataset="ds_main_detlgrup_getVO" anchor="default" autofittype="col" cellsizingtype="both" extendsizetype="both" autosizingtype="both" oncellclick="grp_sea_grd_userlist_oncellclick" onenteredit="grp_sea_grd_userlist_onenteredit" onlbuttondown="grp_sea_grd_userlist_onlbuttondown" cellclickbound="cell">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="100"/>
- <Column size="47"/>
- <Column size="161"/>
- <Column size="275"/>
- <Column size="0"/>
- <Column size="0"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell text="구분"/>
- <Cell col="1" text="선택"/>
- <Cell col="2" text="평가 및 적용 내용"/>
- <Cell col="3" text="세부설명"/>
- <Cell col="4" text="그룹코드"/>
- <Cell col="5" text="코드"/>
- </Band>
- <Band id="body">
- <Cell text="bind:grupnm" wordwrap="word" suppress="1" suppressalign="middle,over"/>
- <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:sel" expr="expr:sel == '1' || sel == 1 ? 1 : 0"/>
- <Cell col="2" style="align:left;" text="bind:cdnm"/>
- <Cell col="3" displaytype="text" edittype="expr:sel == '1' && cdnm == '기타' ? 'text' : ''" style="padding:2 2 2 2;" text="bind:detlinfo" wordwrap="word" autosizerow="limitmin" autosizecol="default"/>
- <Cell col="4" text="bind:grupcd"/>
- <Cell col="5" text="bind:cd"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- </Layout>
- </Layouts>
- </Div>
- <Div position="absolute 5 725 480 755" id="grp_etcarea" visible="false">
- <Layouts>
- <Layout>
- <Static text="기타 입력 :" position="absolute 5 5 70 25" id="caption2"/>
- <Edit position="absolute 75 5 465 24" id="input1"/>
- </Layout>
- </Layouts>
- </Div>
- <Div position="absolute 0 827 560 867" id="grp_dressingarea" visible="false">
- <Layouts>
- <Layout>
- <Static text="Dressing :" position="absolute 0 -2 65 18" id="caption1"/>
- <TextArea position="absolute 63 0 560 30" id="textarea1" enable="false" wordwrap="word" style=":disabled {padding:1 1 1 1;}"/>
- </Layout>
- </Layouts>
- </Div>
- <Button position="absolute 562 827 604 847" id="button1" class="btn2_letter2" text="확인" onclick="button1_onclick"/>
- <ImageViewer position="absolute 150 50 568 317" id="img1" visible="false" image="URL('IMG::emr/MN/dergrd1.png')"/>
- <ImageViewer position="absolute 150 50 568 317" id="img2" visible="false" image="URL('IMG::emr/MN/dergrd2.png')"/>
- <ImageViewer position="absolute 150 50 568 317" id="img3" visible="false" image="URL('IMG::emr/MN/dergrd3.png')"/>
- <ImageViewer position="absolute 150 50 568 317" id="img4" visible="false" image="URL('IMG::emr/MN/dergrd4.png')"/>
- <ImageViewer position="absolute 150 50 568 317" id="img5" visible="false" image="URL('IMG::emr/MN/dergrd5.png')"/>
- <ImageViewer position="absolute 150 50 568 317" id="img6" visible="false" image="URL('IMG::emr/MN/dergrd6.png')" stretch="fit"/>
- <Static text="※ 1~4단계 사정 및 종료 시에는 단계 변경이 불가능 합니다. 재사정 단계를 입력하시기 바랍니다." position="absolute 0 861 540 881" id="caption3"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_main_detlgrup_getVO" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false" oncolumnchanged="ds_main_detlgrup_getVO_oncolumnchanged">
- <ColumnInfo>
- <Column id="grupnm" type="STRING"/>
- <Column id="sel" type="STRING"/>
- <Column id="cdnm" type="STRING"/>
- <Column id="detlinfo" type="STRING"/>
- <Column id="grupcd" type="STRING"/>
- <Column id="cd" type="STRING"/>
- <Column id="flag" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_list_userlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_param" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="grp_etcarea.input1" propid="value" datasetid="ds_param" columnid="etc"/>
- <BindItem id="item1" compid="grp_dressingarea.textarea1" propid="value" datasetid="ds_param" columnid="dressing"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2015-11-13
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2015-11-13 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- include "com_commonxp::comm_main.xjs";
- include "emr_wardcarexp::SPMNW04702.xjs";
- var SPMNW04702_oOpener = "";
- var xExecDetlListPath = ds_main_detlgrup_getVO;
- var wincloseButton = false;
- function SPMNW04702_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- SPMRJ00300_oOpener = frmf_getoOpener();
- }
- function SPMNW04702_onload(obj:Form, e:LoadEventInfo)
- {
- fInitialize();
- //grd_userlist.mergecol(grd_userlist.colRef("sel")) = false;
- img1.visible = false;
- img2.visible = false;
- img3.visible = false;
- img4.visible = false;
- img5.visible = false;
- img6.visible = false;
-
- }
- function grp_sea_grd_userlist_oncellclick(obj:Grid, e:GridClickEventInfo)
- {
- img1.visible = false;
- img2.visible = false;
- img3.visible = false;
- img4.visible = false;
- img5.visible = false;
- img6.visible = false;
- //기타입력영역을 보여준다.
- fShowEtcInputArea();
-
- //dressing영역의 str을 변경한다.
- var cdNm = ds_main_detlgrup_getVO.getColumn(ds_main_detlgrup_getVO.rowposition, "cdnm");
- var isChecked = ds_main_detlgrup_getVO.getColumn(ds_main_detlgrup_getVO.rowposition, "sel");
-
- trace("cdNm : " + cdNm);
- trace("isChecked : " + isChecked);
- if(grp_sea.grd_userlist.currentcol == "1")
- {
- fChangeDressingStr(cdNm, isChecked);
-
- setTimer( 0, 1);
- }
- var grupcd = ds_main_detlgrup_getVO.getColumn(ds_main_detlgrup_getVO.rowposition, "grupcd");
-
- if (grupcd == "00000002" && grp_sea.grd_userlist.currentcol == "3")
- {
- if (cdNm.substr(0, 1) == "1") {
- img1.visible = true;
- } else if (cdNm.substr(0, 1) == "2") {
- img2.visible = true;
- } else if (cdNm.substr(0, 1) == "3") {
- img3.visible = true;
- } else if (cdNm.substr(0, 1) == "4") {
- img4.visible = true;
- } else if (cdNm.substr(0, 1) == "5") {
- img5.visible = true;
- } else if (cdNm.substr(0, 1) == "6") {
- img6.visible = true;
- } else {
- img1.visible = false;
- img2.visible = false;
- img3.visible = false;
- img4.visible = false;
- img5.visible = false;
- img6.visible = false;
- }
- }
- //190327_AYS_테스트 진행중
- fColumnInfoDisable();
-
- //grp_sea.grd_userlist.enableredraw = true;
- //grp_sea.grd_userlist.enableevent = true;
- }
- function button1_onclick(obj:Button, e:ClickEventInfo)
- {
- wincloseButton = true ;
- fPopClose();
- }
- function ds_main_detlgrup_getVO_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
- {
- var grupcd = ds_main_detlgrup_getVO.getColumn(ds_main_detlgrup_getVO.rowposition, "grupcd");
-
- if(grp_sea.grd_userlist.currentcol == 3)
- {
- trace("3 in");
- if(ds_main_detlgrup_getVO.getColumn(ds_main_detlgrup_getVO.rowposition, "sel") == "1")
- {
- if(ds_main_detlgrup_getVO.getColumn(ds_main_detlgrup_getVO.rowposition, "cdnm") == "기타")
- {
- if(grupcd == "00000001") {
- ds_param.setColumn(0, "causeEtcStr", ds_main_detlgrup_getVO.getColumn(ds_main_detlgrup_getVO.rowposition, "detlinfo"));
-
- } else if(grupcd == "00000002") {
- ds_param.setColumn(0, "stageEtcStr", ds_main_detlgrup_getVO.getColumn(ds_main_detlgrup_getVO.rowposition, "detlinfo"));
- } else if(grupcd == "00000003") {
- ds_param.setColumn(0, "colorEtcStr", ds_main_detlgrup_getVO.getColumn(ds_main_detlgrup_getVO.rowposition, "detlinfo"));
- } else if(grupcd == "00000004") {
- ds_param.setColumn(0, "stateEtcStr", ds_main_detlgrup_getVO.getColumn(ds_main_detlgrup_getVO.rowposition, "detlinfo"));
- } else if(grupcd == "00000005") {
- ds_param.setColumn(0, "amountEtcStr", ds_main_detlgrup_getVO.getColumn(ds_main_detlgrup_getVO.rowposition, "detlinfo"));
- } else if(grupcd == "00000006") {
- ds_param.setColumn(0, "symptomEtcStr", ds_main_detlgrup_getVO.getColumn(ds_main_detlgrup_getVO.rowposition, "detlinfo"));
- } else if(grupcd == "00000008") {
- ds_param.setColumn(0, "dressingEtcStr", ds_main_detlgrup_getVO.getColumn(ds_main_detlgrup_getVO.rowposition, "detlinfo"));
- }else if(grupcd == "00000009") { //20090220_SMY추가
- ds_param.setColumn(0, "genrplceEtcStr", ds_main_detlgrup_getVO.getColumn(ds_main_detlgrup_getVO.rowposition, "detlinfo"));
- }
- }
- }
- }
-
- if( e.columnid == "sel" ){
- trace("sel changed");
- obj.setColumn(e.row, "sel", (e.newvalue == "1" || e.newvalue == 1) ? "1" : "0");
- }
-
- }
- function SPMNW04702_onbeforeclose(obj:Form, e:CloseEventInfo)
- {
- if( !wincloseButton){
- opener.frmf_setParameter("returnnull","close");
- } else {
- opener.frmf_setParameter("returnnull","confirmbutton");
- }
- }
- function SPMNW04702_ontimer(obj:Form, e:TimerEventInfo)
- {
- if( e.timerid == 0 ){
- killTimer( 0 );
- var type = opener.frmf_getParameter("type");
- var flag = opener.frmf_getParameter("flag");
- var stat = opener.frmf_getParameter("stat");
- var cdValueStage = opener.frmf_getParameter("stagecdid");
-
- if( type == "2" && frmf_isPopup() ){
- for(var i = 0; i < ds_main_detlgrup_getVO.rowcount; i++)
- {
- grupcd = ds_main_detlgrup_getVO.getColumn(i, "grupcd");
-
- if(grupcd == "00000002" && flag != "00") //등록이 아닌 경우 단계 입력을 제어한다.
- {
- if (cdValueStage == "65" || cdValueStage == "66")
- {}
- else
- {
- grp_sea.grd_userlist.setRealRowSize(i, 0);
- }
- }
-
- if(grupcd == "00000009" && ( flag != "00" || stat != "i" )) //등록이 아닌 경우 발생장소 입력을 제어한다.
- {
- //grd_userlist.rowHidden (i) = true;
- grp_sea.grd_userlist.setRealRowSize(i, 0);
- }
-
- if(grupcd == "00000001" && ( flag != "00" || stat != "i" )) //등록이 아닌 경우 발생원인 입력을 제어한다.
- {
- //grd_userlist.rowHidden (i) = true;
- grp_sea.grd_userlist.setRealRowSize(i, 0);
- }
- }
- }
- }
- }
- function grp_sea_grd_userlist_onenteredit(obj:Grid, e:GridEditEventInfo)
- {
- //alert("11")
- }
- function grp_sea_grd_userlist_onlbuttondown(obj:Grid, e:GridMouseEventInfo)
- {
- //grp_sea.grd_userlist.enableredraw = false;
- //grp_sea.grd_userlist.enableevent = false;
- }
- function fColumnInfoDisable()
- {
- trace("tset in");
- var selected;
- var cd ;
- var grupcd;
- var falg;
-
- var iRow = ds_main_detlgrup_getVO.rowposition;
-
- selected = ds_main_detlgrup_getVO.getColumn(iRow, "sel");
- cd = ds_main_detlgrup_getVO.getColumn(iRow, "cd");
- cdnm = ds_main_detlgrup_getVO.getColumn(iRow, "cdnm");
- grupcd = ds_main_detlgrup_getVO.getColumn(iRow, "grupcd");
- flag = ds_main_detlgrup_getVO.getColumn(iRow, "flag");
-
- trace("selected : " + selected + " / cd : " + cd + " / cdnm : " + cdnm + " / grupcd : " + grupcd + " / flag : " + flag);
-
- // 190402_AYS_삼출액양(PUSH)_0(없음) 선택시 - 삼출액유형(PUSH) 선택되지 않도록 수정
- if(selected == "1" && grupcd == "00000005" && cd == "72" ) {
- for(var i = 0; i < ds_main_detlgrup_getVO.rowcount; i++)
- {
-
- var grup = ds_main_detlgrup_getVO.getColumn(i, "grupcd");
- if(grup == "00000004")
- {
- ds_main_detlgrup_getVO.setColumn(i, "flag", "Y");
- ds_main_detlgrup_getVO.setColumn(i, "sel", "");
- trace("OK!!");
- }
- }
- } else if( (selected = "1" && grupcd == "00000005" && cd != "72") || (selected != "1" && grupcd == "00000005" && cd == "72") ) {
- for(var i = 0; i < ds_main_detlgrup_getVO.rowcount; i++)
- {
- trace("test !!!00000004");
- var grup = ds_main_detlgrup_getVO.getColumn(i, "grupcd");
- if(grup == "00000004")
- {
- //dsf_makeValue(ds_main_detlgrup_getVO, "flag", "string", "");
- //ds_main_detlgrup_getVO.setColumn(i, "flag", "N");
- ds_main_detlgrup_getVO.setColumn(i, "flag", "");
- }
- }
- }
-
- // 190402_AYS_삼출액양(PUSH)_0(없음) 선택 후 - 삼출액유형(PUSH) 선택되지 않도록 수정
- if(grupcd == "00000004" && flag == "Y") {
- trace("alert ok!");
- alert("삼출액양(PUSH) 0(없음) 선택 시 삼출액유형(PUSH)을 선택할 수 없습니다.");
- ds_main_detlgrup_getVO.setColumn(iRow, "sel", "0");
- }
- }
- ]]></Script>
- </Form>
- </FDL>
|