123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMPMB04000" classname="SMPMB03800_질환군분류정보조회" inheritanceid="" position="absolute 0 0 1195 800" titletext="방문객대장관리" onload="SMPMB03800_onload" ontimer="SMPMB04000_ontimer" onmouseleave="SMPMB04000_onmouseleave">
- <Layouts>
- <Layout>
- <Grid id="grd_pmohvist" taborder="18" binddataset="ds_main_pmohvist" useinputpanel="false" autofittype="col" onkeydown="grd_pmohvist_onkeydown" position="absolute 0 94 1194 785" anchor="all" tooltiptype="hover" onrbuttonup="grd_pmohvist_onrbuttonup">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="30"/>
- <Column size="60"/>
- <Column size="80"/>
- <Column size="120"/>
- <Column size="40"/>
- <Column size="120"/>
- <Column size="100"/>
- <Column size="80"/>
- <Column size="120"/>
- <Column size="350"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="120"/>
- </Columns>
- <Rows>
- <Row size="30" 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" text="주민번호 (외국인등록번호)"/>
- <Cell col="11" text="생년월일"/>
- <Cell col="12" text="성별"/>
- <Cell col="13" text="여권번호"/>
- <Cell col="14" text="외국인 구분"/>
- <Cell col="15" text="감염정보 유무"/>
- <Cell col="16" text="SEQNO"/>
- <Cell col="17" text="IP"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" text="expr:currow+1"/>
- <Cell col="1" displaytype="combo" style="padding:0 0 0 3;" text="bind:gubun" combodataset="ds_init_gubun" combocodecol="cdid" combodatacol="cdnm"/>
- <Cell col="2" displaytype="text" text="bind:issueno2" tooltiptext="bind:issueno"/>
- <Cell col="3" displaytype="text" text="bind:name2" tooltiptext="bind:name"/>
- <Cell col="4" displaytype="combo" style="align:center middle;" text="bind:sex" combodataset="ds_init_sex" combocodecol="cdid" combodatacol="cdnm"/>
- <Cell col="5" displaytype="text" text="bind:phone2" maskchar="_" tooltiptext="bind:phone"/>
- <Cell col="6" displaytype="combo" style="padding:0 0 0 3;" text="bind:visitpurpose" combodataset="ds_init_visitpurpose" combocodecol="cdid" combodatacol="cdnm"/>
- <Cell col="7" displaytype="combo" style="padding:0 0 0 3;" text="bind:inposgbn" combodataset="ds_init_PK259" combocodecol="cdid" combodatacol="cdnm"/>
- <Cell col="8" text="bind:visitdt" mask="####-##-## ##:##"/>
- <Cell col="9" displaytype="text" text="bind:bigo" tooltiptext="bind:bigo"/>
- <Cell col="10" text="bind:rrgstno" mask="expr:utlf_isNull(rrgstno)?'':'######-#######'"/>
- <Cell col="11" text="bind:brthdd" mask="expr:utlf_isNull(brthdd)?'':'####-##-##'"/>
- <Cell col="12" displaytype="combo" text="bind:sex" combodataset="ds_init_sex" combocodecol="cdid" combodatacol="cdnm"/>
- <Cell col="13" displaytype="text" text="bind:psptno"/>
- <Cell col="14" text="bind:forgeryn"/>
- <Cell col="15" text="bind:duryn"/>
- <Cell col="16" text="bind:seqno"/>
- <Cell col="17" text="bind:ipinfo"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Shape id="line3" class="line_10" position="absolute 0 89 1194 95" anchor="left top right" style="strokepen:3 solid #33bbbbff;"/>
- <Static id="caption4" text="현재 주상병으로 적용 가능한 질환군 분류" class="tit_2" position="absolute 0 73 315 95"/>
- <Div id="grp_srch" anchor="left top right" taborder="19" onkeydown="grp_srch_onkeydown" class="div_SA" position="absolute 0 25 1194 65">
- <Layouts>
- <Layout>
- <Static id="caption5" text="번호 :" class="search_name" position="absolute 15 13 74 30"/>
- <Static id="cap_term" text="기간 : " class="search_name" visible="false" position="absolute 815 13 866 30"/>
- <Edit id="ipt_srch_issueno" taborder="12" imemode="alpha" inputmode="upper" inputfilter="dot,comma,sign,symbol,space" inputtype="numberandenglish" autoselect="true" onsetfocus="grp_srch_ipt_srch_issueno_onsetfocus" onkillfocus="grp_srch_ipt_srch_issueno_onkillfocus" onkeydown="grp_srch_ipt_srch_issueno_onkeydown" position="absolute 71 7 195 35" style="background:URL('theme://images/bg_edit_N.png') stretch 5,5;font:Dotum,10,bold;"/>
- <Shape id="line2" linetype="vertical" class="line_4" position="absolute 1103 9 1109 31" anchor="top right"/>
- <Button id="btn_search" taborder="13" text="조회" onclick="grp_srch_btn_search_onclick" class="btn1" position="absolute 1122 9 1178 31" anchor="top right"/>
- <Calendar id="cal_srch_fromdd" taborder="14" dateformat="yyyy-MM-dd" visible="false" position="absolute 870 10 962 30"/>
- <Calendar id="cal_srch_todd" taborder="15" dateformat="yyyy-MM-dd" visible="false" position="absolute 982 10 1074 30"/>
- <Static id="sta_term" text="~" visible="false" position="absolute 966 14 978 26"/>
- <Static id="caption01" text="출입구 :" class="search_name" position="absolute 341 13 408 30"/>
- <Combo id="cmb_srch_inposgbn" taborder="16" innerdataset="@ds_init_PK259" codecolumn="cdid" datacolumn="cdnm" onitemchanged="grp_srch_cmb_srch_inposgbn_onitemchanged" oncloseup="grp_srch_cmb_srch_inposgbn_oncloseup" position="absolute 409 10 493 30"/>
- <CheckBox id="chk_srch_yn" taborder="17" text="해당번호만 조회" value="N" truevalue="Y" falsevalue="N" position="absolute 202 10 325 30" onchanged="grp_srch_chk_srch_yn_onchanged"/>
- <Combo id="cmb_employee" taborder="18" value="Y" text="직원" codecolumn="codecolumn" datacolumn="datacolumn" index="0" onitemchanged="grp_srch_cmb_employee_onitemchanged" visible="false" position="absolute 1030 18 1098 38">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn" size="256"/>
- <Column id="datacolumn" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">Y</Col>
- <Col id="datacolumn">직원</Col>
- </Row>
- <Row>
- <Col id="codecolumn">N</Col>
- <Col id="datacolumn">일반</Col>
- </Row>
- </Rows>
- </Dataset>
- </Combo>
- <Static id="caption02" text="구분 :" class="search_name" visible="false" position="absolute 973 21 1040 38"/>
- <Static id="caption03" text="IP Address : " class="search_name" position="absolute 529 13 628 30"/>
- <Edit id="ipt_srch_ipaddress" taborder="19" readonly="true" position="absolute 629 10 737 30"/>
- <CheckBox id="chk_srch_yn2" taborder="20" text="전체" value="N" truevalue="Y" falsevalue="N" visible="false" position="absolute 746 10 805 30"/>
- <Edit id="ipt_srch_issueno2" taborder="21" imemode="alpha" inputmode="upper" inputfilter="dot,comma,sign,symbol,space" inputtype="numberandenglish" autoselect="true" position="absolute 71 7 195 35" style="background:URL('theme://images/bg_edit_N.png') stretch 5,5;font:Dotum,10,bold;" visible="false" onkeydown="grp_srch_ipt_srch_issueno2_onkeydown"/>
- </Layout>
- </Layouts>
- </Div>
- <Static id="cap_title" text="방문객 대장 관리" onclick="group3_cap_title_onclick" class="tit_1" position="absolute 0 0 180 25"/>
- <Div id="grp_messege" taborder="17" text="Div00" class="div_SA2" visible="false" position="absolute 292 257 918 477">
- <Layouts>
- <Layout>
- <Static id="cap_messege" text="보호자증은 사용할 수 없습니다. 출입증을 발급받으시기 바랍니다." position="absolute 8 8 618 180" style="background:lightgoldenrodyellow;align:center middle;font:Dotum,24,bold;"/>
- <Button id="btn_close" taborder="1" text="확인" onclick="grp_messege_btn_close_onclick" class="btn4" position="absolute 287 191 340 211"/>
- </Layout>
- </Layouts>
- </Div>
- <Div id="grp_messegeError" taborder="16" class="div_SA2" visible="false" position="absolute 300 265 926 485">
- <Layouts>
- <Layout>
- <Static id="cap_messegeError" text="커서가 화면을 벗어났습니다. 확인버튼을 눌러주세요." position="absolute 8 8 618 180" style="background:lightgoldenrodyellow;align:center middle;font:Dotum,24,bold;"/>
- <Button id="btn_closeError" taborder="1" text="확인" onclick="grp_messegeError_btn_closeError_onclick" class="btn4" position="absolute 287 191 340 211"/>
- </Layout>
- </Layouts>
- </Div>
- <Div id="grp_etc" taborder="20" position="absolute 201 54 491 93" class="div_SA2" visible="false">
- <Layouts>
- <Layout>
- <Static id="cap_messegeEtc" position="absolute 4 4 286 35" style="background:lightgoldenrodyellow;color:red;align:left top;font:Dotum,11,bold;" text="조회만 가능한 상태입니다. 대장입력을 위해선 체크를 해제하세요." anchor="default"/>
- </Layout>
- </Layouts>
- </Div>
- </Layout>
- </Layouts>
- <Bind>
- <BindItem id="item3" compid="grp_srch.ipt_srch_issueno" propid="value" datasetid="ds_send_srch" columnid="issueno"/>
- <BindItem id="item0" compid="grp_srch.cal_srch_fromdd" propid="value" datasetid="ds_send_srch" columnid="fromdd"/>
- <BindItem id="item1" compid="grp_srch.cal_srch_todd" propid="value" datasetid="ds_send_srch" columnid="todd"/>
- <BindItem id="item2" compid="grp_srch.cmb_srch_inposgbn" propid="value" datasetid="ds_send_srch" columnid="inposgbn"/>
- <BindItem id="item4" compid="grp_srch.cmb_employee" propid="value" datasetid="ds_send_srch" columnid="employee"/>
- <BindItem id="item5" compid="grp_srch.chk_srch_yn" propid="value" datasetid="ds_send_srch" columnid="srchyn"/>
- <BindItem id="item6" compid="grp_srch.ipt_srch_ipaddress" propid="value" datasetid="ds_send_srch" columnid="ipinfo"/>
- <BindItem id="item7" compid="grp_srch.chk_srch_yn2" propid="value" datasetid="ds_send_srch" columnid="srchyn2"/>
- <BindItem id="item8" compid="grp_srch.ipt_srch_issueno2" propid="value" datasetid="ds_send_srch" columnid="issueno"/>
- </Bind>
- <Objects>
- <Dataset id="ds_send_srch" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="issueno" type="STRING" size="256"/>
- <Column id="fromdd" type="STRING" size="256"/>
- <Column id="todd" type="STRING" size="256"/>
- <Column id="inposgbn" type="STRING" size="256"/>
- <Column id="employee" type="STRING" size="256"/>
- <Column id="srchyn" type="STRING" size="256"/>
- <Column id="ipinfo" type="STRING" size="256"/>
- <Column id="srchyn2" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="issueno"/>
- <Col id="fromdd"/>
- <Col id="todd"/>
- <Col id="inposgbn">1</Col>
- <Col id="employee">N</Col>
- <Col id="srchyn">N</Col>
- <Col id="ipinfo"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_pmohvist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_init_gubun" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cdid" type="STRING" size="256"/>
- <Column id="cdnm" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="cdid">1</Col>
- <Col id="cdnm">환자</Col>
- </Row>
- <Row>
- <Col id="cdid">2</Col>
- <Col id="cdnm">직원</Col>
- </Row>
- <Row>
- <Col id="cdid">3</Col>
- <Col id="cdnm">외부직원</Col>
- </Row>
- <Row>
- <Col id="cdid">4</Col>
- <Col id="cdnm">보호자</Col>
- </Row>
- <Row>
- <Col id="cdid">5</Col>
- <Col id="cdnm">기타</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_visitpurpose" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cdid" type="STRING" size="256"/>
- <Column id="cdnm" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="cdid">1</Col>
- <Col id="cdnm">진료</Col>
- </Row>
- <Row>
- <Col id="cdid">2</Col>
- <Col id="cdnm">출근</Col>
- </Row>
- <Row>
- <Col id="cdid">3</Col>
- <Col id="cdnm">간병</Col>
- </Row>
- <Row>
- <Col id="cdid">4</Col>
- <Col id="cdnm">병문안</Col>
- </Row>
- <Row>
- <Col id="cdid">5</Col>
- <Col id="cdnm">편의시설</Col>
- </Row>
- <Row>
- <Col id="cdnm">납품</Col>
- <Col id="cdid">6</Col>
- </Row>
- <Row>
- <Col id="cdnm">계약</Col>
- <Col id="cdid">7</Col>
- </Row>
- <Row>
- <Col id="cdnm">기타</Col>
- <Col id="cdid">8</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_PK259" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_temp_visitorinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_temp_dur" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_init_sex" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cdid" type="STRING" size="256"/>
- <Column id="cdnm" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="cdid">M</Col>
- <Col id="cdnm">남</Col>
- </Row>
- <Row>
- <Col id="cdid">F</Col>
- <Col id="cdnm">여</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_nondurlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- </Objects>
- <Script type="xscript4.0"><![CDATA[include "com_commonxp::comm_main.xjs";
- include "pam_pamcomnxp::PAM.xjs";
- include 'pam_pamcomnxp::PAM001.xjs';
- // 방문객 대장리스트 조회
- function fGetPmohvistList() {
- ds_main_pmohvist.clearData();
- var oParam = {};
- oParam.id = "getPmohvistList";
- oParam.service = "pambaseinfomngtapp.Etc";
- oParam.method = "reqGetPmohvistList";
- oParam.inds = "req=ds_send_srch";
- oParam.outds = "ds_main_pmohvist=item";
- oParam.force = true;
- oParam.async = false;
- tranf_submit(oParam);
-
- if(ds_send_srch.getColumn(0, "srchyn") == "Y") {
- grp_srch.ipt_srch_issueno2.setFocus();
- } else {
- ds_send_srch.setColumn(0, "issueno", "");
- grp_srch.ipt_srch_issueno.setFocus();
- }
- }
- // 방문객(직원) 정보조회
- function fGetVisitorInfo(issueno, gubun) {
- ds_temp_visitorinfo.clearData();
- dsf_createDsRow("ds_req", [{col: "issueno", val: issueno}
- , {col: "gubun", val : gubun}]);
- var oParam = {};
- oParam.id = "getVisitorInfo";
- oParam.service = "pambaseinfomngtapp.Etc";
- oParam.method = "reqGetVisitorInfo";
- oParam.inds = "req=ds_req";
- oParam.outds = "ds_temp_visitorinfo=item";
- oParam.force = true;
- oParam.async = false;
- tranf_submit(oParam);
- }
- // 등록정보 없는 방문객 저장
- function fSaveVisitNoRgst(issueno) {
- var ipinfo = ds_send_srch.getColumn(0, "ipinfo") ;
- dsf_createDsRow("ds_req", [{col:"visitdd", val:utlf_getCurrentDate()}
- ,{col:"issueno", val:issueno}
- ,{col:"gubun", val:"5"} //기타
- ,{col:"inposgbn", val:ds_send_srch.getColumn(0, "inposgbn")}
- ,{col:"ipinfo", val:ipinfo}]);
- // 출입대장정보 저장
- var oParam = {};
- oParam.id = "setVisitNoRgst";
- oParam.service = "pambaseinfomngtapp.Etc";
- oParam.method = "reqSetVisitNoRgst";
- oParam.inds = "req=ds_req";
- oParam.force = true;
- oParam.async = false;
- tranf_submit(oParam);
-
- fGetPmohvistList();
- }
- // 출입정보 저장
- function fSetPmohvistList() {
- var issueno = ds_send_srch.getColumn(0, "issueno");
-
- if(utlf_isNull(issueno)) {
- grp_srch.ipt_srch_issueno.setFocus();
- return;
- }
- if(issueno.substr(0,1) == "R") {
- grp_messege.cap_messege.text = "보호자증은 사용할 수 없습니다.\n\n출입증을 발급받으시기 바랍니다.";
- grp_messege.visible = true;
-
- fSaveVisitNoRgst(issueno);
-
- grp_messege.btn_close.setFocus();
- return;
- } else if(issueno.substr(0,1) == "Z") { //방문객 마스터조회
- fGetVisitorInfo(issueno, "Z");
-
- if(ds_temp_visitorinfo.rowcount < 1) {
- grp_messege.cap_messege.text = "방문객정보가 없습니다.\n\n출입증을 발급받으시기 바랍니다.";
- grp_messege.visible = true;
-
- fSaveVisitNoRgst(issueno);
-
- grp_messege.btn_close.setFocus();
- return;
- }
- } else if(issueno.substr(0,1) == "T") { //직원정보조회
- issueno = issueno.substr(1,5);
- fGetVisitorInfo(issueno, "T");
-
- if(ds_temp_visitorinfo.rowcount < 1) {
- grp_messege.cap_messege.text = "직원정보가 없습니다.\n\n출입증을 발급받으시기 바랍니다.";
- grp_messege.visible = true;
-
- fSaveVisitNoRgst(issueno);
-
- grp_messege.btn_close.setFocus();
- return;
- }
- } else if(issueno.length == 12) { //칠곡직원정보조회 T 없이 12자리
- issueno = issueno.substr(0,5);
- fGetVisitorInfo(issueno, "T");
-
- if(ds_temp_visitorinfo.rowcount < 1) {
- grp_messege.cap_messege.text = "직원정보가 없습니다.\n\n출입증을 발급받으시기 바랍니다.";
- grp_messege.visible = true;
-
- fSaveVisitNoRgst(issueno);
-
- grp_messege.btn_close.setFocus();
- return;
- }
- } else { //pam.pmcmptbs && 직원정보조회
- if(issueno.substr(0,1) == "P") {
- issueno = String(Number(issueno.substr(1, 9)));
- }
-
- fGetVisitorInfo(issueno, "E");
-
- if(ds_temp_visitorinfo.rowcount < 1) {
- grp_messege.cap_messege.text = "환자정보가 없습니다.\n\n출입증을 발급받으시기 바랍니다.";
- grp_messege.visible = true;
-
- fSaveVisitNoRgst(issueno);
-
- grp_messege.btn_close.setFocus();
- return;
- } else if(ds_temp_visitorinfo.rowcount > 1) {
- dsf_createDs("ds_temp_visitorinfo2");
- dsf_copyColInfo(ds_temp_visitorinfo2, ds_temp_visitorinfo);
- var cRow = -1;
- if(sysf_messageBox("직원 이십니까?","Q") == 6) {
- cRow = ds_temp_visitorinfo.findRow("gubun", "2");
- } else {
- cRow = ds_temp_visitorinfo.findRow("gubun", "1");
- }
- ds_temp_visitorinfo2.copyRow(ds_temp_visitorinfo2.addRow(), ds_temp_visitorinfo, cRow);
- ds_temp_visitorinfo.clear();
- ds_temp_visitorinfo.copyData(ds_temp_visitorinfo2);
- dsf_deleteDs("ds_temp_visitorinfo2");
- }
- }
-
- // dur예외정보 조회
- dsf_createDsRow("ds_req", [{col:"issueno", val:issueno}
- ,{col:"rrgstno", val:ds_temp_visitorinfo.getColumn(0, "rrgstno")}]);
- var oParam = {};
- oParam.id = "getNonDurList";
- oParam.service = "pambaseinfomngtapp.Etc";
- oParam.method = "reqGetNonDurList";
- oParam.inds = "req=ds_req";
- oParam.outds = "ds_main_nondurlist=item";
- oParam.async = false;
- tranf_submit(oParam);
- if(ds_main_nondurlist.rowcount < 1) {
- sysf_trace("DUR정보조회");
- // dur정보 조회
- var birth = ds_temp_visitorinfo.getColumn(0, "brthdd");
- if(utlf_isNull(birth) || birth.length < 8) birth = "00000000";
- dsf_createDsRow("ds_req", [{col:"hngnm", val:ds_temp_visitorinfo.getColumn(0, "name")}
- ,{col:"birth", val:birth}
- ,{col:"sex", val:ds_temp_visitorinfo.getColumn(0, "sex")}
- ,{col:"rrgstno", val:ds_temp_visitorinfo.getColumn(0, "rrgstno")}
- ,{col:"psptno", val:ds_temp_visitorinfo.getColumn(0, "psptno")}
- ,{col:"forgeryn", val:ds_temp_visitorinfo.getColumn(0, "forgeryn")}]);
- var oParam = {};
- oParam.id = "getKimsInfectionIFInfo";
- oParam.service = "pambaseinfomngtapp.Etc";
- oParam.method = "reqGetKimsInfectionIFInfo";
- oParam.inds = "req=ds_req";
- oParam.outds = "ds_temp_dur=item";
- oParam.force = true;
- oParam.async = false;
- tranf_submit(oParam);
- } else {
- sysf_trace("DUR정보조회 예외적용");
- }
- var duryn = "N";
- var srchrsltdetl = "";
- if(ds_temp_dur.rowcount > 0 && !utlf_isNull(ds_temp_dur.getColumn(0, "srchrsltdetl"))) {
- duryn = "Y";
- srchrsltdetl = ds_temp_dur.getColumn(0, "srchrsltdetl").substr(0,65);
- }
-
- dsf_makeValue(ds_temp_visitorinfo, "visitdd", "string", utlf_getCurrentDate());
- //dsf_makeValue(ds_temp_visitorinfo, "visittm", "string", utlf_getCurrentTime());
- dsf_makeValue(ds_temp_visitorinfo, "issueno", "string", issueno);
- dsf_makeValue(ds_temp_visitorinfo, "inposgbn", "string", ds_send_srch.getColumn(0, "inposgbn"));
- dsf_makeValue(ds_temp_visitorinfo, "duryn", "string", duryn);
- dsf_makeValue(ds_temp_visitorinfo, "bigo", "string", srchrsltdetl);
- dsf_makeValue(ds_temp_visitorinfo, "ipinfo", "string", ds_send_srch.getColumn(0, "ipinfo"));
-
- // 출입대장정보 저장
- var oParam = {};
- oParam.id = "setPmohvistList";
- oParam.service = "pambaseinfomngtapp.Etc";
- oParam.method = "reqSetPmohvistList";
- oParam.inds = "req=ds_temp_visitorinfo";
- oParam.callback = "cf_setPmohvistList";
- oParam.force = true;
- oParam.async = false;
- tranf_submit(oParam);
- }
- function cf_setPmohvistList(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) {
- alert("저장시 오류가 발생하였습니다.");
- return;
- }
- if(!utlf_isNull(ds_temp_dur.getColumn(0, "srchrsltdetl"))) {
- var durerror = ds_temp_dur.getColumn(0, "srchrsltdetl").substr(0,65);
- if(durerror == "ERROR"){
- grp_messege.cap_messege.text = "인식되지 않았습니다. \n\n다시한번 인식해 주십시요!";
- } else {
- var durint = durerror.indexOf("@@");
- var durinfo = durerror.substr(2,durint-2);
- if(!utlf_isNull(durinfo)){
- grp_messege.cap_messege.text = durinfo + " \n\n직원 안내를 받으시기 바랍니다.";
- } else {
- grp_messege.cap_messege.text = "감염증 발생지역 입국자 대상입니다.\n\n직원 안내를 받으시기 바랍니다.";
- }
- }
- grp_messege.visible = true;
-
- fGetPmohvistList();
-
- grp_messege.btn_close.setFocus();
- } else {
- fGetPmohvistList();
- }
- }
- function fPopupMenu(obj:PopupMenu, e:MenuClickEventInfo) {
- if(e.id == "AddNonDurList") {
- dsf_createDs("ds_temp");
- dsf_copyColInfo(ds_temp, ds_main_pmohvist);
- ds_temp.copyRow(ds_temp.addRow(), ds_main_pmohvist, ds_main_pmohvist.rowposition);
-
- var objArg = new Object();
- objArg.arg_ds_pmohvist = ds_temp;
- frmf_modal("SMPMB04001", "SMPMB04001", objArg, "", "", "", "", "", "", "", "", "", "M");
-
- grp_srch.ipt_srch_issueno.setFocus();
- grp_srch.ipt_srch_issueno.style.background = "URL('theme://images/bg_edit_N.png') stretch 5,5";
- grp_srch.ipt_srch_issueno.value = "";
- grp_srch.ipt_srch_issueno.style.color = "#262626ff";
- }
- }
- // 화면초기화
- function SMPMB03800_onload(obj:Form, e:LoadEventInfo)
- {
- frmf_initForm(obj);
-
- //grdf_setToolTipBind(grd_pmohvist);
-
- var vUserid = sysf_getUserId();
- // trace(vUserid);
- // trace(vUserid.toUpperCase().substr(0,4));
- if(vUserid.toUpperCase() != "PAM" && vUserid.toUpperCase().substr(0,4) != "PASS" && vUserid.toUpperCase() != "NCOV001" && vUserid.toUpperCase() != "15023") {
- alert("화면 사용권한이 없습니다.");
- this.close();
- } else if(vUserid.toUpperCase() == "PAM" || vUserid.toUpperCase() == "15023") {
- grp_srch.chk_srch_yn2.visible = true;
- grp_srch.cap_term.visible = true;
- grp_srch.cal_srch_fromdd.visible = true;
- grp_srch.cal_srch_todd.visible = true;
- grp_srch.sta_term.visible = true;
- }
-
- ds_send_srch.setColumn(0, "fromdd", utlf_getCurrentDate());
- ds_send_srch.setColumn(0, "todd", utlf_getCurrentDate());
- ds_send_srch.setColumn(0, "ipinfo", sysf_getIPAddress());
- var arrParam = new Array();
- arrParam = [{dsNm: "ds_init_PK259", cdGrpId: "PK259", showValue: false}];
- pamfGetCodeList(arrParam, true, "");
-
- grp_srch.ipt_srch_issueno.setFocus();
-
- frmf_createPopupMenu("grd_pmohvist_popupmenu" ,"fPopupMenu"
- ,[{id: "AddNonDurList", level: "0", title: "DUR체크 예외리스트 추가"}
- ]);
- //this.setTimer(0, 5000);
- }
- // 조회버튼 클릭
- function grp_srch_btn_search_onclick(obj:Button, e:ClickEventInfo)
- {
- fGetPmohvistList();
- }
- function grp_srch_ipt_srch_issueno_onkeydown(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13) {
- obj.updateToDataset();
-
- fSetPmohvistList();
- }
- }
- function grp_messege_btn_close_onclick(obj:Button, e:ClickEventInfo)
- {
- ds_send_srch.setColumn(0, "issueno", "");
- grp_srch.ipt_srch_issueno.setFocus();
- grp_messege.visible = false;
- }
- function grp_srch_cmb_employee_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
- fGetPmohvistList();
- }
- function grp_srch_cmb_srch_inposgbn_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
- fGetPmohvistList();
- }
- function grp_srch_ipt_srch_issueno_onkillfocus(obj:Edit, e:KillFocusEventInfo)
- {
- if(e.newcomponent.name == "chk_srch_yn") return;
-
- obj.style.background = "gainsboro";
- obj.value = "Click here!!";
- obj.style.color = "red";
-
- this.setTimer(1, 1000);
- }
- function grp_srch_ipt_srch_issueno_onsetfocus(obj:Edit, e:SetFocusEventInfo)
- {
- obj.style.background = "URL('theme://images/bg_edit_N.png') stretch 5,5";
- obj.value = "";
- obj.style.color = "#262626ff";
- }
- function SMPMB04000_ontimer(obj:Form, e:TimerEventInfo)
- {
- if(e.timerid == 0) {
- grp_srch.ipt_srch_issueno.setFocus();
- }
- if(e.timerid == 1) {
- this.killTimer(e.timerid);
- if(this.getFocus()=="[object Grid]" || this.getFocus()=="[object CheckBox]" || this.getFocus()=="[object Edit]") grp_srch.ipt_srch_issueno.setFocus();
- else return;
- }
- }
- function grp_srch_cmb_srch_inposgbn_oncloseup(obj:Combo, e:ComboCloseUpEventInfo)
- {
- grp_srch.ipt_srch_issueno.setFocus();
- }
- function grp_messegeError_btn_closeError_onclick(obj:Button, e:ClickEventInfo)
- {
- grp_messegeError.visible = false;
- if(grp_messege.visible) grp_messege.btn_close.setFocus();
- else grp_srch.ipt_srch_issueno.setFocus();
- }
- function SMPMB04000_onmouseleave(obj:Form, e:MouseEventInfo)
- {
- // if(e.fromreferenceobject.name == "SMPMB04000") {
- // grp_messegeError.visible = true;
- // grp_messegeError.setFocus();
- // }
- }
- function grd_pmohvist_onrbuttonup(obj:Grid, e:GridMouseEventInfo)
- {
- if(e.row > -1) {
- grdf_setSelectedCell(obj, e); // 선택된 행 확실히 선택해줌
- grd_pmohvist_popupmenu.trackPopup(e.screenX,e.screenY);
- }
- return true;
- }
- function grp_srch_chk_srch_yn_onchanged(obj:CheckBox, e:CheckBoxChangeEventInfo)
- {
- if(e.postvalue == "Y") {
- grp_srch.ipt_srch_issueno.visible = false;
- grp_srch.ipt_srch_issueno2.visible = true;
- grp_etc.visible = true;
- grp_srch.ipt_srch_issueno2.setFocus();
- } else {
- grp_srch.ipt_srch_issueno.visible = true;
- grp_srch.ipt_srch_issueno2.visible = false;
- grp_etc.visible = false;
- grp_srch.ipt_srch_issueno.setFocus();
- }
- }
- function grp_srch_ipt_srch_issueno2_onkeydown(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13) {
- obj.updateToDataset();
-
- fGetPmohvistList();
- }
- }
- ]]></Script>
- </Form>
- </FDL>
|