123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMADT12160" classname="SMADT12160_마약류연계보고결과에러메세지조회" inheritanceid="" position="absolute 0 0 1104 650" titletext="연계보고 결과 Error 메세지 조회" onload="SMADT12160_onload" oninit="SMADT12160_oninit">
- <Layouts>
- <Layout>
- <Static id="caption01" text="연계보고 결과 목록" class="tit_2" position="absolute -1 48 159 69"/>
- <Grid id="grd_errorlist" taborder="17" binddataset="ds_errorlist" autoenter="select" useinputpanel="false" selecttype="row" cellsizingtype="both" position="absolute 0 69 1100 608" anchor="all">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25" band="left"/>
- <Column size="68"/>
- <Column size="988"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1" text="Error 코드"/>
- <Cell col="2" text="Error 메세지"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" text="expr:currow+1"/>
- <Cell col="1" text="bind:error_cd"/>
- <Cell col="2" style="align:left;padding:0 0 0 6;" text="bind:error_msg"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Shape id="line7" class="line_10" position="absolute 0 64 1100 70" anchor="left top right"/>
- <Div id="grp_search" anchor="left top right" taborder="19" class="div_SA2" position="absolute 0 0 1100 35">
- <Layouts>
- <Layout>
- <Static id="caption1" text="연계파일명 :" class="search_name" position="absolute 21 10 105 27" anchor="default"/>
- <Edit id="ipt_file_name" taborder="1" imemode="alpha" inputmode="upper" autoselect="true" class="output" position="absolute 110 8 356 27" anchor="default" readonly="true"/>
- <Static id="caption00" text="사용자보고식별번호 :" class="search_name" position="absolute 381 10 517 27" anchor="default"/>
- <Edit id="ipt_usr_prt_id_no" taborder="2" imemode="alpha" inputmode="upper" autoselect="true" class="output" position="absolute 522 8 673 27" anchor="default" readonly="true"/>
- <Static id="caption02" text="결과파일명 :" class="search_name" position="absolute 693 10 777 27"/>
- <Edit id="ipt_result_file_name" taborder="3" imemode="alpha" inputmode="upper" readonly="true" autoselect="true" class="output" position="absolute 782 8 1047 27"/>
- </Layout>
- </Layouts>
- </Div>
- <Button id="btn_cls" taborder="20" text="닫기" onclick="btn_cls_onclick" class="btn3" position="absolute 1035 617 1091 639"/>
- <Button id="btn_download" taborder="21" text="엑셀 Download" class="btn2" visible="true" position="absolute 992 45 1100 64" anchor="top right" onclick="btn_download_onclick"/>
- </Layout>
- </Layouts>
- <Bind>
- <BindItem id="item12" compid="SMADT12160" propid="text" datasetid="ds_main_prntlist_patinfo" columnid=""/>
- <BindItem id="item3" compid="grp_search.ipt_file_name" propid="value" datasetid="ds_send_search" columnid="file_name"/>
- <BindItem id="item0" compid="grp_search.ipt_usr_prt_id_no" propid="value" datasetid="ds_send_search" columnid="usr_rpt_id_no"/>
- <BindItem id="item1" compid="grp_search.ipt_result_file_name" propid="value" datasetid="ds_send_search" columnid="result_file_name"/>
- </Bind>
- <Objects>
- <Dataset id="ds_errorlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="error_cd" type="STRING" size="256"/>
- <Column id="error_msg" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_send_search" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="result_file_name" type="STRING" size="256"/>
- <Column id="usr_rpt_id_no" type="STRING" size="256"/>
- <Column id="file_name" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- </Objects>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name : 경대 의료정보시스템
- * Job Name : ast_pharmacydrugsumxp-> SMADT12160
- * Creator : pjb
- * Make Date : 2018-05-08
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2018-05-08 pjb XP개발
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- //=======================================================================================
- // Lib Include
- //---------------------------------------------------------------------------------------
- include "com_commonxp::comm_main.xjs";
- //include "mis_miscommonxp::MIS.xjs";
- //include "mis_humtrafactmngtxp::RPB001.xjs";
- //=======================================================================================
- // Global Form Variable
- //---------------------------------------------------------------------------------------
- var arErrorCode = new HashArray();
- //=======================================================================================
- // Function
- //---------------------------------------------------------------------------------------
- //=======================================================================================
- // Event
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Components : Form
- * Components ID : SMADT12160
- * Event : oninit
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 처음 초기화시
- ****************************************************************************************/
- function SMADT12160_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj); //폼 초기화
- }
- /****************************************************************************************
- * Components : Form
- * Components ID : SMADT12160
- * Event : onload
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 로딩 완료시
- ****************************************************************************************/
- function SMADT12160_onload(obj:Form, e:LoadEventInfo)
- {
- //grdf_setRowTypeIcon(grd_errorlist, 0);
- grdf_setGridSort(grd_errorlist);
- // 오프너에서 전달받은 정보
- try{
- dsf_copyDs(ds_send_search, arg_ds_resultinfo, "replace");
- }catch(e){}
-
- //연계보고결과조회
- var oParam = {};
- oParam.id = "TRADT12161";
- oParam.service = "pharmacydrugsumapp.NarcManagent";
- oParam.method = "reqGetResultErrorList";
- oParam.inds = "req=ds_send_search";
- oParam.outds = "ds_errorlist=errorlist";
- oParam.async = false;
- //oParam.callback = "cf_TRADT12161";
- tranf_submit(oParam);
-
-
- //if (arErrorCode.pop("TRADT12161") > -1){
- //}
-
-
- }
- function cf_TRADT12161(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- function btn_download_onclick(obj:Button, e:ClickEventInfo)
- {
- //조회된 자료가 없으면 먼저 조회하라고 message
- if(ds_errorlist.rowcount < 1) {
- sysf_messageBox("조회된 결과가 존재하지 않습니다. \n\n먼저 조회 후 Download 하십시요. ", "E999", "");
- return;
- }
-
- grdf_exportExcel(grd_errorlist, "excel", "savetype", false, "", "user", false);
-
- }
- function btn_cls_onclick(obj:Button, e:ClickEventInfo)
- {
- this.close();
- }
- ]]></Script>
- </Form>
- </FDL>
|