123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPASI02900" position="absolute 0 0 531 377" titletext="지정전염병조회" onload="SPASI02900_onload" class="frm_POP">
- <Layouts>
- <Layout>
- <Div position="absolute 2 35 520 351" id="group3" scrollbars="autoboth" positiontype="position">
- <Layouts>
- <Layout>
- <Grid position="absolute 10 11 517 301" id="grd_spclist" binddataset="ds_grid_grd_spclist" positiontype="position" oncelldblclick="grd_spclist_oncelldblclick" oncellclick="group3_grd_spclist_oncellclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="30"/>
- <Column size="0"/>
- <Column size="465"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1" text="reptflag"/>
- <Cell col="2" text="전염병명"/>
- </Band>
- <Band id="body">
- <Cell displaytype="expr:reptflag == '01' ? 'checkbox' : 'none'" edittype="expr:reptflag == '01' ? 'checkbox' : 'none'" text="expr:check == "1" ? 'Y' : ''"/>
- <Cell col="1" text="bind:reptflag"/>
- <Cell col="2" text="bind:lglydisnm"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- </Layout>
- </Layouts>
- </Div>
- <Static id="stt_titleText" text="지정전염병 리스트" class="sta_POP_title" position="absolute 12 8 488 28" enableevent="false"/>
- <Button id="Button00" taborder="1" class="btn_POP_cls" position="absolute 504 12 518 25" onclick="btn_cancel_onclick"/>
- <Button id="btn_confirm" taborder="2" text="확인" onclick="btn_confirm_onclick" class="btn4" position="absolute 404 346 460 366"/>
- <Button id="btn_cancel" taborder="3" text="취소" onclick="btn_cancel_onclick" class="btn4" position="absolute 463 346 519 366"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_grid_grd_spclist" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false" onrowposchanged="ds_grid_grd_spclist_onrowposchanged">
- <ColumnInfo>
- <Column id="check" type="STRING"/>
- <Column id="reptflag" type="STRING"/>
- <Column id="lglydisnm" type="STRING"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- </Objects>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name : Himed
- * Job Name :
- * File Name : SPASI02900_지정전염병조회.xfdl
- * Creator :
- * Make Date : 2014-08-20
- *
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2014-08-20 HIT Converting Program(TF->XP)
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- //=======================================================================================
- // xjs Include
- //---------------------------------------------------------------------------------------
- include "com_commonxp::comm_main.xjs";
- include "com_commodulexp::SSZFM00401.xjs"; // Dataset 뷰어용
- //=======================================================================================
- // Function
- //---------------------------------------------------------------------------------------
- /**********************************************************************************
- * Argument
- * Description : 조회 함수
- * writer :
- **********************************************************************************/
- function lf_search()
- {
- var objParam = new Object();
- objParam.id = "TRASI02901";
- objParam.service = "infcmngtapp.LglyDisMngt";
- objParam.method = "reqGetLglyDisApntList";
- //objParam.inds = "req=ds_cond_req";
- objParam.outds ="ds_grid_grd_spclist=info";
- objParam.callback = "cbf_lfCallback";
- tranf_submit(objParam);
- }
- /**********************************************************************************
- * Argument
- * Description : submit() 후 callback함수
- * writer :
- **********************************************************************************/
- function cbf_lfCallback(strSvcID, nErrorCode, strErrorMsg){
- if(strSvcID == "TRASI02901" ){ // search
- if( nErrorCode == 0 ){
- //lf_setCheckBox();
- }
- }
- }
- //=======================================================================================
- // Event
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Components :
- * Components ID : SPASI02900
- * Event : onload
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description :
- ****************************************************************************************/
- function SPASI02900_onload(obj:Form, e:LoadEventInfo)
- {
- frmf_initForm(obj); // 화면공통
- lf_commoduleDataSetShow(); //DataSet 조회;
-
- lf_search();
- }
- /****************************************************************************************
- * Components :
- * Components ID : grd_spclist
- * Event : oncelldblclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description :
- ****************************************************************************************/
- function grd_spclist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
- {
- if( ds_grid_grd_spclist.rowcount > 0 ) {
- var iRow = ds_grid_grd_spclist.rowposition;
-
- if( "" == utlf_transNullToEmpty(ds_grid_grd_spclist.getColumn( iRow, "reptflag")) ) {
- sysf_messageBox("간염표본감시결과신고서에서 신고", "I006");
- return;
- } else {
- var nm = utlf_transNullToEmpty(ds_grid_grd_spclist.getColumn( iRow, "lglydisnm"));
- trace("nm : " + nm);
- opener.frmf_setParameter("SPASI02900_lglynm", ds_grid_grd_spclist.getColumn( iRow, "lglydisnm"));
- /*
- var rtnObj = new Object();
- rtnObj.prv_sNm = nm;
- close(rtnObj);
- */
- this.close();
-
- }
- }
-
- }
- /****************************************************************************************
- * Components :
- * Components ID : btn_cancel
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description :
- ****************************************************************************************/
- function btn_cancel_onclick(obj:Button, e:ClickEventInfo)
- {
- this.close();
- }
- /****************************************************************************************
- * Components :
- * Components ID : btn_confirm
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description :
- ****************************************************************************************/
- function btn_confirm_onclick(obj:Button, e:ClickEventInfo)
- {
- if( ds_grid_grd_spclist.rowcount > 0 ) {
- var iRow = ds_grid_grd_spclist.rowposition;
-
- if(iRow < 0) {
- sysf_messageBox("전염병명을 ", "C002");
- return;
- } else {
- if( "03" == utlf_transNullToEmpty(ds_grid_grd_spclist.getColumn( iRow, "reptflag")) ) {
- sysf_messageBox("간염표본감시결과신고서에서 신고", "I006");
- return;
- } else {
- var nm = utlf_transNullToEmpty(ds_grid_grd_spclist.getColumn( iRow, "lglydisnm"));
- trace("nm : " + nm);
- opener.frmf_setParameter("SPASI02900_lglynm", ds_grid_grd_spclist.getColumn( iRow, "lglydisnm"));
- /*
- var rtnObj = new Object();
- rtnObj.prv_sNm = nm;
- close(rtnObj);
- */
- this.close();
- }
- }
- }
- }
- function group3_grd_spclist_oncellclick(obj:Grid, e:GridClickEventInfo)
- {
- for(var i=0; i< ds_grid_grd_spclist.rowcount; i++){
- ds_grid_grd_spclist.setColumn(i, "check", "");
- }
- ds_grid_grd_spclist.setColumn(ds_grid_grd_spclist.rowposition, "check", "1");
- }
- function ds_grid_grd_spclist_onrowposchanged(obj:Dataset, e:DSRowPosChangeEventInfo)
- {
- group3_grd_spclist_oncellclick();
- }
- ]]></Script>
- </Form>
- </FDL>
|