123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMMRD05000" classname="SMMRD05000_대장암치료내역관리" inheritanceid="" position="absolute 0 0 1190 780" titletext="New Form" oninit="SMMRD05000_oninit" onload="SMMRD05000_onload">
- <Layouts>
- <Layout>
- <Grid id="grd_cncr" taborder="1" binddataset="ds_data_cncrlist" useinputpanel="false" selecttype="multirow" cellsizingtype="col" cellsizebandtype="allband" position="absolute 0 97 465 780" anchor="all" oncelldblclick="grd_cncr_oncelldblclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25" band="left"/>
- <Column size="60" band="left"/>
- <Column size="60" band="left"/>
- <Column size="70"/>
- <Column size="70"/>
- <Column size="70"/>
- <Column size="70"/>
- </Columns>
- <Rows>
- <Row size="35" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1" text="등록번호"/>
- <Cell col="2" text="환자명"/>
- <Cell col="3" text="술전검사"/>
- <Cell col="4" text="병리조직 검사결과"/>
- <Cell col="5" text="수술소견"/>
- <Cell col="6" text="치료및추적"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" text="expr:currow + 1"/>
- <Cell col="1" text="bind:pid" wordwrap="char"/>
- <Cell col="2" text="bind:hngnm" wordwrap="char"/>
- <Cell col="3" text="bind:rec1" wordwrap="char"/>
- <Cell col="4" text="bind:rec2"/>
- <Cell col="5" text="bind:rec3"/>
- <Cell col="6" text="bind:rec4" wordwrap="char"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Shape id="line1" class="line_10" position="absolute 0 91 465 97" anchor="left top right"/>
- <Div id="div_rec" taborder="3" position="absolute 474 0 1190 755" url="emr_cncrpatmngtxp::SMMRD05001_술전검사.xfdl" anchor="top right bottom"/>
- <Div id="grp_srch" taborder="4" class="div_SA" position="absolute 0 24 465 87" anchor="left top right">
- <Layouts>
- <Layout>
- <Edit id="ipt_srchpid" taborder="0" autoselect="true" class="input_search" position="absolute 79 36 169 55" anchor="default"/>
- <Static id="caption1" text="등록번호 :" class="search_name" position="absolute 4 38 75 55" anchor="default"/>
- <Static id="caption32" text="조회기간 :" class="search_name" position="absolute 5 14 78 31" anchor="default"/>
- <Calendar id="ipt_srchstartdd" taborder="2" autoselect="true" dateformat="yyyy-MM-dd" class="input_search" position="absolute 80 12 165 31" anchor="default"/>
- <Static id="caption17" text="~" position="absolute 169 13 184 31" anchor="default"/>
- <Calendar id="ipt_srchenddd" taborder="3" autoselect="true" dateformat="yyyy-MM-dd" class="input_search" position="absolute 183 12 269 31" anchor="default"/>
- <Shape id="line4" linetype="vertical" position="absolute 376 18 382 44" anchor="top right"/>
- <Button id="btn_search" taborder="4" text="조회" onclick="grp_srch_btn_search_onclick" class="btn1" position="absolute 395 21 451 43" anchor="top right"/>
- </Layout>
- </Layouts>
- </Div>
- <Static id="caption28" text="대장암 치료내역 관리" onclick="caption28_onclick" class="tit_1" position="absolute 0 0 155 24"/>
- <Combo id="cmb_srchdeptcd" taborder="5" innerdataset="ds_init_forminfo" codecolumn="formcd" datacolumn="formnm" onitemchanged="cmb_srchdeptcd_onitemchanged" class="combo_search" position="absolute 1288 4 1424 23" visible="false"/>
- <Static id="caption30" text="기록 :" class="search_name" position="absolute 1213 6 1273 23" visible="false"/>
- <Button id="btn_Int" taborder="6" text="초기화" position="absolute 958 760 1023 780" class="btn4" anchor="right bottom" onclick="btn_Int_onclick" visible="false"/>
- <Button id="btn_new" taborder="7" text="신규" class="btn4" position="absolute 1026 760 1078 780" anchor="right bottom" onclick="btn_new_onclick"/>
- <Button id="btn_Del" taborder="8" text="삭제" class="btn4" position="absolute 1082 760 1134 780" anchor="right bottom" onclick="btn_Del_onclick"/>
- <Button id="btn_Save" taborder="9" text="저장" class="btn4" position="absolute 1138 760 1190 780" anchor="right bottom" onclick="btn_Save_onclick"/>
- <Button id="btn_syncdata" taborder="10" text="가져오기" class="btn5" position="absolute 541 760 606 780" anchor="right bottom" onclick="btn_syncdata_onclick" visible="false"/>
- <Button id="btn_Excel" taborder="11" text="Excel" onclick="btn_Excel_onclick" class="btn7" position="absolute 474 760 539 780" anchor="right bottom"/>
- </Layout>
- </Layouts>
- <Bind>
- <BindItem id="item7" compid="cmb_srchdeptcd" propid="" datasetid="ds_main_cond" columnid="orddeptcd"/>
- <BindItem id="item34" compid="cmb_srchdeptcd" propid="value" datasetid="ds_main_cond" columnid="deptcd"/>
- <BindItem id="item0" compid="grp_srch.ipt_srchstartdd" propid="value" datasetid="ds_cond_cncrlist" columnid="fromdd"/>
- <BindItem id="item1" compid="grp_srch.ipt_srchenddd" propid="value" datasetid="ds_cond_cncrlist" columnid="todd"/>
- <BindItem id="item2" compid="grp_srch.ipt_srchpid" propid="value" datasetid="ds_cond_cncrlist" columnid="pid"/>
- </Bind>
- <Objects>
- <Dataset id="ds_init_forminfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="hardcdno" type="BIGDECIMAL" size="255"/>
- <Column id="trgtcd" type="STRING" size="255"/>
- <Column id="trgtcdnm" type="STRING" size="255"/>
- <Column id="hardspec" type="STRING" size="255"/>
- <Column id="trgtcdsnm" type="STRING" size="255"/>
- <Column id="cdseqno" type="BIGDECIMAL" size="255"/>
- <Column id="valifromdd" type="STRING" size="255"/>
- <Column id="valitodd" type="STRING" size="255"/>
- <Column id="valifromdt" type="STRING" size="255"/>
- <Column id="valitodt" type="STRING" size="255"/>
- <Column id="condqry" type="STRING" size="255"/>
- <Column id="ccode" type="STRING" size="255"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="hardcdno">9991</Col>
- <Col id="trgtcd">rec1</Col>
- <Col id="trgtcdnm">술전검사</Col>
- <Col id="hardspec">emr_cncrpatmngtxp::SMMRD05001_술전검사.xfdl</Col>
- <Col id="cdseqno">1</Col>
- <Col id="valifromdd">20180411</Col>
- <Col id="valitodd">99991231</Col>
- <Col id="condqry"/>
- </Row>
- <Row>
- <Col id="hardcdno">9991</Col>
- <Col id="trgtcd">rec2</Col>
- <Col id="trgtcdnm">병리조직검사결과</Col>
- <Col id="hardspec">emr_cncrpatmngtxp::SMMRD05002_병리조직검사결과.xfdl</Col>
- <Col id="cdseqno">2</Col>
- <Col id="valifromdd">20180411</Col>
- <Col id="valitodd">99991231</Col>
- <Col id="condqry"/>
- </Row>
- <Row>
- <Col id="hardcdno">9991</Col>
- <Col id="trgtcd">rec3</Col>
- <Col id="trgtcdnm">수술소견</Col>
- <Col id="hardspec">emr_cncrpatmngtxp::SMMRD05003_수술소견.xfdl</Col>
- <Col id="cdseqno">3</Col>
- <Col id="valifromdd">20180411</Col>
- <Col id="valitodd">99991231</Col>
- <Col id="condqry"/>
- </Row>
- <Row>
- <Col id="hardcdno">9991</Col>
- <Col id="trgtcd">rec4</Col>
- <Col id="trgtcdnm">치료및추적</Col>
- <Col id="hardspec">emr_cncrpatmngtxp::SMMRD05004_치료및추적.xfdl</Col>
- <Col id="cdseqno">4</Col>
- <Col id="valifromdd">20180411</Col>
- <Col id="valitodd">99991231</Col>
- <Col id="condqry"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_cond_cncrlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="fromdd" type="STRING" size="256"/>
- <Column id="todd" type="STRING" size="256"/>
- <Column id="pid" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="fromdd"/>
- <Col id="todd"/>
- <Col id="pid"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_data_cncrlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_cond_cncrinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="formkind" type="STRING" size="256"/>
- <Column id="pid" type="STRING" size="256"/>
- <Column id="hngnm" type="STRING" size="256"/>
- <Column id="formcd" type="STRING" size="256"/>
- <Column id="condqry" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="formkind">N</Col>
- <Col id="pid"/>
- <Col id="formcd">rec1</Col>
- <Col id="hngnm"/>
- <Col id="condqry"/>
- </Row>
- </Rows>
- </Dataset>
- </Objects>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2018-04-01
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- *
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- //=======================================================================================
- // Lib Include
- //---------------------------------------------------------------------------------------
- include "com_commonxp::comm_main.xjs";
- //=======================================================================================
- // Global Form Variable
- //---------------------------------------------------------------------------------------
- var arErrorCode = new HashArray();
- //=======================================================================================
- // Function
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Argument : N/A
- * Description : N/A
- ****************************************************************************************/
-
-
- //=======================================================================================
- // Transaction Callback
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Argument : 01.sSvcId : 서비스 ID
- * : 02.nErrorCode : 에러코드
- * : 03.sErrorMsg : 에러메시지
- * Description : TR 의 콜백함수
- ****************************************************************************************/
- function cf_(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- if(nErrorCode < 0) return;
- }
- //=======================================================================================
- // Event
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Components : Form
- * Components ID : SMMRD05000
- * Event : oninit
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 초기화
- ****************************************************************************************/
- function SMMRD05000_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- /****************************************************************************************
- * Components : Form
- * Components ID : SMMRD05000
- * Event : onload
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 초기화
- ****************************************************************************************/
- function SMMRD05000_onload(obj:Form, e:LoadEventInfo)
- {
- // Grid Init
- grdf_setGridSort( grd_cncr );
-
- var cDate = utlf_getCurrentDate();
-
- var fDate = (utlf_getCurrentDate().toDate()).getAddDate(-1, "M");
- fDate = fDate.getDateFormat();
-
- ds_cond_cncrlist.setColumn(0, "fromdd", fDate);
- ds_cond_cncrlist.setColumn(0, "todd", cDate);
-
- dsf_createDsRow("ds_cond_TRMMT01002", [{col:"hardcdno", type:"STRING", size:256, val:"9991"}]);
- var oParam = {};
- oParam.id = "TRMMT01002";
- oParam.service = "schedulemngtapp.ScheduleMngt";
- oParam.method = "reqGetHrcdinfo";
- oParam.inds = "req=ds_cond_TRMMT01002";
- oParam.outds = "ds_init_forminfo=hrcdinfo";
- oParam.async = false;
- tranf_submit(oParam);
-
-
- grp_srch.btn_search.click();
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : grp_srch_btn_search
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 리스트 조회
- ****************************************************************************************/
- function grp_srch_btn_search_onclick(obj:Button, e:ClickEventInfo)
- {
- var oParam = {};
- oParam.id = "TRMRD05000";
- oParam.service = "cncrpatmngtapp.CncrRegstryMngt";
- oParam.method = "reqGetCncrRegstryMngtList";
- oParam.inds = "req=ds_cond_cncrlist";
- oParam.outds = "ds_data_cncrlist=list";
- oParam.async = false;
- //oParam.callback = "cf_TRMRD05000";
- tranf_submit(oParam);
- }
- function btn_Int_onclick(obj:Button, e:ClickEventInfo)
- {
-
- }
- function btn_new_onclick(obj:Button, e:ClickEventInfo)
- {
- if( utlf_isNull(div_rec.url ) ){
- return;
- }
-
- div_rec.lf_FormInit("Y");
- }
- function btn_Del_onclick(obj:Button, e:ClickEventInfo)
- {
- if( utlf_isNull(div_rec.url ) ){
- return;
- }
-
- div_rec.lf_FormSave("D");
- }
- function btn_Save_onclick(obj:Button, e:ClickEventInfo)
- {
- if( utlf_isNull(div_rec.url ) ){
- return;
- }
-
- div_rec.lf_FormSave();
- }
- function grd_cncr_oncelldblclick(obj:Grid, e:GridClickEventInfo)
- {
- if( e.row < 0 || e.col < 3 ) return;
-
- var recNm = null;
- if( e.col == obj.getBindCellIndex("body", "rec1") ){
- recNm = "rec1";
- }else if( e.col == obj.getBindCellIndex("body", "rec2") ){
- recNm = "rec2";
- }else if( e.col == obj.getBindCellIndex("body", "rec3") ){
- recNm = "rec3"
- }else if( e.col == obj.getBindCellIndex("body", "rec4") ){
- recNm = "rec4";
- }
- if( recNm == null ) return;
-
- var recYn = ds_data_cncrlist.getColumn(e.row, recNm);
- var pid = ds_data_cncrlist.getColumn(e.row, "pid");
- var hngnm = ds_data_cncrlist.getColumn(e.row, "hngnm");
-
- ds_cond_cncrinfo.setColumn(0, "formkind", recYn);
- ds_cond_cncrinfo.setColumn(0, "pid", pid);
- ds_cond_cncrinfo.setColumn(0, "hngnm", hngnm);
- ds_cond_cncrinfo.setColumn(0, "formcd", recNm);
-
- var condqry = utlf_transNullToEmpty(ds_init_forminfo.lookup("trgtcd", recNm, "hardspec"));
- ds_cond_cncrinfo.setColumn(0, "condqry", condqry);
-
- var formurl = ds_init_forminfo.lookup("trgtcd", recNm, "hardspec");
- if( !utlf_isNull(formurl) ){
- if( div_rec.url != formurl ){
- div_rec.url = formurl;
- }else{
- div_rec.lf_FormInit();
- }
- }else{
- sysf_messageBox("기록 화면이 존재하지 않습니다.", "E");
- }
- }
- function btn_syncdata_onclick(obj:Button, e:ClickEventInfo)
- {
- div_rec.lf_getSyncData();
- }
- function btn_Excel_onclick(obj:Button, e:ClickEventInfo)
- {
- var recNm = ds_cond_cncrinfo.getColumn(0, "formcd");
- var grdid = "";
- var caseid = "";
- var scrnid = "";
-
- if( recNm == "rec1" ){
- grdid = "grd_preslist";
- caseid = "pres";
- scrnid = "SMMRD05001";
- }else if( recNm == "rec2" ){
- grdid = "grd_rsltlist";
- caseid = "rslt";
- scrnid = "SMMRD05002";
- }else if( recNm == "rec3" ){
- grdid = "grd_opoplist";
- caseid = "opop";
- scrnid = "SMMRD05003";
- }else if( recNm == "rec4" ){
- grdid = "grd_cufulist";
- caseid = "cufu";
- scrnid = "SMMRD05004";
- }
-
- frmf_setParameter("SPMRD05000_param_grdid", grdid);
- frmf_setParameter("SPMRD05000_param_caseid", caseid);
- frmf_setParameter("SPMRD05000_param_scrnid", scrnid);
-
- frmf_modal("SPMRD05005", "SPMRD05005", null, null, null, null, null, null, null, null, null, null, "M");
-
- frmf_clearParameter("SPMRD05000_param_grdid");
- frmf_clearParameter("SPMRD05000_param_caseid");
- frmf_clearParameter("SPMRD05000_param_scrnid");
- }
- ]]></Script>
- </Form>
- </FDL>
|