123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPAHA00400" position="absolute 0 0 577 348" titletext="건진환자선택" onload="SPAHA00400_onload">
- <Layouts>
- <Layout>
- <Div position="absolute 0 0 576 316" id="group3" scrollbars="autoboth">
- <Layouts>
- <Layout>
- <Div position="absolute 0 0 576 40" align="align:center top;" id="group2" class="div_SA2">
- <Layouts>
- <Layout>
- <Static text="검색조건 :" position="absolute 12 12 98 29" id="caption2" class="search_name" anchor="default"/>
- <Button position="absolute 506 10 562 32" id="btn_search" class="btn1" taborder="4" text="조회" anchor="default" onclick="group3_group2_btn_search_onclick"/>
- <Shape position="absolute 487 10 493 32" linetype="vertical" id="line13" class="line_4" anchor="default"/>
- <Combo position="absolute 98 11 210 30" id="cmb_cond" class="combo_search" codecolumn="codecolumn" datacolumn="datacolumn" anchor="default" onitemchanged="group3_group2_cmb_cond_onitemchanged">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn" size="256"/>
- <Column id="datacolumn" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">rgstno</Col>
- <Col id="datacolumn">주민번호</Col>
- </Row>
- <Row>
- <Col id="codecolumn">pid</Col>
- <Col id="datacolumn">등록번호</Col>
- </Row>
- <Row>
- <Col id="codecolumn">pnm</Col>
- <Col id="datacolumn">성명(한글)</Col>
- </Row>
- <Row>
- <Col id="codecolumn">engnm</Col>
- <Col id="datacolumn">성명(영문))</Col>
- </Row>
- <Row>
- <Col id="codecolumn">rowid</Col>
- <Col id="datacolumn">ROWID</Col>
- </Row>
- <Row>
- <Col id="codecolumn">rgstno</Col>
- <Col id="datacolumn">성명+주민번호</Col>
- </Row>
- </Rows>
- </Dataset>
- </Combo>
- <Edit position="absolute 213 11 313 30" id="ipt_pid" class="input_search" taborder="1" anchor="default" onkeyup="group3_group2_ipt_pid_onkeyup" autoselect="true"/>
- <MaskEdit position="absolute 316 11 376 30" id="ipt_rgstno1" class="input_search" taborder="2" mask="999999" anchor="default" onkeyup="group3_group2_ipt_rgstno1_onkeyup" autoselect="true"/>
- <MaskEdit position="absolute 379 11 439 30" id="ipt_rgstno2" class="input_search" taborder="3" mask="9999999" anchor="default" onkeyup="group3_group2_ipt_rgstno2_onkeyup" autoselect="true"/>
- </Layout>
- </Layouts>
- </Div>
- <Static text="건진자리스트" position="absolute 0 53 111 67" id="caption1" class="tit_2"/>
- <Shape position="absolute 0 67 576 73" linetype="horizontal" id="line1" class="line_10"/>
- <Grid position="absolute 0 72 576 316" id="grd_patlst" binddataset="ds_main_patinfo_item" oncelldblclick="group3_grd_patlst_oncelldblclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25" band="left"/>
- <Column size="80"/>
- <Column size="74"/>
- <Column size="62"/>
- <Column size="74"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="37"/>
- <Column size="38"/>
- <Column size="195"/>
- <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"/>
- <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/>
- <Cell col="1" text="등록번호"/>
- <Cell col="2" text="환자성명"/>
- <Cell col="3" colspan="2" text="주민등록번호" taborder="undefined"/>
- <Cell col="5" text="건진일자"/>
- <Cell col="6" text="건진구분"/>
- <Cell col="7" text="성별"/>
- <Cell col="8" text="나이"/>
- <Cell col="9" text="전화번호(집)"/>
- <Cell col="10" text="emailid"/>
- <Cell col="11" text="emailtype"/>
- <Cell col="12" text="healexampid"/>
- <Cell col="13" text="emailkind"/>
- <Cell col="14" text="zipcd11"/>
- <Cell col="15" text="zipcd12"/>
- <Cell col="16" text="zipcdseq1"/>
- <Cell col="17" text="addr"/>
- <Cell col="18" text="detladdr"/>
- <Cell col="19" text="zipcd21"/>
- <Cell col="20" text="zipcd22"/>
- <Cell col="21" text="zipcdseq2"/>
- <Cell col="22" text="addr2"/>
- <Cell col="23" text="detladdr2"/>
- <Cell col="24" text="zipcd31"/>
- <Cell col="25" text="zipcd32"/>
- <Cell col="26" text="zipcdseq3"/>
- <Cell col="27" text="addr3"/>
- <Cell col="28" text="detladdr3"/>
- <Cell col="29" text="psptno"/>
- <Cell col="30" text="brthareacnts"/>
- <Cell col="31" text="pidcretfg"/>
- <Cell col="32" text="engnm"/>
- <Cell col="33" text="forgneryn"/>
- <Cell col="34" text="caption1"/>
- <Cell col="35" text="caption2"/>
- <Cell col="36" text="caption3"/>
- <Cell col="37" text="caption4"/>
- <Cell col="38" text="caption5"/>
- <Cell col="39" text="caption6"/>
- <Cell col="40" text="caption7"/>
- <Cell col="41" text="caption8"/>
- <Cell col="42" text="caption9"/>
- <Cell col="43" text="caption10"/>
- <Cell col="44" text="caption11"/>
- <Cell col="45" text="caption12"/>
- <Cell col="46" text="caption13"/>
- <Cell col="47" text="caption14"/>
- <Cell col="48" text="caption15"/>
- <Cell col="49" text="caption16"/>
- <Cell col="50" text="caption17"/>
- <Cell col="51" text="caption18"/>
- <Cell col="52" text="caption19"/>
- <Cell col="53" text="caption20"/>
- <Cell col="54" text="caption21"/>
- <Cell col="55" text="caption22"/>
- <Cell col="56" text="caption23"/>
- <Cell col="57" text="pat_rowid"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" text="expr:currow+1"/>
- <Cell col="1" displaytype="text" text="bind:pid"/>
- <Cell col="2" displaytype="text" text="bind:hngnm"/>
- <Cell col="3" text="bind:rgstno1"/>
- <Cell col="4" text="bind:rgstno2"/>
- <Cell col="5" text="bind:healexamdd" mask="expr:utlf_isNull(healexamdd) ? '' : '####/##/##'"/>
- <Cell col="6" displaytype="text" text="bind:healexamdetlnm"/>
- <Cell col="7" text="bind:sex"/>
- <Cell col="8" text="bind:age"/>
- <Cell col="9" displaytype="text" text="bind:telno"/>
- <Cell col="10" text="bind:emailid"/>
- <Cell col="11" text="bind:emailtype"/>
- <Cell col="12" text="bind:healexampid"/>
- <Cell col="13" text="bind:emailkind"/>
- <Cell col="14" text="bind:zipcd11"/>
- <Cell col="15" text="bind:zipcd12"/>
- <Cell col="16" text="bind:zipcdseq1"/>
- <Cell col="17" text="bind:addr1"/>
- <Cell col="18" text="bind:detladdr1"/>
- <Cell col="19" text="bind:zipcd21"/>
- <Cell col="20" text="bind:zipcd22"/>
- <Cell col="21" text="bind:zipcdseq2"/>
- <Cell col="22" text="bind:addr2"/>
- <Cell col="23" text="bind:detladdr2"/>
- <Cell col="24" text="bind:zipcd31"/>
- <Cell col="25" text="bind:zipcd32"/>
- <Cell col="26" text="bind:zipcdseq3"/>
- <Cell col="27" text="bind:addr3"/>
- <Cell col="28" text="bind:detladdr3"/>
- <Cell col="29" text="bind:psptno"/>
- <Cell col="30" text="bind:brthareacnts"/>
- <Cell col="31" text="bind:pidcretfg"/>
- <Cell col="32" text="bind:engnm"/>
- <Cell col="33" text="bind:forgneryn"/>
- <Cell col="34" text="bind:mpphon"/>
- <Cell col="35" text="bind:brthdd"/>
- <Cell col="36" text="bind:patm_insucd"/>
- <Cell col="37" text="bind:patm_insuid"/>
- <Cell col="38" text="bind:patm_insukind"/>
- <Cell col="39" text="bind:clntgrde"/>
- <Cell col="40" text="bind:patremcnts"/>
- <Cell col="41" text="bind:pkgcd"/>
- <Cell col="42" text="bind:conseq"/>
- <Cell col="43" text="bind:conhistseq"/>
- <Cell col="44" text="bind:cmpycd"/>
- <Cell col="45" text="bind:choiflag"/>
- <Cell col="46" text="bind:clntcmpynm"/>
- <Cell col="47" text="bind:clntdeptnm"/>
- <Cell col="48" text="bind:cmpynm"/>
- <Cell col="49" text="bind:jobposcd"/>
- <Cell col="50" text="bind:clntempid"/>
- <Cell col="51" text="bind:deptcd"/>
- <Cell col="52" text="bind:clntpos"/>
- <Cell col="53" text="bind:condd"/>
- <Cell col="54" text="bind:confromdd"/>
- <Cell col="55" text="bind:contodd"/>
- <Cell col="56" text="bind:contype"/>
- <Cell col="57" text="bind:pat_rowid"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- </Layout>
- </Layouts>
- </Div>
- <Div position="absolute 0 316 576 343" id="group1" scrollbars="autoboth">
- <Layouts>
- <Layout>
- <Button position="absolute 457 5 513 27" id="btn_confirm" class="btn4" text="확인" onclick="group1_btn_confirm_onclick"/>
- <Button position="absolute 516 5 572 27" id="btn_cancel" class="btn4" text="취소" onclick="group1_btn_cancel_onclick"/>
- <Shape position="absolute 0 0 576 6" id="line32" class="line_6"/>
- </Layout>
- </Layouts>
- </Div>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_main_patinfo_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="pid" type="STRING" size="256"/>
- <Column id="hngnm" type="STRING" size="256"/>
- <Column id="rgstno1" type="STRING" size="256"/>
- <Column id="rgstno2" type="STRING" size="256"/>
- <Column id="healexamdd" type="STRING" size="256"/>
- <Column id="sex" type="STRING" size="256"/>
- <Column id="age" type="STRING" size="256"/>
- <Column id="telno" type="STRING" size="256"/>
- <Column id="emailid" type="STRING" size="256"/>
- <Column id="emailtype" type="STRING" size="256"/>
- <Column id="healexampid" type="STRING" size="256"/>
- <Column id="emailkind" type="STRING" size="256"/>
- <Column id="zipcd11" type="STRING" size="256"/>
- <Column id="zipcd12" type="STRING" size="256"/>
- <Column id="zipcdseq1" type="STRING" size="256"/>
- <Column id="addr1" type="STRING" size="256"/>
- <Column id="detladdr1" type="STRING" size="256"/>
- <Column id="zipcd21" type="STRING" size="256"/>
- <Column id="zipcd22" type="STRING" size="256"/>
- <Column id="zipcdseq2" type="STRING" size="256"/>
- <Column id="addr2" type="STRING" size="256"/>
- <Column id="detladdr2" type="STRING" size="256"/>
- <Column id="zipcd31" type="STRING" size="256"/>
- <Column id="zipcd32" type="STRING" size="256"/>
- <Column id="zipcdseq3" type="STRING" size="256"/>
- <Column id="addr3" type="STRING" size="256"/>
- <Column id="detladdr3" type="STRING" size="256"/>
- <Column id="psptno" type="STRING" size="256"/>
- <Column id="brthareacnts" type="STRING" size="256"/>
- <Column id="pidcretfg" type="STRING" size="256"/>
- <Column id="engnm" type="STRING" size="256"/>
- <Column id="mpphon" type="STRING" size="256"/>
- <Column id="forgneryn" type="STRING" size="256"/>
- <Column id="healexamdetlnm" type="STRING" size="256"/>
- <Column id="builno1" type="STRING" size="256"/>
- <Column id="builno2" type="STRING" size="256"/>
- <Column id="builno3" type="STRING" size="256"/>
- <Column id="pat_rowid" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="pid"/>
- <Col id="hngnm"/>
- <Col id="rgstno1"/>
- <Col id="rgstno2"/>
- <Col id="healexamdd"/>
- <Col id="sex"/>
- <Col id="age"/>
- <Col id="telno"/>
- <Col id="emailid"/>
- <Col id="emailtype"/>
- <Col id="healexampid"/>
- <Col id="emailkind"/>
- <Col id="zipcd11"/>
- <Col id="zipcd12"/>
- <Col id="zipcdseq1"/>
- <Col id="addr1"/>
- <Col id="detladdr1"/>
- <Col id="zipcd21"/>
- <Col id="zipcd22"/>
- <Col id="zipcdseq2"/>
- <Col id="addr2"/>
- <Col id="detladdr2"/>
- <Col id="zipcd31"/>
- <Col id="zipcd32"/>
- <Col id="zipcdseq3"/>
- <Col id="addr3"/>
- <Col id="detladdr3"/>
- <Col id="psptno"/>
- <Col id="brthareacnts"/>
- <Col id="pidcretfg"/>
- <Col id="engnm"/>
- <Col id="mpphon"/>
- <Col id="forgneryn"/>
- <Col id="healexamdetlnm"/>
- <Col id="builno1"/>
- <Col id="builno2"/>
- <Col id="builno3"/>
- <Col id="pat_rowid"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_target" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="srchcond" type="STRING" size="256"/>
- <Column id="srchpnm" type="STRING" size="256"/>
- <Column id="srchpid" type="STRING" size="256"/>
- <Column id="setflag" type="STRING" size="256"/>
- <Column id="desxpath" type="STRING" size="256"/>
- <Column id="setyn" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="srchcond" type="STRING" size="256"/>
- <Column id="srchpid" type="STRING" size="256"/>
- <Column id="srchpnm" type="STRING" size="256"/>
- <Column id="srchrgstno1" type="STRING" size="256"/>
- <Column id="srchrgstno2" type="STRING" size="256"/>
- <Column id="srchinstcd" type="STRING" size="256"/>
- <Column id="srchengnm" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="srchcond">pid</Col>
- <Col id="srchpid"/>
- <Col id="srchpnm"/>
- <Col id="srchrgstno1"/>
- <Col id="srchrgstno2"/>
- <Col id="srchinstcd"/>
- <Col id="srchengnm"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_hidden_patinfo_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep"/>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="group3.group2.cmb_cond" propid="value" datasetid="ds_send" columnid="srchcond"/>
- <BindItem id="item1" compid="group3.group2.ipt_pid" propid="value" datasetid="ds_send" columnid="srchpid"/>
- <BindItem id="item2" compid="group3.group2.ipt_rgstno1" propid="value" datasetid="ds_send" columnid="srchrgstno1"/>
- <BindItem id="item3" compid="group3.group2.ipt_rgstno2" propid="value" datasetid="ds_send" columnid="srchrgstno2"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2017-06-19
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2017-06-19 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- //=======================================================================================
- // Lib Include
- //---------------------------------------------------------------------------------------
- include "com_commonxp::comm_main.xjs";
- //include "ast_healexamxp::healexam.xjs";
- //=======================================================================================
- // Global Form Variable
- //---------------------------------------------------------------------------------------
- var arErrorCode = new HashArray();
- //=======================================================================================
- // Function
- //---------------------------------------------------------------------------------------
- function fInit(){
- ds_main_patinfo_item.clearData();
- }
- /**========================================================================================================================
- ** 환자리스트 조회
- *========================================================================================================================*/
- function fGetPatList(bInit){
- if( bInit == true ) {
- fInit();
- }
-
- var vCond = ds_send.getColumn(0, "srchcond");
- if( utlf_isNull(vCond) ) {
- vCond = "pid";
- }
- /**
- * 환자명으로 조회시 두자이상 입력 체크
- */
- var vPatuser = opener.frmf_getParameter("SPAHA00400_PARAM14");
- var vPnm = utlf_transNullToEmpty(ds_send.getColumn(0, "srchpid"));
- if(vCond == "pnm"){
- if(vPnm.length < 2){
- sysf_messageBox("환자성명을 두자이상 입력하세요!", "E999");
- return;
- }
- }else if(vCond == "rgstno"){
- var vRgstno1 = ds_send.getColumn(0, "srchrgstno1");
- var vRgstno2 = ds_send.getColumn(0, "srchrgstno2");
- if(vPatuser == "Y" || vPatuser == "E") {
- if(vRgstno1.length != 6 || vRgstno2.length != 7) {
- sysf_messageBox("주민번호 전체를 정확히 입력하세요!", "E999");
- return;
- }
- if(vPnm.length < 2){
- sysf_messageBox("환자성명을 두자이상 입력하세요!", "E999");
- return;
- }
- } else {
- //vPnm = ds_send.getColumn(0, "srchrgstno1");
- if(vRgstno1.length < 1){
- sysf_messageBox("주민번호를 입력하세요!", "E999");
- return;
- }
- }
- }else if(vCond == "engnm"){
- if(vPnm.length < 2){
- sysf_messageBox("영문이름을 두자이상 입력하세요!", "E999");
- return;
- }
- }else{
- if(vPnm.length < 1){
- sysf_messageBox("등록번호를 입력하세요!", "E999");
- return;
- }
- }
- /**
- * 이외에는...null일경우 조회되지 않도록
- */
- ds_send.setColumn( 0, "srchcond" , vCond);
- ds_send.setColumn( 0, "srchpnm" , ds_send.getColumn(0, "srchpid") );
- ds_send.setColumn( 0, "srchengnm" , ds_send.getColumn(0, "srchpid") );
- ds_send.setColumn( 0, "srchinstcd" , sysf_getUserInfo("dutplceinstcd"));
- if(vPatuser == "E") {
- dsf_createDs("ds_send_temp");
- dsf_makeValue(ds_send_temp, "srchcond", "string", "4");
- dsf_makeValue(ds_send_temp, "rrgstno1", "string", ds_send.getColumn(0, "srchrgstno1"));
- dsf_makeValue(ds_send_temp, "rrgstno2", "string", ds_send.getColumn(0, "srchrgstno2"));
- dsf_makeValue(ds_send_temp, "hngnm", "string", ds_send.getColumn(0, "srchpnm"));
- dsf_makeValue(ds_send_temp, "instcd", "string", ds_send.getColumn(0, "instcd"));
-
- var oParam = {};
- oParam.id = "TRPMC02500";
- oParam.service = "patinfomngtapp.PatBaseInfo";
- oParam.method = "reqGetPatInfo";
- oParam.inds = "req=ds_send_temp";
- oParam.outds = "ds_hidden_patinfo_item=patinfolist";
- oParam.async = false;
- //oParam.callback = "cf_TRAHA00101";
-
- tranf_submit(oParam);
- ds_hidden_patinfo_item.updateColID("rrgstno1","rgstno1");
- ds_hidden_patinfo_item.updateColID("rrgstno2","rgstno2");
-
- if(ds_hidden_patinfo_item.rowcount > 0){
- ds_main_patinfo_item.copyData(ds_hidden_patinfo_item);
- }
- } else {
- var oParam = {};
- oParam.id = "TRAHA00101";
- oParam.service = "healexambaseapp.ComCode";
- oParam.method = "reqGetPatInfo";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_hidden_patinfo_item=item";
- oParam.async = false;
- oParam.callback = "cf_TRAHA00101";
- tranf_submit(oParam);
- if(ds_hidden_patinfo_item.rowcount > 0){
- ds_main_patinfo_item.copyData(ds_hidden_patinfo_item);
- if(vPatuser == "Y") {
- ds_main_patinfo_item.filter("healexamdd == "+utlf_getCurrentDate());
- }
- }
- }
- }
- function cf_TRAHA00101(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
- ds_hidden_patinfo_item.updateColID("rrgstno1","rgstno1");
- ds_hidden_patinfo_item.updateColID("rrgstno2","rgstno2");
- if( !utlf_isNull(ds_hidden_patinfo_item.getColumnInfo("insukind")) ){
- ds_hidden_patinfo_item.updateColID("insukind","patm_insukind");
- }else{
- ds_hidden_patinfo_item.addColumn("patm_insukind", "string");
- }
- if( !utlf_isNull(ds_hidden_patinfo_item.getColumnInfo("instcd")) ){
- ds_hidden_patinfo_item.updateColID("instcd","patm_insucd");
- }else{
- ds_hidden_patinfo_item.addColumn("patm_insucd", "string");
- }
- ds_hidden_patinfo_item.updateColID("insuid","patm_insuid");
- dsf_setTypeFormat(ds_hidden_patinfo_item, "healexampid:INT^zipcdseq1:INT^zipcdseq2:INT^zipcdseq3:INT");
- }
-
- /**=====================================================================================
- * SMAHA00400_PARAM1 : 현재화면ID
- * SPAHA00400_PARAM2 : 검색조건 pnm/pid/rgstno
- * SPAHA00400_PARAM3 : 검색어
- * SPAHA00400_PARAM4 : nodeset전체 copy여부 (N일경우 원무등록번호와 환자 한글명만 copy)
- * SPAHA00400_PARAM5 : nodeset전체 copy여부 Y 일경우 대상노드
- * SPAHA00400_PARAM6 : nodeset전체 copy여부 N 일경우 원무등록번호 대상노드
- * SPAHA00400_PARAM7 : nodeset전체 copy여부 N 일경우 환자 한글명 대상노드
- * =====================================================================================
- */
- function fSetPatinfo(){
- var idx = ds_main_patinfo_item.rowposition;
- if(idx < 0){
- return;
- }
-
- if(frmf_checkOpener()){
- //var vFg = ds_target.getColumn(0, "setflag");
- var vOpener = opener.frmf_getParameter("SPAHA00400_PARAM1");
- var bSetYN = opener.frmf_getParameter("SPAHA00400_PARAM4");
- var vDestXPath = opener.frmf_getParameter("SPAHA00400_PARAM5");
- var vDestPid = opener.frmf_getParameter("SPAHA00400_PARAM6");
- var vDestPnm = opener.frmf_getParameter("SPAHA00400_PARAM7");
- var vHometel = opener.frmf_getParameter("SPAHA00400_PARAM10");
- var vMpphontel = opener.frmf_getParameter("SPAHA00400_PARAM11");
- var vSex = opener.frmf_getParameter("SPAHA00400_PARAM12");
- var vAge = opener.frmf_getParameter("SPAHA00400_PARAM13");
- //종합건진 접수화면
- if(bSetYN == "N"){
- if(utlf_isNull(vDestPid)){
- opener.objects[vDestXPath].setColumn(0,"pid" , ds_main_patinfo_item.getColumn(idx, "pid"));
- opener.objects[vDestXPath].setColumn(0,"hngnm" , ds_main_patinfo_item.getColumn(idx, "hngnm"));
- }else{
- opener.objects[vDestXPath].setColumn(0, vDestPid, ds_main_patinfo_item.getColumn(idx, "pid"));
- opener.objects[vDestXPath].setColumn(0, vDestPnm, ds_main_patinfo_item.getColumn(idx, "hngnm"));
- if(!utlf_isNull(vHometel)){
- opener.objects[vDestXPath].setColumn(0, vHometel, ds_main_patinfo_item.getColumn(idx, "telno"));
- }
- if(!utlf_isNull(vMpphontel)){
- opener.objects[vDestXPath].setColumn(0, vMpphontel, ds_main_patinfo_item.getColumn(idx, "mpphon"));
- }
- if(!utlf_isNull(vSex)){
- opener.objects[vDestXPath].setColumn(0, vSex, ds_main_patinfo_item.getColumn(idx, "sex"));
- }
- if(!utlf_isNull(vAge)){
- opener.objects[vDestXPath].setColumn(0, vAge, ds_main_patinfo_item.getColumn(idx, "age"));
- }
- }
- }else{
- dsf_makeValue(ds_main_patinfo_item, "rrgstno1", "string", ds_main_patinfo_item.getColumn(idx, "rgstno1"));
- dsf_makeValue(ds_main_patinfo_item, "rrgstno2", "string", ds_main_patinfo_item.getColumn(idx, "rgstno2"));
- dsf_copyColInfo(opener.objects[vDestXPath], ds_main_patinfo_item);
- opener.objects[vDestXPath].copyRow(opener.objects[vDestXPath].addRow(), ds_main_patinfo_item, idx);
- }
- opener.ds_temp.setColumn( 0, "okflag", "ok");
- this.close();
- }
- }
- /****************************************************************************************
- * Argument : N/A
- * Description : 초기화
- ****************************************************************************************/
-
- //=======================================================================================
- // Event
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Components : Form
- * Description : 화면 처음 초기화시 폼초기화
- ****************************************************************************************/
- function SPAHA00400_onload(obj:Form, e:LoadEventInfo) {
- frmf_initForm(obj);
- //grdf_initGrid(grd_XXX);
- grdf_setGridSort(group3.grd_patlst);
- //grdf_setRowTypeIcon(grd_XXX, 0_컬럼위치값);
- fInit();
- /**=====================================================================================
- * SMAHA00400_PARAM1 : 현재화면ID
- * SPAHA00400_PARAM2 : 검색조건 pnm/pid/rgstno
- * SPAHA00400_PARAM3 : 검색어
- * SPAHA00400_PARAM4 : nodeset전체 copy여부 (N일경우 원무등록번호와 환자 한글명만 copy)
- * SPAHA00400_PARAM5 : nodeset전체 copy여부 Y 일경우 대상노드
- * SPAHA00400_PARAM6 : nodeset전체 copy여부 N 일경우 원무등록번호 대상노드
- * SPAHA00400_PARAM7 : nodeset전체 copy여부 N 일경우 환자 한글명 대상노드
- * SPAHA00400_PARAM8 : 검색어 주민번호1
- * SPAHA00400_PARAM9 : 검색어 주민번호2
- * =====================================================================================
- */
- if( frmf_checkOpener() ){
- if(utlf_isNull(opener.objects["ds_temp"])) opener.dsf_createDs("ds_temp");
- dsf_makeValue( opener.ds_temp, "okflag", "string", "" );
-
- ds_send.setColumn( 0, "srchcond" , opener.frmf_getParameter("SPAHA00400_PARAM2"));
- ds_send.setColumn( 0, "srchpid" , opener.frmf_getParameter("SPAHA00400_PARAM3"));
-
- group3.group2.cmb_cond.enable = false;
- if( ds_send.getColumn(0, "srchcond") == "rgstno" ){
- group3.group2.cmb_cond.index = 0;
- group3.group2.ipt_rgstno1.value = opener.frmf_getParameter("SPAHA00400_PARAM8") ;
- group3.group2.ipt_rgstno2.value = opener.frmf_getParameter("SPAHA00400_PARAM9") ;
- } else if( ds_send.getColumn(0, "srchcond") == "pid" ){
- group3.group2.cmb_cond.index = 1;
- } else if( ds_send.getColumn(0, "srchcond") == "pnm" ){
- group3.group2.cmb_cond.index = 2;
- }
- group3.group2.cmb_cond.enable = true;
-
- var vPatuser = opener.frmf_getParameter("SPAHA00400_PARAM14");
- if(vPatuser == "Y" || vPatuser == "E") {
- ds_send.setColumn(0, "srchpid", "");
- group3.group2.cmb_cond.index = 5;
- group3.group2.cmb_cond.enable = false;
- // group3.group2.ipt_pid.visible = false;
- // var wid1 = group3.group2.ipt_rgstno1.position.width;
- // var wid2 = group3.group2.ipt_rgstno2.position.width;
- // group3.group2.ipt_rgstno1.position.left = group3.group2.ipt_pid.position.left;
- // group3.group2.ipt_rgstno1.position.width = wid1;
- // group3.group2.ipt_rgstno2.position.left = group3.group2.ipt_rgstno1.position.right + 3;
- // group3.group2.ipt_rgstno2.position.width = wid2;
- // group3.group2.ipt_rgstno1.setFocus();
- }
- if(utlf_isNull(ds_send.getColumn(0, "srchpid")))
- {
- return;
- }
-
- fGetPatList(false);
- }
- }
- /****************************************************************************************
- * Components : Button
- * Description : 조회
- ****************************************************************************************/
- function group3_group2_btn_search_onclick(obj:Button, e:ClickEventInfo) {
- fGetPatList(true);
- }
- /****************************************************************************************
- * Components : Edit
- * Description : 조회조건 입력후 엔터
- ****************************************************************************************/
- function group3_group2_ipt_pid_onkeyup(obj:Edit, e:KeyEventInfo) {
- if(e.keycode == 13) {
- obj.updateToDataset();
- group3.group2.btn_search.click();
- }
- }
- function group3_group2_ipt_rgstno2_onkeyup(obj:MaskEdit, e:KeyEventInfo) {
- if(e.keycode == 13) {
- obj.updateToDataset();
- group3.group2.btn_search.click();
- }
- }
- /****************************************************************************************
- * Components : Grid
- * Description : 리스트 선택
- ****************************************************************************************/
- function group3_grd_patlst_oncelldblclick(obj:Grid, e:GridClickEventInfo) {
- if(e.row > -1){
- //2016_01_19 이정택 수정(마스킹 처리 후 환자번호가 확인됐을시 주민번호가 보이도록 수정)
- //2016_03_21 환자번호가 없는 가예약 환자일 경우는 rowid로 조회되도록 수정
- if(ds_main_patinfo_item.getColumn(e.row, "pid")=="0"){
- dsf_makeValue( ds_send, "srchcond", "string", "rowid");
- dsf_makeValue( ds_send, "srchrowid", "string", ds_main_patinfo_item.getColumn(e.row, "pat_rowid"));
- }else{
- dsf_makeValue( ds_send, "srchcond", "string", "pid");
- dsf_makeValue( ds_send, "srchpid", "string", ds_main_patinfo_item.getColumn(e.row, "pid"));
- }
- if(opener.frmf_getParameter("SPAHA00400_PARAM1") != "SMAHR02406") {
- fGetPatList();
- ds_main_patinfo_item.rowposition = 0;
- }
-
- //2016_01_19 이정택 수정
- fSetPatinfo();
- }
- }
- /****************************************************************************************
- * Components : Button
- * Description : 확인
- ****************************************************************************************/
- function group1_btn_confirm_onclick(obj:Button, e:ClickEventInfo) {
- if(ds_main_patinfo_item.rowposition > -1) {
- //2016_01_19 이정택 수정(마스킹 처리 후 환자번호가 확인됐을시 주민번호가 보이도록 수정)
- dsf_makeValue( ds_send, "srchcond", "string", "pid");
- dsf_makeValue( ds_send, "srchpid", "string", ds_main_patinfo_item.getColumn(ds_main_patinfo_item.rowposition, "pid"));
-
- fGetPatList();
- ds_main_patinfo_item.rowposition = 0;
- //2016_01_19 이정택 수정
- fSetPatinfo();
- }
- this.close();
- }
- /****************************************************************************************
- * Components : Button
- * Description : 닫기
- ****************************************************************************************/
- function group1_btn_cancel_onclick(obj:Button, e:ClickEventInfo) {
- if( frmf_checkOpener() ){
- opener.ds_temp.setColumn( 0, "okflag", "") ;
- }
-
- this.close();
- }
- /****************************************************************************************
- * Components : Combo
- * Description : 검색조건 변경
- ****************************************************************************************/
- function group3_group2_cmb_cond_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
- var vCond = e.postvalue;
- // ds_send.setColumn(0,"srchpid","");
- // ds_send.setColumn(0,"srchpnm","");
- // ds_send.setColumn(0,"srchengnm","");
- // ds_send.setColumn(0,"srchrgstno1","");
- // ds_send.setColumn(0,"srchrgstno2","");
-
- if(vCond == "rgstno" && e.postindex == 0){
- group3.group2.ipt_rgstno1.setFocus();
- } else if(vCond != "rowid"){
- group3.group2.ipt_pid.setFocus();
- }
- }
- function group3_group2_ipt_rgstno1_onkeyup(obj:MaskEdit, e:KeyEventInfo)
- {
- if( obj.text.length == 6 ){
- group3.group2.ipt_rgstno2.setFocus();
- }
- }
- ]]></Script>
- </Form>
- </FDL>
|