123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMADT12240" classname="SMADT12240_마약류저장소이동(반환)" inheritanceid="" position="absolute 0 0 1200 780" titletext="마약류 저장소이동(반환)" onload="SMADT12240_onload" oninit="SMADT12240_oninit">
- <Layouts>
- <Layout>
- <Div id="grp_movinfo" taborder="44" position="absolute 0 207 1200 363">
- <Layouts>
- <Layout/>
- </Layouts>
- <InitValue/>
- </Div>
- <Static id="caption6" text="마약류 저장소이동(반환)" class="tit_1" position="absolute 0 0 181 25"/>
- <Div id="grp_search" anchor="left top right" taborder="1" class="div_SA" position="absolute 0 50 1195 109">
- <Layouts>
- <Layout>
- <Static id="caption2" text="저장소 :" class="search_name" position="absolute 421 10 483 27" anchor="default"/>
- <Button id="btn_search" taborder="58" text="조회" class="btn1" position="absolute 1069 8 1125 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_indd_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_indd_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_search_storge_no" taborder="61" innerdataset="@ds_search_storgelist" codecolumn="storge_no" datacolumn="storge_nonm" class="combo_default" position="absolute 738 8 880 27" anchor="default"/>
- <Combo id="cmb_search_opp_storge_no" taborder="62" innerdataset="@ds_search_opp_storgelist" codecolumn="storge_no" datacolumn="storge_nonm" class="combo_default" position="absolute 482 8 624 27" anchor="default"/>
- <Static id="caption04" text="->" position="absolute 629 10 646 27" style="align:center;font:dotum,9,bold;" anchor="default"/>
- <Static id="caption03" text="이동 저장소 :" position="absolute 650 10 733 27" style="color:navy;font:dotum,9,bold;" anchor="default"/>
- <Button id="btn_backward" taborder="63" text="<" position="absolute 323 7 345 29" onclick="grp_search_btn_backward_onclick" anchor="default"/>
- <Button id="btn_today" taborder="64" text="당일" position="absolute 346 7 378 29" onclick="grp_search_btn_today_onclick" anchor="default"/>
- <Button id="btn_forward" taborder="65" text=">" position="absolute 379 7 401 29" onclick="grp_search_btn_forward_onclick" anchor="default"/>
- <Static id="caption05" text="관리구분 :" class="search_name" position="absolute 898 10 973 27" anchor="default"/>
- <Combo id="cmb_prtm_se_nm" taborder="66" codecolumn="codecolumn" datacolumn="datacolumn" class="combo_search" position="absolute 976 8 1047 27" anchor="default">
- <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">중점</Col>
- <Col id="datacolumn">중점</Col>
- </Row>
- <Row>
- <Col id="codecolumn">일반</Col>
- <Col id="datacolumn">일반</Col>
- </Row>
- </Rows>
- </Dataset>
- </Combo>
- <Static id="caption06" text="약품코드 :" class="search_name" position="absolute 21 34 96 51" anchor="default"/>
- <Edit id="ipt_gtin" taborder="67" autoselect="true" class="input_search" visible="false" position="absolute 403 37 496 56" anchor="default"/>
- <Button id="btn_gtin" taborder="68" class="icon_search" position="absolute 194 34 210 50" anchor="default" onclick="grp_search_btn_gtin_onclick"/>
- <Edit id="opt_hngnm" taborder="69" readonly="true" autoselect="true" class="output" position="absolute 215 33 488 52" anchor="default"/>
- <Edit id="ipt_drugcd" taborder="70" imemode="alpha" inputmode="upper" autoselect="true" class="input_search" position="absolute 97 33 190 52" anchor="default" onkeydown="grp_search_ipt_drugcd_onkeydown"/>
- </Layout>
- </Layouts>
- </Div>
- <Grid id="grd_movlist" taborder="17" boutddataset="ds_movlist" autoenter="select" useinputpanel="false" selecttype="row" cellsizingtype="both" position="absolute 0 144 1195 760" anchor="all" oncellclick="grd_movlist_oncellclick" binddataset="ds_movlist">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25" band="left"/>
- <Column size="71"/>
- <Column size="70"/>
- <Column size="69"/>
- <Column size="83"/>
- <Column size="93"/>
- <Column size="87"/>
- <Column size="187"/>
- <Column size="73"/>
- <Column size="86"/>
- <Column size="124"/>
- <Column size="40"/>
- <Column size="44"/>
- <Column size="40"/>
- <Column size="44"/>
- <Column size="33"/>
- <Column size="33"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- </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="Label No"/>
- <Cell col="6" text="제품코드"/>
- <Cell col="7" text="제품명"/>
- <Cell col="8" text="유효기간"/>
- <Cell col="9" text="제조번호"/>
- <Cell col="10" text="일련번호"/>
- <Cell col="11" colspan="2" text="유통단위 수" taborder="undefined"/>
- <Cell col="13" colspan="2" text="낱개단위 수" taborder="undefined"/>
- <Cell col="15" text="전송"/>
- <Cell col="16" text="구분"/>
- <Cell col="17" text="제품최소유통단위수량"/>
- <Cell col="18" text="제품총낱개단위수량"/>
- <Cell col="19" text="바코드"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" text="expr:currow+1"/>
- <Cell col="1" displaytype="date" text="bind:indd"/>
- <Cell col="2" style="align:left;" text="bind:opp_storge_nm"/>
- <Cell col="3" style="align:left;" text="bind:storge_nm"/>
- <Cell col="4" text="bind:drugcd"/>
- <Cell col="5" text="bind:labelno" mask="@@@@-@@-@@ @@@"/>
- <Cell col="6" text="bind:gtin"/>
- <Cell col="7" style="align:left;" text="bind:hngnm"/>
- <Cell col="8" displaytype="date" text="bind:prd_valid_de"/>
- <Cell col="9" text="bind:mnf_no"/>
- <Cell col="10" text="bind:mnf_seq"/>
- <Cell col="11" style="align:center;" text="bind:min_distb_qy"/>
- <Cell col="12" text="bind:prd_min_distb_unit"/>
- <Cell col="13" style="align:center;" text="bind:pce_qy"/>
- <Cell col="14" text="bind:prd_pce_unit"/>
- <Cell col="15" text="bind:sendfg"/>
- <Cell col="16" text="bind:prtm_se_nm"/>
- <Cell col="17" text="bind:prd_min_distb_qy"/>
- <Cell col="18" text="bind:prd_tot_pce_qy"/>
- <Cell col="19" text="bind:prd_sgtin"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Shape id="line7" class="line_10" position="absolute 0 139 1195 145" 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"/>
- <Button id="btn_send" taborder="1" text="전송" class="btn3" position="absolute 1138 3 1194 25" onclick="grp_button_btn_send_onclick" anchor="top right" visible="true"/>
- </Layout>
- </Layouts>
- </Div>
- <Static id="caption09" text="저장소이동(반환) 목록" class="tit_2" position="absolute 0 123 167 140" style="color:red;font:arial,9,bold;"/>
- </Layout>
- </Layouts>
- <Bind>
- <BindItem id="item12" compid="SMADT12240" propid="text" datasetid="ds_main_prntlist_patinfo" columnid=""/>
- <BindItem id="item14" compid="grp_search.ipt_indd_from" propid="value" datasetid="ds_send_search" columnid="indd_from"/>
- <BindItem id="item15" compid="grp_search.ipt_indd_to" propid="value" datasetid="ds_send_search" columnid="indd_to"/>
- <BindItem id="item0" compid="grp_search.cmb_search_storge_no" propid="value" datasetid="ds_send_search" columnid="storge_no"/>
- <BindItem id="item22" compid="grp_search.cmb_search_opp_storge_no" propid="value" datasetid="ds_send_search" columnid="opp_storge_no"/>
- <BindItem id="item26" compid="grp_search.cmb_prtm_se_nm" propid="value" datasetid="ds_send_search" columnid="prtm_se_nm"/>
- <BindItem id="item27" compid="grp_search.ipt_gtin" propid="value" datasetid="ds_send_search" columnid="gtin"/>
- <BindItem id="item28" compid="grp_search.opt_hngnm" propid="value" datasetid="ds_send_search" columnid="hngnm"/>
- <BindItem id="item29" compid="grp_search.ipt_drugcd" propid="value" datasetid="ds_send_search" columnid="drugcd"/>
- </Bind>
- <Objects>
- <Dataset id="ds_send_search" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_send_search_oncolumnchanged">
- <ColumnInfo>
- <Column id="indd_from" type="STRING" size="256"/>
- <Column id="indd_to" type="STRING" size="256"/>
- <Column id="storge_no" type="STRING" size="256" sumtext="연도"/>
- <Column id="opp_storge_no" type="STRING" size="256"/>
- <Column id="rpt_se_cd" type="STRING" size="256"/>
- <Column id="prtm_se_nm" type="STRING" size="256"/>
- <Column id="drugcd" type="STRING" size="256"/>
- <Column id="hngnm" type="STRING" size="256"/>
- <Column id="gtin" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_opp_storgelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="storge_no" type="STRING" size="256"/>
- <Column id="storge_nm" type="STRING" size="256"/>
- <Column id="storge_nonm" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_storgelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="storge_no" type="STRING" size="256"/>
- <Column id="storge_nm" type="STRING" size="256"/>
- <Column id="storge_nonm" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_movlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="indd" type="STRING" size="256"/>
- <Column id="gtin" type="STRING" size="256"/>
- <Column id="prd_valid_de" type="STRING" size="256"/>
- <Column id="mnf_no" type="STRING" size="256"/>
- <Column id="mnf_seq" type="STRING" size="256"/>
- <Column id="prd_sgtin" type="STRING" size="256"/>
- <Column id="opp_storge_no" type="STRING" size="256"/>
- <Column id="storge_no" type="STRING" size="256"/>
- <Column id="prd_min_distb_qy" type="STRING" size="256"/>
- <Column id="prd_min_distb_unit" type="STRING" size="256"/>
- <Column id="prd_tot_pce_qy" type="STRING" size="256"/>
- <Column id="prd_pce_unit" type="STRING" size="256"/>
- <Column id="min_distb_qy" type="STRING" size="256"/>
- <Column id="pce_qy" type="STRING" size="256"/>
- <Column id="prtm_se_nm" type="STRING" size="256"/>
- <Column id="hngnm" type="STRING" size="256"/>
- <Column id="drugcd" type="STRING" size="256"/>
- <Column id="opp_storge_nm" type="STRING" size="256"/>
- <Column id="storge_nm" type="STRING" size="256"/>
- <Column id="labelno" type="STRING" size="256"/>
- <Column id="sendfg" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_movinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="status" type="STRING" size="256"/>
- <Column id="indd" type="STRING" size="256"/>
- <Column id="gtin" type="STRING" size="256"/>
- <Column id="prd_valid_de" type="STRING" size="256"/>
- <Column id="mnf_no" type="STRING" size="256"/>
- <Column id="mnf_seq" type="STRING" size="256"/>
- <Column id="prd_sgtin" type="STRING" size="256"/>
- <Column id="opp_storge_no" type="STRING" size="256"/>
- <Column id="storge_no" type="STRING" size="256"/>
- <Column id="prd_min_distb_qy" type="STRING" size="256"/>
- <Column id="prd_min_distb_unit" type="STRING" size="256"/>
- <Column id="prd_tot_pce_qy" type="STRING" size="256"/>
- <Column id="prd_pce_unit" type="STRING" size="256"/>
- <Column id="min_distb_qy" type="STRING" size="256"/>
- <Column id="pce_qy" type="STRING" size="256"/>
- <Column id="prtm_se_nm" type="STRING" size="256"/>
- <Column id="hngnm" type="STRING" size="256"/>
- <Column id="drugcd" type="STRING" size="256"/>
- <Column id="labelno" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_send_prd_sgtin" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="prd_sgtin" type="STRING" size="256"/>
- <Column id="basedd" type="STRING" size="256"/>
- <Column id="rfidfg" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_prdinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <Column id="instcd" type="STRING" size="256"/>
- <Column id="drugcd" type="STRING" size="256"/>
- <Column id="fromdd" type="STRING" size="256"/>
- <Column id="todd" type="STRING" size="256"/>
- <Column id="ordnm" type="STRING" size="256"/>
- <Column id="hngnm" type="STRING" size="256"/>
- <Column id="gtin" type="STRING" size="256"/>
- <Column id="gtins" type="STRING" size="256"/>
- <Column id="gtine" type="STRING" size="256"/>
- <Column id="lots" type="STRING" size="256"/>
- <Column id="lote" type="STRING" size="256"/>
- <Column id="exps" type="STRING" size="256"/>
- <Column id="expe" type="STRING" size="256"/>
- <Column id="sns" type="STRING" size="256"/>
- <Column id="sne" type="STRING" size="256"/>
- <Column id="prtm_se_nm" type="STRING" size="256"/>
- <Column id="prd_min_distb_qy" type="STRING" size="256"/>
- <Column id="prd_min_distb_unit" type="STRING" size="256"/>
- <Column id="prd_tot_pce_qy" type="STRING" size="256"/>
- <Column id="prd_pce_unit" type="STRING" size="256"/>
- <ColumnInfo>
- <Column id="drugcd" type="STRING" size="256"/>
- <Column id="fromdd" type="STRING" size="256"/>
- <Column id="todd" type="STRING" size="256"/>
- <Column id="ordnm" type="STRING" size="256"/>
- <Column id="hngnm" type="STRING" size="256"/>
- <Column id="gtin" type="STRING" size="256"/>
- <Column id="prtm_se_nm" type="STRING" size="256"/>
- <Column id="prd_min_distb_qy" type="STRING" size="256"/>
- <Column id="prd_min_distb_unit" type="STRING" size="256"/>
- <Column id="prd_tot_pce_qy" type="STRING" size="256"/>
- <Column id="prd_pce_unit" type="STRING" size="256"/>
- <Column id="barsnum_d" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_temp_receivedata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="receiveref" type="STRING" size="256"/>
- <Column id="receive_drugcd" type="STRING" size="256"/>
- <Column id="receive_hngnm" type="STRING" size="256"/>
- <Column id="receive_gtin" type="STRING" size="256"/>
- <Column id="receive_prtm_se_nm" type="STRING" size="256"/>
- <Column id="receive_prd_min_distb_qy" type="STRING" size="256"/>
- <Column id="receive_prd_min_distb_unit" type="STRING" size="256"/>
- <Column id="receive_prd_tot_pce_qy" type="STRING" size="256"/>
- <Column id="receive_prd_pce_unit" type="STRING" size="256"/>
- <Column id="basedd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_search_storgelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="storge_no" type="STRING" size="256"/>
- <Column id="storge_nm" type="STRING" size="256"/>
- <Column id="storge_nonm" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_search_opp_storgelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="storge_no" type="STRING" size="256"/>
- <Column id="storge_nm" type="STRING" size="256"/>
- <Column id="storge_nonm" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_sTemp" 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 : ast_pharmacydrugsumxp-> SMADT12240
- * Creator : pjb
- * Make Date : 2018-03-27
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2018-03-27 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 : SMADT12240
- * Event : oninit
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 처음 초기화시
- ****************************************************************************************/
- function SMADT12240_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj); //폼 초기화
- }
- /****************************************************************************************
- * Components : Form
- * Components ID : SMADT12240
- * Event : onload
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 로딩 완료시
- ****************************************************************************************/
- function SMADT12240_onload(obj:Form, e:LoadEventInfo)
- {
- //grdf_setRowTypeIcon(grd_movlist, 0);
- grdf_setGridSort(grd_movlist);
- var curdd = utlf_getCurrentDate();
- ds_send_search.setColumn(0, "indd_from", curdd );
- ds_send_search.setColumn(0, "indd_to", curdd );
- ds_movinfo.setColumn(0, "indd", curdd);
- ds_movinfo.setColumn(0, "status", "i"); // 작업구분(i, u, d)
-
- //저장소 목록 조회
- var oParam = {};
- oParam.id = "TRADT12112";
- oParam.service = "pharmacydrugsumapp.NarcManagent";
- oParam.method = "reqGetStorgeList";
- oParam.inds = "req=";
- oParam.outds = "ds_storgelist=storgelist";
- oParam.async = false;
- // oParam.callback = "cf_TRADT12112";
- tranf_submit(oParam);
-
- ds_search_storgelist.copyData(ds_storgelist);
- ds_search_opp_storgelist.copyData(ds_storgelist);
-
- frmf_addComboItem("grp_search.cmb_search_storge_no","전체","","above");
- ds_send_search.setColumn(0, "storge_no", ""); //초기화
- frmf_addComboItem("grp_search.cmb_search_opp_storge_no","전체","","above");
- ds_send_search.setColumn(0, "opp_storge_no", ""); //초기화
-
- ds_send_search.setColumn(0, "prtm_se_nm", ""); //default setting : 관리구분
-
- // 오프너에서 전달받은 정보
- try{
- dsf_copyDs(ds_sTemp, arg_ds_sTemp, "replace");
- }catch(e){}
- var param_indd = utlf_transNullToEmpty(ds_sTemp.getColumn(0, "indd"));
- if( param_indd != "" ) {
- ds_send_search.setColumn(0, "indd_from", param_indd );
- ds_send_search.setColumn(0, "indd_to", param_indd );
- ds_send_search.setColumn(0, "storge_no", ds_sTemp.getColumn(0, "storge_no") );
- ds_send_search.setColumn(0, "drugcd", ds_sTemp.getColumn(0, "drugcd") );
- ds_send_search.setColumn(0, "hngnm", ds_sTemp.getColumn(0, "hngnm") );
- ds_send_search.setColumn(0, "gtin", ds_sTemp.getColumn(0, "gtin") );
-
- //조회버튼 Click Event Call
- var e = new ClickEventInfo;
- grp_search.btn_search.onclick.fireEvent(grp_search.btn_search, e);
-
- ds_movlist.selectRow(ds_movlist.rowcount-1);
-
- }
- }
- /****************************************************************************************
- * 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, "indd_from")).length != 8){
- sysf_messageBox("이동일자를 확인하십시요. ", "E999", "");
- grp_search.ipt_indd_from.setFocus();
- return;
- }
-
- if (utlf_transNullToEmpty(ds_send_search.getColumn(0, "indd_to")).length != 8){
- sysf_messageBox("이동일자를 확인하십시요. ", "E999", "");
- grp_search.ipt_indd_to.setFocus();
- return;
- }
-
- //저장소이동(반환) 목록 조회
- var oParam = {};
- oParam.id = "TRADT12241";
- oParam.service = "pharmacydrugsumapp.NarcManagent";
- oParam.method = "reqGetMovRtnList";
- oParam.inds = "req=ds_send_search";
- oParam.outds = "ds_movlist=movlist";
- oParam.async = false;
- oParam.callback = "cf_TRADT12241";
- tranf_submit(oParam);
-
-
- if (arErrorCode.pop("TRADT12241") > -1){
- //ds_movinfo.clearData();
- //ds_movinfo.addRow();
- }
-
- }
- function cf_TRADT12241(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- /****************************************************************************************
- * Components : Dataset
- * Components ID : ds_send_search
- * Event : oncolumnchanged
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 컬럼의 값 변경시
- ****************************************************************************************/
- function ds_send_search_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
- {
- if(e.columnid == "drugcd") {
- if(e.newvalue != e.oldvalue) {
- obj.setColumn(0, "hngnm", "");
- obj.setColumn(0, "gtin", "");
- }
- }
-
- }
- function grp_search_btn_backward_onclick(obj:Button, e:ClickEventInfo)
- {
- var curdd = utlf_getCurrentDate();
- ds_send_search.setColumn(0, "indd_from", utlf_addDate(ds_send_search.getColumn(0, "indd_from"), -1) );
- ds_send_search.setColumn(0, "indd_to", utlf_addDate(ds_send_search.getColumn(0, "indd_to"), -1) );
-
- }
- function grp_search_btn_today_onclick(obj:Button, e:ClickEventInfo)
- {
- var curdd = utlf_getCurrentDate();
- ds_send_search.setColumn(0, "indd_from", curdd );
- ds_send_search.setColumn(0, "indd_to", curdd );
-
- }
- function grp_search_btn_forward_onclick(obj:Button, e:ClickEventInfo)
- {
- var curdd = utlf_getCurrentDate();
- ds_send_search.setColumn(0, "indd_from", utlf_addDate(ds_send_search.getColumn(0, "indd_from"), 1) );
- ds_send_search.setColumn(0, "indd_to", utlf_addDate(ds_send_search.getColumn(0, "indd_to"), 1) );
-
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_send
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 전송 버튼 Click시
- ****************************************************************************************/
- function grp_button_btn_send_onclick(obj:Button, e:ClickEventInfo)
- {
- if( sysf_messageBox("이동일자 : " + grp_search.ipt_indd_from.text + " ~ " + grp_search.ipt_indd_to.text + "\n\n" +
- "저장소 : " + grp_search.cmb_search_opp_storge_no.text + " -> 이동 저장소 : " + grp_search.cmb_search_storge_no.text + "\n\n" +
- "중점/일반 관리구분 : " + grp_search.cmb_prtm_se_nm.text + "\n\n\n\n" +
- "해당 기간 미전송 자료를 전송하겠습니까? " + "\n\n" +
- "※ 전송 이후 수정 및 취소가 불가하니 유의하시기 바랍니다. ", "Q99" ) != 6 ) {
- return;
- }
-
- ds_send_search.setColumn(0, "rpt_se_cd", "SMM_RTN"); //보고구분코드 : SMM_RTN 저장소이동보고(반환)
-
- //저장소이동(반환) 내역 전송
- var oParam = {};
- oParam.id = "TXADT12243";
- oParam.service = "pharmacydrugsumapp.NarcManagent";
- oParam.method = "reqExeNarcDataSend";
- oParam.inds = "req=ds_send_search";
- oParam.outds = ""; //"ds_hidden_item=item";
- oParam.async = false;
- oParam.callback = "cf_TXADT12243";
- tranf_submit(oParam);
-
- if (arErrorCode.pop("TXADT12243") > -1){
-
- sysf_messageBox("처리되었습니다. ", "I999", "");
-
- //조회버튼 Click Event Call
- var e = new ClickEventInfo;
- grp_search.btn_search.onclick.fireEvent(grp_search.btn_search, e);
- }
-
- }
- function cf_TXADT12243(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_gtin
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 제품코드 버튼 Click시
- ****************************************************************************************/
- function grp_search_btn_gtin_onclick(obj:Button, e:ClickEventInfo)
- {
- ds_temp_receivedata.setColumn(0,"receiveref","ds_send_search");
- ds_temp_receivedata.setColumn(0,"receive_drugcd","drugcd");
- ds_temp_receivedata.setColumn(0,"receive_hngnm","hngnm");
- ds_temp_receivedata.setColumn(0,"receive_gtin","gtin");
- ds_temp_receivedata.setColumn(0,"receive_prtm_se_nm",""); //prtm_se_nm
- ds_temp_receivedata.setColumn(0,"receive_prd_min_distb_qy","prd_min_distb_qy");
- ds_temp_receivedata.setColumn(0,"receive_prd_min_distb_unit","prd_min_distb_unit");
- ds_temp_receivedata.setColumn(0,"receive_prd_tot_pce_qy","prd_tot_pce_qy");
- ds_temp_receivedata.setColumn(0,"receive_prd_pce_unit","prd_pce_unit");
- ds_temp_receivedata.setColumn(0,"basedd",""); //utlf_getCurrentDate() //ds_send_search.getColumn(0, "indd_to")
- var objArg = new Object();
- objArg.arg_ds_temp_receivedata = ds_temp_receivedata;
- frmf_modal("SMADT12120","SMADT12120", objArg, "", "", 100, 150, "", "", "", "", "", "M");
- }
- function grp_search_ipt_drugcd_onkeydown(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13) {
- obj.updateToDataset();
- }
-
- }
- ]]></Script>
- </Form>
- </FDL>
|