123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMABO02200" position="absolute 0 0 881 445" titletext="이식 후 추후관리" oninit="SMABO02200_oninit" onload="SMABO02200_onload">
- <Layouts>
- <Layout>
- <Static id="caption6" text="이식 후 추후관리" class="tit_1" position="absolute 0 0 164 23"/>
- <Button id="btn_save" taborder="1" text="저장" class="btn4" position="absolute 818 16 874 38" anchor="top right" onclick="btn_save_onclick"/>
- <Button id="btn_excsave" taborder="2" text="엑셀저장" class="btn7" position="absolute 795 112 875 131" anchor="top right" onclick="btn_excsave_onclick"/>
- <Static id="caption1" text="이식후상태" class="tit_2" position="absolute 0 115 130 136"/>
- <Shape id="line1" class="line_10" position="absolute 0 131 875 137" anchor="left top right"/>
- <Div id="grp_sea" taborder="3" class="div_SA" position="absolute 0 39 875 100" anchor="left top right">
- <Layouts>
- <Layout>
- <Static id="caption3" text="사망일 :" class="search_name" position="absolute 15 34 88 51"/>
- <Shape id="line13" linetype="vertical" class="line_4" position="absolute 794 10 800 51" anchor="top right"/>
- <Static id="caption33" text="사인 :" class="search_name" position="absolute 219 34 279 51"/>
- <Button id="btn_sea" taborder="1" text="조회" class="btn1" position="absolute 811 21 867 43" anchor="top right" onclick="grp_sea_btn_sea_onclick"/>
- <Static id="caption4" text="등록번호 :" class="search_name" position="absolute 15 9 101 26"/>
- <Edit id="output1" taborder="2" readonly="true" position="absolute 219 9 309 28" class="output"/>
- <Combo id="combo1" taborder="3" innerdataset="@ds_init_cmbinfo_sex_P0313" codecolumn="cdid" datacolumn="cdnm" class="combo_default" enable="false" position="absolute 312 9 372 28"/>
- <Edit id="output2" taborder="4" readonly="true" position="absolute 375 9 417 28" class="output"/>
- <Calendar id="ipt_dethdd" taborder="5" class="input_s_essential" enable="false" position="absolute 104 34 204 53" dateformat="yyyy-MM-dd" value="null"/>
- <Edit id="ipt_pid" taborder="6" class="input_search" position="absolute 104 9 204 28" autoselect="true"/>
- <Static id="caption2" text="CIBMTR 등록정보 :" class="search_name" position="absolute 432 9 580 26"/>
- <Edit id="output3" taborder="7" readonly="true" position="absolute 578 8 668 27" class="output"/>
- <Edit id="output4" taborder="8" readonly="true" position="absolute 671 8 691 27" class="output"/>
- <MaskEdit id="output5" taborder="9" readonly="true" position="absolute 694 8 774 27" mask="####-##-##" maskchar=" " displaynulltext=" " type="string" trimtype="both"/>
- <Combo id="cmb_dethresn" taborder="10" innerdataset="@ds_init_cmbinfo_dethresn_A0186" class="combo_search" enable="false" position="absolute 282 34 417 53" datacolumn="hsctmdlnm" codecolumn="hsctmdlcd"/>
- <Static id="caption5" text="사망여부" position="absolute 467 34 535 51"/>
- <CheckBox id="bool_dethyn" taborder="11" position="absolute 435 32 460 52" onclick="grp_sea_bool_dethyn_onclick" truevalue="Y" falsevalue="N"/>
- <Button id="btn_pid" taborder="12" onclick="btn_pid_onclick" position="absolute 187 11 202 26"/>
- </Layout>
- </Layouts>
- </Div>
- <Button id="btn_grddel" taborder="4" text="행삭제" class="btn2" position="absolute 739 112 792 131" anchor="top right" onclick="btn_grddel_onclick"/>
- <Button id="btn_grdadd" taborder="5" text="행추가" class="btn2" position="absolute 683 112 736 131" anchor="top right" onclick="btn_grdadd_onclick"/>
- <Grid id="grd_trnptaftstat" taborder="6" binddataset="ds_main_trnptaft_trnptaftstat" useinputpanel="false" position="absolute 0 136 875 436" autofittype="col" cellsizingtype="col" autoenter="select">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25"/>
- <Column size="74"/>
- <Column size="81"/>
- <Column size="86"/>
- <Column size="60"/>
- <Column size="60"/>
- <Column size="127"/>
- <Column size="348"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell rowspan="2" taborder="undefined"/>
- <Cell col="1" rowspan="2" text="내 용" taborder="undefined"/>
- <Cell col="2" rowspan="2" text="날짜" taborder="undefined"/>
- <Cell col="3" rowspan="2" text="확인일자" taborder="undefined"/>
- <Cell col="4" colspan="3" text="환자상태" taborder="undefined"/>
- <Cell col="7" rowspan="2" text="Remark" taborder="undefined"/>
- <Cell col="8" text="caption1"/>
- <Cell col="9" text="caption4"/>
- <Cell col="10" text="caption2"/>
- <Cell row="1" col="4" text="aGVHD"/>
- <Cell row="1" col="5" text="cGVHD"/>
- <Cell row="1" col="6" text="Karnofsky or Lansky"/>
- <Cell row="1" col="8" text="caption1"/>
- <Cell row="1" col="9" text="caption4"/>
- <Cell row="1" col="10" text="caption2"/>
- </Band>
- <Band id="body">
- <Cell celltype="head"/>
- <Cell col="1" displaytype="text" edittype="text" style="align:center middle;" text="bind:cntsnm" editautoselect="true"/>
- <Cell col="2" displaytype="date" edittype="none" text="bind:statdd" calendardisplaynulltype="none" enable="false"/>
- <Cell col="3" displaytype="date" edittype="none" text="bind:cnfmdd" calendardisplaynulltype="nulltext" enable="false"/>
- <Cell col="4" displaytype="text" edittype="text" text="bind:patstat1" editautoselect="true"/>
- <Cell col="5" displaytype="text" edittype="text" text="bind:patstat2" editautoselect="true"/>
- <Cell col="6" displaytype="text" edittype="text" text="bind:pntflag" editautoselect="true"/>
- <Cell col="7" displaytype="text" edittype="textarea" style="align:left top;padding:4 2 1 2;" text="bind:trnptaftrem" wordwrap="word" editautoselect="true"/>
- <Cell col="8" text="bind:pid"/>
- <Cell col="9" text="bind:trnptdg"/>
- <Cell col="10" text="bind:seqno"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Combo id="cmb_trnptdg" taborder="7" innerdataset="@ds_temp_trnptdg_item" codecolumn="cd" datacolumn="nm" class="combo_default" position="absolute 97 112 184 131" onitemchanged="cmb_trnptdg_onitemchanged"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_main_hsctinfo_patinfolist" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="pid" type="STRING" size="256" sumtext="등록번호"/>
- <Column id="hngnm" type="STRING" size="256" sumtext="환자명"/>
- <Column id="sex" type="STRING" size="256" sumtext="성별"/>
- <Column id="age" type="STRING" size="256" sumtext="나이"/>
- <Column id="rrgstno1" type="STRING" size="256" sumtext="주민번호상위"/>
- <Column id="rrgstno2" type="STRING" size="256" sumtext="주민번호하위"/>
- <Column id="srchreqdg" type="STRING" size="256" sumtext="검색차수"/>
- <Column id="cibmtrid" type="STRING" size="256" sumtext="cibmtrid"/>
- <Column id="resrchyn" type="STRING" size="256" sumtext="research여부"/>
- <Column id="lostfudd" type="STRING" size="256" sumtext="lost F/U 일자"/>
- <Column id="dethdd" type="STRING" size="256" sumtext="사망일"/>
- <Column id="dethresn" type="STRING" size="256" sumtext="사인"/>
- <Column id="dethyn" type="STRING" size="256" sumtext="사망여부"/>
- <Column id="dethrgstyn" type="STRING" size="256" sumtext="사망정보기등록여부"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="pid"/>
- <Col id="hngnm"/>
- <Col id="sex"/>
- <Col id="age"/>
- <Col id="dethdd"/>
- <Col id="dethresn"/>
- <Col id="dethyn"/>
- <Col id="dethrgstyn"/>
- <Col id="cibmtrid"/>
- <Col id="resrchyn"/>
- <Col id="lostfudd"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_cmbinfo_sex_P0313" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_init_cmbinfo_dethresn_A0186" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="hsctmdlnm" type="STRING" size="256"/>
- <Column id="hsctmdlcd" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_temp_trnptdg_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cd" type="STRING" size="256"/>
- <Column id="nm" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="cd">1</Col>
- <Col id="nm">1차</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="trnptdg" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_trnptaft_trnptaftstat" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_temp_bmtpatientinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="trnptdg" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_send_req" 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="trnptdg" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_temp_patdethinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="dethdd" type="STRING" size="256"/>
- <Column id="dethresn" type="STRING" size="256"/>
- <Column id="dethyn" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_temp_paminfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_send_temp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_temp_trnptaftstat_cntsnm" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="nm" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="nm">PRE-TED</Col>
- </Row>
- <Row>
- <Col id="nm">100 days</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_hidden_hsctinfo_patinfolist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="grp_sea.ipt_pid" propid="value" datasetid="ds_main_hsctinfo_patinfolist" columnid="pid"/>
- <BindItem id="item1" compid="grp_sea.output1" propid="value" datasetid="ds_main_hsctinfo_patinfolist" columnid="hngnm"/>
- <BindItem id="item2" compid="grp_sea.combo1" propid="value" datasetid="ds_main_hsctinfo_patinfolist" columnid="sex"/>
- <BindItem id="item3" compid="grp_sea.output2" propid="value" datasetid="ds_main_hsctinfo_patinfolist" columnid="age"/>
- <BindItem id="item4" compid="grp_sea.output3" propid="value" datasetid="ds_main_hsctinfo_patinfolist" columnid="cibmtrid"/>
- <BindItem id="item5" compid="grp_sea.output4" propid="value" datasetid="ds_main_hsctinfo_patinfolist" columnid="resrchyn"/>
- <BindItem id="item6" compid="grp_sea.output5" propid="value" datasetid="ds_main_hsctinfo_patinfolist" columnid="lostfudd"/>
- <BindItem id="item7" compid="grp_sea.ipt_dethdd" propid="value" datasetid="ds_main_hsctinfo_patinfolist" columnid="dethdd"/>
- <BindItem id="item8" compid="grp_sea.cmb_dethresn" propid="value" datasetid="ds_main_hsctinfo_patinfolist" columnid="dethresn"/>
- <BindItem id="item9" compid="grp_sea.bool_dethyn" propid="value" datasetid="ds_main_hsctinfo_patinfolist" columnid="dethyn"/>
- <BindItem id="item10" compid="cmb_trnptdg" propid="value" datasetid="ds_main" columnid="trnptdg"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2015-11-13
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2015-11-13 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- include "com_commonxp::comm_main.xjs";
- include "ast_hsctxp::bmtcommon.xjs";
- function SMABO02200_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SMABO02200_onload(obj:Form, e:LoadEventInfo)
- {
- grdf_initGrid(grd_trnptaftstat);
- grdf_setRowTypeIcon(grd_trnptaftstat, 0);
-
- var arrParam = [{dsNm: "ds_init_cmbinfo_sex_P0313", cdGrpId: "P0313"}]
- appf_getCodeList(arrParam);
-
- var arrParam2 = [{dsNm: "ds_init_cmbinfo_dethresn_A0186", cdGrpId: "A0186"}];
- aboGetCodeList(arrParam2);
-
- if (frmf_checkOpener())
- {
- var param = opener.frmf_getParameter("opener_parameter_id"); //opener parameter value를 get
- if (!utlf_isNull(param))
- {
- condarray = param.split("▦");
- ds_main_hsctinfo_patinfolist.setColumn(0, "pid", condarray[0]);
- ds_temp_bmtpatientinfo.setColumn(0, "trnptdg", condarray[1]);
- fGetPatientInfo();
- return;
- }
- }
- var paminfo = sysf_getGlobalVariable("paminfo");
- if (!utlf_isNull(paminfo))
- {
- ds_temp_paminfo.clearData();
- dsf_setCSVToDs("ds_temp_paminfo", paminfo);
-
- var pid = ds_temp_paminfo.getColumn(0, "pid");
- ds_main_hsctinfo_patinfolist.setColumn(0, "pid", pid);
- fGetPatientInfo();
- }
- else
- {
- var gv_pid = sysf_getGlobalVariable("gv_pid", "A");
- if(!utlf_isNull(gv_pid))
- {
- ds_main_hsctinfo_patinfolist.setColumn(0, "pid", gv_pid);
- fGetPatientInfo();
- }
- }
- btn_save.enable = frmf_checkAuth("X");
- }
- function fGetPatientInfo()
- {
- if (utlf_isNull(ds_main_hsctinfo_patinfolist.getColumn(0, "pid")))
- {
- return;
- }
- ds_send_req.setColumn(0, "pid", ds_main_hsctinfo_patinfolist.getColumn(0, "pid"));
- var oParam = {};
- oParam.id = "TRABO00001";
- oParam.service = "hsctcoordinatorapp.HsctPatient";
- oParam.method = "reqGetPatientBaseInfo";
- oParam.inds = "req=ds_send_req";
- oParam.outds = "ds_main_hsctinfo_patinfolist=patinfolist";
- oParam.async = false;
- oParam.callback = "cf_TRABO00001";
- tranf_submit(oParam);
- }
- function cf_TRABO00001(sSvcId, nErrorCode, sErrorMsg)
- {
- if(nErrorCode < 0)
- {
- return;
- }
- else
- {
- // if( ds_main_hsctinfo_patinfolist.rowcount > 0 && ds_main_hsctinfo_patinfolist.getColumn(0, "dethdd") == "00000000" ){
- // ds_main_hsctinfo_patinfolist.setColumn(0, "dethdd", utlf_getCurrentDate());
- // }
-
- var oParam = {};
- oParam.id = "TRABO00102";
- oParam.service = "hsctcoordinatorapp.HsctPatient";
- oParam.method = "reqGetTrnptDg";
- oParam.inds = "req=ds_send_req";
- oParam.outds = "ds_temp_trnptdg_item=item";
- oParam.async = false;
- //oParam.callback = "cf_TRABO00102";
- tranf_submit(oParam);
- if(ds_temp_trnptdg_item.rowcount > 0)
- {
- if(utlf_isNull(ds_temp_bmtpatientinfo.getColumn(0, "trnptdg")))
- {
- cmb_trnptdg.index = ds_temp_trnptdg_item.rowcount -1;
- }
- else
- {
- cmb_trnptdg.index = abofGetTrnptDgComboIndex(ds_temp_bmtpatientinfo.getColumn(0, "trnptdg"));
- //ds_temp_bmtpatientinfo.clearData();
- }
- fSetDisplay();
- }
- }
- }
- function fSetDisplay()
- {
- ds_send_req.setColumn(0, "trnptdg", ds_main.getColumn(0, "trnptdg"));
- var oParam = {};
- oParam.id = "TRABO02201";
- oParam.service = "hsctcoordinatorapp.HsctPatient";
- oParam.method = "reqGetTrnptAftStat";
- oParam.inds = "req=ds_send_req";
- oParam.outds = "ds_main_trnptaft_trnptaftstat=trnptaftstat ds_=message";
- oParam.async = false;
- //oParam.callback = "cf_TRABO02201";
- tranf_submit(oParam);
- var sdethrgstyn = ds_main_hsctinfo_patinfolist.getColumn(0, "dethrgstyn");
- var sdethdd = ds_main_hsctinfo_patinfolist.getColumn(0, "dethdd");
-
- if (sdethrgstyn == "N" && sdethdd != "00000000")
- {
- ds_main_hsctinfo_patinfolist.setColumn(0, "dethyn", "Y");
- grp_sea.ipt_dethdd.style.border = "1 solid red";
- }
- else
- {
- if ( sdethrgstyn == "Y" )
- {
- ds_main_hsctinfo_patinfolist.setColumn(0, "dethyn", "Y");
- }
- else
- {
- ds_main_hsctinfo_patinfolist.setColumn(0, "dethyn", "N");
- }
- grp_sea.ipt_dethdd.style.border = "1 solid #c0c0c0";
- }
- if(ds_main_hsctinfo_patinfolist.getColumn(0, "dethyn") == "Y")
- {
- grp_sea.ipt_dethdd.enable = true;
- grp_sea.cmb_dethresn.enable = true;
- }
- else
- {
- grp_sea.ipt_dethdd.enable = false;
- grp_sea.cmb_dethresn.enable = false;
- }
- ds_temp_patdethinfo.setColumn(0, "dethdd", ds_main_hsctinfo_patinfolist.getColumn(0, "dethdd"));
- ds_temp_patdethinfo.setColumn(0, "dethresn", ds_main_hsctinfo_patinfolist.getColumn(0, "dethresn"));
- ds_temp_patdethinfo.setColumn(0, "dethyn", ds_main_hsctinfo_patinfolist.getColumn(0, "dethyn"));
- }
- function btn_pid_onclick(obj:Button, e:ClickEventInfo)
- {
- if(abofGetBmtPatientSearch("ds_hidden_hsctinfo_patinfolist", "ds_temp_bmtpatientinfo"))
- {
- ds_main_hsctinfo_patinfolist.setColumn(0, "pid", ds_hidden_hsctinfo_patinfolist.getColumn(0, "pid"))
- ds_main_hsctinfo_patinfolist.setColumn(0, "hngnm", ds_hidden_hsctinfo_patinfolist.getColumn(0, "hngnm"))
- ds_main_hsctinfo_patinfolist.setColumn(0, "rrgstno1", ds_hidden_hsctinfo_patinfolist.getColumn(0, "rrgstno1"))
- ds_main_hsctinfo_patinfolist.setColumn(0, "rrgstno2", ds_hidden_hsctinfo_patinfolist.getColumn(0, "rrgstno2"))
- ds_main_hsctinfo_patinfolist.setColumn(0, "sex", ds_hidden_hsctinfo_patinfolist.getColumn(0, "sex"))
- ds_main_hsctinfo_patinfolist.setColumn(0, "age", ds_hidden_hsctinfo_patinfolist.getColumn(0, "age"))
- ds_main_hsctinfo_patinfolist.setColumn(0, "cibmtrid", ds_hidden_hsctinfo_patinfolist.getColumn(0, "cibmtrid"))
-
- fGetPatientInfo();
- }
- }
- function grp_sea_btn_sea_onclick(obj:Button, e:ClickEventInfo)
- {
- if(utlf_isNull(ds_main_hsctinfo_patinfolist.getColumn(0, "pid")))
- {
- return;
- }
- if (!utlf_isNull(ds_main.getColumn(0, "trnptdg")))
- {
- fSetDisplay();
- }
- else
- {
- fGetPatientInfo();
- }
- }
- function grp_sea_bool_dethyn_onclick(obj:CheckBox, e:ClickEventInfo)
- {
- if(obj.value == "Y")
- {
- grp_sea.ipt_dethdd.enable = true;
- grp_sea.cmb_dethresn.enable = true;
- if(ds_main_hsctinfo_patinfolist.getColumn(0, "dethdd") == "00000000"){
- ds_main_hsctinfo_patinfolist.setColumn(0, "dethdd", utlf_getCurrentDate());
- }
- }
- else
- {
- grp_sea.ipt_dethdd.enable = false;
- grp_sea.cmb_dethresn.enable = false;
- ds_main_hsctinfo_patinfolist.setColumn(0, "dethdd", "00000000");
- ds_main_hsctinfo_patinfolist.setColumn(0, "dethresn", "-");
- }
- }
- function btn_excsave_onclick(obj:Button, e:ClickEventInfo)
- {
- grdf_exportExcel(grd_trnptaftstat, "이식후상태", "이식후상태", false, "", "", false);
- }
- function btn_grdadd_onclick(obj:Button, e:ClickEventInfo)
- {
- var irow = ds_main_trnptaft_trnptaftstat.addRow();
- if (irow <= 1)
- {
- ds_main_trnptaft_trnptaftstat.setColumn(irow, "cntsnm", ds_temp_trnptaftstat_cntsnm.getColumn(irow, "nm"))
- }
- ds_main_trnptaft_trnptaftstat.setColumn(irow, "pid", ds_main_hsctinfo_patinfolist.getColumn(0, "pid"))
- ds_main_trnptaft_trnptaftstat.setColumn(irow, "trnptdg", ds_main.getColumn(0, "trnptdg"));
- }
- function btn_grddel_onclick(obj:Button, e:ClickEventInfo)
- {
- if(utlf_isNull(ds_main_trnptaft_trnptaftstat.getColumn(ds_main_trnptaft_trnptaftstat.rowposition, "cntsnm")))
- {
- ds_main_trnptaft_trnptaftstat.deleteRow(ds_main_trnptaft_trnptaftstat.rowposition);
- }
- else
- {
- ds_main_trnptaft_trnptaftstat.updatecontrol = false;
- ds_main_trnptaft_trnptaftstat.setRowType(ds_main_trnptaft_trnptaftstat.rowposition, "d");
- ds_main_trnptaft_trnptaftstat.updatecontrol = true;
- }
- }
- function cmb_trnptdg_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
- fSetDisplay();
- }
- function btn_save_onclick(obj:Button, e:ClickEventInfo)
- {
- fSaveData();
- }
- function fSaveData(paramFlag)
- {
- if (( ds_main_hsctinfo_patinfolist.getColumn(0, "dethrgstyn") == "N" && ds_main_hsctinfo_patinfolist.getColumn(0, "dethdd") != "00000000")
- || ds_main_hsctinfo_patinfolist.getColumn(0, "dethdd") != ds_temp_patdethinfo.getColumn(0, "dethdd")
- || ds_main_hsctinfo_patinfolist.getColumn(0, "dethresn") != ds_temp_patdethinfo.getColumn(0, "dethresn")
- || ds_main_hsctinfo_patinfolist.getColumn(0, "dethyn") != ds_temp_patdethinfo.getColumn(0, "dethyn"))
- {
- var oParam = {};
- oParam.id = "TXABO02200";
- oParam.service = "hsctcoordinatorapp.HsctPatient";
- oParam.method = "reqSetPatDethInfo";
- oParam.inds = "patinfolist=ds_main_hsctinfo_patinfolist";
- oParam.outds = "ds_=item ds_=message";
- oParam.async = false;
- //oParam.callback = "cf_TXABO02200";
- tranf_submit(oParam);
- }
- var oParam = {};
- oParam.id = "TXABO02201";
- oParam.service = "hsctcoordinatorapp.HsctPatient";
- oParam.method = "reqExeTrnptAftMngt";
- oParam.inds = "trnptaftstat=ds_main_trnptaft_trnptaftstat:U";
- oParam.outds = "ds_=item ds_=message";
- oParam.typeStr = "m";
- oParam.async = false;
- oParam.callback = "cf_TXABO02201";
- tranf_submit(oParam);
- }
- function cf_TXABO02201(sSvcId, nErrorCode, sErrorMsg)
- {
- if(nErrorCode < 0)
- {
- return;
- }
- else
- {
- ds_temp_bmtpatientinfo.setColumn(0, "trnptdg", ds_main.getColumn(0, "trnptdg"));
- fGetPatientInfo();
- }
- }
- ]]></Script>
- </Form>
- </FDL>
|