123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPAER00201" position="absolute 0 0 618 349" titletext="환자별바코드출력" oninit="SPAER00201_oninit" onload="SPAER00201_onload">
- <Layouts>
- <Layout>
- <Div position="absolute 0 316 617 343" id="group1" scrollbars="autoboth">
- <Layouts>
- <Layout>
- <Button position="absolute 501 5 557 27" id="btn_confirm" class="btn4" taborder="8" text="출력" anchor="default" onclick="group1_btn_confirm_onclick"/>
- <Button position="absolute 560 5 616 27" id="btn_cancel" class="btn4" taborder="9" text="닫기" anchor="default" onclick="group1_btn_cancel_onclick"/>
- <Shape position="absolute 0 -3 617 3" linetype="horizontal" id="line32" class="line_6" anchor="default"/>
- <Combo position="absolute 370 5 490 24" id="combo1" innerdataset="@ds_init_cmb_info_initexcuroomgrp" datacolumn="excuroomgrpcdnm" codecolumn="excuroomgrpcdid" anchor="default" class="combo_essential" index="0"/>
- <MaskEdit position="absolute 186 5 216 24" id="input1" class="input_search" mask="#,###" anchor="default"/>
- <Edit readonly="true" position="absolute 95 5 185 24" align="align:center middle;" id="output1" anchor="default"/>
- <Edit readonly="true" position="absolute 235 5 330 24" align="align:center middle;" id="output2" anchor="default"/>
- <MaskEdit position="absolute 331 5 366 24" id="input2" mask="#,###" anchor="default"/>
- </Layout>
- </Layouts>
- </Div>
- <Div id="group2" taborder="1" position="absolute 0 0 618 40" class="div_SA2">
- <Layouts>
- <Layout>
- <Static id="caption2" text="검색조건 :" class="search_name" position="absolute 15 12 101 29"/>
- <Button id="btn_search" taborder="6" text="조회" class="btn1" position="absolute 545 9 601 31" onclick="group2_btn_search_onclick"/>
- <Shape id="line13" linetype="vertical" class="line_4" position="absolute 526 9 532 31"/>
- <Edit id="ipt_hngnm" taborder="1" class="input_search" visible="false" position="absolute 224 10 354 29" onkeydown="common_onkeydown"/>
- <MaskEdit id="ipt_rrgstno1" taborder="2" mask="999999" class="input_search" visible="false" position="absolute 247 10 332 29" onkeydown="common_onkeydown"/>
- <Combo id="cmb_cond" taborder="0" innerdataset="@ds_init_P0350" codecolumn="cdid" datacolumn="cdnm" class="combo_search" position="absolute 106 10 216 29" onitemchanged="group2_cmb_cond_onitemchanged"/>
- <MaskEdit id="ipt_rrgstno2" taborder="3" mask="9999999" class="input_search" visible="false" position="absolute 285 10 370 29" onkeydown="common_onkeydown"/>
- <Edit id="ipt_pid" taborder="4" class="input_search" visible="false" position="absolute 325 10 455 29" onkeydown="common_onkeydown"/>
- <Calendar id="ipt_acptdd" taborder="5" class="input_search" visible="false" position="absolute 390 10 520 29" onchanged="group2_ipt_acptdd_onchanged"/>
- </Layout>
- </Layouts>
- </Div>
- <Shape id="line1" linetype="horizontal" class="line_1" position="absolute 0 61 618 67" style="strokepen:3 solid #33bbbbff;"/>
- <Static id="caption1" text="인적사항" class="tit_2" position="absolute 0 45 111 61"/>
- <Grid id="grd_patinfo" taborder="2" binddataset="ds_patinfolist" useinputpanel="false" position="absolute 0 66 618 315" oncelldblclick="grd_patinfo_oncelldblclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="60"/>
- <Column size="0"/>
- <Column size="65"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="50"/>
- <Column size="50"/>
- <Column size="85"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <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" colspan="2" text="주민등록번호" taborder="undefined"/>
- <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="합본등록번호"/>
- <Cell col="17" text="기타전화번호1"/>
- <Cell col="18" text="기타전화번호2"/>
- <Cell col="19" text="sms전송승인 여부"/>
- <Cell col="20" text="이메일 계정"/>
- <Cell col="21" text="우편번호"/>
- <Cell col="22" text="우편번호"/>
- <Cell col="23" text="우편번호순서"/>
- <Cell col="24" text="주소"/>
- <Cell col="25" text="상세주소"/>
- <Cell col="26" text="혈액형"/>
- <Cell col="27" text="RH혈액형"/>
- <Cell col="28" text="외국인여부"/>
- <Cell col="29" text="국적"/>
- <Cell col="30" text="여권번호"/>
- <Cell col="31" text="추천여부"/>
- <Cell col="32" text="추천인ID"/>
- <Cell col="33" text="추천인명"/>
- <Cell col="34" text="추천인관계"/>
- <Cell col="35" text="VIP여부"/>
- <Cell col="36" text="VIP비고"/>
- <Cell col="37" text="종교코드"/>
- <Cell col="38" text="세례명"/>
- <Cell col="39" text="성당명"/>
- <Cell col="40" text="사망여부"/>
- <Cell col="41" text="사망시각"/>
- <Cell col="42" text="사망일자"/>
- <Cell col="43" text="사망시간"/>
- <Cell col="44" text="내원사유"/>
- <Cell col="45" text="동물여부"/>
- <Cell col="46" text="원외예외사유코드"/>
- <Cell col="47" text="재원여부"/>
- <Cell col="48" text="장애인여부"/>
- <Cell col="49" text="특이/문제환자"/>
- <Cell col="50" text="당일퇴원여부"/>
- <Cell col="51" text="참고사항"/>
- <Cell col="52" text="최초등록자ID"/>
- <Cell col="53" text="최초등록일시"/>
- <Cell col="54" text="최종수정자ID"/>
- <Cell col="55" text="최종수정일시"/>
- </Band>
- <Band id="body">
- <Cell text="bind:pid"/>
- <Cell col="1" text="bind:instcd"/>
- <Cell col="2" text="bind:hngnm"/>
- <Cell col="3" text="bind:engnm"/>
- <Cell col="4" text="bind:chinm"/>
- <Cell col="5" text="bind:rrgstno1"/>
- <Cell col="6" text="bind:rrgstno2"/>
- <Cell col="7" style="align:left;padding:0 0 0 2;" text="bind:hometel"/>
- <Cell col="8" style="align:left;padding:0 0 0 2;" text="bind:mpphontel"/>
- <Cell col="9" displaytype="date" text="bind:lastorddd"/>
- <Cell col="10" displaytype="combo" edittype="combo" style="align:left;padding:0 0 0 2;" text="bind:lastorddeptcd" combodataset="ds_init_orddeptcd_orddeptcdlist" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
- <Cell col="11" text="bind:outuncoamt"/>
- <Cell col="12" text="bind:dschuncoamt"/>
- <Cell col="13" text="bind:brthdd" mask="yyyy-mm-dd"/>
- <Cell col="14" text="bind:sex"/>
- <Cell col="15" text="bind:age"/>
- <Cell col="16" text="bind:bindpid"/>
- <Cell col="17" text="bind:etctel1"/>
- <Cell col="18" text="bind:etctel2"/>
- <Cell col="19" text="bind:smsaprvyn"/>
- <Cell col="20" text="bind:email"/>
- <Cell col="21" text="bind:zipcd1"/>
- <Cell col="22" text="bind:zipcd2"/>
- <Cell col="23" text="bind:zipcdseq"/>
- <Cell col="24" style="align:left;padding:0 0 0 2;" text="bind:addr"/>
- <Cell col="25" style="align:left;padding:0 0 0 2;" text="bind:detladdr"/>
- <Cell col="26" text="bind:btype"/>
- <Cell col="27" text="bind:rh"/>
- <Cell col="28" text="bind:forgeryn"/>
- <Cell col="29" text="bind:nati"/>
- <Cell col="30" text="bind:psptno"/>
- <Cell col="31" text="bind:recmyn"/>
- <Cell col="32" text="bind:recmerid"/>
- <Cell col="33" text="bind:recmernm"/>
- <Cell col="34" text="bind:recmerrela"/>
- <Cell col="35" text="bind:vipyn"/>
- <Cell col="36" text="bind:viprem"/>
- <Cell col="37" text="bind:religncd"/>
- <Cell col="38" text="bind:baptnm"/>
- <Cell col="39" text="bind:chchnm"/>
- <Cell col="40" text="bind:dethyn"/>
- <Cell col="41" text="bind:dethdt"/>
- <Cell col="42" text="bind:dethdd"/>
- <Cell col="43" text="bind:dethtm"/>
- <Cell col="44" text="bind:chosresn"/>
- <Cell col="45" text="bind:animyn"/>
- <Cell col="46" text="bind:exptresncd"/>
- <Cell col="47" text="bind:inhospyn"/>
- <Cell col="48" text="bind:handicapryn"/>
- <Cell col="49" text="bind:patspcfyn"/>
- <Cell col="50" text="bind:tdaydsch"/>
- <Cell col="51" text="bind:remfact"/>
- <Cell col="52" text="bind:acptdd"/>
- <Cell col="53" text="bind:acptno"/>
- <Cell col="54" text="bind:lastupdtrid"/>
- <Cell col="55" text="bind:lastupdtdt"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_patinfolist" 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">
- <ColumnInfo>
- <Column id="srchcond" type="STRING" size="256"/>
- <Column id="pid" type="STRING" size="256"/>
- <Column id="hngnm" type="STRING" size="256"/>
- <Column id="rrgstno1" type="STRING" size="256"/>
- <Column id="rrgstno2" type="STRING" size="256"/>
- <Column id="acptdd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="srchcond"/>
- <Col id="pid"/>
- <Col id="hngnm"/>
- <Col id="rrgstno1"/>
- <Col id="rrgstno2"/>
- <Col id="acptdd"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_send_data_cmb_info_initexcuroomgrp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="excuroomgrpcdid" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_P0350" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cdnm" type="STRING" size="256"/>
- <Column id="cdid" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_orddeptcd_orddeptcdlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cdnm" type="STRING" size="256"/>
- <Column id="cdid" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_orddrid_orddeptcdlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cd" type="STRING" size="256"/>
- <Column id="nm" type="STRING" size="256"/>
- <Column id="dp" type="STRING" size="256"/>
- <Column id="sp" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="cd"/>
- <Col id="nm"/>
- <Col id="dp"/>
- <Col id="sp"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_cmb_info_initexcuroomgrp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="excuroomgrpcdid" type="STRING" size="256"/>
- <Column id="excuroomgrpcdnm" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_hidden_uid" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="myself" type="STRING" size="256"/>
- <Column id="opener" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_hidden_tmp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_hidden_barprntinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="comport" type="STRING" size="256"/>
- <Column id="setting" type="STRING" size="256"/>
- <Column id="ip" type="STRING" size="256"/>
- <Column id="patdonor" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="comport">2</Col>
- <Col id="setting">9600,n,8,1</Col>
- <Col id="ip"/>
- <Col id="patdonor">1</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="Message" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="comportctl" type="STRING" size="256"/>
- <Column id="outputcnt" type="STRING" size="256"/>
- <Column id="outputcntval" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="comportctl">출력포트입력 :</Col>
- <Col id="outputcnt">출력매수입력 :</Col>
- <Col id="outputcntval">1</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_barcdprntsetup" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_data_comm01" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_data_comm02" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_data_comm03" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_data_setupinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_data_blank" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="group2.cmb_cond" propid="value" datasetid="ds_send" columnid="srchcond"/>
- <BindItem id="item1" compid="group2.ipt_hngnm" propid="value" datasetid="ds_send" columnid="hngnm"/>
- <BindItem id="item2" compid="group2.ipt_rrgstno1" propid="value" datasetid="ds_send" columnid="rrgstno1"/>
- <BindItem id="item3" compid="group2.ipt_rrgstno2" propid="value" datasetid="ds_send" columnid="rrgstno2"/>
- <BindItem id="item4" compid="group2.ipt_pid" propid="value" datasetid="ds_send" columnid="pid"/>
- <BindItem id="item5" compid="group2.ipt_acptdd" propid="value" datasetid="ds_send" columnid="acptdd"/>
- <BindItem id="item6" compid="group1.output1" propid="value" datasetid="ds_init" columnid="comportctl"/>
- <BindItem id="item7" compid="group1.input1" propid="value" datasetid="ds_hidden_barprntinfo" columnid="comport"/>
- <BindItem id="item8" compid="group1.output2" propid="value" datasetid="ds_init" columnid="outputcnt"/>
- <BindItem id="item9" compid="group1.input2" propid="value" datasetid="ds_init" columnid="outputcntval"/>
- <BindItem id="item10" compid="group1.combo1" propid="value" datasetid="ds_send_data_cmb_info_initexcuroomgrp" columnid="excuroomgrpcdid"/>
- </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
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- //=======================================================================================
- // Lib Include
- //---------------------------------------------------------------------------------------
- include "com_commonxp::comm_main.xjs"
- include "ast_examcurexp::AEZ0001.xjs"
- include "pam_pamcomnxp::PAM.xjs"
- //include "lis_commonxp::LZZ001.xjs"
- include "lis_commonxp::LLZ001.xjs"
- include "com_commodulexp::SSZFM00901.xjs"
- //=======================================================================================
- // Global Form Variable
- //---------------------------------------------------------------------------------------
- var arErrorCode = new HashArray();
- var gSuppdeptcd = "";
- //=======================================================================================
- // Function
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Argument : N/A
- * Description : 창 생성시 부모창으로 부터 받은 입력값의 유효범위 체크
- ****************************************************************************************/
- function fInputValueCheckXformsReady(){
- var cond = ds_send.getColumn(0,"srchcond");
- switch(cond){
- case '1':
- //환자등록번호 체크
- if(group2.ipt_pid.text.length >= 1 ){
- return (true);
- }else{
- sysf_messageBox("환자등록번호를 정확히", "C001");
- return (false);
- }
- break;
-
- case '2':
- //환자이름 체크
- if(group2.ipt_hngnm.text.length >= 2 ){
- ds_send.setColumn(0,"hngnm", group2.ipt_hngnm.text);
- return (true);
- }else{
- sysf_messageBox("환자이름을 2자리 이상", "C001");
- return (false);
- }
- break;
-
- case '3':
- //환자 주민번호 체크
- if( group2.ipt_rrgstno1.text.length >= 1 || group2.ipt_rrgstno2.text.length >= 1 ){
- ds_send.setColumn(0,"rrgstno1", group2.ipt_rrgstno1.text);
- ds_send.setColumn(0,"rrgstno2", group2.ipt_rrgstno2.text);
- return (true);
- }else{
- sysf_messageBox("환자 주민번호를", "C001");
- return (false);
- }
- break;
-
- case '4':
- //환자이름 유효성 체크.
- if(group2.ipt_hngnm.text.length >= 2 ){
- ds_send.setColumn(0,"hngnm", group2.ipt_hngnm.text);
- }else{
- sysf_messageBox("환자이름을 2자리 이상", "C001");
- return (false);
- }
- //환자 주민번호 체크
- if( group2.ipt_rrgstno1.text.length >= 1 || group2.ipt_rrgstno2.text.length >= 1){
- ds_send.setColumn(0,"rrgstno1", group2.ipt_rrgstno1.text);
- ds_send.setColumn(0,"rrgstno2", group2.ipt_rrgstno2.text);
- }else{
- sysf_messageBox("환자 주민번호를", "C001");
- return (false);
- }
-
- return( true );
- break;
-
- case '5':
- //예약일자 유효성 체크 --
- if( utlf_isValidDateTime( ds_send.getColumn(0,"acptdd"), "YYYYMMDD") ){
- ds_send.setColumn(0,"acptdd", model.getValue("/root/send/acptdd"));
- return (true);
- }else{
- sysf_messageBox("예약일자를 정확히", "C001");
- return (false);
- }
- break;
-
- default :
- group2.cmb_cond.setFocus();
- return( false );
- break;
- }
- }
-
- /****************************************************************************************
- * Argument : N/A
- * Description : 입력값의 유효범위 체크
- ****************************************************************************************/
- function fInputValueCheck(){
- var cond = ds_send.getColumn(0,"srchcond");
- switch(cond){
- case '1':
- //환자등록번호 체크
- if(group2.ipt_pid.text.length >= 1 ){
- ds_send.setColumn(0,"pid", group2.ipt_pid.text);
- return (true);
- }else{
- sysf_messageBox("환자등록번호를 정확히", "C001");
- return (false);
- }
- break;
-
- case '2':
- //환자이름 체크
- if(group2.ipt_hngnm.text.length >= 2 ){
- ds_send.setColumn(0,"hngnm", group2.ipt_hngnm.text);
- return (true);
- }else{
- sysf_messageBox("환자이름을 2자리 이상", "C001");
- return (false);
- }
- break;
-
- case '3':
- //환자 주민번호 체크
- if( group2.ipt_rrgstno1.text.length >= 1 || group2.ipt_rrgstno2.text.length >= 1 ){
- ds_send.setColumn(0,"rrgstno1", group2.ipt_rrgstno1.text);
- ds_send.setColumn(0,"rrgstno2", group2.ipt_rrgstno2.text);
- return (true);
- }else{
- sysf_messageBox("환자 주민번호를", "C001");
- return (false);
- }
- break;
-
- case '4':
- //환자이름 유효성 체크.
- if(group2.ipt_hngnm.text.length>= 2 ){
- ds_send.setColumn(0,"hngnm", group2.ipt_hngnm.text);
- }else{
- sysf_messageBox("환자이름을 2자리 이상", "C001");
- return (false);
- }
- //환자 주민번호 체크
- if( group2.ipt_rrgstno1.text.length >= 1 || group2.ipt_rrgstno2.text.length >= 1){
- ds_send.setColumn(0,"rrgstno1", group2.ipt_rrgstno1.text);
- ds_send.setColumn(0,"rrgstno2", group2.ipt_rrgstno2.text);
- }else{
- sysf_messageBox("환자 주민번호를", "C001");
- return (false);
- }
- return( true );
- break;
-
- case '5':
- //예약일자 유효성 체크 --
- if( utlf_isValidDateTime( ds_send.getColumn(0,"acptdd"), "YYYYMMDD") ){
- return (true);
- }else{
- sysf_messageBox("예약일자를 정확히", "C001");
- return (false);
- }
- break;
-
- default :
- sysf_messageBox("검색조건이 정확히 선택되지 않았습니다. 확인 후 다시 시도해 주십시요.", "E999", "");
- group2.cmb_cond.setFocus();
- return( false );
- break;
- }
- }
- /****************************************************************************************
- * Argument : N/A
- * Description : 조회 조건에 맞는 input 컨트롤을 세팅해 준다.
- ****************************************************************************************/
- function fChangeSearchCondition(cond){
- switch(cond){
- case '1':
- ds_send.setColumn(0,"pid");
-
- group2.ipt_pid.visible = true;
- group2.ipt_pid.position.left = 224;
- group2.ipt_pid.position.top = 10;
- group2.ipt_hngnm.visible = false;
- group2.ipt_rrgstno1.visible = false;
- group2.ipt_rrgstno2.visible = false;
- group2.ipt_acptdd.visible = false;
-
- group2.ipt_pid.setFocus();
- break;
-
- case '2':
- ds_send.setColumn(0,"hngnm");
-
- group2.ipt_hngnm.visible = true;
- group2.ipt_hngnm.position.left = 224;
- group2.ipt_hngnm.position.top = 10;
- group2.ipt_pid.visible = false;
- group2.ipt_rrgstno1.visible = false;
- group2.ipt_rrgstno2.visible = false;
- group2.ipt_acptdd.visible = false;
-
- group2.ipt_hngnm.setFocus();
- break;
-
- case '3':
- ds_send.setColumn(0,"rrgstno1");
- ds_send.setColumn(0,"rrgstno2");
-
- group2.ipt_rrgstno1.visible = true;
- group2.ipt_rrgstno2.visible = true;
- group2.ipt_rrgstno1.position.left = 224;
- group2.ipt_rrgstno1.position.top = 10;
- group2.ipt_rrgstno2.position.left = 312;
- group2.ipt_rrgstno2.position.top = 10;
- group2.ipt_hngnm.visible = false;
- group2.ipt_pid.visible = false;
- group2.ipt_acptdd.visible = false;
-
- group2.ipt_rrgstno1.setFocus();
- break;
-
- case '4':
- ds_send.setColumn(0,"hngnm");
- ds_send.setColumn(0,"rrgstno1");
- ds_send.setColumn(0,"rrgstno2");
- group2.ipt_hngnm.visible = true;
- group2.ipt_rrgstno1.position.left = 224;
- group2.ipt_rrgstno1.position.top = 10;
- group2.ipt_rrgstno1.visible = true;
- group2.ipt_rrgstno2.visible = true;
- group2.ipt_rrgstno1.position.left = 357;
- group2.ipt_rrgstno1.position.top = 10;
- group2.ipt_rrgstno2.position.left = 445;
- group2.ipt_rrgstno2.position.top = 10;
- group2.ipt_pid.visible = false;
- group2.ipt_acptdd.visible = false;
-
- group2.ipt_hngnm.setFocus();
- break;
-
- case '5':
- ds_send.setColumn(0,"acptdd");
-
- group2.ipt_acptdd.visible = true;
- group2.ipt_acptdd.position.left = 224;
- group2.ipt_acptdd.position.top = 10;
- group2.ipt_pid.visible = false;
- group2.ipt_hngnm.visible = false;
- group2.ipt_rrgstno1.visible = false;
- group2.ipt_rrgstno2.visible = false;
-
- group2.ipt_acptdd.setFocus();
- break;
-
- default :
- break;
- }
- }
- /****************************************************************************************
- * Argument : N/A
- * Description : 라벨출력
- ****************************************************************************************/
- function fLabelPrint() {
- var sSndMsg = "";
- var sBcNo = "";
- var iprintcnt = 0;
-
- if ( utlf_isNull(ds_send_data_cmb_info_initexcuroomgrp.getColumn(0,"excuroomgrpcdid")) ) {
- sysf_messageBox("검사실그룹이 선택되지 ", "E007");
- return;
- }
- var pid = ds_patinfolist.getColumn(ds_patinfolist.rowposition,"pid");
- var patnm = ds_patinfolist.getColumn(ds_patinfolist.rowposition,"hngnm");
- var gbn = ds_patinfolist.getColumn(ds_patinfolist.rowposition,"rrgstno2").substring(0, 1);
- var rrgstno1 = ds_patinfolist.getColumn(ds_patinfolist.rowposition,"rrgstno1");
- var rrgstno2 = ds_patinfolist.getColumn(ds_patinfolist.rowposition,"rrgstno2");
- var barpid = pid;
- var excugrp = ds_send_data_cmb_info_initexcuroomgrp.getColumn(0,"excuroomgrpcdid");
- var currentdate = utlf_getCurrentDate();
-
- if ( gbn == "1" ) { // 12개월 미만의 나이는 계산못함. 향후 체크해야 함. 장준원
- var sex = "M";
- var age = lf_aezfgetFullAge(rrgstno1+rrgstno2);
- } else {
- var sex = "F";
- var age = lf_aezfgetFullAge(rrgstno1+rrgstno2);
- }
- if ( utlf_isNull(pid) ) {
- sysf_messageBox("처방목록이 선택되지 ", "E007");
- return;
- }
-
- sSndMsg = "";
-
- //시작(X, Y)
- sSndMsg += lzzfBP_StartFormat(0, 0);
- sSndMsg += "^BY2,2.5^FO" + "200" + "," + "30"; // 바코드 Width 조절
- sSndMsg += "^BCN,70,N,N,N^FD" + "*"+barpid+excugrp+"*" + "^FS";
-
- // 등록번호 + 그룹코드
- sSndMsg += lzzfBP_ChangeFont("C", 7, 7); // 폰트 설정
- sSndMsg += lzzfBP_FieldDataA(265, 105, "*"+pid+' '+excugrp+"*" );
- // 등록번호 --
- sSndMsg += lzzfBP_ChangeFont("C", 45, 15); // 폰트 설정
- sSndMsg += lzzfBP_FieldDataA(85, 150, pid );
- //환자명 --
- sSndMsg += lzzfBP_ChangeFont("C", 45, 15); // 폰트 설정
- sSndMsg += CommAX.PrtImgOut(100, 210, patnm, 2, 2); //가로시작위치, 세로시작위치, 출력할문자열, 1,1 (비율)
- sSndMsg += CommAX.HanImageData();
- // 성별
- sSndMsg += lzzfBP_ChangeFont("C", 45, 15); // 폰트 설정
- sSndMsg += lzzfBP_FieldDataA(400, 210, sex );
-
- // 나이
- sSndMsg += lzzfBP_ChangeFont("C", 45, 15); // 폰트 설정
- sSndMsg += lzzfBP_FieldDataA(550, 210, age );
- // 그룹코드
- sSndMsg += lzzfBP_ChangeFont("C", 45, 15); // 폰트 설정
- sSndMsg += lzzfBP_FieldDataA(550, 150, excugrp );
- // 주민번호
- sSndMsg += lzzfBP_ChangeFont("C", 35, 15); // 폰트 설정
- sSndMsg += lzzfBP_FieldDataA(400, 270, rrgstno1+"-"+gbn );
- // 초음파실
- //sSndMsg += fCarePrintOutH(480, 5, 2, "N", "초음파실" , "");
- // 처방명
- //sSndMsg += fCarePrintOutH(5, 180, 1, "Y", prcpnm , "");
- //sSndMsg += lzzfBP_ChangeFont("C", 40, 15);
- //sSndMsg += lzzfBP_FieldDataA(5, 180, prcpnm);
- //종료(매수)
- sSndMsg += lzzfBP_EndFormat();
- CommAX.SendMessage(sSndMsg);
- ds_hidden.setColumn(0,"Message", CommAX.Message);
- }
- //=======================================================================================
- // Event
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Components : Form
- * Components ID : SPAER00201
- * Event : oninit
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 처음 초기화시 폼초기화
- ****************************************************************************************/
- function SPAER00201_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj); // 폼 초기화
- }
- /****************************************************************************************
- * Components : Form
- * Components ID : SPAER00201
- * Event : onload
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 처음 초기화시 폼초기화
- ****************************************************************************************/
- function SPAER00201_onload(obj:Form, e:LoadEventInfo)
- {
- lf_aezfSetSuppDeptcd(); //AEZ0001.xjs
- gSuppdeptcd = frmf_getParameter("AST_DEPTCD");
- var arrParam = [{dsNm: "ds_init_P0350", cdGrpId: "P0350"}
- ]
- appf_getCodeList(arrParam);
-
- //진료과코드 진료의사ID 조회
- pamGetDeptCDDrIDList(); //PAM.xjs
-
- dsf_createDsRow("ds_reqparam", [{col:"basesuppdeptcd", val:gSuppdeptcd}
- ,{col:"rbasecdflag" , val:"R"}
- ,{col:"ebasecdflag" , val:"E"}
- ,{col:"initflag" , val:"1"}
- ]);
- var oParam = {};
- oParam.id = "TRAEA01301";
- oParam.service = "examcureacptexecapp.ExamCureAcpt";
- oParam.method = "reqGetInitExamCureRoomGrpCodeList";
- oParam.inds = "reqparam=ds_reqparam";
- oParam.outds = "ds_init_cmb_info_initexcuroomgrp=initexcuroomgrp"
- oParam.async = false;
- oParam.callback = "cf_TRAEA01301";
- tranf_submit(oParam);
-
- //바코드 출력
- dsf_createDsRow("ds_req", [
- {col:"scrnid", type:"STRING", size:256, val:frmf_getScreenID()}
- ]);
- var oParam = {}; // 20090617 SATO 관련 추가
- oParam.id = "TRLLC90101";
- oParam.service = "diagtestapplib.LisCommon";
- oParam.method = "reqGetSetUpInfo";
- oParam.inds = "scrnid=ds_req";
- oParam.outds = "ds_barcdprntsetup=getSetUpInfo";
- oParam.async = false;
- //oParam.callback = "cf_TRLLC90101";
- tranf_submit(oParam);
- // 라벨출력 초기화
- lzzfMakeBrcdPrntObjHanDo("CommAX");
-
- ds_send.setColumn(0,"srchcond" , "1");
- frmf_inputEnterKey("group2.cmb_cond", "onitemchanged", new ItemChangeEventInfo);
-
- ds_init_P0350.filter("cdid!='5'"); // 원무기준 예약일자 는 제외
-
- group1.combo1.index = 0;
- }
- function cf_TRAEA01301(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
- ds_init_cmb_info_initexcuroomgrp.updateColID("basecdcnts" ,"excuroomgrpcdid");
- ds_init_cmb_info_initexcuroomgrp.updateColID("basecdcnts2" ,"excuroomgrpcdnm");
- }
- /****************************************************************************************
- * Components : Combo
- * Components ID : group2.cmb_cond
- * Event : onitemchanged
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 검색조건 변경
- ****************************************************************************************/
- function group2_cmb_cond_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
- var cond = ds_send.getColumn(0,"srchcond");
- fChangeSearchCondition(cond);
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : group2.btn_search
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 조회
- ****************************************************************************************/
- function group2_btn_search_onclick(obj:Button, e:ClickEventInfo)
- {
- if( fInputValueCheck() ){
- var oParam = {};
- oParam.id = "TRPMC02500";
- oParam.service = "patinfomngtapp.PatBaseInfo";
- oParam.method = "reqGetPatInfo";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_patinfolist=patinfolist";
- oParam.async = false;
- oParam.callback = "cf_TRPMC02500";
- tranf_submit(oParam);
-
- if(arErrorCode.pop("TRPMC02500") >= 0){
- if( ds_patinfolist.rowcount > 0 ){
- grd_patinfo.setFocus();
- }else{
- fChangeSearchCondition( ds_send.getColumn(0,"srchcond") );
- }
- }
- }
- }
- function cf_TRPMC02500(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- /****************************************************************************************
- * Components : Edit
- * Components ID : group2.input
- * Event : onkeydown
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 조회조건 입력후 엔터로 조회
- ****************************************************************************************/
- function common_onkeydown(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13) {
- obj.updateToDataset();
- frmf_inputEnterKey("group2.btn_search", "onclick", new ClickEventInfo);
- }
- }
- /****************************************************************************************
- * Components : Calendar
- * Components ID : group2.ipt_acptdd
- * Event : onchanged
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 날자 변경하여 조회
- ****************************************************************************************/
- function group2_ipt_acptdd_onchanged(obj:Calendar, e:ChangeEventInfo)
- {
- obj.updateToDataset();
- frmf_inputEnterKey("group2.btn_search", "onclick", new ClickEventInfo);
- }
- /****************************************************************************************
- * Components : Grid
- * Components ID : grd_patinfo
- * Event : oncelldblclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 리스트 선택하여 출력
- ****************************************************************************************/
- function grd_patinfo_oncelldblclick(obj:Grid, e:GridClickEventInfo)
- {
- frmf_inputEnterKey("group1.btn_confirm", "onclick", new ClickEventInfo);
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : group1.btn_confirm
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 출력
- ****************************************************************************************/
- function group1_btn_confirm_onclick(obj:Button, e:ClickEventInfo)
- {
- var cnt = ds_init.getColumn(0,"outputcntval");
- if ( cnt < 1 ) {
- sysf_messageBox("출력매수가 정확하지 않습니다.","I999");
- return;
- }
- var portOpenTF = ""; //오픈 성공 여부
- CommAX.CommPort = ds_hidden_barprntinfo.getColumn(0,"comport"); // 출력 Port
- CommAX.Settings = ds_hidden_barprntinfo.getColumn(0,"setting"); // Comm 설정
- portOpenTF = CommAX.PortOpen("true");
- if(portOpenTF == "TRUE"){
- for (var i = 1; i <= cnt; i++) {
- fLabelPrint();
- }
- CommAX.PortOpen("false");
- } else {
- sysf_messageBox( "아래 사항을 확인후 재출력해주십시오."
- + " \n 1.프린트설정 화면에서 통신유형을 com 으로 선택한 경우 port 번호 확인"
- + " \n 2.케이블 확인"
- + " \n 3.먼저 출력중인 바코드 확인(모두 출력된 후 재출력하십시오.)", "I", "");
- return;
- }
- }
- function group1_btn_cancel_onclick(obj:Button, e:ClickEventInfo)
- {
- this.close();
- }
- ]]></Script>
- </Form>
- </FDL>
|