123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPRSD04203" position="absolute 0 0 1126 560" titletext="물품코드 검색화면" onload="SPRSD04203_onload">
- <Layouts>
- <Layout>
- <Div position="absolute 0 0 1125 559" id="group3" scrollbars="autoboth">
- <Layouts>
- <Layout>
- <Div position="absolute 0 0 1125 60" id="group2" class="div_SA2" anchor="default">
- <Layouts>
- <Layout>
- <Button position="absolute 1054 19 1110 41" id="btn_search" class="btn1" text="조회" anchor="default" onclick="group3_group2_btn_search_onclick"/>
- <Shape position="absolute 1036 11 1042 50" linetype="vertical" id="line13" class="line_4" anchor="default"/>
- <Combo position="absolute 101 8 241 27" id="cmb_instcd" class="combo_essential" taborder="1" innerdataset="ds_init_cmb_instcd" datacolumn="cdnm" codecolumn="cdid" anchor="default"/>
- <Static text="기관코드 :" position="absolute 15 9 101 26" id="caption4" class="search_name" anchor="default"/>
- <Static text="규 격 :" position="absolute 15 34 101 51" id="caption10" class="search_name" anchor="default"/>
- <Edit position="absolute 101 33 241 52" id="ipt_goodspec" class="input_default" anchor="default" autoselect="true"/>
- <Edit position="absolute 336 33 476 52" id="ipt_goodmodel" class="input_default" anchor="default" autoselect="true"/>
- <Static text="모 델 :" position="absolute 250 34 336 51" id="caption11" class="search_name" anchor="default"/>
- <Edit position="absolute 571 8 725 27" id="ipt_goodnm" class="input_default" anchor="default" autoselect="true" onkeydown="group3_group2_ipt_goodnm_onkeydown"/>
- <Edit position="absolute 336 8 476 27" id="ipt_goodcd" class="input_default" anchor="default" autoselect="true" onkeydown="group3_group2_ipt_goodcd_onkeydown"/>
- <Static text="물 품 명 :" position="absolute 486 9 572 26" id="caption2" class="search_name" anchor="default"/>
- <Static text="물품코드 :" position="absolute 250 9 336 26" id="caption3" class="search_name" anchor="default"/>
- <Edit position="absolute 685 33 885 52" id="ipt_suplplcenm_search" class="input_search" anchor="default" autoselect="true" onkeydown="Edit_onkeydown"/>
- <Edit position="absolute 587 33 664 52" id="ipt_suplplcecd_search" anchor="default" autoselect="true" onkeydown="Edit_onkeydown"/>
- <Button position="absolute 666 34 682 50" id="button2" class="icon_search" text="" anchor="default" onclick="group3_group2_button2_onclick"/>
- <Static text="보조거래처 :" position="absolute 486 34 585 51" id="caption41" class="search_name" anchor="default"/>
- <Static text="물품구분 :" position="absolute 740 10 826 27" id="caption5" class="search_name" anchor="default"/>
- <Combo position="absolute 830 8 930 27" id="cmb_goodflag" enable="false" innerdataset="ds_init_cmb_goodflag" datacolumn="cdnm" codecolumn="cdid" anchor="default"/>
- </Layout>
- </Layouts>
- </Div>
- <Static text="물품코드조회리스트" position="absolute 0 71 153 92" id="caption1" class="tit_2" anchor="default"/>
- <Shape position="absolute 0 87 1125 93" id="line1" class="line_10" anchor="default"/>
- <Grid position="absolute 0 92 1125 558" id="grd_goodlist" class="grd_agtplcelist" binddataset="ds_main_goodlist" anchor="default" oncelldblclick="group3_grd_goodlist_oncelldblclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25" band="left"/>
- <Column size="80"/>
- <Column size="180"/>
- <Column size="0"/>
- <Column size="149"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="90"/>
- <Column size="90"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="67"/>
- <Column size="71"/>
- <Column size="50"/>
- <Column size="0"/>
- <Column size="50"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <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="물품한글명"/>
- <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" text="사용자수량"/>
- <Cell col="15" text="단위"/>
- <Cell col="16" text="todd"/>
- <Cell col="17" text="사용여부"/>
- <Cell col="18" text="fromdd"/>
- <Cell col="19" text="asetflag"/>
- <Cell col="20" text="lrgcd"/>
- <Cell col="21" text="lrgnm"/>
- <Cell col="22"/>
- <Cell col="23"/>
- <Cell col="24"/>
- <Cell col="25"/>
- <Cell col="26"/>
- <Cell col="27"/>
- <Cell col="28"/>
- <Cell col="29"/>
- <Cell col="30"/>
- <Cell col="31"/>
- <Cell col="32"/>
- <Cell col="33"/>
- <Cell col="34"/>
- <Cell col="35"/>
- <Cell col="36"/>
- <Cell col="37"/>
- <Cell col="38"/>
- <Cell col="39"/>
- <Cell col="40"/>
- <Cell col="41"/>
- <Cell col="42"/>
- <Cell col="43"/>
- <Cell col="44"/>
- <Cell col="45" text="수가여부"/>
- <Cell col="46" text="EDI코드"/>
- <Cell col="47" text="신규등록일"/>
- <Cell col="48" text="청구부서코드"/>
- <Cell col="49" text="청구부서명"/>
- <Cell col="50" text="청구자ID"/>
- <Cell col="51" text="청구자명"/>
- <Cell col="52" text="청구구분"/>
- <Cell col="53" text="청구구분명"/>
- <Cell col="54" text="청구방법"/>
- <Cell col="55" text="청구기간"/>
- <Cell col="56"/>
- <Cell col="57"/>
- <Cell col="58"/>
- <Cell col="59" text="주거래처코드"/>
- <Cell col="60" text="주거래처명"/>
- <Cell col="61"/>
- <Cell col="62"/>
- <Cell col="63"/>
- <Cell col="64"/>
- <Cell col="65"/>
- <Cell col="66"/>
- <Cell col="67"/>
- <Cell col="68"/>
- <Cell col="69"/>
- <Cell col="70"/>
- <Cell col="71"/>
- <Cell col="72"/>
- <Cell col="73"/>
- <Cell col="74"/>
- <Cell col="75"/>
- <Cell col="76"/>
- <Cell col="77"/>
- <Cell col="78"/>
- <Cell col="79"/>
- <Cell col="80"/>
- <Cell col="81"/>
- <Cell col="82"/>
- <Cell col="83"/>
- <Cell col="84"/>
- <Cell col="85"/>
- <Cell col="86"/>
- <Cell col="87"/>
- <Cell col="88"/>
- <Cell col="89"/>
- <Cell col="90"/>
- <Cell col="91"/>
- <Cell col="92"/>
- <Cell col="93"/>
- <Cell col="94"/>
- <Cell col="95"/>
- <Cell col="96"/>
- <Cell col="97"/>
- <Cell col="98"/>
- <Cell col="99"/>
- <Cell col="100"/>
- <Cell col="101"/>
- <Cell col="102"/>
- <Cell col="103" text="a"/>
- <Cell col="104" text="caption1"/>
- <Cell col="105"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" text="expr:currow+1"/>
- <Cell col="1" displaytype="text" text="bind:goodcd"/>
- <Cell col="2" displaytype="text" text="bind:goodnm"/>
- <Cell col="3" text="bind:prodcmpycd"/>
- <Cell col="4" displaytype="text" text="bind:goodspec"/>
- <Cell col="5" text="bind:goodhngnm"/>
- <Cell col="6" text="bind:goodengnm"/>
- <Cell col="7" displaytype="text" text="bind:goodmodel"/>
- <Cell col="8" displaytype="text" text="bind:prodcmpynm"/>
- <Cell col="9" text="bind:instcd"/>
- <Cell col="10" text="bind:goodflag"/>
- <Cell col="11" displaytype="number" text="bind:minexch"/>
- <Cell col="12" displaytype="number" text="bind:safestocqty"/>
- <Cell col="13" displaytype="number" text="bind:stocqty"/>
- <Cell col="14" text="bind:userqty"/>
- <Cell col="15" text="bind:purcunit"/>
- <Cell col="16" text="bind:todd"/>
- <Cell col="17" text="bind:useyn"/>
- <Cell col="18" text="bind:fromdd"/>
- <Cell col="19" text="bind:asetflag"/>
- <Cell col="20" text="bind:lrgcd"/>
- <Cell col="21" text="bind:lrgnm"/>
- <Cell col="22" text="bind:mdlcd"/>
- <Cell col="23" text="bind:mdlnm"/>
- <Cell col="24" text="bind:smlcd"/>
- <Cell col="25" text="bind:smlnm"/>
- <Cell col="26" text="bind:proddrugsetflag"/>
- <Cell col="27" text="bind:winacnt"/>
- <Cell col="28" text="bind:winacntnm"/>
- <Cell col="29" text="bind:amtacnt"/>
- <Cell col="30" text="bind:amtacntnm"/>
- <Cell col="31" text="bind:mainmngtdeptcd"/>
- <Cell col="32" text="bind:mainmngtdeptnm"/>
- <Cell col="33" text="bind:mainusedeptcd"/>
- <Cell col="34" text="bind:mainusedeptnm"/>
- <Cell col="35" text="bind:purclnkgoodcd"/>
- <Cell col="36" text="bind:stocmngtflag"/>
- <Cell col="37" text="bind:deliveunit"/>
- <Cell col="38" text="bind:purcunitnm"/>
- <Cell col="39" text="bind:deliveunitnm"/>
- <Cell col="40" text="bind:exchqty"/>
- <Cell col="41" text="bind:reuseyn"/>
- <Cell col="42" text="bind:divusenvalqty"/>
- <Cell col="43" text="bind:calcscorinfoacptstat"/>
- <Cell col="44" text="bind:calcscorinfoacptdd"/>
- <Cell col="45" text="bind:insuyn"/>
- <Cell col="46" text="bind:edicd"/>
- <Cell col="47" text="bind:newrgstdd"/>
- <Cell col="48" text="bind:reqdeptcd"/>
- <Cell col="49" text="bind:reqdeptnm"/>
- <Cell col="50" text="bind:reqpsn"/>
- <Cell col="51" text="bind:reqpsnnm"/>
- <Cell col="52" text="bind:reqflag"/>
- <Cell col="53" text="bind:reqflagnm"/>
- <Cell col="54" text="bind:reqmthd"/>
- <Cell col="55" text="bind:reqprid"/>
- <Cell col="56" text="bind:iopsnflag"/>
- <Cell col="57" text="bind:prodplce"/>
- <Cell col="58" text="bind:prodplcenm"/>
- <Cell col="59" displaytype="text" text="bind:maincustlastsuplplce"/>
- <Cell col="60" displaytype="text" text="bind:maincustlastsuplplcenm"/>
- <Cell col="61" text="bind:suppcustcd"/>
- <Cell col="62" text="bind:suppcustnm"/>
- <Cell col="63" text="bind:conflag"/>
- <Cell col="64" text="bind:fromconterm"/>
- <Cell col="65" text="bind:toconterm"/>
- <Cell col="66" text="bind:estmamt"/>
- <Cell col="67" text="bind:forgncurncyunitcost"/>
- <Cell col="68" text="bind:curncyunit"/>
- <Cell col="69" text="bind:curncyunitnm"/>
- <Cell col="70" text="bind:goodunitcost"/>
- <Cell col="71" text="bind:purcflag"/>
- <Cell col="72" text="bind:allsizeyn"/>
- <Cell col="73" text="bind:setplceordflag"/>
- <Cell col="74" text="bind:plceordbase"/>
- <Cell col="75" text="bind:plceordqtycretflag"/>
- <Cell col="76" text="bind:plceordnonusedd"/>
- <Cell col="77" text="bind:addtaxrate"/>
- <Cell col="78" text="bind:lastpurcdd"/>
- <Cell col="79" text="bind:nonusetretresn"/>
- <Cell col="80" text="bind:mngtflag"/>
- <Cell col="81" text="bind:bnscd"/>
- <Cell col="82" text="bind:cntrdrugyn"/>
- <Cell col="83" text="bind:narcflag"/>
- <Cell col="84" text="bind:expnyn"/>
- <Cell col="85" text="bind:cntsunit"/>
- <Cell col="86" text="bind:cntsqty"/>
- <Cell col="87" text="bind:specvol"/>
- <Cell col="88" text="bind:drugkind"/>
- <Cell col="89" text="bind:cooppurcyn"/>
- <Cell col="90" text="bind:autrampharm"/>
- <Cell col="91" text="bind:keepmthd"/>
- <Cell col="92" text="bind:specldrug"/>
- <Cell col="93" text="bind:gnrlspcl"/>
- <Cell col="94" text="bind:welfprt"/>
- <Cell col="95" text="bind:goodtype"/>
- <Cell col="96" text="bind:com"/>
- <Cell col="97" text="bind:limdrugyn"/>
- <Cell col="98" text="bind:cmt"/>
- <Cell col="99" text="bind:safestocappdd"/>
- <Cell col="100" text="bind:ddavguseqty"/>
- <Cell col="101" text="bind:mmavgusescheqty"/>
- <Cell col="102" text="bind:mmavguseqty"/>
- <Cell col="103" text="bind:prprtystocpossndayno"/>
- <Cell col="104" text="bind:orgloc"/>
- <Cell col="105" text="bind:prcpexchqty"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button position="absolute 1083 67 1125 87" id="btn_cert" class="btn2" text="확인" anchor="default" onclick="group3_btn_cert_onclick"/>
- </Layout>
- </Layouts>
- </Div>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_target_defaultvalue" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="instcd" type="STRING" size="256"/>
- <Column id="goodflag" type="STRING" size="256"/>
- <Column id="prodcmpycd" type="STRING" size="256"/>
- <Column id="reqflag" type="STRING" size="256"/>
- <Column id="nodebigo" type="STRING" size="256"/>
- <Column id="nonusegoodview" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="instcd"/>
- <Col id="goodflag"/>
- <Col id="prodcmpycd"/>
- <Col id="reqflag"/>
- <Col id="nodebigo"/>
- <Col id="nonusegoodview"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep" oncolumnchanged="ds_send_oncolumnchanged">
- <ColumnInfo>
- <Column id="instcd" type="STRING" size="256"/>
- <Column id="goodflag" type="STRING" size="256"/>
- <Column id="goodcd" type="STRING" size="256"/>
- <Column id="prodcmpycd" type="STRING" size="256"/>
- <Column id="prodcmpynm" type="STRING" size="256"/>
- <Column id="goodspec" type="STRING" size="256"/>
- <Column id="goodmodel" type="STRING" size="256"/>
- <Column id="goodnm" type="STRING" size="256"/>
- <Column id="suplplcecd" type="STRING" size="256"/>
- <Column id="suplplcenm" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="instcd"/>
- <Col id="goodflag"/>
- <Col id="goodcd"/>
- <Col id="prodcmpycd"/>
- <Col id="prodcmpynm"/>
- <Col id="goodspec"/>
- <Col id="goodmodel"/>
- <Col id="goodnm"/>
- <Col id="suplplcecd"/>
- <Col id="suplplcenm"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_target" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo/>
- </Dataset>
- <Dataset id="ds_copytemp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="copytemp" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_goodapplist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep"/>
- <Dataset id="ds_main_goodlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep"/>
- <Dataset id="ds_main_cntlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep"/>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="group3.group2.cmb_instcd" propid="value" datasetid="ds_send" columnid="instcd"/>
- <BindItem id="item1" compid="group3.group2.ipt_goodspec" propid="value" datasetid="ds_send" columnid="goodspec"/>
- <BindItem id="item2" compid="group3.group2.ipt_goodmodel" propid="value" datasetid="ds_send" columnid="goodmodel"/>
- <BindItem id="item3" compid="group3.group2.ipt_goodnm" propid="value" datasetid="ds_send" columnid="goodnm"/>
- <BindItem id="item4" compid="group3.group2.ipt_goodcd" propid="value" datasetid="ds_send" columnid="goodcd"/>
- <BindItem id="item5" compid="group3.group2.ipt_suplplcenm_search" propid="value" datasetid="ds_send" columnid="suplplcenm"/>
- <BindItem id="item6" compid="group3.group2.ipt_suplplcecd_search" propid="value" datasetid="ds_send" columnid="suplplcecd"/>
- <BindItem id="item7" compid="group3.group2.cmb_goodflag" propid="value" datasetid="ds_send" columnid="goodflag"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2017-06-19
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2017-06-19 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- //=======================================================================================
- // Lib Include
- //---------------------------------------------------------------------------------------
- include "com_commonxp::comm_main.xjs";
- include "mis_miscommonxp::MIS.xjs";
- include "mis_miscommonxp::RSZ001.xjs";
- //=======================================================================================
- // Global Form Variable
- //---------------------------------------------------------------------------------------
- var arErrorCode = new HashArray();
- //=======================================================================================
- // Function
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Argument : N/A
- * Description :
- ****************************************************************************************/
-
- //=======================================================================================
- // Event
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Components : Form
- * Description : 화면 처음 초기화시 폼초기화
- ****************************************************************************************/
- function SPRSD04203_onload(obj:Form, e:LoadEventInfo)
- {
- frmf_initForm(obj);
- //grdf_initGrid(grd_XXX);
- grdf_setGridSort(group3.grd_goodlist);
- //grdf_setRowTypeIcon(grd_XXX, 0_컬럼위치값);
- var instcd;
- var goodcd;
- var goodflag;
- misfComboComCdList("C0048", group3.group2.cmb_instcd); //기관코드
- rszfGoodFlagListByPgmGubn(group3.group2.cmb_goodflag,"1","Y");
- if(frmf_checkOpener()) {
- instcd = opener.frmf_getParameter("SPRSD04203_instcd");
- goodcd = opener.frmf_getParameter("SPRSD04203_goodcd");
- goodflag = opener.frmf_getParameter("SPRSD04203_goodflag");
- group3.group2.cmb_instcd.value = instcd;
- group3.group2.ipt_goodcd.value = goodcd;
- group3.group2.cmb_goodflag.value = goodflag;
- } else {
- group3.group2.cmb_instcd.value = sysf_getUserInfo("dutplceinstcd");
- }
- if(!utlf_isNull(instcd) && !utlf_isNull(goodcd)) {
- group3.group2.btn_search.click();
- }
- }
- /****************************************************************************************
- * Components : Button
- * Description : 조회
- ****************************************************************************************/
- function group3_group2_btn_search_onclick(obj:Button, e:ClickEventInfo) {
- var goodcd;
- var goodnm;
-
- goodcd = group3.group2.ipt_goodcd.value;
- goodnm = group3.group2.ipt_goodnm.value;
-
- misfGridInit(group3.grd_goodlist);
-
- if(utlf_isNull(group3.group2.cmb_instcd.value))
- {
- sysf_messageBox("기관코드를" , "C002");
- group3.group2.cmb_instcd.setFocus();
- return;
- }
-
- if(utlf_isNull(goodcd) && utlf_isNull(goodnm)) {
- sysf_messageBox("물품코드나 물품명을 입력하세요.", "C");
- group3.group2.ipt_goodcd.setFocus();
- return;
- }
-
- var oParam = {};
- oParam.id = "TRRSD00191";
- oParam.service = "purccommonapp.PurcCommon";
- oParam.method = "reqGetGoodListByCond";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_goodlist=goodlist ds_main_cntlist=cntlist";
- oParam.async = false;
- //oParam.callback = "cf_TRRSD00191";
- tranf_submit(oParam);
- }
- /****************************************************************************************
- * Components : Button
- * Description : 보조거래처 조회
- ****************************************************************************************/
- function group3_group2_button2_onclick(obj:Button, e:ClickEventInfo) {
- group3.group2.ipt_suplplcecd_search.setFocus();
- rszfOpenPopUpListByWndName(group3.group2.ipt_suplplcecd_search,"","suplplcecd,suplplcenm","SPRSD00220","instcd","group3.group2.cmb_instcd" );
- }
- /****************************************************************************************
- * Components : Grid
- * Description : 데이터 넘기기
- ****************************************************************************************/
- function group3_grd_goodlist_oncelldblclick(obj:Grid, e:GridClickEventInfo) {
- if( e.row > -1 ) {
- group3.btn_cert.click();
- }
- }
- /****************************************************************************************
- * Components : Button
- * Description : 확인
- ****************************************************************************************/
- function group3_btn_cert_onclick(obj:Button, e:ClickEventInfo) {
- if(ds_main_goodlist.rowposition > -1) {
- opener.dsf_createDs("ds_hidden_rcvdata_goodlist");
- dsf_copyColInfo(opener.ds_hidden_rcvdata_goodlist, ds_main_goodlist);
- opener.ds_hidden_rcvdata_goodlist.addRow();
- opener.ds_hidden_rcvdata_goodlist.copyRow(0, ds_main_goodlist, ds_main_goodlist.rowposition);
- this.close();
- }
- }
- /****************************************************************************************
- * Components : Edit
- * Description : 물품코드 입력 후 조회
- ****************************************************************************************/
- function group3_group2_ipt_goodcd_onkeydown(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13) {
- obj.updateToDataset();
- group3.group2.btn_search.click();
- }
- }
- /****************************************************************************************
- * Components : Edit
- * Description : 물품명 입력 후 조회
- ****************************************************************************************/
- function group3_group2_ipt_goodnm_onkeydown(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13) {
- obj.updateToDataset();
- group3.group2.btn_search.click();
- }
- }
- /****************************************************************************************
- * Components : Edit
- * Description : 보조거래처 조회
- ****************************************************************************************/
- function Edit_onkeydown(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13) obj.updateToDataset();
-
- if(e.keycode == 9) {
- // if(e.shiftKey) cmb_purcflag.setFocus();
- // else ipt_suppcustnm_search.setFocus();
- // event.preventDefault();
- }
- }
- function ds_send_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
- {
- if(e.columnid == "suplplcecd") {
- group3.group2.ipt_suplplcecd_search.setFocus();
- rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm", group3.group2.cmb_instcd.value +",," +
- group3.group2.ipt_suplplcecd_search.value, "","suplplcecd,suplplcenm" ,group3.group2.ipt_suplplcecd_search,"SPRSD00220","instcd","group3.group2.cmb_instcd");
- }
- if(e.columnid == "suplplcenm") {
- if(!utlf_isNull(group3.group2.ipt_suplplcenm_search.value)){
- group3.group2.ipt_suplplcecd_search.setFocus();
- rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm",
- group3.group2.cmb_instcd.value +",custnm,"+ group3.group2.ipt_suplplcenm_search.value
- ,"","suplplcecd,suplplcenm" ,group3.group2.ipt_suplplcecd_search,"SPRSD00220","instcd","group3.group2.cmb_instcd");
- }else{
- //group3.group2.ipt_suppcustcd_search.value = "";
- }
- }
- }
- ]]></Script>
- </Form>
- </FDL>
|