123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476 |
- <?xml version="1.0" encoding="utf-8" standalone="no"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMMND03600" position="absolute 0 0 550 368" titletext="외래예약진료의변경" onload="SMMND03600_onload" onbeforeclose="SMMND03600_onload SMMND03600_onbeforeclose">
- <Layouts>
- <Layout>
- <Static id="caption12" class="tit_2" position="absolute 0 9 144 26" style="align: middle;" text="외래예약진료의변경"/>
- <Grid id="grd_bfpatupinfo" binddataset="ds_main_patdruplist_patdrupinfo" position="absolute 0 30 540 170" style="" autofittype="col" cellsizingtype="col">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="87"/>
- <Column size="83"/>
- <Column size="42"/>
- <Column size="77"/>
- <Column size="77"/>
- <Column size="49"/>
- <Column size="83"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <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="S_A"/>
- <Cell col="3" text="적용시작일"/>
- <Cell col="4" text="적용종료일"/>
- <Cell col="5" text="건수"/>
- <Cell col="6" text="진료의"/>
- <Cell col="7" text="caption1"/>
- <Cell col="8" text="지정의사ID"/>
- <Cell col="9" text="지정의사ID"/>
- <Cell col="10" text="지정의사ID"/>
- </Band>
- <Band id="body">
- <Cell text="bind:pid"/>
- <Cell col="1" text="bind:hngnm"/>
- <Cell col="2" text="bind:sexage"/>
- <Cell col="3" text="bind:rsrvfromdd"/>
- <Cell col="4" text="bind:rsrvtodd"/>
- <Cell col="5" text="bind:rsrvcnt"/>
- <Cell col="6" text="bind:drnm"/>
- <Cell col="7" text="bind:drid"/>
- <Cell col="8" text="bind:fstdrapntid"/>
- <Cell col="9" text="bind:scnddrapntid"/>
- <Cell col="10" text="bind:lastdrapntid"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button id="btn_hdsave" class="btn5" position="absolute 495 5 537 24" style="" text="변경" onclick="btn_hdsave_onclick"/>
- <Shape id="line9" class="line_1" linetype="horizontal" position="absolute 0 26 540 30" style="strokepen:3 solid #33bbbbff;" anchor="default"/>
- <Grid id="grd_afpatupinfo" binddataset="ds_main_afpatdruplist_afpatdrupinfo" position="absolute 0 195 540 335" style="" autofittype="col" cellsizingtype="col">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="87"/>
- <Column size="83"/>
- <Column size="42"/>
- <Column size="77"/>
- <Column size="77"/>
- <Column size="49"/>
- <Column size="83"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <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="S_A"/>
- <Cell col="3" text="적용시작일"/>
- <Cell col="4" text="적용종료일"/>
- <Cell col="5" text="건수"/>
- <Cell col="6" text="진료의"/>
- <Cell col="7" text="caption1"/>
- <Cell col="8" text="지정의사ID"/>
- <Cell col="9" text="지정의사ID"/>
- <Cell col="10" text="지정의사ID"/>
- </Band>
- <Band id="body">
- <Cell text="bind:pid"/>
- <Cell col="1" text="bind:hngnm"/>
- <Cell col="2" text="bind:sexage"/>
- <Cell col="3" text="bind:rsrvfromdd"/>
- <Cell col="4" text="bind:rsrvtodd"/>
- <Cell col="5" text="bind:rsrvcnt"/>
- <Cell col="6" text="bind:drnm"/>
- <Cell col="7" text="bind:drid"/>
- <Cell col="8" text="bind:fstdrapntid"/>
- <Cell col="9" text="bind:scnddrapntid"/>
- <Cell col="10" text="bind:lastdrapntid"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static id="caption1" class="tit_2" position="absolute 0 174 158 190" style="align: middle;" text="외래예약진료의변경후"/>
- <Shape id="line1" class="line_1" linetype="horizontal" position="absolute 0 191 540 195" style="strokepen:3 solid #33bbbbff;" anchor="default"/>
- <Button id="btn_close" class="btn4" position="absolute 480 340 536 362" style="" text="닫기" onclick="btn_close_onclick"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_main_hddrapnthistlist_hddrapnthistinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="fstdrapntid" type="STRING" size="256"/>
- <Column id="scnddrapntid" type="STRING" size="256"/>
- <Column id="lastdrapntid" type="STRING" size="256"/>
- <Column id="alldrapntid" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="fstdrapntid"/>
- <Col id="scnddrapntid"/>
- <Col id="lastdrapntid"/>
- <Col id="alldrapntid"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_hddrapnthistlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo/>
- </Dataset>
- <Dataset id="ds_main" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo/>
- </Dataset>
- <Dataset id="ds_main_pddrapnthistlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo/>
- </Dataset>
- <Dataset id="ds_main_afpatdruplist_afpatdrupinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="pid" type="STRING" size="256"/>
- <Column id="hngnm" type="STRING" size="256"/>
- <Column id="sexage" type="STRING" size="256"/>
- <Column id="rsrvfromdd" type="STRING" size="256"/>
- <Column id="rsrvtodd" type="STRING" size="256"/>
- <Column id="rsrvcnt" type="STRING" size="256"/>
- <Column id="drnm" type="STRING" size="256"/>
- <Column id="drid" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="pid"/>
- <Col id="hngnm"/>
- <Col id="sexage"/>
- <Col id="rsrvfromdd"/>
- <Col id="rsrvtodd"/>
- <Col id="rsrvcnt"/>
- <Col id="drnm"/>
- <Col id="drid"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_temp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="temp" 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>
- <Rows>
- <Row>
- <Col id="reqdata"/>
- <Col id="savedata"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_afpatdruplist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo/>
- </Dataset>
- <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="hidden" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="hidden"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_pddrapnthistlist_pddrapnthistinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="fstdrapntid" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="fstdrapntid"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_patdruplist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo/>
- </Dataset>
- <Dataset id="ds_main_patdruplist_patdrupinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="pid" type="STRING" size="256"/>
- <Column id="hngnm" type="STRING" size="256"/>
- <Column id="sexage" type="STRING" size="256"/>
- <Column id="rsrvfromdd" type="STRING" size="256"/>
- <Column id="rsrvtodd" type="STRING" size="256"/>
- <Column id="rsrvcnt" type="STRING" size="256"/>
- <Column id="drnm" type="STRING" size="256"/>
- <Column id="drid" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="pid"/>
- <Col id="hngnm"/>
- <Col id="sexage"/>
- <Col id="rsrvfromdd"/>
- <Col id="rsrvtodd"/>
- <Col id="rsrvcnt"/>
- <Col id="drnm"/>
- <Col id="drid"/>
- </Row>
- </Rows>
- </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_send_savedata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- </Objects>
- <Bind/>
- <Script type="xscript4.0"><![CDATA[include 'com_commonxp::comm_main.xjs';
- include 'emr_carecomxp::CareCom.xjs';
- //include 'emr_dialroomxp::SMMND03600.xjs';
- var arErrorCode = new HashArray();
- function SMMND03600_onload(obj:Form, e:LoadEventInfo) {
- frmf_initForm(obj);
- grdf_initGrid(this.grd_afpatupinfo);
- grdf_initGrid(this.grd_bfpatupinfo);
- //grdf_setGridSort(grd_XXX);
- //grdf_setRowTypeIcon(grd_XXX, 0_컬럼위치값);
- fSrchDrUpList(); // 의사지정 History조회
- }
- function SMMND03600_onbeforeclose(obj:Form, e:CloseEventInfo) {
- /* 진료의 변경여부를 체크 */
- //if(ds_send_savedata.rowcount;< 1){//변경할데이터가 없을시 닫히지 않고 변경버튼을 눌러야 하는 오류건으로 조건추가-20091104-kys
- if((ds_main_patdruplist_patdrupinfo.rowcount> 0) && (ds_send_savedata.rowcount< 1))
- {
- sysf_messageBox("미래예약진료의를 변경하셔야합니다.", "E");// ipt_pid.setFocus();
- return;
- }
- }
- // header파일 중 SMMND03600.js 파일 시작
- /*
- 외래예약진료의 변경 (SMMND03600.xrw - JScript )
- - Version :
- 1) : Ver.1.00.01
- */
- /**
- * _group :
- * _ver : 2009.02.10
- * _by : 김양수
- * _---------------------------------------------------
- * _type : function
- * _access : public
- * _desc : 외래예약진료의변경될 환자조회
- * _param :
- * _return :
- * _---------------------------------------------------
- */
- function fSrchDrUpList(){
- /* HD의사지정에서 받아온 param setting */
- var sParam = opener.frmf_getParameter("SMMND03600_param_pinfo");
- sParam = sParam.split("▦");
- if(sParam[0] == "H"){ //혈액투석일경우
- var sSuppkind = "02"; //보조유형 (02:혈액투석, 03:복막투석)
- }else{
- var sSuppkind = "03";
- }
- var sSrchfromdd = sParam[1]; //적용시작일
- var sSrchtodd = sParam[2]; //적용종료일
- var sFstDrApntID = sParam[3]; //1shift,오전 진료의ID
- var sScndDrApntID = sParam[4]; //2shift,오후 진료의ID
- if(sParam[0] == "H"){
- var sLastDrApntID = sParam[5]; //3shift 진료의ID
- }
- /* 원본_PD오전,오후구분으로 변경_20100125
- if(sParam[0] == "H"){
- var sScndDrApntID = sParam[4]; //2shift 진료의ID
- var sLastDrApntID = sParam[5]; //3shift 진료의ID
- }
- */
- //alert("param = " + sSuppkind + sSrchfromdd + sSrchtodd + sFstDrApntID + sScndDrApntID + sLastDrApntID);
- /* 저장시 사용할 값 setting */
- ds_temp.clearData();
- dsf_makeValue( ds_temp, "hptype", "string", sSuppkind);
- dsf_makeValue( ds_temp, "fromdd", "string", sSrchfromdd);
- dsf_makeValue( ds_temp, "todd", "string", sSrchtodd);
- dsf_makeValue( ds_temp, "histfstdrapntid", "string", sFstDrApntID);
- dsf_makeValue( ds_temp, "histscnddrapntid", "string", sScndDrApntID);
- if(sParam[0] == "H"){
- dsf_makeValue( ds_temp, "histlastdrapntid", "string", sLastDrApntID);
- }
- /* 원본_PD오전,오후구분으로 변경_20100125
- if(sParam[0] == "H"){
- dsf_makeValue( ds_temp, "histscnddrapntid", "string", sScndDrApntID);
- dsf_makeValue( ds_temp, "histlastdrapntid", "string", sLastDrApntID);
- }
- */
- ds_send_reqdata.clearData();
- dsf_makeValue( ds_send_reqdata, "srchfromdd", "string", sSrchfromdd);
- dsf_makeValue( ds_send_reqdata, "srchtodd", "string", sSrchtodd);
- dsf_makeValue( ds_send_reqdata, "srchsuppkind", "string", sSuppkind);
- //dsf_makeValue( ds_send_reqdata, "srchfstdrapntid", "string", sFstDrApntID);
- //dsf_makeValue( ds_send_reqdata, "srchscnddrapntid", "string", sScndDrApntID);
- //dsf_makeValue( ds_send_reqdata, "srchlastdrapntid", "string", sLastDrApntID);
- /* 변경을 하지 않고 창을 닫는것을 막기위해 노드셋 제거 */
- //ds_send_savedata.clearData();
- // submit("TRMND03500");
- var oParam = {};
- oParam.id = "TRMND03500";
- oParam.service = "dialapp.DialPatMngt";
- oParam.method = "reqGetDrUpPatList";
- oParam.inds = "req=ds_send_reqdata";
- oParam.outds = "ds_main_patdruplist_patdrupinfo=patdrupinfo";
- oParam.async = false;
- tranf_submit(oParam);
- }
- /**
- * _group :
- * _ver : 2009.02.11
- * _by : 김양수
- * _---------------------------------------------------
- * _type : function
- * _access : public
- * _desc : 외래예약진료의변경 저장
- * _param :
- * _return :
- * _---------------------------------------------------
- */
- function fSaveOutDrUpd(){
- if(ds_main_patdruplist_patdrupinfo.rowcount< 1){//20091104-kys추가(변경클릭시 내역이 없어도 업데이트되는 오류건으로 블럭킹추가)
- sysf_messageBox("변경할 내역이 없습니다.", "E");// ipt_pid.setFocus();
- return;
- }
- /* HD의사지정에서 받아온 param setting */
- var sSrchfromdd = ds_temp.getColumn(0, "fromdd"); //적용시작일
- var sSrchtodd = ds_temp.getColumn(0, "todd"); //적용종료일
- var sSuppkind = ds_temp.getColumn(0, "hptype"); //보조유형 (02:혈액투석, 03:복막투석)
- var arrDridValue = new Array(3);
- var arrOrdtmValue = new Array(3);
- var sSrchData = "";
- /* 예약생성시 진료예약시간이 shift별로 아래와같이 생성되어 진료예약시간과 적용시작,종료일자를 가지고 처리한다 */
- /*원본_20100125
- arrDridValue[0] = ds_temp.getColumn(0, "histfstdrapntid");
- arrOrdtmValue[0] = "0730"; //1Shift
- if(sSuppkind == "02"){
- arrDridValue[1] = ds_temp.getColumn(0, "histscnddrapntid");
- arrOrdtmValue[1] = "1300"; //2Shift
- arrDridValue[2] = ds_temp.getColumn(0, "histlastdrapntid");
- arrOrdtmValue[2] = "1700"; //3Shift
- }else{
- arrDridValue[1] = "";
- arrOrdtmValue[1] = ""; //2Shift
- arrDridValue[2] = "";
- arrOrdtmValue[2] = ""; //3Shift
- }
- */
- // PD오전,오후 구분에 의한 변경_20100125
- arrDridValue[0] = ds_temp.getColumn(0, "histfstdrapntid");
- arrOrdtmValue[0] = "0730"; //1Shift,오전
- arrDridValue[1] = ds_temp.getColumn(0, "histscnddrapntid");
- arrOrdtmValue[1] = "1300"; //2Shift,오후
- if(sSuppkind == "02"){ // 혈액투석
- arrDridValue[2] = ds_temp.getColumn(0, "histlastdrapntid");
- arrOrdtmValue[2] = "1700"; //3Shift
- }else{ // 복막투석
- arrDridValue[2] = "";
- arrOrdtmValue[2] = ""; //3Shift
- }
- for (i=0; i<arrDridValue.length; i++){
- var sSrchHeader = "fromdd▦todd▦suppkind▦ordtm▦drapntid▩";
- if( arrDridValue[i] == ""){
- continue;
- }else{
- var sSrchData = sSrchData
- + sSrchfromdd +"▦"
- + sSrchtodd +"▦"
- + sSuppkind +"▦"
- + arrOrdtmValue[i] +"▦"
- + arrDridValue[i] +"▩";
- }
- }// end of for
- ds_send_savedata.clearData();
- //dsf_makeValue( ds_send_savedata, "savedata", "string", sSrchHeader + sSrchData);
- dsf_setCSVToDs("ds_send_savedata", sSrchHeader + sSrchData);
- //alert("sSrchHeader + sSrchData = " + sSrchHeader + sSrchData);
- //return;
- // if (submit("TXMND03401") == true){
- var oParam = {};
- oParam.id = "TXMND03401";
- oParam.service = "dialapp.DialPatMngt";
- oParam.method = "reqExeSaveDrUpd";
- oParam.inds = "req=ds_send_savedata";
- oParam.outds = "ds_main_afpatdruplist_afpatdrupinfo=afpatdrupinfo";
- oParam.async = false;
- oParam.callback = "cf_TXMND03401";
- tranf_submit(oParam);
- if(arErrorCode.pop("TXMND03401") > -1) {
- sysf_messageBox("", "I001", ""); //성공 메세지
- btn_hdsave.enable = false;
- } else {
- sysf_messageBox("저장을 실패했습니다.", "C");
- }
- }
- function cf_TXMND03401(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- // header파일 중 SMMND03600.js 파일 끝
- function btn_hdsave_onclick(obj:Button, e:ClickEventInfo) {
- fSaveOutDrUpd(); // 예약의사지정 변경 저장
- }
- function btn_close_onclick(obj:Button, e:ClickEventInfo) {
- /* 진료의 변경여부를 체크 */
- //변경할데이터가 없을시 닫히지 않고 변경버튼을 눌러야 하는 오류건으로 조건추가-20091104-kys
- if((ds_main_patdruplist_patdrupinfo.rowcount> 0) && (ds_send_savedata.rowcount< 1)){
- sysf_messageBox("미래예약진료의를 변경하셔야합니다.", "E");// ipt_pid.setFocus();
- return;
- }
- this.close();
- }
- ]]></Script>
- </Form>
- </FDL>
|