123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMRST00200" position="absolute 0 0 1200 790" titletext="실사량관리" oninit="SMRST00200_oninit" onload="SMRST00200_onload">
- <Layouts>
- <Layout>
- <Div position="absolute 0 50 1195 794" id="grp_biz" scrollbars="autoboth">
- <Layouts>
- <Layout>
- <Shape position="absolute 0 10 1195 71" id="roundrect1" type="roundrectangle"/>
- <Shape position="absolute 0 95 1195 101" linetype="horizontal" id="line1" class="line_10"/>
- <Grid position="absolute 0 100 1195 734" id="grd_rsthssstlist" binddataset="ds_main_rsthssstlist" autoenter="select" onkeydown="grp_biz_grd_rsthssstlist_onkeydown">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="20"/>
- <Column size="124"/>
- <Column size="334"/>
- <Column size="100"/>
- <Column size="185"/>
- <Column size="71"/>
- <Column size="68"/>
- <Column size="81"/>
- <Column size="110"/>
- <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" colspan="3" text="포장" taborder="undefined"/>
- <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"/>
- <Cell col="16"/>
- <Cell col="17"/>
- <Cell col="18"/>
- <Cell col="19"/>
- <Cell col="20"/>
- </Band>
- <Band id="body">
- <Cell celltype="head"/>
- <Cell col="1" displaytype="normal" edittype="none" style="align:left;" text="bind:goodcd"/>
- <Cell col="2" displaytype="normal" edittype="none" style="align:left;" text="bind:goodnm"/>
- <Cell col="3" displaytype="number" edittype="text" style="align:right;" text="bind:orginspqty" mask="#,##9.##" editautoselect="true"/>
- <Cell col="4" style="align:left;" text="bind:goodspec"/>
- <Cell col="5" style="align:right;" text="bind:exchqty" mask="#,###"/>
- <Cell col="6" text="bind:deliveunit" enable="false"/>
- <Cell col="7" text="bind:purcunit"/>
- <Cell col="8" style="align:right;" text="bind:goodunitcost" mask="#,###.##"/>
- <Cell col="9" text="bind:instcd"/>
- <Cell col="10" text="bind:goodflag"/>
- <Cell col="11" text="bind:orginspym"/>
- <Cell col="12" text="bind:stocdeptcd"/>
- <Cell col="13" text="bind:lrgcd"/>
- <Cell col="14" text="bind:stocadjttretyn"/>
- <Cell col="15" text="bind:orginspid"/>
- <Cell col="16" text="bind:orginspidnm"/>
- <Cell col="17" text="bind:orginspdd"/>
- <Cell col="18" text="bind:stocqty" mask="#,###.#"/>
- <Cell col="19" text="bind:stocamt" mask="#,###"/>
- <Cell col="20" text="bind:stocseqno"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Calendar position="absolute 416 18 521 37" align="align:center middle;" id="ipt_orginspym" class="input_essential" mask="yyyy-mm" dateformat="yyyy-MM" value="null" editformat="yyyy-MM" style="align:center;" autoselect="true"/>
- <Combo position="absolute 985 45 1065 64" id="cmb_goodflag" class="combo_default" visible="false"/>
- <Static text="약품 실사등록 내역" position="absolute 0 79 197 98" id="caption3" class="tit_2"/>
- <Button position="absolute 759 46 775 62" id="btn_goodcd" class="icon_search" text="" onclick="grp_biz_btn_goodcd_onclick"/>
- <Edit position="absolute 673 44 755 63" id="ipt_goodcd" class="input_search" onkeydown="grp_biz_ipt_goodcd_onkeydown" autoselect="true" inputmode="upper"/>
- <Edit position="absolute 779 44 982 63" id="ipt_goodnm" class="input_search" onkeydown="grp_biz_ipt_goodnm_onkeydown" autoselect="true"/>
- <Button position="absolute 1125 29 1181 51" id="btn_search" class="btn1" text="조회" onclick="grp_biz_btn_search_onclick"/>
- <Shape position="absolute 1107 16 1113 61" linetype="vertical" id="line13" class="line_4"/>
- <Static text="약품분류 :" position="absolute 325 75 413 92" id="cap_lrgcd" class="search_name" visible="false"/>
- <Static text="기관코드 :" position="absolute 15 14 86 41" id="cap_instcd" class="search_name"/>
- <Static text="약품코드 :" position="absolute 598 45 670 62" id="cap_goodcd" class="search_name"/>
- <Static text="재고 년월 :" position="absolute 325 19 414 36" id="cap_orginspym" class="search_name"/>
- <Static text="부 서 :" position="absolute 597 19 670 36" id="cap_stocdeptcd" class="search_name"/>
- <Button position="absolute 1140 75 1193 94" id="btn_delete" class="btn2" text="행삭제" onclick="grp_biz_btn_delete_onclick"/>
- <Button position="absolute 745 75 798 94" id="btn_insert" class="btn2" visible="false" text="행추가" onclick="grp_biz_btn_insert_onclick"/>
- <Combo position="absolute 673 18 786 37" id="cmb_stocdeptcd" class="combo_essential"/>
- <Combo position="absolute 400 73 550 92" id="cmb_lrgcd" class="combo_essential" visible="false"/>
- <Static text="실사담당자 :" position="absolute 325 45 412 62" id="caption24" class="search_name"/>
- <Edit readonly="true" position="absolute 416 45 522 64" align="align:center middle;" id="opt_orginspidnm" class="output" style="align:center;"/>
- <Edit readonly="true" position="absolute 1070 45 1090 64" align="align:center middle;" id="opt_orginspid" visible="false" class="output"/>
- <Button position="absolute 1007 75 1137 94" id="btn_load" class="btn2" text="기초데이타 가져오기" onclick="grp_biz_btn_load_onclick"/>
- <Edit readonly="true" position="absolute 90 18 240 37" align="align:center middle;" id="opt_instcdnm" class="output" style="align:center;"/>
- <Edit readonly="true" position="absolute 1025 45 1045 64" id="opt_instcd" visible="false" class="output"/>
- <Calendar position="absolute 945 19 1045 38" align="align:center middle;" id="ipt_orginspdd" class="input_essential" mask="yyyy-mm-dd" style="align:center;" dateformat="yyyy-MM-dd" value="null" onchanged="grp_biz_ipt_orginspdd_onchanged" autoselect="true"/>
- <Static text="실사일자 :" position="absolute 869 20 940 37" id="caption1" class="search_name"/>
- <Grid position="absolute 75 260 870 399" id="grd_pharmcylist" visible="false" binddataset="ds_init_main_goodlist" oncelldblclick="grp_biz_grd_pharmcylist_oncelldblclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="20"/>
- <Column size="102"/>
- <Column size="270"/>
- <Column size="71"/>
- <Column size="113"/>
- <Column size="53"/>
- <Column size="41"/>
- <Column size="38"/>
- <Column size="61"/>
- <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"/>
- <Cell col="16"/>
- <Cell col="17"/>
- <Cell col="18"/>
- <Cell col="19"/>
- <Cell col="20"/>
- </Band>
- <Band id="body">
- <Cell celltype="head"/>
- <Cell col="1" displaytype="none" edittype="none" text="bind:goodcd"/>
- <Cell col="2" displaytype="none" edittype="none" text="bind:goodnm"/>
- <Cell col="3" displaytype="none" edittype="none" text="bind:orginspqty" mask="#,###"/>
- <Cell col="4" text="bind:goodspec"/>
- <Cell col="5" text="bind:exchqty" mask="#,###"/>
- <Cell col="6" text="bind:deliveunit" enable="false"/>
- <Cell col="7" text="bind:purcunit"/>
- <Cell col="8" text="bind:goodunitcost" mask="#,###"/>
- <Cell col="9" text="bind:instcd"/>
- <Cell col="10" text="bind:goodflag"/>
- <Cell col="11" text="bind:orginspym"/>
- <Cell col="12" text="bind:stocdeptcd"/>
- <Cell col="13" text="bind:lrgcd"/>
- <Cell col="14" text="bind:stocadjttretyn"/>
- <Cell col="15" text="bind:orginspid"/>
- <Cell col="16" text="bind:orginspidnm"/>
- <Cell col="17" text="bind:orginspdd"/>
- <Cell col="18" text="bind:stocqty" mask="#,###.#"/>
- <Cell col="19" text="bind:stocamt" mask="#,###"/>
- <Cell col="20" text="bind:stocseqno"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button position="absolute 885 75 1004 94" id="button1" class="btn2" text="전산재고 가져오기" onclick="grp_biz_button1_onclick"/>
- <Div position="absolute 737 100 1152 265" id="group2" visible="false" style="background:white;">
- <Layouts>
- <Layout>
- <Grid position="absolute 0 25 410 164" id="grd_goodlist" visible="true" binddataset="ds_init_main_goodlist" oncelldblclick="grp_biz_group2_grd_goodlist_oncelldblclick" anchor="default">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="20"/>
- <Column size="102"/>
- <Column size="270"/>
- <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="물품구분"/>
- </Band>
- <Band id="body">
- <Cell celltype="head"/>
- <Cell col="1" displaytype="text" edittype="none" text="bind:goodcd"/>
- <Cell col="2" displaytype="text" edittype="none" text="bind:goodnm"/>
- <Cell col="3" text="bind:instcd"/>
- <Cell col="4" text="bind:goodflag"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button position="absolute 340 4 393 23" id="button5" class="btn2" text="숨기기" onclick="grp_biz_group2_button5_onclick" anchor="default"/>
- </Layout>
- </Layouts>
- </Div>
- <Static text="관리분류 :" position="absolute 15 45 88 62" id="caption2" class="search_name"/>
- <Combo position="absolute 90 45 240 64" id="cmb_mngtcls" class="combo_essential"/>
- </Layout>
- </Layouts>
- </Div>
- <Div position="absolute 0 24 1195 56" id="group1">
- <Layouts>
- <Layout>
- <Button position="absolute 0 3 92 25" id="btn_print" class="btn6" text="리스트출력" anchor="default" onclick="group1_btn_print_onclick"/>
- <Button position="absolute 1070 3 1126 25" id="btn_save" class="btn4" text="저장" anchor="default" onclick="group1_btn_save_onclick"/>
- <Button position="absolute 1127 3 1195 25" id="btn_init" class="btn4" text="초기화" anchor="default" onclick="group1_btn_init_onclick"/>
- <Shape position="absolute 0 24 1195 30" linetype="horizontal" id="line17" class="line_6" anchor="default"/>
- </Layout>
- </Layouts>
- </Div>
- <Static id="caption6" text="약품 실사량 관리" class="tit_1" position="absolute 0 0 138 25"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_send_oncolumnchanged">
- <ColumnInfo>
- <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
- <Column id="goodflag" type="STRING" size="256" sumtext="물품구분"/>
- <Column id="orginspym" type="STRING" size="256" sumtext="작업년월"/>
- <Column id="stocdeptcd" type="STRING" size="256" sumtext="부서"/>
- <Column id="goodcd" type="STRING" size="256" sumtext="물품코드"/>
- <Column id="lrgcd" type="STRING" size="256" sumtext="대분류코드"/>
- <Column id="orginspid" type="STRING" size="256" sumtext="실사자"/>
- <Column id="orginspdd" type="STRING" size="256" sumtext="실사일자"/>
- <Column id="mngtcls" type="STRING" size="256" sumtext="관리분류(약품)"/>
- <Column id="drugkind" type="STRING" size="256" sumtext="약품분류"/>
- <Column id="instcdnm" type="STRING" size="256"/>
- <Column id="orginspidnm" type="STRING" size="256"/>
- <Column id="goodnm" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_rsthssstlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
- <Column id="stocdeptcd" type="STRING" size="256" sumtext="재고부서코드"/>
- <Column id="orginspym" type="STRING" size="256" sumtext="실사년월"/>
- <Column id="goodcd" type="STRING" size="256" sumtext="물품코드(물품구분1, 대분류 2, 중분류 3, 소분류2, 번호 4) 12자리"/>
- <Column id="stocseqno" type="STRING" size="256" sumtext="순번"/>
- <Column id="goodflag" type="STRING" size="256" sumtext="물품구분(r0025) y 진료재료, ..."/>
- <Column id="lrgcd" type="STRING" size="256" sumtext="대분류코드"/>
- <Column id="stocqty" type="BIGDECIMAL" size="256" sumtext="재고수량"/>
- <Column id="stocamt" type="BIGDECIMAL" size="256" sumtext="재고금액"/>
- <Column id="orginspqty" type="STRING" size="256" sumtext="실사수량"/>
- <Column id="stocadjttretyn" type="STRING" size="256" sumtext="재고조정처리여부"/>
- <Column id="goodnm" type="STRING" size="256" sumtext="물품명"/>
- <Column id="purcunit" type="STRING" size="256" sumtext="발주단위"/>
- <Column id="exchqty" type="STRING" size="256" sumtext="환산수량"/>
- <Column id="deliveunit" type="STRING" size="256" sumtext="단위"/>
- <Column id="goodspec" type="STRING" size="256" sumtext="규격"/>
- <Column id="goodunitcost" type="BIGDECIMAL" size="256" sumtext="단가"/>
- <Column id="orginspid" type="STRING" size="256" sumtext="실사자ID"/>
- <Column id="orginspidnm" type="STRING" size="256" sumtext="실사자명"/>
- <Column id="fstrgstrid" type="STRING" size="256" sumtext="최초등록자id"/>
- <Column id="fstrgstdt" type="STRING" size="256" sumtext="최초등록일시"/>
- <Column id="lastupdtrid" type="STRING" size="256" sumtext="최종수정자id"/>
- <Column id="lastupdtdt" type="STRING" size="256" sumtext="최종수정일시"/>
- <Column id="orginspdd" type="STRING" size="256" sumtext="실사일자"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_send_reqdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="refcond" type="STRING" size="256" sumtext="조회조건 "/>
- <Column id="instcd" type="STRING" size="256" sumtext="기관코드 "/>
- <Column id="goodflag" type="STRING" size="256" sumtext="물품구분 "/>
- <Column id="goodcd" type="STRING" size="256" sumtext="물품코드 "/>
- <Column id="goodnm" type="STRING" size="256" sumtext="물품명 "/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_main_goodlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="goodcd" type="STRING" size="256" sumtext="물품코드 "/>
- <Column id="goodnm" type="STRING" size="256" sumtext="goodnm "/>
- <Column id="goodspec" type="STRING" size="256" sumtext="물품규격 "/>
- <Column id="userqty" type="STRING" size="256" sumtext="사용자입력수량 "/>
- <Column id="deliveunit" type="STRING" size="256" sumtext="수불단위 "/>
- <Column id="estmamt" type="BIGDECIMAL" size="256" sumtext="견적가 "/>
- <Column id="goodmodel" type="STRING" size="256" sumtext="모델 "/>
- <Column id="prodcmpynm" type="STRING" size="256" sumtext="제조회사명 "/>
- <Column id="prodcmpycd" type="STRING" size="256" sumtext="제조회사코드 "/>
- <Column id="todd" type="STRING" size="256" sumtext="todd "/>
- <Column id="instcd" type="STRING" size="256" sumtext="기관코드 "/>
- <Column id="useyn" type="STRING" size="256" sumtext="사용여부 "/>
- <Column id="fromdd" type="STRING" size="256" sumtext="fromdd "/>
- <Column id="goodflag" type="STRING" size="256" sumtext="물품구분(r0025) "/>
- <Column id="goodhngnm" type="STRING" size="256" sumtext="영문명 "/>
- <Column id="goodengnm" type="STRING" size="256" sumtext="물품명 "/>
- <Column id="lrgcd" type="STRING" size="256" sumtext="대분류코드 "/>
- <Column id="lrgnm" type="STRING" size="256" sumtext="대분류명 "/>
- <Column id="mdlcd" type="STRING" size="256" sumtext="중분류코드 "/>
- <Column id="mdlnm" type="STRING" size="256" sumtext="중분류명 "/>
- <Column id="smlcd" type="STRING" size="256" sumtext="소분류코드 "/>
- <Column id="smlnm" type="STRING" size="256" sumtext="소분류 "/>
- <Column id="winacnt" type="STRING" size="256" sumtext="계정코드 "/>
- <Column id="winacntnm" type="STRING" size="256" sumtext="계정코드명 "/>
- <Column id="amtacnt" type="STRING" size="256" sumtext="비용계정 "/>
- <Column id="amtacntnm" type="STRING" size="256" sumtext="비용계정명 "/>
- <Column id="mainmngtdeptcd" type="STRING" size="256" sumtext="주관리부서코드 "/>
- <Column id="mainmngtdeptnm" type="STRING" size="256" sumtext="주관리부서명 "/>
- <Column id="stocmngtflag" type="STRING" size="256" sumtext="재고관리기준 "/>
- <Column id="purcunit" type="STRING" size="256" sumtext="입고단위 "/>
- <Column id="purcunitnm" type="STRING" size="256" sumtext="입고단위 "/>
- <Column id="deliveunitnm" type="STRING" size="256" sumtext="수불단위 "/>
- <Column id="exchqty" type="BIGDECIMAL" size="256" sumtext="환산배수 "/>
- <Column id="minexch" type="BIGDECIMAL" size="256" sumtext="최소환산수량 "/>
- <Column id="divusenvalqty" type="STRING" size="256" sumtext="분할사용수치 "/>
- <Column id="edicd" type="STRING" size="256" sumtext="edi코드 "/>
- <Column id="reqflag" type="STRING" size="256" sumtext="청구기준 "/>
- <Column id="reqflagnm" type="STRING" size="256" sumtext="청구기준명 "/>
- <Column id="reqmthd" type="STRING" size="256" sumtext="청구방법 "/>
- <Column id="reqprid" type="STRING" size="256" sumtext="청구주기 "/>
- <Column id="prodplce" type="STRING" size="256" sumtext="제조국 "/>
- <Column id="prodplcenm" type="STRING" size="256" sumtext="제조국명 "/>
- <Column id="maincustlastsuplplce" type="STRING" size="256" sumtext="최종공급처 "/>
- <Column id="maincustlastsuplplcenm" type="STRING" size="256" sumtext="최종공급처 "/>
- <Column id="suppcustcd" type="STRING" size="256" sumtext="보조거래처코드 "/>
- <Column id="suppcustnm" type="STRING" size="256" sumtext="보조거래처명 "/>
- <Column id="forgncurncyunitcost" type="BIGDECIMAL" size="256" sumtext="외화단가 "/>
- <Column id="curncyunit" type="STRING" size="256" sumtext="화폐단위 "/>
- <Column id="curncyunitnm" type="STRING" size="256" sumtext="화폐단위 "/>
- <Column id="goodunitcost" type="BIGDECIMAL" size="256" sumtext="제품단가 "/>
- <Column id="purcflag" type="STRING" size="256" sumtext="구매구분 "/>
- <Column id="safestocqty" type="BIGDECIMAL" size="256" sumtext="안전재고량 "/>
- <Column id="ddavguseqty" type="BIGDECIMAL" size="256" sumtext="일평균사용량 "/>
- <Column id="mmavgusescheqty" type="BIGDECIMAL" size="256" sumtext="월평균사용예정량 "/>
- <Column id="mmavguseqty" type="BIGDECIMAL" size="256" sumtext="월평균사용량 "/>
- <Column id="prprtystocpossndayno" type="BIGDECIMAL" size="256" sumtext="적정재고보유일수 "/>
- <Column id="stocqty" type="STRING" size="256" sumtext="재고량 "/>
- <Column id="curemealstocqty" type="STRING" size="256" sumtext="치료식현재고수량 "/>
- <Column id="empmealstocqty" type="STRING" size="256" sumtext="직원식현재고수량 "/>
- <Column id="empnigtmealstocqty" type="STRING" size="256" sumtext="직원야식현재고수량 "/>
- <Column id="curemealstocqty" type="STRING" size="256" sumtext="영양팀치료식 "/>
- <Column id="empmealstocqty" type="STRING" size="256" sumtext="영양팀직원식 "/>
- <Column id="empnigtmealstocqty" type="STRING" size="256" sumtext="영양팀직원야식 "/>
- <Column id="allsizeyn" type="STRING" size="256" sumtext="allsize여부 "/>
- <Column id="orgloc" type="STRING" size="256" sumtext="원산지 "/>
- <Column id="select" type="STRING" size="256" sumtext=" "/>
- <Column id="bnscd" type="STRING" size="256" sumtext=" "/>
- <Column id="oldcd" type="STRING" size="256" sumtext="구코드 "/>
- <Column id="goodpurccost" type="STRING" size="256" sumtext="납품가 "/>
- <Column id="reqpridnm" type="STRING" size="256" sumtext="청구주기명 "/>
- <Column id="allsizespecid" type="STRING" size="256" sumtext="allsize코드 "/>
- <Column id="reqfnldeptcd" type="STRING" size="256" sumtext="출고부서 "/>
- <Column id="delivedeptcd" type="STRING" size="256" sumtext="출고부서 "/>
- <Column id="setunit" type="STRING" size="256" sumtext="포장구성단위 "/>
- <Column id="constunit" type="STRING" size="256" sumtext="포장구성단위 "/>
- </ColumnInfo>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="grp_biz.opt_instcdnm" propid="value" datasetid="ds_send" columnid="instcdnm"/>
- <BindItem id="item1" compid="grp_biz.ipt_orginspym" propid="value" datasetid="ds_send" columnid="orginspym"/>
- <BindItem id="item2" compid="grp_biz.cmb_stocdeptcd" propid="value" datasetid="ds_send" columnid="stocdeptcd"/>
- <BindItem id="item3" compid="grp_biz.ipt_orginspdd" propid="value" datasetid="ds_send" columnid="orginspdd"/>
- <BindItem id="item4" compid="grp_biz.cmb_mngtcls" propid="value" datasetid="ds_send" columnid="mngtcls"/>
- <BindItem id="item5" compid="grp_biz.opt_orginspidnm" propid="value" datasetid="ds_send" columnid="orginspidnm"/>
- <BindItem id="item6" compid="grp_biz.ipt_goodnm" propid="value" datasetid="ds_send" columnid="goodnm"/>
- <BindItem id="item7" compid="grp_biz.cmb_goodflag" propid="value" datasetid="ds_send" columnid="goodflag"/>
- <BindItem id="item8" compid="grp_biz.opt_instcd" propid="value" datasetid="ds_send" columnid="instcd"/>
- <BindItem id="item9" compid="grp_biz.opt_orginspid" propid="value" datasetid="ds_send" columnid="orginspid"/>
- <BindItem id="item10" compid="grp_biz.cmb_lrgcd" propid="value" datasetid="ds_send" columnid="lrgcd"/>
- <BindItem id="item11" compid="grp_biz.ipt_goodcd" propid="value" datasetid="ds_send" columnid="goodcd"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name : 경대 의료정보시스템
- * Job Name : mis_stocsumxp -> SMRST00200
- * Creator : pjb
- * Make Date : 2018-01-04
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2018-01-04 pjb TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- //=======================================================================================
- // Lib Include
- //---------------------------------------------------------------------------------------
- include "com_commonxp::comm_main.xjs";
- include "mis_miscommonxp::MIS.xjs";
- include "mis_miscommonxp::RSZ001.xjs";
- //include "mis_humtrafactmngtxp::RPB001.xjs";
- //=======================================================================================
- // Global Form Variable
- //---------------------------------------------------------------------------------------
- var arErrorCode = new HashArray();
- //=======================================================================================
- // Function
- //---------------------------------------------------------------------------------------
- // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
- function fInitialize()
- {
- misfGridInit(grp_biz.grd_rsthssstlist);
- // [2010.08.26]AS-IS 코드 TO_BE 코드 전환을 위한 물품구분 변경 (goodflag= P) => (goodflag= PH)
- rszfComboStockArthDeptcdList("grp_biz.cmb_stocdeptcd",sysf_getUserInfo("dutplceinstcd"),"PH" );
- misfComboComCdList("030M0003",grp_biz.cmb_mngtcls,"Y");
- grp_biz.cmb_mngtcls.value = "";
-
- misfComboComCdListMulti("R0025,R0315","grp_biz.cmb_goodflag,grp_biz.cmb_lrgcd");
- frmf_addComboItem("grp_biz.cmb_lrgcd","전체","-","above");
- grp_biz.cmb_lrgcd.value="-";
- misfMsterDetailSet(grp_biz.grd_rsthssstlist, null, "TRRST00201", "Y");
- ds_send.setColumn(0, "instcd", sysf_getUserInfo("dutplceinstcd"));
- ds_send.setColumn(0, "instcdnm" , sysf_getUserInfo("dutplceinstnm"));
- // [2010.08.26]AS-IS 코드 TO_BE 코드 전환을 위한 물품구분 변경 (goodflag= P) => (goodflag= PH)
- ds_send.setColumn(0, "goodflag", "PH");
- ds_send.setColumn(0, "orginspid", sysf_getUserInfo("userid"));
- ds_send.setColumn(0, "orginspidnm", sysf_getUserInfo("usernm"));
-
- var curdd = utlf_getCurrentDate();
- ds_send.setColumn(0, "orginspym",curdd.substr(0,6) );
- ds_send.setColumn(0, "orginspdd",utlf_getCurrentDate() );
-
- //rszfGridComboLrgcdList("P", cmb_lrgcd, "lrgcd","N");
- grp_biz.cmb_stocdeptcd.index = 0;
- grp_biz.cmb_lrgcd.index = 0;
- //grd_rsthssstlist.explorerbar = "sortshow"; --> ? grdf_setGridSort로 변환?
-
- }
- function fCheckRetrieveData()
- {
- if(!frmf_isRequiredControls("grp_biz.cmb_goodflag") )return false; // 물품구분
- if(!frmf_isRequiredControls("grp_biz.ipt_orginspym") )return false; // 작업년월
- if(!frmf_isRequiredControls("grp_biz.ipt_orginspdd") )return false; // 실사일자
- if(!frmf_isRequiredControls("grp_biz.cmb_stocdeptcd") )return false; // 부서코드
- if(!frmf_isRequiredControls("grp_biz.cmb_lrgcd") )return false; // 대분류
- }
- function finsert()
- {
- misfGridIUD(grp_biz.grd_rsthssstlist, "A");
- ds_main_rsthssstlist.setColumn(ds_main_rsthssstlist.rowposition, "instcd", opt_instcd.value); //기관코드
- ds_main_rsthssstlist.setColumn(ds_main_rsthssstlist.rowposition, "stocdeptcd", cmb_stocdeptcd.value); //부서코드
- ds_main_rsthssstlist.setColumn(ds_main_rsthssstlist.rowposition, "orginspym", ipt_orginspym.value); //작업년월
- ds_main_rsthssstlist.setColumn(ds_main_rsthssstlist.rowposition, "goodflag", cmb_goodflag.value); //물품구분
- ds_main_rsthssstlist.setColumn(ds_main_rsthssstlist.rowposition, "orginspid", opt_orginspid.value); //실사자
- ds_main_rsthssstlist.setColumn(ds_main_rsthssstlist.rowposition, "orginspdd", ipt_orginspdd.value); //실사일자
- /* 아래 3줄은 2.0으로 전환하다 본함수가 사용되지 않는 것 같아 중단했음.
- grd_rsthssstlist.isReadOnly(grd_rsthssstlist.row, grd_rsthssstlist.colRef("goodspec")) = true;
- grd_rsthssstlist.isReadOnly(grd_rsthssstlist.row, grd_rsthssstlist.colRef("deliveunit")) = true;
- grd_rsthssstlist.isReadOnly(grd_rsthssstlist.row, grd_rsthssstlist.colRef("goodunitcost")) = true;
- */
-
- }
- function fAfterRetr()
- {
- ds_main_rsthssstlist.enableevent = false;
- ds_main_rsthssstlist.updatecontrol = false;
-
- //없는 컬럼들을 추가함
- dsf_setDefaultVal(ds_main_rsthssstlist, "stocdeptcd:,orginspym:,goodflag:,orginspid:,orginspdd:,orginspqty:,instcd:");
-
- for(var liRow = 0 ; liRow < ds_main_rsthssstlist.rowcount ; liRow++)
- {
- ds_main_rsthssstlist.setColumn(liRow, "instcd", grp_biz.opt_instcd.value);
- ds_main_rsthssstlist.setColumn(liRow, "stocdeptcd", grp_biz.cmb_stocdeptcd.value);
- //model.setValue(grd_rsthssstlist.nodeset + "[" + (liRow - grd_rsthssstlist.fixedRows + 1)+ "]/orginspym",ipt_orginspym.value.substr(0,6) );
- ds_main_rsthssstlist.setColumn(liRow, "orginspym", grp_biz.ipt_orginspym.value );
- ds_main_rsthssstlist.setColumn(liRow, "goodflag", grp_biz.cmb_goodflag.value);
-
- ds_main_rsthssstlist.setColumn(liRow, "orginspid", grp_biz.opt_orginspid.value);
- ds_main_rsthssstlist.setColumn(liRow, "orginspdd", grp_biz.ipt_orginspdd.value);
-
- //KU2.0에서 추가 박준범. KU1.0에서는 mapping파일 안에 있는 부분임.
- ds_main_rsthssstlist.setColumn(liRow, "orginspqty", ds_main_rsthssstlist.getColumn(liRow, "stocqty"));
-
- if (ds_main_rsthssstlist.getRowType(liRow) == 1) ds_main_rsthssstlist.setRowType(liRow, 2);
- }
-
- ds_main_rsthssstlist.updatecontrol = true;
- ds_main_rsthssstlist.enableevent = true;
- }
- //=======================================================================================
- // Event
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Components : Form
- * Components ID : SMRST00200
- * Event : oninit
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 처음 초기화시
- ****************************************************************************************/
- function SMRST00200_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj); //폼 초기화
- }
- /****************************************************************************************
- * Components : Form
- * Components ID : SMRST00200
- * Event : onload
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 로딩 완료시
- ****************************************************************************************/
- function SMRST00200_onload(obj:Form, e:LoadEventInfo)
- {
- grdf_setRowTypeIcon(grp_biz.grd_rsthssstlist, 0);
- grdf_setRowTypeIcon(grp_biz.grd_pharmcylist, 0);
- grdf_setRowTypeIcon(grp_biz.group2.grd_goodlist, 0);
- grdf_setGridSort(grp_biz.grd_rsthssstlist);
- //참고 : grdf_initGrid(grp_biz.grd_rsthssstlist); 그리드의 sort기능과 전체체크기능을 세팅한다.
-
- //화면 Control을 초기화한다
- fInitialize();
-
- }
- function grp_biz_ipt_orginspdd_onchanged(obj:Calendar, e:ChangeEventInfo)
- {
- var orginspym = utlf_transNullToEmpty(ds_send.getColumn(0, "orginspym"));
- var orginspdd = utlf_transNullToEmpty(ds_send.getColumn(0, "orginspdd")).substring(0,6);
-
- if(orginspym > orginspdd ){
- sysf_messageBox("실사일자가 재고년월보다 작을 수","I004");
- ds_send.setColumn(0,"orginspdd",utlf_getCurrentDate());
- grp_biz.ipt_orginspdd.setFocus();
- return;
- }
-
- }
- function ds_send_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
- {
- if(e.columnid == "goodcd") {
- if(utlf_transNullToEmpty(grp_biz.ipt_goodcd.value).length == 0)
- {
- grp_biz.ipt_goodnm.value = "";
- }
- else {
- ds_send.setColumn(0, "goodnm", "");
- grp_biz.btn_goodcd.click();
- }
-
- } else if(e.columnid == "goodnm") {
- if(utlf_transNullToEmpty(grp_biz.ipt_goodnm.value).length == 0)
- {
- grp_biz.ipt_goodcd.value = "";
- }
- else {
- ds_send.setColumn(0, "goodnm", "");
- grp_biz.btn_goodcd.click();
- }
-
- } else if(e.columnid == "orginspym") {
- obj.setColumn(e.row, e.columnid, e.newvalue.substr(0, 6));
- }
- }
- function grp_biz_ipt_goodcd_onkeydown(obj:Edit, e:KeyEventInfo)
- {
-
- if(e.keycode == "13") {
- //ds_send.setColumn(0, "goodcd", obj.value);
- grp_biz.ipt_goodcd.value = obj.value;
- }
-
- }
- function grp_biz_ipt_goodnm_onkeydown(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == "13") {
- //ds_send.setColumn(0, "goodnm", obj.value);
- grp_biz.ipt_goodnm.value = obj.value;
- }
-
- }
- function grp_biz_btn_goodcd_onclick(obj:Button, e:ClickEventInfo)
- {
- dsf_makeValue(ds_send_reqdata, "instcd", "string", ds_send.getColumn(0, "instcd"), 0);
- // [2010.08.26]AS-IS 코드 TO_BE 코드 전환을 위한 물품구분 변경 (goodflag= P) => (goodflag= PH)
- dsf_makeValue(ds_send_reqdata, "goodflag", "string", "PH", 0);
- dsf_makeValue(ds_send_reqdata, "goodcd", "string", ds_send.getColumn(0, "goodcd"), 0);
- dsf_makeValue(ds_send_reqdata, "goodnm", "string", ds_send.getColumn(0, "goodnm"), 0);
-
- var oParam = {};
- oParam.id = "TRRSD00192";
- oParam.service = "purccommonapp.PurcCommon";
- oParam.method = "reqGetPhamGoodListByCond";
- oParam.inds = "req=ds_send_reqdata";
- oParam.outds = "ds_init_main_goodlist=goodlist";
- oParam.async = false;
- oParam.callback = "cf_TRRSD00192";
- tranf_submit(oParam);
-
- if (arErrorCode.pop("TRRSD00192") > -1) {
- var nodecnts = ds_init_main_goodlist.rowcount;
- if (nodecnts >= 2) {
- grp_biz.group2.visible = true;
- } else if (nodecnts == 1) {
-
- var goodcd = ds_init_main_goodlist.getColumn(0, "goodcd");
- var goodnm = ds_init_main_goodlist.getColumn(0, "goodnm");
-
- ds_send.enableevent = false;
- ds_send.setColumn(0, "goodcd", goodcd);
- ds_send.setColumn(0, "goodnm", goodnm);
- ds_send.enableevent = true;
- } else {
- sysf_messageBox("검색된 코드가 없습니다.", "I");
- }
-
- }
-
- }
- function cf_TRRSD00192(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- function grp_biz_group2_button5_onclick(obj:Button, e:ClickEventInfo)
- {
- grp_biz.group2.visible = false;
- }
- function grp_biz_group2_grd_goodlist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
- {
- if(e.row >= 0 && e.col >= 0) {
- var goodcd = ds_init_main_goodlist.getColumn(e.row, "goodcd");
- var goodnm = ds_init_main_goodlist.getColumn(e.row, "goodnm");
-
- ds_send.enableevent = false;
- ds_send.setColumn(0, "goodcd", goodcd);
- ds_send.setColumn(0, "goodnm", goodnm);
- ds_send.enableevent = true;
-
- grp_biz.group2.visible = false;
- }
-
- }
- function grp_biz_btn_search_onclick(obj:Button, e:ClickEventInfo)
- {
- var data = grdf_getGridUpdateData(grp_biz.grd_rsthssstlist);
-
- //trace(data.saveXML("ds_main_rsthssstlist", "all"));
-
- if(data.rowcount != 0)
- {
- if(sysf_messageBox("작업중인 Data 가 있습니다.","Q003") != 6 )return;
- }
-
- if(fCheckRetrieveData(false) == false)return;
-
- var oParam = {};
- oParam.id = "TRRST00201";
- oParam.service = "stocsumapp.StocSumMngt";
- oParam.method = "reqGetRsthssstList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_rsthssstlist=rsthssstlist";
- oParam.async = false;
- //oParam.callback = "cf_TRRST00201";
- tranf_submit(oParam);
-
- /* 컬럼의 값을 쓰기, 읽기 속성등으로 변경하고자 할 때 쓰는 방법.
-
-
- if(utlf_isNull(ds_main_rsthssstlist.getColumnInfo("orginspqtyEdit"))){ //해달 컬럼이 있는지 확인
- ds_main_rsthssstlist.addColumn("orginspqtyEdit", "string");
- }
- ds_main_rsthssstlist.enableevent = false;
- ds_main_rsthssstlist.updatecontrol = false;
- dsf_setDefaultVal(ds_main_rsthssstlist, "orginspqtyEdit:masknumber");
- ds_main_rsthssstlist.updatecontrol = true;
- ds_main_rsthssstlist.enableevent = true;
-
- ds_main_rsthssstlist.setColumn(ds_main_rsthssstlist.rowposition, "orginspqtyEdit", "none");
-
-
- //misfSetReadOnlyCol(grd_rsthssstlist, "goodcd,goodnm,goodflag,goodspec,deliveunit,goodunitcost", true);
-
- */
-
- }
- function grp_biz_btn_insert_onclick(obj:Button, e:ClickEventInfo)
- {
- if(fCheckRetrieveData(false) == false)return;
-
- finsert();
-
- ds_main_rsthssstlist.enableevent = false;
- ds_main_rsthssstlist.updatecontrol = false;
- ds_main_rsthssstlist.setColumn(ds_main_rsthssstlist.rowposition, "goodcd", "");
- ds_main_rsthssstlist.updatecontrol = true;
- ds_main_rsthssstlist.enableevent = true;
-
- }
- function grp_biz_grd_rsthssstlist_onkeydown(obj:Grid, e:KeyEventInfo)
- {
- if(obj.currentcol == obj.getBindCellIndex("body", "orginspqty")){
- if(e.keycode == 13){
- if(ds_main_rsthssstlist.rowposition < ds_main_rsthssstlist.rowcount - 1) {
- ds_main_rsthssstlist.rowposition++;
- //아래 세줄의 코딩이 없어도 잘 됨.
- obj.setCellPos(obj.getBindCellIndex("body", "orginspqty"));
- //obj.setFocus();
- obj.showEditor();
- /* 또는 위의 3줄을 아래와 같이 코딩할 수도 있음.
- ds_main_rsthssstlist.selectRow(ds_main_rsthssstlist.rowposition + 1, true);
- grp_biz.grd_rsthssstlist.setCellPos(grp_biz.grd_rsthssstlist.getBindCellIndex("body", "orginspqty"));
- grp_biz.grd_rsthssstlist.showEditor(true);
- */
-
- }
- }
- }
- }
- function grp_biz_button1_onclick(obj:Button, e:ClickEventInfo)
- {
- var data = grdf_getGridUpdateData(grp_biz.grd_rsthssstlist);
-
- if(data.rowcount > 0)
- {
- if(sysf_messageBox("작업중인 Data 가 있습니다.","Q003") != 6 ) return;
- }
-
- if(!frmf_isRequiredControls("cmb_goodflag") ) return; // 물품구분
- if(!frmf_isRequiredControls("ipt_orginspym") ) return; // 작업년월
- if(!frmf_isRequiredControls("cmb_stocdeptcd") ) return; // 부서코드
- if(!frmf_isRequiredControls("cmb_lrgcd") ) return; // 대분류
- var oParam = {};
- oParam.id = "TRRST00203";
- oParam.service = "stocsumapp.StocSumMngt";
- oParam.method = "reqGetRsthrsthOnlineList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_rsthssstlist=rsthssstlist";
- oParam.async = false;
- //oParam.callback = "cf_TRRST00203";
- tranf_submit(oParam);
-
- fAfterRetr();
-
- }
- function grp_biz_btn_delete_onclick(obj:Button, e:ClickEventInfo)
- {
- misfGridIUD(grp_biz.grd_rsthssstlist, "D");
- ds_main_rsthssstlist.selectRow(ds_main_rsthssstlist.rowposition);
- }
- function grp_biz_btn_load_onclick(obj:Button, e:ClickEventInfo)
- {
- var data = grdf_getGridUpdateData(grp_biz.grd_rsthssstlist);
-
- if(data.rowcount > 0)
- {
- if(sysf_messageBox("작업중인 Data 가 있습니다.","Q003") != 6 )return;
- }
-
- if(!frmf_isRequiredControls("cmb_goodflag") )return; // 물품구분
- if(!frmf_isRequiredControls("ipt_orginspym") )return; // 작업년월
- if(!frmf_isRequiredControls("cmb_stocdeptcd") )return; // 부서코드
- if(!frmf_isRequiredControls("cmb_lrgcd") )return; // 대분류
- var oParam = {};
- oParam.id = "TRRST00202";
- oParam.service = "stocsumapp.StocSumMngt";
- oParam.method = "reqGetRsthssstBasicList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_rsthssstlist=rsthssstlist";
- oParam.async = false;
- //oParam.callback = "cf_TRRST00202";
- tranf_submit(oParam);
-
- fAfterRetr();
-
- }
- function group1_btn_init_onclick(obj:Button, e:ClickEventInfo)
- {
- var data = grdf_getGridUpdateData(grp_biz.grd_rsthssstlist);
-
- if(data.rowcount > 0)
- {
- if(sysf_messageBox("작업중인 Data 가 있습니다.","Q003") != 6 )return;
- }
-
- fInitialize();
-
- }
- function group1_btn_save_onclick(obj:Button, e:ClickEventInfo)
- {
-
- // if(messageBox("","Q002") != 6) return;
-
- // if(checkKeyColumn("grd_rsthssstlist")== false) return;
-
- for(var fRow = 0; fRow < ds_main_rsthssstlist.rowcount; fRow++)
- {
- if(utlf_isNull(ds_main_rsthssstlist.getColumn(fRow, "orginspqty")))
- {
- sysf_messageBox("실사량은","I003");
- return;
- }
- }
- grdf_setStatusColumn(ds_main_rsthssstlist, "status");
- var data = grdf_getGridUpdateData(grp_biz.grd_rsthssstlist);
-
- if(data.rowcount == 0)
- {
- sysf_messageBox("저장할 내용이","I004");
- return;
- }
- ds_main_rsthssstlist.enableevent = false;
- ds_main_rsthssstlist.updatecontrol = false;
-
- for(var i = 0; i < ds_main_rsthssstlist.rowcount; i++)
- {
- ds_main_rsthssstlist.setColumn(i, "orginspdd", utlf_transNullToEmpty(grp_biz.ipt_orginspdd.value));
- }
-
- ds_main_rsthssstlist.updatecontrol = true;
- ds_main_rsthssstlist.enableevent = true;
-
- var oParam = {};
- oParam.id = "TXRST00201";
- oParam.service = "stocsumapp.StocSumMngt";
- oParam.method = "reqExeRsthssstList";
- oParam.inds = "req=ds_main_rsthssstlist:A";
- oParam.outds = "";
- oParam.async = false;
- //oParam.callback = "cf_TXRST00201";
- tranf_submit(oParam);
-
-
- grp_biz.btn_search.click();
-
- }
- function grp_biz_grd_pharmcylist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
- {
- /* KU2.0 으로 전환에서 제외함
- if (isDataCell() == true) {
- var row = grd_pharmcylist.row;
-
- var goodcd = model.getValue("/root/init/main/goodlist[" + row + "]/goodcd");
- var goodnm = model.getValue("/root/init/main/goodlist[" + row + "]/goodnm");
- var orginspqty = model.getValue("/root/init/main/goodlist[" + row + "]/orginspqty");
- if (isNull(orginspqty)) orginspqty = 0;
- var goodspec = model.getValue("/root/init/main/goodlist[" + row + "]/goodspec");
- var exchqty = model.getValue("/root/init/main/goodlist[" + row + "]/exchqty");
- var deliveunit = model.getValue("/root/init/main/goodlist[" + row + "]/deliveunit");
- var purcunit = model.getValue("/root/init/main/goodlist[" + row + "]/purcunit");
- var goodunitcost = model.getValue("/root/init/main/goodlist[" + row + "]/goodunitcost");
- var instcd = model.getValue("/root/init/main/goodlist[" + row + "]/instcd");
- var goodflag = model.getValue("/root/init/main/goodlist[" + row + "]/goodflag");
- var orginspym = model.getValue("/root/send/orginspym");
- var stocdeptcd = model.getValue("/root/send/stocdeptcd");
- var lrgcd = model.getValue("/root/send/lrgcd");
- var stocadjttretyn = model.getValue("/root/send/stocadjttretyn");
- var orginspid = model.getValue("/root/send/orginspid");
- var orginspidnm = model.getValue("/root/send/orginspidnm");
- var orginspdd = model.getValue("/root/send/orginspdd");
- var stocqty = model.getValue("/root/init/main/goodlist[" + row + "]/stocqty");
- var stocamt = model.getValue("/root/init/main/goodlist[" + row + "]/goodunitcost");
- var stocseqno = "";
-
- var row2 = grd_rsthssstlist.row;
-
- model.setValue("/root/main/rsthssstlist[" + row2 + "]/goodcd" , goodcd)
- model.setValue("/root/main/rsthssstlist[" + row2 + "]/goodnm" , goodnm)
- model.setValue("/root/main/rsthssstlist[" + row2 + "]/orginspqty" , orginspqty)
- model.setValue("/root/main/rsthssstlist[" + row2 + "]/goodspec" , goodspec)
- model.setValue("/root/main/rsthssstlist[" + row2 + "]/exchqty" , exchqty)
- model.setValue("/root/main/rsthssstlist[" + row2 + "]/deliveunit" , deliveunit)
- model.setValue("/root/main/rsthssstlist[" + row2 + "]/purcunit" , purcunit)
- model.setValue("/root/main/rsthssstlist[" + row2 + "]/goodunitcost" , goodunitcost)
- model.setValue("/root/main/rsthssstlist[" + row2 + "]/instcd" , instcd)
- model.setValue("/root/main/rsthssstlist[" + row2 + "]/goodflag" , goodflag)
- model.setValue("/root/main/rsthssstlist[" + row2 + "]/orginspym" , orginspym)
- model.setValue("/root/main/rsthssstlist[" + row2 + "]/stocdeptcd" , stocdeptcd)
- model.setValue("/root/main/rsthssstlist[" + row2 + "]/lrgcd" , lrgcd)
- model.setValue("/root/main/rsthssstlist[" + row2 + "]/stocadjttretyn" , stocadjttretyn)
- model.setValue("/root/main/rsthssstlist[" + row2 + "]/orginspid" , orginspid)
- model.setValue("/root/main/rsthssstlist[" + row2 + "]/orginspidnm" , orginspidnm)
- model.setValue("/root/main/rsthssstlist[" + row2 + "]/orginspdd" , orginspdd)
- model.setValue("/root/main/rsthssstlist[" + row2 + "]/stocqty" , stocqty)
- model.setValue("/root/main/rsthssstlist[" + row2 + "]/stocamt" , stocamt)
- model.setValue("/root/main/rsthssstlist[" + row2 + "]/stocseqno" , stocseqno)
- grd_pharmcylist.visible = false;
-
- grd_rsthssstlist.col = grd_rsthssstlist.colRef("orginspqty");
- grd_rsthssstlist.editCell();
-
- model.refresh();
- }
-
- */
- }
- function group1_btn_print_onclick(obj:Button, e:ClickEventInfo)
- {
- //exeReportPreview("RPRST00201", "XMLSTR");
- var objDOM = rptf_createDOM(); // DOM 객체 설정
- rptf_setNodeListToDOM(objDOM, "/root/main/rsthssstlist", ds_main_rsthssstlist); // 데이터셋 1
- //rptf_setNodeListToDOM(objDOM, "/root/main/psninfo/cmtinfo", ds_main_psninfo_cmtinfo); // 데이터셋 2
- var objParam = new Object();
- objParam.xml_data_XML1 = objDOM.documentElement.source; // 최상의노드 XML 스트링 추출
- var option = "open=1;save=1;directprint=0;print=1;zoom=0;";
- rptf_exeReportPreview30(["RPRST00201"],[objParam], option);
-
- }
- ]]></Script>
- </Form>
- </FDL>
|