123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPMMO03600" position="absolute 0 0 885 487" titletext="협진관리" oninit="SPMMO03600_oninit" onload="SPMMO03600_onload">
- <Layouts>
- <Layout>
- <Static text="협진내역" position="absolute 472 6 593 26" id="caption18" class="tit_2"/>
- <Static text="협진환자등록" position="absolute 3 6 124 26" id="caption1" class="tit_2"/>
- <Static text="등록번호" position="absolute 0 26 70 50" id="caption5" class="cell_1"/>
- <Static text="환자명" position="absolute 214 26 284 50" id="caption4" class="cell_1"/>
- <Static text="성별/나이" position="absolute 0 52 70 76" id="caption9" class="cell_1"/>
- <Static text="적용기간" position="absolute 0 78 70 101" id="caption2" class="cell_1"/>
- <Static text="협진분류" position="absolute 0 128 70 151" id="caption3" class="cell_1"/>
- <Button position="absolute 378 0 420 20" id="button37" class="btn2" text="삭제" onclick="button37_onclick"/>
- <Button position="absolute 421 0 463 20" id="button2" class="btn5" text="저장" onclick="button2_onclick"/>
- <Button position="absolute 215 130 279 150" id="button1" class="btn2" text="분류등록" onclick="button1_onclick"/>
- <Button position="absolute 324 0 377 20" id="button4" class="btn2" text="초기화" onclick="button4_onclick"/>
- <Static text="~" position="absolute 172 81 180 101" id="caption10"/>
- <Static text="협진회의록" position="absolute 0 158 121 178" id="caption11" class="tit_2"/>
- <Static text="상정과" position="absolute 0 103 70 126" id="caption12" class="cell_1"/>
- <Static text="진료의" position="absolute 214 104 284 127" id="caption13" class="cell_1"/>
- <Edit position="absolute 287 105 400 125" id="cmb_cnstorddrid" enable="false"/>
- <Button position="absolute 190 28 210 48" id="btn_spctcle" class="icon_search" text="" onclick="btn_spctcle_onclick"/>
- <Combo position="absolute 74 130 212 150" id="cmb_cnsttypecd" innerdataset="ds_M0525" datacolumn="cdnm" codecolumn="cdid" onitemchanged="cmb_cnsttypecd_onitemchanged"/>
- <Edit position="absolute 73 28 188 48" id="ipt_pid" taborder="1" onkeydown="ipt_pid_onkeydown"/>
- <Edit position="absolute 287 28 400 48" id="ipt_hngnm" taborder="2" onkeydown="ipt_hngnm_onkeydown"/>
- <Edit readonly="false" position="absolute 74 54 140 74" align="align:center middle;" id="opt_sa" enable="false" style="align:center middle;"/>
- <Calendar position="absolute 187 80 280 100" align="align:center middle;" id="ipt_valitodd" class="input_s_essential" taborder="1" mask="yyyy-mm-dd" onchanged="ipt_valitodd_onchanged" dateformat="yyyy-MM-dd" value="null"/>
- <Calendar position="absolute 74 80 167 100" align="align:center middle;" id="ipt_valifromdd" class="input_s_essential" taborder="1" mask="yyyy-mm-dd" onchanged="ipt_valifromdd_onchanged" dateformat="yyyy-MM-dd" value="null"/>
- <Combo position="absolute 74 105 212 125" id="cmb_cnstorddeptcd" innerdataset="@ds_orddept" datacolumn="depthngnm" codecolumn="deptcd"/>
- <Grid position="absolute 470 26 885 150" id="grd_cnstpathistinfo" binddataset="ds_grd_cnstpathistinfo" anchor="left top right" cellsizingtype="col">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="197"/>
- <Column size="119"/>
- <Column size="96"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell text="genrdd"/>
- <Cell col="1" text="genrno"/>
- <Cell col="2" text="cnsttypecd"/>
- <Cell col="3" text="cnsttrgtcd"/>
- <Cell col="4" text="valitodd"/>
- <Cell col="5" text="cnstorddeptcd"/>
- <Cell col="6" text="cnstorddrid"/>
- <Cell col="7" text="pid"/>
- <Cell col="8" text="orddd"/>
- <Cell col="9" text="cretno"/>
- <Cell col="10" text="hngnm"/>
- <Cell col="11" text="sa"/>
- <Cell col="12" text="협진팀명"/>
- <Cell col="13" text="상정과"/>
- <Cell col="14" text="적용일"/>
- </Band>
- <Band id="body">
- <Cell text="bind:genrdd"/>
- <Cell col="1" text="bind:genrno"/>
- <Cell col="2" text="bind:coopteamcd"/>
- <Cell col="3" text="bind:cnstteamseq"/>
- <Cell col="4" text="bind:valitodd"/>
- <Cell col="5" text="bind:cnstorddeptcd"/>
- <Cell col="6" text="bind:cnstorddrid"/>
- <Cell col="7" text="bind:pid"/>
- <Cell col="8" text="bind:cretno"/>
- <Cell col="9" text="bind:orddd"/>
- <Cell col="10" text="bind:hngnm"/>
- <Cell col="11" text="bind:sa"/>
- <Cell col="12" text="bind:coopteamnm"/>
- <Cell col="13" text="bind:cnstdeptnm"/>
- <Cell col="14" text="bind:valifromdd" mask="####-##-##"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button position="absolute 808 155 883 175" id="button3" class="btn2" text="회의록작성" onclick="button3_onclick" anchor="top right"/>
- <Grid position="absolute 0 179 885 487" id="grd_cnstconflist" binddataset="ds_grd_cnstconflist" oncelldblclick="grd_cnstconflist_oncelldblclick" anchor="all" cellsizingtype="col">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="116"/>
- <Column size="100"/>
- <Column size="659"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell text="genrdd"/>
- <Cell col="1" text="genrno"/>
- <Cell col="2" text="confrecno"/>
- <Cell col="3" text="회의일시"/>
- <Cell col="4" text="협진분류명"/>
- <Cell col="5" text="회의제목"/>
- </Band>
- <Band id="body">
- <Cell text="bind:genrdd"/>
- <Cell col="1" text="bind:genrno"/>
- <Cell col="2" text="bind:confrecno"/>
- <Cell col="3" style="align:left middle;" text="bind:confdt" mask="####-##-## ##:##"/>
- <Cell col="4" style="align:left middle;padding:0 0 0 0;" text="bind:coopteamnm"/>
- <Cell col="5" style="align:left middle;" text="bind:conftitl"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static id="opt_status" position="absolute 325 80 400 100"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_grd_cnstpathistinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false" onrowposchanged="ds_grd_cnstpathistinfo_onrowposchanged">
- <ColumnInfo>
- <Column id="genrdd" type="STRING"/>
- <Column id="genrno" type="STRING"/>
- <Column id="coopteamcd" type="STRING"/>
- <Column id="cnstteamseq" type="STRING"/>
- <Column id="valitodd" type="STRING"/>
- <Column id="cnstorddeptcd" type="STRING"/>
- <Column id="cnstorddrid" type="STRING"/>
- <Column id="pid" type="STRING"/>
- <Column id="cretno" type="STRING"/>
- <Column id="orddd" type="STRING"/>
- <Column id="hngnm" type="STRING"/>
- <Column id="sa" type="STRING"/>
- <Column id="coopteamnm" type="STRING"/>
- <Column id="cnstdeptnm" type="STRING"/>
- <Column id="valifromdd" type="STRING"/>
- </ColumnInfo>
- <Rows/>
- </Dataset>
- <Dataset id="ds_grd_cnstconflist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="genrdd" type="STRING"/>
- <Column id="genrno" type="STRING"/>
- <Column id="confrecno" type="STRING"/>
- <Column id="confdt" type="STRING"/>
- <Column id="coopteamnm" type="STRING"/>
- <Column id="conftitl" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_cnstpatinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="genrdd" type="STRING" size="256"/>
- <Column id="genrno" type="STRING" size="256"/>
- <Column id="status" type="STRING" size="256"/>
- <Column id="pid" type="STRING" size="256"/>
- <Column id="hngnm" type="STRING" size="256"/>
- <Column id="sa" type="STRING" size="256"/>
- <Column id="valifromdd" type="STRING" size="256"/>
- <Column id="valitodd" type="STRING" size="256"/>
- <Column id="cnstorddeptcd" type="STRING" size="256"/>
- <Column id="cnstorddrnm" type="STRING" size="256"/>
- <Column id="cnstteamseq" type="STRING" size="256"/>
- <Column id="coopteamcd" type="STRING" size="256"/>
- <Column id="coopteamnm" type="STRING" size="256"/>
- <Column id="orddd" type="STRING" size="256"/>
- <Column id="cretno" type="STRING" size="256"/>
- <Column id="ioflag" type="STRING" size="256"/>
- <Column id="roomcd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_orddept" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="deptcd" type="STRING" size="256"/>
- <Column id="depthngnm" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_reqTRMMO03603" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="pid" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_reqTRMMO03604" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="confdt" type="STRING" size="256"/>
- <Column id="genrdd" type="STRING" size="256"/>
- <Column id="genrno" type="STRING" size="256"/>
- <Column id="confrecno" type="STRING" size="256"/>
- <Column id="state" type="STRING" size="256"/>
- <Column id="pid" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_M0525" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_tmpcnstpatinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_savedata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="ipt_pid" propid="value" datasetid="ds_cnstpatinfo" columnid="pid"/>
- <BindItem id="item1" compid="ipt_hngnm" propid="value" datasetid="ds_cnstpatinfo" columnid="hngnm"/>
- <BindItem id="item2" compid="opt_sa" propid="value" datasetid="ds_cnstpatinfo" columnid="sa"/>
- <BindItem id="item3" compid="ipt_valifromdd" propid="value" datasetid="ds_cnstpatinfo" columnid="valifromdd"/>
- <BindItem id="item4" compid="ipt_valitodd" propid="value" datasetid="ds_cnstpatinfo" columnid="valitodd"/>
- <BindItem id="item5" compid="cmb_cnstorddeptcd" propid="value" datasetid="ds_cnstpatinfo" columnid="cnstorddeptcd"/>
- <BindItem id="item6" compid="cmb_cnstorddrid" propid="value" datasetid="ds_cnstpatinfo" columnid="cnstorddrnm"/>
- <BindItem id="item7" compid="cmb_cnsttypecd" propid="value" datasetid="ds_cnstpatinfo" columnid="coopteamcd"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2014-08-29
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2014-08-29 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- include "com_commonxp::comm_main.xjs";
- include "emr_prcpmngtxp::MMO001.xjs";
- function SPMMO03600_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SPMMO03600_onload(obj:Form, e:LoadEventInfo)
- {
- grdf_setToolTipBind(grd_cnstpathistinfo);
- grdf_setToolTipBind(grd_cnstconflist);
-
- fInitialize_SPMMO03600();
- fChkStatus();
- }
- function button4_onclick(obj:Button, e:ClickEventInfo)
- {
- fInitCnstPatInfo();
- fChkStatus();
- }
- function button37_onclick(obj:Button, e:ClickEventInfo)
- {
- fClkBtnDel();
- fChkStatus();
- }
- function button2_onclick(obj:Button, e:ClickEventInfo)
- {
- fReqExeSaveCnstPatInfo();
- fChkStatus();
- }
- function ipt_pid_onkeydown(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13)
- btn_spctcle.onclick.fireEvent(btn_spctcle, new ClickEventInfo);
- }
- function btn_spctcle_onclick(obj:Button, e:ClickEventInfo)
- {
- var pid = utlf_trim(ds_cnstpatinfo.getColumn(0, "pid"));
- ds_cnstpatinfo.setColumn(0, "pid", pid);
-
- frmf_setParameter("SPMMO017300_pid", pid);
- frmf_modal("SPMMO17300", "SPMMO17300", null, null, null, null, null, null, null, null, null, null, "M");
- var pid = frmf_getParameter("SPMMO017300_pid");
- if(!utlf_isNull(pid)) {
- var hngnm = frmf_getParameter("SPMMO017300_hngnm");
- var sa = frmf_getParameter("SPMMO017300_sa");
- var cretno = frmf_getParameter("SPMMO017300_cretno");
- var orddd = frmf_getParameter("SPMMO017300_orddd");
- var cnstdeptcd = frmf_getParameter("SPMMO017300_cnstdeptcd");
- var coopteamcd = frmf_getParameter("SPMMO017300_coopteamcd");
- var orddrnm = frmf_getParameter("SPMMO017300_orddrnm");
- var ioflag = frmf_getParameter("SPMMO017300_ioflag");
-
- ds_cnstpatinfo.setColumn(0, "pid" , pid);
- ds_cnstpatinfo.setColumn(0, "hngnm" , hngnm);
- ds_cnstpatinfo.setColumn(0, "sa" , sa);
- ds_cnstpatinfo.setColumn(0, "cretno" , cretno);
- ds_cnstpatinfo.setColumn(0, "orddd" , orddd);
- ds_cnstpatinfo.setColumn(0, "cnstorddeptcd", cnstdeptcd);
- ds_cnstpatinfo.setColumn(0, "coopteamcd" , coopteamcd);
- ds_cnstpatinfo.setColumn(0, "cnstorddrnm" , orddrnm);
- ds_cnstpatinfo.setColumn(0, "ioflag" , ioflag);
- fReqGetCnstPatHistList(); // 협진환자 이력조회
- fReqGetCnstConfRecList(pid);
- }
- }
- function ipt_hngnm_onkeydown(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13)
- btn_spctcle.onclick.fireEvent(btn_spctcle, new ClickEventInfo);
- }
- function ipt_valifromdd_onchanged(obj:Calendar, e:ChangeEventInfo)
- {
- if(ipt_valifromdd.value > ipt_valitodd.value){
- sysf_messageBox("시작일이 종요일보다 클 수", "I004");
- ipt_valitodd.value = ipt_valifromdd.value;
- }
- }
- function ipt_valitodd_onchanged(obj:Calendar, e:ChangeEventInfo)
- {
- if(ipt_valifromdd.value > ipt_valitodd.value){
- sysf_messageBox("종료일이 시작일보다 작을 수", "I004");
- ipt_valifromdd.value = ipt_valitodd.value;
- }
- }
- function cmb_cnsttypecd_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
- // 아래 코드 의미 없어서 주석
- // var coopteamcd = cmb_cnsttypecd.value;
- // var coopteamnm = cmb_cnsttypecd.text;
- //
- // ds_cnstpatinfo.setColumn(0, "coopteamcd" , coopteamcd);
- // ds_cnstpatinfo.setColumn(0, "coopteamnm" , coopteamnm);
- }
- function button1_onclick(obj:Button, e:ClickEventInfo)
- {
- frmf_modal("SPMMO03900", "SPMMO03900", null, null, null, null, null, null, null, null, null, null, "M");
- }
- function ds_grd_cnstpathistinfo_onrowposchanged(obj:Dataset, e:DSRowPosChangeEventInfo)
- {
- fClkCnstPatHistListGrid();
- fChkStatus();
- }
- function button3_onclick(obj:Button, e:ClickEventInfo)
- {
- fClkBtnCnstConfRec();
- }
- function grd_cnstconflist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
- {
- fDbClkGrdCnstConfRec();
- }
- /**
- * @desc : 화면 초기화
- * @
- * @param :
- * @return :
- * @author : 오지훈
- * @---------------------------------------------------
- */
- function fInitialize_SPMMO03600(){
- appf_getCodeList([{dsNm: "ds_M0525", cdGrpId: "M0525"}], true);
- var inreq = opener.frmf_getParameter("SPMMO03600_inreqpid");
-
- lf_mmbfGetDeptCodeComboList(ds_orddept, "A");
- // if (isNull(inreq)) { // 진료대상자에서 오픈할 경우
- fInitCnstPatInfo(); //협진환자정보 초기화
-
- fReqGetCnstPatHistList(); //협진환자 이력조회
-
- var pid = ds_cnstpatinfo.getColumn(0, "pid");
- fReqGetCnstConfRecList(pid);
- /*
- } else { // 입원의뢰서에서 띄울경우
- model.setValue(sCNSTPATINFO_PATH + "/status", "i");
- model.setValue(sCNSTPATINFO_PATH + "/pid", inreq);
- mmbfGetDeptCodeComboList("/root/send/reqdata", "/root/init/orddept", "A"); //부서코드 콤보
- fGetCnstInfo();
- model.setValue(sCNSTPATINFO_PATH + "/valifromdd" , getCurrentDate());
- model.setValue(sCNSTPATINFO_PATH + "/valitodd" , "99991231");
- }
- */
- }
- /**
- * @desc : 협진환자이력조회조회 조회
- * @
- * @param :
- * @return :
- * @author : 오지훈
- * @---------------------------------------------------
- */
- function fReqGetCnstPatHistList(){
- var pid = ds_cnstpatinfo.getColumn(0, "pid");
- ds_reqTRMMO03603.setColumn(0, "pid", pid);
-
- ds_grd_cnstpathistinfo.enableevent = false;
-
- var oParam = {};
- oParam.id = "TRMMO03603";
- oParam.service = "prcpmngtapp.ConcPatMngt";
- oParam.method = "reqGetCnstPatHistInfo";
- oParam.inds = "req=" + "ds_reqTRMMO03603";
- oParam.outds = "ds_grd_cnstpathistinfo=cnstpathistlist";
- oParam.async = false;
- tranf_submit(oParam);
-
- ds_grd_cnstpathistinfo.enableevent = true;
- ds_grd_cnstpathistinfo.rowposition = -1;
- }
- /**
- * @desc : 협진환자 저장
- * @
- * @param :
- * @return :
- * @author : 오지훈
- * @---------------------------------------------------
- */
- function fReqExeSaveCnstPatInfo(){
- var coopteamcd = ds_cnstpatinfo.getColumn(0, "coopteamcd");
- //var cnstteamseq = model.getValue(sCNSTPATINFO_PATH + "/cnstteamseq");
-
- //if(coopteamcd == "" || cnstteamseq == ""){
- if(utlf_isNull(coopteamcd)){
- sysf_messageBox("협진분류를", "C001");
- return;
- }
-
- var status = ds_cnstpatinfo.getColumn(0, "status");
- if(status == "u"){ //수정인 경우, 변경된 사항 여부 확인
- if(lf_compareNodeVal(ds_cnstpatinfo, ds_tmpcnstpatinfo)==false){
- sysf_messageBox("변경된 사항이", "I004");
- return;
- }
- }
-
- ds_savedata.copyData(ds_cnstpatinfo);
-
- var oParam = {};
- oParam.id = "TXMMO03601";
- oParam.service = "prcpmngtapp.ConcPatMngt";
- oParam.method = "reqExeSaveCnstPatInfo";
- oParam.inds = "req=" + "ds_savedata";
- oParam.async = false;
- oParam.callback = "cf_TXMMO03601";
- tranf_submit(oParam);
- }
- function cf_TXMMO03601(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
-
- var status = ds_cnstpatinfo.getColumn(0, "status");
-
- fReqGetCnstPatHistList(); //협진환자 이력 조회
- if(status == "d"){ //삭제인 경우
- fInitCnstPatInfo();
- }else if(status == "i"){ //신규인 경우, 협진내역 최상단 정보가 신규등록된 정보
- ds_grd_cnstpathistinfo.rowposition = 0;
- fClkCnstPatHistListGrid();
- }else if(status == "u"){ //수정인 경우,
- var genrdd = ds_cnstpatinfo.getColumn(0, "genrdd");
- var genrno = ds_cnstpatinfo.getColumn(0, "genrno");
- var startrow = ds_grd_cnstpathistinfo.findRow("genrdd", genrdd, 0);
- var rsltrow = ds_grd_cnstpathistinfo.findRow("genrno", genrno, startrow);
- ds_grd_cnstpathistinfo.rowposition = rsltrow;
- //ds_grd_cnstpathistinfo.onrowposchanged.fireEvent(ds_grd_cnstpathistinfo, new DSRowPosChangeEventInfo);
-
- ds_tmpcnstpatinfo.copyData(ds_savedata); //수정 저장의 경우, 변경된 사항여부를 확인하기 위해 tmp instance copy
- }
- }
- /**
- * @desc : 협진환자 정보 초기화
- * @
- * @param :
- * @return :
- * @author : 오지훈
- * @---------------------------------------------------
- */
- function fInitCnstPatInfo(){
- var inreq = opener.frmf_getParameter("SPMMO03600_inreqpid");
- var paminfo = sysf_getGlobalVariable("paminfo");
- var pid = opener.frmf_getParameter("SPMMO03600_pid");
- var orddd = opener.frmf_getParameter("SPMMO03600_orddd");
- var ioflag = opener.frmf_getParameter("SPMMO03600_ioflag");
- var patinfo = opener.frmf_getParameter("SPMMO03600_patinfo");
- var roomcd = opener.frmf_getParameter("SPMMO03600_roomcd");
- if(!utlf_isNull(patinfo)){ //화면 parameter처리
- var patinfoarray = patinfo.split("▦");
- var hngnm = patinfoarray[0];
- var sa = patinfoarray[1];
- var cnstorddeptcd = patinfoarray[2];
- var cnstorddrid = patinfoarray[3];
- var cretno = patinfoarray[4];
- var orddrnm = patinfoarray[5];
- var coopteamcd = patinfoarray[6];
- ds_cnstpatinfo.setColumn(0, "status" , "i");
- ds_cnstpatinfo.setColumn(0, "pid" , pid);
- ds_cnstpatinfo.setColumn(0, "orddd" , orddd);
- ds_cnstpatinfo.setColumn(0, "cretno" , cretno);
- ds_cnstpatinfo.setColumn(0, "hngnm" , hngnm);
- ds_cnstpatinfo.setColumn(0, "cnstorddrnm" , orddrnm);
- ds_cnstpatinfo.setColumn(0, "ioflag" , ioflag);
- ds_cnstpatinfo.setColumn(0, "sa" , sa);
- ds_cnstpatinfo.setColumn(0, "coopteamcd" , coopteamcd);
- ds_cnstpatinfo.setColumn(0, "coopteamnm" , cmb_cnsttypecd.text);
- ds_cnstpatinfo.setColumn(0, "cnstorddeptcd" , cnstorddeptcd);
- ds_cnstpatinfo.setColumn(0, "valifromdd" , utlf_getCurrentDate());
- ds_cnstpatinfo.setColumn(0, "valitodd" , "99991231");
-
- if (utlf_isNull(roomcd)) {
- ds_cnstpatinfo.setColumn(0, "roomcd", "외래");
- } else {
- ds_cnstpatinfo.setColumn(0, "roomcd", roomcd);
- }
-
- } else if(!utlf_isNull(paminfo) && paminfo.length > 0){
- var pid = appf_getPatientInfoDetail("pid");
- var ioflag = appf_getPatientInfoDetail("ioflag");
- var hngnm = appf_getPatientInfo("pname");
- var sa = appf_getPatientInfo("age");
- var cnstorddeptcd = appf_getPatientInfoDetail("orddeptcd");
- var cretno = appf_getPatientInfoDetail("cretno");
- var orddrnm = appf_getPatientInfo("apntdr");
- var coopteamcd = appf_getPatientInfoDetail("coopteamcd");
- if (ioflag == "O") {
- var orddd = appf_getPatientInfoDetail("orddd");
- } else {
- var orddd = appf_getPatientInfoDetail("indd");
- }
-
- ds_cnstpatinfo.setColumn(0, "status" , "i");
- ds_cnstpatinfo.setColumn(0, "pid" , pid);
- ds_cnstpatinfo.setColumn(0, "orddd" , orddd);
- ds_cnstpatinfo.setColumn(0, "cretno" , cretno);
- ds_cnstpatinfo.setColumn(0, "hngnm" , hngnm);
- ds_cnstpatinfo.setColumn(0, "cnstorddrnm" , orddrnm);
- ds_cnstpatinfo.setColumn(0, "ioflag" , ioflag);
- ds_cnstpatinfo.setColumn(0, "sa" , sa);
- ds_cnstpatinfo.setColumn(0, "coopteamcd" , coopteamcd);
- ds_cnstpatinfo.setColumn(0, "coopteamnm" , cmb_cnsttypecd.text);
- ds_cnstpatinfo.setColumn(0, "cnstorddeptcd", cnstorddeptcd);
- ds_cnstpatinfo.setColumn(0, "valifromdd" , utlf_getCurrentDate());
- ds_cnstpatinfo.setColumn(0, "valitodd" , "99991231");
-
- if (utlf_isNull(roomcd)) {
- ds_cnstpatinfo.setColumn(0, "roomcd", "외래");
- } else {
- ds_cnstpatinfo.setColumn(0, "roomcd", roomcd);
- }
-
- } else if (utlf_isNull(inreq)) { // 진료대상자에서 오픈할 경우
- ds_cnstpatinfo.setColumn(0, "status", "i");
- ds_cnstpatinfo.setColumn(0, "pid", inreq);
-
- fGetCnstInfo();
-
- ds_cnstpatinfo.setColumn(0, "valifromdd" , utlf_getCurrentDate());
- ds_cnstpatinfo.setColumn(0, "valitodd" , "99991231");
- }
- }
- /**
- * @desc : 협진환자 이력정보 그리드 클릭
- * @
- * @param :
- * @return :
- * @author : 오지훈
- * @---------------------------------------------------
- */
- function fClkCnstPatHistListGrid(){
- if(ds_grd_cnstpathistinfo.rowposition > -1){
- var currow = ds_grd_cnstpathistinfo.rowposition;
- var genrdd = ds_grd_cnstpathistinfo.getColumn(currow, "genrdd");
- var genrno = ds_grd_cnstpathistinfo.getColumn(currow, "genrno");
- var pid = ds_grd_cnstpathistinfo.getColumn(currow, "pid");
- var coopteamcd = ds_grd_cnstpathistinfo.getColumn(currow, "coopteamcd");
- var cnstteamseq = ""//ds_grd_cnstpathistinfo.getColumn(currow, "cnstteamseq");
- var valifromdd = ds_grd_cnstpathistinfo.getColumn(currow, "valifromdd");
- var valitodd = ds_grd_cnstpathistinfo.getColumn(currow, "valitodd");
- var orddd = ds_grd_cnstpathistinfo.getColumn(currow, "orddd");
- var cretno = ds_grd_cnstpathistinfo.getColumn(currow, "cretno");
- var coopteamnm = ds_grd_cnstpathistinfo.getColumn(currow, "coopteamnm");
- var cnstorddeptcd = ds_grd_cnstpathistinfo.getColumn(currow, "cnstorddeptcd");
- ds_cnstpatinfo.setColumn(0, "status" , "u");
- ds_cnstpatinfo.setColumn(0, "genrdd" , genrdd);
- ds_cnstpatinfo.setColumn(0, "genrno" , genrno);
- ds_cnstpatinfo.setColumn(0, "coopteamcd" , coopteamcd);
- ds_cnstpatinfo.setColumn(0, "cnstteamseq" , cnstteamseq);
- ds_cnstpatinfo.setColumn(0, "valifromdd" , valifromdd);
- ds_cnstpatinfo.setColumn(0, "valitodd" , valitodd);
- ds_cnstpatinfo.setColumn(0, "coopteamnm" , coopteamnm);
- ds_cnstpatinfo.setColumn(0, "orddd" , orddd);
- ds_cnstpatinfo.setColumn(0, "cretno" , cretno);
- ds_cnstpatinfo.setColumn(0, "cnstorddeptcd" , cnstorddeptcd);
- //협진이력의 진료과에 해당 의사리스트로 변경
- //mmbfGetUserComboList("/root/send/reqdata" ,"/root/init/userlist", cnstorddeptcd, "0330");
- //model.setValue(sCNSTPATINFO_PATH + "/cnstorddrid", cnstorddrid);
- //협진이력의 진료과에 해당하는 협진분류로 변경
- //mmofReqGetCnstTypeComboList("/root/send/reqdata", "/root/init/cnsttypecombo", cnstorddeptcd);
-
- ds_tmpcnstpatinfo.copyData(ds_cnstpatinfo); //수정 저장의 경우, 변경된 사항여부를 확인하기 위해 tmp instance copy
- //선택한 협진에 대한 협진회의록 조회
- fReqGetCnstConfRecList(pid);
- }
- }
- /**
- * @desc : 회의록 작성 버튼 클릭(회의록 화면 신규등록으로 open)
- * @
- * @param :
- * @return :
- * @author : 오지훈
- * @---------------------------------------------------
- */
- function fClkBtnCnstConfRec(){
- //SPMMO04100_confinfo
- //genrdd 발생일자
- //genrno 발생번호
- //confrecno 회의록번호
- var genrdd = ds_cnstpatinfo.getColumn(0, "genrdd");
- var genrno = ds_cnstpatinfo.getColumn(0, "genrno");
- var confrecno = 0;
- var confinfo = genrdd + "▦" + genrno + "▦" + confrecno;
-
- if(utlf_isNull(genrdd) || utlf_isNull(genrno)) { //if(genrdd == "" || genrno == ""){
- sysf_messageBox("환자의 협진 등록없이 회의록을 작성", "E001");
- return;
- }
-
- var cnstorddeptcd = cmb_cnstorddeptcd.text;
-
- if(utlf_isNull(cnstorddeptcd)){
- sysf_messageBox("진료과를", "C002");
- cmb_cnstorddeptcd.setFocus();
- return;
- }
- /*
- var orddrnm = cmb_cnstorddrid.label;
- if(orddrnm.length < 1){
- messageBox("진료의를", "C002");
- model.setFocus("cmb_cnstorddrid");
- return;
- }
- */
- //SPMMO04100_patinfo
- //pid 등록번호
- //hngnm 환자명
- //sa 성별
- //orddeptcd 진료과코드
- //orddrid 진료의ID
- //roomcd 병실
- var pid = ds_cnstpatinfo.getColumn(0, "pid");
- var hngnm = ds_cnstpatinfo.getColumn(0, "hngnm");
- var sa = ds_cnstpatinfo.getColumn(0, "sa");
- var orddeptcd = ds_cnstpatinfo.getColumn(0, "cnstorddeptcd");
- var orddrid = ds_cnstpatinfo.getColumn(0, "cnstorddrnm");
- var orddd = ds_cnstpatinfo.getColumn(0, "orddd");
- var roomcd = ds_cnstpatinfo.getColumn(0, "roomcd");
- var coopteamcd = ds_cnstpatinfo.getColumn(0, "coopteamcd");
- var coopteamnm = ds_cnstpatinfo.getColumn(0, "coopteamnm");
- var ioflag = ds_cnstpatinfo.getColumn(0, "ioflag");
-
- var patinfo = pid + "▦" + hngnm + "▦" + sa + "▦" + orddeptcd + "▦" + orddrid + "▦" + orddd + "▦" + roomcd + "▦" + coopteamnm + "▦" + coopteamcd;
- frmf_setParameter("SPMMO04100_status" , "i");
- frmf_setParameter("SPMMO04100_patinfo" , patinfo);
- frmf_setParameter("SPMMO04100_confinfo", confinfo);
- frmf_setParameter("SPMMO04100_ioflag" , ioflag);
- frmf_modal("SPMMO04100", "SPMMO04100", null, null, null, null, null, null, null, null, null, null, "M");
-
- fReqGetCnstConfRecList(pid); //회의록 작성 종료 후 재조회
- }
- /**
- * @desc : 협진회의록 이력조회
- * @
- * @param :
- * @return :
- * @author : 오지훈
- * @---------------------------------------------------
- */
- function fReqGetCnstConfRecList(pid, confdt, genrdd, genrno, confrecno, state){
- ds_reqTRMMO03604.setColumn(0, "confdt" , confdt);
- ds_reqTRMMO03604.setColumn(0, "genrdd" , genrdd);
- ds_reqTRMMO03604.setColumn(0, "genrno" , genrno);
- ds_reqTRMMO03604.setColumn(0, "confrecno" , confrecno);
- ds_reqTRMMO03604.setColumn(0, "state" , state);
- ds_reqTRMMO03604.setColumn(0, "pid" , pid);
-
- var oParam = {};
- oParam.id = "TRMMO03604";
- oParam.service = "prcpmngtapp.ConcPatMngt";
- oParam.method = "reqGetCnstConfRecList";
- oParam.inds = "req=" + "ds_reqTRMMO03604";
- oParam.outds = "ds_grd_cnstconflist=cnstconfreclist";
- oParam.async = false;
- tranf_submit(oParam);
-
- ds_grd_cnstconflist.rowposition = -1;
- }
- /**
- * @desc : 협진회의록 정보 보기
- * @ : 협진회의록 화면을 통해 보여줌, 수정가능 하도록 처리
- * @param :
- * @return :
- * @author : 오지훈
- * @---------------------------------------------------
- */
- function fDbClkGrdCnstConfRec(){
- var currow = ds_grd_cnstconflist.rowposition;
- if(currow < 0){
- return;
- }
- //SPMMO04100_patinfo
- //pid 등록번호
- //hngnm 환자명
- //sa 성별
- //orddeptcd 진료과코드
- //orddrid 진료의ID
- var pid = ds_cnstpatinfo.getColumn(0, "pid");
- var hngnm = ds_cnstpatinfo.getColumn(0, "hngnm");
- var sa = ds_cnstpatinfo.getColumn(0, "sa");
- var orddeptcd = ds_cnstpatinfo.getColumn(0, "cnstorddeptcd");
- var orddrid = ds_cnstpatinfo.getColumn(0, "cnstorddrnm");
- var orddd = ds_cnstpatinfo.getColumn(0, "orddd");
- var roomcd = ds_cnstpatinfo.getColumn(0, "roomcd");
- var coopteamcd = ds_cnstpatinfo.getColumn(0, "coopteamcd");
- var coopteamnm = ds_cnstpatinfo.getColumn(0, "coopteamnm");
- var ioflag = ds_cnstpatinfo.getColumn(0, "ioflag");
-
- var patinfo = pid + "▦" + hngnm + "▦" + sa + "▦" + orddeptcd + "▦" + orddrid + "▦" + orddd + "▦" + roomcd + "▦" + coopteamnm + "▦" + coopteamcd ;
- //SPMMO04100_confinfo
- //genrdd 발생일자
- //genrno 발생번호
- //confrecno 회의록번호
- var genrdd = ds_grd_cnstconflist.getColumn(currow, "genrdd");
- var genrno = ds_grd_cnstconflist.getColumn(currow, "genrno");
- var confrecno = ds_grd_cnstconflist.getColumn(currow, "confrecno");
- var confdt = ds_grd_cnstconflist.getColumn(currow, "confdt");
- var confinfo = genrdd + "▦" + genrno + "▦" + confrecno + "▦" + confdt + "▦" + pid + "▦A";
- frmf_setParameter("SPMMO04100_status" , "u");
- frmf_setParameter("SPMMO04100_patinfo" , patinfo);
- frmf_setParameter("SPMMO04100_confinfo", confinfo);
- frmf_modal("SPMMO04100", "SPMMO04100", null, null, null, null, null, null, null, null, null, null, "M");
- fReqGetCnstConfRecList(pid);
- }
- /**
- * @desc : 삭제버튼 클릭
- * @ : 사용자에게 삭제 여부 확인 후, 처리
- * @ : 신규인 경우는 협진내역을 사용자에게 선택하도록 메시지처리
- * @param :
- * @return :
- * @author : 오지훈
- * @---------------------------------------------------
- */
- function fClkBtnDel(){
- var status = ds_cnstpatinfo.getColumn(0, "status");
- if(status == "i"){ //신규인 경우는 바로 return;
- sysf_messageBox("삭제할 환자의 협진 정보를", "C001");
- return;
- }
- var coopteamnm = ds_cnstpatinfo.getColumn(0, "coopteamnm");
- var hngnm = ds_cnstpatinfo.getColumn(0, "hngnm");
- var rtnval = sysf_messageBox("[" + coopteamnm + "]협진 [" + hngnm + "]환자를", "Q001");
- if(rtnval == 6){ //yes
- ds_cnstpatinfo.setColumn(0, "status", "d");
- fReqExeSaveCnstPatInfo();
- }else{ //no
- return;
- }
- }
- /**
- * @desc : 환자 등록번호를 통한 협진환자의 내역 가져오기
- * @
- * @param :
- * @return :
- * @author : 김영학
- * @---------------------------------------------------
- */
- function fGetCnstInfo() {
- frmf_setParameter("SPMMO017300_pid", ds_cnstpatinfo.getColumn(0, "pid"));
- frmf_modal("SPMMO17300", "SPMMO17300", null, null, null, null, null, null, null, null, null, null, "M");
-
- var pid = frmf_getParameter("SPMMO017300_pid");
- var hngnm = frmf_getParameter("SPMMO017300_hngnm");
- var sa = frmf_getParameter("SPMMO017300_sa");
- var cretno = frmf_getParameter("SPMMO017300_cretno");
- var orddd = frmf_getParameter("SPMMO017300_orddd");
- var cnstdeptcd = frmf_getParameter("SPMMO017300_cnstdeptcd");
- var coopteamcd = frmf_getParameter("SPMMO017300_coopteamcd");
- var orddrnm = frmf_getParameter("SPMMO017300_orddrnm");
- var ioflag = frmf_getParameter("SPMMO017300_ioflag");
- var roomcd = frmf_getParameter("SPMMO017300_roomcd");
- fReqGetCnstPatHistList(); // 협진환자 이력조회
- ds_cnstpatinfo.setColumn(0, "pid" , pid);
- ds_cnstpatinfo.setColumn(0, "hngnm" , hngnm);
- ds_cnstpatinfo.setColumn(0, "sa" , sa);
- ds_cnstpatinfo.setColumn(0, "cretno" , cretno);
- ds_cnstpatinfo.setColumn(0, "orddd" , orddd);
- ds_cnstpatinfo.setColumn(0, "cnstorddeptcd" , cnstdeptcd);
- ds_cnstpatinfo.setColumn(0, "coopteamcd" , coopteamcd);
- ds_cnstpatinfo.setColumn(0, "cnstorddrnm" , orddrnm);
- ds_cnstpatinfo.setColumn(0, "ioflag" , ioflag);
- ds_cnstpatinfo.setColumn(0, "roomcd" , roomcd);
-
- fReqGetCnstConfRecList(pid);
- }
- /**
- * @desc : 입력상태를 보여줌
- * @
- * @param :
- * @return :
- * @author : 김영학
- * @---------------------------------------------------
- */
- function fChkStatus() {
- var status = ds_cnstpatinfo.getColumn(0, "status");
- if (status == "u") {
- opt_status.text = "수정상태";
- } else {
- opt_status.text = "삽입";
- }
- }]]></Script>
- </Form>
- </FDL>
|