123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPMMO07600" position="absolute 0 0 810 330" titletext="진단검색" oninit="SPMMO07600_oninit" onload="SPMMO07600_onload">
- <Layouts>
- <Layout>
- <Shape id="roundrect1" type="roundrectangle" position="absolute 4 6 805 39"/>
- <Grid position="absolute 5 49 805 298" id="grd_diaghist" binddataset="ds_main_diagcdlist" oncelldblclick="grd_diaghist_oncelldblclick" cellsizingtype="col" extendsizetype="row" autosizingtype="row" selecttype="multirow">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="100"/>
- <Column size="280"/>
- <Column size="280"/>
- <Column size="100"/>
- <Column size="0"/>
- </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="icd10cd"/>
- <Cell col="4" text="diagcd"/>
- </Band>
- <Band id="body">
- <Cell style="align:left;" text="bind:dispdiagcd"/>
- <Cell col="1" style="align:left;padding:4 2 2 2;" text="bind:diagengnm" wordwrap="word"/>
- <Cell col="2" style="align:left;padding:4 2 2 2;" text="bind:diaghngnm" wordwrap="word" autosizerow="limitmin"/>
- <Cell col="3" style="align:left;" text="bind:icd10cd"/>
- <Cell col="4" text="bind:diagcd"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Shape position="absolute 5 44 805 50" linetype="horizontal" id="line4" class="line_10"/>
- <Button position="absolute 750 304 806 326" id="button1" class="btn4" text="취소" onclick="button1_onclick"/>
- <Static text="검색방법 :" position="absolute 11 14 90 31" align="align:center middle;" id="caption3" class="search_name"/>
- <Static text="검색어 :" position="absolute 531 14 617 31" id="caption4" class="search_name"/>
- <Edit position="absolute 595 13 715 32" id="ipt_search" class="input_search" onkeydown="ipt_search_onkeydown" autoselect="true"/>
- <Button position="absolute 745 12 801 34" id="button3" class="btn1" text="조회" onclick="button3_onclick"/>
- <Shape position="absolute 730 12 736 34" linetype="vertical" id="line6"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_grd_diaghist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="dispdiagcd" type="STRING"/>
- <Column id="diagengnm" type="STRING"/>
- <Column id="diaghngnm" type="STRING"/>
- <Column id="icd10cd" type="STRING"/>
- <Column id="diagcd" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_diagcdlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="status" type="STRING" size="256"/>
- <Column id="dispdiagcd" type="STRING" size="256"/>
- <Column id="diagengnm" type="STRING" size="256"/>
- <Column id="diaghngnm" type="STRING" size="256"/>
- <Column id="orgdiagnm" type="STRING" size="256"/>
- <Column id="spclinfo" type="STRING" size="256"/>
- <Column id="orgdiagcd" type="STRING" size="256"/>
- <Column id="tootfact" type="STRING" size="256"/>
- <Column id="icd10cd" type="STRING" size="256"/>
- <Column id="diagcd" 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="false">
- <ColumnInfo>
- <Column id="diagsrchcond1" type="STRING" size="256"/>
- <Column id="diagsrchnm" type="STRING" size="256"/>
- <Column id="srchmode" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="diagsrchcond1"/>
- <Col id="diagsrchnm"/>
- <Col id="srchmode"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cond3" type="STRING" size="256"/>
- <Column id="cond4" type="STRING" size="256"/>
- <Column id="cond5" type="STRING" size="256"/>
- <Column id="synmflag" type="STRING" size="256"/>
- <Column id="scrnflag" type="STRING" size="256"/>
- <Column id="diagsrchmetd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="cond3"/>
- <Col id="cond4"/>
- <Col id="cond5"/>
- <Col id="synmflag">Y</Col>
- <Col id="scrnflag"/>
- <Col id="diagsrchmetd"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_temp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="status" type="STRING" size="256"/>
- <Column id="dispdiagcd" type="STRING" size="256"/>
- <Column id="diagengnm" type="STRING" size="256"/>
- <Column id="diaghngnm" type="STRING" size="256"/>
- <Column id="orgdiagnm" type="STRING" size="256"/>
- <Column id="spclinfo" type="STRING" size="256"/>
- <Column id="orgdiagcd" type="STRING" size="256"/>
- <Column id="tootfact" type="STRING" size="256"/>
- <Column id="icd10cd" type="STRING" size="256"/>
- <Column id="diagcd" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="ipt_search" propid="value" datasetid="ds_init" columnid="diagsrchnm"/>
- </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";
- include "emr_carecomxp::CareCom.xjs";
- function SPMMO07600_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SPMMO07600_onload(obj:Form, e:LoadEventInfo)
- {
-
- grdf_setGridSort(grd_diaghist);
- ipt_search.setFocus();
- //model.setFocus("ipt_search");
- }
- /*
- function getDiagNodeListCSV(dataSet, rowid) {
-
- if( dataSet.rowcount == 0 ){
- return;
- }
-
- var sColSep = "▦";
- var sRowSep = "▩";
-
- var rCSV = "";
-
- //var childNodeList = nodeList.item(0).childNodes;
- var dsCnt = dataSet.rowcount; //childNodeList.length;
- if( dsCnt == 0 ){
- return;
- }
-
- var i, j;
- // var Req3Head = "aisiemcd▦aisiidno▦aisiindt▦aisiintm▦aisicode▩";
- for( i = 0; i < dsCnt; i++ ) { // i = 0; i < childNodeCnt - 1; i++
- rCSV += childNodeList.item(i).nodeName + sColSep;
- }
-
- rCSV += childNodeList.item(i).nodeName + sRowSep;
- model.getValue("/root/main/diaginfo/diagcdlist[" + rowid + "]/icd10cd")
- model.getValue("/root/main/diaginfo/diagcdlist[" + rowid + "]/diagengnm")
-
-
- var node;
- var cnt = 1;
- var selCnt = 0;
- while( node = nodeList.nextNode() ) {
- if (cnt == rowid) {
- //if (model.getValue ( "/root/main/diaginfo/diagcdlist[" + cnt++ + "]/status" ) == "I" ) {
- childNodeList = node.childNodes;
- for( i = 0; i < childNodeCnt - 1; i++) {
- rCSV += childNodeList.item(i).text + sColSep;
- }
- rCSV += childNodeList.item(i).text + sRowSep;
- selCnt++;
- }
- cnt++;
- }
- if ( selCnt == 0 ) {
- return "N"
- } else {
- return rCSV;
- }
- }
- */
- /**
- * @desc : 진단 검색
- * @param :
- * @return :
- * @authur : HIT 진료
- */
- function fGetDiagSrch() { // 사용하는 함수인지 확인 필요
- //초기화 작업
- //model.removeNodeset ( "/root/main/diaginfo/diagcdlist" );
- opener.frmf_setParameter( "SPMMO07600_rtn", "" );
- opener.frmf_setParameter( "SPMMO07600_rtn_useyn", "N");
-
- var cond3 = opener.frmf_getParameter ( "SPMMO07600_cond3" ); //한영구분(H: 한글, E:영문)
- var cond4 = opener.frmf_getParameter ( "SPMMO07600_cond4" ); //기준일자: 외래일때는 진료일자, 입원일때는 처방일자
- var cond5 = opener.frmf_getParameter ( "SPMMO07600_cond5" ); //검색내용
- var srchmodecond = opener.frmf_getParameter ( "SPMMO07600_srchmode" ); //검색위치
-
- ds_init.setColumn(0, "diagsrchnm", cond5); //model.setValue("/root/init/diagsrchnm", cond5);
- if (utlf_isNull(cond5)) {
- alert("검색어가 없습니다. 검색어 입력 후 진행하세요.");
- return ;
- }
-
- var word = (cond5.getTrimLeft()).getTrimRight(); //좌,우측의 공백을 제거
- word = word.split(" ");
- if(word.length > 1){
- var fst = word[0].concat("% ");
- var sec = word[1].concat("%");
- cond5 = fst.concat(sec);
- }else{
- cond5 = word[0].concat("%");
- }
-
- model.setValue("/root/send/cond3", cond3 );
- model.setValue("/root/send/cond4", cond4 );
- model.setValue("/root/send/cond5", cond5 );
-
- submit("TRMMO07601");
- }
- function grd_diaghist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
- {
- if(e.col > -1 && e.row > -1){
- ds_temp.clearData();
- ds_temp.addRow();
- ds_temp.copyRow(0, ds_main_diagcdlist, ds_main_diagcdlist.rowposition);
- var rtn1 = dsf_getDsCSV(ds_temp); //getDiagNodeListCSV ( model.instances(0).selectNodes( "/root/main/diaginfo/diagcdlist" ), grd_diaghist.row);
- opener.frmf_setParameter( "SPMMO07600_rtn", rtn1 );
- close();
- }
- }
- function button1_onclick(obj:Button, e:ClickEventInfo)
- {
- opener.frmf_setParameter( "SPMMO07600_rtn", "" );
- close();
- }
- function ipt_search_onkeydown(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13) {
- ds_init.setColumn(0, "diagsrchnm", ipt_search.value); // ipt_search
- var ev = new ClickEventInfo;
- frmf_inputEnterKey("button3", "onclick", ev );
- }
-
- //inputEnterKey("button3", "DOMActivate");
- }
- function button3_onclick(obj:Button, e:ClickEventInfo)
- {
- var cond4 = utlf_getCurrentDate(); //기준일자
- var cond5 = ds_init.getColumn(0, "diagsrchnm"); //검색어
-
- var cond3 = utlf_isHangul(cond5); //fIsHangul(cond5); //한글, 영문구분
- if ( utlf_isNull(cond5)) {
- sysf_messageBox ( "검색어를", "C001" );
- return;
- } else if ( cond3 == "E" ){ //영문,숫자일때는 3글자 넣어야 검색가능
- if ( cond5.length < 2 ){
- sysf_messageBox ( "2글자 이상", "C001" );
- return;
- }
- }
- cond5 = "%" + cond5 + "%";
- ds_send.setColumn(0, "cond4", cond4); // model.setValue("/root/send/cond4", cond4);
- ds_send.setColumn(0, "cond5", cond5); // model.setValue("/root/send/cond5", cond5);
-
- var oParam = {};
- oParam.id = "TRMMO07601";
- oParam.service = "prcpmngtapp.ErMngt";
- oParam.method = "reqGetDiagForInju";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_diagcdlist=diagcdlist";
- oParam.async = false;
- oParam.callback = "cf_TRMMO07601";
- tranf_submit(oParam);
- }
- function cf_TRMMO07601(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
- }]]></Script>
- </Form>
- </FDL>
|