123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPPMC06900" position="absolute 0 0 702 505" titletext="사생활보호관리" onload="SPPMC06900_onload" onclose="SPPMC06900_onclose">
- <Layouts>
- <Layout>
- <Static text="사생활보호관리" position="absolute 0 0 130 25" id="caption1" class="tit_1"/>
- <Tab position="absolute 0 28 700 496" id="switch1" class="sw_box">
- <Tabpages>
- <Tabpage text="세부정보" id="case1">
- <Layouts>
- <Layout width="600" height="312">
- <Static text="차트번호" position="absolute 5 5 84 29" align="align:left middle;" id="caption2" class="cell_1"/>
- <Edit position="absolute 85 5 165 29" id="ipt_cardno" class="input_default" enable="false"/>
- <Static text="환자성명" position="absolute 170 5 249 29" align="align:left middle;" id="caption3" class="cell_1"/>
- <Edit position="absolute 250 5 330 29" id="input1" class="input_default" enable="false"/>
- <Static text="보호대상" position="absolute 5 55 84 104" align="align:left middle;" id="caption4" class="cell_1"/>
- <Static text="보호내용" position="absolute 5 105 84 129" align="align:left middle;" id="caption5" class="cell_1"/>
- <Static text="비고" position="absolute 5 130 84 229" align="align:left middle;" id="caption6" class="cell_1"/>
- <TextArea position="absolute 85 130 695 229" id="textarea1" taborder="3" scrollbars="autovert" wordwrap="word"/>
- <Static text="* 체크대상에게로의 정보제공을 희망하지 않습니다." position="absolute 88 80 695 104" id="caption7" style="color:red;font:Dotum,9,bold;"/>
- <Static text="주민번호" position="absolute 335 5 414 29" align="align:left middle;" id="caption8" class="cell_1"/>
- <Edit position="absolute 415 5 494 29" id="input2" class="input_default" enable="false"/>
- <Static text="-" position="absolute 495 5 504 29" id="caption9" style="align:center middle;"/>
- <Edit position="absolute 505 5 585 29" id="input3" class="input_default" enable="false"/>
- <Button position="absolute 635 410 695 434" id="btn_confirm" class="btn4" taborder="4" text="저장" onclick="switch1_case1_btn_confirm_onclick"/>
- <CheckBox position="absolute 570 410 585 434" id="bool1" falsevalue="N" truevalue="Y"/>
- <Edit position="absolute 85 230 215 254" id="input6" class="input_default" enable="false"/>
- <Static text="최종수정자" position="absolute 5 230 84 254" align="align:left middle;" id="caption12" class="cell_1"/>
- <MaskEdit position="absolute 550 230 695 254" id="input7" enable="false" mask="@@@@-@@-@@ @@:@@" type="string" maskchar=" " style=":disabled {align:left middle;}" displaynulltext=" "/>
- <Edit position="absolute 85 255 215 279" id="input8" class="input_default" enable="false"/>
- <Static text="최초등록자" position="absolute 5 255 84 279" align="align:left middle;" id="caption14" class="cell_1"/>
- <MaskEdit position="absolute 550 255 695 279" id="input9" enable="false" mask="@@@@-@@-@@ @@:@@" type="string" maskchar=" " style=":disabled {align:left middle;}" displaynulltext=" "/>
- <Edit position="absolute 320 230 465 254" id="input10" class="input_default" enable="false"/>
- <Edit position="absolute 320 255 465 279" id="input11" class="input_default" enable="false"/>
- <Static text="최종수정자부서" position="absolute 220 230 319 254" align="align:left middle;" id="caption13" class="cell_1"/>
- <Static text="최초등록자부서" position="absolute 220 255 319 279" align="align:left middle;" id="caption15" class="cell_1"/>
- <Static text="최종수정일" position="absolute 470 230 549 254" align="align:left middle;" id="caption16" class="cell_1"/>
- <Static text="최초등록일" position="absolute 470 255 549 279" align="align:left middle;" id="caption17" class="cell_1"/>
- <Static text="해제" position="absolute 590 410 620 434" id="caption18"/>
- <Static text="신청자" position="absolute 5 30 84 54" align="align:left middle;" id="caption19" class="cell_1"/>
- <Static text="기타" position="absolute 475 30 504 54" id="caption20"/>
- <Edit position="absolute 505 30 695 54" id="input12" class="input_default"/>
- <Static text="기타" position="absolute 475 55 502 79" id="caption21"/>
- <Edit position="absolute 505 55 695 79" id="input13" class="input_default"/>
- <Static text="기타" position="absolute 475 105 500 129" id="caption22"/>
- <Edit position="absolute 505 105 695 129" id="input14" class="input_default"/>
- <Static text="* 보호해제시 '해제' 체크 후 반드시 저장!!!" position="absolute 330 410 560 434" id="caption25" style="color:red;"/>
- <cp_checkboxList id="checkbox3" taborder="5" scrollbars="none" position="absolute 85 30 470 54" style="background:transparent;align:middle;" col="1" row="1" cellspacing="2" vcellspacing="0" itemWidth="100" itemHeight="20" overflow="visible"/>
- <cp_checkboxList id="checkbox1" taborder="6" scrollbars="none" position="absolute 85 55 470 79" style="background:transparent;align:middle;" col="1" row="1" cellspacing="2" vcellspacing="0" itemWidth="100" itemHeight="20" overflow="visible"/>
- <cp_checkboxList id="checkbox2" taborder="7" scrollbars="none" position="absolute 85 105 470 129" style="background:transparent;align:middle;" col="1" row="1" cellspacing="2" vcellspacing="0" itemWidth="100" itemHeight="20" overflow="visible"/>
- <Static id="caption00" text="최초등록자" class="cell_1" position="absolute 5 280 84 400"/>
- <Div id="import1" taborder="8" url="pam_pamcomnxp::SPPAO02102_전자서명입력_OCX.xfdl" position="absolute 85 280 327 403"/>
- <Button id="Button00" taborder="9" text="서명" position="absolute 18 354 64 374" class="btn2" onclick="switch1_case1_Button00_onclick"/>
- </Layout>
- </Layouts>
- </Tabpage>
- <Tabpage text="대상목록" id="case2">
- <Layouts>
- <Layout>
- <Grid position="absolute 5 44 695 434" id="datagrid1" binddataset="ds_privacylist" cellsizingtype="both" cellsizebandtype="allband" oncelldblclick="switch1_case2_datagrid1_oncelldblclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25" band="left"/>
- <Column size="60"/>
- <Column size="65"/>
- <Column size="30"/>
- <Column size="50"/>
- <Column size="55"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="236"/>
- <Column size="60"/>
- <Column size="80"/>
- <Column size="105"/>
- <Column size="60"/>
- <Column size="80"/>
- <Column size="105"/>
- <Column size="35"/>
- </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="구분"/>
- <Cell col="4" text="주민번호"/>
- <Cell col="5" text="주민번호"/>
- <Cell col="6" text="신청자"/>
- <Cell col="7" text="보호대상"/>
- <Cell col="8" text="보호내용"/>
- <Cell col="9" text="비고"/>
- <Cell col="10" colspan="3" text="최초등록자/부서/일시" taborder="undefined"/>
- <Cell col="13" colspan="3" text="최종수정자/부서/일시" taborder="undefined"/>
- <Cell col="16" text="해제"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" text="expr:currow + 1"/>
- <Cell col="1" text="bind:pid"/>
- <Cell col="2" text="bind:hngnm"/>
- <Cell col="3" style="align:center middle;" text="bind:histstat"/>
- <Cell col="4" text="bind:rrgstno1"/>
- <Cell col="5" text="bind:rrgstno2"/>
- <Cell col="6" text="bind:request"/>
- <Cell col="7" text="bind:target"/>
- <Cell col="8" text="bind:type"/>
- <Cell col="9" text="bind:rmk"/>
- <Cell col="10" text="bind:fstrgstrnm"/>
- <Cell col="11" text="bind:fstrgstrdeptnm"/>
- <Cell col="12" displaytype="date" text="bind:fstrgstdt" mask="yyyy-MM-dd hh:mm" calendardisplaynulltype="none"/>
- <Cell col="13" text="bind:lastupdtrnm"/>
- <Cell col="14" text="bind:lastupdtrdeptnm"/>
- <Cell col="15" displaytype="date" text="bind:lastupdtdt" mask="yyyy-MM-dd hh:mm" calendardisplaynulltype="none"/>
- <Cell col="16" style="align:center middle;" text="bind:endyn"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Div id="grp" taborder="5" position="absolute 5 5 695 40" class="div_SA2">
- <Layouts>
- <Layout width="590" height="30">
- <CheckBox id="bool2" taborder="0" position="absolute 320 5 335 30" falsevalue="N" truevalue="Y" anchor="default"/>
- <Static id="caption23" text="해제포함" position="absolute 340 5 390 30" anchor="default"/>
- <CheckBox id="bool3" taborder="1" position="absolute 405 5 420 30" falsevalue="N" truevalue="Y" onclick="switch1_case2_grp_bool3_onclick" anchor="default"/>
- <Static id="caption24" text="이력포함" position="absolute 425 5 475 30" anchor="default"/>
- <Button id="button3" taborder="2" text="조회" class="btn1" position="absolute 625 5 685 30" onclick="switch1_case2_grp_button3_onclick" anchor="default"/>
- <Edit id="input4" taborder="3" position="absolute 90 5 170 30" anchor="default"/>
- <Static id="caption10" text="등록 번호 :" class="search_name" position="absolute 10 5 89 30" anchor="default"/>
- <Static id="caption11" text="성명 :" class="search_name" position="absolute 180 5 225 30" anchor="default"/>
- <Edit id="input5" taborder="4" position="absolute 230 5 310 30" anchor="default"/>
- </Layout>
- </Layouts>
- </Div>
- </Layout>
- </Layouts>
- </Tabpage>
- </Tabpages>
- </Tab>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_privacylist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="no" type="STRING" size="256" sumtext="일련번호"/>
- <Column id="instcd" type="STRING" size="256" sumtext="기관기호"/>
- <Column id="pid" type="STRING" size="256" sumtext="차트번호"/>
- <Column id="hngnm" type="STRING" size="256" sumtext="성명"/>
- <Column id="rrgstno1" type="STRING" size="256" sumtext="주민번호1"/>
- <Column id="rrgstno2" type="STRING" size="256" sumtext="주민번호2"/>
- <Column id="request" type="STRING" size="256" sumtext="신청자"/>
- <Column id="requestetc" type="STRING" size="256" sumtext="신청자기타"/>
- <Column id="target" type="STRING" size="256" sumtext="보호대상"/>
- <Column id="targetetc" type="STRING" size="256" sumtext="보호대상기타"/>
- <Column id="type" type="STRING" size="256" sumtext="보호내용"/>
- <Column id="typeetc" type="STRING" size="256" sumtext="보호내용기타"/>
- <Column id="rmk" type="STRING" size="256" sumtext="비고"/>
- <Column id="endyn" type="STRING" size="256" sumtext="종료여부"/>
- <Column id="histstat" type="STRING" size="256" sumtext="이력상태"/>
- <Column id="fstrgstrnm" type="STRING" size="256" sumtext="최초등록자"/>
- <Column id="fstrgstrdeptnm" type="STRING" size="256" sumtext="최초등록자부서"/>
- <Column id="fstrgstdt" type="STRING" size="256" sumtext="최초등록일시"/>
- <Column id="lastupdtrnm" type="STRING" size="256" sumtext="최종등록자"/>
- <Column id="lastupdtrdeptnm" type="STRING" size="256" sumtext="최종등록자부서"/>
- <Column id="lastupdtdt" type="STRING" size="256" sumtext="최종등록일시"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_privacydesc" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="no" type="STRING" size="256" sumtext="일련번호"/>
- <Column id="instcd" type="STRING" size="256" sumtext="기관기호"/>
- <Column id="pid" type="STRING" size="256" sumtext="차트번호"/>
- <Column id="hngnm" type="STRING" size="256" sumtext="성명"/>
- <Column id="rrgstno1" type="STRING" size="256" sumtext="주민번호1"/>
- <Column id="rrgstno2" type="STRING" size="256" sumtext="주민번호2"/>
- <Column id="request" type="STRING" size="256" sumtext="신청자"/>
- <Column id="requestetc" type="STRING" size="256" sumtext="신청자기타"/>
- <Column id="target" type="STRING" size="256" sumtext="보호대상"/>
- <Column id="targetetc" type="STRING" size="256" sumtext="보호대상기타"/>
- <Column id="type" type="STRING" size="256" sumtext="보호내용"/>
- <Column id="typeetc" type="STRING" size="256" sumtext="보호내용기타"/>
- <Column id="rmk" type="STRING" size="256" sumtext="비고"/>
- <Column id="endyn" type="STRING" size="256" sumtext="종결여부"/>
- <Column id="fstrgstrid" type="STRING" size="256" sumtext="최초등록자ID"/>
- <Column id="fstrgstrnm" type="STRING" size="256" sumtext="최초등록자"/>
- <Column id="fstrgstrdeptcd" type="STRING" size="256" sumtext="최초등록자부서CD"/>
- <Column id="fstrgstrdeptnm" type="STRING" size="256" sumtext="최초등록자부서"/>
- <Column id="fstrgstdt" type="STRING" size="256" sumtext="최초등록일시"/>
- <Column id="lastupdtrid" type="STRING" size="256" sumtext="최종등록자ID"/>
- <Column id="lastupdtrnm" type="STRING" size="256" sumtext="최종등록자"/>
- <Column id="lastupdtrdeptcd" type="STRING" size="256" sumtext="최종등록자부서CD"/>
- <Column id="lastupdtrdeptnm" type="STRING" size="256" sumtext="최종등록자부서"/>
- <Column id="lastupdtdt" type="STRING" size="256" sumtext="최종등록일시"/>
- <Column id="elctsignkey" type="STRING" size="256"/>
- <Column id="elctsigncnts" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="no"/>
- <Col id="pid"/>
- <Col id="hngnm"/>
- <Col id="rrgstno1"/>
- <Col id="rrgstno2"/>
- <Col id="request"/>
- <Col id="requestetc"/>
- <Col id="target"/>
- <Col id="targetetc"/>
- <Col id="type"/>
- <Col id="typeetc"/>
- <Col id="rmk"/>
- <Col id="endyn"/>
- <Col id="lastupdtrnm"/>
- <Col id="lastupdtdt"/>
- <Col id="lastupdtrdeptnm"/>
- <Col id="fstrgstrid"/>
- <Col id="fstrgstrnm"/>
- <Col id="fstrgstdt"/>
- <Col id="fstrgstrdeptcd"/>
- <Col id="fstrgstrdeptnm"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_checkbox3" 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>
- </Rows>
- </Dataset>
- <Dataset id="ds_checkbox2" 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>
- <Row>
- <Col id="label">ARS/유선안내</Col>
- <Col id="value">ARS/유선안내</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_checkbox1" 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>
- </Rows>
- </Dataset>
- <Dataset id="ds_hidden_cond" 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="hngnm" type="STRING" size="256"/>
- <Column id="endyn" type="STRING" size="256"/>
- <Column id="histyn" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_send" 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="endyn" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="switch1.case1.ipt_cardno" propid="value" datasetid="ds_privacydesc" columnid="pid"/>
- <BindItem id="item1" compid="switch1.case1.input1" propid="value" datasetid="ds_privacydesc" columnid="hngnm"/>
- <BindItem id="item2" compid="switch1.case1.input2" propid="value" datasetid="ds_privacydesc" columnid="rrgstno1"/>
- <BindItem id="item3" compid="switch1.case1.input3" propid="value" datasetid="ds_privacydesc" columnid="rrgstno2"/>
- <BindItem id="item4" compid="switch1.case1.input12" propid="value" datasetid="ds_privacydesc" columnid="requestetc"/>
- <BindItem id="item5" compid="switch1.case1.input13" propid="value" datasetid="ds_privacydesc" columnid="targetetc"/>
- <BindItem id="item6" compid="switch1.case1.input14" propid="value" datasetid="ds_privacydesc" columnid="typeetc"/>
- <BindItem id="item7" compid="switch1.case1.textarea1" propid="value" datasetid="ds_privacydesc" columnid="rmk"/>
- <BindItem id="item8" compid="switch1.case1.input6" propid="value" datasetid="ds_privacydesc" columnid="lastupdtrnm"/>
- <BindItem id="item9" compid="switch1.case1.input10" propid="value" datasetid="ds_privacydesc" columnid="lastupdtrdeptnm"/>
- <BindItem id="item10" compid="switch1.case1.input7" propid="value" datasetid="ds_privacydesc" columnid="lastupdtdt"/>
- <BindItem id="item11" compid="switch1.case1.input8" propid="value" datasetid="ds_privacydesc" columnid="fstrgstrnm"/>
- <BindItem id="item12" compid="switch1.case1.input11" propid="value" datasetid="ds_privacydesc" columnid="fstrgstrdeptnm"/>
- <BindItem id="item13" compid="switch1.case1.input9" propid="value" datasetid="ds_privacydesc" columnid="fstrgstdt"/>
- <BindItem id="item14" compid="switch1.case1.bool1" propid="value" datasetid="ds_privacydesc" columnid="endyn"/>
- <BindItem id="item15" compid="switch1.case2.grp.input4" propid="value" datasetid="ds_hidden_cond" columnid="pid"/>
- <BindItem id="item16" compid="switch1.case2.grp.input5" propid="value" datasetid="ds_hidden_cond" columnid="hngnm"/>
- <BindItem id="item17" compid="switch1.case2.grp.bool2" propid="value" datasetid="ds_hidden_cond" columnid="endyn"/>
- <BindItem id="item18" compid="switch1.case2.grp.bool3" propid="value" datasetid="ds_hidden_cond" columnid="histyn"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[include 'com_commonxp::comm_main.xjs';
- var pid;
- var orgyn, orgendyn;
- var signyn;
- var arErrorCode = new HashArray();
- // 보호대상 체크박스 값 변경 이벤트
- function cbCheckbox1() {
- var obj = String(switch1.case1.checkbox1.getData()).replace(',', ' ');
- obj = utlf_transNullToEmpty(obj);
- ds_privacydesc.setColumn(0, 'target', obj);
- }
- // 보호내용 체크박스 값 변경 이벤트
- function cbCheckbox2() {
- var obj = String(switch1.case1.checkbox2.getData()).replace(',', ' ');
- obj = utlf_transNullToEmpty(obj);
- ds_privacydesc.setColumn(0, 'type', obj);
- }
- // 신청자 체크박스 값 변경 이벤트
- function cbCheckbox3() {
- var obj = String(switch1.case1.checkbox3.getData()).replace(',', ' ');
- obj = utlf_transNullToEmpty(obj);
- ds_privacydesc.setColumn(0, 'request', obj);
- }
- // 초기정보 관리 - 리스트에서 다른 환자의 정보가 수정되는 경우를 고려
- function saveOrgInfo() {
- // 호출시 전달된 환자가 아닌경우 체크
- if(ds_privacydesc.getColumn(0, 'pid') == pid){
- // 창닫기 시 사생활관리여부 전송용 종료플래그 백업
- // 조회 / 저장 이후 화면상에서의 값 변경이 저장없이도 그대로 인스턴스에 적용되기 때문
- if (!utlf_isNull(ds_privacydesc.getColumn(0, 'no'))) {
- orgyn = 'Y';
- orgendyn = ds_privacydesc.getColumn(0, 'endyn');
- }
- }
- }
- // 화면입력검증(필수체크 등) - 신청자, 보호대상, 보호내용은 필수
- function validateForm() {
- if(( utlf_isNull(ds_privacydesc.getColumn(0, "request")) && utlf_isNull(ds_privacydesc.getColumn(0, "requestetc")) )
- || ( utlf_isNull(ds_privacydesc.getColumn(0, "target")) && utlf_isNull(ds_privacydesc.getColumn(0, "targetetc")) )
- || ( utlf_isNull(ds_privacydesc.getColumn(0, "type")) && utlf_isNull(ds_privacydesc.getColumn(0, "typeetc")) )) {
- sysf_messageBox('신청자 / 보호대상 / 보호내용은 필수', 'E008');
-
- return false;
- }
-
- return true;
- }
-
- function SPPMC06900_onload(obj:Form, e:LoadEventInfo){
- // 폼 초기화
- frmf_initForm(obj);
-
- // 싸인창 초기화
- switch1.case1.import1.fsignpad_init();
-
- // 체크박스 리스트 초기화
- var prop1 = 'col=3,row=1,cellspacing=2,vcellspacing=0,itemWidth=-1,itemHeight=20,overflow="visible"';
- switch1.case1.checkbox1.setInitComp(prop1, ds_checkbox1, 'value', 'label', 'cbCheckbox1');
-
- var prop2 = 'col=5,row=1,cellspacing=2,vcellspacing=0,itemWidth=-1,itemHeight=20,overflow="visible"';
- switch1.case1.checkbox2.setInitComp(prop2, ds_checkbox2, 'value', 'label', 'cbCheckbox2');
-
- var prop3 = 'col=2,row=1,cellspacing=2,vcellspacing=0,itemWidth=-1,itemHeight=20,overflow="visible"';
- switch1.case1.checkbox3.setInitComp(prop3, ds_checkbox3, 'value', 'label', 'cbCheckbox3');
-
- pid = opener.frmf_getParameter("SPPMC06900_PARM");
-
- // 검색조건 초기화
- ds_hidden_cond.setColumn(0, "endyn", "N");
- ds_hidden_cond.setColumn(0, "histyn", "N");
-
- // 환자가 선택되었을 경우에만 초기화처리 실시
- if (!utlf_isNull(pid)) {
-
- ds_privacydesc.setColumn(0, "pid", pid);
-
- dsf_createDsRow("ds_req", [{ col:"pid", type:"string", size:256, val:pid }], false);
-
- var oParam = {};
- oParam.id = "TRPMC06901";
- oParam.service = "patinfomngtapp.PatPrivacy";
- oParam.method = "reqGetPatPrivacyDesc";
- oParam.inds = "req=ds_req";
- oParam.outds = "ds_privacydesc=privacydesc";
- oParam.async = false;
- tranf_submit(oParam);
-
- // 초기정보 관리
- saveOrgInfo();
-
- // 콤보박스 리스트 값 설정
- switch1.case1.checkbox1.setData(utlf_transNullToEmpty(ds_privacydesc.getColumn(0, 'target')).split(' '), null, true);
- switch1.case1.checkbox2.setData(utlf_transNullToEmpty(ds_privacydesc.getColumn(0, 'type')).split(' '), null, true);
- switch1.case1.checkbox3.setData(utlf_transNullToEmpty(ds_privacydesc.getColumn(0, 'request')).split(' '), null, true);
-
- // 서명 존재하는 경우 표시
- if (!utlf_isNull(ds_privacydesc.getColumn(0, 'elctsigncnts'))) {
- switch1.case1.import1.fsignpad_view(ds_privacydesc.getColumn(0, "elctsignkey"), ds_privacydesc.getColumn(0, "elctsigncnts"));
- }
- }
-
- // 환자가 선택되지 않았을 경우 목록으로 이동
- else{
- switch1.tabindex = 1;
- }
-
- }
- // 저장 버튼 클릭 이벤트
- function switch1_case1_btn_confirm_onclick(obj:Button, e:ClickEventInfo){
- // 입력내용 검증 후 저장
- // 종료를 선택한 경우에는
- if (validateForm()) {
- // 노드 카피
- ds_send.copyData(ds_privacydesc);
-
- // 사용자정보 설정
- // 최초등록자정보의 설정은 최초등록시만
- if (utlf_isNull(ds_privacydesc.getColumn(0, 'fstrgstrid'))) {
- ds_send.setColumn(0, 'fstrgstrid', sysf_getUserId());
- ds_send.setColumn(0, 'fstrgstrdeptcd', sysf_getUserInfo('dutplcecd'));
- }
- ds_send.setColumn(0, 'lastupdtrid', sysf_getUserId());
- ds_send.setColumn(0, 'lastupdtrdeptcd', sysf_getUserInfo('dutplcecd'));
-
- // 확인서명 처리
- if (signyn == "Y") {
- var signData = switch1.case1.import1.fsignpad_save();
- ds_send.setColumn(0, "elctsignkey", signData.key);
- ds_send.setColumn(0, "elctsigncnts", signData.img);
- signyn = "N";
- }
- dsf_setTypeFormat(ds_send, "no:STRING");
- ds_send.setColumn(0, "no", utlf_transNullToEmpty(ds_privacydesc.getColumn(0, 'no')));
- // 저장
- var oParam = {};
- oParam.id = "TRPMC06902"; // TRPMC06901에서 TRPMC06902로 호출해야 함....
- oParam.service = "patinfomngtapp.PatPrivacy";
- oParam.method = "reqSetPatPrivacyDesc";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_privacydesc=privacydesc";
- oParam.async = false;
- oParam.callback = "cf_TRPMC06902";
- tranf_submit(oParam);
-
- if(arErrorCode.pop("TRPMC06902") < 0) {
- trace("arErrorCode : " + arErrorCode.toString());
- }
-
- // 초기정보 관리
- saveOrgInfo();
-
- // 싸인패드 닫기
- switch1.case1.import1.fsignpad_close();
- }
- }
- function cf_TRPMC06902(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- // 이력포함 체크박스 클릭 이벤트
- function switch1_case2_grp_bool3_onclick(obj:CheckBox, e:ClickEventInfo) {
- if(obj.value == 'Y'){
- switch1.case2.grp.bool2.enable = false;
- ds_hidden_cond.setColumn(0, 'endyn', 'N');
- }
- else{
- switch1.case2.grp.bool2.enable = true;
- }
- }
- // 대상목록 스위치 조회 버튼 클릭 이벤트
- function switch1_case2_grp_button3_onclick(obj:Button, e:ClickEventInfo) {
- ds_send.copyData(ds_hidden_cond);
-
- // 대상목록 조회
- var oParam = {};
- oParam.id = "TRPMC06901";
- oParam.service = "patinfomngtapp.PatPrivacy";
- oParam.method = "reqGetPatPrivacyList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_privacylist=privacylist";
- oParam.async = false;
- tranf_submit(oParam);
- }
- // 대상목록 그리드 더블 버튼 클릭 이벤트
- function switch1_case2_datagrid1_oncelldblclick(obj:Grid, e:GridClickEventInfo) {
- ds_privacydesc.clearData();
- ds_privacydesc.addRow();
- switch1.case1.checkbox1.setCheckAll(false, false);
- switch1.case1.checkbox2.setCheckAll(false, false);
- switch1.case1.checkbox3.setCheckAll(false, false);
- var pidVal = ds_privacylist.getColumn(obj.currentrow, 'pid');
- var histstat = ds_privacylist.getColumn(obj.currentrow, 'histstat');
-
- if(!utlf_isNull(pidVal)){
- // 이력이 아닐경우에만 세부정보로 이동
- if(histstat == 'Y'){
- ds_send.setColumn(0, 'pid', pidVal);
-
- // 세부정보 조회
- var oParam = {};
- oParam.id = "TRPMC06901";
- oParam.service = "patinfomngtapp.PatPrivacy";
- oParam.method = "reqGetPatPrivacyDesc";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_privacydesc=privacydesc";
- oParam.async = false;
- tranf_submit(oParam);
-
-
- // 콤보박스 리스트 값 설정
- switch1.case1.checkbox1.setData(utlf_transNullToEmpty(ds_privacydesc.getColumn(0, 'target')).split(' '), null, true);
- switch1.case1.checkbox2.setData(utlf_transNullToEmpty(ds_privacydesc.getColumn(0, 'type')).split(' '), null, true);
- switch1.case1.checkbox3.setData(utlf_transNullToEmpty(ds_privacydesc.getColumn(0, 'request')).split(' '), null, true);
-
- // 서명 존재하는 경우 표시
- if (!utlf_isNull(ds_privacydesc.getColumn(0, 'elctsigncnts'))) {
- switch1.case1.import1.fsignpad_view(ds_privacydesc.getColumn(0, "elctsignkey"), ds_privacydesc.getColumn(0, "elctsigncnts"));
- }
-
- // 초기정보 관리
- saveOrgInfo();
-
- // 세부정보 탭이동
- switch1.tabindex = 0;
- }
- else{
- sysf_messageBox('구분이 Y인 데이터만 수정이', 'I006');
- }
- }
- }
- function SPPMC06900_onclose(obj:Form, e:CloseEventInfo) {
- // 부모창 검증
- if (frmf_checkOpener()) {
- // 부모창의 인스턴스에 사생활관리여부를 생성
- opener.ds_hidden.setColumn(0, "patprivacyendyn", "");
- // 호출시 환자가 선택 + 저장된 정보 있음 + 해제가 아님
- if (!utlf_isNull(pid) && orgyn == "Y" && orgendyn == "N") {// initPid에서 pid로 변경함.
- opener.ds_hidden.setColumn(0, "patprivacyendyn", "N");
- } else {
- opener.ds_hidden.setColumn(0, "patprivacyendyn", "Y");
- }
- }
- // 부모창이 변경되었을 경우
- else {
- alert("상위화면이 변경되어 데이터를 전달할 수 없습니다.");
- }
- }
- /* 서명버튼 클릭 이벤트 */
- function switch1_case1_Button00_onclick(obj:Button, e:ClickEventInfo)
- {
- signyn = "Y";
- switch1.case1.import1.fsignpad_init();
-
- ds_privacydesc.setColumn(0, "elctsignkey", "");
- ds_privacydesc.setColumn(0, "elctsigncnts", "");
-
- switch1.case1.import1.fsignpad_request(0);
- switch1.case1.btn_confirm.setFocus();
- }
- ]]></Script>
- </Form>
- </FDL>
|