123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMRSM00200" position="absolute 0 0 819 551" titletext="화학물질 종합관리" oninit="SMRSM00200_oninit" onload="SMRSM00200_onload">
- <Layouts>
- <Layout>
- <Static id="caption6" text="화학물질 종합관리" class="tit_1" position="absolute 0 0 173 25"/>
- <Shape id="line2" linetype="horizontal" class="line_6" position="absolute 0 38 815 44"/>
- <Button id="btn_save" taborder="1" text="저장" class="btn4" position="absolute 696 18 752 40" onclick="btn_save_onclick"/>
- <Button id="btn_close" taborder="2" text="닫기" class="btn4" position="absolute 755 18 811 40" onclick="btn_close_onclick"/>
- <Div id="grp_sea" taborder="3" class="div_SA2" position="absolute 0 41 815 76">
- <Layouts>
- <Layout width="815" height="35">
- <Button id="btn_search" taborder="1" text="조회" class="btn1" visible="false" position="absolute 675 6 731 28" onclick="grp_sea_btn_search_onclick"/>
- <Static id="caption1" text="물질명" position="absolute 45 10 90 26"/>
- <Static id="caption7" text="제조회사" position="absolute 355 10 410 26"/>
- </Layout>
- </Layouts>
- </Div>
- <Shape id="line1" class="line_10" position="absolute 0 106 815 112"/>
- <Shape id="line13" linetype="horizontal" class="line_2" position="absolute 1 131 813 137"/>
- <Static id="caption20" text="종합정보" class="tit_2" position="absolute 1 89 75 105"/>
- <Static id="cap_matrcd" text="유해 구성성분" class="cell_1" position="absolute 0 111 160 134"/>
- <Static id="cap_matrnm" text="유해등급" class="cell_1" position="absolute 0 136 160 159"/>
- <Shape id="line4" linetype="horizontal" class="line_2" position="absolute 1 156 813 162"/>
- <Shape id="line16" linetype="horizontal" class="line_2" position="absolute 0 489 813 495"/>
- <Shape id="line17" linetype="horizontal" class="line_2" position="absolute 0 516 813 522"/>
- <Shape id="line18" linetype="horizontal" class="line_2" position="absolute 0 541 813 547"/>
- <Static id="caption24" text="제품 경고표시 그림문자" class="cell_1" position="absolute 0 384 160 494"/>
- <Static id="caption25" text="유해위험성" class="cell_1" position="absolute 0 161 160 306"/>
- <Static id="caption29" text="작업환경측정 물질" class="cell_1" position="absolute 0 496 160 519"/>
- <Shape id="line7" linetype="horizontal" class="line_2" position="absolute 1 304 813 310"/>
- <Shape id="line20" linetype="horizontal" class="line_2" position="absolute 1 329 813 335"/>
- <Static id="caption11" text="신호어" class="cell_1" position="absolute 0 309 160 332"/>
- <Shape id="line9" linetype="horizontal" class="line_2" position="absolute 1 354 813 360"/>
- <Shape id="line10" linetype="horizontal" class="line_2" position="absolute 1 379 813 385"/>
- <Static id="caption12" text="작업 공정별 관리요령" class="cell_1" position="absolute 0 359 160 382"/>
- <Edit id="opt_prodcmpynm" taborder="4" readonly="true" position="absolute 418 49 658 68"/>
- <Radio id="rdo_envinspyn" taborder="5" columncount="2" rowcount="0" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 165 497 270 517">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">Y</Col>
- <Col id="datacolumn">Yes</Col>
- </Row>
- <Row>
- <Col id="codecolumn">N</Col>
- <Col id="datacolumn">No</Col>
- </Row>
- </Rows>
- </Dataset>
- </Radio>
- <Static id="caption3" text="물질안전보건자료(MSDS)" class="cell_1" position="absolute 0 334 160 357"/>
- <Combo id="cmb_fileyn1" taborder="6" codecolumn="codecolumn" datacolumn="datacolumn" enable="false" position="absolute 165 336 205 355">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">Y</Col>
- <Col id="datacolumn">Y</Col>
- </Row>
- <Row>
- <Col id="codecolumn">N</Col>
- <Col id="datacolumn">N</Col>
- </Row>
- </Rows>
- </Dataset>
- </Combo>
- <Button id="btn_fileup1" taborder="7" text="등록" class="btn2" position="absolute 210 336 252 355" onclick="btn_fileup1_onclick"/>
- <Button id="btn_filedel1" taborder="8" text="삭제" class="btn2" position="absolute 255 336 297 355" onclick="btn_filedel1_onclick"/>
- <Button id="btn_filedown1" taborder="9" text="다운" class="btn2" position="absolute 300 336 342 355" onclick="btn_filedown1_onclick"/>
- <Button id="btn_fileup2" taborder="10" text="등록" class="btn2" position="absolute 210 361 252 380" onclick="btn_fileup2_onclick"/>
- <Button id="btn_filedown2" taborder="11" text="다운" class="btn2" position="absolute 300 361 342 380" onclick="btn_filedown2_onclick"/>
- <Combo id="cmb_fileyn2" taborder="12" codecolumn="codecolumn" datacolumn="datacolumn" enable="false" position="absolute 165 361 205 380">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">Y</Col>
- <Col id="datacolumn">Y</Col>
- </Row>
- <Row>
- <Col id="codecolumn">N</Col>
- <Col id="datacolumn">N</Col>
- </Row>
- </Rows>
- </Dataset>
- </Combo>
- <Button id="btn_filedel2" taborder="13" text="삭제" class="btn2" position="absolute 255 361 297 380" onclick="btn_filedel2_onclick"/>
- <ImageViewer id="img1" taborder="14" image="URL('IMG::mis/warn1.png')" position="absolute 165 389 215 439" style="color:black;" stretch="fit"/>
- <ImageViewer id="img2" taborder="15" image="URL('IMG::mis/warn2.png')" position="absolute 220 389 270 439" stretch="fit"/>
- <ImageViewer id="img3" taborder="16" image="URL('IMG::mis/warn3.png')" position="absolute 275 389 325 439" stretch="fit"/>
- <ImageViewer id="img4" taborder="17" image="URL('IMG::mis/warn4.png')" position="absolute 330 389 380 439" stretch="fit"/>
- <ImageViewer id="img5" taborder="18" image="URL('IMG::mis/warn5.png')" position="absolute 385 389 435 439" stretch="fit"/>
- <ImageViewer id="img6" taborder="19" image="URL('IMG::mis/warn6.png')" position="absolute 440 389 490 439" stretch="fit"/>
- <ImageViewer id="img7" taborder="20" image="URL('IMG::mis/warn7.png')" position="absolute 495 389 545 439" stretch="fit"/>
- <ImageViewer id="img8" taborder="21" image="URL('IMG::mis/warn8.png')" position="absolute 550 389 600 439" stretch="fit"/>
- <ImageViewer id="img9" taborder="22" image="URL('IMG::mis/warn9.png')" position="absolute 605 389 655 439" stretch="fit"/>
- <Static id="caption8" text="인화성" position="absolute 170 439 210 459"/>
- <Static id="caption9" text=" 흡인 유해성" position="absolute 225 436 265 474"/>
- <Static id="caption10" text="급성독성" position="absolute 275 439 325 459"/>
- <Static id="caption13" text="부식성" position="absolute 335 439 375 459"/>
- <Static id="caption14" text="산화성" position="absolute 390 439 430 459"/>
- <Static id="caption15" text="고압가스" position="absolute 440 439 490 459"/>
- <Static id="caption16" text="폭발성" position="absolute 500 439 540 459"/>
- <Static id="caption17" text="수생환경 유해성" position="absolute 550 436 600 474"/>
- <Static id="caption18" text="경고" position="absolute 620 439 660 459"/>
- <Static id="caption5" text="특수건강진단 물질" class="cell_1" position="absolute 0 521 160 544"/>
- <Radio id="rdo_spcldiagyn" taborder="23" columncount="2" rowcount="0" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 165 522 270 542">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">Y</Col>
- <Col id="datacolumn">Yes</Col>
- </Row>
- <Row>
- <Col id="codecolumn">N</Col>
- <Col id="datacolumn">No</Col>
- </Row>
- </Rows>
- </Dataset>
- </Radio>
- <Edit id="opt_matrnm" taborder="24" readonly="true" position="absolute 98 49 338 68"/>
- <Edit id="ipt_harmcomp" taborder="25" class="input_default" position="absolute 164 113 795 132"/>
- <Radio id="rdo_harmgrde" taborder="26" columncount="4" rowcount="0" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 165 138 515 158">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">1</Col>
- <Col id="datacolumn">1 등급</Col>
- </Row>
- <Row>
- <Col id="codecolumn">2</Col>
- <Col id="datacolumn">2 등급</Col>
- </Row>
- <Row>
- <Col id="codecolumn">3</Col>
- <Col id="datacolumn">3 등급</Col>
- </Row>
- <Row>
- <Col id="codecolumn">4</Col>
- <Col id="datacolumn">4 등급</Col>
- </Row>
- </Rows>
- </Dataset>
- </Radio>
- <Grid id="grd_alist" taborder="27" binddataset="ds_main_matrinfo_alist" useinputpanel="false" position="absolute 164 164 379 304" autofittype="col">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="24"/>
- <Column size="172"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1" text="물리적위험성"/>
- <Cell col="2" text="matrcd"/>
- <Cell col="3" text="harmcls"/>
- <Cell col="4" text="harmcd"/>
- </Band>
- <Band id="body">
- <Cell displaytype="checkbox" edittype="checkbox" text="bind:chkval" expr="expr:expr:chkval == 'Y' ? 1 : 0"/>
- <Cell col="1" style="align:left middle;" text="bind:harmnm"/>
- <Cell col="2" text="bind:matrcd"/>
- <Cell col="3" text="bind:harmcls"/>
- <Cell col="4" text="bind:harmcd"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Grid id="grd_blist" taborder="28" binddataset="ds_main_matrinfo_blist" useinputpanel="false" position="absolute 380 164 595 304" autofittype="col">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="24"/>
- <Column size="172"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1" text="건강유해성"/>
- <Cell col="2" text="matrcd"/>
- <Cell col="3" text="harmcls"/>
- <Cell col="4" text="harmcd"/>
- </Band>
- <Band id="body">
- <Cell displaytype="checkbox" edittype="checkbox" text="bind:chkval" expr="expr:expr:chkval == 'Y' ? 1 : 0"/>
- <Cell col="1" style="align:left middle;" text="bind:harmnm"/>
- <Cell col="2" text="bind:matrcd"/>
- <Cell col="3" text="bind:harmcls"/>
- <Cell col="4" text="bind:harmcd"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Grid id="grd_clist" taborder="29" binddataset="ds_main_matrinfo_clist" useinputpanel="false" position="absolute 596 164 811 304" autofittype="col">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="24"/>
- <Column size="172"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell expr="expr:expr:chkval == 'Y' ? 1 : 0"/>
- <Cell col="1" text="환경유해성"/>
- <Cell col="2" text="matrcd"/>
- <Cell col="3" text="harmcls"/>
- <Cell col="4" text="harmcd"/>
- </Band>
- <Band id="body">
- <Cell displaytype="checkbox" edittype="checkbox" text="bind:chkval" expr="expr:expr:chkval == 'Y' ? 1 : 0"/>
- <Cell col="1" style="align:left middle;" text="bind:harmnm"/>
- <Cell col="2" text="bind:matrcd"/>
- <Cell col="3" text="bind:harmcls"/>
- <Cell col="4" text="bind:harmcd"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Radio id="rdo_sgnl" taborder="30" columncount="4" rowcount="0" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 165 311 515 331">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">위험</Col>
- <Col id="datacolumn">위험</Col>
- </Row>
- <Row>
- <Col id="codecolumn">경고</Col>
- <Col id="datacolumn">경고</Col>
- </Row>
- <Row>
- <Col id="codecolumn">해당없음</Col>
- <Col id="datacolumn">해당없음</Col>
- </Row>
- </Rows>
- </Dataset>
- </Radio>
- <CheckBox id="cbx_1" taborder="31" position="absolute 180 469 200 489" truevalue="Y" onclick="cbx_1_onclick"/>
- <CheckBox id="cbx_2" taborder="32" position="absolute 235 469 255 489" truevalue="Y" onclick="cbx_2_onclick"/>
- <CheckBox id="cbx_3" taborder="33" position="absolute 290 469 310 489" truevalue="Y" onclick="cbx_3_onclick"/>
- <CheckBox id="cbx_4" taborder="34" position="absolute 345 469 365 489" truevalue="Y" onclick="cbx_4_onclick"/>
- <CheckBox id="cbx_5" taborder="35" position="absolute 400 469 420 489" truevalue="Y" onclick="cbx_5_onclick"/>
- <CheckBox id="cbx_6" taborder="36" position="absolute 455 469 475 489" truevalue="Y" onclick="cbx_6_onclick"/>
- <CheckBox id="cbx_7" taborder="37" position="absolute 510 469 530 489" truevalue="Y" onclick="cbx_7_onclick"/>
- <CheckBox id="cbx_8" taborder="38" position="absolute 567 469 587 489" truevalue="Y" onclick="cbx_8_onclick"/>
- <CheckBox id="cbx_9" taborder="39" position="absolute 620 469 640 489" truevalue="Y" onclick="cbx_9_onclick"/>
- <Edit id="ipt_updpath" taborder="40" visible="false" position="absolute 430 336 530 355"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_main_matrinfo_alist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false" oncolumnchanged="ds_main_matrinfo_alist_oncolumnchanged">
- <ColumnInfo>
- <Column id="chkval" type="STRING"/>
- <Column id="harmnm" type="STRING"/>
- <Column id="matrcd" type="STRING"/>
- <Column id="harmcls" type="STRING"/>
- <Column id="harmcd" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_matrinfo_blist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false" oncolumnchanged="ds_main_matrinfo_blist_oncolumnchanged">
- <ColumnInfo>
- <Column id="chkval" type="STRING"/>
- <Column id="harmnm" type="STRING"/>
- <Column id="matrcd" type="STRING"/>
- <Column id="harmcls" type="STRING"/>
- <Column id="harmcd" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_matrinfo_clist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false" oncolumnchanged="ds_main_matrinfo_clist_oncolumnchanged">
- <ColumnInfo>
- <Column id="chkval" type="STRING"/>
- <Column id="harmnm" type="STRING"/>
- <Column id="matrcd" type="STRING"/>
- <Column id="harmcls" type="STRING"/>
- <Column id="harmcd" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_condition" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="matrcd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_main_matrinfo_detail" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="status" type="STRING" size="256" sumtext="상태"/>
- <Column id="matrcd" type="STRING" size="256" sumtext="물질코드"/>
- <Column id="matrnm" type="STRING" size="256" sumtext="물질명"/>
- <Column id="prodcmpynm" type="STRING" size="256" sumtext="제조회사명"/>
- <Column id="harmcomp" type="STRING" size="256" sumtext="유해구성성분"/>
- <Column id="harmgrde" type="STRING" size="256" sumtext="유해등급"/>
- <Column id="sgnl" type="STRING" size="256" sumtext="신호어"/>
- <Column id="msdsfileyn" type="STRING" size="256" sumtext="msds파일여부"/>
- <Column id="msdsfilepath" type="STRING" size="256" sumtext="msds파일path"/>
- <Column id="msdsfilenm" type="STRING" size="256" sumtext="msds파일이름"/>
- <Column id="workfileyn" type="STRING" size="256" sumtext="작업공정별 작업요령 파일여부"/>
- <Column id="workfilepath" type="STRING" size="256" sumtext="작업공정별 작업요령 파일path"/>
- <Column id="workfilenm" type="STRING" size="256" sumtext="작업공정별 작업요령 파일이름"/>
- <Column id="warnyn1" type="STRING" size="256" sumtext="제품경고표시여부()"/>
- <Column id="warnyn2" type="STRING" size="256" sumtext="제품경고표시여부()"/>
- <Column id="warnyn3" type="STRING" size="256" sumtext="제품경고표시여부()"/>
- <Column id="warnyn4" type="STRING" size="256" sumtext="제품경고표시여부()"/>
- <Column id="warnyn5" type="STRING" size="256" sumtext="제품경고표시여부()"/>
- <Column id="warnyn6" type="STRING" size="256" sumtext="제품경고표시여부()"/>
- <Column id="warnyn7" type="STRING" size="256" sumtext="제품경고표시여부()"/>
- <Column id="warnyn8" type="STRING" size="256" sumtext="제품경고표시여부()"/>
- <Column id="warnyn9" type="STRING" size="256" sumtext="제품경고표시여부()"/>
- <Column id="envinspyn" type="STRING" size="256" sumtext="비고"/>
- <Column id="spcldiagyn" type="STRING" size="256" sumtext="비고"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_filepath" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="instcd" type="STRING" size="256" sumtext="기관"/>
- <Column id="reqdd" type="STRING" size="256" sumtext="신청일자"/>
- <Column id="reqseqno" type="STRING" size="256" sumtext="신청순번"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="instcd"/>
- <Col id="reqdd"/>
- <Col id="reqseqno"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_attach" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="filenm" type="STRING" size="256" sumtext="파일명"/>
- <Column id="filedata" type="BLOB" size="256" sumtext="파일데이터"/>
- <Column id="filesize" type="STRING" size="256" sumtext="파일크기"/>
- <Column id="filetype" type="STRING" size="256" sumtext="파일종류"/>
- <Column id="attfilenm" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_filepath" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="filepath" type="STRING" size="256" sumtext="파일경로"/>
- <Column id="filenm" type="STRING" size="256" sumtext="파일"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_delete" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="filepath" type="STRING" size="256"/>
- <Column id="fiepath" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="filepath"/>
- <Col id="fiepath"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_attachfile" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="filedata" type="STRING" size="256" sumtext="파일데이터"/>
- </ColumnInfo>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="opt_matrnm" propid="value" datasetid="ds_main_matrinfo_detail" columnid="matrnm"/>
- <BindItem id="item1" compid="opt_prodcmpynm" propid="value" datasetid="ds_main_matrinfo_detail" columnid="prodcmpynm"/>
- <BindItem id="item2" compid="ipt_harmcomp" propid="value" datasetid="ds_main_matrinfo_detail" columnid="harmcomp"/>
- <BindItem id="item3" compid="rdo_harmgrde" propid="value" datasetid="ds_main_matrinfo_detail" columnid="harmgrde"/>
- <BindItem id="item4" compid="rdo_sgnl" propid="value" datasetid="ds_main_matrinfo_detail" columnid="sgnl"/>
- <BindItem id="item5" compid="cmb_fileyn1" propid="value" datasetid="ds_main_matrinfo_detail" columnid="msdsfileyn"/>
- <BindItem id="item6" compid="cmb_fileyn2" propid="value" datasetid="ds_main_matrinfo_detail" columnid="workfileyn"/>
- <BindItem id="item7" compid="cbx_1" propid="value" datasetid="ds_main_matrinfo_detail" columnid="warnyn1"/>
- <BindItem id="item8" compid="cbx_2" propid="value" datasetid="ds_main_matrinfo_detail" columnid="warnyn2"/>
- <BindItem id="item9" compid="cbx_3" propid="value" datasetid="ds_main_matrinfo_detail" columnid="warnyn3"/>
- <BindItem id="item10" compid="cbx_4" propid="value" datasetid="ds_main_matrinfo_detail" columnid="warnyn4"/>
- <BindItem id="item11" compid="cbx_5" propid="value" datasetid="ds_main_matrinfo_detail" columnid="warnyn5"/>
- <BindItem id="item12" compid="cbx_6" propid="value" datasetid="ds_main_matrinfo_detail" columnid="warnyn6"/>
- <BindItem id="item13" compid="cbx_7" propid="value" datasetid="ds_main_matrinfo_detail" columnid="warnyn7"/>
- <BindItem id="item14" compid="cbx_8" propid="value" datasetid="ds_main_matrinfo_detail" columnid="warnyn8"/>
- <BindItem id="item15" compid="cbx_9" propid="value" datasetid="ds_main_matrinfo_detail" columnid="warnyn9"/>
- <BindItem id="item16" compid="rdo_envinspyn" propid="value" datasetid="ds_main_matrinfo_detail" columnid="envinspyn"/>
- <BindItem id="item17" compid="rdo_spcldiagyn" propid="value" datasetid="ds_main_matrinfo_detail" columnid="spcldiagyn"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2017-06-19
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2017-06-19 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- include "com_commonxp::comm_main.xjs";
- include "mis_miscommonxp::MIS.xjs";
- include "mis_miscommonxp::RAC001.xjs";
- include "mis_miscommonxp::RSZ001.xjs";
- function SMRSM00200_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SMRSM00200_onload(obj:Form, e:LoadEventInfo)
- {
- grdf_initGrid(grd_alist);
- grdf_initGrid(grd_blist);
- grdf_initGrid(grd_clist);
-
- try
- {
- ds_main_condition.copyData(arg_ds_popdata);
- }catch(e){}
-
- fOpenForm();
- }
- function fOpenForm()
- {
- ds_main_matrinfo_alist.clearData();
- ds_main_matrinfo_blist.clearData();
- ds_main_matrinfo_clist.clearData();
- fGetMatrInfo();//코드 종합정보 조회
- }
- //화학물질 종합정보 조회
- function fGetMatrInfo()
- {
- ds_send.copyData(ds_main_condition);
-
- var oParam = {};
- oParam.id = "TRRSM00201";
- oParam.service = "purcbaseapp.PurcBaseMngt";
- oParam.method = "reqGetMatrGenInfo";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_matrinfo_detail=detail ds_main_matrinfo_alist=alist ds_main_matrinfo_blist=blist ds_main_matrinfo_clist=clist";
- oParam.async = false;
- //oParam.callback = "cf_TRRSM00201";
- tranf_submit(oParam);
- if(ds_main_matrinfo_detail.getColumn(0, "msdsfileyn") != "Y")
- {
- btn_filedel1.enable = false;
- btn_filedown1.enable = false;
- }
-
- if(ds_main_matrinfo_detail.getColumn(0, "workfileyn") != "Y")
- {
- btn_filedel2.enable = false;
- btn_filedown2.enable = false;
- }
-
- }
- function ds_main_matrinfo_alist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
- {
- if(e.columnid == "chkval")
- {
- obj.setColumn(e.row, "chkval", (e.newvalue == "Y" || e.newvalue == 1) ? "Y" : "N");
- }
- }
- function ds_main_matrinfo_blist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
- {
- if(e.columnid == "chkval")
- {
- obj.setColumn(e.row, "chkval", (e.newvalue == "Y" || e.newvalue == 1) ? "Y" : "N");
- }
- }
- function ds_main_matrinfo_clist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
- {
- if(e.columnid == "chkval")
- {
- obj.setColumn(e.row, "chkval", (e.newvalue == "Y" || e.newvalue == 1) ? "Y" : "N");
- }
- }
- //조회버튼 클릭
- function grp_sea_btn_search_onclick(obj:Button, e:ClickEventInfo)
- {
- fGetMatrInfo();
- }
- //물질안전보건자료 등록
- function btn_fileup1_onclick(obj:Button, e:ClickEventInfo)
- {
- fupload("1");
- if( !utlf_isNull(ds_main_filepath.getColumn(0, "filepath")))
- {
- ds_main_matrinfo_detail.setColumn(0, "msdsfileyn", "Y");
-
- btn_filedel1.enable = true;
- btn_filedown1.enable = true;
- }
- }
- //물질안전보건자료 삭제
- function btn_filedel1_onclick(obj:Button, e:ClickEventInfo)
- {
- fdelete("1");
- btn_filedel1.enable = false;
- btn_filedown1.enable = false;
- }
- //물질안전보건자료 다운
- function btn_filedown1_onclick(obj:Button, e:ClickEventInfo)
- {
- if(cmb_fileyn1.value == "Y")
- {
- fdown("1");
- }
- else
- {
- sysf_messageBox("내려받을 첨부 파일이 없습니다.", "E999", "");
- }
- }
- //작업 공정별 관리요령 등록
- function btn_fileup2_onclick(obj:Button, e:ClickEventInfo)
- {
- fupload("2");
- if( !utlf_isNull(ds_main_filepath.getColumn(0, "filepath")))
- {
- ds_main_matrinfo_detail.setColumn(0, "workfileyn", "Y");
- btn_filedel2.enable = true;
- btn_filedown2.enable = true;
- }
- }
- //작업 공정별 관리요령 삭제
- function btn_filedel2_onclick(obj:Button, e:ClickEventInfo)
- {
- fdelete("2");
- btn_filedel2.enable = false;
- btn_filedown2.enable = false;
- }
- function btn_filedown2_onclick(obj:Button, e:ClickEventInfo)
- {
- if(cmb_fileyn2.value == "Y")
- {
- fdown("2");
- }
- else
- {
- sysf_messageBox("내려받을 첨부 파일이 없습니다.", "E999", "");
- }
- }
- function fupload(flag)
- {
- var fd = new FileDialog();
- fd.filter = "All Files (*.*)|*.*";//"PDF Files(*.pdf)|*.pdf";
- var objVFileList = fd.open("FileOpen", FileDialog.LOAD); // 여러파일 선택\
-
- if( utlf_isNull(objVFileList)){
- return;
- }else{
- ipt_updpath.value = objVFileList.filename;
- ds_attach.clearData();
- var iRow = ds_attach.addRow();
-
- var vfile = dsf_writeFileToDs(objVFileList, ds_attach, iRow, "filedata");
- ds_attach.setColumn(iRow,"attfilenm",objVFileList.filename);
- ds_attach.setColumn(iRow,"filenm",objVFileList.filename);
- ds_attach.setColumn(iRow,"filesize",vfile.filesize);
- ds_attach.setColumn(iRow,"filetype",vfile.filetype);
- }
- if(flag == "1")
- {
- ds_main_matrinfo_detail.setColumn(0, "msdsfilenm", objVFileList.filename);
-
- var oParam = {};
- oParam.id = "TXRSC20203";
- oParam.service = "reqapp.ReqMngt";
- oParam.method = "reqExeSavePurcPrcsPresCondFile";
- oParam.inds = "filepath=ds_filepath attach=ds_attach";
- oParam.outds = "ds_main_filepath=filepath";
- oParam.async = false;
- //oParam.callback = "cf_TXRSC20203";
- tranf_submit(oParam);
-
- if( !utlf_isNull(ds_main_filepath.getColumn(0, "filepath")))
- {
- ds_main_matrinfo_detail.setColumn(0, "msdsfilepath", ds_main_filepath.getColumn(0, "filepath"));
- }
-
- }
- else if(flag == "2")
- {
- ds_main_matrinfo_detail.setColumn(0, "workfilenm", objVFileList.filename);
-
- var oParam = {};
- oParam.id = "TXRSC20203";
- oParam.service = "reqapp.ReqMngt";
- oParam.method = "reqExeSavePurcPrcsPresCondFile";
- oParam.inds = "filepath=ds_filepath attach=ds_attach";
- oParam.outds = "ds_main_filepath=filepath";
- oParam.async = false;
- //oParam.callback = "cf_TXRSC20203";
- tranf_submit(oParam);
-
- if( !utlf_isNull(ds_main_filepath.getColumn(0, "filepath")))
- {
- ds_main_matrinfo_detail.setColumn(0, "workfilepath", ds_main_filepath.getColumn(0, "filepath"));
- }
- }
- }
- function fdelete(flag)
- {
- if(flag == "1")
- {
- ds_delete.setColumn(0, "fiepath", ds_main_matrinfo_detail.getColumn(0, "msdsfilepath"));
- trace(ds_delete.saveXML())
- var oParam = {};
- oParam.id = "TXRSC20204";
- oParam.service = "reqapp.ReqMngt";
- oParam.method = "reqExeDeletePurcPrcsPresCondFile";
- oParam.inds = "req=ds_delete";
- oParam.outds = "";
- oParam.async = false;
- //oParam.callback = "cf_TXRSC20204";
- tranf_submit(oParam);
-
- ds_main_matrinfo_detail.setColumn(0, "msdsfileyn", "N");
- ds_main_matrinfo_detail.setColumn(0, "msdsfilepath", "");
- ds_main_matrinfo_detail.setColumn(0, "msdsfilenm", "");
- }
- else if (flag == "2")
- {
- ds_delete.setColumn(0, "fiepath", ds_main_matrinfo_detail.getColumn(0, "workfilepath"));
-
- var oParam = {};
- oParam.id = "TXRSC20204";
- oParam.service = "reqapp.ReqMngt";
- oParam.method = "reqExeDeletePurcPrcsPresCondFile";
- oParam.inds = "req=ds_delete";
- oParam.outds = "";
- oParam.async = false;
- //oParam.callback = "cf_TXRSC20204";
- tranf_submit(oParam);
-
- ds_main_matrinfo_detail.setColumn(0, "workfileyn", "N");
- ds_main_matrinfo_detail.setColumn(0, "workfilepath", "");
- ds_main_matrinfo_detail.setColumn(0, "workfilenm", "");
- }
- }
- function fdown(flag)
- {
- var filepath = "";
- var filenm = "";
-
- if(flag == "1")
- {
- filepath = ds_main_matrinfo_detail.getColumn(0, "msdsfilepath")
- filenm = ds_main_matrinfo_detail.getColumn(0, "msdsfilenm")
- }
- else if (flag == "2")
- {
- filepath = ds_main_matrinfo_detail.getColumn(0, "workfilepath")
- filenm = ds_main_matrinfo_detail.getColumn(0, "workfilenm")
- }
-
- // var localfile = fd.open("open", FileDialog.LOAD,"%%");
- // files.open(VirtualFile.openRead | VirtualFile.openBinary);
- // files.close();
- var fd = new FileDialog;
- var objVFile = fd.open("FileSave", FileDialog.SAVE, "%MYDOCUMENT%", filenm); // 단일 파일 선택
- if(!utlf_isNull(objVFile))
- {
- dsf_createDsRow("ds_tmep_filepath", [{col : "filepath", val : filepath}]);
-
- var oParam = {};
- oParam.id = "TRRWC03003";
- oParam.service = "paybaseinfomngtapp.PayBaseInfoMngt";
- oParam.method = "reqGetManualAtt";
- oParam.inds = "req=ds_tmep_filepath";
- oParam.outds = "ds_attachfile=attachfile";
- oParam.async = false;
- //oParam.callback = "cf_TRRWC03003";
- tranf_submit(oParam);
-
- var temp = dsf_readFileFromDs(objVFile.fullpath, ds_attachfile, 0, "filedata"); // 파일저장
- if(!utlf_isNull(temp)){
- var rtn = sysf_messageBox("파일을", "Q004");
- if( rtn == 6 )
- {
- system.execShell("\"" + objVFile.fullpath + "\"");
- }
- }
- }
- }
- //저장버튼
- function btn_save_onclick(obj:Button, e:ClickEventInfo)
- {
- fClickSaveBtn();
- }
- // 저장버튼 클릭시 저장 수행 함수
- function fClickSaveBtn()
- {
- if(opt_matrnm.text.length == 0)
- {
- sysf_messageBox("화학물질이 지정되지 않았습니다. " + "\n" + "닫기 버튼을 누른 후 다시 여시기 바랍니다. ", "I999", "");
- return;
- }
- var oParam = {};
- oParam.id = "TXRSM00201";
- oParam.service = "purcbaseapp.PurcBaseMngt";
- oParam.method = "reqExeSaveMatrGen";
- oParam.inds = "detail=ds_main_matrinfo_detail:A alist=ds_main_matrinfo_alist:A blist=ds_main_matrinfo_blist:A clist=ds_main_matrinfo_clist:A";
- oParam.async = false;
- oParam.callback = "cf_TXRSM00201";
- tranf_submit(oParam);
- }
- function cf_TXRSM00201(sSvcId, nErrorCode, sErrorMsg)
- {
- if(nErrorCode < 0) return;
- else
- {
- fGetMatrInfo();
- sysf_messageBox("저장되었습니다. ", "I999", "");
- }
- }
- function btn_close_onclick(obj:Button, e:ClickEventInfo)
- {
- this.close();
- }
- function cbx_1_onclick(obj:CheckBox, e:ClickEventInfo)
- {
- if( obj.value != "Y" ){
- ds_main_matrinfo_detail.setColumn(0, "warnyn1", "");
- }
- }
- function cbx_2_onclick(obj:CheckBox, e:ClickEventInfo)
- {
- if( obj.value != "Y" ){
- ds_main_matrinfo_detail.setColumn(0, "warnyn2", "");
- }
- }
- function cbx_3_onclick(obj:CheckBox, e:ClickEventInfo)
- {
- if( obj.value != "Y" ){
- ds_main_matrinfo_detail.setColumn(0, "warnyn3", "");
- }
- }
- function cbx_4_onclick(obj:CheckBox, e:ClickEventInfo)
- {
- if( obj.value != "Y" ){
- ds_main_matrinfo_detail.setColumn(0, "warnyn4", "");
- }
- }
- function cbx_5_onclick(obj:CheckBox, e:ClickEventInfo)
- {
- if( obj.value != "Y" ){
- ds_main_matrinfo_detail.setColumn(0, "warnyn5", "");
- }
- }
- function cbx_6_onclick(obj:CheckBox, e:ClickEventInfo)
- {
- if( obj.value != "Y" ){
- ds_main_matrinfo_detail.setColumn(0, "warnyn6", "");
- }
- }
- function cbx_7_onclick(obj:CheckBox, e:ClickEventInfo)
- {
- if( obj.value != "Y" ){
- ds_main_matrinfo_detail.setColumn(0, "warnyn7", "");
- }
- }
- function cbx_8_onclick(obj:CheckBox, e:ClickEventInfo)
- {
- if( obj.value != "Y" ){
- ds_main_matrinfo_detail.setColumn(0, "warnyn8", "");
- }
- }
- function cbx_9_onclick(obj:CheckBox, e:ClickEventInfo)
- {
- if( obj.value != "Y" ){
- ds_main_matrinfo_detail.setColumn(0, "warnyn9", "");
- }
- }
- ]]></Script>
- </Form>
- </FDL>
|