123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPAER02500" position="absolute 0 0 530 560" titletext="과거진단조회" onload="SPAER02500_onload" oninit="SPAER02500_oninit">
- <Layouts>
- <Layout>
- <Grid id="grd_basecd" taborder="3" useinputpanel="false" position="absolute 1 19 527 527" anchor="all" onclick="grd_basecd_onclick" binddataset="ds_main_selectdiaglist" positiontype="position" cellsizingtype="col" oncolresized="grd_basecd_oncolresized" oncellclick="grd_basecd_oncellclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="42"/>
- <Column size="123"/>
- <Column size="189"/>
- <Column size="142"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell text="선택"/>
- <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 displaytype="checkbox" edittype="checkbox" text="bind:check" expr="expr:check == "Y"?"1":"0""/>
- <Cell col="1" text="bind:cnfmdt" mask="@@@@-@@-@@ @@:@@:@@"/>
- <Cell col="2" text="bind:termengnm"/>
- <Cell col="3" text="bind:rsltcomment"/>
- <Cell col="4" text="bind:termcd"/>
- <Cell col="5" text="bind:patholyn"/>
- <Cell col="6" text="bind:rsltno"/>
- <Cell col="7"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button id="btn_cls" taborder="4" text="닫기" class="btn4" position="absolute 474 534 530 554" anchor="right bottom" positiontype="position" onclick="btn_cls_onclick"/>
- <Button id="btn_cfm" taborder="5" text="확인" onlbuttonup="btn_cfm_onlbuttonup" class="btn4" position="absolute 415 534 471 554" anchor="right bottom" positiontype="position" onclick="btn_cfm_onclick"/>
- <Static id="caption1" text="과거진단조회" class="tit_2" position="absolute 1 1 138 21"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_temp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="termcd" type="STRING" size="256"/>
- <Column id="termengnm" type="STRING" size="256"/>
- <Column id="rsltcomment" 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="false">
- <ColumnInfo>
- <Column id="pid" type="STRING" size="256"/>
- <Column id="tmplcdflag" type="STRING" size="256"/>
- <Column id="prcpgenrflag" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="pid"/>
- <Col id="tmplcdflag">B</Col>
- <Col id="prcpgenrflag"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_selectdiaglist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" onvaluechanged="ds_main_selectdiaglist_onvaluechanged">
- <ColumnInfo>
- <Column id="check" type="STRING" size="256"/>
- <Column id="cnfmdt" type="STRING" size="256"/>
- <Column id="termengnm" type="STRING" size="256"/>
- <Column id="rsltcomment" type="STRING" size="256"/>
- <Column id="termcd" type="STRING" size="256"/>
- <Column id="patholyn" type="STRING" size="256"/>
- <Column id="rsltno" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="check"/>
- <Col id="cnfmdt"/>
- <Col id="termengnm"/>
- <Col id="rsltcomment"/>
- <Col id="termcd"/>
- <Col id="patholyn"/>
- <Col id="rsltno"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_send_globalinstance" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="instance1" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- </Objects>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * File Name : SPAER02500_과거진단조회.xfdl
- * Creator :
- * Make Date :
- *
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- //=======================================================================================
- // xjs Include
- //---------------------------------------------------------------------------------------
- include "com_commonxp::comm_main.xjs";
- include "ast_examcurexp::AEZ0001.xjs";
- //=======================================================================================
- // Function
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Argument : N/A
- * Description : 결과예문 선택 시 Parent Instance Setting Function
- ****************************************************************************************/
- function fSendContents() {
- if(frmf_checkOpener()){
- var row = -1;
-
- for (var i=0; i<ds_main_selectdiaglist.rowcount; i++) {
- var check = ds_main_selectdiaglist.getColumn(i, "check");
- if (check == "Y" ) {
- row = row + 1;
- ds_temp.addRow();
- ds_temp.setColumn(row, "termcd" , ds_main_selectdiaglist.getColumn(i, "termcd"));
- ds_temp.setColumn(row, "termengnm" , ds_main_selectdiaglist.getColumn(i, "termengnm"));
- ds_temp.setColumn(row, "rsltcomment", ds_main_selectdiaglist.getColumn(i, "rsltcomment"));
- }//메인창으로 값을 넘겨주는 데이터, ds_temp로 넘길수 있게
- }
- if(ds_temp.getRowCount() > 0){
- //결과관리 창으로 값만 넘겨주면 됨
- opener.dsf_createDs("ds_temp_selectdiaglist");
- opener.ds_temp_selectdiaglist.copyData(ds_temp);
- }
- }else {
- sysf_messageBox("Parent 창[결과관리]이 변경되었습니다.","I999");
- return;
- }
- this.close();
- }
- /****************************************************************************************
- * Argument : N/A
- * Description : 조회함수
- ****************************************************************************************/
- function f_TRAER00417(){
- dsf_createDsRow("ds_req",
- [{col:"pid" , val:ds_send.getColumn(0, "pid")}
- ,{col:"suppdeptcd" , val:opener.ds_send_globalinstance.getColumn(0,"instance1")}
- ,{col:"flag" , val:"L"}
- ,{col:"prcpgenrflag", val:ds_send.getColumn(0, "prcpgenrflag")}]);
-
- if (!utlf_isNull(ds_send.getColumn(0, "pid"))) {
- var oParam = {};
- oParam.id = "TRAER00417";
- oParam.service = "examcurebaseapp.ComCode";
- oParam.method = "reqGetHistoryDiagDataList";
- oParam.inds = "req=ds_req";
- oParam.outds = "ds_main_selectdiaglist=item";
- oParam.async = false;
- oParam.callback = "cf_TRAER00417";
- tranf_submit(oParam);
- }
- }
- function cf_TRAER00417(sSvcId, objErrorCode, objErrorMsg) {
- ds_main_selectdiaglist.updateColID("diagcd","termcd");
- ds_main_selectdiaglist.updateColID("diagnm","termengnm");
- }
- //=======================================================================================
- // Event
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Components : Form
- * Components ID : SPAER02500
- * Event : oninit
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 처음 초기화시 폼초기화
- ****************************************************************************************/
- function SPAER02500_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj); // 화면공통
- }
- /****************************************************************************************
- * Components : Form
- * Components ID : SPAER02500
- * Event : onload
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 처음 초기화시 폼초기화
- ****************************************************************************************/
- function SPAER02500_onload(obj:Form, e:LoadEventInfo)
- {
- lf_aezfSetSuppDeptcd();
-
- ds_main_selectdiaglist.clearData();
-
- ds_hidden.copyData(arg_ds_hidden);
-
- ds_send.setColumn(0,"pid" ,ds_hidden.getColumn(0,"pid"));
- ds_send.setColumn(0,"prcpgenrflag" ,ds_hidden.getColumn(0,"prcpgenrflag"));
- // sysf_trace(ds_send.saveXML());
- if (!utlf_isNull(ds_send.getColumn(0, "pid"))) {
- f_TRAER00417();
- }
- }
- /****************************************************************************************
- * Components : Grid
- * Components ID : grd_basecd
- * Event : oncellclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description :
- ****************************************************************************************/
- function grd_basecd_oncellclick(obj:Grid, e:GridClickEventInfo)
- {
- for(var i = 0; i<ds_main_selectdiaglist.getRowCount(); i++){
- ds_main_selectdiaglist.setColumn(i, "check", "0");
- }
-
- ds_main_selectdiaglist.setColumn(ds_main_selectdiaglist.rowposition, "check", "1");
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_cfm
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 확인버튼 클릭
- ****************************************************************************************/
- function btn_cfm_onclick(obj:Button, e:ClickEventInfo)
- {
- var rowcnt = 0;
-
- for(var i=0; i<ds_main_selectdiaglist.rowcount; i++) {
- if(ds_main_selectdiaglist.getColumn(i, "check") == "Y"){
- rowcnt ++;
- }
- }
-
- if (rowcnt > 0) {
- fSendContents();
- }
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_cls
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면닫기
- ****************************************************************************************/
- function btn_cls_onclick(obj:Button, e:ClickEventInfo)
- {
- this.close();
- }
- /****************************************************************************************
- * Components : Grid
- * Components ID : grd_basecd
- * Event : oncolresized
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description :
- ****************************************************************************************/
- function grd_basecd_oncolresized(obj:Grid, e:GridSizeChangedEventInfo)
- {
- if(e.newvalue == 0){
- obj.setRealColSize(e.subindex, 1);
- }
- }
- /****************************************************************************************
- * Components : Dataset
- * Components ID : ds_main_selectdiaglist
- * Event : onvaluechanged
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description :
- ****************************************************************************************/
- function ds_main_selectdiaglist_onvaluechanged(obj:Dataset, e:DSColChangeEventInfo)
- {
- if(e.columnid == "check"){
- if(e.newvalue == "1"){
- ds_main_selectdiaglist.setColumn(e.row, "check", "Y");
- }else{
- ds_main_selectdiaglist.setColumn(e.row, "check", "N");
- }
- }
- }
- function Button00_onclick(obj:Button, e:ClickEventInfo)
- {
- this.close();
- }
- ]]></Script>
- </Form>
- </FDL>
|