123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690 |
- <?xml version="1.0" encoding="utf-8" standalone="no"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPPMI02300" position="absolute 0 0 519 349" titletext="신생아선택" onload="SPPMI02300_onload" ontimer="SPPMI02300_ontimer">
- <Layouts>
- <Layout>
- <Div id="group3" scrollbars="autoboth" position="absolute 0 0 518 316" style="">
- <Layouts>
- <Layout>
- <Div id="group2" position="absolute 0 0 518 40" style="" class="div_SA2">
- <Layouts>
- <Layout>
- <Static id="caption2" class="search_name" position="absolute 15 12 101 29" style="" text="검색조건 :" anchor="default"/>
- <Button id="btn_search" class="btn1" taborder="6" position="absolute 445 9 501 31" style="" text="조회" onclick="group3_group2_btn_search_onclick" anchor="default"/>
- <Shape id="line13" class="line_4" linetype="vertical" position="absolute 429 9 432 31" style="border: solid #ffe4bb #ffe4bb;" anchor="default"/>
- <Edit id="ipt_hngnm" class="input_search" taborder="1" visible="false" position="absolute 240 10 320 29" style="" anchor="default" onkeypress="group3_group2_ipt_hngnm_onkeypress" onkeydown="group3_group2_ipt_hngnm_onkeydown"/>
- <Combo datacolumn="datacolumn" codecolumn="codecolumn" columncount="-1" rowcount="-1" id="cmb_cond" class="combo_search" taborder="10" position="absolute 106 10 216 29" style="" onitemchanged="group3_group2_cmb_cond_onitemchanged" anchor="default">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">1</Col>
- <Col id="datacolumn">산모등록번호</Col>
- </Row>
- <Row>
- <Col id="codecolumn">2</Col>
- <Col id="datacolumn">산모성명</Col>
- </Row>
- <Row>
- <Col id="codecolumn">3</Col>
- <Col id="datacolumn">신생아등록번호</Col>
- </Row>
- <Row>
- <Col id="codecolumn">4</Col>
- <Col id="datacolumn">신생아성명</Col>
- </Row>
- </Rows>
- </Dataset>
- </Combo>
- <Edit id="ipt_pid" class="input_search" taborder="4" visible="false" position="absolute 222 10 302 29" style="" anchor="default" onkeypress="group3_group2_ipt_pid_onkeypress" onkeydown="group3_group2_ipt_pid_onkeydown"/>
- </Layout>
- </Layouts>
- </Div>
- <Static id="caption1" class="tit_2" position="absolute 0 48 137 65" style="" text="신생아 출생정보"/>
- <Shape id="line1" class="line_10" linetype="horizontal" position="absolute 0 64 517 70" style="" anchor="default"/>
- <Grid id="grd_patinfo" binddataset="ds_main_patinfo_patinfolist" taborder="7" position="absolute 0 69 517 315" style="" oncelldblclick="group3_grd_patinfo_oncelldblclick" onkeypress="group3_grd_patinfo_onkeypress" cellsizingtype="col" onkeydown="group3_grd_patinfo_onkeydown">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="83"/>
- <Column size="0"/>
- <Column size="65"/>
- <Column size="50"/>
- <Column size="60"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="85"/>
- <Column size="120"/>
- <Column size="50"/>
- <Column size="50"/>
- <Column size="55"/>
- <Column size="100"/>
- <Column size="70"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="110"/>
- <Column size="100"/>
- <Column size="110"/>
- <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="23" band="head"/>
- <Row size="23"/>
- </Rows>
- <Band id="head">
- <Cell text="산모등록번호"/>
- <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="체중값"/>
- <Cell col="11" text="체중단위"/>
- <Cell col="12" text="분만형태"/>
- <Cell col="13" text="신생아구분"/>
- <Cell col="14" text="특이사항"/>
- <Cell col="15" text="최초등록자ID"/>
- <Cell col="16" text="최초등록일시"/>
- <Cell col="17" text="최종수정자ID"/>
- <Cell col="18" text="최종수정일시"/>
- <Cell col="19" text="생성번호"/>
- <Cell col="20" text="집전화"/>
- <Cell col="21" text="핸드폰"/>
- <Cell col="22" text="우편번호1"/>
- <Cell col="23" text="우편번호2"/>
- <Cell col="24" text="우편번호seq"/>
- <Cell col="25" text="우편번호명"/>
- <Cell col="26" 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:rrgstno1"/>
- <Cell col="4" text="bind:rrgstno2"/>
- <Cell col="5" displaytype="date" text="bind:indd"/>
- <Cell col="6" text="bind:babyno"/>
- <Cell col="7" text="bind:babynm"/>
- <Cell col="8" text="bind:bthdt"/>
- <Cell col="9" text="bind:gndr"/>
- <Cell col="10" text="bind:weig"/>
- <Cell col="11" displaytype="combo" style="align:center middle;" text="bind:weigunit" combodataset="ds_init_M0189" combocodecol="cdid" combodatacol="cdnm"/>
- <Cell col="12" displaytype="combo" style="align:center middle;" text="bind:dlivkindcd" combodataset="ds_init_M0188" combocodecol="cdid" combodatacol="cdnm"/>
- <Cell col="13" text="bind:nbabyflag"/>
- <Cell col="14" displaytype="text" style="align:left top;padding:5 2 1 2;" text="bind:remk" wordwrap="char" autosizerow="limitmin"/>
- <Cell col="15" text="bind:fstrgstrid"/>
- <Cell col="16" text="bind:fstrgstdt"/>
- <Cell col="17" text="bind:lastupdtrid"/>
- <Cell col="18" text="bind:lastupdtdt"/>
- <Cell col="19" text="bind:cretno"/>
- <Cell col="20" text="bind:hometel"/>
- <Cell col="21" text="bind:mpphontel"/>
- <Cell col="22" text="bind:zipcd1"/>
- <Cell col="23" text="bind:zipcd2"/>
- <Cell col="24" text="bind:zipcdseq"/>
- <Cell col="25" text="bind:zipnm"/>
- <Cell col="26" text="bind:detladdr"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- </Layout>
- </Layouts>
- </Div>
- <Div id="group1" scrollbars="autoboth" position="absolute 0 316 518 343" style="">
- <Layouts>
- <Layout>
- <Button id="btn_confirm" class="btn4" taborder="8" position="absolute 402 5 458 27" style="" text="확인" onclick="group1_btn_confirm_onclick" anchor="default"/>
- <Button id="btn_cancel" class="btn4" taborder="9" position="absolute 461 5 517 27" style="" text="취소" onclick="group1_btn_cancel_onclick" anchor="default"/>
- <Shape id="line32" class="line_6" linetype="horizontal" position="absolute 0 0 518 3" style="" anchor="default"/>
- </Layout>
- </Layouts>
- </Div>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_init_orddeptcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo/>
- </Dataset>
- <Dataset id="ds_init_P0350" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="cdnm" type="STRING" size="256"/>
- <Column id="cdid" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="cdnm"/>
- <Col id="cdid"/>
- </Row>
- </Rows>
- </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="pid" type="STRING" size="256"/>
- <Column id="hngnm" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="srchcond"/>
- <Col id="pid"/>
- <Col id="hngnm"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo/>
- </Dataset>
- <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="tmp" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_orddeptcd_orddeptcdlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="cd" type="STRING" size="256"/>
- <Column id="nm" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="cd"/>
- <Col id="nm"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_orddrid_orddridlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <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_M0189" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="cdnm" type="STRING" size="256"/>
- <Column id="cdid" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="cdnm"/>
- <Col id="cdid"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_orddrid" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo/>
- </Dataset>
- <Dataset id="ds_init_M0188" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="cdnm" type="STRING" size="256"/>
- <Column id="cdid" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="cdnm"/>
- <Col id="cdid"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_patinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="patinfolist" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="patinfolist"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo/>
- </Dataset>
- <Dataset id="ds_hidden_uid" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="myself" type="STRING" size="256"/>
- <Column id="opener" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_patinfo_patinfolist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- </Objects>
- <Bind>
- <BindItem id="item1" compid="group3.group2.cmb_cond" propid="value" datasetid="ds_send" columnid="srchcond"/>
- <BindItem id="item0" compid="group3.group2.ipt_pid" propid="value" datasetid="ds_send" columnid="pid"/>
- <BindItem id="item2" compid="group3.group2.ipt_hngnm" propid="value" datasetid="ds_send" columnid="hngnm"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[//=======================================================================================
- // Lib Include
- //---------------------------------------------------------------------------------------
- include "com_commonxp::comm_main.xjs";
- include "pam_pamcomnxp::PAM.xjs";
- //=======================================================================================
- // Global Form Variable
- //---------------------------------------------------------------------------------------
- var arErrorCode = new HashArray();
- //=======================================================================================
- // Function
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Argument : N/A
- * Description : 창 생성시 부모창으로 부터 받은 입력값의 유효범위 체크
- ****************************************************************************************/
- function fInputValueCheckXformsReady(){
- var cond = ds_send.getColumn(0, "srchcond");
- switch(cond){
- case '1':
- //환자등록번호 체크
- if(group3.group2.ipt_pid.text.length >= 1 ){
- ds_send.setColumn( 0, "pid", group3.group2.ipt_pid.text);
- return (true);
- }else{
- sysf_messageBox("환자등록번호를 정확히", "C001");
- return (false);
- }
- break;
-
- case '2':
- //환자이름 체크
- //if( group3.group2.ipt_hngnm.text.length >= 2 ) return (true);
- if(group3.group2.ipt_hngnm.text.length >= 2 ){
- ds_send.setColumn( 0, "hngnm", group3.group2.ipt_hngnm.text);
- return (true);
- }else{
- sysf_messageBox("환자이름을 2자리 이상", "C001");
- return (false);
- }
- break;
-
- case '3':
- //환자등록번호 체크
- if(group3.group2.ipt_pid.text.length >= 1 ){
- ds_send.setColumn( 0, "pid", group3.group2.ipt_pid.text);
- return (true);
- }else{
- sysf_messageBox("환자등록번호를 정확히", "C001");
- return (false);
- }
- break;
-
- case '4':
- //환자이름 체크
- //if( group3.group2.ipt_hngnm.text.length >= 2 ) return (true);
- if(group3.group2.ipt_hngnm.text.length >= 2 ){
- ds_send.setColumn( 0, "hngnm", group3.group2.ipt_hngnm.text);
- return (true);
- }else{
- sysf_messageBox("환자이름을 2자리 이상", "C001");
- return (false);
- }
- break;
- default :
- group3.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(group3.group2.ipt_pid.text.length >= 1 ){
- ds_send.setColumn( 0, "pid", group3.group2.ipt_pid.text);
- return (true);
- }else{
- sysf_messageBox("환자등록번호를 정확히", "C001");
- return (false);
- }
- break;
- case '2':
- //환자이름 체크
- //if( group3.group2.ipt_hngnm.text.length >= 2 ) return (true);
- if(group3.group2.ipt_hngnm.text.length >= 2 ){
- ds_send.setColumn( 0, "hngnm", group3.group2.ipt_hngnm.text);
- return (true);
- }else{
- sysf_messageBox("환자이름을 2자리 이상", "C001");
- return (false);
- }
- break;
- case '3':
- //환자등록번호 체크
- if(group3.group2.ipt_pid.text.length >= 1 ){
- ds_send.setColumn( 0, "pid", group3.group2.ipt_pid.text);
- return (true);
- }else{
- sysf_messageBox("환자등록번호를 정확히", "C001");
- return (false);
- }
- break;
- case '4':
- //환자이름 체크
- //if( group3.group2.ipt_hngnm.text.length >= 2 ) return (true);
- if(group3.group2.ipt_hngnm.text.length >= 2 ){
- ds_send.setColumn( 0, "hngnm", group3.group2.ipt_hngnm.text);
- return (true);
- }else{
- sysf_messageBox("환자이름을 2자리 이상", "C001");
- return (false);
- }
- break;
- default :
- sysf_messageBox("검색조건이 정확히 선택되지 않았습니다. 확인 후 다시 시도해 주십시요.", "E999", "");
- group3.group2.cmb_cond.setFocus();
- return( false );
- break;
- }
- }
- /****************************************************************************************
- * Argument : N/A
- * Description : 조회 조건에 맞는 input 컨트롤을 세팅해 준다.
- ****************************************************************************************/
- function fChangeSearchCondition(cond){
- switch(cond){
- case '1':
- // dsf_makeValue( ds_send, "pid", "string", "" );
- group3.group2.ipt_pid.visible = true;
- group3.group2.ipt_pid.position.left = 219;
- group3.group2.ipt_pid.position.top = 8;
- group3.group2.ipt_hngnm.visible = false;
- group3.group2.ipt_pid.setFocus();
- break;
- case '2':
- // dsf_makeValue( ds_send, "hngnm", "string", "" );
- group3.group2.ipt_hngnm.visible = true;
- group3.group2.ipt_hngnm.position.left = 219;
- group3.group2.ipt_hngnm.position.top = 8;
- group3.group2.ipt_pid.visible = false;
- group3.group2.ipt_hngnm.setFocus();
- break;
-
- case '3':
- // dsf_makeValue( ds_send, "pid", "string", "" );
- group3.group2.ipt_pid.visible = true;
- group3.group2.ipt_pid.position.left = 219;
- group3.group2.ipt_pid.position.top = 8;
- group3.group2.ipt_hngnm.visible = false;
- group3.group2.ipt_pid.setFocus();
- break;
-
- case '4':
- // dsf_makeValue( ds_send, "hngnm", "string", "" );
- group3.group2.ipt_hngnm.visible = true;
- group3.group2.ipt_hngnm.position.left = 219;
- group3.group2.ipt_hngnm.position.top = 8;
- group3.group2.ipt_pid.visible = false;
- group3.group2.ipt_hngnm.setFocus();
- break;
-
- default :
- //sysf_messageBox("검색조건이 정확히 선택되지 않았습니다. 확인 후 다시 시도해 주십시요.", "E999", "");
- break;
- }
- }
- //=======================================================================================
- // Event
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Components : Form
- * Description : 화면 처음 초기화시 폼초기화
- ****************************************************************************************/
- function SPPMI02300_onload(obj:Form, e:LoadEventInfo) {
- frmf_initForm(obj);
- this.setTimer(0, 100);
- }
- /****************************************************************************************
- * Components : Button
- * Description : 조회
- ****************************************************************************************/
- function group3_group2_btn_search_onclick(obj:Button, e:ClickEventInfo) {
- if(fInputValueCheck()) {
- call_TRPMI02301();
- if(arErrorCode.pop("TRPMI02301") > -1) {
- if( ds_main_patinfo_patinfolist.rowcount > 0 ){
- group3.grd_patinfo.setFocus();
- }else{
- fChangeSearchCondition( group3.group2.cmb_cond.value );
- }
- }
- }
- }
- /****************************************************************************************
- * Components : Edit
- * Description : 환자명 입력후 엔터
- ****************************************************************************************/
- function group3_group2_ipt_hngnm_onkeydown(obj:Edit, e:KeyEventInfo) {
- if(e.keycode == 13) {
- obj.updateToDataset();
- // ds_send.setColumn(0,"hngnm",obj.text);
- group3_group2_btn_search_onclick();
- }
- }
- /****************************************************************************************
- * Components : Combo
- * Description : 검색조건 변경
- ****************************************************************************************/
- function group3_group2_cmb_cond_onitemchanged(obj:Combo, e:ItemChangeEventInfo) {
- var cond = ds_send.getColumn(0, "srchcond");
- fChangeSearchCondition( cond );
- }
- /****************************************************************************************
- * Components : Edit
- * Description : 등록번호 입력후 엔터
- ****************************************************************************************/
- function group3_group2_ipt_pid_onkeydown(obj:Edit, e:KeyEventInfo) {
- if(e.keycode == 13) {
- obj.updateToDataset();
- // ds_send.setColumn(0,"pid",obj.text);
- group3_group2_btn_search_onclick();
- }
- }
- /****************************************************************************************
- * Components : Grid
- * Description : 신생아 출생정보 선택
- ****************************************************************************************/
- function group3_grd_patinfo_oncelldblclick(obj:Grid, e:GridClickEventInfo) {
- if ( frmf_checkOpener() ) {
- var row = e.row;
- if( row > -1 ){
- if( ds_main_patinfo_patinfolist.rowcount > 0 ){
- opener.ds_main_patinfo_patinfolist.copyRow(0,ds_main_patinfo_patinfolist,row);
- dsf_makeValue( opener.ds_main, "popupendflag", "string", "ok" );
- this.close();
- }
- }
- } else {
- sysf_messageBox("상위화면이 변경되어 데이터를 가져올 수", "I004");
- }
- }
- /****************************************************************************************
- * Components : Grid
- * Description : 신생아 출생정보 선택
- ****************************************************************************************/
- function group3_grd_patinfo_onkeydown(obj:Grid, e:KeyEventInfo) {
- if( e.keycode == 13 ){
- group1_btn_confirm_onclick();
- }
- }
- /****************************************************************************************
- * Components : Button
- * Description : 확인
- ****************************************************************************************/
- function group1_btn_confirm_onclick(obj:Button, e:ClickEventInfo) {
- if ( frmf_checkOpener() ) {
- var row = ds_main_patinfo_patinfolist.rowposition;
- dsf_makeValue( opener.ds_main, "popupendflag", "string", "cancel" );
- if( row > -1 ){
- if( ds_main_patinfo_patinfolist.rowcount > 0 ){
- opener.ds_main_patinfo_patinfolist.copyRow(0,ds_main_patinfo_patinfolist,row);
- dsf_makeValue( opener.ds_main, "popupendflag", "string", "ok" );
- }
- }else {
- sysf_messageBox("행이 정확히 선택되지", "E007");
- }
- } else {
- sysf_messageBox("상위화면이 변경되어 데이터를 가져올 수", "I004");
- }
- this.close();
- }
- /****************************************************************************************
- * Components : Button
- * Description : 닫기
- ****************************************************************************************/
- function group1_btn_cancel_onclick(obj:Button, e:ClickEventInfo) {
- dsf_makeValue( opener.ds_main, "popupendflag", "string", "cancel" );
- this.close();
- }
- /****************************************************************************************
- * Components : Form
- * Description : 폼 초기화
- ****************************************************************************************/
- function SPPMI02300_ontimer(obj:Form, e:TimerEventInfo)
- {
- if (e.timerid == 0) {
- this.killTimer(0);
-
- try{
- ds_send.copyData(arg_ds_send);
- ds_send.addColumn("hngnm","string");
- // group3.group2.ipt_pid.text = utlf_transNullToEmpty(ds_send.getColumn(0,"pid"));
- // group3.group2.ipt_hngnm.text = utlf_transNullToEmpty(ds_send.getColumn(0,"hngnm"));
- }catch(e){}
-
- grdf_setGridSort(group3.grd_patinfo);
-
- var arrParam = [{dsNm: "ds_init_M0189", cdGrpId: "M0189"}
- ,{dsNm: "ds_init_M0188", cdGrpId: "M0188"}
- ];
- appf_getCodeList(arrParam);
- if( !utlf_isNull(ds_send.getColumn(0,"srchcond")) ){
- fChangeSearchCondition( ds_send.getColumn(0, "srchcond") );
- //값이 부모창에서 입력되었을 경우 조회한다.
- if(fInputValueCheckXformsReady() ){
- call_TRPMI02301();
-
- if(arErrorCode.pop("TRPMI02301") > -1) {
- //2007.12.25 외부신생아 조회..
- if (ds_send.getColumn(0, "srchcond") == "3") {
- var inpt_node = ds_main_patinfo_patinfolist.rowcount;
- if (inpt_node == 0) {
- var oParam = {};
- oParam.id = "TRPMI02302";
- oParam.service = "ipatmngtapp.IPatRef";
- oParam.method = "reqGetBabyInfo1";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_patinfo_patinfolist=patinfolist";
- oParam.async = false;
- //oParam.callback = "cf_TRPMI02302";
- tranf_submit(oParam);
- if( ds_main_patinfo_patinfolist.rowcount == 1 ){
- if( ds_send.getColumn(0, "autoflag").toUpperCase() == "Y" ){
- group3.grd_patinfo.setFocus();
- group1_btn_confirm_onclick();
- this.close();
- }
- }
- }
- }
- if( ds_main_patinfo_patinfolist.rowcount == 1 ){
- if( ds_send.getColumn(0, "autoflag").toUpperCase() == "Y" ){
- group3.grd_patinfo.setFocus();
- group1_btn_confirm_onclick();
- this.close();
- }
- }
- if( ds_main_patinfo_patinfolist.rowcount > 1 ){
- group3.grd_patinfo.setFocus();
- }else{
- fChangeSearchCondition( group3.group2.cmb_cond.value );
- }
- }
- }
- }else{
- dsf_makeValue( ds_send, "srchcond" , "string", "" );
- dsf_makeValue( ds_send, "pid" , "string", "" );
- dsf_makeValue( ds_send, "hngnm" , "string", "" );
- }
- }
- }
- function call_TRPMI02301() {
- var oParam = {};
- oParam.id = "TRPMI02301";
- oParam.service = "ipatmngtapp.IPatRef";
- oParam.method = "reqGetBabyInfo";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_patinfo_patinfolist=patinfolist";
- oParam.async = false;
- oParam.callback = "cf_TRPMI02301";
- tranf_submit(oParam);
- }
- function cf_TRPMI02301(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- ]]></Script>
- </Form>
- </FDL>
|