123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMADT12150" classname="SMADT12150_마약류연계보고결과조회" inheritanceid="" position="absolute 0 0 1200 780" titletext="마약류 연계보고 결과 조회" onload="SMADT12150_onload" oninit="SMADT12150_oninit">
- <Layouts>
- <Layout>
- <Static id="caption6" text="마약류 연계보고 결과 조회" class="tit_1" position="absolute 0 0 195 25"/>
- <Div id="grp_search" anchor="left top right" taborder="1" class="div_SA" position="absolute 0 50 1195 85">
- <Layouts>
- <Layout>
- <Static id="caption2" text="보고구분 :" class="search_name" position="absolute 429 10 504 27" anchor="default"/>
- <Button id="btn_search" taborder="58" text="조회" class="btn1" position="absolute 862 8 918 30" anchor="default" onclick="grp_search_btn_search_onclick"/>
- <Static id="caption1" text="전송일자 :" class="search_name" position="absolute 21 10 92 27" anchor="default"/>
- <Calendar id="ipt_dd_from" taborder="59" autoselect="true" dateformat="yyyy-MM-dd" class="input_essential" position="absolute 97 8 197 27" style="align:center;" align="align:center middle;" mask="yyyy-mm-dd" anchor="default"/>
- <Static id="caption00" text="~" position="absolute 201 9 212 26" style="align:center;font:dotum,9,bold;" anchor="default"/>
- <Calendar id="ipt_dd_to" taborder="60" autoselect="true" dateformat="yyyy-MM-dd" class="input_essential" position="absolute 217 8 317 27" style="align:left;" mask="yyyy-mm-dd" anchor="default"/>
- <Combo id="cmb_rpt_se_cd" taborder="61" class="combo_search" position="absolute 506 8 617 27" anchor="default" datacolumn="rpt_se_nm" codecolumn="rpt_se_cd" innerdataset="@ds_rpt_se_cd" onitemchanged="grp_search_cmb_rpt_se_cd_onitemchanged"/>
- <Button id="btn_backward" taborder="62" text="<" position="absolute 323 7 345 29" onclick="grp_search_btn_backward_onclick"/>
- <Button id="btn_today" taborder="63" text="당일" position="absolute 346 7 378 29" onclick="grp_search_btn_today_onclick"/>
- <Button id="btn_forward" taborder="64" text=">" position="absolute 379 7 401 29" onclick="grp_search_btn_forward_onclick"/>
- <Static id="caption03" text="보고결과 :" class="search_name" position="absolute 645 10 720 27"/>
- <Combo id="cmb_result_cd" taborder="65" class="combo_search" position="absolute 722 8 833 27" codecolumn="codecolumn" datacolumn="datacolumn">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn" size="256"/>
- <Column id="datacolumn" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn"/>
- <Col id="datacolumn">전체</Col>
- </Row>
- <Row>
- <Col id="codecolumn">0000</Col>
- <Col id="datacolumn">성공</Col>
- </Row>
- <Row>
- <Col id="codecolumn">9999</Col>
- <Col id="datacolumn">실패</Col>
- </Row>
- </Rows>
- </Dataset>
- </Combo>
- </Layout>
- </Layouts>
- </Div>
- <Static id="caption01" text="연계보고 결과 목록" class="tit_2" position="absolute -1 99 159 120"/>
- <Grid id="grd_resultlist" taborder="17" binddataset="ds_resultlist" autoenter="select" useinputpanel="false" selecttype="row" cellsizingtype="both" position="absolute 0 120 1195 719" anchor="all" oncelldblclick="grd_resultlist_oncelldblclick" onkeydown="grd_resultlist_onkeydown">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25" band="left"/>
- <Column size="57"/>
- <Column size="124"/>
- <Column size="78"/>
- <Column size="73"/>
- <Column size="238"/>
- <Column size="150"/>
- <Column size="74"/>
- <Column size="62"/>
- <Column size="54"/>
- <Column size="56"/>
- <Column size="119"/>
- <Column size="251"/>
- <Column size="51"/>
- <Column size="42"/>
- <Column size="125"/>
- </Columns>
- <Rows>
- <Row size="24" 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="사용자보고식별번호"/>
- <Cell col="7" text="등록번호"/>
- <Cell col="8" text="환자명"/>
- <Cell col="9" text="약번호"/>
- <Cell col="10" text="보고결과"/>
- <Cell col="11" text="접수번호"/>
- <Cell col="12" text="결과파일명"/>
- <Cell col="13" text="전송자"/>
- <Cell col="14" colspan="2" text="전송여부 초기화" taborder="undefined"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" text="expr:currow+1"/>
- <Cell col="1" displaytype="combo" style="align:center;" text="bind:rpt_ty_cd" combodataset="ds_sendflag" combocodecol="cd" combodatacol="nm"/>
- <Cell col="2" text="bind:senddt"/>
- <Cell col="3" displaytype="combo" style="align:center;" text="bind:rpt_se_cd" combodataset="ds_rpt_se_cd" combocodecol="rpt_se_cd" combodatacol="rpt_se_nm"/>
- <Cell col="4" displaytype="date" text="bind:hdr_de"/>
- <Cell col="5" text="bind:file_name"/>
- <Cell col="6" text="bind:usr_rpt_id_no"/>
- <Cell col="7" text="bind:pid"/>
- <Cell col="8" text="bind:patnm"/>
- <Cell col="9" displaytype="text" style="align:center;" text="bind:drugno"/>
- <Cell col="10" displaytype="combo" style="align:center;" text="bind:result_cd" combodataset="ds_result_cd" combocodecol="result_cd" combodatacol="result_nm"/>
- <Cell col="11" text="bind:rpt_rcept_no"/>
- <Cell col="12" text="bind:result_file_name"/>
- <Cell col="13" text="bind:emplnm"/>
- <Cell col="14" text="bind:execid"/>
- <Cell col="15" text="bind:execdt"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Shape id="line7" class="line_10" position="absolute 0 115 1195 121" anchor="left top right"/>
- <Div id="grp_button" anchor="left top right" taborder="40" position="absolute 0 13 1195 45">
- <Layouts>
- <Layout>
- <Shape id="line2" class="line_6" position="absolute 0 25 1195 31" anchor="left top right"/>
- </Layout>
- </Layouts>
- </Div>
- <Button id="btn_cancel" taborder="41" text="실패건 전송여부 초기화 (전산담당자용)" class="btn3" position="absolute 928 92 1191 114" onclick="btn_cancel_onclick" anchor="top right"/>
- <Static id="Static00" text="2."실패건 전송여부 초기화" 는 재전송 가능하도록 원데이터의 전송여부를 초기화합니다. 먼저 실패 원인을 찾아 직접 데이터를 수정해야하므로 전산담당자 이외에는 절대 사용을 금합니다." position="absolute 21 750 1192 770" style="color:red;font:dotum,9,bold;" anchor="left bottom"/>
- <Static id="Static01" text="※ 1.보고결과가 "실패" 또는 빈난인 경우, 반드시 전산담당자에게 연락바랍니다." position="absolute 3 732 890 752" style="color:red;font:dotum,9,bold;" anchor="left bottom"/>
- <Button id="btn_download" taborder="42" text="엑셀 Download" onclick="btn_download_onclick" class="btn2" position="absolute 815 94 923 113" anchor="top right"/>
- </Layout>
- </Layouts>
- <Bind>
- <BindItem id="item12" compid="SMADT12150" propid="text" datasetid="ds_main_prntlist_patinfo" columnid=""/>
- <BindItem id="item14" compid="grp_search.ipt_dd_from" propid="value" datasetid="ds_send_search" columnid="dd_from"/>
- <BindItem id="item15" compid="grp_search.ipt_dd_to" propid="value" datasetid="ds_send_search" columnid="dd_to"/>
- <BindItem id="item0" compid="grp_search.cmb_rpt_se_cd" propid="value" datasetid="ds_send_search" columnid="rpt_se_cd"/>
- <BindItem id="item1" compid="grp_search.cmb_result_cd" propid="value" datasetid="ds_send_search" columnid="result_cd"/>
- </Bind>
- <Objects>
- <Dataset id="ds_send_search" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="dd_from" type="STRING" size="256" sumtext="연도"/>
- <Column id="dd_to" type="STRING" size="256"/>
- <Column id="rpt_se_cd" type="STRING" size="256"/>
- <Column id="result_cd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_resultlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="senddt" type="STRING" size="256"/>
- <Column id="hdr_de" type="STRING" size="256"/>
- <Column id="rpt_se_cd" type="STRING" size="256"/>
- <Column id="usr_rpt_id_no" type="STRING" size="256"/>
- <Column id="file_name" type="STRING" size="256"/>
- <Column id="result_file_name" type="STRING" size="256"/>
- <Column id="result_cd" type="STRING" size="256"/>
- <Column id="result_msg" type="STRING" size="256"/>
- <Column id="rpt_rcept_no" type="STRING" size="256"/>
- <Column id="emplnm" type="STRING" size="256"/>
- <Column id="execid" type="STRING" size="256"/>
- <Column id="execdt" type="STRING" size="256"/>
- <Column id="pid" type="STRING" size="256"/>
- <Column id="patnm" type="STRING" size="256"/>
- <Column id="drugno" type="STRING" size="256"/>
- <Column id="ref_usr_rpt_id_no" type="STRING" size="256"/>
- <Column id="rpt_ty_cd" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_rpt_se_cd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="rpt_se_cd" type="STRING" size="256"/>
- <Column id="rpt_se_nm" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="rpt_se_cd">PCM</Col>
- <Col id="rpt_se_nm">구입</Col>
- </Row>
- <Row>
- <Col id="rpt_se_cd">SMM</Col>
- <Col id="rpt_se_nm">저장소이동</Col>
- </Row>
- <Row>
- <Col id="rpt_se_cd">PMM</Col>
- <Col id="rpt_se_nm">조제</Col>
- </Row>
- <Row>
- <Col id="rpt_se_cd">AAR</Col>
- <Col id="rpt_se_nm">폐기</Col>
- </Row>
- <Row>
- <Col id="rpt_se_cd">TNT</Col>
- <Col id="rpt_se_nm">양도</Col>
- </Row>
- <Row>
- <Col id="rpt_se_cd">TNI</Col>
- <Col id="rpt_se_nm">양수</Col>
- </Row>
- <Row>
- <Col id="rpt_se_cd">ETT</Col>
- <Col id="rpt_se_nm">기타출고</Col>
- </Row>
- <Row>
- <Col id="rpt_se_cd">ETI</Col>
- <Col id="rpt_se_nm">기타입고</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_result_cd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="result_cd" type="STRING" size="256"/>
- <Column id="result_nm" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="result_cd">0000</Col>
- <Col id="result_nm">성공</Col>
- </Row>
- <Row>
- <Col id="result_cd">9999</Col>
- <Col id="result_nm">실패</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_resultinfo" 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"/>
- <Column id="ref_usr_rpt_id_no" type="STRING" size="256"/>
- <Column id="rpt_ty_cd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_cancel" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="hdr_de" type="STRING" size="256"/>
- <Column id="rpt_se_cd" type="STRING" size="256"/>
- <Column id="file_name" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_sendflag" 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">0</Col>
- <Col id="nm">신규</Col>
- </Row>
- <Row>
- <Col id="cd">1</Col>
- <Col id="nm">취소</Col>
- </Row>
- <Row>
- <Col id="cd">2</Col>
- <Col id="nm">변경</Col>
- </Row>
- </Rows>
- </Dataset>
- </Objects>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name : 경대 의료정보시스템
- * Job Name : ast_pharmacydrugsumxp-> SMADT12150
- * 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 : SMADT12150
- * Event : oninit
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 처음 초기화시
- ****************************************************************************************/
- function SMADT12150_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj); //폼 초기화
- }
- /****************************************************************************************
- * Components : Form
- * Components ID : SMADT12150
- * Event : onload
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 로딩 완료시
- ****************************************************************************************/
- function SMADT12150_onload(obj:Form, e:LoadEventInfo)
- {
- //grdf_setRowTypeIcon(grd_resultlist, 0);
- grdf_setGridSort(grd_resultlist);
- var curdd = utlf_getCurrentDate();
- ds_send_search.setColumn(0, "dd_from", curdd );
- ds_send_search.setColumn(0, "dd_to", curdd );
-
- frmf_addComboItem("grp_search.cmb_rpt_se_cd","전체","","above");
- ds_send_search.setColumn(0, "rpt_se_cd", ""); //default setting : 전체
- ds_send_search.setColumn(0, "result_cd", ""); //default setting : 전체
-
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : grp_search_btn_search
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 조회버튼 클릭시
- ****************************************************************************************/
- function grp_search_btn_search_onclick(obj:Button, e:ClickEventInfo)
- {
- if (utlf_transNullToEmpty(ds_send_search.getColumn(0, "dd_from")).length != 8){
- sysf_messageBox("전송일자를 확인하십시요. ", "E999", "");
- grp_search.ipt_dd_from.setFocus();
- return;
- }
-
- if (utlf_transNullToEmpty(ds_send_search.getColumn(0, "dd_to")).length != 8){
- sysf_messageBox("전송일자를 확인하십시요. ", "E999", "");
- grp_search.ipt_dd_to.setFocus();
- return;
- }
-
- //연계보고결과조회
- var oParam = {};
- oParam.id = "TRADT12151";
- oParam.service = "pharmacydrugsumapp.NarcManagent";
- oParam.method = "reqGetResultList";
- oParam.inds = "req=ds_send_search";
- oParam.outds = "ds_resultlist=resultlist";
- oParam.async = false;
- //oParam.callback = "cf_TRADT12151";
- tranf_submit(oParam);
-
-
- //if (arErrorCode.pop("TRADT12151") > -1){
- //}
-
-
- }
- function cf_TRADT12151(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- function grp_search_btn_backward_onclick(obj:Button, e:ClickEventInfo)
- {
- var curdd = utlf_getCurrentDate();
- ds_send_search.setColumn(0, "dd_from", utlf_addDate(ds_send_search.getColumn(0, "dd_from"), -1) );
- ds_send_search.setColumn(0, "dd_to", utlf_addDate(ds_send_search.getColumn(0, "dd_to"), -1) );
-
- }
- function grp_search_btn_today_onclick(obj:Button, e:ClickEventInfo)
- {
- var curdd = utlf_getCurrentDate();
- ds_send_search.setColumn(0, "dd_from", curdd );
- ds_send_search.setColumn(0, "dd_to", curdd );
-
- }
- function grp_search_btn_forward_onclick(obj:Button, e:ClickEventInfo)
- {
- var curdd = utlf_getCurrentDate();
- ds_send_search.setColumn(0, "dd_from", utlf_addDate(ds_send_search.getColumn(0, "dd_from"), 1) );
- ds_send_search.setColumn(0, "dd_to", utlf_addDate(ds_send_search.getColumn(0, "dd_to"), 1) );
-
- }
- /****************************************************************************************
- * Components : Grid
- * Components ID : grd_resultlist
- * Event : oncelldblclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 그리드 더블 클릭시
- ****************************************************************************************/
- function grd_resultlist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
- {
- if(ds_resultlist.getColumn(ds_resultlist.rowposition, "result_cd") != "9999") { //9999 실패
-
-
- var rpt_se_cd = ds_resultlist.getColumn(ds_resultlist.rowposition, "rpt_se_cd");
- if(rpt_se_cd == "PMM") {
-
- ds_resultinfo.setColumn(0, "file_name", ds_resultlist.getColumn(ds_resultlist.rowposition, "file_name"));
- ds_resultinfo.setColumn(0, "result_file_name", ds_resultlist.getColumn(ds_resultlist.rowposition, "result_file_name"));
- ds_resultinfo.setColumn(0, "usr_rpt_id_no", ds_resultlist.getColumn(ds_resultlist.rowposition, "usr_rpt_id_no"));
- ds_resultinfo.setColumn(0, "ref_usr_rpt_id_no", ds_resultlist.getColumn(ds_resultlist.rowposition, "ref_usr_rpt_id_no"));
- ds_resultinfo.setColumn(0, "rpt_ty_cd", ds_resultlist.getColumn(ds_resultlist.rowposition, "rpt_ty_cd"));
- var objArg = new Object();
- objArg.arg_ds_resultinfo = ds_resultinfo;
-
- var curPopupObj = frmf_findPopup("SMADT12260"); //활성화된 화면 object loading
-
- if(!utlf_isNull(curPopupObj)) {
- curPopupObj.fInit(objArg.arg_ds_resultinfo);
- curPopupObj.setFocus();
- } else {
- frmf_open("SMADT12260","SMADT12260", objArg, "", "", 100, 150, "", "", "", "", "", "M")
- }
- }
-
-
- } else {
- ds_resultinfo.setColumn(0, "file_name", ds_resultlist.getColumn(ds_resultlist.rowposition, "file_name"));
- ds_resultinfo.setColumn(0, "result_file_name", ds_resultlist.getColumn(ds_resultlist.rowposition, "result_file_name"));
- ds_resultinfo.setColumn(0, "usr_rpt_id_no", ds_resultlist.getColumn(ds_resultlist.rowposition, "usr_rpt_id_no"));
- var objArg = new Object();
- objArg.arg_ds_resultinfo = ds_resultinfo;
- frmf_modal("SMADT12160","SMADT12160", objArg, "", "", 100, 150, "", "", "", "", "", "M");
- }
- }
- /****************************************************************************************
- * Components : Button
- * 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)
- {
- if(ds_resultlist.rowcount < 1) {
- return;
- }
- if(ds_resultlist.getColumn(ds_resultlist.rowposition, "result_cd") == "0000") { //0000 성공
- sysf_messageBox("보고결과가 성공인 경우는 전송여부 초기화 대상이 아닙니다. ", "I999", "");
- return;
- }
- if(ds_resultlist.getColumn(ds_resultlist.rowposition, "rpt_se_cd") == "PMM") { //PMM 조제보고
- sysf_messageBox("조제보고는 전송여부 초기화 대상이 아닙니다. ", "I999", "");
- return;
- }
-
-
- if( sysf_messageBox("전송일시 : " + ds_resultlist.getColumn(ds_resultlist.rowposition, "senddt") + "\n" +
- "보고구분 : " + ds_rpt_se_cd.lookup('rpt_se_cd', ds_resultlist.getColumn(ds_resultlist.rowposition, "rpt_se_cd"), 'rpt_se_nm') + "\n" +
- "취급일자 : " + ds_resultlist.getColumn(ds_resultlist.rowposition, "hdr_de").toDate().getDateFormat('YYYY-MM-DD') + "\n" +
- "연계파일명 : " + ds_resultlist.getColumn(ds_resultlist.rowposition, "file_name") + "\n\n\n\n" +
- "해당 보고실패 연계파일과 연관된 데이터의 전송여부를 초기화하겠습니까? " + "\n\n" +
- "※ 전산담당자 이외에는 절대 사용을 금합니다. ", "Q99" ) != 6 ) {
- return;
- }
-
- ds_cancel.setColumn(0, "file_name", ds_resultlist.getColumn(ds_resultlist.rowposition, "file_name"));
- ds_cancel.setColumn(0, "rpt_se_cd", ds_resultlist.getColumn(ds_resultlist.rowposition, "rpt_se_cd"));
-
- // 실패건 전송여부 초기화
- var oParam = {};
- oParam.id = "TXADT12151";
- oParam.service = "pharmacydrugsumapp.NarcManagent";
- oParam.method = "reqExeSaveCancelList"; //"reqExeNarcDataSend";
- oParam.inds = "req=ds_cancel";
- oParam.outds = ""; //"ds_hidden_item=item";
- oParam.async = false;
- oParam.callback = "cf_TXADT12151";
- tranf_submit(oParam);
-
- if (arErrorCode.pop("TXADT12151") > -1){
-
- sysf_messageBox("처리되었습니다. ", "I999", "");
-
- //조회버튼 Click Event Call
- var e = new ClickEventInfo;
- grp_search.btn_search.onclick.fireEvent(grp_search.btn_search, e);
- }
-
- }
- function cf_TXADT12151(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- function btn_download_onclick(obj:Button, e:ClickEventInfo)
- {
- //조회된 자료가 없으면 먼저 조회하라고 message
- if(ds_resultlist.rowcount < 1) {
- sysf_messageBox("조회된 결과가 존재하지 않습니다. \n\n먼저 조회 후 Download 하십시요. ", "E999", "");
- return;
- }
-
- grdf_exportExcel(grd_resultlist, "excel", "savetype", false, "", "user", false);
-
- }
- function grd_resultlist_onkeydown(obj:Grid, e:KeyEventInfo)
- {
- fGridCopyClipboard(obj, e);
- }
- function fGridCopyClipboard(obj:Grid, e:KeyEventInfo)
- {
- var bPushed = e.ctrlKey;
- var clipStr = "";
-
- if (e.keycode == 67 && bPushed == true ) // ctrl + c
- {
- clipStr = obj.getCellText(obj.currentrow, obj.currentcol);
- system.clearClipboard();
- system.setClipboard("CF_TEXT",clipStr);
- }
- }
- ]]></Script>
- </Form>
- </FDL>
|