1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMAEB03401" position="absolute 0 0 1198 774" titletext="조영제/재료 재고관리" oninit="SMAEB03401_oninit" onload="SMAEB03401_onload">
- <Layouts>
- <Layout>
- <Button position="absolute 805 67 873 89" id="btn_dayend" class="btn4" enable="false" visible="false" text="일마감" anchor="top right"/>
- <Button position="absolute 510 524 590 546" id="btn_rept" class="btn4" text="입고저장" visible="false" anchor="right bottom"/>
- <Button position="absolute 865 524 945 546" id="button1" class="btn4" text="입고저장" visible="false" anchor="right bottom"/>
- <Div position="absolute 0 15 1198 745" id="group2" scrollbars="autoboth" anchor="all">
- <Layouts>
- <Layout>
- <Static text="입출고 현황" position="absolute 0 59 105 74" id="caption22" class="tit_2" anchor="default"/>
- <Shape position="absolute 0 73 1045 79" linetype="horizontal" id="line7" class="line_1" anchor="left top right"/>
- <Grid position="absolute 0 79 1045 505" id="grd_dyelist" anchor="all" cellsizingtype="both" autoenter="key" binddataset="ds_main_dyestoclist_item" onkillfocus="group2_grd_dyelist_onkillfocus" oncelldblclick="group2_grd_dyelist_oncelldblclick" selecttype="multirow">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25" band="left"/>
- <Column size="90"/>
- <Column size="220"/>
- <Column size="70"/>
- <Column size="70"/>
- <Column size="70"/>
- <Column size="70"/>
- <Column size="70"/>
- <Column size="70"/>
- <Column size="270"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell rowspan="2" taborder="undefined"/>
- <Cell col="1" rowspan="2" text="조영제/재료 코드" wordwrap="char" taborder="undefined"/>
- <Cell col="2" rowspan="2" text="조영제/재료명" taborder="undefined"/>
- <Cell col="3" rowspan="2" text="전일재고" taborder="undefined"/>
- <Cell col="4" rowspan="2" text="수 령" taborder="undefined"/>
- <Cell col="5" rowspan="2" text="총 수" taborder="undefined"/>
- <Cell col="6" colspan="2" text="소 모" taborder="undefined"/>
- <Cell col="8" rowspan="2" text="현재고" taborder="undefined"/>
- <Cell col="9" rowspan="2" text="비 고" taborder="undefined"/>
- <Cell col="10"/>
- <Cell col="11"/>
- <Cell col="12"/>
- <Cell row="1" col="6" text="불 출"/>
- <Cell row="1" col="7" text="일소모"/>
- <Cell row="1" col="10"/>
- <Cell row="1" col="11"/>
- <Cell row="1" col="12"/>
- </Band>
- <Band id="body">
- <Cell celltype="head"/>
- <Cell col="1" style="align:left;" text="bind:goodcd"/>
- <Cell col="2" displaytype="combo" style="align:left;padding:0 2 0 2;" text="bind:goodcd" combodataset="ds_main_goodinfo" combocodecol="goodcd" combodatacol="goodnm" enable="false"/>
- <Cell col="3" displaytype="number" edittype="masknumber" style="align:right;" text="bind:agojego" mask="#,##9.##" editautoselect="true"/>
- <Cell col="4" displaytype="number" edittype="masknumber" style="align:right;" text="bind:receive" mask="#,##9.##" editautoselect="true"/>
- <Cell col="5" displaytype="number" style="align:right;" text="bind:totsu" mask="#,##9.##"/>
- <Cell col="6" displaytype="number" edittype="masknumber" style="align:right;" text="bind:outgo" mask="#,##9.##" editautoselect="true"/>
- <Cell col="7" displaytype="number" edittype="masknumber" style="align:right;" text="bind:dayused" mask="#,##9.##" editautoselect="true" enable="true"/>
- <Cell col="8" displaytype="number" style="align:right;" text="bind:presentcnt" mask="#,##9.##"/>
- <Cell col="9" displaytype="text" edittype="text" style="align:left;" text="bind:rem" editautoselect="true" enable="true"/>
- <Cell col="10" text="bind:iodd"/>
- <Cell col="11" text="bind:suppdeptcd"/>
- <Cell col="12" text="bind:sectcd"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Grid position="absolute 0 536 1045 725" id="datagrid1" binddataset="ds_main_dyecdpamlist_item" anchor="left right bottom" cellsizingtype="both" selecttype="multirow">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25" band="left"/>
- <Column size="58"/>
- <Column size="54"/>
- <Column size="75"/>
- <Column size="97"/>
- <Column size="95"/>
- <Column size="202"/>
- <Column size="77"/>
- <Column size="195"/>
- <Column size="43"/>
- <Column size="50"/>
- <Column size="75"/>
- <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="검사실코드"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" text="expr:currow+1"/>
- <Cell col="1" text="bind:pid"/>
- <Cell col="2" text="bind:hngnm"/>
- <Cell col="3" displaytype="date" text="bind:excuexectodd"/>
- <Cell col="4" style="align:left;" text="bind:basecdflagdesc"/>
- <Cell col="5" text="bind:calcscorcd"/>
- <Cell col="6" style="align:left;" text="bind:excucdnm"/>
- <Cell col="7" text="bind:goodcd"/>
- <Cell col="8" style="align:left;" text="bind:goodnm"/>
- <Cell col="9" text="bind:drugqty"/>
- <Cell col="10" text="bind:speccd"/>
- <Cell col="11" displaytype="date" text="bind:prcpdd"/>
- <Cell col="12" text="bind:instcd"/>
- <Cell col="13" text="bind:excuroomcd"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static text="조영제코드별 환자 조회" position="absolute 0 514 170 530" id="caption1" class="tit_2" anchor="left bottom"/>
- <Button position="absolute 988 52 1044 74" id="btn_dissu" class="btn4" enable="false" text="수정" anchor="top right" visible="true"/>
- <Button position="absolute 917 52 985 74" id="btn_disone" class="btn4" text="일마감" anchor="top right" enable="false"/>
- <Div position="absolute 435 265 760 395" id="grp_excucdrem" visible="false" anchor="default">
- <Layouts>
- <Layout>
- <Shape position="absolute 0 0 324 121" id="rectangle2" type="rectangle" anchor="default"/>
- <Calendar position="absolute 215 40 315 59" id="input2" class="input_search" mask="yyyy-mm-dd" anchor="default"/>
- <Static text="적용일자 :" position="absolute 13 41 91 58" id="caption2" class="search_name" visible="true" anchor="default"/>
- <Button position="absolute 255 90 311 112" id="button4" class="btn4" text="닫기" anchor="default" onclick="group2_grp_excucdrem_button4_onclick"/>
- <Button position="absolute 195 90 251 112" id="button5" class="btn4" text="적용" anchor="default" onclick="group2_grp_excucdrem_button5_onclick"/>
- <Static text="마감정리" position="absolute 6 7 179 24" id="caption8" class="tit_2" anchor="default"/>
- <Calendar position="absolute 105 40 205 59" id="input1" class="input_search" mask="yyyy-mm-dd" anchor="default"/>
- </Layout>
- </Layouts>
- </Div>
- <Grid position="absolute 1050 79 1194 724" id="datagrid2" binddataset="ds_main_dyemagamlist_item" anchor="top right bottom" cellsizingtype="both" selecttype="multirow">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25" band="left"/>
- <Column size="68"/>
- <Column size="33"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1" text="마감일자"/>
- <Cell col="2" text="마감"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" text="expr:currow+1"/>
- <Cell col="1" displaytype="date" text="bind:iodd"/>
- <Cell col="2" text="bind:magamflag"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static text="월별 검사실 마감여부" position="absolute 1049 58 1197 75" id="caption3" class="tit_2" anchor="top right"/>
- <Shape id="line00" class="line_1" position="absolute 0 74 1045 80" anchor="left top right"/>
- <Shape id="line01" class="line_1" position="absolute 0 75 1045 81" anchor="left top right"/>
- <Shape id="line02" class="line_1" position="absolute 1050 73 1194 79" anchor="top right"/>
- <Shape id="line03" class="line_1" position="absolute 1050 74 1194 80" anchor="top right"/>
- <Shape id="line04" class="line_1" position="absolute 1050 75 1194 81" anchor="top right"/>
- <Shape id="line05" class="line_1" position="absolute 0 530 1045 536" anchor="left right bottom"/>
- <Shape id="line06" class="line_1" position="absolute 0 531 1045 537" anchor="left right bottom"/>
- <Shape id="line08" class="line_1" position="absolute 0 532 1045 538" anchor="left right bottom"/>
- <Button id="btn_save" taborder="1" text="일마감" class="btn4" position="absolute 917 52 985 74" onclick="group2_btn_save_onclick" anchor="top right"/>
- <Button id="btn_del" taborder="2" text="수정" class="btn4" position="absolute 988 52 1044 74" onclick="group2_btn_del_onclick" anchor="top right"/>
- <Button position="absolute 834 52 914 74" id="btn_excsave" class="btn7" text="엑셀저장" anchor="top right" onclick="group2_btn_excsave_onclick"/>
- <Button id="button6" taborder="3" text="마감정리" class="btn4" position="absolute 965 509 1045 531" onclick="group2_button6_onclick" anchor="right bottom"/>
- <CheckBox id="chk_notzero" taborder="4" text="일소모가 없으면 제외" value="false" position="absolute 624 51 785 70"/>
- </Layout>
- </Layouts>
- </Div>
- <Div position="absolute 0 745 1195 770" id="grp_btn" anchor="left right bottom">
- <Layouts>
- <Layout>
- <Button position="absolute 0 0 56 22" id="button2" class="btn6" text="출력" anchor="default" onclick="grp_btn_button2_onclick"/>
- </Layout>
- </Layouts>
- </Div>
- <Static id="caption6" text="조영제/재료 소모재고일지" class="tit_1" position="absolute 0 0 200 25"/>
- <Div id="group4" taborder="1" class="div_SA" position="absolute 0 25 1194 65" anchor="left top right">
- <Layouts>
- <Layout>
- <Static id="caption19" text="입출고 일자 :" class="search_name" position="absolute 10 13 115 30" anchor="default"/>
- <Calendar id="ipt_iodd" taborder="2" class="input_search" position="absolute 104 11 204 30" mask="yyyy-mm-dd" anchor="default"/>
- <Shape id="line6" linetype="vertical" class="line_4" position="absolute 1113 10 1119 32" anchor="top right"/>
- <Static id="caption20" text="검사실 :" class="search_name" position="absolute 238 13 321 30" anchor="default"/>
- <Button id="button3" taborder="3" text="조회" class="btn1" position="absolute 1129 10 1185 32" anchor="top right" onclick="group4_button3_onclick"/>
- <Combo id="cmb_sectcd" taborder="4" innerdataset="@ds_cmb_info_initexcuroomgrp2" codecolumn="excuroomgrpcdid" datacolumn="excuroomgrpcdnm" position="absolute 302 11 489 30" anchor="default"/>
- <Static id="caption21" text="조영제/재료코드 :" class="search_name" visible="false" position="absolute 731 13 858 30" anchor="default"/>
- <Combo id="cmb_goodcd" taborder="5" innerdataset="@ds_temp_goodlist_item" codecolumn="goodcd" datacolumn="goodnm" visible="false" position="absolute 855 12 1103 31" anchor="default"/>
- <Radio id="Radio00" taborder="6" columncount="3" rowcount="0" position="absolute 534 8 710 32" codecolumn="codecolumn" datacolumn="datacolumn" value="C" index="0" onitemchanged="group4_Radio00_onitemchanged">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn" size="256"/>
- <Column id="datacolumn" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">A</Col>
- <Col id="datacolumn">전체</Col>
- </Row>
- <Row>
- <Col id="codecolumn">C</Col>
- <Col id="datacolumn">조영제</Col>
- </Row>
- <Row>
- <Col id="codecolumn">M</Col>
- <Col id="datacolumn">재료</Col>
- </Row>
- </Rows>
- </Dataset>
- </Radio>
- </Layout>
- </Layouts>
- </Div>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_main_mainlist_uselist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="goodcd" type="STRING" size="256"/>
- <Column id="goodnm" type="STRING" size="256"/>
- <Column id="iodd" type="STRING" size="256"/>
- <Column id="qty" type="STRING" size="256"/>
- <Column id="usernm" type="STRING" size="256"/>
- <Column id="ioflag" type="STRING" size="256"/>
- <Column id="sectcd" type="STRING" size="256"/>
- <Column id="suppdeptcd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="goodcd"/>
- <Col id="goodnm"/>
- <Col id="iodd"/>
- <Col id="qty"/>
- <Col id="usernm"/>
- <Col id="ioflag"/>
- <Col id="sectcd"/>
- <Col id="suppdeptcd"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_mainlist_wlnlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="goodcd" type="STRING" size="256"/>
- <Column id="goodnm" type="STRING" size="256"/>
- <Column id="iodd" type="STRING" size="256"/>
- <Column id="qty" type="STRING" size="256"/>
- <Column id="usernm" type="STRING" size="256"/>
- <Column id="ioflag" type="STRING" size="256"/>
- <Column id="sectcd" type="STRING" size="256"/>
- <Column id="suppdeptcd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="goodcd"/>
- <Col id="goodnm"/>
- <Col id="iodd"/>
- <Col id="qty"/>
- <Col id="usernm"/>
- <Col id="ioflag"/>
- <Col id="sectcd"/>
- <Col id="suppdeptcd"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_goodlist_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="goodcd" type="STRING" size="256"/>
- <Column id="goodnm" type="STRING" size="256"/>
- <Column id="speccd" type="STRING" size="256"/>
- <Column id="safestocqty" type="STRING" size="256"/>
- <Column id="exstocqty" type="STRING" size="256"/>
- <Column id="wlnqty" type="STRING" size="256"/>
- <Column id="sumqty" type="STRING" size="256"/>
- <Column id="useqty" type="STRING" size="256"/>
- <Column id="stocqty" type="STRING" size="256"/>
- <Column id="reqqty" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="goodcd"/>
- <Col id="goodnm"/>
- <Col id="speccd"/>
- <Col id="safestocqty"/>
- <Col id="exstocqty"/>
- <Col id="wlnqty"/>
- <Col id="sumqty"/>
- <Col id="useqty"/>
- <Col id="stocqty"/>
- <Col id="reqqty"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_dyestoclist_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_dyestoclist_item_oncolumnchanged">
- <ColumnInfo>
- <Column id="goodcd" type="STRING" size="256"/>
- <Column id="instcd" type="STRING" size="256"/>
- <Column id="agojego" type="STRING" size="256"/>
- <Column id="receive" type="STRING" size="256"/>
- <Column id="totsu" type="STRING" size="256"/>
- <Column id="outgo" type="STRING" size="256"/>
- <Column id="dayused" type="STRING" size="256"/>
- <Column id="presentcnt" type="STRING" size="256"/>
- <Column id="rem" type="STRING" size="256"/>
- <Column id="srchflag" type="STRING" size="256"/>
- <Column id="magamflag" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="goodcd"/>
- <Col id="instcd"/>
- <Col id="agojego"/>
- <Col id="receive"/>
- <Col id="totsu"/>
- <Col id="outgo"/>
- <Col id="dayused"/>
- <Col id="presentcnt"/>
- <Col id="rem"/>
- <Col id="srchflag"/>
- <Col id="magamflag"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_goodinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_main_dyecdpamlist_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="pid" type="STRING" size="256"/>
- <Column id="hngnm" type="STRING" size="256"/>
- <Column id="excuexectodd" type="STRING" size="256"/>
- <Column id="basecdflagdesc" type="STRING" size="256"/>
- <Column id="calcscorcd" type="STRING" size="256"/>
- <Column id="excucdnm" type="STRING" size="256"/>
- <Column id="goodcd" type="STRING" size="256"/>
- <Column id="goodnm" type="STRING" size="256"/>
- <Column id="drugqty" type="STRING" size="256"/>
- <Column id="speccd" type="STRING" size="256"/>
- <Column id="prcpdd" type="STRING" size="256"/>
- <Column id="instcd" type="STRING" size="256"/>
- <Column id="excuroomcd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="pid"/>
- <Col id="hngnm"/>
- <Col id="excuexectodd"/>
- <Col id="basecdflagdesc"/>
- <Col id="calcscorcd"/>
- <Col id="excucdnm"/>
- <Col id="goodcd"/>
- <Col id="goodnm"/>
- <Col id="drugqty"/>
- <Col id="speccd"/>
- <Col id="prcpdd"/>
- <Col id="instcd"/>
- <Col id="excuroomcd"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_dyemagamlist_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="iodd" type="STRING" size="256"/>
- <Column id="magamflag" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="iodd"/>
- <Col id="magamflag"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="srchiodd" type="STRING" size="256"/>
- <Column id="srchsectcd" type="STRING" size="256"/>
- <Column id="srchgoodcd" type="STRING" size="256"/>
- <Column id="srchgoodnm" type="STRING" size="256"/>
- <Column id="sectcd" type="STRING" size="256"/>
- <Column id="srchdd" type="STRING" size="256"/>
- <Column id="sdate" type="STRING" size="256"/>
- <Column id="edate" type="STRING" size="256"/>
- <Column id="itemcd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="srchiodd"/>
- <Col id="srchsectcd"/>
- <Col id="srchgoodcd"/>
- <Col id="srchgoodnm"/>
- <Col id="sectcd"/>
- <Col id="srchdd"/>
- <Col id="sdate"/>
- <Col id="edate"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_send_data" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="iptflag" type="STRING" size="256"/>
- <Column id="goodcd" type="STRING" size="256"/>
- <Column id="sectcd" type="STRING" size="256"/>
- <Column id="qty" type="STRING" size="256"/>
- <Column id="ioflag" type="STRING" size="256"/>
- <Column id="iodd" type="STRING" size="256"/>
- <Column id="suppdeptcd" type="STRING" size="256"/>
- <Column id="mainflag" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="iptflag"/>
- <Col id="goodcd"/>
- <Col id="sectcd"/>
- <Col id="qty"/>
- <Col id="ioflag"/>
- <Col id="iodd"/>
- <Col id="suppdeptcd"/>
- <Col id="mainflag"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_send_req_data1" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_cmb_info_initexcuroomgrp2" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="excuroomgrpcdid" type="STRING" size="256"/>
- <Column id="excuroomgrpcdnm" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_cmb_info_goodlist_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_temp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="goodcd" type="STRING" size="256"/>
- <Column id="goodnm" type="STRING" size="256"/>
- <Column id="speccd" type="STRING" size="256"/>
- <Column id="safestocqty" type="STRING" size="256"/>
- <Column id="inswlniodd" type="STRING" size="256"/>
- <Column id="inswlngoodcd" type="STRING" size="256"/>
- <Column id="inswlnqty" type="STRING" size="256"/>
- <Column id="setwlniodd" type="STRING" size="256"/>
- <Column id="setwlngoodcd" type="STRING" size="256"/>
- <Column id="setwlnqty" type="STRING" size="256"/>
- <Column id="insuseiodd" type="STRING" size="256"/>
- <Column id="insusegoodcd" type="STRING" size="256"/>
- <Column id="insuseqty" type="STRING" size="256"/>
- <Column id="setuseiodd" type="STRING" size="256"/>
- <Column id="setusegoodcd" type="STRING" size="256"/>
- <Column id="setuseqty" type="STRING" size="256"/>
- <Column id="count" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="goodcd"/>
- <Col id="goodnm"/>
- <Col id="speccd"/>
- <Col id="safestocqty"/>
- <Col id="inswlniodd"/>
- <Col id="inswlngoodcd"/>
- <Col id="inswlnqty"/>
- <Col id="setwlniodd"/>
- <Col id="setwlngoodcd"/>
- <Col id="setwlnqty"/>
- <Col id="insuseiodd"/>
- <Col id="insusegoodcd"/>
- <Col id="insuseqty"/>
- <Col id="setuseiodd"/>
- <Col id="setusegoodcd"/>
- <Col id="setuseqty"/>
- <Col id="count"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_rexprnt_dyestoclist_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_temp_goodlist_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="goodcd" type="STRING" size="256"/>
- <Column id="goodnm" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_rexprnt_dyestoclist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="srchiodd" type="STRING" size="256"/>
- <Column id="srchsectcd" type="STRING" size="256"/>
- <Column id="srchexcuroomgrp" type="STRING" size="256"/>
- <Column id="srchsudept" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="srchiodd"/>
- <Col id="srchsectcd"/>
- <Col id="srchexcuroomgrp"/>
- <Col id="srchsudept"/>
- </Row>
- </Rows>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="group4.cmb_goodcd" propid="text" datasetid="ds_send" columnid="srchgoodcd"/>
- <BindItem id="item2" compid="group4.ipt_iodd" propid="text" datasetid="ds_send" columnid=""/>
- <BindItem id="item3" compid="group4.ipt_iodd" propid="value" datasetid="ds_send" columnid="srchiodd"/>
- <BindItem id="item4" compid="group2.grp_excucdrem.input1" propid="value" datasetid="ds_send" columnid="sdate"/>
- <BindItem id="item5" compid="group2.grp_excucdrem.input2" propid="value" datasetid="ds_send" columnid="edate"/>
- <BindItem id="item1" compid="group4.cmb_sectcd" propid="value" datasetid="ds_send" columnid="srchsectcd"/>
- <BindItem id="item6" compid="group4.Radio00" propid="value" datasetid="ds_send" columnid="itemcd"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2016-06-17
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2016-06-17 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- //=======================================================================================
- // Lib Include
- //---------------------------------------------------------------------------------------
- include "com_commonxp::comm_main.xjs"
- include "ast_examcurexp::AEZ0001.xjs"
- //=======================================================================================
- // Global Form Variable
- //---------------------------------------------------------------------------------------
- var arErrorCode = new HashArray();
- var gSuppdeptcd = "";
- //=======================================================================================
- // Function
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Argument : N/A
- * Description : 사용안함
- ****************************************************************************************/
- function getGridData() {
-
- if(ds_send.getColumn(0,"srchiodd") != "") {
-
- model.setValue("/root/temp/goodnm", cmb_goodcd.label);
- model.setValue("/root/temp/inswlnqty", "0");
- model.setValue("/root/temp/setwlnqty", "0");
- model.setValue("/root/temp/insuseqty", "0");
- model.setValue("/root/temp/setuseqty", "0");
-
- model.removeNodeset("/root/main/mainlist");
- model.removeNodeset("/root/main/goodlist/item");
-
- btn_inSave.disabled = true;
- btn_inUpdt.disabled = true;
- btn_outSave.disabled = true;
- btn_outUpdt.disabled = true;
- ipt_inswlnday.disabled = true;
- ipt_insuseday.disabled = true;
-
- submit("TRAEB03401");
-
- model.setValue("/root/send/srchiodd", getCurrentDate());
-
- var srchgoodcd = ds_send.getColumn(0,"srchgoodcd");
-
- if (srchgoodcd != "") {
- btn_inSave.disabled = false;
- btn_outSave.disabled = false;
- ipt_inswlnday.disabled = false;
- ipt_insuseday.disabled = false;
- }
-
- // if(model.getXPathValue("count(/root/main/mainlist/wlnlist)") > 0)
- // {
- // btn_inSave.disabled = true;
- // ipt_inswlnqty.disabled = true;
- // btn_inUpdt.disabled = false;
- // ipt_setwlnqty.disabled = false;
- // }
- // else
- // {
- // btn_inUpdt.disabled = true;
- // ipt_setwlnqty.disabled = true;
- // btn_inSave.disabled = false;
- // ipt_inswlnqty.disabled = false;
- // }
- //
- // if(model.getXPathValue("count(/root/main/mainlist/uselist)") > 0)
- // {
- // btn_outSave.disabled = true;
- // ipt_insuseqty.disabled = true;
- // btn_outUpdt.disabled = false;
- // ipt_setuseqty.disabled = false;
- // }
- // else
- // {
- // btn_outUpdt.disabled = true;
- // ipt_setuseqty.disabled = true;
- // btn_outSave.disabled = false;
- // ipt_insuseqty.disabled = false;
- // }
-
- model.refresh();
- }
- else
- {
- messageBox("날짜를", "C001");
- }
-
- }
- /****************************************************************************************
- * Argument : N/A
- * Description : 입출고현황 조회
- ****************************************************************************************/
- function getDyeList() {
- if( utlf_isNull(ds_send.getColumn(0,"srchiodd")) ){
- sysf_messageBox("입고일자를", "I007");
- return;
- }
-
- if( utlf_isNull(ds_send.getColumn(0,"srchsectcd")) ){
- sysf_messageBox("검사실을", "I007");
- return;
- }
-
- //2011.07.12 추가처방시 심사실에서 직접입력한경우도 같이 포함해서 조회되게 수정 - 박재영
- if(ds_send.getColumn(0,"srchsectcd") == "MCC011"){
- ds_send_data.setColumn(0,"mainflag", "Y");
- }else{
- ds_send_data.setColumn(0,"mainflag", "");
- }
-
- // 2011.02.07 c y w 조회시 환자정보리스트 클리어
- ds_main_dyecdpamlist_item.clearData();
- ds_main_dyestoclist_item.clearData();
- // var row = ds_main_dyestoclist_item.rowposition;
- dsf_createDsRow("ds_req", [
- {col:"srchiodd", type:"STRING", size:256, val:ds_send.getColumn(0,"srchiodd")}
- , {col:"suppdeptcd", type:"STRING", size:256, val:gSuppdeptcd}
- , {col:"srchsectcd", type:"STRING", size:256, val:ds_send.getColumn(0,"srchsectcd")}
- , {col:"mainflag", type:"STRING", size:256, val:ds_send_data.getColumn(0,"mainflag")}
- , {col:"itemcd", type:"STRING", size:256, val:ds_send.getColumn(0,"itemcd")}
- ]);
- var oParam = {};
- oParam.id = "TRAEB03402";
- oParam.service = "examcurebaseapp.DyeCode";
- oParam.method = "reqGetDyeStocMngtList";
- oParam.inds = "req=ds_req";
- oParam.outds = "ds_main_dyestoclist_item=item";
- oParam.async = false;
- oParam.callback = "cf_TRAEB03402";
- tranf_submit(oParam);
-
- //sysf_messageBox("0 =" + group2.chk_notzero.value);
- if (group2.chk_notzero.value == true ) {
- ds_main_dyestoclist_item.filter("dayused != '0'");
- } else {
- ds_main_dyestoclist_item.filter("");
- }
-
-
- if(arErrorCode.pop("TRAEB03402") > -1) {
- if( ds_main_dyestoclist_item.getColumn(0,"srchflag") == "1" ){ // 재고테이블에 데이터가 있을 경우
- if( ds_main_dyestoclist_item.getColumn(0,"magamflag") == "S" ){ // 마감여부가 S일 경우
- group2.btn_save.visible = true;
- group2.btn_del.visible = true;
- group2.btn_disone.visible = false;
- group2.btn_dissu.visible = false;
- }else{ // 마감했을경우 버튼 비활성화.
- group2.btn_save.visible = false;
- group2.btn_del.visible = false;
- group2.btn_disone.visible = true;
- group2.btn_dissu.visible = true;
- }
- }else if( ds_main_dyestoclist_item.getColumn(0,"srchflag") == "2" ){ // 데이터가 없을경우 활성화.
- //20200204
- if (group4.Radio00.value == "A" ) {
- group2.btn_save.visible = true;
- } else {
- group2.btn_save.visible = false;
- }
- group2.btn_del.visible = false;
- group2.btn_dissu.visible = true;
-
- ds_main_dyestoclist_item.updatecontrol = false;
- if( ds_main_dyestoclist_item.getColumn(0,"magamflag") == "D" ){
- for(var a = 0 ; a < ds_main_dyestoclist_item.rowcount ; a++ ){
- ds_main_dyestoclist_item.setRowType(a,Dataset.ROWTYPE_UPDATE);
- }
- }else{sysf_trace(ds_main_dyestoclist_item.rowcount);
- for(var a = 0 ; a < ds_main_dyestoclist_item.rowcount ; a++ ){
- ds_main_dyestoclist_item.setRowType(a,Dataset.ROWTYPE_INSERT);
- }
- }
- ds_main_dyestoclist_item.updatecontrol = true;
- }else{ //1 , 2 아니고 null일 경우 비활성화.
- group2.btn_save.visible = false;
- group2.btn_del.visible = false;
- group2.btn_disone.visible = true;
- group2.btn_dissu.visible = true;
- }
- //2011.07.19 조영제 조영제 월별 마감일자,마감여부
- dsf_createDsRow("ds_req", [
- {col:"srchiodd", type:"STRING", size:256, val:ds_send.getColumn(0,"srchiodd")}
- , {col:"suppdeptcd", type:"STRING", size:256, val:gSuppdeptcd}
- , {col:"srchsectcd", type:"STRING", size:256, val:ds_send.getColumn(0,"srchsectcd")}
- ]);
- var oParam = {};
- oParam.id = "TRAEB03405";
- oParam.service = "examcurebaseapp.DyeCode";
- oParam.method = "reqGetDyeMagamLst";
- oParam.inds = "req=ds_req";
- oParam.outds = "ds_main_dyemagamlist_item=item";
- oParam.async = true;
- //oParam.callback = "cf_TRAEB03405";
- tranf_submit(oParam);
- }
- }
- function cf_TRAEB03402(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- /****************************************************************************************
- * Argument : oTrgtGrid - 그리드ID
- * : nColumnIndx - Col Index
- * Description : 그리드 바인딩 Cell Name
- ****************************************************************************************/
- function lf_getBindCellName(oTrgtGrid, nColumnIndx){
- var sRtnText = "";
- var sTrgtText = oTrgtGrid.getCellProperty("body", nColumnIndx, "text");
- if(!utlf_isNull( sTrgtText)){
- sRtnText = sTrgtText.replace("bind:", "");
- }
-
- return sRtnText;
- }
- //=======================================================================================
- // Event
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Components : Form
- * Components ID : SMAEB03401
- * Event : oninit
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 처음 초기화시 폼초기화
- ****************************************************************************************/
- function SMAEB03401_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj); // 폼 초기화
- }
- /****************************************************************************************
- * Components : Form
-
- * Components ID : SMAEB03401
- * Event : onload
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 처음 초기화시 폼초기화
- ****************************************************************************************/
- function SMAEB03401_onload(obj:Form, e:LoadEventInfo)
- {
- lf_aezfSetSuppDeptcd(); //AEZ0001.xjs
- gSuppdeptcd = frmf_getParameter("AST_DEPTCD");
-
-
- //20161207 메뉴에서 파라메터 가져오기
- var gvMenuParam = frmf_getMenuParam();
- //alert(gvMenuParam);
- if ( !utlf_isNull(gvMenuParam) && gvMenuParam != "null" ) {
- gSuppdeptcd = gvMenuParam ;
- }
-
- trace("gSuppdeptcd = " + gSuppdeptcd);
-
- grdf_setRowTypeIcon(group2.grd_dyelist, 0); // 그리드 상태 표시
- ds_send.setColumn(0,"srchiodd" , utlf_getCurrentDate());
- ds_send.setColumn(0,"edate" , utlf_getCurrentDate());
-
- if (gSuppdeptcd == "2220000000") {
- ds_send.setColumn(0,"itemcd" , 'A' );
- group2.chk_notzero.value = true;
- } else {
- ds_send.setColumn(0,"itemcd" , 'C' );
- }
-
- ds_main_mainlist_uselist.clearData();
- ds_main_mainlist_wlnlist.clearData();
-
- dsf_createDsRow("ds_reqparam", [
- {col:"basesuppdeptcd", type:"STRING", size:256, val:gSuppdeptcd}
- , {col:"rbasecdflag", type:"STRING", size:256, val:"R"}
- , {col:"ebasecdflag", type:"STRING", size:256, val:"E"}
- , {col:"instcd", type:"STRING", size:256, val:""}
- , {col:"initflag", type:"STRING", size:256, val:"1"}
- , {col:"alladdyn", type:"STRING", size:256, val:""}
- ]);
- var oParam = {};
- oParam.id = "TRAEA01301";
- oParam.service = "examcureacptexecapp.ExamCureAcpt";
- oParam.method = "reqGetInitExamCureRoomGrpCodeList";
- oParam.inds = "reqparam=ds_reqparam";
- oParam.outds = "ds_cmb_info_initexcuroomgrp2=initexcuroomgrp2";
- oParam.async = false;
- oParam.callback = "cf_TRAEA01301";
- tranf_submit(oParam);
-
- ds_cmb_info_initexcuroomgrp2.deleteRow(0);
- ds_cmb_info_initexcuroomgrp2.rowposition = 0;
- dsf_createDsRow("ds_req", [
- {col:"basesuppdeptcd", type:"STRING", size:256, val:gSuppdeptcd}
- , {col:"srchgoodcd", type:"STRING", size:256, val:ds_send.getColumn(0,"srchgoodcd")}
- , {col:"srchgoodnm", type:"STRING", size:256, val:ds_send.getColumn(0,"srchgoodnm")}
- ]);
- var oParam = {};
- oParam.id = "TRAEB03501";
- oParam.service = "examcurebaseapp.DyeCode";
- oParam.method = "reqGetDyeCodeList";
- oParam.inds = "req=ds_req";
- oParam.outds = "ds_main_goodinfo=item";
- oParam.async = false;
- //oParam.callback = "cf_TRAEB03501";
- tranf_submit(oParam);
-
- group4.cmb_sectcd.index = 0;
-
- //20200204
- if (group4.Radio00.value == "A" ) {
- group2.btn_save.visible = true;
- } else {
- group2.btn_save.visible = false;
- }
-
-
- group2.btn_del.visible = false;
- group2.btn_disone.visible = true;
- group2.btn_dissu.visible = true;
- }
- function cf_TRAEA01301(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
- ds_cmb_info_initexcuroomgrp2.updateColID("basecdcnts","excuroomgrpcdid");
- ds_cmb_info_initexcuroomgrp2.updateColID("basecdcnts2","excuroomgrpcdnm");
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : group4.button3
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 조회
- ****************************************************************************************/
- function group4_button3_onclick(obj:Button, e:ClickEventInfo)
- {
- getDyeList();
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : group2.btn_excsave
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 엑셀저장
- ****************************************************************************************/
- function group2_btn_excsave_onclick(obj:Button, e:ClickEventInfo)
- {
- if( ds_main_dyestoclist_item.rowcount > 0 ){
- grdf_exportExcel(group2.grd_dyelist, "입출고현황", "입출고현황", false, "", "user", false);
- } else {
- sysf_messageBox("조회된 데이터가 ", "I004");
- }
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : group2.btn_save
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 일마감
- ****************************************************************************************/
- function group2_btn_save_onclick(obj:Button, e:ClickEventInfo)
- {
- if (ds_send.getColumn(0,"itemcd") <> 'A') {
- sysf_messageBox("일마감은 전체조회에서만 가능합니다 ", "");
- return;
- }
-
- var cnt = ds_main_dyestoclist_item.rowcount;
- if( cnt > 0 ) {
- if( utlf_isNull(ds_send.getColumn(0,"srchiodd")) ){
- sysf_messageBox("입고일자를", "I007");
- } else {
- if( sysf_messageBox("조영제 재고정보를","Q002")==6 ) {
- var dsUpdate = grdf_getGridUpdateData(group2.grd_dyelist, "all");
- grdf_setStatusColumn(dsUpdate, "m");
- ds_send_req_data1.copyData(dsUpdate, true);
-
- var oParam = {};
- oParam.id = "TXAEB03402";
- oParam.service = "examcurebaseapp.DyeCode";
- oParam.method = "reqSetDyeUpList";
- oParam.inds = "req=ds_send_req_data1";
- oParam.outds = "ds_temp=item";
- oParam.async = false;
- //oParam.callback = "cf_TXAEB03402";
- tranf_submit(oParam);
-
- getDyeList();
- }
- }
- }else{
- sysf_messageBox("저장할 입고정보가", "I004");
- }
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : group2.btn_del
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 수정
- ****************************************************************************************/
- function group2_btn_del_onclick(obj:Button, e:ClickEventInfo)
- {
- var cnt = ds_main_dyestoclist_item.rowcount;
- if( cnt > 0 ) {
- if( utlf_isNull(ds_send.getColumn(0,"srchiodd")) ){
- sysf_messageBox("입고일자를", "I007");
- }else{
- if ( sysf_messageBox("조영제 재고정보를","Q001")==6 ) {
- dsf_createDsRow("ds_req", [
- {col:"srchiodd", type:"STRING", size:256, val:ds_send.getColumn(0,"srchiodd")}
- , {col:"suppdeptcd", type:"STRING", size:256, val:gSuppdeptcd}
- , {col:"srchsectcd", type:"STRING", size:256, val:ds_send.getColumn(0,"srchsectcd")}
- ]);
-
- var oParam = {};
- oParam.id = "TXAEB03404";
- oParam.service = "examcurebaseapp.DyeCode";
- oParam.method = "reqSetDyeStocDelUpdt";
- oParam.inds = "req=ds_req";
- oParam.outds = "ds_temp=item";
- oParam.async = false;
- oParam.callback = "cf_TXAEB03404";
- tranf_submit(oParam);
-
- if( arErrorCode.pop("TXAEB03404") > -1 ){
- ds_main_dyestoclist_item.clearData();
- }else{
- getDyeList();
- }
- }
- }
- } else {
- sysf_messageBox("삭제할 입고정보가", "I004");
- }
- }
- function cf_TXAEB03404(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- /****************************************************************************************
- * Components : Grid
- * Components ID : group2.grd_dyelist
- * Event : onkillfocus
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 그리드 미선택시?
- ****************************************************************************************/
- function group2_grd_dyelist_onkillfocus(obj:Grid, e:KillFocusEventInfo)
- {
- // if( ds_main_dyestoclist_item.rowposition > -1 ){
- // if( !utlf_isNull(ds_main_dyestoclist_item.getColumn(0,"goodcd")) ) {
- // var colidx = group2.grd_dyelist.currentcol;
- // var row = ds_main_dyestoclist_item.rowposition;
- // alert("1");
- // // 수령
- // if(lf_getBindCellName(group2.grd_dyelist,colidx) == "receive") {
- // var totsu = 0;
- // totsu = parseFloat(ds_main_dyestoclist_item.getColumn(row,"agojego"))+parseFloat( ds_main_dyestoclist_item.getColumn(row,"receive"));
- // ds_main_dyestoclist_item.setColumn(row,"totsu" , totsu );
- // }
- // // 전일재고수령
- // if(lf_getBindCellName(group2.grd_dyelist,colidx) == "agojego") {
- // var totsu = 0;
- // totsu = parseFloat(ds_main_dyestoclist_item.getColumn(row,"agojego"))+parseFloat( ds_main_dyestoclist_item.getColumn(row,"receive"));
- // ds_main_dyestoclist_item.setColumn(row,"totsu" , totsu );
- // }
- //
- // var presentcnt = 0;
- // presentcnt = parseFloat( ds_main_dyestoclist_item.getColumn(row,"totsu")) - parseFloat(ds_main_dyestoclist_item.getColumn(row,"outgo")) - parseFloat( ds_main_dyestoclist_item.getColumn(row,"dayused"))
- // ds_main_dyestoclist_item.setColumn(row,"presentcnt" , presentcnt );
- // }
- // }
- }
- /****************************************************************************************
- * Components : Grid
- * Components ID : group2.grd_dyelist
- * Event : oncelldblclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 그리드 더블클릭시
- ****************************************************************************************/
- function group2_grd_dyelist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
- {
- var colidx = group2.grd_dyelist.currentcol;
- if( e.row > -1 ) {
- if(lf_getBindCellName(group2.grd_dyelist,colidx) == "goodcd") {
- ds_send_data.setColumn(0,"sectcd" , ds_send.getColumn(0,"srchsectcd"));
- ds_send_data.setColumn(0,"goodcd" , ds_main_dyestoclist_item.getColumn(e.row,"goodcd"));
- ds_send_data.setColumn(0,"suppdeptcd" , gSuppdeptcd);
- ds_send_data.setColumn(0,"iodd" , ds_send.getColumn(0,"srchiodd"));
- //2011.07.12 추가처방시 심사실에서 직접입력한경우도 같이 포함해서 조회되게 수정 - 박재영
- if(ds_send.getColumn(0,"srchsectcd") == "MCC011"){
- ds_send_data.setColumn(0,"mainflag", "Y");
- }else{
- ds_send_data.setColumn(0,"mainflag", "");
- }
- // 2011.02.07 c y w 조회시 환자정보리스트 클리어
- ds_main_dyecdpamlist_item.clearData();
- var oParam = {};
- oParam.id = "TRAEB03403";
- oParam.service = "examcurebaseapp.DyeCode";
- oParam.method = "reqGetDyeCodePamLst";
- oParam.inds = "req=ds_send_data";
- oParam.outds = "ds_main_dyecdpamlist_item=item";
- oParam.async = true;
- //oParam.callback = "cf_TRAEB03403";
- tranf_submit(oParam);
- }
- }
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : group2.button6
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 마감정리
- ****************************************************************************************/
- function group2_button6_onclick(obj:Button, e:ClickEventInfo)
- {
- group2.grp_excucdrem.visible = true;
- ds_send.setColumn(0,"sdate", ds_send.getColumn(0,"srchiodd"));
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : group2.grp_excucdrem.button5
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 적용
- ****************************************************************************************/
- function group2_grp_excucdrem_button5_onclick(obj:Button, e:ClickEventInfo)
- {
- if( sysf_messageBox("조영제 마감정리를","Q002")==6 ) {
- dsf_createDsRow("ds_req", [
- {col:"sdate", type:"STRING", size:256, val:ds_send.getColumn(0,"sdate")}
- , {col:"edate", type:"STRING", size:256, val:ds_send.getColumn(0,"edate")}
- , {col:"srchsectcd", type:"STRING", size:256, val:ds_send.getColumn(0,"srchsectcd")}
- , {col:"suppdeptcd", type:"STRING", size:256, val:gSuppdeptcd}
- ]);
- var oParam = {};
- oParam.id = "TXAEB03405";
- oParam.service = "examcurebaseapp.DyeCode";
- oParam.method = "reqSetDyeStocproc";
- oParam.inds = "req=ds_req";
- oParam.outds = "ds_temp=item";
- oParam.async = true;
- //oParam.callback = "cf_TXAEB03405";
- tranf_submit(oParam);
- }
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : group2.grp_excucdrem.button4
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 닫기
- ****************************************************************************************/
- function group2_grp_excucdrem_button4_onclick(obj:Button, e:ClickEventInfo)
- {
- group2.grp_excucdrem.visible = false;
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : grp_btn.button2
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 출력
- ****************************************************************************************/
- function grp_btn_button2_onclick(obj:Button, e:ClickEventInfo)
- {
- dsf_copyColInfo(ds_rexprnt_dyestoclist_item,ds_main_dyestoclist_item);
- var cnt = ds_main_dyestoclist_item.rowcount;
- for( var i = 0; i < cnt; i++ ){
- var nRow = ds_rexprnt_dyestoclist_item.addRow();
- ds_rexprnt_dyestoclist_item.copyRow(nRow,ds_main_dyestoclist_item,i);
- ds_rexprnt_dyestoclist_item.setColumn(nRow,"goodcd",group2.grd_dyelist.getCellText(i,2));
- dsf_makeValue(ds_rexprnt_dyestoclist_item,"goodcdd","string",ds_main_dyestoclist_item.getColumn(i,"goodcd"),nRow);
- }
-
- ds_rexprnt_dyestoclist.setColumn(0,"srchiodd" , group4.ipt_iodd.text );
- ds_rexprnt_dyestoclist.setColumn(0,"srchsectcd" , group4.cmb_sectcd.text );
- ds_rexprnt_dyestoclist.setColumn(0,"srchsudept" , sysf_getUserInfo("dutplcenm") );
- // exeReportPreview("RPAEB03401", "XMLSTR" , "" , "" , "false" , "", "", "", "", "false");
- var objDOM = rptf_createDOM(); // DOM 객체 설정
- var objParam = new Object();
- rptf_setNodeListToDOM(objDOM, "/root/rexprnt/dyestoclist/item" , ds_rexprnt_dyestoclist_item); // 데이터셋 1
- rptf_setNodeListToDOM(objDOM, "/root/rexprnt/dyestocinfo" , ds_rexprnt_dyestoclist); // 데이터셋 2
- objParam.xml_data_XML1 = objDOM.documentElement.source;
- //var option = "open=1;save=1;directprint=1;printdialog=0;print=1;zoom=0";
- var option = "open=1;save=1;directprint=0;print=1;zoom=0";
- rptf_exeReportPreview30(["RPAEB03401"],[objParam], option);
-
- //ds_rexprnt_dyestoclist_item.clear();
- }
- function ds_main_dyestoclist_item_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
- {
- if( e.row > -1 ){
- if( !utlf_isNull(obj.getColumn(0,"goodcd")) ) {
- // var colidx = e.col;
- var row = e.row;
- // 수령
- if(e.columnid == "receive") {
- var totsu = 0;
- totsu = parseFloat(obj.getColumn(row,"agojego"))+parseFloat( obj.getColumn(row,"receive"));
- obj.setColumn(row,"totsu" , totsu );
- }
- // 전일재고수령
- if(e.columnid == "agojego") {
- var totsu = 0;
- totsu = parseFloat(obj.getColumn(row,"agojego"))+parseFloat( obj.getColumn(row,"receive"));
- obj.setColumn(row,"totsu" , totsu );
- }
- var presentcnt = 0;
- presentcnt = parseFloat( obj.getColumn(row,"totsu")) - parseFloat(obj.getColumn(row,"outgo")) - parseFloat( obj.getColumn(row,"dayused"))
- obj.setColumn(row,"presentcnt" , presentcnt );
- }
- }
- }
- function group4_Radio00_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
- {
- //20200204
- if (group4.Radio00.value == "A" ) {
- group2.btn_save.visible = true;
- } else {
- group2.btn_save.visible = false;
- }
- }
- ]]></Script>
- </Form>
- </FDL>
|