123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMRSM1600" position="absolute 0 0 1211 804" titletext="특별관리 물질 접수 관리" oninit="SMRSM1600_oninit" onload="SMRSM1600_onload">
- <Layouts>
- <Layout>
- <Static id="caption6" text="특별관리 물질 접수 관리" class="tit_1" position="absolute 0 0 204 25"/>
- <Tab id="switch1" taborder="1" tabindex="0" position="absolute 0 29 1195 793" anchor="all">
- <Tabpages>
- <Tabpage id="case_acpt" text="접수">
- <Layouts>
- <Layout>
- <Static id="caption35" text="부서별 특별물질 내역" class="tit_2" position="absolute 0 75 173 96"/>
- <Shape id="line2" linetype="horizontal" class="line_10" position="absolute 0 93 1195 99" anchor="left top right"/>
- <Grid id="grd_matracptlist" taborder="22" binddataset="ds_main_matrlist" useinputpanel="false" position="absolute 0 98 1195 728" autoenter="select" cellsizingtype="col" anchor="all" selecttype="multirow" tooltiptype="hover" oncellclick="switch1_case_acpt_grd_matracptlist_oncellclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="22"/>
- <Column size="63"/>
- <Column size="81"/>
- <Column size="87"/>
- <Column size="58"/>
- <Column size="159"/>
- <Column size="74"/>
- <Column size="94"/>
- <Column size="91"/>
- <Column size="110"/>
- <Column size="358"/>
- <Column size="0"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24" band="head"/>
- <Row size="80"/>
- <Row size="80"/>
- </Rows>
- <Band id="head">
- <Cell rowspan="2" taborder="undefined"/>
- <Cell col="1" rowspan="2" text="처리내역" taborder="undefined"/>
- <Cell col="2" text="진행상태"/>
- <Cell col="3" text="신청일자"/>
- <Cell col="4" text="신청번호"/>
- <Cell col="5" text="신청부서명 " taborder="undefined"/>
- <Cell col="6" text="신청자"/>
- <Cell col="7" colspan="3" text="작업내용" taborder="undefined"/>
- <Cell col="10" text="특이사항(비고)"/>
- <Cell col="11" text="instcd"/>
- <Cell row="1" col="2" text="물질코드"/>
- <Cell row="1" col="3" colspan="3" text="물질명" taborder="undefined"/>
- <Cell row="1" col="6" text="신청수량" taborder="undefined"/>
- <Cell row="1" col="7" text="출고,반납수량" taborder="undefined"/>
- <Cell row="1" col="8" text="출고일자" taborder="undefined"/>
- <Cell row="1" col="9" text="출고자" taborder="undefined"/>
- <Cell row="1" col="10" text="병리비고(CTRL+ENTER시 다음줄에 기입가능)" taborder="undefined"/>
- <Cell row="1" col="11" text="gubun"/>
- </Band>
- <Band id="body">
- <Cell rowspan="2" celltype="head" taborder="undefined"/>
- <Cell col="1" displaytype="combo" edittype="expr:gubun == '03'||gubun == '04' ||gubun == '05' ? 'none': 'combo'" style="align:center middle;line:1 dotted #808080ff,1 dotted #808080ff,1 solid #808080ff,1 dotted #808080ff;background:EXPR((currow%2 == 0) ? "#ecebecff" : "#ffffffff");background2:EXPR((currow%2 == 0) ? "#ecebecff" : "#ffffffff");color:fuchsia;color2:fuchsia;font:돋움,9,bold;controlbackground:EXPR(gubun == '03' || gubun == '04' ||gubun == '05' ? 'lightgrey': '');" text="bind:flag" taborder="undefined" combodataset="ds_cmb_cmfyn" combocodecol="value" combodatacol="label"/>
- <Cell col="2" style="align:center middle;line:1 dotted #808080ff ;background:BIND(colBack);background2:BIND(colBack);font:굴림,9,bold;" text="bind:gubunnm"/>
- <Cell col="3" displaytype="date" style="line:1 dotted #808080ff ;background:EXPR((currow%2 == 0) ? "#ecebecff" : "#ffffffff");background2:EXPR((currow%2 == 0) ? "#ecebecff" : "#ffffffff");" text="bind:reqdd"/>
- <Cell col="4" style="line:1 dotted #808080ff ;background:EXPR((currow%2 == 0) ? "#ecebecff" : "#ffffffff");background2:EXPR((currow%2 == 0) ? "#ecebecff" : "#ffffffff");" text="bind:reqno"/>
- <Cell col="5" style="align:center middle;padding:4 2 2 2;line:1 dotted #808080ff ;background:EXPR((currow%2 == 0) ? "#ecebecff" : "#ffffffff");background2:EXPR((currow%2 == 0) ? "#ecebecff" : "#ffffffff");" text="bind:reqdeptnm" wordwrap="word"/>
- <Cell col="6" style="align:center middle;padding:4 2 2 2;line:1 dotted #808080ff ;background:EXPR((currow%2 == 0) ? "#ecebecff" : "#ffffffff");background2:EXPR((currow%2 == 0) ? "#ecebecff" : "#ffffffff");" text="bind:reqnm" wordwrap="word" tooltiptext="bind:goodcntnm"/>
- <Cell col="7" colspan="3" style="line:1 dotted #808080ff ;background:EXPR((currow%2 == 0) ? "#ecebecff" : "#ffffffff");background2:EXPR((currow%2 == 0) ? "#ecebecff" : "#ffffffff");" text="bind:workcnts" taborder="undefined"/>
- <Cell col="10" style="align:left middle;line:1 solid #808080ff,1 solid #808080ff,1 dotted #808080ff,1 dotted #808080ff;background:EXPR((currow%2 == 0) ? "#ecebecff" : "#ffffffff");background2:EXPR((currow%2 == 0) ? "#ecebecff" : "#ffffffff");" text="bind:deptcmt"/>
- <Cell col="11" style="background2:lightgrey;" text="bind:instcd"/>
- <Cell row="1" col="1" style="line:1 dotted #808080ff,1 dotted #808080ff,1 solid #808080ff,1 dotted #808080ff;background:EXPR((currow%2 == 0) ? "#ecebecff" : "#ffffffff");background2:EXPR((currow%2 == 0) ? "#ecebecff" : "#ffffffff");" taborder="undefined"/>
- <Cell row="1" col="2" style="line:1 dotted #808080ff,1 dotted #808080ff,1 solid #808080ff,1 dotted #808080ff;background:EXPR((currow%2 == 0) ? "#ecebecff" : "#ffffffff");background2:EXPR((currow%2 == 0) ? "#ecebecff" : "#ffffffff");" text="bind:matrcd"/>
- <Cell row="1" col="3" colspan="3" style="line:1 dotted #808080ff,1 dotted #808080ff,1 solid #808080ff,1 dotted #808080ff;background:EXPR((currow%2 == 0) ? "#ecebecff" : "#ffffffff");background2:EXPR((currow%2 == 0) ? "#ecebecff" : "#ffffffff");" text="bind:matrnm" taborder="undefined"/>
- <Cell row="1" col="6" style="line:1 dotted #808080ff,1 dotted #808080ff,1 solid #808080ff,1 dotted #808080ff;background:EXPR((currow%2 == 0) ? "#ecebecff" : "#ffffffff");background2:EXPR((currow%2 == 0) ? "#ecebecff" : "#ffffffff");font:굴림,9,bold;" text="bind:reqqty" taborder="undefined"/>
- <Cell row="1" col="7" displaytype="number" edittype="masknumber" style="align:center;line:1 dotted #808080ff,1 dotted #808080ff,1 solid #808080ff,1 dotted #808080ff;background:EXPR((currow%2 == 0) ? "#ecebecff" : "#ffffffff");background2:EXPR((currow%2 == 0) ? "#ecebecff" : "#ffffffff");color:crimson;color2:crimson;font:굴림,9,bold;" text="bind:deliveqty" mask="#,##0" taborder="undefined"/>
- <Cell row="1" col="8" displaytype="date" style="line:1 dotted #808080ff,1 dotted #808080ff,1 solid #808080ff,1 dotted #808080ff;background:EXPR((currow%2 == 0) ? "#ecebecff" : "#ffffffff");background2:EXPR((currow%2 == 0) ? "#ecebecff" : "#ffffffff");" text="bind:delivedd" taborder="undefined" calendardisplaynulltype="none"/>
- <Cell row="1" col="9" style="line:1 dotted #808080ff,1 dotted #808080ff,1 solid #808080ff,1 dotted #808080ff;background:EXPR((currow%2 == 0) ? "#ecebecff" : "#ffffffff");background2:EXPR((currow%2 == 0) ? "#ecebecff" : "#ffffffff");" text="bind:delivenm" taborder="undefined"/>
- <Cell row="1" col="10" displaytype="text" edittype="textarea" style="line:1 dotted #808080ff,1 solid #808080ff,1 solid #808080ff,1 dotted #808080ff;background:EXPR((currow%2 == 0) ? "#ecebecff" : "#ffffffff");background2:EXPR((currow%2 == 0) ? "#ecebecff" : "#ffffffff");color:crimson;color2:crimson;font:굴림,9,bold;" text="bind:pathcmt" taborder="undefined"/>
- <Cell row="1" col="11" style="background2:lightgrey;" text="bind:gubun"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Div id="grp_sea" anchor="left top right" taborder="31" class="div_SA2" position="absolute 0 0 1193 65">
- <Layouts>
- <Layout>
- <Button id="btn_sea" taborder="28" text="조회" onclick="switch1_case_compare_grp_sea_btn_sea_onclick" class="btn1" position="absolute 1114 19 1170 41" anchor="top right"/>
- <Static id="caption00" text="기관코드 :" class="search_name" position="absolute 21 8 95 25" anchor="left top" style="align:left middle;"/>
- <Static id="caption7" text="진행상태 :" class="search_name" position="absolute 22 36 105 53" anchor="left top"/>
- <Radio id="rdo_gubun" taborder="29" columncount="6" rowcount="0" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 96 34 498 54" anchor="default">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn" size="256"/>
- <Column id="datacolumn" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">01</Col>
- <Col id="datacolumn">신청</Col>
- </Row>
- <Row>
- <Col id="codecolumn">02</Col>
- <Col id="datacolumn">반납</Col>
- </Row>
- <Row>
- <Col id="codecolumn">03</Col>
- <Col id="datacolumn">예외</Col>
- </Row>
- <Row>
- <Col id="codecolumn">04</Col>
- <Col id="datacolumn">보류</Col>
- </Row>
- <Row>
- <Col id="codecolumn">05</Col>
- <Col id="datacolumn">승인</Col>
- </Row>
- </Rows>
- </Dataset>
- </Radio>
- <Combo id="cmb_instcd" taborder="30" class="combo_default" enable="false" position="absolute 99 7 249 26" anchor="default"/>
- <Static id="caption02" text="부서코드 :" class="search_name" position="absolute 284 10 360 27" anchor="default"/>
- <Edit id="ipt_mngtdeptcd_search" taborder="31" autoselect="true" autoskip="true" enable="false" position="absolute 365 9 440 28" anchor="default" onkillfocus="switch1_case_acpt_grp_sea_ipt_mngtdeptcd_search_onkillfocus"/>
- <Button id="btn_mngtdeptcd_search" taborder="32" class="icon_search" enable="false" position="absolute 444 10 460 26" anchor="default" onclick="switch1_case_acpt_grp_sea_btn_mngtdeptcd_search_onclick"/>
- <Edit id="ipt_mngtdeptnm_search" taborder="33" readonly="true" class="output" position="absolute 464 9 654 28" anchor="default"/>
- <Static id="caption14" text="조회기간 :" class="search_name" position="absolute 668 5 753 30" anchor="default"/>
- <Calendar id="ipt_srchchkfrdd" taborder="34" autoselect="true" autoskip="true" class="combo_default" position="absolute 745 7 848 26" anchor="default"/>
- <Calendar id="ipt_srchchktodd" taborder="35" autoselect="true" autoskip="true" class="combo_default" position="absolute 866 7 969 26" anchor="default"/>
- <Static id="caption42" text="~" position="absolute 851 8 866 28" anchor="default"/>
- <Edit id="opt_matrnm" taborder="36" readonly="true" class="output" position="absolute 821 35 1011 54" anchor="default"/>
- <Button id="btn_matrcd" taborder="37" class="icon_search" position="absolute 801 36 817 52" anchor="default" onclick="switch1_case_acpt_grp_sea_btn_matrcd_onclick"/>
- <Edit id="ipt_matrcd" taborder="38" autoselect="true" autoskip="true" class="input_default" position="absolute 747 35 792 54" anchor="default" onkillfocus="switch1_case_acpt_grp_sea_ipt_matrcd_onkillfocus"/>
- <Static id="caption01" text="물질코드 :" class="search_name" position="absolute 669 35 745 52" anchor="default"/>
- <Shape id="line5" linetype="vertical" class="line_4" position="absolute 1036 7 1080 57" anchor="top right"/>
- </Layout>
- </Layouts>
- </Div>
- <Button id="btn_save" taborder="32" text="처 리" onclick="switch1_case_compare_grp_sea_btn_save_onclick" class="btn5" position="absolute 1108 68 1192 90" anchor="left top right" style="align:center;font:dotum,9,bold;"/>
- <Static id="Static00" text="신청바코드 :" position="absolute 830 71 930 91" style="font:dotum,9,bold;" anchor="default"/>
- <Edit id="ipt_barcode" taborder="34" class="input_default" position="absolute 911 68 1101 91" style="background:lightpink URL('theme://images\bg_gridheadLine.png') stretch 5,5;border:1 solid #808080ff ;align:center;font:dotum,9,bold;" onkeydown="switch1_case_acpt_ipt_barcode_onkeydown" autoselect="true" oneditclick="switch1_case_acpt_ipt_barcode_oneditclick" anchor="default"/>
- <Static id="Static01" text="신청" position="absolute 166 70 201 91" style="background:#fef7c0ff;align:center;font:dotum,9,bold;"/>
- <Static id="Static02" text="반납" position="absolute 206 70 241 91" style="background:#d4d4ffff;align:center;font:dotum,9,bold;"/>
- <Static id="Static03" text="예외" position="absolute 246 70 281 91" style="background:#feccccff;align:center;font:dotum,9,bold;"/>
- <Static id="Static04" text="보류" position="absolute 286 70 321 91" style="background:paleturquoise;align:center;font:dotum,9,bold;"/>
- <Static id="Static05" text="승인" position="absolute 326 70 361 91" style="background:yellowgreen;align:center;font:dotum,9,bold;"/>
- <Div id="Div00" taborder="35" style="border:1 solid #808080ff ;font:dotum,9,bold;" position="absolute 160 67 432 93"/>
- <Static id="Static06" text="반납완료" position="absolute 366 70 424 91" style="background:moccasin;align:center;font:dotum,9,bold;"/>
- </Layout>
- </Layouts>
- </Tabpage>
- <Tabpage id="case_uselist" text="사용현황">
- <Layouts>
- <Layout>
- <Static id="caption7" text="특별관리물질 사용현황 내역" class="tit_2" position="absolute 0 72 215 95" visible="true"/>
- <Shape id="line3" linetype="horizontal" class="line_10" position="absolute 0 90 1195 96" anchor="left top right"/>
- <Static id="caption4" position="absolute 802 48 942 66" style="color:#0000ffff;font:돋움체,10,bold;"/>
- <Button id="btn_excel" taborder="27" text="엑셀" class="btn7" position="absolute 1130 70 1194 89" anchor="top right" onclick="switch1_case_uselist_btn_excel_onclick"/>
- <Div id="grp_sea" anchor="left top right" taborder="28" class="div_SA2" position="absolute 0 0 1193 65">
- <Layouts>
- <Layout>
- <Button id="btn_sea" taborder="39" text="조회" class="btn1" position="absolute 1114 19 1170 41" anchor="top right" onclick="switch1_case_uselist_grp_sea_btn_sea_onclick"/>
- <Static id="caption00" text="기관코드 :" class="search_name" position="absolute 21 8 95 25" anchor="left top" style="align:left middle;"/>
- <Static id="caption7" text="진행상태 :" class="search_name" position="absolute 22 36 105 53" anchor="left top"/>
- <Radio id="rdo_gubun" taborder="40" columncount="6" rowcount="0" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 96 34 498 54">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn" size="256"/>
- <Column id="datacolumn" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">01</Col>
- <Col id="datacolumn">신청</Col>
- </Row>
- <Row>
- <Col id="codecolumn">02</Col>
- <Col id="datacolumn">반납</Col>
- </Row>
- <Row>
- <Col id="codecolumn">03</Col>
- <Col id="datacolumn">예외</Col>
- </Row>
- <Row>
- <Col id="codecolumn">04</Col>
- <Col id="datacolumn">보류</Col>
- </Row>
- <Row>
- <Col id="codecolumn">05</Col>
- <Col id="datacolumn">승인</Col>
- </Row>
- </Rows>
- </Dataset>
- </Radio>
- <Combo id="cmb_instcd" taborder="41" class="combo_default" enable="false" position="absolute 99 7 249 26"/>
- <Static id="caption02" text="부서코드 :" class="search_name" position="absolute 284 10 360 27"/>
- <Edit id="ipt_mngtdeptcd_search" taborder="42" autoselect="true" autoskip="true" onkillfocus="switch1_case_acpt_grp_sea_ipt_mngtdeptcd_search_onkillfocus" enable="false" position="absolute 365 9 440 28"/>
- <Button id="btn_mngtdeptcd_search" taborder="43" onclick="switch1_case_acpt_grp_sea_btn_mngtdeptcd_search_onclick" class="icon_search" enable="false" position="absolute 444 10 460 26"/>
- <Edit id="ipt_mngtdeptnm_search" taborder="44" readonly="true" class="output" position="absolute 464 9 654 28"/>
- <Static id="caption14" text="조회기간 :" class="search_name" position="absolute 668 5 753 30"/>
- <Calendar id="ipt_srchchkfrdd" taborder="45" autoselect="true" autoskip="true" class="combo_default" position="absolute 745 7 848 26"/>
- <Calendar id="ipt_srchchktodd" taborder="46" autoselect="true" autoskip="true" class="combo_default" position="absolute 866 7 969 26"/>
- <Static id="caption42" text="~" position="absolute 851 8 866 28"/>
- <Edit id="opt_matrnm" taborder="47" readonly="true" class="output" position="absolute 821 35 1011 54"/>
- <Button id="btn_matrcd" taborder="48" class="icon_search" position="absolute 801 36 817 52" onclick="switch1_case_uselist_grp_sea_btn_matrcd_onclick"/>
- <Edit id="ipt_matrcd" taborder="49" autoselect="true" autoskip="true" onkillfocus="switch1_case_acpt_grp_sea_ipt_matrcd_onkillfocus" class="input_default" position="absolute 747 35 792 54"/>
- <Static id="caption01" text="물질코드 :" class="search_name" position="absolute 669 35 745 52"/>
- <Shape id="line5" linetype="vertical" class="line_4" position="absolute 1036 7 1080 57" anchor="top right"/>
- </Layout>
- </Layouts>
- </Div>
- <Grid id="grd_uselist" taborder="29" binddataset="ds_main_uselist" autoenter="select" useinputpanel="false" selecttype="multirow" cellsizingtype="col" oncellclick="switch1_case_acpt_grd_matracptlist_oncellclick" position="absolute 0 94 1195 724" anchor="all" tooltiptype="hover">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="22"/>
- <Column size="63"/>
- <Column size="81"/>
- <Column size="87"/>
- <Column size="58"/>
- <Column size="159"/>
- <Column size="59"/>
- <Column size="212"/>
- <Column size="61"/>
- <Column size="74"/>
- <Column size="94"/>
- <Column size="91"/>
- <Column size="50"/>
- <Column size="198"/>
- <Column size="0"/>
- <Column size="87"/>
- <Column size="84"/>
- <Column size="90"/>
- <Column size="186"/>
- <Column size="84"/>
- <Column size="63"/>
- <Column size="63"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="26"/>
- </Rows>
- <Band id="head">
- <Cell taborder="undefined"/>
- <Cell col="1" text="처리내역" taborder="undefined"/>
- <Cell col="2" text="진행상태"/>
- <Cell col="3" text="신청일자"/>
- <Cell col="4" text="신청번호"/>
- <Cell col="5" text="신청부서명 " taborder="undefined"/>
- <Cell col="6" text="물질코드"/>
- <Cell col="7" text="물질명"/>
- <Cell col="8" text="신청수량"/>
- <Cell col="9" text="신청자"/>
- <Cell col="10" colspan="3" text="작업내용" taborder="undefined"/>
- <Cell col="13" text="특이사항(비고)"/>
- <Cell col="14" text="instcd"/>
- <Cell col="15" text="출고,반납수량"/>
- <Cell col="16" text="출고일자"/>
- <Cell col="17" text="출고자"/>
- <Cell col="18" text="병리비고"/>
- <Cell col="19" text="확정일자"/>
- <Cell col="20" text="작성자명"/>
- <Cell col="21" text="확정자명"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" text="expr:currow + 1" taborder="undefined"/>
- <Cell col="1" displaytype="combo" edittype="expr:gubun == '03'||gubun == '04' ||gubun == '05' ? 'none': 'combo'" style="align:center middle;background:EXPR((currow%2 == 0) ? "#ecebecff" : "#ffffffff");background2:EXPR((currow%2 == 0) ? "#ecebecff" : "#ffffffff");color:fuchsia;color2:fuchsia;font:돋움,9,bold;controlbackground:EXPR(gubun == '03' || gubun == '04' ||gubun == '05' ? 'lightgrey': '');" text="bind:flag" taborder="undefined" combodataset="ds_cmb_cmfyn" combocodecol="value" combodatacol="label"/>
- <Cell col="2" style="align:center middle;background:EXPR((currow%2 == 0) ? "#ecebecff" : "#ffffffff");background2:EXPR((currow%2 == 0) ? "#ecebecff" : "#ffffffff");font:굴림,9,bold;" text="bind:gubunnm"/>
- <Cell col="3" displaytype="date" style="background:EXPR((currow%2 == 0) ? "#ecebecff" : "#ffffffff");background2:EXPR((currow%2 == 0) ? "#ecebecff" : "#ffffffff");" text="bind:reqdd"/>
- <Cell col="4" style="background:EXPR((currow%2 == 0) ? "#ecebecff" : "#ffffffff");background2:EXPR((currow%2 == 0) ? "#ecebecff" : "#ffffffff");" text="bind:reqno"/>
- <Cell col="5" style="align:center middle;padding:4 2 2 2;background:EXPR((currow%2 == 0) ? "#ecebecff" : "#ffffffff");background2:EXPR((currow%2 == 0) ? "#ecebecff" : "#ffffffff");" text="bind:reqdeptnm" wordwrap="word"/>
- <Cell col="6" style="background:EXPR((currow%2 == 0) ? "#ecebecff" : "#ffffffff");background2:EXPR((currow%2 == 0) ? "#ecebecff" : "#ffffffff");" text="bind:matrcd"/>
- <Cell col="7" style="background:EXPR((currow%2 == 0) ? "#ecebecff" : "#ffffffff");background2:EXPR((currow%2 == 0) ? "#ecebecff" : "#ffffffff");" text="bind:matrnm"/>
- <Cell col="8" displaytype="number" edittype="masknumber" style="background:EXPR((currow%2 == 0) ? "#ecebecff" : "#ffffffff");background2:EXPR((currow%2 == 0) ? "#ecebecff" : "#ffffffff");" text="bind:reqqty" mask="#,##0"/>
- <Cell col="9" style="align:center middle;padding:4 2 2 2;background:EXPR((currow%2 == 0) ? "#ecebecff" : "#ffffffff");background2:EXPR((currow%2 == 0) ? "#ecebecff" : "#ffffffff");" text="bind:reqnm" wordwrap="word" tooltiptext="bind:goodcntnm"/>
- <Cell col="10" colspan="3" style="background:EXPR((currow%2 == 0) ? "#ecebecff" : "#ffffffff");background2:EXPR((currow%2 == 0) ? "#ecebecff" : "#ffffffff");" text="bind:workcnts" taborder="undefined" tooltiptext="bind:workcnts"/>
- <Cell col="13" style="align:left middle;background:EXPR((currow%2 == 0) ? "#ecebecff" : "#ffffffff");background2:EXPR((currow%2 == 0) ? "#ecebecff" : "#ffffffff");" text="bind:deptcmt" tooltiptext="bind:deptcmt"/>
- <Cell col="14" style="background2:lightgrey;" text="bind:instcd"/>
- <Cell col="15" displaytype="number" edittype="masknumber" style="background:EXPR((currow%2 == 0) ? "#ecebecff" : "#ffffffff");background2:EXPR((currow%2 == 0) ? "#ecebecff" : "#ffffffff");" text="bind:deliveqty" mask="#,##0"/>
- <Cell col="16" displaytype="date" style="background:EXPR((currow%2 == 0) ? "#ecebecff" : "#ffffffff");background2:EXPR((currow%2 == 0) ? "#ecebecff" : "#ffffffff");" text="bind:delivedd" calendardisplaynulltype="none"/>
- <Cell col="17" style="background:EXPR((currow%2 == 0) ? "#ecebecff" : "#ffffffff");background2:EXPR((currow%2 == 0) ? "#ecebecff" : "#ffffffff");" text="bind:delivenm"/>
- <Cell col="18" displaytype="text" edittype="textarea" style="background:EXPR((currow%2 == 0) ? "#ecebecff" : "#ffffffff");background2:EXPR((currow%2 == 0) ? "#ecebecff" : "#ffffffff");" text="bind:pathcmt" tooltiptext="bind:pathcmt"/>
- <Cell col="19" displaytype="date" style="background:EXPR((currow%2 == 0) ? "#ecebecff" : "#ffffffff");background2:EXPR((currow%2 == 0) ? "#ecebecff" : "#ffffffff");" text="bind:cnfmdt" calendardisplaynulltype="none"/>
- <Cell col="20" style="background:EXPR((currow%2 == 0) ? "#ecebecff" : "#ffffffff");background2:EXPR((currow%2 == 0) ? "#ecebecff" : "#ffffffff");" text="bind:writnm"/>
- <Cell col="21" style="background:EXPR((currow%2 == 0) ? "#ecebecff" : "#ffffffff");background2:EXPR((currow%2 == 0) ? "#ecebecff" : "#ffffffff");" text="bind:cnfmnm"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- </Layout>
- </Layouts>
- </Tabpage>
- </Tabpages>
- </Tab>
- <Div id="grp_matrinfo" anchor="top right" taborder="3" style="background:whitesmoke;bordertype:round 4 4 ;shadow:outer 4,4 4 gray;" class="div_SA3" visible="false" position="absolute 679 116 981 363">
- <Layouts>
- <Layout>
- <Grid id="grd_matrinfo" taborder="83" binddataset="ds_matrinfo" useinputpanel="false" cellsizingtype="col" autofittype="col" position="absolute 6 39 298 220" anchor="default" oncelldblclick="grp_matrinfo_grd_matrinfo_oncelldblclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="58"/>
- <Column size="235"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell text="물질코드"/>
- <Cell col="1" text="물질명"/>
- </Band>
- <Band id="body">
- <Cell text="bind:matrcd" tooltiptext="bind:custnm"/>
- <Cell col="1" text="bind:matrnm" tooltiptext="bind:cntctel"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button id="btn_matrcancel" taborder="84" text="창닫기" onclick="grp_matrinfo_btn_matrcancel_onclick" class="btn2" position="absolute 238 223 294 245" anchor="default"/>
- <Static id="caption2" text="특별관리 물질" class="tit_2" position="absolute 12 8 218 24" anchor="default"/>
- <Shape id="line4" class="line_10" position="absolute 6 34 297 40" anchor="left top right"/>
- <Button id="btn_matrinfo" taborder="85" text="검색" class="btn1" visible="false" position="absolute 227 6 295 26" anchor="default" onclick="grp_matrinfo_btn_matrinfo_onclick"/>
- </Layout>
- </Layouts>
- </Div>
- <Static id="st_msg00" text="★ 전산문의 : T.4206" position="absolute 205 0 352 25" style="background:#edffceff;border:1 solid #808080ff ;color:midnightblue;align:center;font:돋움,9,bold;"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_send_oncolumnchanged">
- <ColumnInfo>
- <Column id="instcd" type="STRING" size="256"/>
- <Column id="mngtdeptcd_search" type="STRING" size="256"/>
- <Column id="reqfromdd" type="STRING" size="256"/>
- <Column id="reqtodd" type="STRING" size="256"/>
- <Column id="gubun" type="STRING" size="256"/>
- <Column id="matrcd" type="STRING" size="256"/>
- <Column id="mngtdeptnm_search" type="STRING" size="256"/>
- <Column id="matrnm" type="STRING" size="256"/>
- <Column id="barcode" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_popmatr" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="matrcd" type="STRING" size="256"/>
- <Column id="matrnm" type="STRING" size="256"/>
- <Column id="deptcd" type="STRING" size="256"/>
- <Column id="prodcmpynm" type="STRING" size="256"/>
- <Column id="maincustlastsuplplcenm" type="STRING" size="256"/>
- <Column id="returntype" type="STRING" size="256"/>
- <Column id="selectyn" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="matrcd"/>
- <Col id="matrnm"/>
- <Col id="deptcd"/>
- <Col id="prodcmpynm"/>
- <Col id="maincustlastsuplplcenm"/>
- <Col id="returntype"/>
- <Col id="selectyn"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_matrlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="instcd" type="STRING" size="256"/>
- <Column id="reqdd" type="STRING"/>
- <Column id="reqno" type="STRING" size="256"/>
- <Column id="gubun" type="STRING"/>
- <Column id="deliveqty" type="STRING" size="256"/>
- <Column id="delivedd" type="STRING" size="256"/>
- <Column id="deliveid" type="STRING" size="256"/>
- <Column id="pathcmt" type="STRING" size="256"/>
- <Column id="reqnm" type="STRING" size="256"/>
- <Column id="delivenm" type="STRING" size="256"/>
- <Column id="reqdeptcd" type="STRING" size="256"/>
- <Column id="reqdeptnm" type="STRING" size="256"/>
- <Column id="gubunnm" type="STRING" size="256"/>
- <Column id="status" type="STRING" size="256"/>
- <Column id="colBack" type="STRING" size="256"/>
- <Column id="reqqty" type="STRING" size="256"/>
- <Column id="workcnts" type="STRING" size="256"/>
- <Column id="deptcmt" type="STRING" size="256"/>
- <Column id="matrcd" type="STRING" size="256"/>
- <Column id="matrnm" type="STRING" size="256"/>
- <Column id="deliveflag" type="STRING" size="256"/>
- <Column id="flag" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_send_save_matrlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_cmb_cmfyn" 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/>
- <Row>
- <Col id="label">승인</Col>
- <Col id="value">05</Col>
- </Row>
- <Row>
- <Col id="label">보류</Col>
- <Col id="value">04</Col>
- </Row>
- <Row>
- <Col id="value">06</Col>
- <Col id="label">반납완료</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_uselist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="instcd" type="STRING" size="256"/>
- <Column id="reqdd" type="STRING"/>
- <Column id="reqno" type="STRING" size="256"/>
- <Column id="gubun" type="STRING"/>
- <Column id="deliveqty" type="STRING" size="256"/>
- <Column id="delivedd" type="STRING" size="256"/>
- <Column id="deliveid" type="STRING" size="256"/>
- <Column id="pathcmt" type="STRING" size="256"/>
- <Column id="reqnm" type="STRING" size="256"/>
- <Column id="delivenm" type="STRING" size="256"/>
- <Column id="reqdeptcd" type="STRING" size="256"/>
- <Column id="reqdeptnm" type="STRING" size="256"/>
- <Column id="gubunnm" type="STRING" size="256"/>
- <Column id="status" type="STRING" size="256"/>
- <Column id="colBack" type="STRING" size="256"/>
- <Column id="reqqty" type="STRING" size="256"/>
- <Column id="workcnts" type="STRING" size="256"/>
- <Column id="deptcmt" type="STRING" size="256"/>
- <Column id="matrcd" type="STRING" size="256"/>
- <Column id="matrnm" type="STRING" size="256"/>
- <Column id="deliveflag" type="STRING" size="256"/>
- <Column id="flag" type="STRING" size="256"/>
- <Column id="writnm" type="STRING" size="256"/>
- <Column id="cnfmnm" type="STRING" size="256"/>
- <Column id="cnfmdt" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_matrinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="matrcd" type="STRING" size="256"/>
- <Column id="matrnm" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item16" compid="switch1.case_acpt.grp_sea.rdo_gubun" propid="value" datasetid="ds_send" columnid="gubun"/>
- <BindItem id="item18" compid="switch1.case_acpt.grp_sea.cmb_instcd" propid="value" datasetid="ds_send" columnid="instcd"/>
- <BindItem id="item19" compid="switch1.case_acpt.grp_sea.ipt_mngtdeptcd_search" propid="value" datasetid="ds_send" columnid="mngtdeptcd_search"/>
- <BindItem id="item20" compid="switch1.case_acpt.grp_sea.ipt_mngtdeptnm_search" propid="value" datasetid="ds_send" columnid="mngtdeptnm_search"/>
- <BindItem id="item21" compid="switch1.case_acpt.grp_sea.ipt_srchchkfrdd" propid="value" datasetid="ds_send" columnid="reqfromdd"/>
- <BindItem id="item22" compid="switch1.case_acpt.grp_sea.ipt_srchchktodd" propid="value" datasetid="ds_send" columnid="reqtodd"/>
- <BindItem id="item30" compid="switch1.case_acpt.grp_sea.opt_matrnm" propid="value" datasetid="ds_send" columnid="matrnm"/>
- <BindItem id="item29" compid="switch1.case_acpt.grp_sea.ipt_matrcd" propid="value" datasetid="ds_send" columnid="matrcd"/>
- <BindItem id="item7" compid="switch1.case_acpt.ipt_barcode" propid="value" datasetid="ds_send" columnid="barcode"/>
- <BindItem id="item0" compid="switch1.case_uselist.grp_sea.cmb_instcd" propid="value" datasetid="ds_send" columnid="instcd"/>
- <BindItem id="item1" compid="switch1.case_uselist.grp_sea.ipt_mngtdeptcd_search" propid="value" datasetid="ds_send" columnid="mngtdeptcd_search"/>
- <BindItem id="item2" compid="switch1.case_uselist.grp_sea.ipt_mngtdeptnm_search" propid="value" datasetid="ds_send" columnid="mngtdeptnm_search"/>
- <BindItem id="item3" compid="switch1.case_uselist.grp_sea.ipt_srchchkfrdd" propid="value" datasetid="ds_send" columnid="reqfromdd"/>
- <BindItem id="item4" compid="switch1.case_uselist.grp_sea.ipt_srchchktodd" propid="value" datasetid="ds_send" columnid="reqtodd"/>
- <BindItem id="item5" compid="switch1.case_uselist.grp_sea.rdo_gubun" propid="value" datasetid="ds_send" columnid="gubun"/>
- <BindItem id="item6" compid="switch1.case_uselist.grp_sea.ipt_matrcd" propid="value" datasetid="ds_send" columnid="matrcd"/>
- <BindItem id="item8" compid="switch1.case_uselist.grp_sea.opt_matrnm" propid="value" datasetid="ds_send" columnid="matrnm"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2019-07-26
- * Description :
- ****************************************************************************************/
- 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 SMRSM1600_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SMRSM1600_onload(obj:Form, e:LoadEventInfo)
- {
- fInitialize();
- frmf_addComboItem( "switch1.case_acpt.grp_sea.rdo_gubun", "전체", "", "above");
- frmf_addComboItem( "switch1.case_uselist.grp_sea.rdo_gubun", "전체", "", "above");
- }
- function fInitialize()
- {
- misfGridInit(switch1.case_acpt.grd_matracptlist);
- grdf_setRowTypeIcon(switch1.case_acpt.grd_matracptlist, 0);
-
- misfComboComCdList("C0048",switch1.case_acpt.grp_sea.cmb_instcd,"Y");
- misfComboComCdList("C0048",switch1.case_uselist.grp_sea.cmb_instcd,"Y");
-
- ds_send.setColumn(0, "instcd", sysf_getUserInfo("dutplceinstcd"));
- switch1.case_acpt.grp_sea.ipt_srchchkfrdd.value = utlf_getCurrentDate();
- switch1.case_acpt.grp_sea.ipt_srchchktodd.value = utlf_getCurrentDate();
- ds_send.setColumn(0, "gubun", "");
-
- ds_send.enableevent = false;
-
- if(sysf_getUserInfo("dutplcecd") == "4130100000" || sysf_getUserInfo("dutplcecd") == "4020326000" || sysf_getUserInfo("dutplcecd") == "2210000000"){ //의료정보센터, 근로복지과, 병리과
- switch1.case_acpt.grp_sea.ipt_mngtdeptcd_search.value = sysf_getUserInfo("dutplcecd");
- switch1.case_acpt.grp_sea.ipt_mngtdeptnm_search.value = sysf_getUserInfo("dutplcenm");
- switch1.case_acpt.grp_sea.btn_mngtdeptcd_search.enable = true;
- switch1.case_acpt.grp_sea.ipt_mngtdeptcd_search.enable = true;
- switch1.case_uselist.grp_sea.ipt_mngtdeptcd_search.value = sysf_getUserInfo("dutplcecd");
- switch1.case_uselist.grp_sea.ipt_mngtdeptnm_search.value = sysf_getUserInfo("dutplcenm");
- switch1.case_uselist.grp_sea.btn_mngtdeptcd_search.enable = true;
- switch1.case_uselist.grp_sea.ipt_mngtdeptcd_search.enable = true;
- }else{
- switch1.case_acpt.grp_sea.ipt_mngtdeptcd_search.value = sysf_getUserInfo("dutplcecd");
- switch1.case_acpt.grp_sea.ipt_mngtdeptnm_search.value = sysf_getUserInfo("dutplcenm");
- switch1.case_acpt.grp_sea.btn_mngtdeptcd_search.enable = false;
- switch1.case_acpt.grp_sea.ipt_mngtdeptcd_search.enable = false;
- switch1.case_uselist.grp_sea.ipt_mngtdeptcd_search.value = sysf_getUserInfo("dutplcecd");
- switch1.case_uselist.grp_sea.ipt_mngtdeptnm_search.value = sysf_getUserInfo("dutplcenm");
- switch1.case_uselist.grp_sea.btn_mngtdeptcd_search.enable = false;
- switch1.case_uselist.grp_sea.ipt_mngtdeptcd_search.enable = false;
- }
-
- ds_send.enableevent = true;
-
- // grp_sea.btn_search.click();
- switch1.case_acpt.ipt_barcode.setFocus();
- }
- function switch1_case_acpt_ipt_barcode_onkeydown(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13)
- {
- obj.updateToDataset();
- }
- }
- function ds_send_oncolumnchanged(obj, e)
- {
- if( e.columnid == "mngtdeptcd_search" ){
- var setFocus = this.getFocus();
- switch1.case_acpt.grp_sea.ipt_mngtdeptcd_search.value = e.newvalue;
- switch1.case_acpt.grp_sea.ipt_mngtdeptcd_search.setFocus();
-
- switch1.case_acpt.grp_sea.ipt_mngtdeptnm_search.value = "";
-
- misfValidationCheck("02", "", "mngtdeptcd_search,mngtdeptnm_search" );
-
- setFocus.setFocus();
- }else if(e.columnid == "barcode")
- {
- if(utlf_isNull(e.newvalue))
- {
- return;
- }
-
- var allData = e.newvalue;
- if(switch1.case_acpt.grp_sea.cmb_instcd.value != allData.substr(0,3))
- {
- sysf_messageBox("신청물질의 기관코드가 일치하지 않아 처리할 수 없습니다. ", "I999", "");
- return;
- }
- var reqdd = allData.substr(3,8);
- var reqdeptcd = allData.substr(11,10)
-
- ds_send.setColumn(0, "reqfromdd", allData.substr(3,8));
- ds_send.setColumn(0, "reqtodd", allData.substr(3,8));
- ds_send.setColumn(0, "mngtdeptcd_search", allData.substr(11,10));
- switch1.case_acpt.grp_sea.ipt_mngtdeptcd_search.setFocus();
- var eInfo = new EventInfo();
- eInfo.columnid = "mngtdeptcd_search";
- eInfo.newvalue = allData.substr(11,10);
- ds_send_oncolumnchanged(ds_send, eInfo);
-
- ds_send.setColumn(0, "gubun", "");
- ds_send.setColumn(0, "matrcd", "");
- ds_send.setColumn(0, "matrnm", "");
-
- switch1.case_acpt.grp_sea.ipt_matrcd.setFocus();
- switch1.case_acpt.ipt_barcode.setFocus();
- switch1.case_acpt.grp_sea.btn_sea.click();
- }
- }
- function switch1_case_acpt_grp_sea_ipt_mngtdeptcd_search_onkillfocus(obj:Edit, e:KillFocusEventInfo)
- {
- if(utlf_isNull(ds_send.getColumn(0,"mngtdeptcd_search"))){
- ds_send.setColumn(0,"mngtdeptnm_search","");
- }
- }
- function switch1_case_acpt_grp_sea_btn_mngtdeptcd_search_onclick(obj:Button, e:ClickEventInfo)
- {
- misfOpenPopUpList("02", switch1.case_acpt.grp_sea.ipt_mngtdeptcd_search,"","mngtdeptcd_search,mngtdeptnm_search");
- }
- function switch1_case_acpt_grp_sea_ipt_matrcd_onkillfocus(obj:Edit, e:KillFocusEventInfo)
- {
- if(utlf_isNull(ds_send.getColumn(0,"matrcd"))){
- ds_send.setColumn(0,"matrnm","");
- }
- }
- function switch1_case_acpt_grp_sea_btn_matrcd_onclick(obj:Button, e:ClickEventInfo)
- {
- ds_popmatr.clearData();
- ds_popmatr.addRow();
-
- ds_popmatr.setColumn(0, "deptcd", switch1.case_acpt.grp_sea.ipt_mngtdeptcd_search.value);
- ds_popmatr.setColumn(0, "selectyn", "");
-
- var objArg = new Object();
- objArg.arg_ds_popdata = ds_popmatr;
-
- frmf_modal("SPRSM00100", "SPRSM00100", objArg, "", "", "", "", "", "", "", "", "", "M");
-
- if(ds_popmatr.getColumn(0, "selectyn") == "Y")
- {
- //misfGridInit(switch1.case_acpt.grd_matracptlist);
-
- ds_send.setColumn(0, "matrnm", ds_popmatr.getColumn(0, "matrnm"));
- ds_send.setColumn(0, "matrcd", ds_popmatr.getColumn(0, "matrcd"));
- }
- }
- function switch1_case_compare_grp_sea_btn_sea_onclick(obj:Button, e:ClickEventInfo)
- {
- ds_main_matrlist.clearData();
-
- if(String(ds_send.getColumn(0, "reqfromdd")).length != 8 )
- {
- sysf_messageBox("조회기간을 정확하게 입력하십시요. ", "E999", "");
- switch1.case_acpt.grp_sea.ipt_srchchkfrdd.setFocus();
- return;
- }
-
- if(String(ds_send.getColumn(0, "reqtodd")).length != 8 )
- {
- sysf_messageBox("조회기간을 정확하게 입력하십시요. ", "E999", "");
- switch1.case_acpt.grp_sea.ipt_srchchktodd.setFocus();
- return;
- }
- if( utlf_isNull(ds_send.getColumn(0, "mngtdeptcd_search")) ){
- sysf_messageBox("부서코드는", "I003");
- switch1.case_acpt.grp_sea.ipt_mngtdeptcd_search.setFocus();
- return false;
- }
-
- var oParam = {};
- oParam.id = "TRRSM01601";
- oParam.service = "purcbaseapp.PurcBaseMngt";
- oParam.method = "reqGetMatrAcptList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_matrlist=matracptlist";
- oParam.async = false;
- //oParam.callback = "cf_TRRSM01601";
- tranf_submit(oParam);
- var cnt = ds_main_matrlist.rowcount;
- if(cnt == 0)
- {
- sysf_messageBox("리스트가 존재하지" ,"I011");
- }
-
- ds_main_matrlist.addColumn("colBack", "string");
- ds_main_matrlist.enableevent = false;
- ds_main_matrlist.updatecontrol = false;
-
- for(var i = 0; i < ds_main_matrlist.rowcount; i++)
- {
- var flag = ds_main_matrlist.getColumn(i, "gubunnm");
- var gubun = ds_main_matrlist.getColumn(i, "gubun");
- if(flag == "신청"){
- ds_main_matrlist.setColumn(i, "colBack", "#fef7c0ff");
- }else if(flag == "반납"){
- ds_main_matrlist.setColumn(i, "colBack", "#d4d4ffff");
- }else if(flag == "예외"){
- ds_main_matrlist.setColumn(i, "colBack", "#feccccff");
- }else if (flag == "보류"){
- ds_main_matrlist.setColumn(i, "colBack", "paleturquoise");
- }else if (flag == "승인"){
- ds_main_matrlist.setColumn(i, "colBack", "yellowgreen");
- }else {
- ds_main_matrlist.setColumn(i, "colBack", "moccasin");
- }
-
- //if(gubun == "03"){
- //switch1.case_acpt.grd_matracptlist.setCellProperty
- //}
- }
-
- ds_main_matrlist.updatecontrol = true;
- ds_main_matrlist.enableevent = true;
-
- }
- function switch1_case_acpt_grd_matracptlist_oncellclick(obj:Grid, e:GridClickEventInfo)
- {
- var deliveflag = ds_main_matrlist.getColumn(ds_main_matrlist.rowposition,"deliveflag");
- if(deliveflag == "Y" ||deliveflag == "1" ){
- if(e.cell == 13){
- ds_main_matrlist.setColumn(ds_main_matrlist.rowposition,"deliveqty",ds_main_matrlist.getColumn(ds_main_matrlist.rowposition,"reqqty"));
- }
- }
- }
- function switch1_case_compare_grp_sea_btn_save_onclick(obj:Button, e:ClickEventInfo)
- {
-
- for(var i = 0; i < ds_main_matrlist.rowcount; i++){
-
- var flag = ds_main_matrlist.getColumn(i,"flag");
- var gubun = ds_main_matrlist.getColumn(i,"gubun");
- var delivenm = ds_main_matrlist.getColumn(i,"delivenm");
- var deliveqty = ds_main_matrlist.getColumn(i,"deliveqty");
- var reqqty = Number(ds_main_matrlist.getColumn(i,"reqqty"));
-
- // if(gubun == "03" || gubun == "04" || gubun == "05"){ //예외,보류,승인
- // if(!utlf_isNull(delivenm)){ //출고자
- // sysf_messageBox("이미 승인 또는 보류된 내역이 있습니다.", "I999", "");
- // switch1.case_acpt.grp_sea.btn_sea.click();
- // return;
- // }
- // }else{
- if(flag == '04' || flag =='05'|| flag =='06'){ //처리체크
- if(gubun == '02' && flag != '06'){ //반납
- sysf_messageBox(parseInt(i+1)+"번째 물질명 [" + ds_main_matrlist.getColumn(i, "matrnm") + "] 진행상태가 반납일경우 처리내역은 반납완료로 처리해야합니다.", "I999", "");
- return;
- }
-
- if(utlf_isNull(delivenm)){ //출고자
- if(utlf_isNull(deliveqty)){
- if(flag == "04"){ //보류
- ds_main_matrlist.setColumn(i, "deliveqty", "0");
- }else{
- sysf_messageBox(parseInt(i+1)+"번째 물질명 [" + ds_main_matrlist.getColumn(i, "matrnm") + "] 출고,반납수량은 필수입니다.", "I999", "");
- return;
- }
- }else{
- if( deliveqty > reqqty ){
- sysf_messageBox(parseInt(i+1)+"번째 물질명 [" + ds_main_matrlist.getColumn(i, "matrnm") + "] 신청수량보다 출고,반납 수량이 더 많을 수", "I004");
- return;
- }
- }
- // }else{
- // sysf_messageBox("이미 승인된 내역이 있습니다.", "I999", "");
- // switch1.case_acpt.grp_sea.btn_sea.click();
- // return;
- }
- }else{
- sysf_messageBox(parseInt(i+1)+"번째 물질명 [" + ds_main_matrlist.getColumn(i, "matrnm") + "] 처리내역을 선택해해주세요!", "I999", "");
- return;
- }
-
- // }
- }
-
- updtdatacnt = grdf_getGridUpdateData(switch1.case_acpt.grd_matracptlist).rowcount;
- if(updtdatacnt == 0)
- {
- sysf_messageBox("처리할 데이터가 ","E014");
- return false;
- }
- else
- {
- var updateData = grdf_getGridUpdateData(switch1.case_acpt.grd_matracptlist);
- grdf_setStatusColumn(updateData, "status");
- ds_send_save_matrlist.copyData(updateData);
-
- var oParam = {};
- oParam.id = "TXRSM01602";
- oParam.service = "purcbaseapp.PurcBaseMngt";
- oParam.method = "reqExeMatrCmfList";
- oParam.inds = "req=ds_send_save_matrlist";
- oParam.outds = "";
- oParam.async = false;
- oParam.callback = "cf_TXRSM01602";
- tranf_submit(oParam);
- }
- }
- function cf_TXRSM01602(sSvcId, nErrorCode, sErrorMsg)
- {
- if(nErrorCode < 0)
- {
- return;
- }
- else
- {
- switch1.case_acpt.grp_sea.btn_sea.click();
- sysf_messageBox("처리가", "I002");
- }
- }
- function switch1_case_acpt_ipt_barcode_oneditclick(obj:Edit, e:EditClickEventInfo)
- {
- switch1.case_acpt.ipt_barcode.value = "";
- }
- function switch1_case_uselist_btn_excel_onclick(obj:Button, e:ClickEventInfo)
- {
- misfSaveExcel(grd_uselist);
- }
- function switch1_case_uselist_grp_sea_btn_matrcd_onclick(obj:Button, e:ClickEventInfo)
- {
- grp_matrinfo.visible = true;
- grp_matrinfo.setFocus(true);
-
- var oParam = {};
- oParam.id = "TRRSM01502";
- oParam.service = "purcbaseapp.PurcBaseMngt";
- oParam.method = "reqGetMatrCode";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_matrinfo=matrcode";
- oParam.async = false;
- //oParam.callback = "cf_TRRSM01301";
- tranf_submit(oParam);
- }
- function grp_matrinfo_btn_matrinfo_onclick(obj:Button, e:ClickEventInfo)
- {
- var oParam = {};
- oParam.id = "TRRSM01502";
- oParam.service = "purcbaseapp.PurcBaseMngt";
- oParam.method = "reqGetMatrCode";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_matrinfo=matrcode";
- oParam.async = false;
- //oParam.callback = "cf_TRRSM01301";
- tranf_submit(oParam);
- }
- function grp_matrinfo_grd_matrinfo_oncelldblclick(obj:Grid, e:GridClickEventInfo)
- {
- if(ds_matrinfo.rowcount == 0)
- {
- return;
- }
- ds_send.setColumn(0, "matrcd", ds_matrinfo.getColumn(ds_matrinfo.rowposition, "matrcd"));
- ds_send.setColumn(0, "matrnm", ds_matrinfo.getColumn(ds_matrinfo.rowposition, "matrnm"));
-
- grp_matrinfo.visible = false;
- }
- function grp_matrinfo_btn_matrcancel_onclick(obj:Button, e:ClickEventInfo)
- {
- grp_matrinfo.visible = false;
- }
- function switch1_case_uselist_grp_sea_btn_sea_onclick(obj:Button, e:ClickEventInfo)
- {
- ds_main_uselist.clearData();
-
- if(String(ds_send.getColumn(0, "reqfromdd")).length != 8 )
- {
- sysf_messageBox("조회기간을 정확하게 입력하십시요. ", "E999", "");
- switch1.case_uselist.grp_sea.ipt_srchchkfrdd.setFocus();
- return;
- }
-
- if(String(ds_send.getColumn(0, "reqtodd")).length != 8 )
- {
- sysf_messageBox("조회기간을 정확하게 입력하십시요. ", "E999", "");
- switch1.case_uselist.grp_sea.ipt_srchchktodd.setFocus();
- return;
- }
-
- var oParam = {};
- oParam.id = "TRRSM01602";
- oParam.service = "purcbaseapp.PurcBaseMngt";
- oParam.method = "reqGetSmUseList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_uselist=uselist";
- oParam.async = false;
- //oParam.callback = "cf_TRRSM01602";
- tranf_submit(oParam);
- var cnt = ds_main_uselist.rowcount;
- if(cnt == 0)
- {
- sysf_messageBox("리스트가 존재하지" ,"I011");
- }
- }
- ]]></Script>
- </Form>
- </FDL>
|