123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMRSE01700" position="absolute 0 0 1195 785" titletext="DEMO 장비 신청" scrollbars="none" oninit="SMRSE01700_oninit" onload="SMRSE01700_onload">
- <Layouts>
- <Layout>
- <Static id="Static00" text="** 데모장비 사용으로 발생하는 모든 제반 문제는 사용부서에 있습니다. ** ** 부서장 승인 후 접수절차가 진행됩니다. **" position="absolute 627 117 1190 163" style="background:pink;border:1 solid black aquamarine;color:indigo;bordertype:roundjoin 5 5 ;align:center;font:맑은 고딕,12,bold antialias;" anchor="left top right" onclick="Static00_onclick"/>
- <Shape id="roundrect4" type="roundrectangle" class="roundrect_search" position="absolute 627 363 1195 390" style="strokepen:1 solid #3366ffff;fillbrush:solid #fffbf2ff true;" anchor="left top right"/>
- <Static text="DEMO 장비 신청" position="absolute 0 0 160 25" id="caption0" class="tit_1"/>
- <Div id="div_search" anchor="left top right" taborder="0" class="div_SA" position="absolute 0 25 1195 85">
- <Layouts>
- <Layout>
- <Static id="Static01" text="기관코드 :" class="search_name" position="absolute 18 7 92 27" anchor="default"/>
- <Shape id="Shape0" linetype="vertical" position="absolute 1110 18 1122 42" anchor="top right"/>
- <Button id="btn_search" taborder="10" text="조회" onclick="div_search_btn_search_onclick" class="btn1" position="absolute 1129 19 1184 41" anchor="top right"/>
- <Combo id="cmb_instcd" taborder="0" position="absolute 98 8 236 27" anchor="default" index="-1" codecolumn="codecolumn" datacolumn="datacolumn" enable="false">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn" size="256"/>
- <Column id="datacolumn" size="256"/>
- </ColumnInfo>
- <Rows/>
- </Dataset>
- </Combo>
- <Static id="Static03" text="신청부서 :" class="search_name" position="absolute 18 33 92 53" anchor="default"/>
- <Edit id="ipt_reqdeptcd" taborder="4" class="input_default" position="absolute 98 34 176 53" anchor="default" onkeydown="div_search_ipt_reqdeptcd_onkeydown" autoselect="true"/>
- <Button id="btn_reqdeptcd" taborder="5" class="icon_search" position="absolute 181 36 197 52" anchor="default" onclick="div_search_btn_reqdeptcd_onclick"/>
- <Edit id="ipt_reqdeptnm" taborder="6" class="output" position="absolute 201 34 299 53" enable="false" anchor="default"/>
- <Static id="Static02" text="신청기간 :" class="search_name" position="absolute 341 7 415 27" anchor="default"/>
- <Calendar id="ipt_reqfromdd" taborder="1" class="input_essential" position="absolute 422 8 512 27" anchor="default" autoselect="true"/>
- <Static id="caption14" text="~" class="search_no_b" position="absolute 517 9 529 26" anchor="default"/>
- <Calendar id="ipt_reqtodd" taborder="2" class="input_essential" position="absolute 531 8 621 27" anchor="default" autoselect="true"/>
- <Static id="Static00" text="접수구분 :" class="search_name" position="absolute 664 7 738 27" anchor="default"/>
- <Combo id="cmb_acptstat" taborder="3" position="absolute 741 8 819 27" codecolumn="codecolumn" datacolumn="datacolumn" index="0" text="전체" anchor="default">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn" size="256"/>
- <Column id="datacolumn" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn"/>
- <Col id="datacolumn">전체</Col>
- </Row>
- <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>
- </Rows>
- </Dataset>
- </Combo>
- <Static id="Static04" text="설치장소 :" class="search_name" position="absolute 341 33 415 53" anchor="default"/>
- <Edit id="ipt_installplcecd" taborder="7" class="input_default" position="absolute 421 34 499 53" anchor="default" onkeydown="div_search_ipt_installplcecd_onkeydown" autoselect="true"/>
- <Button id="btn_installplcecd" taborder="8" class="icon_search" position="absolute 504 36 520 52" anchor="default" onclick="div_search_btn_installplcecd_onclick"/>
- <Edit id="ipt_installplcenm" taborder="9" class="output" enable="false" position="absolute 524 34 622 53" anchor="default"/>
- </Layout>
- </Layouts>
- </Div>
- <Button id="btn_init" taborder="40" text="초기화" class="btn4" position="absolute 1129 1 1195 23" anchor="top right" onclick="btn_init_onclick"/>
- <Button id="btn_save" taborder="39" text="저장" class="btn4" position="absolute 1071 1 1127 23" anchor="top right" onclick="btn_save_onclick"/>
- <Static id="caption01" text="신청현황" class="tit_2" position="absolute 0 95 82 117"/>
- <Shape id="line00" class="line_10" position="absolute 0 112 624 118"/>
- <Button id="btn_excelDown" taborder="3" text="엑셀" class="btn7" position="absolute 571 92 624 111" onclick="btn_excelDown_onclick"/>
- <Button id="btn_expand" taborder="2" text="확대보기" class="btn2" position="absolute 506 92 569 111" onclick="btn_expand_onclick"/>
- <Static id="caption02" text="신청내역" class="tit_2" position="absolute 629 95 711 117"/>
- <Shape id="line01" class="line_10" position="absolute 629 112 1195 118" anchor="left top right"/>
- <Button id="btn_del" taborder="38" text="삭제" class="btn2" position="absolute 1062 92 1105 111" anchor="top right" onclick="btn_del_onclick"/>
- <Button id="btn_new" taborder="37" text="신규" class="btn2" position="absolute 1017 92 1060 111" anchor="top right" onclick="btn_new_onclick"/>
- <Static id="caption47" text="신청일자" class="cell_1" position="absolute 629 164 719 187"/>
- <Static id="caption03" text="신청부서" class="cell_1" position="absolute 629 189 719 212"/>
- <Shape id="line6" class="line_2" position="absolute 629 185 1195 191" anchor="left top right"/>
- <Shape id="line02" class="line_2" position="absolute 629 210 1195 216" anchor="left top right"/>
- <Static id="caption04" text="신청자" class="cell_1" position="absolute 912 189 1002 212"/>
- <Static id="caption05" text="연락처" class="cell_1" position="absolute 629 214 719 237"/>
- <Shape id="line04" class="line_2" position="absolute 629 235 1195 241" anchor="left top right"/>
- <Static id="caption06" text="장비명(한)" class="cell_1" position="absolute 629 239 719 262"/>
- <Shape id="line05" class="line_2" position="absolute 629 260 1195 266" anchor="left top right"/>
- <Static id="caption07" text="장비명(영)" class="cell_1" position="absolute 629 264 719 287"/>
- <Shape id="line07" class="line_2" position="absolute 629 285 1195 291" anchor="left top right"/>
- <Static id="caption08" text="규격" class="cell_1" position="absolute 629 289 719 312"/>
- <Shape id="line08" class="line_2" position="absolute 629 310 1195 316" anchor="left top right"/>
- <Static id="caption09" text="추정가액(원)" class="cell_1" position="absolute 629 314 719 337"/>
- <Shape id="line09" class="line_2" position="absolute 629 335 1195 341" anchor="left top right"/>
- <Static id="caption10" text="제조사" class="cell_1" position="absolute 629 339 719 362"/>
- <Static id="caption11" text="제공업체" class="cell_2" position="absolute 629 365 719 388" style="background:ivory;"/>
- <Static id="caption12" text="데모기간" class="cell_1" position="absolute 629 391 719 414"/>
- <Shape id="line12" class="line_2" position="absolute 629 412 1195 418" anchor="left top right"/>
- <Static id="caption13" text="설치장소" class="cell_1" position="absolute 629 416 719 439"/>
- <Shape id="line13" class="line_2" position="absolute 629 437 1195 443" anchor="left top right"/>
- <Static id="caption14" text="데모 사용목적" class="cell_1" position="absolute 629 441 719 487"/>
- <Shape id="line14" class="line_2" position="absolute 629 485 1195 491" anchor="left top right"/>
- <Static id="caption15" text="소모품 사용여부" class="cell_1" position="absolute 629 489 729 512"/>
- <Shape id="line15" class="line_2" position="absolute 629 510 1195 516" anchor="left top right"/>
- <Static id="caption16" text="연장여부" class="cell_1" position="absolute 629 514 719 537"/>
- <Static id="caption17" text="승인일자" class="cell_1" position="absolute 629 649 719 672" style="background:#d4d4ffff;"/>
- <Shape id="line17" class="line_2" position="absolute 629 670 1195 676" anchor="left top right"/>
- <Static id="caption18" text="접수내역" class="tit_2" position="absolute 629 683 711 705"/>
- <Shape id="line18" class="line_10" position="absolute 629 700 1195 706" anchor="left top right"/>
- <Static id="caption19" text="접수일자" class="cell_1" position="absolute 629 705 719 728" style="background:#fef7c0ff;"/>
- <Shape id="line19" class="line_2" position="absolute 629 726 1195 732" anchor="left top right"/>
- <Calendar id="ipt_reqdd" taborder="4" class="input_search" position="absolute 721 166 809 185" enable="false"/>
- <Static id="caption20" text="신청번호" class="cell_1" position="absolute 826 164 906 187"/>
- <Edit id="ipt_reqno" taborder="5" class="input_default" position="absolute 908 166 1008 185" enable="false"/>
- <Edit id="ipt_reqdeptcd" taborder="6" class="input_default" position="absolute 721 191 801 210" enable="false"/>
- <Edit id="ipt_reqdeptnm" taborder="7" class="output" position="absolute 806 191 907 210" tooltiptype="hover" readonly="true"/>
- <Edit id="ipt_reqid" taborder="8" class="input_default" enable="false" position="absolute 1004 191 1084 210"/>
- <Edit id="ipt_reqnm" taborder="9" class="output" position="absolute 1089 191 1190 210" readonly="true" tooltiptype="hover"/>
- <Edit id="ipt_reqtel" taborder="10" class="input_essential" position="absolute 721 216 821 235" autoselect="true"/>
- <Static id="caption21" text="휴대폰" class="cell_1" position="absolute 826 214 906 237"/>
- <Edit id="ipt_reqhp" taborder="11" class="input_default" position="absolute 908 216 1008 235" autoselect="true"/>
- <Edit id="ipt_goodflaghngnm" taborder="12" class="input_essential" position="absolute 721 241 1190 260" anchor="left top right" autoselect="true"/>
- <Edit id="ipt_goodflagengnm" taborder="13" class="input_essential" position="absolute 721 266 1190 285" anchor="left top right" autoselect="true"/>
- <Edit id="ipt_goodspec" taborder="14" class="input_essential" position="absolute 721 291 1190 310" anchor="left top right" autoselect="true"/>
- <MaskEdit id="ipt_costamt" taborder="15" mask="#,##0" class="input_default" position="absolute 721 316 821 335" autoselect="true"/>
- <Static id="caption22" text="수량" class="cell_1" position="absolute 826 314 906 337"/>
- <MaskEdit id="ipt_fixasetqty" taborder="16" class="input_essential" position="absolute 908 316 1008 335" mask="#,##0" autoselect="true"/>
- <Edit id="ipt_prodcmpy" taborder="17" class="input_essential" position="absolute 721 341 906 360" autoselect="true"/>
- <Edit id="ipt_suplplce" taborder="18" class="input_essential" position="absolute 721 367 851 386" autoselect="true" tooltiptype="hover"/>
- <Static id="caption23" text="담당자" class="cell_2" position="absolute 856 365 936 388" style="background:ivory;"/>
- <Edit id="ipt_supnm" taborder="19" class="input_essential" position="absolute 938 367 1008 386" autoselect="true"/>
- <Static id="caption24" text="담당자 H.P" class="cell_2" position="absolute 1013 365 1093 388" style="background:ivory;"/>
- <Edit id="ipt_suphp" taborder="20" class="input_essential" position="absolute 1095 367 1189 386" anchor="left top right" autoselect="true"/>
- <Calendar id="ipt_demofrdd" taborder="21" class="input_essential" position="absolute 721 393 811 412" autoselect="true"/>
- <Static id="caption25" text="~" class="search_no_b" position="absolute 816 394 828 411"/>
- <Calendar id="ipt_demotodd" taborder="22" class="input_essential" position="absolute 830 393 920 412" autoselect="true"/>
- <Edit id="ipt_installplcecd2" taborder="23" class="input_essential" position="absolute 721 418 801 437" onkeydown="ipt_installplcecd_onkeydown" autoselect="true"/>
- <Edit id="ipt_installplcenm2" taborder="25" class="output" enable="false" position="absolute 826 418 993 437"/>
- <Button id="btn_installplcecd2" taborder="24" class="icon_search" position="absolute 806 419 822 435" onclick="btn_installplcecd_onclick"/>
- <TextArea id="txt_democmt" taborder="26" position="absolute 721 443 1190 485" anchor="left top right" acceptstab="true" maxlength="100" wordwrap="word"/>
- <Radio id="rdo_etcuseyn" taborder="27" columncount="2" rowcount="0" position="absolute 731 490 824 510" codecolumn="codecolumn" datacolumn="datacolumn" index="1" value="N">
- <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">Y</Col>
- </Row>
- <Row>
- <Col id="codecolumn">N</Col>
- <Col id="datacolumn">N</Col>
- </Row>
- </Rows>
- </Dataset>
- </Radio>
- <Edit id="ipt_etcuse" taborder="28" class="input_default" position="absolute 826 490 1190 509" onkillfocus="ipt_etcuse_onkillfocus" visible="false" autoselect="true"/>
- <CheckBox id="chk_extendyn" taborder="29" position="absolute 726 516 746 535" truevalue="Y" falsevalue="N"/>
- <Calendar id="ipt_extenddd" taborder="30" class="input_search" position="absolute 751 516 839 535" enable="false" autoselect="true"/>
- <Static id="caption26" text="승인자" position="absolute 816 649 896 672" class="cell_1" style="background:#d4d4ffff;"/>
- <Edit id="ipt_deptaprvid" taborder="32" class="input_default" position="absolute 898 651 988 670" enable="false"/>
- <Button id="btn_deptaprv" taborder="33" text="승인" class="btn5" position="absolute 1080 651 1123 670" enable="false" onclick="btn_deptaprv_onclick"/>
- <Calendar id="ipt_acptdd" taborder="34" class="input_search" position="absolute 721 707 809 726" enable="false"/>
- <Static id="caption27" text="접수자" class="cell_1" position="absolute 816 705 896 728" style="background:#fef7c0ff;"/>
- <Edit id="ipt_acptid" taborder="35" class="input_default" position="absolute 898 707 988 726" enable="false"/>
- <Button id="btn_acpt" taborder="36" text="접수" class="btn5" position="absolute 1080 707 1123 726" enable="false" onclick="btn_acpt_onclick"/>
- <Static id="cap_etcuse" text="사용소모품 입력" position="absolute 826 490 1190 510" style="background:transparent;color:#999999ff;align:center middle;" onclick="cap_etcuse_onclick" visible="false"/>
- <Calendar id="ipt_deptaprvdd" taborder="41" class="input_search" enable="false" position="absolute 721 651 809 670"/>
- <Shape id="line20" class="line_10" position="absolute 629 537 1195 543" anchor="left top right"/>
- <Static id="Static05" text="첨부파일" class="cell_1" position="absolute 629 567 719 644" style="padding:5 0 0 0;align:center top;"/>
- <Button id="btn_file_add" taborder="42" text="추가" class="btn5" position="absolute 652 589 696 609" onclick="btn_file_add_onclick" enable="false"/>
- <Button id="btn_file_del" taborder="43" text="삭제" class="btn5" position="absolute 652 618 696 638" onclick="btn_file_del_onclick" enable="false"/>
- <Grid id="grd_AddFile" taborder="44" binddataset="ds_file" useinputpanel="false" position="absolute 721 567 1190 644" autofittype="col" anchor="left top right" oncellclick="grd_AddFile_oncellclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="20"/>
- <Column size="250"/>
- <Column size="40"/>
- <Column size="20"/>
- <Column size="60"/>
- <Column size="60"/>
- </Columns>
- <Rows>
- <Row size="24"/>
- </Rows>
- <Band id="body">
- <Cell celltype="head" text="expr:currow+1"/>
- <Cell col="1" displaytype="text" style="padding:0 8 0 8;" text="bind:filename" tooltiptext="bind:filename"/>
- <Cell col="2" displaytype="number" style="align:center;padding:0 0 0 0;" text="bind:filesize" expr="expr:Math.ceil(filesize / 1024)" tooltiptext="expr:Math.ceil(filesize / 1024)"/>
- <Cell col="3" displaytype="text" style="align:center;padding:0 0 0 0;" text="KB"/>
- <Cell col="4" displaytype="expr:utlf_isNull(filekey) ? "normal" : "button"" edittype="expr:utlf_isNull(filekey) ? "none" : "button"" style="padding:2 2 2 2;cursor:hand;" text="expr:utlf_isNull(filekey) ? "" : "미리보기""/>
- <Cell col="5" displaytype="expr:utlf_isNull(filekey) ? "normal" : "button"" edittype="expr:utlf_isNull(filekey) ? "none" : "button"" style="padding:2 2 2 2;cursor:hand;" text="expr:utlf_isNull(filekey) ? "" : "파일받기""/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Shape id="line10" class="line_10" position="absolute 629 644 1195 650" anchor="left top right"/>
- <Button id="btn_rowDel" taborder="45" text="행삭제" class="btn2" position="absolute 451 92 504 111" onclick="btn_rowDel_onclick"/>
- <Edit id="ipt_deptaprvnm" taborder="46" class="input_default" enable="false" position="absolute 990 651 1075 670"/>
- <Edit id="ipt_acptnm" taborder="47" class="input_default" enable="false" position="absolute 990 707 1075 726"/>
- <Button id="btn_canceldeptaprv" taborder="48" text="승인취소" class="btn5" enable="false" position="absolute 1128 651 1191 670" onclick="btn_canceldeptaprv_onclick"/>
- <Button id="btn_cancelacpt" taborder="49" text="접수취소" class="btn5" enable="false" position="absolute 1128 707 1191 726" onclick="btn_cancelacpt_onclick"/>
- <Static id="caption28" text="< 출력정보 >" position="absolute 629 736 732 756" style="color:#3366ffff;font:Dotum,9,bold;"/>
- <Shape id="line4" position="absolute 712 742 1195 748" anchor="left top right"/>
- <Static id="caption8" text="기타사항" class="cell_1" position="absolute 629 756 719 779" style="background:#ccffffff;"/>
- <Edit id="ipt_gita" taborder="50" autoselect="true" position="absolute 721 758 1190 777" anchor="left top right"/>
- <Button id="btn_print" taborder="51" text="신청서출력" class="btn6" position="absolute 1107 92 1195 111" anchor="top right" onclick="btn_print_onclick"/>
- <Grid id="grd_demolist" taborder="1" binddataset="ds_demolist" useinputpanel="false" position="absolute 0 117 624 785" anchor="left top bottom" oncellclick="grd_demolist_oncellclick" tooltiptype="hover" autoenter="key" cellsizingtype="col" scrollbars="autoboth" onheadclick="grd_demolist_onheadclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="30"/>
- <Column size="67"/>
- <Column size="113"/>
- <Column size="80"/>
- <Column size="40"/>
- <Column size="174"/>
- <Column size="108"/>
- <Column size="40"/>
- <Column size="80"/>
- <Column size="80"/>
- <Column size="80"/>
- <Column size="80"/>
- <Column size="80"/>
- <Column size="80"/>
- <Column size="50"/>
- <Column size="80"/>
- <Column size="120"/>
- <Column size="72"/>
- <Column size="71"/>
- <Column size="80"/>
- <Column size="55"/>
- <Column size="70"/>
- <Column size="122"/>
- <Column size="100"/>
- <Column size="65"/>
- <Column size="54"/>
- <Column size="59"/>
- <Column size="56"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell displaytype="checkbox" edittype="checkbox" expr="0"/>
- <Cell col="1" text="구분"/>
- <Cell col="2" text="신청부서"/>
- <Cell col="3" text="신청일자"/>
- <Cell col="4" text="번호"/>
- <Cell col="5" text="장비명(영)"/>
- <Cell col="6" text="규격"/>
- <Cell col="7" text="수량"/>
- <Cell col="8" text="데모(From)"/>
- <Cell col="9" text="데모(To)"/>
- <Cell col="10" text="부서승인일자"/>
- <Cell col="11" text="부서승인자"/>
- <Cell col="12" text="접수일자"/>
- <Cell col="13" text="접수자"/>
- <Cell col="14" text="연장"/>
- <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="담당자HP"/>
- <Cell col="22" text="설치장소"/>
- <Cell col="23" text="데모사용목"/>
- <Cell col="24" text=" 소모품여부"/>
- <Cell col="25" text="신청자"/>
- <Cell col="26" text="연락처"/>
- <Cell col="27" text="HP"/>
- </Band>
- <Band id="body">
- <Cell displaytype="checkbox" edittype="expr:colEnable" style="controlbackground:EXPR(colEnable == 'none' ? 'silver' : '');controlborder:EXPR(colEnable == 'none' ? '1 solid #708090cc' : '');" text="bind:colCheck"/>
- <Cell col="1" displaytype="combo" style="align:center;" text="bind:acptstat" combodataset="ds_acptstat" combocodecol="value" combodatacol="label" tooltiptext="bind:acptstat"/>
- <Cell col="2" text="bind:reqdeptnm" tooltiptext="bind:reqdeptnm"/>
- <Cell col="3" displaytype="date" text="bind:reqdd" calendardisplaynulltype="none" tooltiptext="bind:reqdd"/>
- <Cell col="4" text="bind:reqno" tooltiptext="bind:reqno"/>
- <Cell col="5" style="align:left;" text="bind:goodflagengnm" tooltiptext="bind:goodflagengnm"/>
- <Cell col="6" style="align:left;" text="bind:goodspec" tooltiptext="bind:goodspec"/>
- <Cell col="7" text="bind:fixasetqty" tooltiptext="bind:fixasetqty"/>
- <Cell col="8" displaytype="date" text="bind:demofrdd" calendardisplaynulltype="none" tooltiptext="bind:demofrdd"/>
- <Cell col="9" displaytype="date" text="bind:demotodd" calendardisplaynulltype="none" tooltiptext="bind:demotodd"/>
- <Cell col="10" displaytype="date" text="bind:deptaprvdd" calendardisplaynulltype="none" tooltiptext="bind:deptaprvdd"/>
- <Cell col="11" text="bind:deptaprvnm" tooltiptext="bind:deptaprvnm"/>
- <Cell col="12" displaytype="date" text="bind:acptdd" calendardisplaynulltype="none" tooltiptext="bind:acptdd"/>
- <Cell col="13" text="bind:acptnm" tooltiptext="bind:acptnm"/>
- <Cell col="14" text="bind:extendyn" tooltiptext="bind:extendyn"/>
- <Cell col="15" displaytype="date" text="bind:extenddd" calendardisplaynulltype="none" tooltiptext="bind:extenddd"/>
- <Cell col="16" style="align:left;" text="bind:goodflaghngnm" tooltiptext="bind:goodflaghngnm"/>
- <Cell col="17" text="bind:costamt"/>
- <Cell col="18" style="align:left middle;" text="bind:prodcmpy"/>
- <Cell col="19" style="align:left middle;" text="bind:suplplce"/>
- <Cell col="20" style="align:left middle;" text="bind:supnm"/>
- <Cell col="21" style="align:left middle;" text="bind:suphp"/>
- <Cell col="22" style="align:center middle;" text="bind:installplcenm"/>
- <Cell col="23" style="align:left middle;" text="bind:democmt"/>
- <Cell col="24" style="align:center middle;" text="bind:etcuseyn"/>
- <Cell col="25" style="align:center middle;" text="bind:reqnm"/>
- <Cell col="26" style="align:left middle;" text="bind:reqtel"/>
- <Cell col="27" style="align:left middle;" text="bind:reqhp"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static id="caption29" text="※ 필수서류 : [수입/제조 품목허가증], [규격서], [사용/용도 설명서]" class="cell_1" position="absolute 629 542 1190 565" style="font:Dotum,9,bold;" anchor="left top right"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_cond_oncolumnchanged">
- <ColumnInfo>
- <Column id="instcd" type="STRING" size="256"/>
- <Column id="reqfromdd" type="STRING" size="256"/>
- <Column id="reqtodd" type="STRING" size="256"/>
- <Column id="acptstat" type="STRING" size="256"/>
- <Column id="reqdeptcd" type="STRING" size="256"/>
- <Column id="reqdeptnm" type="STRING" size="256"/>
- <Column id="installplcecd" type="STRING" size="256"/>
- <Column id="installplcenm" type="STRING" size="256"/>
- <Column id="emplno" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_demolist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="colCheck" type="STRING" size="256"/>
- <Column id="instcd" type="STRING" size="255"/>
- <Column id="reqdd" type="STRING" size="255"/>
- <Column id="reqno" type="STRING" size="255"/>
- <Column id="reqdeptcd" type="STRING" size="255"/>
- <Column id="reqdeptnm" type="STRING" size="256"/>
- <Column id="reqid" type="STRING" size="255"/>
- <Column id="reqnm" type="STRING" size="255"/>
- <Column id="reqtel" type="STRING" size="255"/>
- <Column id="reqhp" type="STRING" size="255"/>
- <Column id="acptstat" type="STRING" size="255"/>
- <Column id="goodflaghngnm" type="STRING" size="255"/>
- <Column id="goodflagengnm" type="STRING" size="255"/>
- <Column id="goodspec" type="STRING" size="255"/>
- <Column id="costamt" type="BIGDECIMAL" size="255"/>
- <Column id="fixasetqty" type="BIGDECIMAL" size="255"/>
- <Column id="prodcmpy" type="STRING" size="255"/>
- <Column id="suplplce" type="STRING" size="255"/>
- <Column id="supnm" type="STRING" size="255"/>
- <Column id="suphp" type="STRING" size="255"/>
- <Column id="demofrdd" type="STRING" size="255"/>
- <Column id="demotodd" type="STRING" size="255"/>
- <Column id="installplcecd" type="STRING" size="255"/>
- <Column id="installplcenm" type="STRING" size="255"/>
- <Column id="democmt" type="STRING" size="255"/>
- <Column id="etcuseyn" type="STRING" size="255"/>
- <Column id="etcuse" type="STRING" size="255"/>
- <Column id="extendyn" type="STRING" size="255"/>
- <Column id="extenddd" type="STRING" size="255"/>
- <Column id="deptaprvid" type="STRING" size="255"/>
- <Column id="deptaprvnm" type="STRING" size="255"/>
- <Column id="deptaprvdd" type="STRING" size="255"/>
- <Column id="acptid" type="STRING" size="255"/>
- <Column id="acptnm" type="STRING" size="255"/>
- <Column id="acptdd" type="STRING" size="255"/>
- <Column id="filekey" type="STRING" size="256"/>
- <Column id="colEnable" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_temp_demolist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_temp_demolist_oncolumnchanged">
- <ColumnInfo>
- <Column id="status" type="STRING" size="256"/>
- <Column id="flag" type="STRING" size="256"/>
- <Column id="instcd" type="STRING" size="255"/>
- <Column id="reqdd" type="STRING" size="255"/>
- <Column id="reqno" type="STRING" size="255"/>
- <Column id="reqdeptcd" type="STRING" size="255"/>
- <Column id="reqdeptnm" type="STRING" size="256"/>
- <Column id="reqid" type="STRING" size="255"/>
- <Column id="reqnm" type="STRING" size="255"/>
- <Column id="reqtel" type="STRING" size="255"/>
- <Column id="reqhp" type="STRING" size="255"/>
- <Column id="acptstat" type="STRING" size="255"/>
- <Column id="goodflaghngnm" type="STRING" size="255"/>
- <Column id="goodflagengnm" type="STRING" size="255"/>
- <Column id="goodspec" type="STRING" size="255"/>
- <Column id="costamt" type="BIGDECIMAL" size="255"/>
- <Column id="fixasetqty" type="BIGDECIMAL" size="255"/>
- <Column id="prodcmpy" type="STRING" size="255"/>
- <Column id="suplplce" type="STRING" size="255"/>
- <Column id="supnm" type="STRING" size="255"/>
- <Column id="suphp" type="STRING" size="255"/>
- <Column id="demofrdd" type="STRING" size="255"/>
- <Column id="demotodd" type="STRING" size="255"/>
- <Column id="installplcecd" type="STRING" size="255"/>
- <Column id="installplcenm" type="STRING" size="255"/>
- <Column id="democmt" type="STRING" size="255"/>
- <Column id="etcuseyn" type="STRING" size="255"/>
- <Column id="etcuse" type="STRING" size="255"/>
- <Column id="extendyn" type="STRING" size="255"/>
- <Column id="extenddd" type="STRING" size="255"/>
- <Column id="deptaprvid" type="STRING" size="255"/>
- <Column id="deptaprvnm" type="STRING" size="255"/>
- <Column id="deptaprvdd" type="STRING" size="255"/>
- <Column id="acptid" type="STRING" size="255"/>
- <Column id="acptnm" type="STRING" size="255"/>
- <Column id="acptdd" type="STRING" size="255"/>
- <Column id="filekey" type="STRING" size="256"/>
- <Column id="gita" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_acptstat" 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>
- <Col id="value">01</Col>
- </Row>
- <Row>
- <Col id="label">부서승인</Col>
- <Col id="value">02</Col>
- </Row>
- <Row>
- <Col id="label">접수</Col>
- <Col id="value">03</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_deptaprvyn" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="flag" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_file" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="filekey" type="STRING" size="256"/>
- <Column id="fileseq" type="STRING" size="256"/>
- <Column id="filename" type="STRING" size="256" sumtext="파일명"/>
- <Column id="filepath" type="STRING" size="256" sumtext="파일서버경로"/>
- <Column id="filesize" type="STRING" size="256" sumtext="파일크기"/>
- <Column id="filetype" type="STRING" size="256" sumtext="파일종류"/>
- <Column id="filedata" type="BLOB" size="256" sumtext="파일데이터"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_temp_file" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="filekey" type="STRING" size="256"/>
- <Column id="fileseq" type="STRING" size="256"/>
- <Column id="filename" type="STRING" size="256" sumtext="파일명"/>
- <Column id="filepath" type="STRING" size="256" sumtext="파일서버경로"/>
- <Column id="filesize" type="STRING" size="256" sumtext="파일크기"/>
- <Column id="filetype" type="STRING" size="256" sumtext="파일종류"/>
- <Column id="filedata" type="BLOB" size="256" sumtext="파일데이터"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_delete_file" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="filekey" type="STRING" size="256"/>
- <Column id="fileseq" type="STRING" size="256"/>
- <Column id="filename" type="STRING" size="256" sumtext="파일명"/>
- <Column id="filepath" type="STRING" size="256" sumtext="파일서버경로"/>
- <Column id="filesize" type="STRING" size="256" sumtext="파일크기"/>
- <Column id="filetype" type="STRING" size="256" sumtext="파일종류"/>
- <Column id="filedata" type="BLOB" size="256" sumtext="파일데이터"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_attfile" 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="fullpath" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_filelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="attfilecnts" type="STRING" size="256" sumtext="첨부파일내용"/>
- <Column id="fullpath" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_save_file" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="filekey" type="STRING" size="256"/>
- <Column id="fileseq" type="STRING" size="256"/>
- <Column id="filename" type="STRING" size="256" sumtext="파일명"/>
- <Column id="filepath" type="STRING" size="256" sumtext="파일서버경로"/>
- <Column id="filesize" type="STRING" size="256" sumtext="파일크기"/>
- <Column id="filetype" type="STRING" size="256" sumtext="파일종류"/>
- <Column id="filedata" type="BLOB" size="256" sumtext="파일데이터"/>
- </ColumnInfo>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="div_search.cmb_instcd" propid="value" datasetid="ds_cond" columnid="instcd"/>
- <BindItem id="item1" compid="div_search.ipt_reqfromdd" propid="value" datasetid="ds_cond" columnid="reqfromdd"/>
- <BindItem id="item2" compid="div_search.ipt_reqtodd" propid="value" datasetid="ds_cond" columnid="reqtodd"/>
- <BindItem id="item3" compid="div_search.cmb_acptstat" propid="value" datasetid="ds_cond" columnid="acptstat"/>
- <BindItem id="item4" compid="div_search.ipt_reqdeptcd" propid="value" datasetid="ds_cond" columnid="reqdeptcd"/>
- <BindItem id="item5" compid="div_search.ipt_reqdeptnm" propid="value" datasetid="ds_cond" columnid="reqdeptnm"/>
- <BindItem id="item6" compid="div_search.ipt_installplcecd" propid="value" datasetid="ds_cond" columnid="installplcecd"/>
- <BindItem id="item7" compid="div_search.ipt_installplcenm" propid="value" datasetid="ds_cond" columnid="installplcenm"/>
- <BindItem id="item8" compid="ipt_reqdd" propid="value" datasetid="ds_temp_demolist" columnid="reqdd"/>
- <BindItem id="item9" compid="ipt_reqno" propid="value" datasetid="ds_temp_demolist" columnid="reqno"/>
- <BindItem id="item10" compid="ipt_reqdeptcd" propid="value" datasetid="ds_temp_demolist" columnid="reqdeptcd"/>
- <BindItem id="item11" compid="ipt_reqdeptnm" propid="value" datasetid="ds_temp_demolist" columnid="reqdeptnm"/>
- <BindItem id="item12" compid="ipt_reqid" propid="value" datasetid="ds_temp_demolist" columnid="reqid"/>
- <BindItem id="item13" compid="ipt_reqnm" propid="value" datasetid="ds_temp_demolist" columnid="reqnm"/>
- <BindItem id="item14" compid="ipt_reqtel" propid="value" datasetid="ds_temp_demolist" columnid="reqtel"/>
- <BindItem id="item15" compid="ipt_reqhp" propid="value" datasetid="ds_temp_demolist" columnid="reqhp"/>
- <BindItem id="item16" compid="ipt_goodflaghngnm" propid="value" datasetid="ds_temp_demolist" columnid="goodflaghngnm"/>
- <BindItem id="item17" compid="ipt_goodflagengnm" propid="value" datasetid="ds_temp_demolist" columnid="goodflagengnm"/>
- <BindItem id="item18" compid="ipt_goodspec" propid="value" datasetid="ds_temp_demolist" columnid="goodspec"/>
- <BindItem id="item19" compid="ipt_costamt" propid="value" datasetid="ds_temp_demolist" columnid="costamt"/>
- <BindItem id="item20" compid="ipt_fixasetqty" propid="value" datasetid="ds_temp_demolist" columnid="fixasetqty"/>
- <BindItem id="item21" compid="ipt_prodcmpy" propid="value" datasetid="ds_temp_demolist" columnid="prodcmpy"/>
- <BindItem id="item22" compid="ipt_suplplce" propid="value" datasetid="ds_temp_demolist" columnid="suplplce"/>
- <BindItem id="item23" compid="ipt_supnm" propid="value" datasetid="ds_temp_demolist" columnid="supnm"/>
- <BindItem id="item24" compid="ipt_suphp" propid="value" datasetid="ds_temp_demolist" columnid="suphp"/>
- <BindItem id="item25" compid="ipt_demofrdd" propid="value" datasetid="ds_temp_demolist" columnid="demofrdd"/>
- <BindItem id="item26" compid="ipt_demotodd" propid="value" datasetid="ds_temp_demolist" columnid="demotodd"/>
- <BindItem id="item27" compid="ipt_installplcecd2" propid="value" datasetid="ds_temp_demolist" columnid="installplcecd"/>
- <BindItem id="item28" compid="ipt_installplcenm2" propid="value" datasetid="ds_temp_demolist" columnid="installplcenm"/>
- <BindItem id="item29" compid="txt_democmt" propid="value" datasetid="ds_temp_demolist" columnid="democmt"/>
- <BindItem id="item30" compid="rdo_etcuseyn" propid="value" datasetid="ds_temp_demolist" columnid="etcuseyn"/>
- <BindItem id="item31" compid="chk_extendyn" propid="value" datasetid="ds_temp_demolist" columnid="extendyn"/>
- <BindItem id="item32" compid="ipt_extenddd" propid="value" datasetid="ds_temp_demolist" columnid="extenddd"/>
- <BindItem id="item34" compid="ipt_deptaprvid" propid="value" datasetid="ds_temp_demolist" columnid="deptaprvid"/>
- <BindItem id="item35" compid="ipt_acptdd" propid="value" datasetid="ds_temp_demolist" columnid="acptdd"/>
- <BindItem id="item36" compid="ipt_acptid" propid="value" datasetid="ds_temp_demolist" columnid="acptid"/>
- <BindItem id="item37" compid="ipt_etcuse" propid="value" datasetid="ds_temp_demolist" columnid="etcuse"/>
- <BindItem id="item38" compid="ipt_deptaprvdd" propid="value" datasetid="ds_temp_demolist" columnid="deptaprvdd"/>
- <BindItem id="item33" compid="ipt_deptaprvnm" propid="value" datasetid="ds_temp_demolist" columnid="deptaprvnm"/>
- <BindItem id="item39" compid="ipt_acptnm" propid="value" datasetid="ds_temp_demolist" columnid="acptnm"/>
- <BindItem id="item40" compid="ipt_gita" propid="value" datasetid="ds_temp_demolist" columnid="gita"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name : 경대 의료정보시스템
- * Job Name : mis_reqxp -> SMRSE01700
- * Creator : yjh
- * Make Date : 2019-03-21
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2019-03-21 yjh TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- //=======================================================================================
- // Lib Include
- //---------------------------------------------------------------------------------------
- include "com_commonxp::comm_main.xjs";
- include "mis_miscommonxp::MIS.xjs";
- //=======================================================================================
- // Global Form Variable
- //---------------------------------------------------------------------------------------
- var gMaxSize = 10485760;
- var arErrorCode = new HashArray();
- //=======================================================================================
- // Function
- //---------------------------------------------------------------------------------------
- function fn_clearDetail(){
- ds_temp_demolist.clearData();
-
- btn_del.enable = true;
- btn_deptaprv.enable = false;
- btn_canceldeptaprv.enable = false;
- btn_acpt.enable = false;
- btn_cancelacpt.enable = false;
- }
- function fn_enableDetail(bFlag){
- btn_del.enable = bFlag;
-
- ipt_reqtel.enable = bFlag;
- ipt_reqhp.enable = bFlag;
- ipt_goodflaghngnm.enable = bFlag;
- ipt_goodflagengnm.enable = bFlag;
- ipt_goodspec.enable = bFlag;
- ipt_costamt.enable = bFlag;
- ipt_fixasetqty.enable = bFlag;
- ipt_prodcmpy.enable = bFlag;
- ipt_suplplce.enable = bFlag;
- ipt_supnm.enable = bFlag;
-
- ipt_suphp.enable = bFlag;
- ipt_demofrdd.enable = bFlag;
- ipt_demotodd.enable = bFlag;
- ipt_installplcecd2.enable = bFlag;
- txt_democmt.enable = bFlag;
- rdo_etcuseyn.enable = bFlag;
- ipt_etcuse.enable = bFlag;
- btn_file_add.enable = bFlag;
- btn_file_del.enable = bFlag;
- }
- //=======================================================================================
- // Event
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Components : Form
- * Components ID : SMRSE01700
- * Event : oninit
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 처음 초기화시
- ****************************************************************************************/
- function SMRSE01700_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj); //폼 초기화
- }
- /****************************************************************************************
- * Components : Form
- * Components ID : SMRSE01700
- * Event : onload
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 로딩 완료시
- ****************************************************************************************/
- function SMRSE01700_onload(obj:Form, e:LoadEventInfo)
- {
- grdf_setGridSort(grd_demolist);
-
- misfComboComCdListMulti("Z0007", "div_search.cmb_instcd");
-
- ds_cond.setColumn(0, "instcd", sysf_getUserInfo("dutplceinstcd"));
- ds_cond.setColumn(0, "reqfromdd", utlf_getCurrentDate());
- ds_cond.setColumn(0, "reqtodd", utlf_getCurrentDate());
- ds_cond.setColumn(0, "acptstat", "");
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_search
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 조회버튼 클릭시
- ****************************************************************************************/
- function div_search_btn_search_onclick(obj:Button, e:ClickEventInfo)
- {
- if( utlf_isNull(ds_cond.getColumn(0, "reqfromdd")) ){
- sysf_messageBox("신청기간은", "I003");
- div_search.ipt_reqfromdd.setFocus();
- return false;
- }
- if( utlf_isNull(ds_cond.getColumn(0, "reqtodd")) ){
- sysf_messageBox("신청기간은", "I003");
- div_search.ipt_reqtodd.setFocus();
- return false;
- }
-
- ds_demolist.clearData();
-
- fn_clearDetail();
-
- var oParam = {};
- oParam.id = "TRRSE01701";
- oParam.service = "reqapp.ReqMngt";
- oParam.method = "reqGetDemoList";
- oParam.inds = "req=ds_cond";
- oParam.outds = "ds_demolist=demolist";
- oParam.async = false;
- //oParam.callback = "cf_TRRSE01701";
- tranf_submit(oParam);
-
- ds_demolist.addColumn("colCheck", "string");
- ds_demolist.addColumn("colEnable", "string");
-
- ds_demolist.updatecontrol = false;
-
- for( var i=0 ; i<ds_demolist.rowcount ; i++ ){
- if( (ds_demolist.getColumn(i, "acptstat") == "01" && sysf_getUserInfo("dutplcecd") == ds_demolist.getColumn(i, "reqdeptcd")) ||
- ((ds_demolist.getColumn(i, "acptstat") == "01" || ds_demolist.getColumn(i, "acptstat") == "03") && (sysf_getUserInfo("dutplcecd") == "4090500000" || sysf_getUserInfo("userid") == "99207")) ){
- ds_demolist.setColumn(i, "colEnable", "checkbox");
- }else{
- ds_demolist.setColumn(i, "colEnable", "none");
- }
- }
-
- ds_demolist.updatecontrol = true;
-
- ds_demolist.rowposition = -1;
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_reqdeptcd
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 돋보기버튼 클릭시
- ****************************************************************************************/
- function div_search_btn_reqdeptcd_onclick(obj:Button, e:ClickEventInfo)
- {
- var recv_list = "reqdeptcd,reqdeptnm";
- misfOpenPopUpList("02", div_search.ipt_reqdeptcd, "", recv_list, div_search.cmb_instcd.value, "instcd");
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_installplcecd
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 돋보기버튼 클릭시
- ****************************************************************************************/
- function div_search_btn_installplcecd_onclick(obj:Button, e:ClickEventInfo)
- {
- var recv_list = "installplcecd,installplcenm";
- misfOpenPopUpList("02", div_search.ipt_installplcecd, "", recv_list, div_search.cmb_instcd.value, "instcd");
- }
- /****************************************************************************************
- * Components : Edit
- * Components ID : ipt_reqdeptcd
- * Event : onkeydown
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 에디터 키 입력시
- ****************************************************************************************/
- function div_search_ipt_reqdeptcd_onkeydown(obj:Edit, e:KeyEventInfo)
- {
- if( e.keycode == 13 ){
- obj.updateToDataset();
- }
- }
- /****************************************************************************************
- * Components : Edit
- * Components ID : ipt_installplcecd
- * Event : onkeydown
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 에디터 키 입력시
- ****************************************************************************************/
- function div_search_ipt_installplcecd_onkeydown(obj:Edit, e:KeyEventInfo)
- {
- if( e.keycode == 13 ){
- obj.updateToDataset();
- }
- }
- /****************************************************************************************
- * Components : Dataset
- * Components ID : ds_cond
- * Event : oncolumnchanged
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 데이터셋 값 변경시
- ****************************************************************************************/
- function ds_cond_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
- {
- switch( e.columnid ){
- case "reqdeptcd" :
- var objFocus = this.getFocus();
- div_search.ipt_reqdeptcd.setFocus();
- misfSearchDept(div_search.ipt_reqdeptnm);
- objFocus.setFocus();
- break;
-
- case "installplcecd" :
- var objFocus = this.getFocus();
- div_search.ipt_installplcecd.setFocus();
- misfSearchDept(div_search.ipt_installplcenm);
- objFocus.setFocus();
- break;
-
- default :
- break;
- }
- }
- /****************************************************************************************
- * Components : Dataset
- * Components ID : ds_temp_demolist
- * Event : oncolumnchanged
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 데이터셋 값 변경시
- ****************************************************************************************/
- function ds_temp_demolist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
- {
- switch( e.columnid ){
- case "costamt" :
- case "fixasetqty" :
- if( utlf_isNull(e.newvalue) ){
- obj.setColumn(e.row, e.columnid, "0");
- }
- break;
-
- case "installplcecd" :
- var objFocus = this.getFocus();
- ipt_installplcecd2.setFocus();
- misfSearchDept(ipt_installplcenm2);
- objFocus.setFocus();
- break;
-
- case "etcuseyn" :
- if( e.newvalue == "Y" ){
- if( utlf_isNull(ds_temp_demolist.getColumn(0, "etcuse")) ){
- cap_etcuse.visible = true;
- }else{
- cap_etcuse.visible = false;
- }
-
- ipt_etcuse.visible = true;
- }else{
- obj.setColumn(e.row, "etcuse", "");
- cap_etcuse.visible = false;
- ipt_etcuse.visible = false;
- }
- break;
-
- case "extendyn" :
- if( e.newvalue == "Y" ){
- ipt_extenddd.enable = true;
- }else{
- obj.setColumn(e.row, "extenddd", "");
- ipt_extenddd.enable = false;
- }
- break;
-
- case "suplplce" :
- ipt_suplplce.tooltiptext = e.newvalue;
- break;
-
- default :
- break;
- }
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_installplcecd
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 돋보기버튼 클릭시
- ****************************************************************************************/
- function btn_installplcecd_onclick(obj:Button, e:ClickEventInfo)
- {
- var recv_list = "installplcecd,installplcenm";
- misfOpenPopUpList("02", ipt_installplcecd2, "", recv_list, div_search.cmb_instcd.value, "instcd");
- }
- /****************************************************************************************
- * Components : Edit
- * Components ID : ipt_installplcecd
- * Event : onkeydown
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 에디터 키 입력시
- ****************************************************************************************/
- function ipt_installplcecd_onkeydown(obj:Edit, e:KeyEventInfo)
- {
- if( e.keycode == 13 ){
- obj.updateToDataset();
- }
- }
- /****************************************************************************************
- * Components : Static
- * Components ID : cap_etcuse
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : Static 클릭시
- ****************************************************************************************/
- function cap_etcuse_onclick(obj:Static, e:ClickEventInfo)
- {
- obj.visible = false;
- ipt_etcuse.setFocus();
- }
- /****************************************************************************************
- * Components : Edit
- * Components ID : ipt_etcuse
- * Event : onkillfocus
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 에디터 포커스 아웃시
- ****************************************************************************************/
- function ipt_etcuse_onkillfocus(obj:Edit, e:KillFocusEventInfo)
- {
- if( utlf_isNull(obj.value) ){
- cap_etcuse.visible = true;
- }else{
- cap_etcuse.visible = false;
- }
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_init
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 초기화버튼 클릭시
- ****************************************************************************************/
- function btn_init_onclick(obj:Button, e:ClickEventInfo)
- {
- ds_cond.clearData();
- ds_cond.addRow();
- ds_cond.setColumn(0, "instcd", sysf_getUserInfo("dutplceinstcd"));
- ds_cond.setColumn(0, "reqfromdd", utlf_getCurrentDate());
- ds_cond.setColumn(0, "reqtodd", utlf_getCurrentDate());
- ds_cond.setColumn(0, "acptstat", "");
-
- ds_demolist.clearData();
-
- fn_clearDetail();
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_expand
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 확대보기버튼 클릭시
- ****************************************************************************************/
- function btn_expand_onclick(obj:Button, e:ClickEventInfo)
- {
- if( obj.text == "확대보기" ){
- obj.text = "축소보기";
- grd_demolist.anchor = "all";
- grd_demolist.position = "absolute 0 117 1238 785";
- }else{
- obj.text = "확대보기";
- grd_demolist.anchor = "left top bottom";
- grd_demolist.position = "absolute 0 117 624 785";
- }
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_new
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 신규버튼 클릭시
- ****************************************************************************************/
- function btn_new_onclick(obj:Button, e:ClickEventInfo)
- {
- fn_clearDetail();
-
- ds_temp_demolist.addRow();
-
- ds_temp_demolist.setColumn(0, "status", "i");
- ds_temp_demolist.setColumn(0, "flag", "");
- ds_temp_demolist.setColumn(0, "instcd", ds_cond.getColumn(0, "instcd"));
- ds_temp_demolist.setColumn(0, "reqdd", utlf_getCurrentDate());
- ds_temp_demolist.setColumn(0, "reqdeptcd", sysf_getUserInfo("dutplcecd"));
- ds_temp_demolist.setColumn(0, "reqdeptnm", sysf_getUserInfo("dutplcenm"));
- ds_temp_demolist.setColumn(0, "reqid", sysf_getUserInfo("userid"));
- ds_temp_demolist.setColumn(0, "reqnm", sysf_getUserInfo("usernm"));
- ds_temp_demolist.setColumn(0, "costamt", "0");
- ds_temp_demolist.setColumn(0, "fixasetqty", "0");
- // ds_temp_demolist.setColumn(0, "demofrdd", utlf_getCurrentDate());
- // ds_temp_demolist.setColumn(0, "demotodd", utlf_getCurrentDate());
- ds_temp_demolist.setColumn(0, "etcuseyn", "N");
- ds_temp_demolist.setColumn(0, "extendyn", "N");
-
- fn_enableDetail(true);
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_del
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 삭제버튼 클릭시
- ****************************************************************************************/
- function btn_del_onclick(obj:Button, e:ClickEventInfo)
- {
- if( ds_temp_demolist.rowcount < 1 ){
- return false;
- }
- if( ds_temp_demolist.getColumn(0, "status") == "i" ){
- fn_clearDetail();
- }
- if( ds_temp_demolist.getColumn(0, "acptstat") != "01" ){
- return false;
- }
-
- ds_temp_demolist.setColumn(0, "status", "d");
- ds_temp_demolist.setColumn(0, "flag", "");
-
- var oParam = {};
- oParam.id = "TXRSE01701";
- oParam.service = "reqapp.ReqMngt";
- oParam.method = "reqExeDemoDetailList";
- oParam.inds = "req=ds_temp_demolist deletefiles=ds_file:A";
- oParam.outds = "";
- oParam.async = false;
- //oParam.callback = "cf_TXRSE01701";
- tranf_submit(oParam);
-
- div_search.btn_search.click();
- }
- /****************************************************************************************
- * Components : Grid
- * Components ID : grd_demolist
- * Event : oncellclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 그리드 셀 클릭시
- ****************************************************************************************/
- function grd_demolist_oncellclick(obj:Grid, e:GridClickEventInfo)
- {
- if( e.col > 0 ){
- fn_clearDetail();
-
- ds_temp_demolist.addRow();
-
- ds_temp_demolist.setColumn(0, "etcuse", ds_demolist.getColumn(ds_demolist.rowposition, "etcuse"));
- ds_temp_demolist.setColumn(0, "etcuseyn", ds_demolist.getColumn(ds_demolist.rowposition, "etcuseyn"));
- ds_temp_demolist.setColumn(0, "extendyn", ds_demolist.getColumn(ds_demolist.rowposition, "extendyn"));
-
- ds_temp_demolist.copyRow(0, ds_demolist, ds_demolist.rowposition);
-
- ipt_suplplce.tooltiptext = ds_temp_demolist.getColumn(0, "suplplce");
- ipt_reqdeptnm.tooltiptext = ds_temp_demolist.getColumn(0, "reqdeptnm");
- ipt_reqnm.tooltiptext = ds_temp_demolist.getColumn(0, "reqnm");
-
- ds_temp_demolist.setColumn(0, "status", "u");
- ds_temp_demolist.setColumn(0, "flag", "");
-
- dsf_createDsRow("ds_req", [
- {col:"filekey", type:"STRING", size:256, val:dsf_getColumnNullToEmpty(ds_temp_demolist, 0, "filekey")}
- ]);
-
- var oParam = {};
- oParam.id = "TRRSC20202";
- oParam.service = "reqapp.ReqMngt";
- oParam.method = "reqGetAttFileList";
- oParam.inds = "req=ds_req";
- oParam.outds = "ds_file=files";
- oParam.async = false;
- //oParam.callback = "cf_TRRSC20202";
- tranf_submit(oParam);
-
- ds_file.addColumn("filedata", "BLOB");
-
- ds_file.rowposition = -1;
-
- if( ds_temp_demolist.getColumn(0, "acptstat") != "01" ){
- if( sysf_getUserInfo("dutplcecd") == "4090500000" || sysf_getUserInfo("userid") == "99207" ){
- fn_enableDetail(true);
- }else{
- fn_enableDetail(false);
- }
- }else if( sysf_getUserInfo("dutplcecd") == ds_temp_demolist.getColumn(0, "reqdeptcd") ){
- fn_enableDetail(true);
- }else{
- fn_enableDetail(false);
- }
-
- ds_cond.setColumn(0, "emplno", sysf_getUserInfo("userid"));
-
- var oParam = {};
- oParam.id = "TRRSO24003";
- oParam.service = "deliveapp.DeliveMngt";
- oParam.method = "reqGetDeptAprvyn";
- oParam.inds = "req=ds_cond";
- oParam.outds = "ds_deptaprvyn=deptaprvyn";
- oParam.async = false;
- //oParam.callback = "cf_TRRSO24003";
- tranf_submit(oParam);
-
- var flagYn = "";
-
- if( ds_deptaprvyn.rowcount > 0 ){
- flagYn = ds_deptaprvyn.getColumn(0, "flag");
- }
-
- if( utlf_isNull(ds_temp_demolist.getColumn(0, "deptaprvdd")) && utlf_isNull(ds_temp_demolist.getColumn(0, "deptaprvid")) && ds_temp_demolist.getColumn(0, "acptstat")=="01" ){
- if( (sysf_getUserInfo("dutplcecd") == ds_temp_demolist.getColumn(0, "reqdeptcd") && !utlf_isNull(flagYn)) || sysf_getUserInfo("userid") == "99207" ){
- btn_deptaprv.enable = true;
- }else{
- btn_deptaprv.enable = false;
- }
-
- btn_canceldeptaprv.enable = false;
- btn_acpt.enable = false;
- btn_cancelacpt.enable = false;
- }else if( utlf_isNull(ds_temp_demolist.getColumn(0, "acptdd")) && utlf_isNull(ds_temp_demolist.getColumn(0, "acptid")) && ds_temp_demolist.getColumn(0, "acptstat")=="02" ){
- if( sysf_getUserInfo("dutplcecd") == ds_temp_demolist.getColumn(0, "reqdeptcd") && !utlf_isNull(flagYn) ){
- btn_canceldeptaprv.enable = true;
- }else if( sysf_getUserInfo("dutplcecd") == "4090500000" || sysf_getUserInfo("userid") == "99207" ){
- btn_canceldeptaprv.enable = true;
- btn_acpt.enable = true;
- }else{
- btn_canceldeptaprv.enable = false;
- btn_acpt.enable = false;
- }
-
- btn_deptaprv.enable = false;
- btn_cancelacpt.enable = false;
- }else{
- if( sysf_getUserInfo("dutplcecd") == "4090500000" || sysf_getUserInfo("userid") == "99207" ){
- btn_cancelacpt.enable = true;
- }else{
- btn_cancelacpt.enable = false;
- }
-
- btn_deptaprv.enable = false;
- btn_canceldeptaprv.enable = false;
- btn_acpt.enable = false;
- }
- }
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_save
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 저장버튼 클릭시
- ****************************************************************************************/
- function btn_save_onclick(obj:Button, e:ClickEventInfo)
- {
- if( ds_temp_demolist.rowcount < 1 ){
- return false;
- }
- if( utlf_isNull(ds_temp_demolist.getColumn(0, "reqtel")) ){
- sysf_messageBox("연락처는", "I003");
- ipt_reqtel.setFocus();
- return false;
- }
- if( utlf_isNull(ds_temp_demolist.getColumn(0, "goodflaghngnm")) ){
- sysf_messageBox("장비명(한)은", "I003");
- ipt_goodflaghngnm.setFocus();
- return false;
- }
- if( utlf_isNull(ds_temp_demolist.getColumn(0, "goodflagengnm")) ){
- sysf_messageBox("장비명(영)은", "I003");
- ipt_goodflagengnm.setFocus();
- return false;
- }
- if( utlf_isNull(ds_temp_demolist.getColumn(0, "goodspec")) ){
- sysf_messageBox("규격은", "I003");
- ipt_goodspec.setFocus();
- return false;
- }
- if( utlf_isNull(ds_temp_demolist.getColumn(0, "fixasetqty")) || ds_temp_demolist.getColumn(0, "fixasetqty")<1 ){
- sysf_messageBox("수량은", "I003");
- ipt_fixasetqty.setFocus();
- return false;
- }
- if( utlf_isNull(ds_temp_demolist.getColumn(0, "prodcmpy")) ){
- sysf_messageBox("제조사는", "I003");
- ipt_prodcmpy.setFocus();
- return false;
- }
- if( utlf_isNull(ds_temp_demolist.getColumn(0, "suplplce")) ){
- sysf_messageBox("제공업체는", "I003");
- ipt_suplplce.setFocus();
- return false;
- }
- if( utlf_isNull(ds_temp_demolist.getColumn(0, "supnm")) ){
- sysf_messageBox("담당자는", "I003");
- ipt_supnm.setFocus();
- return false;
- }
- if( utlf_isNull(ds_temp_demolist.getColumn(0, "suphp")) ){
- sysf_messageBox("담당자 H.P은", "I003");
- ipt_suphp.setFocus();
- return false;
- }
- if( utlf_isNull(ds_temp_demolist.getColumn(0, "suphp")) ){
- sysf_messageBox("담당자 H.P은", "I003");
- ipt_suphp.setFocus();
- return false;
- }
- if( utlf_isNull(ds_temp_demolist.getColumn(0, "demofrdd")) || utlf_isNull(ds_temp_demolist.getColumn(0, "demotodd")) ){
- sysf_messageBox("데모기간은", "I003");
- ipt_demofrdd.setFocus();
- return false;
- }
- if( utlf_diffDate(ds_temp_demolist.getColumn(0, "demofrdd"), ds_temp_demolist.getColumn(0, "demotodd")) < 0 ){
- sysf_messageBox("데모기간이", "E016");
- ipt_demofrdd.setFocus();
- return false;
- }
- if( utlf_diffDate(ds_temp_demolist.getColumn(0, "demofrdd"), ds_temp_demolist.getColumn(0, "demotodd")) > 28 ){
- sysf_messageBox("데모장비는 4주이상 사용이 불가능합니다.\n\n4주이상이 될 경우 무상임차로 진행하시기 바랍니다.", "I999");
- ipt_demofrdd.setFocus();
- return false;
- }
- if( utlf_isNull(ds_temp_demolist.getColumn(0, "installplcecd")) ){
- sysf_messageBox("설치장소는", "I003");
- ipt_installplcecd2.setFocus();
- return false;
- }
- if( ds_temp_demolist.getColumn(0, "etcuseyn")=="Y" && utlf_isNull(ds_temp_demolist.getColumn(0, "etcuse")) ){
- sysf_messageBox("소모품 사용여부 'Y' 사용소모품 입력이 필수입니다.", "I999");
- return false;
- }
- if( ds_temp_demolist.getColumn(0, "extendyn")=="Y" && utlf_isNull(ds_temp_demolist.getColumn(0, "extenddd")) ){
- sysf_messageBox("연장여부 체크시 연장종료일은", "I003");
- ipt_extenddd.setFocus();
- return false;
- }
- if( utlf_isNull(ds_temp_demolist.getColumn(0, "reqno")) ){
- sysf_messageBox("부서장 승인결재를 받아야 접수진행 가능합니다.", "I999");
- }
-
- ds_save_file.clearData();
-
- if(ds_file.rowcount <= 0) {
- ds_temp_demolist.setColumn(0, "filekey", "");
- } else {
- ds_file.filter("utlf_isNull(filekey) == true");
- ds_save_file.copyData(ds_file, true);
- ds_file.filter("");
- }
-
- if( utlf_isNull(ds_temp_demolist.getColumn(0, "status")) ){
- ds_temp_demolist.setColumn(0, "status", "u");
- ds_temp_demolist.setColumn(0, "flag", "");
- }
-
- var oParam = {};
- oParam.id = "TXRSE01701";
- oParam.service = "reqapp.ReqMngt";
- oParam.method = "reqExeDemoDetailList";
- oParam.inds = "req=ds_temp_demolist savefiles=ds_save_file deletefiles=ds_delete_file";
- oParam.outds = "";
- oParam.async = false;
- //oParam.callback = "cf_TXRSE01701";
- tranf_submit(oParam);
-
- ds_file.clearData();
- ds_delete_file.clearData();
-
- div_search.btn_search.click();
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_excelDown
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 엑셀버튼 클릭시
- ****************************************************************************************/
- function btn_excelDown_onclick(obj:Button, e:ClickEventInfo)
- {
- if( grd_demolist.rowcount > 0 ){
- grdf_exportExcel(grd_demolist, "DEMO 장비 신청", "신청현황", false, "", "user", true);
- } else {
- sysf_messageBox("조회된 데이터가 ", "I004");
- return false;
- }
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_deptaprv
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 승인버튼 클릭시
- ****************************************************************************************/
- function btn_deptaprv_onclick(obj:Button, e:ClickEventInfo)
- {
- ds_temp_demolist.setColumn(0, "status", "u");
- ds_temp_demolist.setColumn(0, "flag", "S");
- ds_temp_demolist.setColumn(0, "deptaprvdd", utlf_getCurrentDate());
- ds_temp_demolist.setColumn(0, "deptaprvid", sysf_getUserInfo("userid"));
-
- var oParam = {};
- oParam.id = "TXRSE01701";
- oParam.service = "reqapp.ReqMngt";
- oParam.method = "reqExeDemoDetailList";
- oParam.inds = "req=ds_temp_demolist";
- oParam.outds = "";
- oParam.async = false;
- oParam.callback = "cf_TXRSE01701";
- tranf_submit(oParam);
-
- if( arErrorCode.pop("TXRSE01701") > -1 ){
- sysf_messageBox("승인완료", "I999");
- div_search.btn_search.click();
- }
- }
- function cf_TXRSE01701(sSvcId, nErrorCode, sErrorMsg){
- arErrorCode.push(sSvcId, nErrorCode);
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_acpt
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 접수버튼 클릭시
- ****************************************************************************************/
- function btn_acpt_onclick(obj:Button, e:ClickEventInfo)
- {
- ds_temp_demolist.setColumn(0, "status", "u");
- ds_temp_demolist.setColumn(0, "flag", "A");
- ds_temp_demolist.setColumn(0, "acptdd", utlf_getCurrentDate());
- ds_temp_demolist.setColumn(0, "acptid", sysf_getUserInfo("userid"));
-
- var oParam = {};
- oParam.id = "TXRSE01701";
- oParam.service = "reqapp.ReqMngt";
- oParam.method = "reqExeDemoDetailList";
- oParam.inds = "req=ds_temp_demolist";
- oParam.outds = "";
- oParam.async = false;
- oParam.callback = "cf_TXRSE01701";
- tranf_submit(oParam);
-
- if( arErrorCode.pop("TXRSE01701") > -1 ){
- sysf_messageBox("접수완료", "I999");
- div_search.btn_search.click();
- }
- }
- function btn_canceldeptaprv_onclick(obj:Button, e:ClickEventInfo)
- {
- ds_temp_demolist.setColumn(0, "status", "u");
- ds_temp_demolist.setColumn(0, "flag", "CS");
-
- var oParam = {};
- oParam.id = "TXRSE01701";
- oParam.service = "reqapp.ReqMngt";
- oParam.method = "reqExeDemoDetailList";
- oParam.inds = "req=ds_temp_demolist";
- oParam.outds = "";
- oParam.async = false;
- oParam.callback = "cf_TXRSE01701";
- tranf_submit(oParam);
-
- if( arErrorCode.pop("TXRSE01701") > -1 ){
- sysf_messageBox("승인취소", "I999");
- div_search.btn_search.click();
- }
- }
- function btn_cancelacpt_onclick(obj:Button, e:ClickEventInfo)
- {
- ds_temp_demolist.setColumn(0, "status", "u");
- ds_temp_demolist.setColumn(0, "flag", "CA");
-
- var oParam = {};
- oParam.id = "TXRSE01701";
- oParam.service = "reqapp.ReqMngt";
- oParam.method = "reqExeDemoDetailList";
- oParam.inds = "req=ds_temp_demolist";
- oParam.outds = "";
- oParam.async = false;
- oParam.callback = "cf_TXRSE01701";
- tranf_submit(oParam);
-
- if( arErrorCode.pop("TXRSE01701") > -1 ){
- sysf_messageBox("접수취소", "I999");
- div_search.btn_search.click();
- }
- }
- function btn_file_add_onclick(obj:Button, e:ClickEventInfo)
- {
- //******파일을 첨부하기 위해 파일열기가 open 되게 한다.
- var oDsSaveFile = ds_file;
-
- //파일을 받아오기 위해 파일열기 팝업창을 띄운다.
- var fd = new FileDialog;
- var objVFileList = fd.open("첨부 할 파일을 선택하여 주십시오.", FileDialog.MULTILOAD);
-
- if(utlf_isNull(objVFileList)) return;
-
- ds_temp_file.clearData();
-
- for(var i = 0; i < objVFileList.length; i++) {
- var nRow = ds_temp_file.addRow();
-
- var objFileinfo = dsf_writeFileToDs(objVFileList[i], ds_temp_file, nRow, "filedata");
-
- if (!checkFileSize(objFileinfo.filesize)){
- sysf_messageBox(objFileinfo.filename + " 파일의 크기가 최대치(" + gMaxSize + "Byte)를 초과하여 첨부할 수 없습니다", "E");
- ds_temp_file.deleteRow(nRow);
- } else {
- ds_temp_file.setColumn(nRow, "filename", objFileinfo.filename);
- ds_temp_file.setColumn(nRow, "filesize", objFileinfo.filesize);
- ds_temp_file.setColumn(nRow, "filetype", objFileinfo.filetype);
- }
- }
-
- oDsSaveFile.appendData(ds_temp_file);
-
- grd_AddFile.vscrollbar.pos = grd_AddFile.vscrollbar.max;
-
- oDsSaveFile.rowposition = oDsSaveFile.rowcount - 1;
- }
- function checkFileSize(fileSize)
- {
- if (fileSize <= gMaxSize)
- return true;
- else
- return false;
- }
- function btn_file_del_onclick(obj:Button, e:ClickEventInfo)
- {
- // 서버에 저장 되어 있는 것들을 지우기 위해 담아둠
- var selectedRows = grdf_getSelectedRows(grd_AddFile);
-
- for(var i = selectedRows.length - 1; i >= 0; i--) {
- var currow = selectedRows[i];
-
- if(!utlf_isNull(ds_file.getColumn(currow, "filekey"))) {
- var nRow = ds_delete_file.addRow();
- ds_delete_file.copyRow(nRow, ds_file, currow);
- }
-
- ds_file.deleteRow(currow);
- }
- }
- function grd_AddFile_oncellclick(obj:Grid, e:GridClickEventInfo)
- {
- if(e.col == 4) {
- fPreview(ds_file.getColumn(e.row, "filename"), ds_file.getColumn(e.row, "filepath"));
- } else if(e.col == 5) {
- fFileDown(ds_file.getColumn(e.row, "filename"), ds_file.getColumn(e.row, "filepath"));
- }
- }
- function fPreview(filenm, filepath) {
- if(utlf_isNull(filepath)) return;
-
- var temp_path = "C:\\temp2";
-
- var objActiveX = new ActiveX();
- var FSO = objActiveX.createObject("Scripting.FileSystemObject");
-
- objActiveX.destroy();
- objActiveX = null;
-
- // 객체 생성 실패하면 리턴
- if (FSO == null) return;
- // 시스템 드라이브가 없다면..
- if (FSO.DriveExists("C") == false) return;
- // 임시디렉토리가 없으면 생성
- if (FSO.FolderExists(temp_path) == false)
- folder = FSO.CreateFolder(temp_path);
-
- ds_attfile.setColumn(0, "filepath", filepath);
- ds_attfile.setColumn(0, "fullpath", temp_path + "\\" + filenm);
- //키값을 가지고 DB에 저장된 데이타를 조회하러 간다
- var oParam = {};
- oParam.id = "SPZSN00603";
- oParam.service = "noticeinfoapp.noticeinfo";
- oParam.method = "reqGetAttachFile";
- oParam.inds = "req=ds_attfile";
- oParam.outds = "ds_filelist=file";
- oParam.async = true;
- oParam.callback = "cf_SPZSN00603";
- tranf_submit(oParam);
- }
- function cf_SPZSN00603(sSvcId, nErrorCode, sErrorMsg)
- {
- if(nErrorCode < 0) return;
-
- if(ds_filelist.rowcount > 0) {
- var fullpath = ds_filelist.getColumn(0, "fullpath");
-
- dsf_readFileFromDs(fullpath, ds_filelist, 0, "filecnts"); // 파일저장
-
- system.execShell("\"" + fullpath + "\"");
- }
- }
- function fFileDown(filenm, filepath) {
- if(utlf_isNull(filepath)) return;
-
- //파일을 다운로드 하기 위해 저장할 창을 띄움
- var fd = new FileDialog;
- var objVFileList = fd.open("다운 받을 위치를 선택하여 주십시오.", FileDialog.SAVE, "", filenm);
-
- if (objVFileList != null) {
- ds_attfile.setColumn(0, "filepath", filepath);
- ds_attfile.setColumn(0, "fullpath", objVFileList.fullpath);
- //키값을 가지고 DB에 저장된 데이타를 조회하러 간다
- var oParam = {};
- oParam.id = "SPZSN00602";
- oParam.service = "noticeinfoapp.noticeinfo";
- oParam.method = "reqGetAttachFile";
- oParam.inds = "req=ds_attfile";
- oParam.outds = "ds_filelist=file";
- oParam.async = true;
- oParam.callback = "cf_SPZSN00602";
- tranf_submit(oParam);
- }
- }
- function cf_SPZSN00602(sSvcId, nErrorCode, sErrorMsg)
- {
- if(nErrorCode < 0) return;
-
- if(ds_filelist.rowcount > 0) {
- var fullpath = ds_filelist.getColumn(0, "fullpath");
-
- dsf_readFileFromDs(fullpath, ds_filelist, 0, "filecnts"); // 파일저장
-
- if(sysf_messageBox("파일을", "Q004") == "6")
- system.execShell("\"" + fullpath + "\"");
- }
- }
- function grd_demolist_onheadclick(obj:Grid, e:GridClickEventInfo)
- {
- if( e.col == 0 ){
- if( obj.getCellProperty("Head", 0, "expr") == "0" ){
- obj.setCellProperty("Head", 0, "expr", "1");
-
- for( var i=0 ; i<ds_demolist.rowcount ; i++ ){
- if( ds_demolist.getColumn(i, "colEnable") == "checkbox" ){
- ds_demolist.setColumn(i, "colCheck", "1");
- }
- }
- }else{
- obj.setCellProperty("Head", 0, "expr", "0");
-
- for( var i=0 ; i<ds_demolist.rowcount ; i++ ){
- if( ds_demolist.getColumn(i, "colEnable") == "checkbox" ){
- ds_demolist.setColumn(i, "colCheck", "0");
- }
- }
- }
- }
- }
- function btn_rowDel_onclick(obj:Button, e:ClickEventInfo)
- {
- for( var i=ds_demolist.rowcount-1 ; i>=0 ; i-- ){
- if( ds_demolist.getColumn(i, "colCheck") == "1" ){
- ds_temp_demolist.clearData();
- ds_temp_demolist.addRow();
-
- ds_temp_demolist.copyRow(0, ds_demolist, i);
-
- ds_temp_demolist.setColumn(0, "status", "d");
- ds_temp_demolist.setColumn(0, "flag", "");
-
- dsf_createDsRow("ds_req", [
- {col:"filekey", type:"STRING", size:256, val:dsf_getColumnNullToEmpty(ds_temp_demolist, 0, "filekey")}
- ]);
-
- var oParam = {};
- oParam.id = "TRRSC20202";
- oParam.service = "reqapp.ReqMngt";
- oParam.method = "reqGetAttFileList";
- oParam.inds = "req=ds_req";
- oParam.outds = "ds_file=files";
- oParam.async = false;
- //oParam.callback = "cf_TRRSC20202";
- tranf_submit(oParam);
-
- ds_file.addColumn("filedata", "BLOB");
-
- var oParam = {};
- oParam.id = "TXRSE01702";
- oParam.service = "reqapp.ReqMngt";
- oParam.method = "reqExeDemoDetailList";
- oParam.inds = "req=ds_temp_demolist deletefiles=ds_file:A";
- oParam.outds = "";
- oParam.async = false;
- oParam.callback = "cf_TXRSE01702";
- tranf_submit(oParam);
- }
- }
-
- if( arErrorCode.pop("TXRSE01702") > -1 ){
- sysf_messageBox("삭제 처리되었습니다.", "I999", "");
-
- div_search.btn_search.click();
- }
- }
- function cf_TXRSE01702(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- function btn_print_onclick(obj:Button, e:ClickEventInfo)
- {
- var objDOM = rptf_createDOM();
- rptf_setNodeListToDOM(objDOM, "/root/temp/demolist", ds_temp_demolist);
- var objParam = new Object();
- objParam.xml_data_XML1 = objDOM.documentElement.source;
- var option = "";
- rptf_exeReportPreview30(["RPRSE01700"],[objParam], option);
- }
- ]]></Script>
- </Form>
- </FDL>
|