123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMRSM00100" position="absolute 0 0 1198 788" titletext="화학물질 코드 등록" oninit="SMRSM00100_oninit" onload="SMRSM00100_onload">
- <Layouts>
- <Layout>
- <Static id="caption6" text="화학물질 코드 등록" class="tit_1" position="absolute 0 0 173 25" anchor="left top"/>
- <Shape id="line2" linetype="horizontal" class="line_6" position="absolute 0 48 1194 54" anchor="left top right"/>
- <Button id="btn_save" taborder="1" text="저장" class="btn4" position="absolute 1137 27 1193 49" onclick="btn_save_onclick" anchor="top right"/>
- <Button id="button1" taborder="2" text="삭제" class="btn4" position="absolute 1079 27 1135 49" onclick="button1_onclick" anchor="top right"/>
- <Button id="btn_prt" taborder="3" text="출력" class="btn6" visible="false" position="absolute 0 27 56 49" anchor="left top"/>
- <Button id="button2" taborder="4" text="신규" class="btn4" position="absolute 1021 27 1077 49" onclick="button2_onclick" anchor="top right"/>
- <Div id="grp_sea" taborder="5" class="div_SA2" position="absolute 0 51 1194 91" anchor="left top right">
- <Layouts>
- <Layout>
- <Static id="caption7" text="물질명" class="search_name" position="absolute 56 12 120 29" anchor="left top"/>
- <Shape id="line5" linetype="vertical" class="line_4" position="absolute 701 9 707 31" anchor="top right"/>
- <Button id="btn_search" taborder="5" text="조회" class="btn1" position="absolute 720 10 776 32" anchor="top right" onclick="grp_sea_btn_search_onclick"/>
- <Static id="caption1" text="(물류)물품코드" class="search_name" position="absolute 246 12 360 29" anchor="left top"/>
- <Edit id="ipt_matrnm_search" taborder="6" class="input_default" position="absolute 124 11 224 30" anchor="left top" autoselect="true"/>
- <Edit id="ipt_goodcd_search" taborder="7" class="input_default" position="absolute 365 11 453 30" anchor="left top" autoselect="true"/>
- <Button id="btn_goodcd_search" taborder="8" class="icon_search" position="absolute 456 11 472 27" anchor="left top" onclick="grp_sea_btn_goodcd_search_onclick"/>
- <Edit id="opt_goodnm_search" taborder="9" readonly="true" position="absolute 474 10 682 29" anchor="left top" class="output"/>
- </Layout>
- </Layouts>
- </Div>
- <Shape id="line3" linetype="horizontal" class="line_10" position="absolute 0 122 450 128" anchor="left top right"/>
- <Shape id="line1" linetype="horizontal" class="line_10" position="absolute 455 122 1187 128" anchor="top right"/>
- <Shape id="line13" linetype="horizontal" class="line_2" position="absolute 456 150 1078 156" anchor="top right"/>
- <Static id="caption21" text="코드 목록" class="tit_2" position="absolute 1 106 82 122" anchor="left top"/>
- <Static id="caption20" text="상세내역" class="tit_2" position="absolute 457 106 532 122" anchor="top right"/>
- <Grid id="grd_matrlist" taborder="6" binddataset="ds_main_matrlist" useinputpanel="false" position="absolute 0 127 450 782" oncellclick="grd_matrlist_oncellclick" anchor="all">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="24"/>
- <Column size="37"/>
- <Column size="198"/>
- <Column size="96"/>
- <Column size="102"/>
- <Column size="89"/>
- <Column size="145"/>
- <Column size="105"/>
- </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="규격"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" text="expr:currow == ds_main_matrlist.rowposition ? '▶' : ''"/>
- <Cell col="1" class="text_center" text="bind:matrcd"/>
- <Cell col="2" style="align:left top;padding:5 2 1 2;" class="text_left" text="bind:matrnm" wordwrap="word"/>
- <Cell col="3" style="align:left top;padding:5 2 1 2;" class="text_left" text="bind:prodcmpynm" wordwrap="word"/>
- <Cell col="4" text="bind:mkdeptnm"/>
- <Cell col="5" class="text_center" text="bind:goodcd"/>
- <Cell col="6" style="align:left top;padding:5 2 1 2;" text="bind:goodnm" wordwrap="word"/>
- <Cell col="7" style="align:left top;padding:5 2 1 2;" text="bind:goodspec" wordwrap="word"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static id="cap_matrcd" text="물질코드" class="cell_1" position="absolute 455 129 605 152" style="align:center middle;" anchor="top right"/>
- <Static id="cap_matrnm" text="물 질 명" class="cell_1" position="absolute 455 154 605 177" style="align:center middle;" anchor="top right"/>
- <Edit id="ipt_matrnm" taborder="7" class="input_essential" position="absolute 608 156 1008 175" anchor="top right"/>
- <Shape id="line4" linetype="horizontal" class="line_2" position="absolute 456 175 1078 181" anchor="top right"/>
- <Static id="caption5" text="MSDS 유무" class="cell_1" position="absolute 793 329 908 352" style="align:center middle;" anchor="top right"/>
- <Shape id="line16" linetype="horizontal" class="line_2" position="absolute 455 325 1077 331" anchor="top right"/>
- <Shape id="line17" linetype="horizontal" class="line_2" position="absolute 455 350 1077 356" anchor="top right"/>
- <Shape id="line18" linetype="horizontal" class="line_2" position="absolute 455 408 1077 414" anchor="top right"/>
- <Static id="caption24" text="제작부서" class="cell_1" position="absolute 455 304 605 327" style="align:center middle;" anchor="top right"/>
- <Static id="caption25" text="(물류)물품코드" class="cell_1" position="absolute 455 179 605 202" style="align:center middle;" anchor="top right"/>
- <Static id="caption27" text="비 고" class="cell_1" position="absolute 455 354 605 410" style="align:center middle;" anchor="top right"/>
- <Static id="caption29" text="최초등록일" class="cell_1" position="absolute 455 329 605 352" style="align:center middle;" anchor="top right"/>
- <Calendar id="ipt_frgstdd" taborder="8" class="input_default" position="absolute 608 331 698 350" mask="yyyy-mm-dd" anchor="top right"/>
- <Shape id="line19" linetype="horizontal" class="line_2" position="absolute 455 200 1077 206" anchor="top right"/>
- <TextArea id="txtea_reason" taborder="9" position="absolute 608 357 1008 409" anchor="top right" wordwrap="word"/>
- <Edit id="ipt_mkdeptcd" taborder="10" class="input_default" position="absolute 608 306 683 325" anchor="top right"/>
- <Button id="btn_mkdeptcd" taborder="11" class="icon_search" position="absolute 684 307 700 323" onclick="btn_mkdeptcd_onclick" anchor="top right"/>
- <Edit id="opt_mkdeptnm" taborder="12" readonly="true" position="absolute 707 306 1008 325" anchor="top right"/>
- <Button id="btn_goodcd" taborder="13" class="icon_search" position="absolute 699 182 715 198" onclick="btn_goodcd_onclick" anchor="top right"/>
- <Edit id="ipt_goodcd" taborder="14" class="input_default" position="absolute 608 181 698 200" anchor="top right"/>
- <Static id="caption2" text="(물류)물품명" class="cell_1" position="absolute 455 204 605 227" style="align:center middle;" anchor="top right"/>
- <Shape id="line7" linetype="horizontal" class="line_2" position="absolute 456 225 1078 231" anchor="top right"/>
- <Edit id="ipt_goodspec" taborder="15" class="input_default" position="absolute 608 231 1008 250" anchor="top right"/>
- <Shape id="line20" linetype="horizontal" class="line_2" position="absolute 456 250 1078 256" anchor="top right"/>
- <Static id="caption11" text="규 격" class="cell_1" position="absolute 455 229 605 252" style="align:center middle;" anchor="top right"/>
- <Shape id="line9" linetype="horizontal" class="line_2" position="absolute 456 275 1078 281" anchor="top right"/>
- <Static id="caption8" text="제조회사" class="cell_1" position="absolute 455 254 605 277" style="align:center middle;" anchor="top right"/>
- <Shape id="line10" linetype="horizontal" class="line_2" position="absolute 456 300 1078 306" anchor="top right"/>
- <Static id="caption12" text="주거래처" class="cell_1" position="absolute 455 279 605 302" style="align:center middle;" anchor="top right"/>
- <Button id="btn_prodcmpycd" taborder="16" class="icon_search" position="absolute 659 257 675 273" onclick="btn_prodcmpycd_onclick" anchor="top right"/>
- <Edit id="ipt_prodcmpycd" taborder="17" class="input_default" position="absolute 608 256 658 275" anchor="top right"/>
- <Edit id="opt_maincustlastsuplplcenm" taborder="18" readonly="true" position="absolute 681 281 1008 300" anchor="top right"/>
- <Edit id="ipt_maincustlastsuplplce" taborder="19" class="input_default" position="absolute 608 281 658 300" anchor="top right"/>
- <Button id="btn_maincustlastsuplplce" taborder="20" class="icon_search" position="absolute 659 282 675 298" onclick="btn_maincustlastsuplplce_onclick" anchor="top right"/>
- <Radio id="rdo_dentyn" taborder="21" columncount="2" rowcount="0" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 918 332 998 352" anchor="top right">
- <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="ipt_goodnm" taborder="22" class="input_default" enable="false" position="absolute 608 206 1008 225" anchor="top right"/>
- <Edit id="ipt_matrcd" taborder="23" class="input_default" enable="false" position="absolute 608 131 698 150" anchor="top right"/>
- <Static id="caption3" text="조사표" class="tit_2" position="absolute 456 473 516 490" anchor="top right"/>
- <Shape id="line6" linetype="horizontal" class="line_10" position="absolute 455 489 1187 495" anchor="top right"/>
- <Grid id="grd_deptlist" taborder="24" binddataset="ds_main_matrinfo_deptlist" useinputpanel="false" position="absolute 455 494 1187 782" onexpandup="grd_deptlist_onexpandup" anchor="top right bottom">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="29"/>
- <Column size="136"/>
- <Column size="86"/>
- <Column size="86"/>
- <Column size="108"/>
- <Column size="55"/>
- <Column size="55"/>
- <Column size="55"/>
- <Column size="55"/>
- <Column size="55"/>
- <Column size="55"/>
- <Column size="55"/>
- <Column size="0"/>
- <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="부서명" 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" rowspan="2" text="연간 사용량" taborder="undefined"/>
- <Cell col="7" rowspan="2" text="1일 취급시간" taborder="undefined"/>
- <Cell col="8" rowspan="2" text="월 작업일수" taborder="undefined"/>
- <Cell col="9" rowspan="2" text="취급자 수" taborder="undefined"/>
- <Cell col="10" rowspan="2" text="소분용기 유무" taborder="undefined"/>
- <Cell col="11" rowspan="2" text="원용기 경고표지" taborder="undefined"/>
- <Cell col="12" text="부서코드"/>
- <Cell col="13" text="물질코드"/>
- <Cell col="14" text="old_부서코드"/>
- <Cell col="15" text="old_취급종료일"/>
- <Cell row="1" col="12" text="부서코드"/>
- <Cell row="1" col="13" text="물질코드"/>
- <Cell row="1" col="14" text="old_부서코드"/>
- <Cell row="1" col="15" text="old_취급종료일"/>
- </Band>
- <Band id="body">
- <Cell celltype="head"/>
- <Cell col="1" displaytype="text" edittype="text" style="align:left top;padding:5 2 1 2;" class="text_left" text="bind:deptnm" wordwrap="word" expandshow="show"/>
- <Cell col="2" displaytype="normal" edittype="date" text="bind:tretopendd" mask="expr:expr:utlf_isNull(tretopendd) || tretopendd == '' ? '' : '####-##-##'"/>
- <Cell col="3" displaytype="date" edittype="date" text="bind:tretclosdd" mask="yyyy-MM-dd" calendardisplaynulltype="none"/>
- <Cell col="4" displaytype="text" edittype="text" style="align:left top;padding:5 2 1 2;" text="bind:usge" wordwrap="word"/>
- <Cell col="5" displaytype="text" edittype="text" style="align:center top;padding:5 0 1 0;" class="text_center" text="bind:useqtym" wordwrap="word"/>
- <Cell col="6" displaytype="text" edittype="text" style="align:center top;padding:5 0 1 0;" class="text_center" text="bind:useqtyy" wordwrap="word"/>
- <Cell col="7" displaytype="text" edittype="text" style="align:center top;padding:5 0 1 0;" class="text_center" text="bind:trethrd" wordwrap="word"/>
- <Cell col="8" displaytype="text" edittype="text" style="align:center top;padding:5 0 1 0;" class="text_center" text="bind:workdcntm" wordwrap="word"/>
- <Cell col="9" displaytype="text" edittype="text" style="align:center top;padding:5 0 1 0;" class="text_center" text="bind:tretmcnt" wordwrap="word"/>
- <Cell col="10" displaytype="combo" edittype="combo" style="align:center top;padding:5 0 1 0;" class="text_center" text="bind:ctnryn" wordwrap="word" combodataset="ds_ctnryn" combocodecol="value" combodatacol="label"/>
- <Cell col="11" displaytype="combo" edittype="combo" style="align:center top;padding:5 0 1 0;" class="text_center" text="bind:ctnrsignyn" wordwrap="word" combodataset="ds_ctnrsignyn" combocodecol="value" combodatacol="label"/>
- <Cell col="12" text="bind:deptcd"/>
- <Cell col="13" text="bind:matrcd"/>
- <Cell col="14" text="bind:old_deptcd"/>
- <Cell col="15" text="bind:old_tretclosdd"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button id="btn_deptexcel" taborder="25" text="엑셀출력" class="btn7" position="absolute 1110 471 1186 490" onclick="btn_deptexcel_onclick" anchor="top right"/>
- <Button id="btn_insert" taborder="26" text="행추가" class="btn2" position="absolute 1000 471 1053 490" onclick="btn_insert_onclick" anchor="top right"/>
- <Button id="btn_delete" taborder="27" text="행삭제" class="btn2" position="absolute 1055 471 1108 490" onclick="btn_delete_onclick" anchor="top right"/>
- <Button id="button4" taborder="28" text="엑셀출력" class="btn7" position="absolute 375 103 450 122" onclick="button4_onclick" anchor="top right"/>
- <Button id="btn_gen" taborder="29" text="화학물질 종합관리" class="btn4" position="absolute 455 442 595 464" onclick="btn_gen_onclick" anchor="top right"/>
- <Edit id="ipt_prodcmpynm" taborder="30" class="input_default" position="absolute 681 256 1008 275" anchor="top right"/>
- <Static id="caption00" text="물질신청" class="cell_1" position="absolute 455 412 605 435" anchor="top right" style="align:center middle;"/>
- <Radio id="rdo_matrflag" taborder="31" columncount="2" rowcount="0" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 608 412 688 432" anchor="top right">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn" size="256"/>
- <Column id="datacolumn" size="256"/>
- </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>
- <Shape id="line00" class="line_2" position="absolute 455 434 1077 440" anchor="top right"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_main_matrlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="matrcd" type="STRING"/>
- <Column id="matrnm" type="STRING"/>
- <Column id="prodcmpynm" type="STRING"/>
- <Column id="mkdeptnm" type="STRING"/>
- <Column id="goodcd" type="STRING"/>
- <Column id="goodnm" type="STRING"/>
- <Column id="goodspec" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_matrinfo_deptlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="deptnm" type="STRING"/>
- <Column id="tretopendd" type="STRING"/>
- <Column id="tretclosdd" type="STRING"/>
- <Column id="usge" type="STRING"/>
- <Column id="useqtym" type="STRING"/>
- <Column id="useqtyy" type="STRING"/>
- <Column id="trethrd" type="STRING"/>
- <Column id="workdcntm" type="STRING"/>
- <Column id="tretmcnt" type="STRING"/>
- <Column id="ctnryn" type="STRING"/>
- <Column id="ctnrsignyn" type="STRING"/>
- <Column id="deptcd" type="STRING"/>
- <Column id="matrcd" type="STRING"/>
- <Column id="old_deptcd" type="STRING"/>
- <Column id="old_tretclosdd" 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="matrnm" type="STRING" size="256"/>
- <Column id="goodcd" type="STRING" size="256"/>
- <Column id="goodnm" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <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"/>
- <Column id="matrcd" type="STRING" size="256"/>
- <Column id="matrnm" type="STRING" size="256"/>
- <Column id="goodcd" type="STRING" size="256"/>
- <Column id="goodnm" type="STRING" size="256"/>
- <Column id="goodspec" type="STRING" size="256"/>
- <Column id="prodcmpycd" type="STRING" size="256"/>
- <Column id="prodcmpynm" type="STRING" size="256"/>
- <Column id="maincustlastsuplplce" type="STRING" size="256"/>
- <Column id="maincustlastsuplplcenm" type="STRING" size="256"/>
- <Column id="mkdeptcd" type="STRING" size="256"/>
- <Column id="mkdeptnm" type="STRING" size="256"/>
- <Column id="frgstdd" type="STRING" size="256"/>
- <Column id="cmt" type="STRING" size="256"/>
- <Column id="msdsflag" type="STRING" size="256"/>
- <Column id="matrflag" 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_hidden_matrinfo_detail" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_hidden_matrinfo_deptlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_ctnryn" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="label" type="STRING" size="256"/>
- <Column id="value" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="label">-</Col>
- </Row>
- <Row>
- <Col id="label">Y</Col>
- <Col id="value">Y</Col>
- </Row>
- <Row>
- <Col id="label">N</Col>
- <Col id="value">N</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_ctnrsignyn" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="label" type="STRING" size="256"/>
- <Column id="value" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="label">-</Col>
- </Row>
- <Row>
- <Col id="label">Y</Col>
- <Col id="value">Y</Col>
- </Row>
- <Row>
- <Col id="label">N</Col>
- <Col id="value">N</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_popgood" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="instcd" type="STRING" size="256"/>
- <Column id="wareflag" type="STRING" size="256"/>
- <Column id="goodcd" type="STRING" size="256"/>
- <Column id="goodnm" type="STRING" size="256"/>
- <Column id="returntype" type="STRING" size="256"/>
- <Column id="selectyn" type="STRING" size="256"/>
- <Column id="matrcd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_send_deptlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="ipt_matrcd" propid="value" datasetid="ds_main_matrinfo_detail" columnid="matrcd"/>
- <BindItem id="item1" compid="ipt_matrnm" propid="value" datasetid="ds_main_matrinfo_detail" columnid="matrnm"/>
- <BindItem id="item2" compid="ipt_goodcd" propid="value" datasetid="ds_main_matrinfo_detail" columnid="goodcd"/>
- <BindItem id="item3" compid="ipt_goodnm" propid="value" datasetid="ds_main_matrinfo_detail" columnid="goodnm"/>
- <BindItem id="item4" compid="ipt_goodspec" propid="value" datasetid="ds_main_matrinfo_detail" columnid="goodspec"/>
- <BindItem id="item5" compid="ipt_prodcmpycd" propid="value" datasetid="ds_main_matrinfo_detail" columnid="prodcmpycd"/>
- <BindItem id="item6" compid="ipt_maincustlastsuplplce" propid="value" datasetid="ds_main_matrinfo_detail" columnid="maincustlastsuplplce"/>
- <BindItem id="item7" compid="ipt_mkdeptcd" propid="value" datasetid="ds_main_matrinfo_detail" columnid="mkdeptcd"/>
- <BindItem id="item8" compid="opt_mkdeptnm" propid="value" datasetid="ds_main_matrinfo_detail" columnid="mkdeptnm"/>
- <BindItem id="item9" compid="opt_maincustlastsuplplcenm" propid="value" datasetid="ds_main_matrinfo_detail" columnid="maincustlastsuplplcenm"/>
- <BindItem id="item10" compid="ipt_prodcmpynm" propid="value" datasetid="ds_main_matrinfo_detail" columnid="prodcmpynm"/>
- <BindItem id="item11" compid="ipt_frgstdd" propid="value" datasetid="ds_main_matrinfo_detail" columnid="frgstdd"/>
- <BindItem id="item12" compid="txtea_reason" propid="value" datasetid="ds_main_matrinfo_detail" columnid="cmt"/>
- <BindItem id="item13" compid="rdo_dentyn" propid="value" datasetid="ds_main_matrinfo_detail" columnid="msdsflag"/>
- <BindItem id="item14" compid="grp_sea.ipt_goodcd_search" propid="value" datasetid="ds_main_condition" columnid="goodcd"/>
- <BindItem id="item15" compid="grp_sea.opt_goodnm_search" propid="value" datasetid="ds_main_condition" columnid="goodnm"/>
- <BindItem id="item16" compid="grp_sea.ipt_matrnm_search" propid="value" datasetid="ds_main_condition" columnid="matrnm"/>
- <BindItem id="item17" compid="rdo_matrflag" propid="value" datasetid="ds_main_matrinfo_detail" columnid="matrflag"/>
- </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";
- var arErrorCode = new HashArray();
- function SMRSM00100_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SMRSM00100_onload(obj:Form, e:LoadEventInfo)
- {
- grdf_initGrid(grd_deptlist);
- grdf_initGrid(grd_matrlist);
- grdf_setRowTypeIcon(grd_deptlist, 0);
- fOpenForm();
- }
- //화면 로드시 초기화 함수
- function fOpenForm()
- {
- misfGridInit(grd_deptlist);
- fGetMatrList();//코드 목록 조회
- }
- //코드 목록 조회 함수
- function fGetMatrList()
- {
- misfGridInit(grd_matrlist);
-
- ds_send.copyData(ds_main_condition);
- //submit("TRRSM00101");
- var oParam = {};
- oParam.id = "TRRSM00101";
- oParam.service = "purcbaseapp.PurcBaseMngt";
- oParam.method = "reqGetMatrList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_matrlist=matrlist";
- oParam.async = false;
- //oParam.callback = "cf_TRRSM00101";
- tranf_submit(oParam);
- }
- function grd_matrlist_oncellclick(obj:Grid, e:GridClickEventInfo)
- {
- var cur_row = ds_main_matrlist.rowposition;
- fGetMatrInfo(cur_row);
- }
- //화학물질 상세정보 및 조사표 조회
- function fGetMatrInfo(pRow)
- {
- if(pRow >= 0)
- {
- //ds_send.copyRow(0, ds_main_matrlist, pRow);
- dsf_createDsRow("ds_temp_search", [{col : "matrcd", val : ds_main_matrlist.getColumn(pRow, "matrcd")}]);
- var oParam = {};
- oParam.id = "TRRSM00102";
- oParam.service = "purcbaseapp.PurcBaseMngt";
- oParam.method = "reqGetMatrInfo";
- oParam.inds = "req=ds_temp_search";
- oParam.outds = "ds_main_matrinfo_detail=detail ds_main_matrinfo_deptlist=deptlist";
- oParam.async = false;
- //oParam.callback = "cf_TRRSM00102";
- tranf_submit(oParam);
- ipt_matrcd.enable = false;
- fCopyInstance();
- }
- }
- //인스턴스 Copy 함수
- function fCopyInstance()
- {
- ds_hidden_matrinfo_deptlist.copyData(ds_main_matrinfo_deptlist);
- ds_hidden_matrinfo_detail.copyData(ds_main_matrinfo_detail);
- }
- function grp_sea_btn_goodcd_search_onclick(obj:Button, e:ClickEventInfo)
- {
- ds_popgood.setColumn(0, "instcd", sysf_getUserInfo("dutplceinstcd"));
- ds_popgood.setColumn(0, "wareflag", ""); //창고별 물품인 경우에는 창고코드 넣어줌( cmb_wareflag.value )
- ds_popgood.setColumn(0, "returntype", "2"); //goodnm도 함께 return 받고자 할때, returntype을 "2" 로 설정.
- //selectyn(popup 창에서 선택버튼을 click했는지 아닌지를 나타내는 구분값) 을 초기화함
- ds_popgood.setColumn(0, "selectyn", "");
- //popup 프로그램 호출
- var objArg = new Object();
- objArg.arg_ds_popdata = ds_popgood;
- frmf_modal("SPRSO20300", "SPRSO20300", objArg, "", "", "", "", "", "", "", "", "", "M");
- //popup에서 특정 물품코드를 선택한 경우, 해당 물품코드에 대한 상세 사항을 보여준다.
- if(ds_popgood.getColumn(0, "selectyn") == "Y") //popup 창에서 선택버튼을 click했는지 아닌지를 나타내는 구분값
- {
- grp_sea.ipt_goodcd_search.value = ds_popgood.getColumn(0, "goodcd");
- grp_sea.opt_goodnm_search.value = ds_popgood.getColumn(0, "goodnm");
- }
- }
- function btn_goodcd_onclick(obj:Button, e:ClickEventInfo)
- {
- ds_popgood.setColumn(0, "instcd", sysf_getUserInfo("dutplceinstcd"));
- ds_popgood.setColumn(0, "wareflag", ""); //창고별 물품인 경우에는 창고코드 넣어줌( cmb_wareflag.value )
- ds_popgood.setColumn(0, "returntype", "2"); //goodnm도 함께 return 받고자 할때, returntype을 "2" 로 설정.
- //selectyn(popup 창에서 선택버튼을 click했는지 아닌지를 나타내는 구분값) 을 초기화함
- ds_popgood.setColumn(0, "selectyn", "");
- //popup 프로그램 호출
- var objArg = new Object();
- objArg.arg_ds_popdata = ds_popgood;
- frmf_modal("SPRSO20300", "SPRSO20300", objArg, "", "", "", "", "", "", "", "", "", "M");
- //popup에서 특정 물품코드를 선택한 경우, 해당 물품코드에 대한 상세 사항을 보여준다.
- if(ds_popgood.getColumn(0, "selectyn") == "Y") //popup 창에서 선택버튼을 click했는지 아닌지를 나타내는 구분값
- {
- ipt_goodcd.value = ds_popgood.getColumn(0, "goodcd");
- ipt_goodnm.value = ds_popgood.getColumn(0, "goodnm");
- }
- }
- function btn_prodcmpycd_onclick(obj:Button, e:ClickEventInfo)
- {
- rszfOpenPopUpListByWndName(ipt_prodcmpycd,"","prodcmpycd,prodcmpynm","SPRSD00160","","");
- }
- function btn_maincustlastsuplplce_onclick(obj:Button, e:ClickEventInfo)
- {
- rszfOpenPopUpListByWndName(ipt_maincustlastsuplplce,"","maincustlastsuplplce,maincustlastsuplplcenm","SPRSD00220");
- }
- function btn_mkdeptcd_onclick(obj:Button, e:ClickEventInfo)
- {
- var vOrigDeptcd = ipt_mkdeptcd.value; //popup을 열기전 부서 저장
-
- var recv_list = "mkdeptcd,mkdeptnm";
- misfOpenPopUpList("02", ipt_mkdeptcd,"", recv_list) ;
- }
- function btn_gen_onclick(obj:Button, e:ClickEventInfo)
- {
- if(ds_main_matrinfo_detail.getColumn(0, "status") == "i")
- {
- sysf_messageBox("신규 코드를 등록 중입니다." + "\n" + "저장 후에 종합관리 내역을 등록할 수 있습니다. ", "I999", "");
- return;
- }
- else if(utlf_transNullToEmpty(ipt_matrcd.value).length == 0)
- {
- sysf_messageBox("화학물질이 선택되지 않았습니다. ", "I999", "");
- return;
- }
- ds_popgood.setColumn(0, "matrcd", ds_main_matrinfo_detail.getColumn(0, "matrcd"));
- var objArg = new Object();
- objArg.arg_ds_popdata = ds_popgood;
- frmf_modal("SMRSM00200", "SMRSM00200", objArg, "", "", "", "", "", "", "", "", "", "M");
- }
- function btn_insert_onclick(obj:Button, e:ClickEventInfo)
- {
- misfGridIUD(grd_deptlist, "A");
-
- ds_main_matrinfo_deptlist.setColumn(ds_main_matrinfo_deptlist.rowposition, "tretclosdd", "99991231");
- }
- function btn_delete_onclick(obj:Button, e:ClickEventInfo)
- {
- var deptrow = ds_main_matrinfo_deptlist.rowposition;
- var arrPostion = new Array();
- arrPostion[0] = deptrow;
- var status = ds_main_matrinfo_deptlist.getRowType(arrPostion)
- if(status == 1)
- {
- grdf_setStatus(grd_deptlist, "D", arrPostion);
- }
- else if(status == 2)
- {
- ds_main_matrinfo_deptlist.deleteRow(deptrow);
- }
- else if(status == 4)
- {
- ds_main_matrinfo_deptlist.deleteRow(deptrow);
- }
- else if(status == 8)
- {
- grdf_setStatus(grd_deptlist, "", arrPostion);
- }
- }
- //코드목록 엑셀출력
- function button4_onclick(obj:Button, e:ClickEventInfo)
- {
- misfSaveExcel(grd_matrlist);
- }
- //조사표 엑셀출력
- function btn_deptexcel_onclick(obj:Button, e:ClickEventInfo)
- {
- misfSaveExcel(grd_deptlist);
- }
- //신규 버튼클릭
- function button2_onclick(obj:Button, e:ClickEventInfo)
- {
- fSetMatrInfo();
- }
- //신규 버턴 클릭시 인스턴스 초기화
- function fSetMatrInfo()
- {
- ipt_matrcd.enable = true;
-
- // 아래 두줄로 변경
- ds_main_matrinfo_detail.clearData();
- ds_main_matrinfo_detail.addRow();
- misfGridInit(grd_deptlist);
-
- ipt_matrcd.setFocus();
- ds_main_matrinfo_detail.setColumn(0, "status", "i");
- ds_main_matrinfo_detail.setColumn(0, "msdsflag", "Y");
- ds_main_matrinfo_detail.setColumn(0, "matrflag", "N");
- // 서식에서 징수의무자 상호(법인명)으로 쓰임. 기본값으로 경북대학교병원장 셋팅.
- fCopyInstance();
- }
- var str_hidden_matrinfo_deptlist = "";
- var str_hidden_matrinfo_detail = "";
- //인스턴스 Copy 함수
- function fCopyInstance()
- {
- ds_hidden_matrinfo_deptlist.copyData(ds_main_matrinfo_deptlist);
- ds_hidden_matrinfo_detail.copyData(ds_main_matrinfo_detail);
-
- str_hidden_matrinfo_deptlist = ds_main_matrinfo_deptlist.saveXML();
- str_hidden_matrinfo_detail = ds_main_matrinfo_detail.saveXML();
- }
- //삭제 버튼클릭
- function button1_onclick(obj:Button, e:ClickEventInfo)
- {
- if( utlf_isNull(ds_main_matrinfo_detail.getColumn(0, "matrcd")))
- {
- sysf_messageBox("삭제할 자료가 없습니다.", "I999", "");
- return;
- }
- if(sysf_messageBox("코드를", "Q001") == 6)
- {
- ds_main_matrinfo_detail.setColumn(0, "status", "d");
- fClickSaveBtn();
- }
- }
- // 저장버튼 클릭시 저장 수행 함수
- function fClickSaveBtn()
- {
- if(!fIsValidForSave())//저장전 유효성 검사
- return;
-
- ds_main_matrinfo_deptlist.enableevent = false;
- ds_main_matrinfo_deptlist.updatecontrol = false;
- for(var i = 0; i < ds_main_matrinfo_deptlist.rowcount; i++)
- {
- ds_main_matrinfo_deptlist.setColumn(i, "matrcd", ipt_matrcd.value)
- }
- ds_main_matrinfo_deptlist.updatecontrol = true;
- ds_main_matrinfo_deptlist.enableevent = true;
-
- var updateData = grdf_getGridUpdateData(grd_deptlist);
- grdf_setStatusColumn(updateData, "status");
- ds_send_deptlist.copyData(updateData, true);
-
- var oParam = {};
- oParam.id = "TXRSM00101";
- oParam.service = "purcbaseapp.PurcBaseMngt";
- oParam.method = "reqExeSaveMatr";
- oParam.inds = "detail=ds_main_matrinfo_detail deptlist=ds_send_deptlist";
- oParam.async = false;
- oParam.callback = "cf_TXRSM00101";
- tranf_submit(oParam);
-
- if(arErrorCode.pop("TXRSM00101") > -1) {
- fGetMatrList();//코드 목록 재조회
-
- ds_send.copyData(ds_main_matrinfo_detail);
-
- var oParam = {};//상세내역 및 조사표 재조회
- oParam.id = "TRRSM00102";
- oParam.service = "purcbaseapp.PurcBaseMngt";
- oParam.method = "reqGetMatrInfo";
- oParam.inds = "req=ds_temp_search";
- oParam.outds = "ds_main_matrinfo_detail=detail ds_main_matrinfo_deptlist=deptlist";
- oParam.async = false;
- tranf_submit(oParam);
-
- fCopyInstance();
-
- ipt_matrcd.enable = false;
- }
- }
- function cf_TXRSM00101(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- //저장전 유효성 검사
- function fIsValidForSave()
- {
- //필수 입력 항목 체크(공통 ftHelper.js)
- if(!frmf_isRequiredControls("ipt_matrcd","ipt_matrnm")) //,"ipt_prodcmpycd"
- {
- return false;
- }
-
- var tretopendd = "";
- var tretclosdd = "";
-
- for(var i = 0; i < ds_main_matrinfo_deptlist.rowcount; i++)
- {
- var arrPostion = new Array();
- arrPostion[0] = ds_main_matrinfo_deptlist.rowposition;
-
- if(ds_main_matrinfo_deptlist.getRowType(i) < 8)//행삭제가 아닌 Record만 check한다.
- {
- if(utlf_isNull(ds_main_matrinfo_deptlist.getColumn(i, "deptcd")))
- {
- sysf_messageBox("부서코드가 입력되지 않았습니다. \n조사표의 부서코드를 확인하십시요. ", "E999", "");
- return false;
- }
-
- tretopendd = utlf_transNullToEmpty(ds_main_matrinfo_deptlist.getColumn(i, "tretopendd"));
- if( tretopendd.length != 8 )
- {
- sysf_messageBox("취급개시일이 정확하게 입력되지 않았습니다. \n취급개시일을 확인하십시요. ", "E999", "");
- return false;
- }
-
- tretclosdd = utlf_transNullToEmpty(ds_main_matrinfo_deptlist.getColumn(i, "tretclosdd"));
- if( tretclosdd.length != 8 )
- {
- sysf_messageBox("취급종료일이 정확하게 입력되지 않았습니다. \n취급종료일을 확인하십시요. ", "E999", "");
- return false;
- }
-
- if( tretopendd > tretclosdd )
- {
- sysf_messageBox("취급개시일이 취급종료일보다 큽니다. 취급일을 확인하십시요. ", "E999", "");
- return false;
- }
- }
- }
- var sStatus = ds_main_matrinfo_detail.getColumn(0, "status");
- var sNewData = ds_main_matrinfo_detail.saveXML();
- var sOldData = str_hidden_matrinfo_detail;
-
- //상세내역에 변경된 정보가 있는지 확인
- if(sNewData != sOldData && sStatus == "-") { // 데이터 수정일 경우
- ds_main_matrinfo_detail.setColumn(0, "status", "u");
- return true;
- } else if(sNewData == sOldData && sStatus == "-" ) { //변경된 값이 없을경우
- return true;
- }else if(sStatus == "i") { //데이터 입력일 경우
- return true;
- }else if(sStatus = "d") { //데이터 삭제일 경우
- return true;
- }
- }
- //저장 버튼클릭
- function btn_save_onclick(obj:Button, e:ClickEventInfo)
- {
- fClickSaveBtn();
- }
- //동일한 Depth의 인스턴스의 값을 스트링형으로 변환
- function fGetNodeText(pNode)
- {
- var trgNdoe = pNode;
- var trgNdoeList = trgNdoe.childNodes;
- var childNode;
- var allText = "";
- while( childNode = trgNdoeList.nextNode())
- {
- allText += childNode.text;
- }
- return allText;
- }
- function grd_deptlist_onexpandup(obj:Grid, e:GridMouseEventInfo)
- {
- if(obj.currentcol == 1)
- {
- misfOpenPopUpList("02", grd_deptlist, "", "deptcd,deptnm");
- }
- }
- function grp_sea_btn_search_onclick(obj:Button, e:ClickEventInfo)
- {
- fGetMatrList();
- }
- ]]></Script>
- </Form>
- </FDL>
|