123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPMMO33900" position="absolute 0 0 1110 750" titletext="환자 처방조회" oninit="SPMMO33900_oninit" onload="SPMMO33900_onload">
- <Layouts>
- <Layout>
- <Static text="환자별 처방조회" position="absolute 0 0 126 25" align="align:center middle;" id="caption9" class="tit_1"/>
- <Button position="absolute 897 136 1001 156" id="button3" class="btn4" text="통합기록조회" anchor="top right" onclick="button3_onclick"/>
- <Button position="absolute 1006 136 1110 156" id="button5" class="btn4" text="통합결과조회" anchor="top right" onclick="button5_onclick"/>
- <Grid position="absolute 0 159 1110 750" id="datagrid1" binddataset="ds_main_prcplist" anchor="all" treeusecheckbox="false">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="40"/>
- <Column size="75"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="84"/>
- <Column size="0"/>
- <Column size="55"/>
- <Column size="50"/>
- <Column size="40"/>
- <Column size="40"/>
- <Column size="70"/>
- <Column size="191"/>
- <Column size="35"/>
- <Column size="35"/>
- <Column size="35"/>
- <Column size="35"/>
- <Column size="30"/>
- <Column size="30"/>
- <Column size="60"/>
- <Column size="45"/>
- <Column size="50"/>
- <Column size="70"/>
- <Column size="110"/>
- <Column size="70"/>
- <Column size="35"/>
- <Column size="70"/>
- <Column size="70"/>
- <Column size="120"/>
- <Column size="40"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell text="입/외"/>
- <Cell col="1" text="처방적용일"/>
- <Cell col="2" text="처방번호"/>
- <Cell col="3" text="액팅처방번호"/>
- <Cell col="4" text="액팅처방레벨"/>
- <Cell col="5" 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" colspan="2" text="1회용량" taborder="undefined"/>
- <Cell col="18" colspan="2" text="1회수량" taborder="undefined"/>
- <Cell col="20" text="횟수"/>
- <Cell col="21" text="일수"/>
- <Cell col="22" text="진행상태"/>
- <Cell col="23" colspan="2" text="검사결과" taborder="undefined"/>
- <Cell col="25" text="희망일"/>
- <Cell col="26" text="예약일시"/>
- <Cell col="27" text="시행일"/>
- <Cell col="28" text="선택"/>
- <Cell col="29" text="선택진료의"/>
- <Cell col="30" text="처방입력자"/>
- <Cell col="31" text="처방입력시간"/>
- <Cell col="32"/>
- </Band>
- <Band id="body">
- <Cell text="bind:ordgubun"/>
- <Cell col="1" text="bind:prcpdd" mask="expr:utlf_isNull(prcpdd) ? "" : "####-##-##""/>
- <Cell col="2" text="bind:prcpno"/>
- <Cell col="3" text="bind:execprcpno"/>
- <Cell col="4" text="bind:execprcplevel"/>
- <Cell col="5" text="bind:prcpmixno"/>
- <Cell col="6" text="bind:prcphistno"/>
- <Cell col="7" text="bind:orddeptcd"/>
- <Cell col="8" displaytype="text" text="bind:orddeptnm"/>
- <Cell col="9" text="bind:orddrid"/>
- <Cell col="10" text="bind:orddrnm"/>
- <Cell col="11" text="bind:payflagcd"/>
- <Cell col="12" text="bind:prcpkindcd"/>
- <Cell col="13" text="bind:prcpclscd"/>
- <Cell col="14" displaytype="text" text="bind:prcpcd"/>
- <Cell col="15" displaytype="tree" edittype="tree" text="bind:prcpnm" treestartlevel="1" treelevel="bind:execprcplevel"/>
- <Cell col="16" text="bind:drprcpetc7"/>
- <Cell col="17" text="bind:prcpvolunitnm"/>
- <Cell col="18" text="bind:drprcpetc8"/>
- <Cell col="19" text="bind:prcpqtyunitnm"/>
- <Cell col="20" text="bind:prcptims"/>
- <Cell col="21" text="bind:prcpdayno"/>
- <Cell col="22" text="bind:execprcpstatcd"/>
- <Cell col="23" text="bind:testrsltcnts"/>
- <Cell col="24" text="bind:testrsltunit"/>
- <Cell col="25" text="bind:prcphopedd" mask="expr:utlf_isNull(prcphopedd) ? "" : "####-##-##""/>
- <Cell col="26" text="bind:rsrvdt" mask="expr:utlf_isNull(rsrvdt) ? "" : "####-##-## ##:##""/>
- <Cell col="27" text="bind:execdd" mask="expr:utlf_isNull(execdd) ? "" : "####-##-##""/>
- <Cell col="28" text="bind:choiordflag"/>
- <Cell col="29" text="bind:specdrnm"/>
- <Cell col="30" text="bind:rgstrnm"/>
- <Cell col="31" text="bind:rgsttime" mask="expr:utlf_isNull(rgsttime) ? "" : "####-##-## ##:##:##""/>
- <Cell col="32"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Div id="Div00" taborder="1" position="absolute 0 23 1110 133" class="div_SA" anchor="left top right" scrollbars="none">
- <Layouts>
- <Layout>
- <Static id="caption2" text="처방일자 :" class="search_name" position="absolute 310 8 381 28" anchor="default"/>
- <Calendar id="input4" taborder="1" position="absolute 397 8 482 28" anchor="default" dateformat="yyyy-MM-dd" value="null" autoselect="true"/>
- <Static id="caption3" text="~" position="absolute 485 8 500 28" anchor="default"/>
- <Calendar id="input3" taborder="2" position="absolute 498 8 583 28" anchor="default" dateformat="yyyy-MM-dd" value="null" autoselect="true"/>
- <Combo id="cmb_prid" taborder="3" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 585 8 654 28" anchor="default" onitemchanged="Div00_cmb_prid_onitemchanged">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">1M</Col>
- <Col id="datacolumn">1개월</Col>
- </Row>
- <Row>
- <Col id="codecolumn">3M</Col>
- <Col id="datacolumn">3개월</Col>
- </Row>
- <Row>
- <Col id="codecolumn">6M</Col>
- <Col id="datacolumn">6개월</Col>
- </Row>
- <Row>
- <Col id="codecolumn">9M</Col>
- <Col id="datacolumn">9개월</Col>
- </Row>
- <Row>
- <Col id="codecolumn">1Y</Col>
- <Col id="datacolumn">1년</Col>
- </Row>
- <Row>
- <Col id="codecolumn">2Y</Col>
- <Col id="datacolumn">2년</Col>
- </Row>
- </Rows>
- </Dataset>
- </Combo>
- <Static id="caption10" text="등록번호:" class="search_name" position="absolute 690 8 759 28" anchor="default"/>
- <Edit id="input1" taborder="4" position="absolute 775 8 855 28" anchor="default" onkeydown="Div00_input1_onkeydown" autoselect="true"/>
- <Button id="btn_patsrch" taborder="5" class="icon_search" position="absolute 959 8 979 28" anchor="default" onclick="Div00_btn_patsrch_onclick"/>
- <Edit id="input2" taborder="6" enable="false" position="absolute 860 8 955 28" anchor="default"/>
- <Static id="caption1" text="진 료 과 :" class="search_name" position="absolute 6 33 85 53" anchor="default"/>
- <Combo id="cmb_orddept" taborder="7" innerdataset="ds_orddept" codecolumn="deptcd" datacolumn="depthngnm" position="absolute 95 33 261 53" anchor="default" onitemchanged="Div00_cmb_orddept_onitemchanged"/>
- <Static id="caption4" text="진료구분 :" class="search_name" position="absolute 6 8 85 28" anchor="default"/>
- <Radio id="radio1" taborder="9" columncount="4" rowcount="1" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 95 8 260 28" anchor="default">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">T</Col>
- <Col id="datacolumn">전체</Col>
- </Row>
- <Row>
- <Col id="codecolumn">O</Col>
- <Col id="datacolumn">외래</Col>
- </Row>
- <Row>
- <Col id="codecolumn">I</Col>
- <Col id="datacolumn">입원</Col>
- </Row>
- </Rows>
- </Dataset>
- </Radio>
- <Static id="caption5" text="진 료 의 :" class="search_name" position="absolute 310 33 381 53" anchor="default"/>
- <Static id="caption7" text="특별약품:" class="search_name" position="absolute 690 58 761 78" anchor="default"/>
- <Combo id="cmb_orddrid" taborder="10" innerdataset="ds_userlist" codecolumn="userid" datacolumn="usernm" position="absolute 397 33 530 53" anchor="default"/>
- <Static id="caption6" text="처방종류:" class="search_name" position="absolute 6 58 85 78" anchor="default"/>
- <Combo id="com_prcpkindcd" taborder="11" innerdataset="ds_M0003" codecolumn="cdid" datacolumn="cdnm" position="absolute 95 58 210 78" anchor="default"/>
- <Combo id="com_prcpclscd" taborder="12" innerdataset="ds_M0005" codecolumn="cdid" datacolumn="cdnm" position="absolute 397 58 530 78" anchor="default"/>
- <Static id="caption8" text="처방분류:" class="search_name" position="absolute 310 58 381 78" anchor="default"/>
- <Combo id="com_spcldrug" taborder="13" innerdataset="ds_A0006" codecolumn="cdid" datacolumn="cdnm" position="absolute 775 58 941 78" anchor="default"/>
- <Combo id="com_prcpstatcd" taborder="14" codecolumn="cdid" datacolumn="cdnm" position="absolute 775 33 941 53" anchor="default" innerdataset="ds_M0011"/>
- <Static id="caption11" text="진행상태:" class="search_name" position="absolute 690 33 761 53" anchor="default"/>
- <Static id="caption12" text="처방코드:" class="search_name" position="absolute 6 83 85 103" anchor="default"/>
- <Edit id="input5" taborder="15" position="absolute 95 83 260 103" anchor="default" onkeydown="Div00_input5_onkeydown" autoselect="true"/>
- <Static id="caption13" text="처방명:" class="search_name" position="absolute 310 81 381 101" anchor="default"/>
- <Edit id="input6" taborder="16" position="absolute 397 83 562 103" anchor="default" onkeydown="Div00_input6_onkeydown" autoselect="true"/>
- <Shape id="line3" linetype="vertical" position="absolute 1015 8 1021 102" anchor="top right"/>
- <Button id="btn_req" taborder="8" text="조회" class="btn1" position="absolute 1030 45 1086 65" anchor="top right" onclick="Div00_btn_req_onclick"/>
- <CheckBox id="CheckBox00" taborder="17" text="미시행 처방만" position="absolute 690 81 790 101" truevalue="N" falsevalue="Y" value="N" anchor="default"/>
- </Layout>
- </Layouts>
- </Div>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="pid" type="STRING" size="256"/>
- <Column id="hngnm" type="STRING" size="256"/>
- <Column id="prid" type="STRING" size="256"/>
- <Column id="fromdd" type="STRING" size="256"/>
- <Column id="todd" type="STRING" size="256"/>
- <Column id="orddeptcd" type="STRING" size="256"/>
- <Column id="ordgubun" type="STRING" size="256"/>
- <Column id="orddrid" type="STRING" size="256"/>
- <Column id="prcpclscd" type="STRING" size="256"/>
- <Column id="prcpkindcd" type="STRING" size="256"/>
- <Column id="spcldrug" type="STRING" size="256"/>
- <Column id="prcpstatcd" type="STRING" size="256"/>
- <Column id="prcpcd" type="STRING" size="256"/>
- <Column id="prcpnm" type="STRING" size="256"/>
- <Column id="execyn" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="prid">2Y</Col>
- <Col id="ordgubun">T</Col>
- <Col id="execyn">N</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_prcplist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="ordgubun" type="STRING" size="256" sumtext="진료구분"/>
- <Column id="prcpdd" type="STRING" size="256" sumtext="처방적용일"/>
- <Column id="prcpno" type="STRING" size="256" sumtext="처방번호"/>
- <Column id="execprcpno" type="STRING" size="256" sumtext="액팅처방번호"/>
- <Column id="execprcplevel" type="STRING" size="256" sumtext="액팅처방레벨"/>
- <Column id="prcpmixno" type="STRING" size="256" sumtext="믹스번호"/>
- <Column id="prcphistno" type="STRING" size="256" sumtext="처방이력번호"/>
- <Column id="orddeptcd" type="STRING" size="256" sumtext="진료과"/>
- <Column id="orddeptnm" type="STRING" size="256" sumtext="진료과명"/>
- <Column id="orddrid" type="STRING" size="256" sumtext="진료의"/>
- <Column id="orddrnm" type="STRING" size="256" sumtext="진료의명"/>
- <Column id="payflagcd" type="STRING" size="256" sumtext="급비구분"/>
- <Column id="prcpkindcd" type="STRING" size="256" sumtext="처방구분"/>
- <Column id="prcpclscd" type="STRING" size="256" sumtext="처방종류"/>
- <Column id="execprcpstatcd" type="STRING" size="256" sumtext="실시상태"/>
- <Column id="prcphopedd" type="STRING" size="256" sumtext="실시일자"/>
- <Column id="rsrvdt" type="STRING" size="256" sumtext="실시일자"/>
- <Column id="execdd" type="STRING" size="256" sumtext="실시일자"/>
- <Column id="prcpcd" type="STRING" size="256" sumtext="처방코드"/>
- <Column id="prcpnm" type="STRING" size="256" sumtext="처방명"/>
- <Column id="drprcpetc7" type="STRING" size="256" sumtext="일회용량"/>
- <Column id="prcpvolunitnm" type="STRING" size="256" sumtext="일회용량단위"/>
- <Column id="drprcpetc8" type="STRING" size="256" sumtext="일회수량"/>
- <Column id="prcpqtyunitnm" type="STRING" size="256" sumtext="일회수량단위"/>
- <Column id="prcptims" type="STRING" size="256" sumtext="횟수"/>
- <Column id="prcpdayno" type="STRING" size="256" sumtext="날수"/>
- <Column id="choiordflag" type="STRING" size="256" sumtext="선택진료여부"/>
- <Column id="specdrnm" type="STRING" size="256" sumtext="선택진료의"/>
- <Column id="rgsttime" type="STRING" size="256" sumtext="처방등록시간"/>
- <Column id="rgstrnm" type="STRING" size="256" sumtext="처방등록자"/>
- <Column id="testrsltcnts" type="STRING" size="256" sumtext="결과값"/>
- <Column id="testrsltunit" type="STRING" size="256" sumtext="결과단위"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_orddept" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="depthngnm" type="STRING"/>
- <Column id="deptcd" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_userlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="usernm" type="STRING"/>
- <Column id="userid" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_patnm" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_M0003" 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_M0005" 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_M0011" 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_A0006" 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>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="Div00.radio1" propid="value" datasetid="ds_cond" columnid="ordgubun"/>
- <BindItem id="item1" compid="Div00.cmb_orddept" propid="value" datasetid="ds_cond" columnid="orddeptcd"/>
- <BindItem id="item2" compid="Div00.com_prcpkindcd" propid="value" datasetid="ds_cond" columnid="prcpkindcd"/>
- <BindItem id="item3" compid="Div00.input5" propid="value" datasetid="ds_cond" columnid="prcpcd"/>
- <BindItem id="item4" compid="Div00.input4" propid="value" datasetid="ds_cond" columnid="fromdd"/>
- <BindItem id="item5" compid="Div00.input3" propid="value" datasetid="ds_cond" columnid="todd"/>
- <BindItem id="item6" compid="Div00.cmb_prid" propid="value" datasetid="ds_cond" columnid="prid"/>
- <BindItem id="item7" compid="Div00.cmb_orddrid" propid="value" datasetid="ds_cond" columnid="orddrid"/>
- <BindItem id="item8" compid="Div00.com_prcpclscd" propid="value" datasetid="ds_cond" columnid="prcpclscd"/>
- <BindItem id="item9" compid="Div00.input6" propid="value" datasetid="ds_cond" columnid="prcpnm"/>
- <BindItem id="item10" compid="Div00.input1" propid="value" datasetid="ds_cond" columnid="pid"/>
- <BindItem id="item11" compid="Div00.input2" propid="value" datasetid="ds_cond" columnid="hngnm"/>
- <BindItem id="item12" compid="Div00.com_prcpstatcd" propid="value" datasetid="ds_cond" columnid="prcpstatcd"/>
- <BindItem id="item13" compid="Div00.com_spcldrug" propid="value" datasetid="ds_cond" columnid="spcldrug"/>
- <BindItem id="item14" compid="Div00.CheckBox00" propid="value" datasetid="ds_cond" columnid="execyn"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2014-12-10
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2014-12-10 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- include "com_commonxp::comm_main.xjs";
- include "emr_prcpmngtxp::MMO001.xjs";
- function SPMMO33900_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SPMMO33900_onload(obj:Form, e:LoadEventInfo)
- {
- grdf_initGrid(datagrid1);
- grdf_setToolTipBind(datagrid1);
- grdf_setGridSort(datagrid1);
-
- if(sysf_getUserInfo("jobkindcd") == "0330") { // 의사로 로그인시 모든 처방, 그외 직종 미시행 처방 디폴트
- ds_cond.setColumn(0, "fromdd" , ((utlf_getCurrentDate().toDate()).getAddDate(-1,"M")).getDateFormat()); // 최근 7일
- ds_cond.setColumn(0, "prid" , "1M"); // 기간 1달
- ds_cond.setColumn(0, "execyn" , "Y"); // 미시행 처방만 체크 해제
- } else {
- ds_cond.setColumn(0, "fromdd" ,((utlf_getCurrentDate().toDate()).getAddDate(-24,"M")).getDateFormat()); //시작일자는 24개월 전
- ds_cond.setColumn(0, "prid" , "2Y"); // 기간 2년
- ds_cond.setColumn(0, "execyn" , "N"); // 미시행 처방만 체크
- }
- ds_cond.setColumn(0, "todd" , utlf_getCurrentDate()); //종료일자는 현재일자
-
- lf_mmbfGetDeptCodeComboList(ds_orddept, "A"); //부서코드 콤보
-
- appf_getCodeList([{dsNm: "ds_M0003", cdGrpId: "M0003"}
- ,{dsNm: "ds_M0005", cdGrpId: "M0005"}
- ,{dsNm: "ds_M0011", cdGrpId: "M0011"}
- ,{dsNm: "ds_A0006", cdGrpId: "A0006"}], true);
-
- frmf_addComboItem("Div00.cmb_orddept"); //진료과 전체항목 추가
- Div00.cmb_orddept.index = 0;
-
- frmf_addComboItem("Div00.cmb_orddrid"); //의사콤보 전체항목 추가
- Div00.cmb_orddrid.index = 0;
- frmf_addComboItem("Div00.com_prcpstatcd"); //진행상태 전체항목 추가
- Div00.com_prcpstatcd.index = 0;
- frmf_addComboItem("Div00.com_prcpkindcd"); //처방종류 전체항목 추가
- Div00.com_prcpkindcd.index = 0;
- frmf_addComboItem("Div00.com_prcpclscd"); //처방분류 전체항목 추가
- Div00.com_prcpclscd.index = 0;
- frmf_addComboItem("Div00.com_spcldrug"); //특별약품 전체항목 추가
- Div00.com_spcldrug.index = 0;
- var sPid = opener.frmf_getParameter("SPMMO33900_pid");
- var sHngNm = opener.frmf_getParameter("SPMMO33900_hngnm");
- if(utlf_isNull(sPid) ) {
- sPid = appf_getPatientInfo("pid");
- sHngNm = appf_getPatientInfo("pname")
- }
-
- if(!utlf_isNull(sPid) ) {
- ds_cond.setColumn(0, "pid", sPid);
- ds_cond.setColumn(0, "hngnm", sHngNm);
-
- Div00.btn_req.onclick.fireEvent(Div00.btn_req, new ClickEventInfo());
- }
- }
- function Div00_cmb_prid_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
- var number = obj.value.substr(0, 1);
- var period = obj.value.substr(1, 1);
-
- var idate = new Date();
- var fromdd = idate.getAddDate(parseInt(number) * -1, period).getDateFormat();
- var todd = utlf_getCurrentDate();
-
- ds_cond.setColumn(0, "fromdd", fromdd);
- ds_cond.setColumn(0, "todd", todd);
- }
- function Div00_input1_onkeydown(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13) {
- obj.updateToDataset();
- Div00.btn_req.onclick.fireEvent(Div00.btn_req, new ClickEventInfo());
- }
- }
- function Div00_btn_patsrch_onclick(obj:Button, e:ClickEventInfo)
- {
- frmf_modal("SPPMC02500", "SPPMC02500", null, null, null, null, null, null, null, null, null, null, "M");
- if(!utlf_isNull(this.objects["ds_patinfolist"])) {
- var sPid = ds_patinfolist.getColumn(0, "pid");
- var sHngnm = ds_patinfolist.getColumn(0, "hngnm");
- ds_cond.setColumn(0, "pid", sPid);
- ds_cond.setColumn(0, "hngnm", sHngnm);
- }
- }
- function Div00_cmb_orddept_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
- lf_mmbfGetUserComboList(ds_userlist, obj.value, "0330");
- frmf_addComboItem("Div00.cmb_orddrid"); //의사콤보 전체항목 추가
- Div00.cmb_orddrid.value = "-";
- }
- function Div00_input5_onkeydown(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13) {
- obj.updateToDataset();
- Div00.btn_req.onclick.fireEvent(Div00.btn_req, new ClickEventInfo());
- }
- }
- function Div00_input6_onkeydown(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13) {
- obj.updateToDataset();
- Div00.btn_req.onclick.fireEvent(Div00.btn_req, new ClickEventInfo());
- }
- }
- function Div00_btn_req_onclick(obj:Button, e:ClickEventInfo)
- {
- var pid = utlf_trim(ds_cond.getColumn(0, "pid"));
- if(utlf_isNull(pid)){
- sysf_messageBox("조회 하실 환자번호를", "C001");
- return;
- }
-
- if(lf_reqPatInfo(ds_patnm, "pid", "ptbs", pid)) {
- ds_cond.setColumn(0, "hngnm", ds_patnm.getColumn(0, "hngnm"));
-
- fReqGetPrcpList();
- }
- }
- function button3_onclick(obj:Button, e:ClickEventInfo)
- {
- var pid = ds_cond.getColumn(0, "pid");
- if(utlf_isNull(pid)){
- sysf_messageBox("통합기록조회를 검색할 환자를", "C002");
- return;
- }
- var wndobj = frmf_findPopup("SMMRI00400");
- if(!utlf_isNull(wndobj)){
- frmf_setParameter("SMMRI00400_param_pid", pid);
- wndobj.fInitalize();
- }else{
- frmf_setParameter("SMMRI00400_param_pid", pid);
- frmf_open("SMMRI00400", "SMMRI00400", null, null, 2, 0, 0, null, null, null, null, null, "M");
- }
- }
- function button5_onclick(obj:Button, e:ClickEventInfo)
- {
- var pid = ds_cond.getColumn(0, "pid");
- if(utlf_isNull(pid)){
- sysf_messageBox("통합결과조회를 검색할 환자를", "C002");
- return;
- }
-
- var curExamRsltObj = frmf_findPopup("SMAER00800"); //활성화된 검사결과 화면 object loading
- if(!utlf_isNull(curExamRsltObj)){
- curExamRsltObj.ds_singdata.setColumn(0, "srchpid", pid );
- curExamRsltObj.group3.grp_sea.btn_srch.click();
- } else {
- dsf_createDsRow("ds_temp_SMAER00800", [{col:"srchpid", type:"string", size:256, val:pid}]);
-
- var objArg = new Object();
- objArg.arg_ds_send_singdata = ds_temp_SMAER00800;
- frmf_open("SMAER00800", "SMAER00800", objArg, null, null, null, null, null, null, null, null, null, "M");
- }
- }
- function fReqGetPrcpList() {
- ds_main_prcplist.clearData(); // 트리가 접힌 상태에서 재조회 하면 그리드에 접힌 수만큼 조회 되지 않는 오류 수정.
- var oParam = {};
- oParam.id = "TRMMO33901";
- oParam.service = "prcpmngtapp.EtcPrcpMngt";
- oParam.method = "reqGetSearchPrcplist";
- oParam.inds = "req=ds_cond";
- oParam.outds = "ds_main_prcplist=prcplist";
- oParam.async = true;
- oParam.callback = "cf_TRMMO33901";
- tranf_submit(oParam);
- }
- function cf_TRMMO33901(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
-
- //setTree(datagrid1, datagrid1.colRef("execprcplevel"), datagrid1.colRef("prcpnm") , true);
- }]]></Script>
- </Form>
- </FDL>
|