12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMLPP00600" position="absolute 0 0 1197 794" titletext="검체폐기대장" oninit="SMLPP00600_oninit" onload="SMLPP00600_onload">
- <Layouts>
- <Layout>
- <Static id="caption6" text="폐기물현황" class="tit_1" position="absolute 0 0 112 25"/>
- <Button id="button13" taborder="1" text="EXCEL저장" class="btn7" position="absolute 0 26 92 48" onclick="button13_onclick"/>
- <Button id="btn_save" taborder="2" text="저장" class="btn4" position="absolute 1138 19 1194 41" onclick="btn_save_onclick" anchor="top right"/>
- <Button id="btn_cncl" taborder="3" text="취소" class="btn4" visible="false" position="absolute 1080 19 1136 41" onclick="btn_cncl_onclick" anchor="top right"/>
- <Div id="Div2" taborder="4" position="absolute 2 60 1194 95"/>
- <Static id="caption4" text="폐기(액상)목록" class="tit_2" position="absolute 2 100 114 116"/>
- <Shape id="line1" linetype="horizontal" class="line_1" position="absolute 0 119 565 125" style="strokepen:3 solid #33bbbbff;" anchor="left top"/>
- <Div id="group2" taborder="5" class="div_SA" position="absolute 0 57 1195 92" anchor="left top right">
- <Layouts>
- <Layout>
- <Static id="caption1" text="병리번호 :" class="search_name" position="absolute 15 9 105 26"/>
- <Combo id="cbo_ptnocd" taborder="11" innerdataset="ds_init_cbo_ptnocd" codecolumn="ptnocd" datacolumn="ptnonm" position="absolute 109 8 220 27"/>
- <Edit id="ipt_fromyear" taborder="12" class="text_center" position="absolute 223 8 250 27"/>
- <Edit id="ipt_fromptno" taborder="13" class="text_center" position="absolute 253 8 303 27"/>
- <Static id="caption7" text="~" class="search_no_b" position="absolute 306 8 318 25"/>
- <Edit id="input2" taborder="14" class="text_center" position="absolute 321 8 348 27"/>
- <Edit id="input1" taborder="15" class="text_center" position="absolute 351 8 401 27"/>
- <Static id="caption2" text="조회구분 :" class="search_name" position="absolute 419 9 491 25"/>
- <Combo id="cmb_refflagcd" taborder="16" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 510 8 579 27" onitemchanged="group2_cmb_refflagcd_onitemchanged">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">0</Col>
- <Col id="datacolumn">미폐기</Col>
- </Row>
- <Row>
- <Col id="codecolumn">1</Col>
- <Col id="datacolumn">폐기</Col>
- </Row>
- </Rows>
- </Dataset>
- </Combo>
- <Static id="caption8" text="폐기물구분 :" class="search_name" position="absolute 600 9 699 26" anchor="default"/>
- <Combo id="cmb_abnflagcd" taborder="17" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 701 8 770 27" anchor="default">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">0</Col>
- <Col id="datacolumn">액상</Col>
- </Row>
- <Row>
- <Col id="codecolumn">1</Col>
- <Col id="datacolumn">적출물</Col>
- </Row>
- <Row>
- <Col id="codecolumn">2</Col>
- <Col id="datacolumn">전체</Col>
- </Row>
- </Rows>
- </Dataset>
- </Combo>
- <Static id="cap_refdd" text="접수일자 :" class="search_name" position="absolute 787 10 875 25" anchor="top right"/>
- <Calendar id="ipt_cnclfromdd" taborder="18" class="input_s_essential" position="absolute 876 8 976 27" mask="yyyy-mm-dd" anchor="top right"/>
- <Static id="caption5" text="~" class="search_no_b" position="absolute 979 8 991 25" anchor="top right"/>
- <Calendar id="ipt_cncltodd" taborder="19" class="input_s_essential" position="absolute 995 8 1095 27" mask="yyyy-mm-dd" onkeyup="group2_ipt_cncltodd_onkeyup" anchor="top right"/>
- <Shape id="line13" linetype="vertical" class="line_4" position="absolute 1105 7 1111 29" anchor="top right"/>
- <Button id="btn_sea" taborder="20" text="조회" class="btn1" position="absolute 1123 7 1179 29" onclick="group2_btn_sea_onclick" anchor="top right"/>
- </Layout>
- </Layouts>
- </Div>
- <Grid id="grd_wastelist1" class="datagrid2" taborder="6" binddataset="ds_grd_wastelist1" useinputpanel="false" position="absolute 0 123 565 791" autofittype="col" oncloseup="grd_wastelist1_oncloseup" oncellclick="grd_wastelist1_oncellclick" onsummclick="grd_wastelist1_onsummclick" onheadclick="grd_wastelist1_onheadclick" anchor="left top bottom" cellclickbound="cell">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="22"/>
- <Column size="28"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="119"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="87"/>
- <Column size="66"/>
- <Column size="0"/>
- <Column size="70"/>
- <Column size="0"/>
- <Column size="100"/>
- <Column size="61"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1" displaytype="checkbox" edittype="checkbox" text="선 택"/>
- <Cell col="2" text="기관코드"/>
- <Cell col="3" text="abnflagcd"/>
- <Cell col="4" text="abndg"/>
- <Cell col="5" text="abnseqno"/>
- <Cell col="6" text="wasteflagcd"/>
- <Cell col="7" text="wasteresncd"/>
- <Cell col="8" text="폐기물"/>
- <Cell col="9" text="ptno"/>
- <Cell col="10" text="dispptno"/>
- <Cell col="11" text="spccd"/>
- <Cell col="12" text="spcnm"/>
- <Cell col="13" text="폐기일자"/>
- <Cell col="14" text="폐기시간"/>
- <Cell col="15" text="abnid"/>
- <Cell col="16" text="인계자"/>
- <Cell col="17" text="abncustflagcd"/>
- <Cell col="18" text="폐기업체"/>
- <Cell col="19" text="용량(ℓ)"/>
- </Band>
- <Band id="body">
- <Cell text="expr:currow + 1"/>
- <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:choi"/>
- <Cell col="2" text="bind:instcd"/>
- <Cell col="3" text="bind:abnflagcd"/>
- <Cell col="4" text="bind:abndg"/>
- <Cell col="5" text="bind:abnseqno"/>
- <Cell col="6" text="bind:wasteflagcd"/>
- <Cell col="7" text="bind:wasteresncd"/>
- <Cell col="8" text="bind:wasteresnnm"/>
- <Cell col="9" text="bind:ptno"/>
- <Cell col="10" text="bind:dispptno"/>
- <Cell col="11" text="bind:spccd"/>
- <Cell col="12" text="bind:spcnm"/>
- <Cell col="13" displaytype="date" edittype="date" class="text_center" text="bind:abndd" mask="yyyy-MM-dd"/>
- <Cell col="14" displaytype="date" edittype="date" text="bind:abntm" mask="HH:mm:ss"/>
- <Cell col="15" text="bind:abnid"/>
- <Cell col="16" text="bind:abnnm"/>
- <Cell col="17" text="bind:abncustflagcd"/>
- <Cell col="18" displaytype="combo" edittype="combo" style="align:center;" text="bind:abncustresncd" combodataset="ds_init_cbo_custcd" combocodecol="resncd" combodatacol="resncnts"/>
- <Cell col="19" displaytype="number" edittype="masknumber" style="align:right middle;" class="text_right" text="bind:abnvol" mask="999,999,999"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Grid id="grd_wastelist2" class="datagrid2" taborder="7" binddataset="ds_grd_wastelist2" useinputpanel="false" position="absolute 568 123 1194 791" oncellclick="grd_wastelist2_oncellclick" oncloseup="grd_wastelist2_oncloseup" onheadclick="grd_wastelist2_onheadclick" anchor="all" autofittype="col" cellclickbound="cell">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="27"/>
- <Column size="40"/>
- <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="80"/>
- <Column size="0"/>
- <Column size="112"/>
- <Column size="84"/>
- <Column size="50"/>
- <Column size="0"/>
- <Column size="70"/>
- <Column size="0"/>
- <Column size="90"/>
- <Column size="52"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1" displaytype="checkbox" edittype="checkbox"/>
- <Cell col="2" text="기관코드"/>
- <Cell col="3" text="abnflagcd"/>
- <Cell col="4" text="abndg"/>
- <Cell col="5" text="abnseqno"/>
- <Cell col="6" text="wasteflagcd"/>
- <Cell col="7" text="wasteresncd"/>
- <Cell col="8" text="wasteresnnm"/>
- <Cell col="9" text="ptno"/>
- <Cell col="10" text="병리번호"/>
- <Cell col="11" text="spccd"/>
- <Cell col="12" text="검체"/>
- <Cell col="13" text="폐기일자"/>
- <Cell col="14" text="폐기 시간"/>
- <Cell col="15" text="abnid"/>
- <Cell col="16" text="인계자"/>
- <Cell col="17" text="abncustflagcd"/>
- <Cell col="18" text="폐기업체"/>
- <Cell col="19" text="용량(ℓ)"/>
- </Band>
- <Band id="body">
- <Cell text="expr:currow + 1"/>
- <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:choi"/>
- <Cell col="2" text="bind:instcd"/>
- <Cell col="3" text="bind:abnflagcd"/>
- <Cell col="4" text="bind:abndg"/>
- <Cell col="5" text="bind:abnseqno"/>
- <Cell col="6" text="bind:wasteflagcd"/>
- <Cell col="7" text="bind:wasteresncd"/>
- <Cell col="8" text="bind:wasteresnnm"/>
- <Cell col="9" text="bind:ptno"/>
- <Cell col="10" class="text_center" text="bind:dispptno"/>
- <Cell col="11" text="bind:spccd"/>
- <Cell col="12" style="align:left middle;" text="bind:spcnm"/>
- <Cell col="13" displaytype="date" edittype="date" text="bind:abndd"/>
- <Cell col="14" text="bind:abntm"/>
- <Cell col="15" text="bind:abnid"/>
- <Cell col="16" text="bind:abnnm"/>
- <Cell col="17" text="bind:abncustflagcd"/>
- <Cell col="18" displaytype="combo" edittype="combo" style="align:center middle;" text="bind:abncustresncd" combodataset="ds_init_cbo_custcd" combocodecol="resncd" combodatacol="resncnts"/>
- <Cell col="19" displaytype="number" edittype="masknumber" class="text_right" text="bind:abnvol" mask="999,999,999"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static id="caption3" text="폐기(적출물)목록" class="tit_2" position="absolute 569 101 693 117"/>
- <Shape id="line2" linetype="horizontal" class="line_1" position="absolute 568 119 1194 125" style="strokepen:3 solid #33bbbbff;" anchor="left top right"/>
- <Grid id="grd_savelist" taborder="8" binddataset="ds_grd_savelist" useinputpanel="false" visible="false" position="absolute 200 98 315 144">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell text="선택"/>
- <Cell col="1" text="기관코드"/>
- <Cell col="2" text="abnflagcd"/>
- <Cell col="3" text="abndg"/>
- <Cell col="4" text="abnseqno"/>
- <Cell col="5" text="wasteflagcd"/>
- <Cell col="6" text="wasteresncd"/>
- <Cell col="7" text="폐기물"/>
- <Cell col="8" text="ptno"/>
- <Cell col="9" text="dispptno"/>
- <Cell col="10" text="spccd"/>
- <Cell col="11" text="spcnm"/>
- <Cell col="12" text="폐기일자"/>
- <Cell col="13" text="폐기 시간"/>
- <Cell col="14" text="abnid"/>
- <Cell col="15" text="폐기자"/>
- <Cell col="16" text="abncustflagcd"/>
- <Cell col="17" text="폐기업체"/>
- <Cell col="18" text="용량(ℓ)"/>
- <Cell col="19" text="bizflagcd"/>
- </Band>
- <Band id="body">
- <Cell text="bind:choi" edittype="checkbox" displaytype="checkbox"/>
- <Cell col="1" text="bind:instcd"/>
- <Cell col="2" text="bind:abnflagcd"/>
- <Cell col="3" text="bind:abndg"/>
- <Cell col="4" text="bind:abnseqno"/>
- <Cell col="5" text="bind:wasteflagcd"/>
- <Cell col="6" text="bind:wasteresncd"/>
- <Cell col="7" text="bind:wasteresnnm"/>
- <Cell col="8" text="bind:ptno"/>
- <Cell col="9" text="bind:dispptno"/>
- <Cell col="10" text="bind:spccd"/>
- <Cell col="11" text="bind:spcnm"/>
- <Cell col="12" class="text_center" text="bind:abndd" edittype="date" displaytype="date" mask="yyyy-mm-dd"/>
- <Cell col="13" text="bind:abntm" mask="hh:nn:ss"/>
- <Cell col="14" text="bind:abnid"/>
- <Cell col="15" text="bind:abnnm"/>
- <Cell col="16" text="bind:abncustflagcd"/>
- <Cell col="17" text="bind:abncustresncd" edittype="combo" displaytype="combo"/>
- <Cell col="18" text="bind:abnvol" edittype="text" displaytype="text" mask="#,###"/>
- <Cell col="19" text="bind:bizflagcd"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Grid id="grd_abnlist" taborder="9" binddataset="ds_grd_abnlist" useinputpanel="false" visible="false" position="absolute 370 208 1035 358">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="0"/>
- <Column size="173"/>
- <Column size="50"/>
- <Column size="50"/>
- <Column size="50"/>
- <Column size="50"/>
- <Column size="50"/>
- <Column size="50"/>
- <Column size="50"/>
- <Column size="50"/>
- <Column size="50"/>
- <Column size="50"/>
- <Column size="50"/>
- <Column size="50"/>
- <Column size="50"/>
- <Column size="50"/>
- <Column size="50"/>
- <Column size="50"/>
- <Column size="50"/>
- <Column size="50"/>
- <Column size="50"/>
- <Column size="50"/>
- <Column size="50"/>
- <Column size="50"/>
- <Column size="50"/>
- <Column size="50"/>
- <Column size="50"/>
- <Column size="50"/>
- <Column size="50"/>
- <Column size="50"/>
- <Column size="50"/>
- <Column size="50"/>
- <Column size="50"/>
- <Column size="50"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell text="기관코드"/>
- <Cell col="1" text="폐기물"/>
- <Cell col="2" text="01"/>
- <Cell col="3" text="02"/>
- <Cell col="4" text="03"/>
- <Cell col="5" text="04"/>
- <Cell col="6" text="05"/>
- <Cell col="7" text="06"/>
- <Cell col="8" text="07"/>
- <Cell col="9" text="08"/>
- <Cell col="10" text="09"/>
- <Cell col="11" text="10"/>
- <Cell col="12" text="11"/>
- <Cell col="13" text="12"/>
- <Cell col="14" text="13"/>
- <Cell col="15" text="14"/>
- <Cell col="16" text="15"/>
- <Cell col="17" text="16"/>
- <Cell col="18" text="17"/>
- <Cell col="19" text="18"/>
- <Cell col="20" text="19"/>
- <Cell col="21" text="20"/>
- <Cell col="22" text="21"/>
- <Cell col="23" text="22"/>
- <Cell col="24" text="23"/>
- <Cell col="25" text="24"/>
- <Cell col="26" text="25"/>
- <Cell col="27" text="26"/>
- <Cell col="28" text="27"/>
- <Cell col="29" text="28"/>
- <Cell col="30" text="29"/>
- <Cell col="31" text="30"/>
- <Cell col="32" text="31"/>
- <Cell col="33" text="합계"/>
- </Band>
- <Band id="body">
- <Cell text="bind:instcd"/>
- <Cell col="1" text="bind:wasteresnnm"/>
- <Cell col="2" class="text_right" text="bind:day01" mask="#,###"/>
- <Cell col="3" class="text_right" text="bind:day02" mask="#,###"/>
- <Cell col="4" class="text_right" text="bind:day03" mask="#,###"/>
- <Cell col="5" class="text_right" text="bind:day04" mask="#,###"/>
- <Cell col="6" class="text_right" text="bind:day05" mask="#,###"/>
- <Cell col="7" class="text_right" text="bind:day06" mask="#,###"/>
- <Cell col="8" class="text_right" text="bind:day07" mask="#,###"/>
- <Cell col="9" class="text_right" text="bind:day08" mask="#,###"/>
- <Cell col="10" class="text_right" text="bind:day09" mask="#,###"/>
- <Cell col="11" class="text_right" text="bind:day10" mask="#,###"/>
- <Cell col="12" class="text_right" text="bind:day11" mask="#,###"/>
- <Cell col="13" class="text_right" text="bind:day12" mask="#,###"/>
- <Cell col="14" class="text_right" text="bind:day13" mask="#,###"/>
- <Cell col="15" class="text_right" text="bind:day14" mask="#,###"/>
- <Cell col="16" class="text_right" text="bind:day15" mask="#,###"/>
- <Cell col="17" class="text_right" text="bind:day16" mask="#,###"/>
- <Cell col="18" class="text_right" text="bind:day17" mask="#,###"/>
- <Cell col="19" class="text_right" text="bind:day18" mask="#,###"/>
- <Cell col="20" class="text_right" text="bind:day19" mask="#,###"/>
- <Cell col="21" class="text_right" text="bind:day20" mask="#,###"/>
- <Cell col="22" class="text_right" text="bind:day21" mask="#,###"/>
- <Cell col="23" class="text_right" text="bind:day22" mask="#,###"/>
- <Cell col="24" class="text_right" text="bind:day23" mask="#,###"/>
- <Cell col="25" class="text_right" text="bind:day24" mask="#,###"/>
- <Cell col="26" class="text_right" text="bind:day25" mask="#,###"/>
- <Cell col="27" class="text_right" text="bind:day26" mask="#,###"/>
- <Cell col="28" class="text_right" text="bind:day27" mask="#,###"/>
- <Cell col="29" class="text_right" text="bind:day28" mask="#,###"/>
- <Cell col="30" class="text_right" text="bind:day29" mask="#,###"/>
- <Cell col="31" class="text_right" text="bind:day30" mask="#,###"/>
- <Cell col="32" class="text_right" text="bind:day31" mask="#,###"/>
- <Cell col="33" class="text_right" text="bind:daytot" mask="#,###"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <MaskEdit id="ipt_abnvol" taborder="10" mask="999,999,999" position="absolute 1129 98 1194 117" anchor="top right" onkeydown="ipt_abnvol_onkeydown"/>
- <Combo id="cbo_custcd" taborder="11" innerdataset="ds_init_cbo_custcd" codecolumn="resncd" datacolumn="resncnts" position="absolute 1025 98 1125 117" anchor="top right" onitemchanged="cbo_custcd_onitemchanged"/>
- <MaskEdit id="ipt_abnvol1" taborder="12" position="absolute 500 98 565 117" onkeydown="ipt_abnvol1_onkeydown" type="number" mask="999,999,999"/>
- <Combo id="cbo_custcd1" taborder="13" innerdataset="ds_init_cbo_custcd1" codecolumn="resncd" datacolumn="resncnts" position="absolute 395 98 495 117" onitemchanged="cbo_custcd1_onitemchanged"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_init_cbo_ptnocd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="ptnonm" type="STRING"/>
- <Column id="ptnocd" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_grd_savelist" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="choi" type="STRING"/>
- <Column id="instcd" type="STRING"/>
- <Column id="abnflagcd" type="STRING"/>
- <Column id="abndg" type="STRING"/>
- <Column id="abnseqno" type="STRING"/>
- <Column id="wasteflagcd" type="STRING"/>
- <Column id="wasteresncd" type="STRING"/>
- <Column id="wasteresnnm" type="STRING"/>
- <Column id="ptno" type="STRING"/>
- <Column id="dispptno" type="STRING"/>
- <Column id="spccd" type="STRING"/>
- <Column id="spcnm" type="STRING"/>
- <Column id="abndd" type="STRING"/>
- <Column id="abntm" type="STRING"/>
- <Column id="abnid" type="STRING"/>
- <Column id="abnnm" type="STRING"/>
- <Column id="abncustflagcd" type="STRING"/>
- <Column id="abncustresncd" type="STRING"/>
- <Column id="abnvol" type="STRING"/>
- <Column id="bizflagcd" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_grd_abnlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="instcd" type="STRING"/>
- <Column id="wasteresnnm" type="STRING"/>
- <Column id="day01" type="STRING"/>
- <Column id="day02" type="STRING"/>
- <Column id="day03" type="STRING"/>
- <Column id="day04" type="STRING"/>
- <Column id="day05" type="STRING"/>
- <Column id="day06" type="STRING"/>
- <Column id="day07" type="STRING"/>
- <Column id="day08" type="STRING"/>
- <Column id="day09" type="STRING"/>
- <Column id="day10" type="STRING"/>
- <Column id="day11" type="STRING"/>
- <Column id="day12" type="STRING"/>
- <Column id="day13" type="STRING"/>
- <Column id="day14" type="STRING"/>
- <Column id="day15" type="STRING"/>
- <Column id="day16" type="STRING"/>
- <Column id="day17" type="STRING"/>
- <Column id="day18" type="STRING"/>
- <Column id="day19" type="STRING"/>
- <Column id="day20" type="STRING"/>
- <Column id="day21" type="STRING"/>
- <Column id="day22" type="STRING"/>
- <Column id="day23" type="STRING"/>
- <Column id="day24" type="STRING"/>
- <Column id="day25" type="STRING"/>
- <Column id="day26" type="STRING"/>
- <Column id="day27" type="STRING"/>
- <Column id="day28" type="STRING"/>
- <Column id="day29" type="STRING"/>
- <Column id="day30" type="STRING"/>
- <Column id="day31" type="STRING"/>
- <Column id="daytot" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_cbo_custcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="resncnts" type="STRING"/>
- <Column id="resncd" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_cbo_custcd1" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="resncnts" type="STRING"/>
- <Column id="resncd" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_data_sysdtinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="sysdd" type="STRING" size="256"/>
- <Column id="systm" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_resncdlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="choi" type="STRING" size="256" sumtext="선택"/>
- <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
- <Column id="baseflagcd" type="STRING" size="256" sumtext="구분코드"/>
- <Column id="resncd" type="STRING" size="256" sumtext="사유코드"/>
- <Column id="resncnts" type="STRING" size="256" sumtext="사유내용"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="ptnocode" type="STRING" size="256"/>
- <Column id="fromyear" type="STRING" size="256"/>
- <Column id="fromptno" type="STRING" size="256"/>
- <Column id="toyear" type="STRING" size="256"/>
- <Column id="toptno" type="STRING" size="256"/>
- <Column id="refflagcd" type="STRING" size="256"/>
- <Column id="acptfromdd" type="STRING" size="256"/>
- <Column id="acpttodd" type="STRING" size="256"/>
- <Column id="abnflagcd" type="STRING" size="256"/>
- <Column id="abnvol1" type="STRING" size="256"/>
- <Column id="abnvol2" type="STRING" size="256"/>
- <Column id="custcd1" type="STRING" size="256"/>
- <Column id="custcd2" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="abnflagcd">0</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_wastelist" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="choi" type="STRING" size="256" sumtext="선택"/>
- <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
- <Column id="abnflagcd" type="STRING" size="256" sumtext="폐기구분코드(0:액상, 1:적출물)"/>
- <Column id="abndg" type="STRING" size="256" sumtext="폐기차수"/>
- <Column id="abnseqno" type="STRING" size="256" sumtext="폐기일련번호"/>
- <Column id="wasteflagcd" type="STRING" size="256" sumtext="폐기물구분코드"/>
- <Column id="wasteresncd" type="STRING" size="256" sumtext="폐기물코드"/>
- <Column id="wasteresnnm" type="STRING" size="256" sumtext="폐기물명"/>
- <Column id="ptno" type="STRING" size="256" sumtext="병리번호"/>
- <Column id="dispptno" type="STRING" size="256" sumtext="표시병리번호"/>
- <Column id="spccd" type="STRING" size="256" sumtext="검체코드"/>
- <Column id="spcnm" type="STRING" size="256" sumtext="검체명"/>
- <Column id="abndd" type="STRING" size="256" sumtext="폐기일자"/>
- <Column id="abntm" type="STRING" size="256" sumtext="폐기시간"/>
- <Column id="abnid" type="STRING" size="256" sumtext="폐기자ID"/>
- <Column id="abnnm" type="STRING" size="256" sumtext="폐기자명"/>
- <Column id="abncustflagcd" type="STRING" size="256" sumtext="폐기업체구분코드"/>
- <Column id="abncustresncd" type="STRING" size="256" sumtext="폐기업체코드"/>
- <Column id="abnvol" type="STRING" size="256" sumtext="폐기량"/>
- <Column id="bizflagcd" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <FilteredDataset id="ds_grd_wastelist1" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" binddataset="@ds_wastelist"/>
- <FilteredDataset id="ds_grd_wastelist2" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" binddataset="@ds_wastelist"/>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="group2.cbo_ptnocd" propid="value" datasetid="ds_init" columnid="ptnocode"/>
- <BindItem id="item1" compid="group2.ipt_fromyear" propid="value" datasetid="ds_init" columnid="fromyear"/>
- <BindItem id="item2" compid="group2.ipt_fromptno" propid="value" datasetid="ds_init" columnid="fromptno"/>
- <BindItem id="item3" compid="group2.input2" propid="value" datasetid="ds_init" columnid="toyear"/>
- <BindItem id="item4" compid="group2.input1" propid="value" datasetid="ds_init" columnid="toptno"/>
- <BindItem id="item5" compid="cbo_custcd1" propid="value" datasetid="ds_init" columnid="custcd1"/>
- <BindItem id="item6" compid="group2.cmb_refflagcd" propid="value" datasetid="ds_init" columnid="refflagcd"/>
- <BindItem id="item7" compid="ipt_abnvol1" propid="value" datasetid="ds_init" columnid="abnvol1"/>
- <BindItem id="item8" compid="group2.cmb_abnflagcd" propid="value" datasetid="ds_init" columnid="abnflagcd"/>
- <BindItem id="item9" compid="group2.ipt_cnclfromdd" propid="value" datasetid="ds_init" columnid="acptfromdd"/>
- <BindItem id="item10" compid="group2.ipt_cncltodd" propid="value" datasetid="ds_init" columnid="acpttodd"/>
- <BindItem id="item11" compid="cbo_custcd" propid="value" datasetid="ds_init" columnid="custcd2"/>
- <BindItem id="item12" compid="ipt_abnvol" propid="value" datasetid="ds_init" columnid="abnvol2"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2015-11-13
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2015-11-13 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
-
- include "com_commonxp::comm_main.xjs";
- include "lis_commonxp::LPZ001.xjs";
- /******************************************************************
- * Argument :
- * Description : 초기화
- ******************************************************************/
- function SMLPP00600_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SMLPP00600_onload(obj:Form, e:LoadEventInfo)
- {
- grdf_initGrid(grd_wastelist1);
- grdf_initGrid(grd_wastelist2);
- grdf_initGrid(grd_abnlist);
- grdf_initGrid(grd_savelist);
- fExeInitialize();
- }
- /******************************************************************
- * Argument :
- * Description : 초기화함수
- ******************************************************************/
- function fExeInitialize()
- {
- var sCurDate = "";
- //----------------
- // 시스템일자 조회
- dsf_createDs( "ds_send", [{col : "instcd", vla : sysf_getUserInfo("dutplceinstcd")}]);
-
- var oParam = {};
- oParam.id = "TRLPZ00102";
- oParam.service = "plgycomnusemngtapp.BaseInfoCode";
- oParam.method = "reqGetSystemDateTimeInformation";
- oParam.inds = "refData=ds_send";
- oParam.outds = "ds_data_sysdtinfo=sysdtinfo";
- oParam.async = false;
- //oParam.callback = "cf_TRLPZ00102";
- tranf_submit(oParam);
-
- dsf_createDsRow("ds_send", [{col : "instcd", val : sysf_getUserInfo("dutplceinstcd")}
- ,{col : "refflagcd", val : "0"}]);
- var oParam = {};
- oParam.id = "TRLPZ00109";
- oParam.service = "plgycomnusemngtapp.BaseInfoCode";
- oParam.method = "reqGetPtNoCdList";
- oParam.inds = "refdata=ds_send";
- oParam.outds = "ds_init_cbo_ptnocd=rsltlist";
- oParam.async = false;
- //oParam.callback = "cf_TRLPZ00109";
- tranf_submit(oParam);
-
- //--------------------
- // 작업구분 목록 조회
- dsf_createDsRow( "ds_send", [{col : "instcd", val : sysf_getUserInfo("dutplceinstcd")}
- ,{col : "baseflagcd", val : "'61'"}]);
- var oParam = {};
- oParam.id = "TRLPZ00103";
- oParam.service = "plgycomnusemngtapp.BaseInfoCode";
- oParam.method = "reqGetReasonCodeList";
- oParam.inds = "refData=ds_send";
- oParam.outds = "ds_resncdlist=refrslt";
- oParam.async = false;
- //oParam.callback = "cf_TRLPZ00103";
- tranf_submit(oParam);
-
- // 전체 노드 삭제
- ds_resncdlist.deleteRow(ds_resncdlist.findRow("resncd","ZZZZ"));
-
- sCurDate = ds_data_sysdtinfo.getColumn(0, "sysdd");
- dsf_copyDs(ds_init_cbo_custcd, ds_resncdlist);
- dsf_copyDs(ds_init_cbo_custcd1, ds_resncdlist);
- //------------
- // 초기값 설정
- ds_init.setColumn(0, "acptfromdd", ds_data_sysdtinfo.getColumn(0, "sysdd")); // 접수일자(From)
- ds_init.setColumn(0, "acpttodd", ds_data_sysdtinfo.getColumn(0, "sysdd")); // 접수일자(To)
- ds_init.setColumn(0, "abnflagcd", "2"); // 폐기물구분(0:액상,1:적출물)
- ds_init.setColumn(0, "refflagcd", "0"); // 조회구분(0:미폐기, 1:폐기)
- ds_init.setColumn(0, "ptnocode", "");
- ds_init.setColumn(0, "fromyear", sCurDate.substr(2,2));
- ds_init.setColumn(0, "toyear", sCurDate.substr(2,2));
- ds_init.setColumn(0, "fromptno", "");
- ds_init.setColumn(0, "toptno", "");
-
- }
- /******************************************************************
- * Argument :
- * Description : 조회함수
- ******************************************************************/
- function fGetWasteList()
- {
- var sTemp = "";
- var sFromDD = ds_init.getColumn(0, "acptfromdd");
- var sToDD = ds_init.getColumn(0, "acpttodd");
-
- if( !utlf_isNull(ds_init.getColumn(0, "ptnocode")))
- {
- if( utlf_isNull(ds_init.getColumn(0, "fromyear")))
- {
- ds_init.setColumn(0, "fromyear", sFromDD.substr(2,2));
- }
- else
- {
- sTemp = ds_init.getColumn(0, "fromyear");
- ds_init.setColumn(0, "fromyear", sTemp.getLeftPad(2, "0"));
- }
-
- if( utlf_isNull(ds_init.getColumn(0, "toyear")))
- {
- ds_init.setColumn(0, "toyear", sToDD.substr(2,2));
- }
- else
- {
- sTemp = ds_init.getColumn(0, "toyear");
- ds_init.setColumn(0, "toyear", sTemp.getLeftPad(2, "0"));
- }
- if ( utlf_isNull(ds_init.getColumn(0, "fromptno")))
- {
- ds_init.setColumn(0, "fromptno", "000000");
- }
- else
- {
- sTemp = ds_init.getColumn(0, "fromptno");
- ds_init.setColumn(0, "fromptno", sTemp.getLeftPad(6, "0"));
- }
- if( utlf_isNull(ds_init.getColumn(0, "toptno")))
- {
- ds_init.setColumn(0, "toptno", "999999");
- }
- else
- {
- sTemp = ds_init.getColumn(0, "toptno");
- ds_init.setColumn(0, "toptno", sTemp.getLeftPad(6, "0"));
- }
- }
- sTemp = ds_init.getColumn(0, "ptnocode");
- ds_send.clear();
- dsf_createDsRow( "ds_send", [{col : "instcd", val : sysf_getUserInfo("dutplceinstcd")}
- ,{col : "acptfromdd", val : ds_init.getColumn(0, "acptfromdd")}
- ,{col : "acpttodd", val : ds_init.getColumn(0, "acpttodd")}
- ,{col : "refflagcd", val : ds_init.getColumn(0, "refflagcd")}
- ,{col : "abnflagcd", val : ds_init.getColumn(0, "abnflagcd")}
- ,{col : "baseflagcd", val : "'60'"}
- ,{col : "ptnocode", val : sTemp.replace("-", "")}
- ,{col : "fromyear", val : ds_init.getColumn(0, "fromyear")}
- ,{col : "fromptno", val : ds_init.getColumn(0, "fromptno")}
- ,{col : "toyear", val : ds_init.getColumn(0, "toyear")}
- ,{col : "toptno", val : ds_init.getColumn(0, "toptno")}]);
- //-------------------------
- var oParam = {};
- oParam.id = "TRLPP00601";
- oParam.service = "plgyrefmngtapp.AcptSpecRef";
- oParam.method = "reqGetWasteResnList";
- oParam.inds = "refData=ds_send";
- oParam.outds = "ds_wastelist=refrslt";
- oParam.async = false;
- //oParam.callback = "cf_TRLPP00601";
- tranf_submit(oParam);
- ds_grd_wastelist1.filter("abnflagcd=='0'");
-
- ds_grd_wastelist2.filter("abnflagcd=='1'");
- }
- /******************************************************************
- * Argument :
- * Description : 폐기물 저장 처리 Function
- ******************************************************************/
- function fExeSave(pBizFlagCd)
- {
- var sNode = ds_grd_savelist;
- var sNode1 = ds_grd_wastelist1;
- var sNode2 = ds_grd_wastelist2;
-
- for(var iNo = 0; iNo < ds_grd_wastelist1.rowcount; iNo++)
- {
- if(ds_grd_wastelist1.getColumn(iNo, "choi") == "1")
- {
- // 폐기일자 입력여부 검사
- if( utlf_isNull(ds_grd_wastelist1.getColumn(iNo, "abndd")))
- {
- sysf_messageBox("폐기(액상)목록의 폐기일자를 ", "C001");
- return false;
- }
- // 폐기용량 입력여부 검사
- if( utlf_isNull(ds_grd_wastelist1.getColumn(iNo, "abnvol")) || Number(ds_grd_wastelist1.getColumn(iNo, "abnvol") == 0))
- {
- sysf_messageBox("폐기(액상)목록의 폐기용량을 ", "C001");
- return false;
- }
- }
- }
-
- for(var iNo = 0; iNo < ds_grd_wastelist2.rowcount; iNo++)
- {
- if(ds_grd_wastelist2.getColumn(iNo, "choi") == "1")
- {
- // 폐기일자 입력여부 검사
- if( utlf_isNull(ds_grd_wastelist2.getColumn(iNo, "abndd")))
- {
- sysf_messageBox("폐기(적출물)목록의 폐기일자를 ", "C001");
- return false;
- }
- // 폐기용량 입력여부 검사
- if( utlf_isNull(ds_grd_wastelist2.getColumn(iNo, "abnvol")) || Number(ds_grd_wastelist2.getColumn(iNo, "abnvol") == 0))
- {
- sysf_messageBox("폐기(적출물)목록의 폐기용량을 ", "C001");
- return false;
- }
- }
- }
-
- // ds_grd_wastelist1.filter("choi=='1'");
- // if(ds_grd_wastelist1.rowcount > 0)
- // {
- // dsf_copyDs(ds_grd_savelist, ds_grd_wastelist1, "replace");
- // }
- if(ds_grd_wastelist1.getColumn(ds_grd_wastelist1.rowposition, "choi") == "1")
- {
- dsf_copyDs(ds_grd_savelist, ds_grd_wastelist1, "replace");
- }
-
- ds_grd_wastelist2.filter("choi=='1'");
- if(ds_grd_savelist.rowcount > 0)
- {
- dsf_copyDs(ds_grd_savelist, ds_grd_wastelist2, "after");
- }
- else
- {
- //copyNodesetType(sNode, sNode2+"[choi='true']", "replace");
- dsf_copyDs(ds_grd_savelist, ds_grd_wastelist2, "replace");
- }
- if(ds_grd_savelist.rowcount < 0)
- {
- sysf_messageBox("저장대상 폐기물을 ", "C002");
- return false;
- }
- else
- {
- for(var iNo = 0; iNo < ds_grd_savelist.rowcount; iNo++)
- {
- if(ds_grd_savelist.getColumn(iNo, "choi") == 1)
- {
- ds_grd_savelist.setColumn(iNo, "bizflagcd", pBizFlagCd);
- var addRw = ds_grd_savelist.rowposition;
- var arrPostion = new Array();
- arrPostion[0] = addRw;
- grdf_setStatus(grd_savelist, "I", arrPostion);
- }
- }
- }
- //return true;
- dsf_copyDs(ds_grd_savelist, grdf_getGridUpdateData(grd_savelist),"replace");
-
- var oParam = {};
- oParam.id = "TXLPP00601";
- oParam.service = "plgyrefmngtapp.AcptSpecRef";
- oParam.method = "reqExeWasteList";
- oParam.inds = "wastelist=ds_grd_savelist";
- oParam.async = false;
- //oParam.callback = "cf_TXLPP00601";
- tranf_submit(oParam);
-
- ds_wastelist.clearData();
- ds_grd_wastelist1.clearData();
- ds_grd_wastelist2.clearData();
- }
- /******************************************************************
- * Argument :
- * Description : 폐기물 선택 처리 Function
- ******************************************************************/
- function fExeWasteChoi(pRow, pCol, pBizFlagCd, pAction)
- {
- if(ds_init.getColumn(0, "refflagcd") == "1")
- {
- return false;
- }
-
-
- //-------------
- switch (pCol)
- {
- case 1 :
- if(ds_grd_wastelist1.getColumn(pRow, "choi") == 1)
- {
- ds_grd_wastelist1.setColumn(pRow, "abndd", utlf_getCurrentDate());
- ds_grd_wastelist1.setColumn(pRow, "abntm", utlf_getCurrentTime());
- ds_grd_wastelist1.setColumn(pRow, "abnid", sysf_getUserInfo("userid"));
- ds_grd_wastelist1.setColumn(pRow, "abnnm", sysf_getUserInfo("usernm"));
- ds_grd_wastelist1.setColumn(pRow, "abnvol", "0");
- }
- else
- {
- ds_grd_wastelist1.setColumn(pRow, "abndd", " ");
- ds_grd_wastelist1.setColumn(pRow, "abntm", " ");
- ds_grd_wastelist1.setColumn(pRow, "abnid", " ");
- ds_grd_wastelist1.setColumn(pRow, "abnnm", " ");
- ds_grd_wastelist1.setColumn(pRow, "abnvol", "0");
- }
- break;
-
- case 13 :
- if (pAction == "2")
- {
- ds_grd_wastelist1.setColumn(pRow, "abntm", utlf_getCurrentTime());
- ds_grd_wastelist1.setColumn(pRow, "abnid", sysf_getUserInfo("userid"));
- ds_grd_wastelist1.setColumn(pRow, "abnnm", sysf_getUserInfo("usernm"));
- }
- break;
- }
- }
- /******************************************************************
- * Argument :
- * Description : 조회버튼
- ******************************************************************/
- function group2_btn_sea_onclick(obj:Button, e:ClickEventInfo)
- {
- fGetWasteList();
- }
- /******************************************************************
- * Argument :
- * Description : 저장
- ******************************************************************/
- function btn_save_onclick(obj:Button, e:ClickEventInfo)
- {
- fExeSave("1");
- }
- /******************************************************************
- * Argument :
- * Description : 취소
- ******************************************************************/
- function btn_cncl_onclick(obj:Button, e:ClickEventInfo)
- {
- fExeSave("2");
- }
- /******************************************************************
- * Argument :
- * Description : 폐기물 선택 처리 Function 호출
- ******************************************************************/
- function grd_wastelist1_oncloseup(obj:Grid, e:GridEditEventInfo)
- {
- if(e.col == 13)
- {
- fExeWasteChoi(ds_grd_wastelist1.rowposition, 13, "1", "2");
- }
- }
- function grd_wastelist1_oncellclick(obj:Grid, e:GridClickEventInfo)
- {
- if(e.col == 1)
- {
-
- fExeWasteChoi(ds_grd_wastelist1.rowposition, 1, "1", "1");
- }
- }
- function grd_wastelist1_onheadclick(obj:Grid, e:GridClickEventInfo)
- {
- if(e.col == 1)
- {
- fExeListChoi(ds_grd_wastelist1, ds_grd_wastelist1.rowposition, 1, "1");
- }
- }
- function fExeListChoi(grdObj, pRow, pCol, pBizFlagCd)
- {
- //---------------------------------
- if (Number(pRow) > 0)
- {
- return false;
- }
- var i = ds_grd_wastelist1.rowposition;
- if( utlf_isNull(ds_grd_wastelist1.getColumn(i, "choi")) || ds_grd_wastelist1.getColumn(i, "choi") == 0 )
- {
- alert("전체선택");
- for(var iNo= 0; iNo < ds_grd_wastelist1.rowcount; iNo++)
- {
- ds_grd_wastelist1.setColumn(iNo, "abndd", utlf_getCurrentDate());
- ds_grd_wastelist1.setColumn(iNo, "abntm", utlf_getCurrentTime());
- ds_grd_wastelist1.setColumn(iNo, "abnid", sysf_getUserInfo("userid"));
- ds_grd_wastelist1.setColumn(iNo, "abnnm", sysf_getUserInfo("usernm"));
- ds_grd_wastelist1.setColumn(iNo, "abnvol", "0");
- }
- }
- }
- /******************************************************************
- * Argument :
- * Description : 조회구분 변경 처리 Function
- ******************************************************************/
- function fExeRefFlagChng()
- {
- if(ds_init.getColumn(0, "refflagcd") == "0")
- {
- group2.cap_refdd.text = "접수일자 : ";
- btn_cncl.visible = false;
- btn_save.visible = true;
- }
- else
- {
- group2.cap_refdd.text = "폐기일자 : ";
- btn_cncl.visible = true;
- btn_save.visible = false;
- }
- }
-
- function group2_cmb_refflagcd_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
- fExeRefFlagChng();
- }
- function group2_ipt_cncltodd_onkeyup(obj:Calendar, e:KeyEventInfo)
- {
- if(e.keycode == 13)
- {
- fGetWasteList();
- }
- }
- function grd_wastelist2_oncellclick(obj:Grid, e:GridClickEventInfo)
- {
- if(e.col == 1)
- {
- fExeWasteChoi2(ds_grd_wastelist2.rowposition, 1, "1", "1");
- }
- }
- function grd_wastelist2_oncloseup(obj:Grid, e:GridEditEventInfo)
- {
- if(e.col == 13)
- {
- fExeWasteChoi2(ds_grd_wastelist2.rowposition, 13, "1", "2");
- }
- }
- function grd_wastelist2_onheadclick(obj:Grid, e:GridClickEventInfo)
- {
- if(e.col == 1)
- {
- fExeListChoi2(ds_grd_wastelist2, ds_grd_wastelist2.rowposition, 2, "1");
- }
- }
- /******************************************************************
- * Argument :
- * Description : 폐기물 선택 처리 Function
- ******************************************************************/
- function fExeWasteChoi2(pRow, pCol, pBizFlagCd, pAction)
- {
- // 폐기된 자료는 처리하지 않는다.
- if(ds_init.getColumn(0, "refflagcd") == "1")
- {
- return false;
- }
- //-------------
- switch (pCol)
- {
- case 1 :
- if(ds_grd_wastelist2.getColumn(pRow, "choi") == 1)
- {
- ds_grd_wastelist2.setColumn(pRow, "abndd", utlf_getCurrentDate());
- ds_grd_wastelist2.setColumn(pRow, "abntm", utlf_getCurrentTime());
- ds_grd_wastelist2.setColumn(pRow, "abnid", sysf_getUserInfo("userid"));
- ds_grd_wastelist2.setColumn(pRow, "abnnm", sysf_getUserInfo("usernm"));
- ds_grd_wastelist2.setColumn(pRow, "abnvol", "0");
- }
- else
- {
- ds_grd_wastelist2.setColumn(pRow, "abndd", " ");
- ds_grd_wastelist2.setColumn(pRow, "abntm", " ");
- ds_grd_wastelist2.setColumn(pRow, "abnid", " ");
- ds_grd_wastelist2.setColumn(pRow, "abnnm", " ");
- ds_grd_wastelist2.setColumn(pRow, "abnvol", "0");
- }
- break;
-
- case 13 :
- if (pAction == "2")
- {
- ds_grd_wastelist2.setColumn(pRow, "abntm", utlf_getCurrentTime());
- ds_grd_wastelist2.setColumn(pRow, "abnid", sysf_getUserInfo("userid"));
- ds_grd_wastelist2.setColumn(pRow, "abnnm", sysf_getUserInfo("usernm"));
- }
- break;
- }
- }
- function fExeListChoi2(grdObj, pRow, pCol, pBizFlagCd)
- {
- if (Number(pRow) > 0)
- {
- return false;
- }
- var i = ds_grd_wastelist2.rowposition;
- if( utlf_isNull(ds_grd_wastelist2.getColumn(i, "choi")) || ds_grd_wastelist2.getColumn(i, "choi") == 0 )
- {
- for(var iNo= 0; iNo < ds_grd_wastelist2.rowcount; iNo++)
- {
- ds_grd_wastelist2.setColumn(iNo, "abndd", utlf_getCurrentDate());
- ds_grd_wastelist2.setColumn(iNo, "abntm", utlf_getCurrentTime());
- ds_grd_wastelist2.setColumn(iNo, "abnid", sysf_getUserInfo("userid"));
- ds_grd_wastelist2.setColumn(iNo, "abnnm", sysf_getUserInfo("usernm"));
- ds_grd_wastelist2.setColumn(iNo, "abnvol", "0");
- }
- }
- }
- /******************************************************************
- * Argument :
- * Description : 검체폐기대장 Excel저장 버튼
- ******************************************************************/
- function button13_onclick(obj:Button, e:ClickEventInfo)
- {
- fExeSaveToExcel();
- }
- /******************************************************************
- * Argument :
- * Description : 검체폐기대장 Excel저장 처리 Function
- ******************************************************************/
- function fExeSaveToExcel()
- {
- grdf_exportExcel(grd_abnlist, "검체폐기대장_액상");
- grdf_exportExcel(grd_wastelist2, "검체폐기대장_적출물");
- }
- //폐기(액상)목록 폐기업체
- function cbo_custcd1_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
- var sNode = ds_grd_wastelist1;
-
- for(var iNo = 0; iNo < sNode.rowcount; iNo++)
- {
- if(sNode.getColumn(iNo, "choi") == "1")
- {
- sNode.setColumn(0, "abncustflagcd", ds_resncdlist.getColumn(0, "baseflagcd"));
- sNode.setColumn(iNo, "abncustresncd", ds_init.getColumn(0, "custcd1"));
- }
- }
- }
- //폐기(액상)목록 용량 입력
- function ipt_abnvol1_onkeydown(obj:MaskEdit, e:KeyEventInfo)
- {
- if(e.keycode == 13)
- {
- var sNode = ds_grd_wastelist1;
- var sVol = ipt_abnvol1.value;
-
- ds_init.setColumn(0, "abnvol1", sVol);
-
- for(var iNo = 0; iNo <= sNode.rowcount; iNo++)
- {
- if(sNode.getColumn(iNo, "choi") == "1")
- {
- sNode.setColumn(iNo, "abnvol", sVol);
- }
- }
- }
- }
- //폐기(적출물)목록 폐기업체 입력
- function cbo_custcd_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
- var sNode = ds_grd_wastelist2;
-
- for(var iNo = 0; iNo < sNode.rowcount; iNo++)
- {
- if(ds_grd_wastelist2.getColumn(iNo, "choi") == "1")
- {
- sNode.setColumn(iNo, "abncustflagcd", ds_resncdlist.getColumn(0, "baseflagcd"));
- sNode.setColumn(iNo, "abncustresncd", ds_init.getColumn(0, "custcd2"));
- }
- }
- }
- //폐기(적출물)목록 용량 입력
- function ipt_abnvol_onkeydown(obj:MaskEdit, e:KeyEventInfo)
- {
- if(e.keycode == 13)
- {
- var sNode = ds_grd_wastelist2;
- var sVol = ipt_abnvol.value;
-
- ds_init.setColumn(0, "abnvol2", sVol);
-
- for(var iNo = 0; iNo < sNode.rowcount; iNo++)
- {
- if(sNode.getColumn(iNo, "choi") == "1")
- {
- sNode.setColumn(iNo, "abnvol", sVol);
- }
- }
- }
- }
- ]]></Script>
- </Form>
- </FDL>
|