123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783 |
- <?xml version="1.0" encoding="utf-8" standalone="no"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMMRC02800" position="absolute 0 0 1197 781" titletext="차트현황조회" onload="SMMRC02800_onload">
- <Layouts>
- <Layout>
- <Static id="cpt_title" class="tit_1" position="absolute 5 0 212 23" style="" text="차트보관관리"/>
- <Div id="group1" position="absolute 5 20 1190 773" style="">
- <Layouts>
- <Layout>
- <Div id="Div00" taborder="21" position="absolute 0 2 1185 42" class="div_SA" anchor="default">
- <Layouts>
- <Layout/>
- </Layouts>
- </Div>
- <Button id="button1" class="icon_search" position="absolute 428 13 444 29" style="" text="" onclick="group1_button1_onclick" anchor="default"/>
- <Shape id="line2" class="line_4" linetype="vertical" position="absolute 1100 12 1103 34" style="" anchor="default"/>
- <Edit id="ipt_lendapppid" anchor="default" class="input_search" position="absolute 320 13 420 32" style=""/>
- <Static id="caption44" class="search_name" position="absolute 15 14 96 31" style="" text="대출과 :" anchor="default"/>
- <Static id="caption2" class="search_name" position="absolute 230 14 316 31" style="align: middle;" text="환자번호 :" anchor="default"/>
- <Radio datacolumn="datacolumn" codecolumn="codecolumn" columncount="-1" rowcount="-1" id="radio4" position="absolute 550 15 740 30" style="" anchor="default" index="0">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn"/>
- <Col id="datacolumn">전체</Col>
- </Row>
- <Row>
- <Col id="codecolumn">Y</Col>
- <Col id="datacolumn">과보관</Col>
- </Row>
- <Row>
- <Col id="codecolumn">N</Col>
- <Col id="datacolumn">과보관제외</Col>
- </Row>
- </Rows>
- </Dataset>
- </Radio>
- <Combo innerdataset="ds_init_orddept_dept" datacolumn="depthnm" codecolumn="deptcd" columncount="-1" rowcount="-1" id="cbo_lendappdeptcd" class="combo_search" position="absolute 95 13 215 32" style="" anchor="default"/>
- <Static id="caption4" class="search_name" position="absolute 460 14 546 31" style="" text="보관여부 :" anchor="default"/>
- <Button id="btn_r_rendlist" class="btn1_letter2" position="absolute 1115 12 1171 34" style="" text="조회" onclick="group1_btn_r_rendlist_onclick" anchor="default"/>
- <Button id="btn_e_rendlist" class="btn6_letter2" position="absolute 0 731 56 753" style="" text="엑셀" onclick="group1_btn_e_rendlist_onclick" anchor="default"/>
- <Grid id="grd_lendlist" binddataset="ds_main_lendlist" position="absolute 0 50 1185 730" style="" onkillfocus="group1_grd_lendlist_onkillfocus" onrbuttonup="group1_grd_lendlist_onrbuttonup" anchor="default">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="65"/>
- <Column size="60"/>
- <Column size="50"/>
- <Column size="50"/>
- <Column size="90"/>
- <Column size="60"/>
- <Column size="65"/>
- <Column size="65"/>
- <Column size="110"/>
- <Column size="110"/>
- <Column size="80"/>
- <Column size="150"/>
- <Column size="70"/>
- <Column size="70"/>
- <Column size="60"/>
- <Column size="50"/>
- <Column size="30"/>
- <Column size="30"/>
- <Column size="30"/>
- <Column size="30"/>
- </Columns>
- <Rows>
- <Row size="25" band="head"/>
- <Row size="25"/>
- </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" text="진료과"/>
- <Cell col="6" text="대출자"/>
- <Cell col="7" text="신청자"/>
- <Cell col="8" text="대출용도"/>
- <Cell col="9" text="대출일시"/>
- <Cell col="10" text="반납예정일"/>
- <Cell col="11" text="대출메세지"/>
- <Cell col="12" text="과보관사유"/>
- <Cell col="13" text="과보관사유"/>
- <Cell col="14" text="연락처"/>
- <Cell col="15" text="병실"/>
- <Cell col="16" text="대출번호"/>
- <Cell col="17" text="차트번호"/>
- <Cell col="18" text="pid"/>
- <Cell col="19" text="rendcd"/>
- </Band>
- <Band id="body">
- <Cell text="bind:pid"/>
- <Cell col="1" text="bind:pnm"/>
- <Cell col="2" text="bind:fsexam"/>
- <Cell col="3" text="bind:chrtdeptabbr"/>
- <Cell col="4" text="bind:appdeptabbr"/>
- <Cell col="5" text="bind:orddeptabbr"/>
- <Cell col="6" text="bind:lendman"/>
- <Cell col="7" text="bind:appman"/>
- <Cell col="8" text="bind:rendresn"/>
- <Cell col="9" text="bind:renddt"/>
- <Cell col="10" text="bind:rtnschedd"/>
- <Cell col="11" text="bind:msgcnts"/>
- <Cell col="12" text="bind:deptkeepcd"/>
- <Cell col="13" text="bind:deptkeepresn"/>
- <Cell col="14" text="bind:cntctelno"/>
- <Cell col="15" text="bind:roomcd"/>
- <Cell col="16" text="bind:chrtseqno"/>
- <Cell col="17" text="bind:medirecno"/>
- <Cell col="18" text="bind:prnpid"/>
- <Cell col="19" text="bind:rendcd"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Shape id="line3" class="line_1" linetype="horizontal" position="absolute 0 46 1185 50" style="strokepen:3 solid #33bbbbff;" anchor="default"/>
- <Static id="caption10" class="search_name" position="absolute 760 14 850 31" style="" text="대출일자 :" anchor="default"/>
- <Calendar id="ipt_fromrendd" anchor="default" class="input_search" position="absolute 855 13 955 32" style="" dateformat="yyyy-MM-dd" value="null"/>
- <Calendar id="ipt_torendd" anchor="default" class="input_search" position="absolute 960 13 1060 32" style="" dateformat="yyyy-MM-dd" value="null"/>
- <Div id="grup_deptkeep" position="absolute 705 110 959 244" style="background:whitesmoke;border:3 solid #adceffff #adceffff;" anchor="default">
- <Layouts>
- <Layout>
- <Button id="button20" class="btn2_letter2" position="absolute 202 106 244 125" style="" text="취소" onclick="group1_grup_deptkeep_button20_onclick" anchor="default"/>
- <Shape id="line41" class="line_3" linetype="horizontal" position="absolute 4 3 245 6" style="" anchor="default"/>
- <Static id="caption68" class="cell_1" position="absolute 5 5 77 28" style="align: middle;" text="과보관사유" anchor="default"/>
- <Shape id="line46" class="line_3" linetype="horizontal" position="absolute 4 29 245 32" style="" anchor="default"/>
- <Button id="button21" class="btn2_letter2" position="absolute 157 106 199 125" style="" text="확인" onclick="group1_grup_deptkeep_button21_onclick" anchor="default"/>
- <Combo innerdataset="ds_init_M0412_M0412" datacolumn="cdnm" codecolumn="cdid" columncount="-1" rowcount="-1" id="combo4" class="combo_search" position="absolute 79 7 244 26" style="" anchor="default"/>
- <TextArea id="textarea2" position="absolute 79 31 244 101" style="" anchor="default"/>
- <Shape id="line47" class="line_3" linetype="horizontal" position="absolute 4 102 245 105" style="" anchor="default"/>
- <Static id="caption80" class="cell_1" position="absolute 5 31 77 100" style="align: middle;" text="메모" anchor="default"/>
- </Layout>
- </Layouts>
- </Div>
- <Button id="btn_p_lendlist" taborder="20" class="btn6_letter2" position="absolute 60 731 116 753" style="" text="출력" onclick="group1_btn_p_lendlist_onclick" anchor="default"/>
- <CheckBox id="lendterm_disabled" taborder="22" position="absolute 1065 13 1086 30" onchanged="group1_lendterm_disabled_onchanged" truevalue="Y" falsevalue="N" anchor="default" onclick="group1_lendterm_disabled_onclick" value="Y"/>
- </Layout>
- </Layouts>
- </Div>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_init_orddept" 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/>
- </Dataset>
- <Dataset id="ds_hidden_tmp_pidpopupinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="checkfnexam" type="STRING" size="256"/>
- <Column id="autoflag" type="STRING" size="256"/>
- <Column id="srchcond" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="checkfnexam"/>
- <Col id="autoflag"/>
- <Col id="srchcond"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_hidden_tmp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo/>
- </Dataset>
- <Dataset id="ds_main_deptkeep" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="deptkeepcd" type="STRING" size="256"/>
- <Column id="deptkeepresn" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="M0412" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="M0412"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_hidden_menu_menu" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="hardcdnm" type="STRING" size="256"/>
- <Column id="hardcd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="hardcdnm">과보관사유입력</Col>
- <Col id="hardcd">fsetdeptkeep</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="popupendflag" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_hidden_menu" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo/>
- </Dataset>
- <Dataset id="ds_condition" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="appdeptcd" type="STRING" size="256"/>
- <Column id="pid" type="STRING" size="256"/>
- <Column id="deptkeepyn" type="STRING" size="256"/>
- <Column id="ioflag" type="STRING" size="256"/>
- <Column id="rendfromdd" type="STRING" size="256"/>
- <Column id="rendtodd" type="STRING" size="256"/>
- <Column id="lendtermdisabled" 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="reqdata" type="STRING" size="256"/>
- <Column id="savedata" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_lendlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="chrtseqno" type="STRING" size="256"/>
- <Column id="pid" type="STRING" size="256"/>
- <Column id="appdeptcd" type="STRING" size="256"/>
- <Column id="lendmanid" type="STRING" size="256"/>
- <Column id="appmanid" type="STRING" size="256"/>
- <Column id="cntctelno" type="STRING" size="256"/>
- <Column id="appdt" type="STRING" size="256"/>
- <Column id="fstacptprndt" type="STRING" size="256"/>
- <Column id="rendschedd" type="STRING" size="256"/>
- <Column id="renddt" type="STRING" size="256"/>
- <Column id="rtndt" type="STRING" size="256"/>
- <Column id="delyn" type="STRING" size="256"/>
- <Column id="rendcd" type="STRING" size="256"/>
- <Column id="rendresn" type="STRING" size="256"/>
- <Column id="unrendcd" type="STRING" size="256"/>
- <Column id="unrendresn" type="STRING" size="256"/>
- <Column id="deptkeepcd" type="STRING" size="256"/>
- <Column id="deptkeepresn" type="STRING" size="256"/>
- <Column id="unrtnresn" type="STRING" size="256"/>
- <Column id="msgcnts" type="STRING" size="256"/>
- <Column id="roomcd" type="STRING" size="256"/>
- <Column id="fsexamflag" type="STRING" size="256"/>
- <Column id="fsexam" type="STRING" size="256"/>
- <Column id="rsrvflag" type="STRING" size="256"/>
- <Column id="rsrv" type="STRING" size="256"/>
- <Column id="prnpid" type="STRING" size="256"/>
- <Column id="pnm" type="STRING" size="256"/>
- <Column id="rrgstno" type="STRING" size="256"/>
- <Column id="medirecno" type="STRING" size="256"/>
- <Column id="allchrtyn" type="STRING" size="256"/>
- <Column id="chrtdeptcd" type="STRING" size="256"/>
- <Column id="chrtdeptnm" type="STRING" size="256"/>
- <Column id="chrtdeptabbr" type="STRING" size="256"/>
- <Column id="orddeptcd" type="STRING" size="256"/>
- <Column id="orddeptnm" type="STRING" size="256"/>
- <Column id="orddeptabbr" type="STRING" size="256"/>
- <Column id="orddt" type="STRING" size="256"/>
- <Column id="appdeptnm" type="STRING" size="256"/>
- <Column id="appdeptabbr" type="STRING" size="256"/>
- <Column id="appman" type="STRING" size="256"/>
- <Column id="lendman" type="STRING" size="256"/>
- <Column id="keepno" type="STRING" size="256"/>
- <Column id="keepplce" type="STRING" size="256"/>
- <Column id="chrtlendyn" type="STRING" size="256"/>
- <Column id="dschdd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="chrtseqno"/>
- <Col id="pid"/>
- <Col id="appdeptcd"/>
- <Col id="lendmanid"/>
- <Col id="appmanid"/>
- <Col id="cntctelno"/>
- <Col id="appdt"/>
- <Col id="fstacptprndt"/>
- <Col id="rendschedd"/>
- <Col id="renddt"/>
- <Col id="rtndt"/>
- <Col id="delyn"/>
- <Col id="rendcd"/>
- <Col id="rendresn"/>
- <Col id="unrendcd"/>
- <Col id="unrendresn"/>
- <Col id="deptkeepcd"/>
- <Col id="deptkeepresn"/>
- <Col id="unrtnresn"/>
- <Col id="msgcnts"/>
- <Col id="roomcd"/>
- <Col id="fsexamflag"/>
- <Col id="fsexam"/>
- <Col id="rsrvflag"/>
- <Col id="rsrv"/>
- <Col id="prnpid"/>
- <Col id="pnm"/>
- <Col id="rrgstno"/>
- <Col id="medirecno"/>
- <Col id="allchrtyn"/>
- <Col id="chrtdeptcd"/>
- <Col id="chrtdeptnm"/>
- <Col id="chrtdeptabbr"/>
- <Col id="orddeptcd"/>
- <Col id="orddeptnm"/>
- <Col id="orddeptabbr"/>
- <Col id="orddt"/>
- <Col id="appdeptnm"/>
- <Col id="appdeptabbr"/>
- <Col id="appman"/>
- <Col id="lendman"/>
- <Col id="keepno"/>
- <Col id="keepplce"/>
- <Col id="chrtlendyn"/>
- <Col id="dschdd"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_orddept_dept" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="deptcd" type="STRING" size="256"/>
- <Column id="depthnm" type="STRING" size="256"/>
- <Column id="deptenm" type="STRING" size="256"/>
- <Column id="deptabbr" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_send_reqdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_init_orddept_chrtdept" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="deptcd" type="STRING" size="256"/>
- <Column id="depthnm" type="STRING" size="256"/>
- <Column id="deptenm" type="STRING" size="256"/>
- <Column id="deptabbr" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_send_savedata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_source" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_init_M0412_M0412" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_main_patinfo_patinfolist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="Dataset00" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="group1.radio4" probid="value" datasetid="ds_condition" columnid="deptkeepyn"/>
- <BindItem id="item1" compid="group1.cbo_lendappdeptcd" probid="value" datasetid="ds_condition" columnid="appdeptcd"/>
- <BindItem id="item2" compid="group1.grup_deptkeep.combo4" probid="value" datasetid="ds_main_deptkeep" columnid="deptkeepcd"/>
- <BindItem id="item3" compid="group1.grup_deptkeep.textarea2" probid="value" datasetid="ds_main_deptkeep" columnid="deptkeepresn"/>
- <BindItem id="item5" compid="group1.cbo_lendappdeptcd" propid="value" datasetid="ds_condition" columnid="appdeptcd"/>
- <BindItem id="item4" compid="group1.ipt_lendapppid" propid="value" datasetid="ds_condition" columnid="pid"/>
- <BindItem id="item6" compid="group1.radio4" propid="value" datasetid="ds_condition" columnid="deptkeepyn"/>
- <BindItem id="item7" compid="group1.ipt_fromrendd" propid="value" datasetid="ds_condition" columnid="rendfromdd"/>
- <BindItem id="item8" compid="group1.ipt_torendd" propid="value" datasetid="ds_condition" columnid="rendtodd"/>
- <BindItem id="item9" compid="group1.lendterm_disabled" propid="value" datasetid="ds_condition" columnid="lendtermdisabled"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[include "com_commonxp::comm_main.xjs"
- //include "com_basiccodexp::ZBC001.xjs"
- include "emr_commonxp::EMRCommon.xjs"
- include "emr_chrtmngtxp::SMMRC02800.xjs"
- function SMMRC02800_onload(obj:Form, e:LoadEventInfo) {
- frmf_initForm(obj);
- //grdf_initGrid(grd_XXX);
- //grdf_setGridSort(grd_XXX);
- //grdf_setRowTypeIcon(grd_XXX, 0_컬럼위치값);
-
- fFormInit();
- }
- // header파일 중 SMMRC02800.js 파일 시작
- var m_clientY = 0;
- function getNodeSetCnt(path)
- {
- // var insXml = model.instances(0);
- // var nodeList = insXml.selectNodes(path);
- // return nodeList.length;
- return eval(path).rowcount;
- }
- /**
- * _desc : 폼초기화
- * _
- * _param :
- * _return :
- * _authur : 이은영 2008.06.12
- * _---------------------------------------------------
- */
- function fFormInit()
- {
- //진료과/ 챠트과 불러오기.
- ds_send_reqdata.clearData();
- ds_send_reqdata.addRow();
-
- dsf_makeValue( ds_send_reqdata, "ioflag", "string", "O");
- dsf_makeValue( ds_send_reqdata, "orddeptflag", "string", "'D', 'X'");
-
- // submit("TRMRC00050");
- var oParam = {};
- oParam.id = "TRMRC00050";
- oParam.service = "chrtmngtapp.ChrtRendMngt";
- oParam.method = "reqGetDept";
- oParam.inds = "req=ds_send_reqdata";
- oParam.outds = "ds_init_orddept_dept=dept ds_init_orddept_chrtdept=chrtdept";
- oParam.async = false;
- tranf_submit(oParam);
- //공통코드 가져오기...
- //M0412:과보관사유코드
- var arrParam = [ {dsNm : "ds_init_M0412_M0412",
- cdGrpId: "M0412" } ];
- appf_getCodeList(arrParam, true);
- ds_main_lendlist.clearData();
-
-
- ds_condition.clearData();
- ds_condition.addRow();
-
- // 대출내역 초기값
- ds_condition.setColumn( 0, "ioflag" , "O");
- ds_condition.setColumn( 0, "appdeptcd" , sysf_getUserInfo("dutplcecd"));
- ds_condition.setColumn( 0, "pid" , "");
- ds_condition.setColumn( 0, "deptkeepyn" , "Y");
- ds_condition.setColumn( 0, "rendfromdd" , utlf_getCurrentDate());
- ds_condition.setColumn( 0, "rendtodd" , utlf_getCurrentDate());
-
- group1.grup_deptkeep.visible = false;
- //model.refresh();
- }
- /**
- * _desc : 차트 대출 현황 조회하기
- * _
- * _param :
- * _return :
- * _authur : 이은영 2008.07.21
- * _---------------------------------------------------
- */
- function fGetLendList()
- {
- ds_send_reqdata.clearData();
- ds_send_reqdata.addRow();
-
- var appdeptcd = ds_condition.getColumn(0, "appdeptcd");
- var rendfromdd = ds_condition.getColumn(0, "rendfromdd");
- var rendtodd = ds_condition.getColumn(0, "rendtodd");
- var deptkeepyn = ds_condition.getColumn(0, "deptkeepyn");
- dsf_makeValue( ds_send_reqdata, "appdeptcd", "string", appdeptcd);
- dsf_makeValue( ds_send_reqdata, "rendfromdd", "string", rendfromdd);
- dsf_makeValue( ds_send_reqdata, "rendtodd", "string", rendtodd);
- dsf_makeValue( ds_send_reqdata, "deptkeepyn", "string", deptkeepyn);
- dsf_makeValue( ds_send_reqdata, "apprendcd", "string", "ALL");
- //model.refresh();
- // submit("TRMRC00320");
- var oParam = {};
- oParam.id = "TRMRC00320";
- oParam.service = "chrtmngtapp.ChrtRendMngt";
- oParam.method = "reqGetLendChrtList";
- oParam.inds = "req=ds_send_reqdata";
- oParam.outds = "ds_main_lendlist=lendlist";
- oParam.async = false;
- tranf_submit(oParam);
- }
- /**
- * _desc : excel 저장 하기
- * _
- * _param :
- * _return :
- * _authur : 이은영 2008.07.14
- * _---------------------------------------------------
- */
- function fExcel(gridObj, title){
- grdf_exportExcel(gridObj, "Sheet1", title, false, "" , 'user' , true);
- }
- /**
- * _desc : 마우스 오른쪽 버튼 팝업창
- * _
- * _param :
- * _return :
- * _authur : 이은영 2008.03.18
- * _---------------------------------------------------
- */
- function fMouseRghtBtnPopup(gridObj, e)
- {
- if (e.button == "rbutton") {
- if (e.row >= 0 && e.col >= 0 ) {
- ds_send_savedata.clearData();
- //window.setPopupMenu(true, "ds_hidden_menu_menu", .text", "func", false);
- frmf_createPopupMenuDs("pmn_popupMenu", "pmn_popupMenu_onmenuclick", ds_hidden_menu_menu);
- pmn_popupMenu.trackPopup(e.screenX, e.screenY);
-
- } else {
- //window.setPopupMenu(false);
- }
- } else {
- //window.setPopupMenu(false);
- }
- }
- function pmn_popupMenu_onmenuclick(obj:PopupMenu, e:MenuClickEventInfo)
- {
-
- eval(e.id+"()");
- }
- /**
- * _desc : 챠트 반납 우클릭시 - > 과보관 사유 입력
- * _
- * _param :
- * _return :
- * _authur : 이은영 2008.07.28
- * _---------------------------------------------------
- */
- function fsetdeptkeep()
- {
- if(group1.grd_lendlist.currentrow < 0){
- return;
- }
- // 2008.01.13. 과보관사유 입력하기...
- fShowWndIptBox();
- }
- /**
- * _desc : 팝업폼 보여주기..
- * _
- * _param :
- * _
- * _return :
- * _authur : 이은영 2008.07.28
- * _---------------------------------------------------
- */
-
-
-
- function fShowWndIptBox()
- {
- group1.grup_deptkeep.visible = false;
- ds_main_deptkeep.clearData();
- ds_main_deptkeep.addRow();
-
- ds_main_deptkeep.setColumn( 0, "deptkeepcd", "00");
- ds_main_deptkeep.setColumn( 0, "deptkeepresn", "");
- //model.refresh();
- var _height = group1.grup_deptkeep.position.height;
-
- if (m_clientY > 600) {
- group1.grup_deptkeep.position.top = m_clientY-90;
- } else {
- group1.grup_deptkeep.position.top = 600;
- }
- group1.grup_deptkeep.position.height = _height;
-
- group1.grup_deptkeep.visible = true;
- }
- /**
- * _desc : 챠트 반납 우클릭시 - > 과보관 사유 입력 (update)
- * _
- * _param :
- * _return :
- * _authur : 이은영 2008.07.28
- * _---------------------------------------------------
- */
- function fUpdateDeptKeepresn()
- {
- // 2008.01.13. 과보관사유 입력하기...
- var deptkeepcd = ds_main_deptkeep.getColumn(0, "deptkeepcd");
- var deptkeepresn = ds_main_deptkeep.getColumn(0, "deptkeepresn");
- var savedata ="chrtseqno▦deptkeepcd▦deptkeepresn▩";
- var dataString = "";
- var dataCount = 0;
- //for ( var i = 0; i <group1.grd_lendlist.selectedRows; i++)
-
- var selectedRows = grdf_getSelectedRows(group1.grd_lendlist);
- for(var i=0; i < selectedRows.length; i++)
-
- {
- // 2009.01.06. sort (정렬) 후 인스턴스가 바뀌어 저장시 오류 발생 수정함.
- // var chrtseqno = ds_main_lendlist.getColumn(group1.grd_lendlist.selectedrow(i), "chrtseqno");
- var row = selectedRows[i];
- var chrtseqno = this.ds_main_lendlist.getColumn(row, "chrtseqno");
- dataString = dataString + chrtseqno + "▦" + deptkeepcd + "▦" + deptkeepresn + "▩";
- dataCount = dataCount + 1;
- }
- if (dataString.length > 0)
- {
- alert("총 " + dataCount + " 건 과보관(사유입력) 되었습니다.");
- //dsf_makeValue( ds_send, "savedata", "string", savedata + dataString);
-
- dsf_setCSVToDs("ds_send_savedata",savedata + dataString);
- grdf_setStatusColumn(ds_send_savedata, "status");
- dsf_setFixVal(ds_send_savedata, "status:i");
-
- //model.refresh();
- // submit("TXMRC00103");
- var oParam = {};
- oParam.id = "TXMRC00103";
- oParam.service = "chrtmngtapp.ChrtRendMngt";
- oParam.method = "setDeptKeep";
- oParam.inds = "savedata=ds_send_savedata";
- oParam.outds = "";
- oParam.async = false;
- tranf_submit(oParam);
- }
-
- group1.grup_deptkeep.visible = false;
- // 다시 조회하기..
- fGetLendList();
- }
- /**
- * _desc : 환자등록번호 조회 팝업
- * _
- * _param : refPid - 환자번호 참고 node path
- * refPnm - 환자명 참고 node path
- * _return :
- * _authur : 이은영 2008.03.18
- * _---------------------------------------------------
- */
- function fGetPid(ref, refPid, refPnm)
- {
- //조회건수가 1건일 경우 팝업창을 바로 닫는다.
-
- ds_main.clearData();
- ds_main.addRow();
- ds_hidden_tmp_pidpopupinfo.clearData();
- ds_hidden_tmp_pidpopupinfo.addRow();
-
- ds_main_patinfo_patinfolist.clearData();
- ds_main_patinfo_patinfolist.addRow();
-
-
- dsf_makeValue( ds_hidden_tmp_pidpopupinfo, "checkfnexam", "string", "1");
- dsf_makeValue( ds_hidden_tmp_pidpopupinfo, "autoflag", "string", "N");
- if( ds_hidden_tmp_pidpopupinfo.getColumn(0, "srchcond") == '' ){
- dsf_makeValue( ds_hidden_tmp_pidpopupinfo, "srchcond", "string", '2');
- }
- var objArg = new Object();
- objArg.arg_ds_send = ds_hidden_tmp_pidpopupinfo;
-
- frmf_modal("SPPMC02500", "SPPMC02500", objArg, "", "1", "150", "150", "", "", "", "", "", "M");
-
- ds_source.clearData(); ds_source.addRow();
-
- eval(ref).setColumn(0, refPid, ds_patinfolist.getColumn(0, "pid"));
- if (refPnm == null) { refPnm = "" }
- if (refPnm != "") {
- eval(ref).setColumn(0, refPnm, ds_patinfolist.getColumn(0, "hngnm"));
- }
-
-
-
- }
- /**
- * _desc : 차트 보관 관리에서 대출일자 기간 콤보 보여줄까? 말까?
- * _
- * _param :
- * _return :
- * _authur : 이은영 2009.01.06
- * _---------------------------------------------------
- */
- function fLendTermDisabled()
- {
- var lendtermdisabled = group1.lendterm_disabled.value;
- if (lendtermdisabled == "Y") {
- var today = utlf_getCurrentDate();
- ds_condition.setColumn( 0, "rendfromdd", today);
- ds_condition.setColumn( 0, "rendtodd" , today);
- group1.ipt_fromrendd.enable = true;
- group1.ipt_torendd.enable = true;
- } else {
- ds_condition.setColumn( 0, "rendfromdd", "");
- ds_condition.setColumn( 0, "rendtodd" , "");
- group1.ipt_fromrendd.enable = false;
- group1.ipt_torendd.enable = false;
- }
- //group1.ipt_fromrendd.refresh();
- //group1.ipt_torendd.refresh();
- }
- // header파일 중 SMMRC02800.js 파일 끝
- function group1_button1_onclick(obj:Button, e:ClickEventInfo) {
- fGetPid("ds_condition", "pid");
- group1_btn_r_rendlist_onclick(null, null);
- }
- function group1_btn_r_rendlist_onclick(obj:Button, e:ClickEventInfo) {
- fGetLendList();
- }
- function group1_btn_e_rendlist_onclick(obj:Button, e:ClickEventInfo) {
- fExcel(group1.grd_lendlist, "차트보관목록");
- }
- function group1_grd_lendlist_onmousedown(obj:Grid, e:GridMouseEventInfo) {
- //fMouseRghtBtnPopup(group1.grd_lendlist);
- }
- function group1_grd_lendlist_onkillfocus(obj:Grid, e:KillFocusEventInfo) {
- //window.setPopupMenu(false);
- }
- function group1_grup_deptkeep_button20_onclick(obj:Button, e:ClickEventInfo) {
- group1.grup_deptkeep.visible = "false";
- }
- function group1_grup_deptkeep_button21_onclick(obj:Button, e:ClickEventInfo) {
- fUpdateDeptKeepresn();
- }
- function group1_lendterm_disabled_onkillfocus(obj:cp_checkboxList, e:KillFocusEventInfo) {
- fLendTermDisabled();
- }
- function group1_btn_p_lendlist_onclick(obj:Button, e:ClickEventInfo) {
- var objDOM = rptf_createDOM();
- var objParam = new Object();
- rptf_setNodeListToDOM(objDOM, "/root/main/lendlist" , ds_main_lendlist);
- objParam.xml_data_XML1 = objDOM.documentElement.source;
- var option = "open=1;save=1;directprint=0;printdialog=1;print=1;zoom=0";
- rptf_exeReportPreview30(["RPMRC02800"],[objParam], option);
- }
- function group1_grd_lendlist_onrbuttonup(obj:Grid, e:GridMouseEventInfo)
- {
- m_clientY = e.clientY;
- fMouseRghtBtnPopup(group1.grd_lendlist, e);
- return true;
- }
- function group1_lendterm_disabled_onchanged(obj:CheckBox, e:CheckBoxChangeEventInfo)
- {
- fLendTermDisabled();
- }
- function group1_lendterm_disabled_onclick(obj:CheckBox, e:ClickEventInfo)
- {
-
- }
- ]]></Script>
- </Form>
- </FDL>
|