123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464 |
- <?xml version="1.0" encoding="utf-8" standalone="no"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMMND03700" position="absolute 0 0 360 445" titletext="유지종료환자미래예약취소" onload="SMMND03700_onload" onbeforeclose="SMMND03700_onload SMMND03700_onbeforeclose">
- <Layouts>
- <Layout>
- <Grid id="grd_cvrt" binddataset="ds_main_detlrsrvlist_detlrsrvinfo" class="datagrid2" position="absolute 4 78 356 415" style="align:center ;" oncellclick="grd_cvrt_oncellclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="26"/>
- <Column size="56"/>
- <Column size="77"/>
- <Column size="32"/>
- <Column size="33"/>
- <Column size="33"/>
- <Column size="36"/>
- <Column size="52"/>
- <Column size="0"/>
- <Column size="0"/>
- <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="status"/>
- <Cell col="1" text="등록번호"/>
- <Cell col="2" text="환자명"/>
- <Cell col="3" text="S_A"/>
- <Cell col="4" text=""/>
- <Cell col="5" text="투석구분"/>
- <Cell col="6" text="예약일자"/>
- <Cell col="7" text="요일"/>
- <Cell col="8" text="Shift"/>
- <Cell col="9" text="구분"/>
- <Cell col="10" text="Bed No."/>
- <Cell col="11" text="Viral marker"/>
- <Cell col="12" text="수납"/>
- <Cell col="13" text="histstat"/>
- <Cell col="14" text="orddd"/>
- <Cell col="15" text="cretno"/>
- <Cell col="16" text="orddeptcd"/>
- <Cell col="17" text="orddrid"/>
- </Band>
- <Band id="body">
- <Cell text="bind:status"/>
- <Cell col="1" text="bind:pid"/>
- <Cell col="2" text="bind:hngnm"/>
- <Cell col="3" text="bind:sexage"/>
- <Cell col="4" text="bind:acptyn"/>
- <Cell col="5" text="bind:dialflag"/>
- <Cell col="6" text="bind:rsrvdd"/>
- <Cell col="7" text="bind:dw"/>
- <Cell col="8" text="bind:shiftflag"/>
- <Cell col="9" text="bind:ioflag"/>
- <Cell col="10" text="bind:dialseatflag"/>
- <Cell col="11" text="bind:viralmarker"/>
- <Cell col="12" text="bind:rcptflag"/>
- <Cell col="13" text="bind:histstat"/>
- <Cell col="14" text="bind:orddd"/>
- <Cell col="15" text="bind:cretno"/>
- <Cell col="16" text="bind:orddeptcd"/>
- <Cell col="17" text="bind:orddrid"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static id="caption7" class="tit_2" position="absolute 9 61 115 77" style="align: bottom;" text="상세 예약정보"/>
- <Shape id="line8" class="line_1" linetype="horizontal" position="absolute 5 21 355 25" style="strokepen:3 solid #33bbbbff;align:bottom;" anchor="default"/>
- <Static id="caption3" class="tit_2" position="absolute 10 4 160 20" style="align: bottom;" text="유지종료미래예약취소"/>
- <Shape id="line1" class="line_1" linetype="horizontal" position="absolute 5 50 355 53" style="align: bottom;" anchor="default"/>
- <Edit id="ipt_pid" class="input_default" position="absolute 66 27 138 46" style="" anchor="default" autoselect="true"/>
- <Static id="caption9" class="cell_1" position="absolute 5 25 64 48" style="align:center middle;" text="등록번호"/>
- <Edit id="opt_hngnm" class="output_fix" position="absolute 143 26 206 45" style="align:center ;" anchor="default" readonly="true" autoselect="true"/>
- <Edit id="opt_sa" class="output_fix" position="absolute 211 26 251 45" style="align:center ;" anchor="default" readonly="true" autoselect="true"/>
- <Button id="btn_save" class="btn2" position="absolute 308 26 350 45" style="" text="취소" onclick="btn_save_onclick"/>
- <Button id="btn_close" class="btn4" position="absolute 295 420 351 442" style="" text="닫기" onclick="btn_close_onclick"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_main_detlrsrvlist_detlrsrvinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="status" type="STRING" size="256"/>
- <Column id="pid" type="STRING" size="256"/>
- <Column id="hngnm" type="STRING" size="256"/>
- <Column id="sexage" type="STRING" size="256"/>
- <Column id="acptyn" type="STRING" size="256"/>
- <Column id="rsrvdd" type="STRING" size="256"/>
- <Column id="dw" type="STRING" size="256"/>
- <Column id="shiftflag" type="STRING" size="256"/>
- <Column id="ioflag" type="STRING" size="256"/>
- <Column id="dialseatflag" type="STRING" size="256"/>
- <Column id="viralmarker" type="STRING" size="256"/>
- <Column id="rcptflag" type="STRING" size="256"/>
- <Column id="histstat" type="STRING" size="256"/>
- <Column id="orddd" type="STRING" size="256"/>
- <Column id="cretno" type="STRING" size="256"/>
- <Column id="orddeptcd" type="STRING" size="256"/>
- <Column id="orddrid" type="STRING" size="256"/>
- <Column id="dialflag" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="status"/>
- <Col id="pid"/>
- <Col id="hngnm"/>
- <Col id="sexage"/>
- <Col id="acptyn"/>
- <Col id="rsrvdd"/>
- <Col id="dw"/>
- <Col id="shiftflag"/>
- <Col id="ioflag"/>
- <Col id="dialseatflag"/>
- <Col id="viralmarker"/>
- <Col id="rcptflag"/>
- <Col id="histstat"/>
- <Col id="orddd"/>
- <Col id="cretno"/>
- <Col id="orddeptcd"/>
- <Col id="orddrid"/>
- <Col id="dialflag"/>
- </Row>
- </Rows>
- </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_temp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="rtnmsg" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="rtnmsg"/>
- </Row>
- </Rows>
- </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"/>
- <Column id="date" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_detlrsrvlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo/>
- </Dataset>
- <Dataset id="ds_main_detlrsrvlist_detlrsrvsrch" 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="srchdd1" type="STRING" size="256"/>
- <Column id="srchdd2" type="STRING" size="256"/>
- <Column id="sa" type="STRING" size="256"/>
- <Column id="dialflag" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="pid"/>
- <Col id="hngnm"/>
- <Col id="srchdd1"/>
- <Col id="srchdd2"/>
- <Col id="sa"/>
- <Col id="dialflag"/>
- </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>
- <BindItem id="item0" compid="ipt_pid" propid="value" datasetid="ds_main_detlrsrvlist_detlrsrvsrch" columnid="pid"/>
- <BindItem id="item1" compid="opt_hngnm" propid="value" datasetid="ds_main_detlrsrvlist_detlrsrvsrch" columnid="hngnm"/>
- <BindItem id="item2" compid="opt_sa" propid="value" datasetid="ds_main_detlrsrvlist_detlrsrvsrch" columnid="sa"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[include 'com_commonxp::comm_main.xjs';
- include 'emr_carecomxp::CareCom.xjs';
- //include 'emr_dialroomxp::SMMND03700.xjs';
- var arErrorCode = new HashArray();
- function SMMND03700_onload(obj:Form, e:LoadEventInfo) {
- frmf_initForm(obj);
- grdf_initGrid(this.grd_cvrt);
- //grdf_setGridSort(grd_XXX);
- //grdf_setRowTypeIcon(grd_XXX, 0_컬럼위치값);
- fInit();
- grd_cvrt.fixedcellcheckbox(0,4)=true; //체크박스 위에 전체 선택 하는 콤보 셋팅
- }
- function SMMND03700_onbeforeclose(obj:Form, e:CloseEventInfo) {
- var dialflag = ds_main_detlrsrvlist_detlrsrvsrch.getColumn(0, "dialflag");
- /* 취소시 해당투석예약의 체크여부를 체크 */
- for(i=1;i<=ds_main_detlrsrvlist_detlrsrvinfo.rowcount;i++){
- if(ds_main_detlrsrvlist_detlrsrvinfo.getColumn(i, "acptyn") == "false"){
- if(ds_main_detlrsrvlist_detlrsrvinfo.getColumn(i, "dialflag") == dialflag){
- sysf_messageBox("해당투석예약을 다 체크 후 예약취소를 하셔야합니다.", "E");// ipt_pid.setFocus();
- return;
- }
- }
- }
- }
- // header파일 중 SMMND03700.js 파일 시작
- /*
- HD Scheduling (SMMND03700.xrw - JScript )
- - Version :
- 1) : Ver.1.00.01
- */
- /**
- * _group :
- * _ver : 2009.02.24
- * _by : 김양수
- * _---------------------------------------------------
- * _type : function
- * _access : public
- * _desc : 화면 초기화..
- * _param :
- * _return :
- * _---------------------------------------------------
- */
- function fInit(){
- var sRtn = utlf_getCurrentDate(); //현재일자 리턴
- /** 받아온 Param Setting **/
- var value = opener.frmf_getParameter("SMMND03700_patinfo");
- value = value.split("▦");
- var pid = value[0];
- var pnm = value[1];
- var sa = value[2];
- var dialflag = value[3];
- ds_main_detlrsrvlist_detlrsrvsrch.setColumn( 0, "pid", pid);
- ds_main_detlrsrvlist_detlrsrvsrch.setColumn( 0, "hngnm", pnm);
- ds_main_detlrsrvlist_detlrsrvsrch.setColumn( 0, "sa", sa);
- ds_main_detlrsrvlist_detlrsrvsrch.setColumn( 0, "dialflag", dialflag);
- /** 조회일자계산(2년 후 일자) **/
- ds_main_detlrsrvlist_detlrsrvsrch.setColumn( 0, "srchdd1",sRtn);
- var sRtnOneMonthLater = ((sRtn.toDate().getAddDate(2, "Y"))).getDateFormat(); // 2년 후 일자
- ds_main_detlrsrvlist_detlrsrvsrch.setColumn( 0, "srchdd2",sRtnOneMonthLater);
- //model.refresh();
- fSrchDetlrSrvInfo(); //상세예약정보 조회
- }
- /**
- * _group :
- * _ver : 2009.02.24
- * _by : 김양수
- * _---------------------------------------------------
- * _type : function
- * _access : public
- * _desc : 상세 예약정보 조회(환자개인별)
- * _param :
- * _return :
- * _---------------------------------------------------
- */
- function fSrchDetlrSrvInfo(){
- //* 환자 등록번호 입력여부 체크 *//
- if(ds_main_detlrsrvlist_detlrsrvsrch.getColumn(0, "pid") == ""){
- sysf_messageBox("등록번호를 입력하십시오.", "E"); ipt_pid.setFocus();
- return;
- }
- //* 상세 예약정보 리스트를 조회한다. *//
- ds_send_reqdata.clearData();
- dsf_makeValue( ds_send_reqdata, "pid", "string", ds_main_detlrsrvlist_detlrsrvsrch.getColumn(0, "pid"));
- dsf_makeValue( ds_send_reqdata, "srchdd1", "string", ds_main_detlrsrvlist_detlrsrvsrch.getColumn(0, "srchdd1")); //선택된날자~2년후날자조회
- dsf_makeValue( ds_send_reqdata, "srchdd2", "string", ds_main_detlrsrvlist_detlrsrvsrch.getColumn(0, "srchdd2"));
- dsf_makeValue( ds_send_reqdata, "dialflag", "string", ds_main_detlrsrvlist_detlrsrvsrch.getColumn(0, "dialflag")); //투석구분
- ds_main_detlrsrvlist_detlrsrvinfo.clearData();
-
- // if(submit("TRMND03600", false)){
- var oParam = {};
- oParam.id = "TRMND03600";
- oParam.service = "dialapp.DialPatMngt";
- oParam.method = "reqGetEndDetlRsrvInfo";
- oParam.inds = "req=ds_send_reqdata";
- oParam.outds = "ds_main_detlrsrvlist_detlrsrvinfo=detlrsrvinfo";
- oParam.async = false;
- oParam.callback = "cf_TRMND03600";
- tranf_submit(oParam);
- if(arErrorCode.pop("TRMND03600") > -1) {
- //복막투석일경우 shift의 의미가 없으므로 조회가 되면 안됨-20090302
- for(var i = 0; i < ds_main_detlrsrvlist_detlrsrvinfo.rowcount; i++){
- if(ds_main_detlrsrvlist_detlrsrvinfo.getColumn(i, "dialflag") == "P"){
- ds_main_detlrsrvlist.setColumn( i , "shiftflag", "");
- }
- }
- /* 체크박스 초기화 */
- for(var i = 0; i < ds_main_detlrsrvlist_detlrsrvinfo.rowcount; i++){
- ds_main_detlrsrvlist.setColumn( i , "acptyn", "false");
- }
- }
- //
- //grd_cvrt.refresh();
- //grd_cvrt.allstyle("all", "background-color") = "white";
- //grd_cvrt.refresh();
- }
- function cf_TRMND03600(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- /**
- * _group :
- * _ver : 2009.02.24
- * _by : 김양수
- * _---------------------------------------------------
- * _type : function
- * _access : public
- * _desc : 상세 예약정보 취소(환자개인별)
- * _param :
- * _return :
- * _---------------------------------------------------
- */
- function fRsrvCancel(){
- var dialflag = ds_main_detlrsrvlist_detlrsrvsrch.getColumn(0, "dialflag");
- /* 취소시 해당투석예약의 체크여부를 체크 */
- for(i=1;i<=ds_main_detlrsrvlist_detlrsrvinfo.rowcount;i++){
- if(ds_main_detlrsrvlist_detlrsrvinfo.getColumn(i, "acptyn") == "false"){
- if(ds_main_detlrsrvlist_detlrsrvinfo.getColumn(i, "dialflag") == dialflag){
- sysf_messageBox("해당투석예약을 다 체크 후 예약취소를 하셔야합니다.", "E");// ipt_pid.setFocus();
- return;
- }
- }
- }
- /* 상태정보 setting */
- for(var i = 1; i <= grd_cvrt.rows; i++){
- if(ds_main_detlrsrvlist_detlrsrvinfo.getColumn(i, "acptyn") == "true"){
- grd_cvrt.textmatrix(i,0) = "d";
- }else{
- grd_cvrt.textmatrix(i,0) = "";
- }
- }
- ds_send_savedata.clearData();
- //dsf_makeValue( ds_send, "savedata", "string", grd_cvrt.getupdatedataAll("i"));
-
- dsf_copyDs(ds_send_savedata, grdf_getGridUpdateData(grd_cvrt),"replace");
-
- // if(submit("TXMND01101") == true){
- var oParam = {};
- oParam.id = "TXMND01101";
- oParam.service = "dialapp.DialPatMngt";
- oParam.method = "reqExeSaveDetlrSrvInfo";
- oParam.inds = "req=ds_send_savedata";
- oParam.outds = "ds_temp=rtnmsg";
- oParam.async = false;
- oParam.callback = "cf_TXMND01101";
- tranf_submit(oParam);
- if(arErrorCode.pop("TXMND01101") > -1) {
- sysf_messageBox("", "I001", ""); //성공 메세지
- fSrchDetlrSrvInfo(); //결과조회 함수호출
- }
- }
- function cf_TXMND01101(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- /**
- * _group :
- * _ver : 2009.02.25
- * _by : 김양수
- * _---------------------------------------------------
- * _type : function
- * _access : public
- * _desc : 그리드 클릭시 선택컬럼 값 변경
- * _param :
- * _return :
- * _---------------------------------------------------
- */
- function fClickedGridRow(e){
- var iRow = 0;
- var iCol = 0;
- iRow = e.row;
- iCol = e.col;
- //** 전체선택 체크박스 기능 ******************************************//
- if(iRow == "0"){
- if(grd_cvrt.fixedcellischeck(0, grd_cvrt.colRef("acptyn"))==true){ // 선택시
- for(i = 0; i < ds_main_detlrsrvlist_detlrsrvinfo.rowcount;i++){
- ds_main_detlrsrvlist_detlrsrvinfo.setColumn( i, "acptyn", "true");
- }
- } else{
- for(i = 0; i < ds_main_detlrsrvlist_detlrsrvinfo.rowcount;i++){
- ds_main_detlrsrvlist_detlrsrvinfo.setColumn( i, "acptyn", "false");
- }
- }
- }
- //***************************************************************************************//
- if(iCol == 4) return;
- if(iRow < 1) return;
- if(ds_main_detlrsrvlist_detlrsrvinfo.getColumn(iRow, "acptyn")) == "true"){
- ds_main_detlrsrvlist.setColumn( iRow , "acptyn","false");
- }else{
- ds_main_detlrsrvlist.setColumn( iRow , "acptyn", "true");
- }
- }
- // header파일 중 SMMND03700.js 파일 끝
- function grd_cvrt_oncellclick(obj:Grid, e:GridClickEventInfo) {
- fClickedGridRow(e);
- }
- function btn_save_onclick(obj:Button, e:ClickEventInfo) {
- fRsrvCancel();
- }
- function btn_close_onclick(obj:Button, e:ClickEventInfo) {
- var dialflag = ds_main_detlrsrvlist_detlrsrvsrch.getColumn(0, "dialflag");
- /* 취소시 해당투석예약의 체크여부를 체크 */
- for(i=0;i < ds_main_detlrsrvlist_detlrsrvinfo.rowcount;i++){
- if(ds_main_detlrsrvlist_detlrsrvinfo.getColumn(i, "acptyn") == "false"){
- if(ds_main_detlrsrvlist_detlrsrvinfo.getColumn(i, "dialflag") == dialflag){
- sysf_messageBox("해당투석예약을 다 체크 후 예약취소를 하셔야합니다.", "E");// ipt_pid.setFocus();
- return;
- }
- }
- }
- this.close();
- }
- ]]></Script>
- </Form>
- </FDL>
|