123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPARH00200" position="absolute 0 0 876 497" titletext="병원명조회" onload="SPARH00200_onload" oninit="SPARH00200_oninit">
- <Layouts>
- <Layout>
- <Static id="caption2" text="병원명조회" class="tit_1" position="absolute 0 0 158 23"/>
- <Div id="group1" taborder="1" class="div_SA" position="absolute 0 23 860 86">
- <Layouts>
- <Layout>
- <Shape id="line8" linetype="vertical" class="line_4" position="absolute 782 5 788 58"/>
- <Static id="caption13" text="병원구분 :" class="search_name" position="absolute 535 10 626 27"/>
- <Static id="caption1" text="지역 :" class="search_name" position="absolute 20 35 111 52"/>
- <Static id="caption4" text="의뢰의사 :" class="search_name" position="absolute 340 10 418 27"/>
- <Static id="caption3" text="의뢰병원명 :" class="search_name" position="absolute 20 10 119 27"/>
- <Static id="caption5" text="면허번호 :" class="search_name" position="absolute 340 35 418 52"/>
- <Edit id="ipt_coophospnm" taborder="1" class="input_search" position="absolute 117 9 319 28" autoselect="true" onkeydown="group1_ipt_coophospnm_onkeydown"/>
- <Edit id="ipt_drnm" taborder="2" class="input_search" position="absolute 419 9 519 28" autoselect="true" onkeydown="group1_ipt_drnm_onkeydown"/>
- <Combo id="cmb_hospgrade" taborder="3" innerdataset="@ds_init_hospgrade_A0429" codecolumn="cdid" datacolumn="cdnm" class="combo_search" position="absolute 621 9 761 28" onitemchanged="group1_cmb_hospgrade_onitemchanged"/>
- <Combo id="cmb_areacd" taborder="4" innerdataset="ds_init_areacd" codecolumn="sidocd" datacolumn="sidonm" class="combo_search" position="absolute 117 34 193 53" onitemchanged="group1_cmb_areacd_onitemchanged"/>
- <Edit id="ipt_licnsno" taborder="5" class="input_search" position="absolute 419 34 519 53" autoselect="true" onkeydown="group1_ipt_licnsno_onkeydown"/>
- <CheckBox id="chk_clsmatyn" taborder="6" text="동문" position="absolute 540 35 595 55" onchanged="group1_chk_clsmatyn_onchanged" onclick="group1_chk_clsmatyn_onclick"/>
- <Button id="btn_search" taborder="7" text="조회" class="btn1" position="absolute 795 20 851 42" onclick="group1_btn_search_onclick"/>
- <Combo id="cmb_areacddetl" taborder="8" innerdataset="@ds_cmb_areadetl" codecolumn="sidocddetl" datacolumn="sidonmdetl" class="combo_search" position="absolute 194 34 318 53" enable="false"/>
- </Layout>
- </Layouts>
- </Div>
- <Shape id="line1" class="line_1" position="absolute 0 88 860 94" style="strokepen:3 solid #33bbbbff;"/>
- <Grid id="grd_list" taborder="2" binddataset="ds_main_list_req_hosp_list" useinputpanel="false" cellsizingtype="both" cellsizebandtype="allband" autosizingtype="row" position="absolute 0 93 860 469" autoenter="select" oncelldblclick="grd_list_oncelldblclick" onvscroll="grd_list_onvscroll">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="26" band="left"/>
- <Column size="150" band="left"/>
- <Column size="67" band="left"/>
- <Column size="100" band="left"/>
- <Column size="60"/>
- <Column size="60"/>
- <Column size="230"/>
- <Column size="180"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="150"/>
- <Column size="80"/>
- <Column size="80"/>
- <Column size="50"/>
- <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"/>
- <Column size="100"/>
- <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" text="의사명"/>
- <Cell col="4" colspan="2" text="지역" taborder="undefined"/>
- <Cell col="6" colspan="2" text="주소" taborder="undefined"/>
- <Cell col="8" text="전화번호"/>
- <Cell col="9" text="FAX번호"/>
- <Cell col="10" text="E-mail"/>
- <Cell col="11" text="면허번호"/>
- <Cell col="12" text="병원구분"/>
- <Cell col="13" text="동문"/>
- <Cell col="14" text="caption1"/>
- <Cell col="15" text="caption2"/>
- <Cell col="16" text="caption3"/>
- <Cell col="17" text="caption4"/>
- <Cell col="18" text="caption5"/>
- <Cell col="19" text="caption6"/>
- <Cell col="20" text="caption7"/>
- <Cell col="21" text="caption8"/>
- <Cell col="22" text="caption9"/>
- <Cell col="23" text="caption10"/>
- <Cell col="24" text="caption11"/>
- <Cell col="25" text="caption12"/>
- <Cell col="26" text="caption13"/>
- <Cell col="27" text="caption14"/>
- <Cell col="28" text="caption15"/>
- <Cell col="29" text="caption16"/>
- <Cell col="30" text="caption17"/>
- <Cell col="31" text="caption18"/>
- <Cell col="32" text="caption19"/>
- <Cell col="33" text="caption20"/>
- <Cell col="34" text="caption21"/>
- <Cell col="35" text="caption22"/>
- <Cell col="36" text="caption23"/>
- <Cell col="37" text="caption24"/>
- <Cell col="38" text="caption25"/>
- <Cell col="39" text="caption26"/>
- <Cell col="40" text="caption27"/>
- <Cell col="41" text="caption28"/>
- <Cell col="42" text="caption29"/>
- <Cell col="43" text="caption30"/>
- <Cell col="44" text="caption31"/>
- <Cell col="45" text="caption32"/>
- <Cell col="46" text="caption33"/>
- <Cell col="47" text="caption34"/>
- <Cell col="48" text="caption35"/>
- <Cell col="49" text="caption36"/>
- <Cell col="50" text="caption37"/>
- <Cell col="51" text="caption38"/>
- <Cell col="52" text="caption39"/>
- <Cell col="53" text="caption40"/>
- <Cell col="54" text="caption41"/>
- <Cell col="55" text="caption42"/>
- <Cell col="56" text="caption43"/>
- <Cell col="57" text="caption44"/>
- <Cell col="58" text="caption45"/>
- <Cell col="59" text="caption46"/>
- <Cell col="60" text="caption47"/>
- <Cell col="61" text="caption48"/>
- <Cell col="62" text="caption49"/>
- <Cell col="63" text="replflag"/>
- <Cell col="64" text="repltype"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" expr="currow+1"/>
- <Cell col="1" style="align:left middle;padding:5 3 5 3;" text="bind:coophospnm" wordwrap="char"/>
- <Cell col="2" text="bind:corpno"/>
- <Cell col="3" style="align:left middle;padding:5 3 5 3;" text="bind:drnm" combodataset="ds_init_areacd1_a0426" combocodecol="cdid" combodatacol="cdnm"/>
- <Cell col="4" displaytype="combo" style="align:center middle;padding:5 3 5 3;" text="bind:sidocd" combodataset="ds_init_areacd" combocodecol="sidocd" combodatacol="sidonm" enable="false"/>
- <Cell col="5" displaytype="combo" style="align:center middle;" text="bind:sidocddetl" wordwrap="word" combodataset="ds_init_areacddelt" combocodecol="sidocddetl" combodatacol="sidonmdetl"/>
- <Cell col="6" style="align:left middle;padding:5 3 5 3;" text="bind:detladdr1" wordwrap="char"/>
- <Cell col="7" style="align:left middle;padding:5 3 5 3;" text="bind:detladdr2" wordwrap="char"/>
- <Cell col="8" style="align:left middle;padding:5 3 5 3;" text="bind:telno"/>
- <Cell col="9" style="align:left middle;padding:5 3 5 3;" text="bind:faxno"/>
- <Cell col="10" style="align:left middle;padding:5 3 5 3;" text="bind:emailnm"/>
- <Cell col="11" style="align:left middle;padding:5 3 5 3;" text="bind:licnsno"/>
- <Cell col="12" displaytype="combo" style="align:left middle;padding:5 3 5 3;" text="bind:hospgrade" combodataset="ds_init_hospgrade_a0429" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
- <Cell col="13" displaytype="checkbox" text="bind:clsmatyn" expr="expr:clsmatyn == 'Y' ? 1 : 0" enable="false"/>
- <Cell col="14" text="bind:coophospcd"/>
- <Cell col="15" text="bind:coopdrcd"/>
- <Cell col="16" text="bind:fromdd"/>
- <Cell col="17" text="bind:coopconcltdd"/>
- <Cell col="18" text="bind:cooptodd"/>
- <Cell col="19" text="bind:opnofhospdd"/>
- <Cell col="20" text="bind:dirofhospnm"/>
- <Cell col="21" text="bind:bedcnt"/>
- <Cell col="22" text="bind:rgstdd"/>
- <Cell col="23" text="bind:perchgrnm"/>
- <Cell col="24" text="bind:perchgrjobpos"/>
- <Cell col="25" text="bind:perchgrtel"/>
- <Cell col="26" text="bind:perchgrmpphone"/>
- <Cell col="27" text="bind:zipcd1"/>
- <Cell col="28" text="bind:zipcd2"/>
- <Cell col="29" text="bind:zipcdseq"/>
- <Cell col="30" text="bind:homepgnm"/>
- <Cell col="31" text="bind:hospemailid"/>
- <Cell col="32" text="bind:hospemailaddr"/>
- <Cell col="33" text="bind:corpno"/>
- <Cell col="34" text="bind:rgstflag"/>
- <Cell col="35" text="bind:hosprem"/>
- <Cell col="36" text="bind:todd"/>
- <Cell col="37" text="bind:rrgstno1"/>
- <Cell col="38" text="bind:rrgstno2"/>
- <Cell col="39" text="bind:tradehosp"/>
- <Cell col="40" text="bind:gradsch"/>
- <Cell col="41" text="bind:drflag"/>
- <Cell col="42" text="bind:orddeptcd"/>
- <Cell col="43" text="bind:drcls"/>
- <Cell col="44" text="bind:medispclno"/>
- <Cell col="45" text="bind:drclsmatyn"/>
- <Cell col="46" text="bind:gradyear"/>
- <Cell col="47" text="bind:replmethod"/>
- <Cell col="48" text="bind:drtelno"/>
- <Cell col="49" text="bind:drmpphontel"/>
- <Cell col="50" text="bind:dremailid"/>
- <Cell col="51" text="bind:dremailaddr"/>
- <Cell col="52" text="bind:detlfrmrmert"/>
- <Cell col="53" text="bind:relign"/>
- <Cell col="54" text="bind:hoby"/>
- <Cell col="55" text="bind:btype"/>
- <Cell col="56" text="bind:epid"/>
- <Cell col="57" text="bind:localrgstdd"/>
- <Cell col="58" text="bind:eprgstdd"/>
- <Cell col="59" text="bind:aprvdd"/>
- <Cell col="60" text="bind:secssdd"/>
- <Cell col="61" text="bind:secssresn"/>
- <Cell col="62" text="bind:drrem"/>
- <Cell col="63" text="bind:replflag"/>
- <Cell col="64" text="bind:repltype"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button id="btn_smarh00100" taborder="3" text="병의원의사관리" class="btn3" position="absolute 0 473 116 495" onclick="btn_smarh00100_onclick"/>
- <Shape id="line32" class="line_6" position="absolute 0 469 518 475"/>
- <Button id="btn_confirm" taborder="4" text="확인" class="btn4" position="absolute 745 473 801 495" onclick="btn_confirm_onclick"/>
- <Button id="btn_cancel" taborder="5" text="취소" class="btn4" position="absolute 804 473 860 495" onclick="btn_cancel_onclick"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_send_search" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <coophospnm/>
- <drnm/>
- <hospgrade/>
- <areacd/>
- <licnsno/>
- <clsmatyn/>
- <offset>0</offset>
- <pagesize>1000</pagesize>
- <ColumnInfo>
- <Column id="coophospnm" type="STRING" size="256"/>
- <Column id="drnm" type="STRING" size="256"/>
- <Column id="hospgrade" type="STRING" size="256"/>
- <Column id="areacd" type="STRING" size="256"/>
- <Column id="licnsno" type="STRING" size="256"/>
- <Column id="clsmatyn" type="STRING" size="256"/>
- <Column id="offset" type="STRING" size="256"/>
- <Column id="pagesize" type="STRING" size="256"/>
- <Column id="sidocddetl" type="STRING" size="256"/>
- <Column id="sidocd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="coophospnm"/>
- <Col id="drnm"/>
- <Col id="hospgrade"/>
- <Col id="areacd"/>
- <Col id="licnsno"/>
- <Col id="clsmatyn"/>
- <Col id="offset">0</Col>
- <Col id="pagesize">1000</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_list_req_hosp_list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_init_areacd_A0014A0426" 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>
- </Dataset>
- <Dataset id="ds_init_hardcd" 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>
- </Dataset>
- <Dataset id="ds_init_hospgradeall_A0429" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_init_hospgrade_A0429" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_init_areacddelt" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_init_areacd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_cmb_areadetl" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="group1.ipt_coophospnm" propid="value" datasetid="ds_send_search" columnid="coophospnm"/>
- <BindItem id="item1" compid="group1.ipt_drnm" propid="value" datasetid="ds_send_search" columnid="drnm"/>
- <BindItem id="item2" compid="group1.cmb_hospgrade" propid="value" datasetid="ds_send_search" columnid="hospgrade"/>
- <BindItem id="item3" compid="group1.cmb_areacd" propid="value" datasetid="ds_send_search" columnid="sidocd"/>
- <BindItem id="item4" compid="group1.ipt_licnsno" propid="value" datasetid="ds_send_search" columnid="licnsno"/>
- <BindItem id="item5" compid="group1.chk_clsmatyn" propid="value" datasetid="ds_send_search" columnid="clsmatyn"/>
- <BindItem id="item6" compid="group1.cmb_areacddetl" propid="value" datasetid="ds_send_search" columnid="sidocddetl"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2015-05-06
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2015-05-06 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- include "com_commonxp::comm_main.xjs";
- include "ast_soclworkxp::AWMCommon.xjs";
- include "emr_prcpmngtxp::MMO001.xjs";
- var arErrorCode = new HashArray();
- function SPARH00200_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj); // 폼 초기화
- }
- function SPARH00200_onload(obj:Form, e:LoadEventInfo)
- {
- grdf_initGrid(grd_list);
- fInit();
- }
- // 초기값
- function fInit()
- {
- // hard코드 가져오기
- lf_getHardCDList("N", 9915, null, ds_init_hardcd);
-
- // 공통코드 목록 가져오기
- var arrParam = [{dsNm: "ds_init_hospgrade_A0429", cdGrpId: "A0429"}
- ,{dsNm: "ds_init_hospgradeall_A0429", cdGrpId: "A0429"}];
-
- appf_getCodeList(arrParam, true);
-
- // 유형코드
- appf_getKindCodeList([{bizId:"A0014", cdGrpId:"A0426", dsNm:"ds_init_areacd_A0014A0426", sortField:"dispseq", sortMehotd:""}
- ,{bizId:"A0014", cdGrpId:"A0426", dsNm:"ds_init_areacd1_A0014A0426", sortField:"dispseq", sortMehotd:""}]);
-
- //진료협력에서 관리하는 전체 지역코드 조회
- var oParam = {};
- oParam.id = "TXARH00101";
- oParam.service = "healcarecoopapp.CoopHospMngt";
- oParam.method = "reqGetAreaList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_init_areacddelt=hosparea";
- oParam.async = false;
- tranf_submit(oParam);
-
- //진료협력에서 관리하는 시/도 지역코드 조회
- var oParam = {};
- oParam.id = "TXARH00101";
- oParam.service = "healcarecoopapp.CoopHospMngt";
- oParam.method = "reqGetAreaSDList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_init_areacd=hosparea";
- oParam.async = false;
- tranf_submit(oParam);
-
- frmf_addComboItem("group1.cmb_areacd", "- 전 체 -", "-", "above");
- frmf_addComboItem("group1.cmb_hospgrade", "- 전 체 -", "", "above");
-
- group1.cmb_areacd.index = 0;
- group1.cmb_hospgrade.index = 0;
-
- ds_main_list_req_hosp_list.clearData();
- }
- function group1_ipt_coophospnm_onkeydown(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13)
- {
- obj.updateToDataset();
- group1.btn_search.click();
- }
- }
- function group1_ipt_drnm_onkeydown(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13)
- {
- obj.updateToDataset();
- group1.btn_search.click();
- }
- }
- function group1_cmb_hospgrade_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
- group1.btn_search.click();
- }
- function group1_cmb_areacd_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
- var areacd = obj.value;
-
- if(areacd != "-")
- {
- ds_init_areacddelt.filterstr = "sidocd == '"+areacd+"'";
- ds_cmb_areadetl.copyData(ds_init_areacddelt, true);
- ds_init_areacddelt.filterstr = "";
-
- group1.cmb_areacddetl.enable = true;
- frmf_addComboItem("group1.cmb_areacddetl", "- 전 체 -", "-", "above");
-
- group1.cmb_areacddetl.index = 0;
- group1.cmb_areacddetl.value = "-";
- }
- else
- {
- sidocddetl.clearData();
- group1.cmb_areacddetl.enable = false;
- }
-
-
- //group1.btn_search.click();
- }
- function group1_ipt_licnsno_onkeydown(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13)
- {
- obj.updateToDataset();
- group1.btn_search.click();
- }
- }
- function group1_chk_clsmatyn_onchanged(obj:CheckBox, e:CheckBoxChangeEventInfo)
- {
- group1.btn_search.click();
- }
- function group1_chk_clsmatyn_onclick(obj:CheckBox, e:ClickEventInfo)
- {
- if(obj.value == "Y")
- {}
- else
- {
- ds_send_search.setColumn(0, "clsmatyn", "");
- }
- }
- function group1_btn_search_onclick(obj:Button, e:ClickEventInfo)
- {
- if ( !fCheckDate() ) return; //필수 저장여부 체크
- fSearch();
- }
- function fCheckDate()
- {
- var coophospnm = ds_send_search.getColumn(0, "coophospnm");
- var drnm = ds_send_search.getColumn(0, "drnm");
- var hospgrade = ds_send_search.getColumn(0, "hospgrade");
- var sidocd = ds_send_search.getColumn(0, "sidocd");
- if (utlf_isNull(coophospnm) && utlf_isNull(drnm) && utlf_isNull(hospgrade) && utlf_isNull(sidocd))
- {
- sysf_messageBox("의뢰병원명, 의뢰의사, 병원구분, 지역 조건 중 하나의 조건을 ","C002");
- return false;
- }
-
- if (String(group1.ipt_coophospnm.value).length > 0 && String(group1.ipt_coophospnm.value).length < 2)
- {
- sysf_messageBox("의뢰병원명은 2글자 이상으로 해주십시요!","E999","");
- group1.ipt_coophospnm.setFocus();
- return false;
- }
- if (String(group1.ipt_drnm.value).length > 0 && String(group1.ipt_drnm.value).length < 2)
- {
- sysf_messageBox("의뢰의사명은 2글자 이상으로 해주십시요!","E999","");
- group1.ipt_drnm.setFocus();
- return false;
- }
- return true;
- }
- // 조회
- function fSearch()
- {
- ds_main_list_req_hosp_list.clearData();
- ds_send_search.setColumn(0, "offset", "0"); // grid의 header row는 제외
-
- dsf_setDefaultVal(ds_send_search, "sidocd:-,sidocddetl:-");
-
- var oParam = {};
- oParam.id = "TRARH00201";
- oParam.service = "healcarecoopapp.CoopHospMngt";
- oParam.method = "reqGetHospList";
- oParam.inds = "req=ds_send_search";
- oParam.outds = "ds_main_list_req_hosp_list=req_hosp_list";
- oParam.async = false;
- oParam.callback = "cf_TRARH00201";
- tranf_submit(oParam);
-
- if(arErrorCode.pop("TRARH00201") > -1)
- {
- if (ds_main_list_req_hosp_list.rowcount == 0)
- {
- sysf_messageBox("조회된 병원이 없습니다.", "I999");
- }
- }
- }
- function cf_TRARH00201(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- function grd_list_oncelldblclick(obj:Grid, e:GridClickEventInfo)
- {
- fConfirm();
- }
- function fConfirm()
- {
- if (ds_main_list_req_hosp_list.rowcount == 0) return;
- if (ds_main_list_req_hosp_list.rowposition < 0) return;
- if ( frmf_checkOpener() )
- {
- var row = ds_main_list_req_hosp_list.rowposition;
-
- if( row >= 0 )
- {
- var receiveref = eval("opener.ds_main_hospinfo_hospinfolist");
- receiveref.clearData();
- opener.dsf_makeValue(receiveref, "coophospnm", "string", ds_main_list_req_hosp_list.getColumn(row, "coophospnm"), 0);
- opener.dsf_makeValue(receiveref, "drnm", "string", ds_main_list_req_hosp_list.getColumn(row, "drnm"), 0);
- //opener.dsf_makeValue(receiveref, "areacd", "string", ds_main_list_req_hosp_list.getColumn(row, "areacd"), 0);
- opener.dsf_makeValue(receiveref, "detladdr1", "string", ds_main_list_req_hosp_list.getColumn(row, "detladdr1"), 0);
- opener.dsf_makeValue(receiveref, "detladdr2", "string", ds_main_list_req_hosp_list.getColumn(row, "detladdr2"), 0);
- opener.dsf_makeValue(receiveref, "telno", "string", ds_main_list_req_hosp_list.getColumn(row, "telno"), 0);
- opener.dsf_makeValue(receiveref, "faxno", "string", ds_main_list_req_hosp_list.getColumn(row, "faxno"), 0);
- opener.dsf_makeValue(receiveref, "emailnm", "string", ds_main_list_req_hosp_list.getColumn(row, "emailnm"), 0);
- opener.dsf_makeValue(receiveref, "licnsno", "string", ds_main_list_req_hosp_list.getColumn(row, "licnsno"), 0);
- opener.dsf_makeValue(receiveref, "hospgrade", "string", ds_main_list_req_hosp_list.getColumn(row, "hospgrade"), 0);
- opener.dsf_makeValue(receiveref, "clsmatyn", "string", ds_main_list_req_hosp_list.getColumn(row, "clsmatyn"), 0);
- opener.dsf_makeValue(receiveref, "coophospcd", "string", ds_main_list_req_hosp_list.getColumn(row, "coophospcd"), 0);
- opener.dsf_makeValue(receiveref, "coopdrcd", "string", ds_main_list_req_hosp_list.getColumn(row, "coopdrcd"), 0);
- opener.dsf_makeValue(receiveref, "fromdd", "string", ds_main_list_req_hosp_list.getColumn(row, "fromdd"), 0);
- opener.dsf_makeValue(receiveref, "coopconcltdd", "string", ds_main_list_req_hosp_list.getColumn(row, "coopconcltdd"), 0);
- opener.dsf_makeValue(receiveref, "cooptodd", "string", ds_main_list_req_hosp_list.getColumn(row, "cooptodd"), 0);
- opener.dsf_makeValue(receiveref, "opnofhospdd", "string", ds_main_list_req_hosp_list.getColumn(row, "opnofhospdd"), 0);
- opener.dsf_makeValue(receiveref, "dirofhospnm", "string", ds_main_list_req_hosp_list.getColumn(row, "dirofhospnm"), 0);
- opener.dsf_makeValue(receiveref, "bedcnt", "string", ds_main_list_req_hosp_list.getColumn(row, "bedcnt"), 0);
- opener.dsf_makeValue(receiveref, "rgstdd", "string", ds_main_list_req_hosp_list.getColumn(row, "rgstdd"), 0);
- opener.dsf_makeValue(receiveref, "perchgrnm", "string", ds_main_list_req_hosp_list.getColumn(row, "perchgrnm"), 0);
- opener.dsf_makeValue(receiveref, "perchgrjobpos", "string", ds_main_list_req_hosp_list.getColumn(row, "perchgrjobpos"), 0);
- opener.dsf_makeValue(receiveref, "perchgrtel", "string", ds_main_list_req_hosp_list.getColumn(row, "perchgrtel"), 0);
- opener.dsf_makeValue(receiveref, "perchgrmpphone", "string", ds_main_list_req_hosp_list.getColumn(row, "perchgrmpphone"), 0);
- opener.dsf_makeValue(receiveref, "zipcd1", "string", ds_main_list_req_hosp_list.getColumn(row, "zipcd1"), 0);
- opener.dsf_makeValue(receiveref, "zipcd2", "string", ds_main_list_req_hosp_list.getColumn(row, "zipcd2"), 0);
- opener.dsf_makeValue(receiveref, "zipcdseq", "string", ds_main_list_req_hosp_list.getColumn(row, "zipcdseq"), 0);
- opener.dsf_makeValue(receiveref, "homepgnm", "string", ds_main_list_req_hosp_list.getColumn(row, "homepgnm"), 0);
- opener.dsf_makeValue(receiveref, "hospemailid", "string", ds_main_list_req_hosp_list.getColumn(row, "hospemailid"), 0);
- opener.dsf_makeValue(receiveref, "hospemailaddr", "string", ds_main_list_req_hosp_list.getColumn(row, "hospemailaddr"), 0);
- opener.dsf_makeValue(receiveref, "corpno", "string", ds_main_list_req_hosp_list.getColumn(row, "corpno"), 0);
- opener.dsf_makeValue(receiveref, "rgstflag", "string", ds_main_list_req_hosp_list.getColumn(row, "rgstflag"), 0);
- opener.dsf_makeValue(receiveref, "hosprem", "string", ds_main_list_req_hosp_list.getColumn(row, "hosprem"), 0);
- opener.dsf_makeValue(receiveref, "todd", "string", ds_main_list_req_hosp_list.getColumn(row, "todd"), 0);
- opener.dsf_makeValue(receiveref, "rrgstno1", "string", ds_main_list_req_hosp_list.getColumn(row, "rrgstno1"), 0);
- opener.dsf_makeValue(receiveref, "rrgstno2", "string", ds_main_list_req_hosp_list.getColumn(row, "rrgstno2"), 0);
- opener.dsf_makeValue(receiveref, "tradehosp", "string", ds_main_list_req_hosp_list.getColumn(row, "tradehosp"), 0);
- opener.dsf_makeValue(receiveref, "gradsch", "string", ds_main_list_req_hosp_list.getColumn(row, "gradsch"), 0);
- opener.dsf_makeValue(receiveref, "drflag", "string", ds_main_list_req_hosp_list.getColumn(row, "drflag"), 0);
- opener.dsf_makeValue(receiveref, "orddeptcd", "string", ds_main_list_req_hosp_list.getColumn(row, "orddeptcd"), 0);
- opener.dsf_makeValue(receiveref, "drcls", "string", ds_main_list_req_hosp_list.getColumn(row, "drcls"), 0);
- opener.dsf_makeValue(receiveref, "medispclno", "string", ds_main_list_req_hosp_list.getColumn(row, "medispclno"), 0);
- opener.dsf_makeValue(receiveref, "drclsmatyn", "string", ds_main_list_req_hosp_list.getColumn(row, "drclsmatyn"), 0);
- opener.dsf_makeValue(receiveref, "gradyear", "string", ds_main_list_req_hosp_list.getColumn(row, "gradyear"), 0);
- opener.dsf_makeValue(receiveref, "replmethod", "string", ds_main_list_req_hosp_list.getColumn(row, "replmethod"), 0);
- opener.dsf_makeValue(receiveref, "drtelno", "string", ds_main_list_req_hosp_list.getColumn(row, "drtelno"), 0);
- opener.dsf_makeValue(receiveref, "drmpphontel", "string", ds_main_list_req_hosp_list.getColumn(row, "drmpphontel"), 0);
- opener.dsf_makeValue(receiveref, "dremailid", "string", ds_main_list_req_hosp_list.getColumn(row, "dremailid"), 0);
- opener.dsf_makeValue(receiveref, "dremailaddr", "string", ds_main_list_req_hosp_list.getColumn(row, "dremailaddr"), 0);
- opener.dsf_makeValue(receiveref, "detlfrmrmert", "string", ds_main_list_req_hosp_list.getColumn(row, "detlfrmrmert"), 0);
- opener.dsf_makeValue(receiveref, "relign", "string", ds_main_list_req_hosp_list.getColumn(row, "relign"), 0);
- opener.dsf_makeValue(receiveref, "hoby", "string", ds_main_list_req_hosp_list.getColumn(row, "hoby"), 0);
- opener.dsf_makeValue(receiveref, "btype", "string", ds_main_list_req_hosp_list.getColumn(row, "btype"), 0);
- opener.dsf_makeValue(receiveref, "epid", "string", ds_main_list_req_hosp_list.getColumn(row, "epid"), 0);
- opener.dsf_makeValue(receiveref, "localrgstdd", "string", ds_main_list_req_hosp_list.getColumn(row, "localrgstdd"), 0);
- opener.dsf_makeValue(receiveref, "eprgstdd", "string", ds_main_list_req_hosp_list.getColumn(row, "eprgstdd"), 0);
- opener.dsf_makeValue(receiveref, "aprvdd", "string", ds_main_list_req_hosp_list.getColumn(row, "aprvdd"), 0);
- opener.dsf_makeValue(receiveref, "secssdd", "string", ds_main_list_req_hosp_list.getColumn(row, "secssdd"), 0);
- opener.dsf_makeValue(receiveref, "secssresn", "string", ds_main_list_req_hosp_list.getColumn(row, "secssresn"), 0);
- opener.dsf_makeValue(receiveref, "drrem", "string", ds_main_list_req_hosp_list.getColumn(row, "drrem"), 0);
- opener.dsf_makeValue(receiveref, "repltype", "string", ds_main_list_req_hosp_list.getColumn(row, "repltype"), 0);
- opener.dsf_makeValue(receiveref, "replflag", "string", ds_main_list_req_hosp_list.getColumn(row, "replflag"), 0);
- //[요청번호 20191216011] 원무쪽 요양병원의뢰서 추가 20190102이아영
- opener.dsf_makeValue(receiveref, "corpno", "string", ds_main_list_req_hosp_list.getColumn(row, "corpno"), 0);
- opener.dsf_makeValue(receiveref, "hospkind", "string", ds_main_list_req_hosp_list.getColumn(row, "hospkind"), 0);
-
- var receiveref = eval("opener.ds_main");
- opener.dsf_makeValue(receiveref, "hospflag", "string", "Y", 0);
- this.close();
- }
- }
- else
- {
- sysf_messageBox("상위화면이 변경되어 데이터를 가져올 수", "I004");
- }
-
- }
- function grd_list_onvscroll(obj:Grid, e:ScrollEventInfo)
- {
- // if(obj.vscrollbar.max == obj.vscrollbar.pos)
- // {
- // // end of scroll
- // ds_send_search.setColumn(0, "offset", ds_main_list_req_hosp_list.rowcount); // grid의 header row는 제외
- // var oParam = {};
- // oParam.id = "TRARH00201";
- // oParam.service = "healcarecoopapp.CoopHospMngt";
- // oParam.method = "reqGetHospList";
- // oParam.inds = "req=ds_send_search";
- // oParam.outds = "ds_main_list_req_hosp_list=req_hosp_list";
- // oParam.async = false;
- // //oParam.callback = "cf_TRARH00201";
- //
- // tranf_submit(oParam);
- // }
- }
- function btn_smarh00100_onclick(obj:Button, e:ClickEventInfo)
- {
- fHospPopup();
- }
- function fHospPopup()
- {
- var coophospnm = frmf_setParameter("coophospnm", ds_send_search.getColumn(0, "coophospnm"));
- var status = frmf_setParameter("status", "i");
- var hardcd = ds_init_hardcd.lookup("hardcd", sysf_getUserInfo("dutplcecd"), "hardcd");
-
- if(utlf_isNull(hardcd))
- {
- var hideOption = frmf_setParameter("hideoption", "ALL");
- }
-
- frmf_modal("SMARH00100", "SMARH00100", "", "", 1, 1, 1, "", "", "", "", "", "M");
- fSearch();
- }
- function btn_confirm_onclick(obj:Button, e:ClickEventInfo)
- {
- fConfirm();
- }
- function btn_cancel_onclick(obj:Button, e:ClickEventInfo)
- {
- if (frmf_checkOpener())
- {
- var receiveref = eval("opener.ds_main");
- opener.dsf_makeValue(receiveref, "hospflag", "string", "N", 0);
- this.close();
- }
- this.close();
- }
- ]]></Script>
- </Form>
- </FDL>
|