123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPMQI00100" position="absolute 0 0 778 865" titletext="설명처방 의뢰 게시판" onload="SPMNO10000_onload" ontimer="SPMNO10000_ontimer">
- <Layouts>
- <Layout>
- <Div position="absolute 0 24 778 60" align="align:center top;" id="group2" class="div_SA" taborder="19" anchor="all">
- <Layouts>
- <Layout>
- <Static text="의뢰일자 :" position="absolute 15 9 86 29" id="caption2" class="search_name" anchor="default"/>
- <Calendar position="absolute 92 9 193 29" id="ipt_fromdd" class="input_search" anchor="default" autoselect="true"/>
- <Static text="~" position="absolute 198 9 213 29" align="align:center middle;" id="caption10" anchor="default"/>
- <Calendar position="absolute 213 9 314 29" id="ipt_todd" class="input_search" anchor="default" autoselect="true"/>
- <Shape position="absolute 574 9 580 29" linetype="vertical" id="line1" class="line_4" anchor="top right"/>
- <Button position="absolute 587 9 643 29" id="btn_search" class="btn1" text="조회" anchor="top right" onclick="group2_btn_search_onclick"/>
- <Static text="의뢰구분 :" position="absolute 15 9 86 29" id="caption12" class="search_name" anchor="default" visible="false"/>
- <Radio position="absolute 90 9 200 29" id="rdo_condgbn" columncount="2" codecolumn="codecolumn" datacolumn="datacolumn" anchor="default" visible="false">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">02</Col>
- <Col id="datacolumn">진료</Col>
- </Row>
- <Row>
- <Col id="codecolumn">01</Col>
- <Col id="datacolumn">간호</Col>
- </Row>
- </Rows>
- </Dataset>
- </Radio>
- <Button position="absolute 703 9 761 29" id="button1" class="btn7" text="Excel" anchor="top right" onclick="group2_button1_onclick"/>
- <Button position="absolute 645 9 701 29" id="button2" class="btn6" text="출력" anchor="top right" onclick="group2_button2_onclick"/>
- </Layout>
- </Layouts>
- </Div>
- <Grid position="absolute 0 67 778 410" id="grd_bbs" binddataset="ds_main_reqbbsinfo_reqbbslist" oncelldblclick="grd_bbs_oncelldblclick" cellsizingtype="col" autofittype="col" taborder="18" anchor="all" selecttype="multirow">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="50"/>
- <Column size="35"/>
- <Column size="230"/>
- <Column size="0"/>
- <Column size="116"/>
- <Column size="60"/>
- <Column size="90"/>
- <Column size="129"/>
- <Column size="60"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell text="No."/>
- <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="응답자"/>
- <Cell col="9" text="첨부파일명"/>
- <Cell col="10" text="첨부파일패스"/>
- <Cell col="11" text="구분"/>
- <Cell col="12" text="기관"/>
- <Cell col="13" text="의뢰자ID"/>
- <Cell col="14" text="응답일자"/>
- <Cell col="15" text="응답자ID"/>
- <Cell col="16" text="응답내용"/>
- <Cell col="17" text="의뢰부서코드"/>
- <Cell col="18" text="의뢰전화"/>
- </Band>
- <Band id="body">
- <Cell style="align:right;" text="bind:seq_no"/>
- <Cell col="1" displaytype="combo" edittype="none" style="align:center middle;padding:2 2 2 2;" text="bind:status" combodataset="ds_init_status" combocodecol="value" combodatacol="label" enable="false"/>
- <Cell col="2" style="align:left;" text="bind:req_title"/>
- <Cell col="3" text="bind:req_text"/>
- <Cell col="4" displaytype="date" text="bind:reqdate" mask="yyyy-MM-dd HH:mm:ss" calendardisplaynulltype="nulltext"/>
- <Cell col="5" style="align:left;" text="bind:req"/>
- <Cell col="6" style="align:left;" text="bind:reqward"/>
- <Cell col="7" displaytype="date" text="bind:replydate" mask="yyyy-MM-dd HH:mm:ss" calendardisplaynulltype="nulltext"/>
- <Cell col="8" text="bind:rep"/>
- <Cell col="9" text="bind:attfilenm"/>
- <Cell col="10" text="bind:attfilepath"/>
- <Cell col="11" text="bind:gbn"/>
- <Cell col="12" text="bind:instcd"/>
- <Cell col="13" text="bind:reqid"/>
- <Cell col="14" text="bind:replydate"/>
- <Cell col="15" text="bind:replyid"/>
- <Cell col="16" text="bind:reply_text"/>
- <Cell col="17" text="bind:reqwardcd"/>
- <Cell col="18" text="bind:reqphone"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Shape position="absolute 0 62 778 68" linetype="horizontal" id="line2" class="line_1" style="strokepen:3 solid #33bbbbff;" anchor="left top right"/>
- <Shape position="absolute 0 863 778 865" linetype="horizontal" id="line4" class="line_3" anchor="left right bottom"/>
- <Button position="absolute 542 417 606 437" id="btn_cancel" class="btn2" taborder="24" visible="false" text="작성취소" onclick="btn_cancel_onclick" anchor="right bottom"/>
- <Button position="absolute 607 417 649 437" id="btn_new" class="btn2" taborder="23" text="신규" onclick="btn_new_onclick" anchor="right bottom"/>
- <Button position="absolute 650 417 692 437" id="btn_mod" class="btn2" taborder="22" text="수정" onclick="btn_mod_onclick" anchor="right bottom"/>
- <Button position="absolute 693 417 735 437" id="btn_save" class="btn5" enable="false" taborder="21" text="저장" onclick="btn_save_onclick" anchor="right bottom"/>
- <Button position="absolute 736 417 778 437" id="btn_del" class="btn5" enable="false" text="삭제" onclick="btn_del_onclick" taborder="17" anchor="right bottom"/>
- <Static text="의뢰내용" position="absolute 0 487 79 636" align="align:center middle;" id="cap_cnts" class="cell_1" anchor="left bottom"/>
- <Shape position="absolute 0 437 778 443" linetype="horizontal" id="line9" class="line_1" style="strokepen:3 solid #33bbbbff;" anchor="left right bottom"/>
- <Static text="내용" position="absolute 0 420 134 437" id="caption7" class="tit_2" anchor="left bottom"/>
- <TextArea position="absolute 81 487 778 637" id="ipt_req_text" class="text_essential" wordwrap="word" imemode="hangul" taborder="2" anchor="left right bottom"/>
- <Static text="응답내용" position="absolute 0 690 79 838" align="align:center middle;" id="caption1" class="cell_1" anchor="left bottom"/>
- <Static text="의뢰일" position="absolute 576 442 655 462" align="align:center middle;" id="caption5" class="cell_1" anchor="left bottom"/>
- <Static text="의뢰자" position="absolute 0 442 79 462" align="align:center middle;" id="caption8" class="cell_1" anchor="left bottom"/>
- <Static text="부서" position="absolute 345 442 424 462" align="align:center middle;" id="caption9" class="cell_1" anchor="left bottom"/>
- <Edit position="absolute 81 442 149 462" id="input1" taborder="16" anchor="left bottom"/>
- <Edit position="absolute 426 442 574 462" id="input2" taborder="15" anchor="left bottom"/>
- <MaskEdit position="absolute 657 442 778 462" id="input3" mask="####-##-## ##:##:##" maskchar=" " type="string" displaynulltext=" " style="align:left middle;" trimtype="both" taborder="14" anchor="left right bottom"/>
- <Edit position="absolute 5 443 90 462" id="input4" visible="false" taborder="13" anchor="left bottom"/>
- <Edit position="absolute 20 443 150 463" id="input5" visible="false" taborder="12" anchor="left bottom"/>
- <Static text="상태" position="absolute 0 840 79 862" align="align:center middle;" id="caption3" class="cell_1" anchor="left bottom"/>
- <Radio position="absolute 85 841 745 861" id="rdo_status" enable="false" columncount="5" codecolumn="codecolumn" datacolumn="datacolumn" taborder="11" anchor="left right bottom">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">0</Col>
- <Col id="datacolumn">대기</Col>
- </Row>
- <Row>
- <Col id="codecolumn">1</Col>
- <Col id="datacolumn">진행</Col>
- </Row>
- <Row>
- <Col id="codecolumn">2</Col>
- <Col id="datacolumn">보류</Col>
- </Row>
- <Row>
- <Col id="codecolumn">3</Col>
- <Col id="datacolumn">완료</Col>
- </Row>
- <Row>
- <Col id="codecolumn">9</Col>
- <Col id="datacolumn">반려</Col>
- </Row>
- </Rows>
- </Dataset>
- </Radio>
- <TextArea position="absolute 81 690 778 838" id="ipt_reply_text" enable="false" wordwrap="word" taborder="10" anchor="left right bottom"/>
- <Static text="응답일" position="absolute 562 667 614 687" align="align:center middle;" id="caption4" class="cell_1" anchor="right bottom"/>
- <Static text="응답자" position="absolute 415 667 465 687" align="align:center middle;" id="caption11" class="cell_1" anchor="right bottom"/>
- <Shape position="absolute 0 659 778 665" linetype="horizontal" id="line6" class="line_2" anchor="left right bottom"/>
- <Button position="absolute 736 667 778 687" id="btn_reply" class="btn2" taborder="20" text="응답" onclick="btn_reply_onclick" anchor="right bottom"/>
- <Edit position="absolute 170 665 255 685" id="ipt_replyid" visible="false" taborder="9" anchor="left bottom"/>
- <Edit position="absolute 467 667 552 687" id="ipt_rep" taborder="8" anchor="right bottom"/>
- <MaskEdit position="absolute 615 667 733 687" id="ipt_replydate" mask="####-##-## ##:##:##" type="string" maskchar=" " displaynulltext=" " style="align:left middle;" trimtype="both" taborder="7" anchor="right bottom"/>
- <Static text="의뢰구분" position="absolute 0 443 79 463" align="align:center middle;" id="caption13" class="cell_1" anchor="left bottom" visible="false"/>
- <Radio position="absolute 82 442 175 464" id="rdo_gbn" columncount="2" codecolumn="codecolumn" datacolumn="datacolumn" taborder="6" anchor="left bottom" visible="false">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">02</Col>
- <Col id="datacolumn">진료</Col>
- </Row>
- <Row>
- <Col id="codecolumn">01</Col>
- <Col id="datacolumn">간호</Col>
- </Row>
- </Rows>
- </Dataset>
- </Radio>
- <Button position="absolute 671 639 735 659" id="btn_down" class="btn2" taborder="26" text="다운로드" onclick="btn_down_onclick" anchor="right bottom"/>
- <Edit position="absolute 81 639 561 659" id="ipt_attfilenm" taborder="5" anchor="left right bottom"/>
- <Button position="absolute 736 639 778 659" id="btn_filedel" class="btn2" text="삭제" onclick="btn_filedel_onclick" taborder="4" anchor="right bottom"/>
- <Static text="첨부" position="absolute 0 638 79 660" align="align:center middle;" id="caption14" class="cell_1" anchor="left bottom"/>
- <Button position="absolute 606 639 670 659" id="btn_preview" class="btn2" taborder="25" text="미리보기" onclick="btn_preview_onclick" anchor="right bottom"/>
- <Button position="absolute 563 639 605 659" id="btn_fileadd" class="btn2" text="첨부" onclick="btn_fileadd_onclick" taborder="3" anchor="right bottom"/>
- <Edit position="absolute 233 442 343 462" id="input6" anchor="left bottom"/>
- <Static text="연락처" position="absolute 152 442 231 462" align="align:center middle;" id="caption15" class="cell_1" anchor="left bottom"/>
- <TextArea position="absolute 81 465 778 485" id="ipt_req_title" class="text_essential" style="padding:3 5 3 5;" imemode="hangul" taborder="1" anchor="left right bottom"/>
- <Static text="의뢰제목" position="absolute 0 465 79 485" align="align:center middle;" id="caption16" class="cell_1" anchor="left bottom"/>
- <Static id="caption6" text="설명처방 의뢰 게시판" class="tit_1" position="absolute 0 0 160 25"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_grd_bbs" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="seq_no" type="STRING"/>
- <Column id="status" type="STRING"/>
- <Column id="req_title" type="STRING"/>
- <Column id="req_text" type="STRING"/>
- <Column id="reqdate" type="STRING"/>
- <Column id="req" type="STRING"/>
- <Column id="reqward" type="STRING"/>
- <Column id="replydate" type="STRING"/>
- <Column id="rep" type="STRING"/>
- <Column id="attfilenm" type="STRING"/>
- <Column id="attfilepath" type="STRING"/>
- <Column id="gbn" type="STRING"/>
- <Column id="instcd" type="STRING"/>
- <Column id="reqid" type="STRING"/>
- <Column id="replydate" type="STRING"/>
- <Column id="replyid" type="STRING"/>
- <Column id="reply_text" type="STRING"/>
- <Column id="reqwardcd" type="STRING"/>
- <Column id="reqphone" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_iteminfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="seq_no" type="STRING" size="256"/>
- <Column id="gbn" type="STRING" size="256"/>
- <Column id="instcd" type="STRING" size="256"/>
- <Column id="reqdate" type="STRING" size="256"/>
- <Column id="reqid" type="STRING" size="256"/>
- <Column id="req" type="STRING" size="256"/>
- <Column id="replydate" type="STRING" size="256"/>
- <Column id="replyid" type="STRING" size="256"/>
- <Column id="rep" type="STRING" size="256"/>
- <Column id="status" type="STRING" size="256"/>
- <Column id="savemode" type="STRING" size="256"/>
- <Column id="req_title" type="STRING" size="256"/>
- <Column id="req_text" type="STRING" size="256"/>
- <Column id="reply_text" type="STRING" size="256"/>
- <Column id="reqwardcd" type="STRING" size="256"/>
- <Column id="reqward" type="STRING" size="256"/>
- <Column id="attfilenm" type="STRING" size="256"/>
- <Column id="attfilepath" type="STRING" size="256"/>
- <Column id="reqphone" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="seq_no"/>
- <Col id="gbn">02</Col>
- <Col id="instcd"/>
- <Col id="reqdate"/>
- <Col id="reqid"/>
- <Col id="req"/>
- <Col id="replydate"/>
- <Col id="replyid"/>
- <Col id="rep"/>
- <Col id="status"/>
- <Col id="savemode"/>
- <Col id="req_title"/>
- <Col id="req_text"/>
- <Col id="reply_text"/>
- <Col id="reqwardcd"/>
- <Col id="reqward"/>
- <Col id="attfilenm"/>
- <Col id="attfilepath"/>
- <Col id="reqphone"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_reqbbsinfo_reqbbslist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="seq_no" type="STRING" size="256"/>
- <Column id="gbn" type="STRING" size="256"/>
- <Column id="instcd" type="STRING" size="256"/>
- <Column id="reqdate" type="STRING" size="256"/>
- <Column id="reqid" type="STRING" size="256"/>
- <Column id="replydate" type="STRING" size="256"/>
- <Column id="replyid" type="STRING" size="256"/>
- <Column id="status" type="STRING" size="256"/>
- <Column id="req_title" type="STRING" size="256"/>
- <Column id="req_text" type="STRING" size="256"/>
- <Column id="reply_text" type="STRING" size="256"/>
- <Column id="reqwardcd" type="STRING" size="256"/>
- <Column id="attfilenm" type="STRING" size="256"/>
- <Column id="attfilepath" type="STRING" size="256"/>
- <Column id="reqphone" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="seq_no"/>
- <Col id="gbn"/>
- <Col id="instcd"/>
- <Col id="reqdate"/>
- <Col id="reqid"/>
- <Col id="replydate"/>
- <Col id="replyid"/>
- <Col id="status"/>
- <Col id="req_title"/>
- <Col id="req_text"/>
- <Col id="reply_text"/>
- <Col id="reqwardcd"/>
- <Col id="attfilenm"/>
- <Col id="attfilepath"/>
- <Col id="reqphone"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="gbn" type="STRING" size="256"/>
- <Column id="todd" type="STRING" size="256"/>
- <Column id="fromdd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="gbn">02</Col>
- <Col id="todd"/>
- <Col id="fromdd"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_itcinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_main" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="reqphone" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="gbn" type="STRING" size="256"/>
- <Column id="fromdd" type="STRING" size="256"/>
- <Column id="todd" type="STRING" size="256"/>
- <Column id="file" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="gbn"/>
- <Col id="fromdd"/>
- <Col id="todd"/>
- <Col id="file"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_init_M0624" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_init_status" 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">0</Col>
- </Row>
- <Row>
- <Col id="label">진행</Col>
- <Col id="value">1</Col>
- </Row>
- <Row>
- <Col id="label">보류</Col>
- <Col id="value">2</Col>
- </Row>
- <Row>
- <Col id="label">완료</Col>
- <Col id="value">3</Col>
- </Row>
- <Row>
- <Col id="label">반려</Col>
- <Col id="value">9</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_temp_reqbbsinfo_reqbbslist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="seq_no" type="STRING" size="256"/>
- <Column id="gbn" type="STRING" size="256"/>
- <Column id="instcd" type="STRING" size="256"/>
- <Column id="reqdate" type="STRING" size="256"/>
- <Column id="reqid" type="STRING" size="256"/>
- <Column id="replydate" type="STRING" size="256"/>
- <Column id="replyid" type="STRING" size="256"/>
- <Column id="status" type="STRING" size="256"/>
- <Column id="req_title" type="STRING" size="256"/>
- <Column id="req_text" type="STRING" size="256"/>
- <Column id="reply_text" type="STRING" size="256"/>
- <Column id="reqwardcd" type="STRING" size="256"/>
- <Column id="attfilenm" type="STRING" size="256"/>
- <Column id="attfilepath" type="STRING" size="256"/>
- <Column id="reqphone" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="seq_no"/>
- <Col id="gbn"/>
- <Col id="instcd"/>
- <Col id="reqdate"/>
- <Col id="reqid"/>
- <Col id="replydate"/>
- <Col id="replyid"/>
- <Col id="status"/>
- <Col id="req_title"/>
- <Col id="req_text"/>
- <Col id="reply_text"/>
- <Col id="reqwardcd"/>
- <Col id="attfilenm"/>
- <Col id="attfilepath"/>
- <Col id="reqphone"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_send_file" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="filedata" type="BLOB" size="0"/>
- <Column id="filenm" type="STRING" size="256"/>
- <Column id="filesize" type="STRING" size="256"/>
- <Column id="filetype" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_req" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_download" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_main_reqphone" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_send_savedata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="group2.rdo_condgbn" propid="value" datasetid="ds_main_cond" columnid="gbn"/>
- <BindItem id="item1" compid="group2.ipt_fromdd" propid="value" datasetid="ds_main_cond" columnid="fromdd"/>
- <BindItem id="item2" compid="group2.ipt_todd" propid="value" datasetid="ds_main_cond" columnid="todd"/>
- <BindItem id="item3" compid="rdo_gbn" propid="value" datasetid="ds_main_iteminfo" columnid="gbn"/>
- <BindItem id="item4" compid="input1" propid="value" datasetid="ds_main_iteminfo" columnid="req"/>
- <BindItem id="item5" compid="input6" propid="value" datasetid="ds_main_iteminfo" columnid="reqphone"/>
- <BindItem id="item6" compid="input2" propid="value" datasetid="ds_main_iteminfo" columnid="reqward"/>
- <BindItem id="item7" compid="input3" propid="value" datasetid="ds_main_iteminfo" columnid="reqdate"/>
- <BindItem id="item8" compid="ipt_req_title" propid="value" datasetid="ds_main_iteminfo" columnid="req_title"/>
- <BindItem id="item9" compid="ipt_req_text" propid="value" datasetid="ds_main_iteminfo" columnid="req_text"/>
- <BindItem id="item10" compid="ipt_attfilenm" propid="value" datasetid="ds_main_iteminfo" columnid="attfilenm"/>
- <BindItem id="item11" compid="ipt_replyid" propid="value" datasetid="ds_main_iteminfo" columnid="replyid"/>
- <BindItem id="item12" compid="ipt_rep" propid="value" datasetid="ds_main_iteminfo" columnid="rep"/>
- <BindItem id="item13" compid="ipt_replydate" propid="value" datasetid="ds_main_iteminfo" columnid="replydate"/>
- <BindItem id="item14" compid="ipt_reply_text" propid="value" datasetid="ds_main_iteminfo" columnid="reply_text"/>
- <BindItem id="item15" compid="rdo_status" propid="value" datasetid="ds_main_iteminfo" columnid="status"/>
- <BindItem id="item16" compid="input5" propid="value" datasetid="ds_main_iteminfo" columnid="reqwardcd"/>
- <BindItem id="item17" compid="input4" propid="value" datasetid="ds_main_iteminfo" columnid="reqid"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[include "com_commonxp::comm_main.xjs";
- var gMaxSize = 10485760;
- var arErrorCode = new HashArray();
- //------------
- // SPMNO10000.xjs 시작
- //----------------------
- /**
- * _desc : 게시판 화면 초기화
- * _
- * _param :
- * _return :
- * _author :
- * _---------------------------------------------------
- */
- function fInitialize(){
-
- var jobkindcd = sysf_getUserInfo("jobkindcd");
-
- //if (jobkindcd == "0330") {
- // dsf_makeValue( ds_main_cond, "gbn", "string", '02');
- //} else {
- dsf_makeValue( ds_main_cond, "gbn", "string", '01');
- //}
-
- //조회된 조건 초기화
- ipt_req_title.value = "";
- ipt_req_text.value = "";
- ipt_attfilenm.value = "";
-
- //조회날짜 받아옴
- var fromdd = ((utlf_getCurrentDate().toDate()).getAddDate(-30)).getDateFormat();
- var todd = utlf_getCurrentDate();
-
- //한달을 기준으로 한달안에 보내진 게시판만 보여줌
- dsf_makeValue( ds_main_cond, "fromdd", "string", fromdd);
- dsf_makeValue( ds_main_cond, "todd", "string", todd);
-
- // 게시판 리스트를 조회
- this.setTimer(0, 100);
- }
- /**
- * _desc : 게시판 조회
- * _
- * _param :
- * _return :
- * _author :
- * _---------------------------------------------------
- */
- function fgetReqBbsList(){
- //조회시에 수정및 삭제를 할수 없음
- btn_new.enable = true;
- btn_mod.enable = false;
- btn_cancel.visible = false;
- btn_save.enable = false;
- btn_del.enable = false;
-
- ipt_reply_text.enable = false;
- rdo_status.enable = false;
-
- if (fCheckFileExt()) {
- btn_preview.enable = true;
- btn_down.enable = true;
- btn_filedel.enable = true;
- }
- else {
- btn_preview.enable = false;
- btn_down.enable = false;
- btn_filedel.enable = false;
- }
-
- dsf_makeValue( ds_main_iteminfo, "status", "string", "e");
-
- // 조회 조건을 셋팅 한다.
- var gbn = ds_main_cond.getColumn(0, "gbn");
- var fromdd = ds_main_cond.getColumn(0, "fromdd") + '000000';
- var todd = ds_main_cond.getColumn(0, "todd") + '235959';
-
- ds_send.setColumn( 0, "gbn", gbn);
- ds_send.setColumn( 0, "fromdd", fromdd);
- ds_send.setColumn( 0, "todd", todd);
-
- ds_main_reqbbsinfo_reqbbslist.clearData();
- ds_main_iteminfo.clearData(); ds_main_iteminfo.addRow();
- // 게시판 리스트를 조회
- //submit("TRMNO10001");
- var oParam = {};
- oParam.id = "TRMQI00100";
- oParam.service = "qiapp.HiChartMngt";
- oParam.method = "reqGetReqBbsList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_reqbbsinfo_reqbbslist=reqbbslist";
- oParam.async = false;
- tranf_submit(oParam);
-
- dsf_setDefaultVal(ds_main_reqbbsinfo_reqbbslist, "chkyn:Y");
- ds_main_reqbbsinfo_reqbbslist.rowposition = -1;
-
- //model.refresh();
- }
- /**
- * _desc : 게시판 상세조회 (조회모드)
- * _
- * _param : 행번호
- * _return :
- * _author :
- * _---------------------------------------------------
- */
- function fgetReqBbsDetail(row){
- // 행번호가 없다면 바로 리턴 (버튼클릭하여 공지차을 띄운경우)
- if (utlf_isNull(row) || row >= grd_bbs.rowcount) return;
- // 해당 게시글을 뿌려줌
- ds_main_iteminfo.copyRow(0, ds_main_reqbbsinfo_reqbbslist, row);
-
- //model.refresh();
- // 사용자정보를 가지고와서 글작성자가 아니면 수정_삭제할수 없도록 함
- var userid = sysf_getUserId();
- var writerid = ds_main_iteminfo.getColumn(0, "reqid");
- if (userid == writerid) {
- btn_mod.enable = true;
- btn_del.enable = true;
- ipt_req_title.enable = true;
- ipt_req_text.enable = true;
- ipt_attfilenm.enable = true;
- } else{
- btn_mod.enable = false;
- btn_del.enable = false;
- ipt_req_title.enable = false;
- ipt_attfilenm.enable = false;
- }
- // 각종 컨트롤 보여주기 설정
- btn_cancel.visible = false;
- btn_new.enable = true;
- btn_save.enable = false;
-
- ds_main_itcinfo.clearData();
-
- var oParam = {};
- oParam.id = "TRMQI00102";
- oParam.service = "qiapp.HiChartMngt";
- oParam.method = "reqGetITCinfo";
- //oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_itcinfo=itcinfo";
- oParam.async = false;
- tranf_submit(oParam);
-
- var itcinfo = ds_main_itcinfo.getColumn(0, "itcinfo");
-
- if (itcinfo == 'Y') {
- btn_reply.enable = true;
- } else {
- btn_reply.enable = false;
- }
-
- ipt_reply_text.enable = false;
- rdo_status.enable = false;
-
- // ipt_req_title.enable = false; //.attribute("editable") = false;
- // ipt_req_text.enable = false; //.attribute("editable") = false;
- // ipt_attfilenm.enable = false; //.attribute("editable") = false;
- if (fCheckFileExt()) {
- btn_preview.enable = true;
- btn_down.enable = true;
- btn_filedel.enable = true;
- }
- else {
- btn_preview.enable = false;
- btn_down.enable = false;
- btn_filedel.enable = false;
- }
-
- }
- /**
- * _desc : 게시판 내용 삭제
- * _
- * _param :
- * _return :
- * _author :
- * _---------------------------------------------------
- */
- function fDelBbs() {
- var seq_no = ds_main_iteminfo.getColumn(0, "seq_no");
- if (seq_no == ""){
- return;
- }
-
- // 사용자정보를 가지고와서 글작성자가 아니면 삭제할 수 없도록 함
- var userid = sysf_getUserId();
- var writerid = ds_main_iteminfo.getColumn(0, "reqid");
- if (userid == writerid) {
- dsf_makeValue( ds_main_iteminfo, "savemode", "string", "d"); // 삭제표시
- dsf_makeValue( ds_main_iteminfo, "isDeleteFile", "string", "Y");
- fExeSave(); // 저장
- } else {
- sysf_messageBox("작성자만 삭제 ","I006");
- }
- }
- /**
- * _desc : 게시판 신규 _수정 후 저장
- * _
- * _param :
- * _return :
- * _author :
- * _---------------------------------------------------
- */
-
- function fExeSave() {
- var savemode = ds_main_iteminfo.getColumn(0, "savemode");
-
- // 게시판 마스터
- dsf_makeValue( ds_send, "savedata", "string", "" );
- ds_send_savedata.copyData(ds_main_iteminfo);
-
- //var retvalue = submit("TXMNO10001");
-
- var oParam = {};
- oParam.id = "TXMQI00100";
- oParam.service = "qiapp.HiChartMngt";
- oParam.method = "reqExeSaveReqBbs";
- oParam.inds = "req=ds_send_savedata file=ds_send_file";
- oParam.outds = "";
- oParam.async = false;
- oParam.callback = "cf_TXMQI00100";
- tranf_submit(oParam);
- // 저장시 에러난 경우 목록을 재로딩함
- if(arErrorCode.pop("TXMQI00100") < 0)
- {
- if (savemode == "i"){
- sysf_messageBox("새 게시글 작성에", "E009");
- }else if (savemode == "u"){
- sysf_messageBox("새 게시글 수정에", "E009");
- }else if (savemode == "r"){
- sysf_messageBox("새 게시글 응답에", "E009");
- }else{
- sysf_messageBox("새 게시글 삭제에", "E009");
- }
- }else{
- if (savemode == "i"){
- sysf_messageBox("새 게시글이 작성이", "I001");
- }else if (savemode == "u"){
- sysf_messageBox("게시글이 수정이", "I001");
- }else if (savemode == "r"){
- sysf_messageBox("게시글이 응답", "I001");
- }else{
- sysf_messageBox("게시글이 삭제", "I001");
- }
-
- fgetReqBbsList(); // 재조회
- }
- }
- function cf_TXMQI00100(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
-
- function fNewBbs() {
- ipt_req_title.value = "";
- ipt_req_text.value = "";
- ipt_attfilenm.value = "";
- ipt_rep.value = "";
- ipt_replydate.value = undefined;
-
-
- var userid = sysf_getUserInfo("userid");
- var usernm = sysf_getUserInfo("usernm");
- var reqwardcd = sysf_getUserInfo("dutplcecd")
- var reqward = sysf_getUserInfo("dutplcenm")
- var reqdate = utlf_getCurrentDate() + utlf_getCurrentTime();
-
- dsf_makeValue( ds_send, "deptcd", "string", "" );
- ds_send.setColumn( 0, "deptcd", reqwardcd);
-
- ds_main_reqphone.clearData();
-
- var oParam = {};
- oParam.id = "TRMQI00101";
- oParam.service = "qiapp.HiChartMngt";
- oParam.method = "reqGetReqPhone";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_reqphone=reqphone";
- oParam.async = false;
- tranf_submit(oParam);
- var reqphone = ds_main_reqphone.getColumn(0, "reqphone");
- ds_main_iteminfo.setColumn( 0, "reqid", userid);
- ds_main_iteminfo.setColumn( 0, "req", usernm);
- ds_main_iteminfo.setColumn( 0, "reqwardcd", reqwardcd);
- ds_main_iteminfo.setColumn( 0, "reqward", reqward);
- ds_main_iteminfo.setColumn( 0, "reqdate", reqdate);
- ds_main_iteminfo.setColumn( 0, "reqphone", reqphone);
- ipt_req_text.enable = true;
-
- ipt_req_title.setFocus();
- }
- function fFileAdd() {
- //******파일을 첨부하기 위해 파일열기가 open 되게 한다.
- //파일의 크기를 측정한다.
-
- //var maxsize = upload1.attribute("filesize");
- var maxsize = gMaxSize ; //
-
- var name = ds_main_iteminfo.getColumn(0, "attfilenm");
-
- if(!utlf_isNull(name) || name == '-'){
- var fileupdata = sysf_messageBox(name + " 파일 수정을" , "S001");
- if(fileupdata == '6'){
- //파일 삭제
- //input박스에 나타난 명을 제거
- ipt_attfilenm.value = "";
-
- //파일 저장
- //파일을 받아오기 위해 파일열기 팝업창을 띄운다.
- //var fileopen = window.fileDialog("open","|","false");
- var fd = new FileDialog;
- var objVFile = fd.open("FileOpen", FileDialog.LOAD); //// 단일 파일 선택
-
- //파일 경로가 아닌 이름만 input박스에 넣기 위한 처리
- ds_send_file.clearData();
- ds_send_file.addRow();
- var file = dsf_writeFileToDs(objVFile, ds_send_file, 0, "filedata");
-
- ds_send_file.setColumn(0, "filenm", file.filename); // 파일이름
- ds_send_file.setColumn(0, "filesize", file.filesize); // 파일사이즈
- ds_send_file.setColumn(0, "filetype", file.filetype); // 파일mime타입
-
- //파일 경로가 아닌 이름만 input박스에 넣기 위한 처리
- dsf_makeValue( ds_main_iteminfo, "attfilenm", "string", file.filename);
- var name = ds_main_iteminfo.getColumn(0, "attfilenm");
-
-
- //lastIndexOf함수는 \\이것을 뒤어세 검색하여 나오면 앞에 것은 지운다.
- var filename = name.lastIndexOf("\\");
- //open 파일명를 input박스에 넣는다.
- ipt_attfilenm.value = name.substring(filename + 1, name.length); //fileopen.substring(filename + 1);
-
- //선택한 파일이 저장버튼을 눌렀을때 저장이 되게 하기 위해 파일 저장 인스턴스에 파일주소를 저장해 둔다.
- dsf_makeValue( ds_send_file, "filename", "string", name);
- //model.refresh();
-
- //파일 크기가 너무 큰경우 메세지를 띄운다.
- if (!checkFileSize(file.filesize)){
- ipt_attfilenm.value = "";
- sysf_messageBox("파일 크기가 최대치("+maxsize+"Byte)를", "E003");
- ds_send_file.clearData(); ds_send_file.addRow();
- }
-
- dsf_makeValue( ds_main_iteminfo, "fileyn", "string", 'Y');
-
- btn_new.enable = false;
- btn_mod.enable = false;
- btn_save.enable = true;
- btn_del.enable = false;
-
- }else if(fileupdata == '7'){
- sysf_messageBox(name + " 파일 수정을 하지", "E007");
- dsf_makeValue( ds_main_iteminfo, "fileyn", "string", 'N');
- }else{
-
- }
- }else{
- //파일을 받아오기 위해 파일열기 팝업창을 띄운다.
- var fd = new FileDialog;
- var objVFile = fd.open("FileOpen", FileDialog.LOAD); //// 단일 파일 선택
-
- //파일 경로가 아닌 이름만 input박스에 넣기 위한 처리
- ds_send_file.clearData();
- ds_send_file.addRow();
- var file = dsf_writeFileToDs(objVFile, ds_send_file, 0, "filedata");
-
- ds_send_file.setColumn(0, "filenm", file.filename); // 파일이름
- ds_send_file.setColumn(0, "filesize", file.filesize); // 파일사이즈
- ds_send_file.setColumn(0, "filetype", file.filetype); // 파일mime타입
-
-
- //파일 경로가 아닌 이름만 input박스에 넣기 위한 처리
- dsf_makeValue( ds_main_iteminfo, "attfilenm", "string", file.filename);
- var name = ds_main_iteminfo.getColumn(0, "attfilenm");
-
-
- //lastIndexOf함수는 \\이것을 뒤어세 검색하여 나오면 앞에 것은 지운다.
- var filename = name.lastIndexOf("\\");
- //open 파일명를 input박스에 넣는다.
- ipt_attfilenm.value = name.substring(filename + 1, name.length); //fileopen.substring(filename + 1);
-
- //선택한 파일이 저장버튼을 눌렀을때 저장이 되게 하기 위해 파일 저장 인스턴스에 파일주소를 저장해 둔다.
- dsf_makeValue( ds_send_file, "filename", "string", name);
- //model.refresh();
-
- //파일 크기가 너무 큰경우 메세지를 띄운다.
- if (file.filesize > gMaxSize){
- ipt_attfilenm.value = "";
- sysf_messageBox("파일 크기가 최대치("+maxsize+"Byte)를", "E003");
- ds_send_file.clearData(); ds_send_file.addRow();
- }
-
- dsf_makeValue( ds_main_iteminfo, "fileyn", "string", 'Y');
- }
- }
- function fFilePreview() {
- var fso, folder;
- var temp_path = "C:\\temp2";
- //FSO = new ActiveXObject("Scripting.FileSystemObject");
- var objActiveX = new ActiveX();
- var FSO = inff_fileSystemObject();//objActiveX.createObject("Scripting.FileSystemObject");
- // 객체 생성 실패하면 리턴
- if (FSO == null){
- return;
- }
- // 시스템 드라이브가 없다면..
- if (FSO.DriveExists("C") == false){
- return;
- }
- // 임시디렉토리가 없으면 생성
- if (FSO.FolderExists(temp_path) == false){
- folder = FSO.CreateFolder(temp_path);
- }
- //파일명를 받아옴
- var getfilenm = ds_main_iteminfo.getColumn(0, "attfilenm");
- //파일명이 있는 경우 다운로드
- if(utlf_isNull(getfilenm)){
- return;
- }
- //파일명을 받아옴
- var filenm = ds_main_iteminfo.getColumn(0, "attfilenm");
- //키값을 받아옴
- var seq_no = ds_main_iteminfo.getColumn(0, "seq_no");
-
-
-
-
-
- //키값을 가지고 DB에 저장된 데이타를 조회하러 간다
- // model.download(getActionURL("TRMNO10003")+"&seq_no="+seq_no, temp_path+"\\"+filenm, false);
- // window.exec(temp_path+"\\"+filenm, "");
-
-
- ds_req.clearData();
- ds_req.addRow();
-
- dsf_makeValue(ds_req,"seq_no","string",seq_no);
-
- sysf_setErrorMsg(false); //자바단에서 에러발생시 1.0은 오류리턴을 안해서...
-
- var oParam = {};
- oParam.id = "TRMQI00103";
- oParam.service = "qiapp.HiChartMngt";
- oParam.method = "reqExeFileDownLoadReq";
- oParam.inds = "req=ds_req";
- oParam.outds = "ds_download=filelist";
- oParam.async = false;
- oParam.callback = "cf_TRMQI00103";
- tranf_submit(oParam);
-
- sysf_setErrorMsg(true);
- dsf_readFileFromDs(temp_path+"\\"+filenm, ds_download, 0, "attfilecnts"); // 파일저장
- var objExtCommon = new ExtCommon();
- var rtn = objExtCommon.executeProcess(temp_path+"\\"+filenm,"","");
- }
- function cf_TRMQI00103(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
-
- // var fd = new FileDialog;
- // var objVFile = fd.open("FileSave", FileDialog.SAVE, "%MYDOCUMENT%", ds_main_iteminfo.getColumn(ds_main_iteminfo.rowposition, "attfilenm")); // 단일 파일 선택
- // if (objVFile != null)
- // {
- // sysf_trace("objVFile.fullpath : " + objVFile.fullpath);
- // var temp = dsf_readFileFromDs(objVFile.fullpath, ds_download, 0, "attfilecnts"); // 파일저장
- // sleep(1000);
- // if( !utlf_isNull(temp) )
- // {
- // var rtn = sysf_messageBox("파일을", "Q004");
- // if( rtn == 6 )
- // {
- // var text = new String(objVFile.fullpath);
- // var replaceText = text.replace(" ", "");
- // if( text.length != replaceText.length )
- // {
- // sysf_messageBox("공백이 포함된 [파일명/폴더]는 자동열기가 실행되지 않습니다.", "E999", "");
- // return;
- // }
- // else
- // {
- // system.execShell(objVFile.fullpath);
- // }
- // }
- // }
- // }
-
- }
- function fFileDown() {
- //파일명를 받아옴
- var getfilenm = ds_main_iteminfo.getColumn(0, "attfilenm");
- //파일명이 있는 경우 다운로드
- if(!utlf_isNull(getfilenm)){
- // //파일명을 받아옴
- // var filenm = ds_main_iteminfo.getColumn(0, "attfilenm");
- // //파일명의 확장자만 받아옴
- // var fileext = filenm.lastIndexOf(".");
- // var ext = filenm.substring(fileext +1);
- // //파일을 다운로드 하기 위해 저장할 창을 띄움
- // var filesave = window.fileDialog("save","|",false,filenm,ext,"All Files(*.*)|*.*");
- //
- // //키값을 받아옴
- // var seq_no = ds_main_iteminfo.getColumn(0, "seq_no");
- //
- // //키값을 가지고 DB에 저장된 데이타를 조회하러 간다
- // if (filesave != "") {
- // model.download(getActionURL("TRMNO10003")+"&seq_no="+seq_no, filesave);
- // }
- //
-
- var seq_no = ds_main_iteminfo.getColumn(0, "seq_no");
- ds_req.clearData();
- ds_req.addRow();
-
- dsf_makeValue(ds_req,"seq_no","string",seq_no);
-
- sysf_setErrorMsg(false); //자바단에서 에러발생시 1.0은 오류리턴을 안해서...
-
- var oParam = {};
- oParam.id = "TRMQI00103";
- oParam.service = "qiapp.HiChartMngt";
- oParam.method = "reqExeFileDownLoadReq";
- oParam.inds = "req=ds_req";
- oParam.outds = "ds_download=filelist";
- oParam.async = false;
- oParam.callback = "cf_TRMQI00103";
- tranf_submit(oParam);
-
- sysf_setErrorMsg(true);
-
- var fd = new FileDialog;
- var sFileName = ds_main_iteminfo.getColumn(0, "attfilenm");
- var objVFile = fd.open("FileSave", FileDialog.SAVE, "%MYDOCUMENT%", sFileName); // 단일 파일 선택
- if (objVFile != null) {
- dsf_readFileFromDs(objVFile.fullpath, ds_download, 0, "attfilecnts"); // 파일저장
- }
- }
- }
- function fFileDel() {
- var name = ds_main_iteminfo.getColumn(0, "attfilenm");
-
- if(!utlf_isNull(name)){
- var fileupdata = sysf_messageBox(name + " 파일 삭제를" , "Q001");
- if(fileupdata == '6'){
- //파일 삭제
- ipt_attfilenm.value = "";
- ds_send_file.clearData();
- ds_send_file.addRow();
-
- btn_new.enable = false;
- btn_mod.enable = false;
- btn_save.enable = true;
- btn_del.enable = false;
-
- dsf_makeValue( ds_main_iteminfo, "savemode", "string", "u");
- dsf_makeValue( ds_main_iteminfo, "isDeleteFile", "string", "Y");
- }
- }
- }
- function fCheckFileExt() {
- retvalue = false;
- var filename = ds_main_iteminfo.getColumn(0, "attfilenm");
- var IMG_FORMAT = "\\.(bmp|gif|jpg|jpeg|png|doc|xls|cvs|txt|ppt|hwp|pptx|xlsx|docx|pdf)$";
- if( (new RegExp(IMG_FORMAT, "i")).test(filename)){
- retvalue = true;
- }else{
- retvalue = false;
- }
- return retvalue;
- }
- function ManipFiles()
- {
- var fso, f1, f2, s;
- fso = new ActiveXObject("Scripting.FileSystemObject");
- f1 = fso.CreateTextFile("c:\\testfile.txt", true);
- Response.Write("파일 쓰는 중 <br>");
- // 줄을 씁니다.
- f1.Write("텍스트입니다.");
- // 파일을 닫습니다.
- f1.Close();
- Response.Write("파일을 c:\\tmp로 이동하는 중 <br>");
- // C:\ 루트에 있는 파일에 대한 핸들을 가져옵니다.
- f2 = fso.GetFile("c:\\testfile.txt");
- // 파일을 \tmp 디렉터리로 옮깁니다.
- f2.Move ("c:\\tmp\\testfile.txt");
- Response.Write("파일을 c:\\temp로 복사하는 중 <br>");
- // 파일을 \temp로 복사합니다.
- f2.Copy ("c:\\temp\\testfile.txt");
- Response.Write("파일 삭제 중 <br>");
- // 파일의 현재 위치에 대한 핸들을 가져옵니다.
- f2 = fso.GetFile("c:\\tmp\\testfile.txt");
- f3 = fso.GetFile("c:\\temp\\testfile.txt");
- // 파일을 삭제합니다.
- f2.Delete();
- f3.Delete();
- Response.Write("완료되었습니다!");
- }
- function fPrtBbs() {
- // dsf_makeValue( ds_temp_bbsinfo, "bbslist", "string", "" );
- // copyNodesetType("_root_temp_bbsinfo_bbslist", grd_bbs.nodeset+ "[chkyn='Y']");
- // exeReportPreview("RPMNO10000", "XMLSTR");
-
- ds_main_reqbbsinfo_reqbbslist.filter("chkyn=='Y' || chkyn=='1'");
- ds_main_reqbbsinfo_reqbbslist.applyChange();
- ds_temp_reqbbsinfo_reqbbslist.copyData(ds_main_reqbbsinfo_reqbbslist, true );
- ds_main_reqbbsinfo_reqbbslist.filter("");
-
- var objDOM = rptf_createDOM(); // DOM 객체 설정
- rptf_setNodeListToDOM(objDOM, "/root/main/reqbbsinfo/reqbbslist", ds_temp_reqbbsinfo_reqbbslist); // 데이터셋 1
- rptf_setNodeListToDOM(objDOM, "/root/main/cond", this.ds_main_cond); // 데이터셋 1
-
- var objParam = new Object();
- objParam.xml_data_XML1 = objDOM.documentElement.source; // 최상의노드 XML 스트링 추출
- var option = "open=1;save=1;directprint=0;print=1;zoom=0;excel=1;show=1";
- rptf_exeReportPreview30(["RPMQI00101"],[objParam], option);
-
-
- }
- //--------------------
- // SPMNO10000.xjs 끝
- //--------------------
- function SPMNO10000_onload(obj:Form, e:LoadEventInfo)
- {
- frmf_initForm(obj); // 폼 초기화
- grdf_initGrid(this.grd_bbs); //Grid 초기화
- fInitialize() ;
- }
- function group2_btn_search_onclick(obj:Button, e:ClickEventInfo)
- {
- fgetReqBbsList();
- }
- function group2_button2_onclick(obj:Button, e:ClickEventInfo)
- {
- fPrtBbs();
- }
- function group2_button1_onclick(obj:Button, e:ClickEventInfo)
- {
- var SheetName = ds_main_cond.getColumn(0, "fromdd");
- if(utlf_isNull(SheetName)) SheetName = "Sheet1";
-
- // var fileName = window.fileDialog("save", ",", false, SheetName + " 전산의뢰게시판", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- // if (fileName != ""){
- // //그리드의 내용을 Excel 파일로 저장하는 함수로.. 파일이름을 받아온것을 가지고 저장하러 간다.
- // grd_bbs.saveExcel(fileName, SheetName, false, false, "", "");
- // }
-
- grdf_exportExcel(grd_bbs, SheetName + " 설명처방의뢰게시판", SheetName, false, "" , 'user' , true);
-
-
- }
- function grd_bbs_oncelldblclick(obj:Grid, e:GridClickEventInfo)
- {
- if (e.row >= 0 && e.col >= 0) {
- fgetReqBbsDetail(e.row);
- }
- }
- function btn_cancel_onclick(obj:Button, e:ClickEventInfo)
- {
- btn_cancel.visible = false;
- btn_new.enable = true;
- btn_mod.enable = false;
- btn_save.enable = false;
- btn_del.enable = false;
- btn_reply.enable = false;
-
- ipt_reply_text.enable = false;
- rdo_status.enable = false;
- dsf_makeValue( ds_main_iteminfo, "savemode", "string", 'e');
- fNewBbs();
- }
- function btn_new_onclick(obj:Button, e:ClickEventInfo)
- {
- btn_cancel.visible = true;
- btn_new.enable = false;
- btn_mod.enable = false;
- btn_save.enable = true;
- btn_del.enable = false;
- btn_reply.enable = false;
- btn_fileadd.enable = true;
-
- ipt_req_title.enable = true;
- ipt_req_text.enable = true;
- ipt_attfilenm.enable = true; //첨부파일기능보류
- ipt_reply_text.enable = false;
- rdo_status.enable = false;
-
- var jobkindcd = sysf_getUserInfo("jobkindcd");
- //if (jobkindcd == "0330") {
- // dsf_makeValue( ds_main_iteminfo, "gbn", "string", '02');
- //} else {
- dsf_makeValue( ds_main_iteminfo, "gbn", "string", '01');
- //}
- fNewBbs();
-
- dsf_makeValue( ds_main_iteminfo, "savemode", "string", 'i');
- }
- function btn_mod_onclick(obj:Button, e:ClickEventInfo)
- {
- btn_new.enable = false;
- btn_mod.enable = false;
- btn_cancel.visible = true;
- btn_save.enable = true;
- btn_del.enable = false;
- btn_reply.enable = false;
-
- ipt_req_text.enable = true;
- ipt_reply_text.enable = false;
- rdo_status.enable = false;
-
- dsf_makeValue( ds_main_iteminfo, "savemode", "string", "u"); // 수정표시
-
- ipt_req_text.setFocus();
- }
- function btn_save_onclick(obj:Button, e:ClickEventInfo)
- {
- // 각 필드값을 체크한다.
- // 공지내용 체크
- if(ds_main_iteminfo.getColumn(0, "gbn").getTrim()=="")
- {
- //sysf_messageBox("의뢰구분은 ", "I003");
- //rdo_gbn.setFocus();
- //return;
- dsf_makeValue( ds_main_iteminfo, "gbn", "string", '01');
- }
-
- if(ds_main_iteminfo.getColumn(0, "req_title").getTrim()=="")
- {
- sysf_messageBox("의뢰제목은 ", "I003");
- ipt_req_title.setFocus();
- return;
- }
-
- if(ds_main_iteminfo.getColumn(0, "req_text").getTrim()=="")
- {
- sysf_messageBox("의뢰내용은 ", "I003");
- ipt_req_text.setFocus();
- return;
- }
-
- fExeSave();
- }
- function btn_del_onclick(obj:Button, e:ClickEventInfo)
- {
- if (sysf_messageBox("해당 게시글을 삭제하시겠습니까?", "Q999") == 6) {
- fDelBbs();
- }
- }
- function btn_fileadd_onclick(obj:Button, e:ClickEventInfo)
- {
- fFileAdd();
- }
- function btn_preview_onclick(obj:Button, e:ClickEventInfo)
- {
- fFilePreview();
- }
- function btn_down_onclick(obj:Button, e:ClickEventInfo)
- {
- fFileDown();
- }
- function btn_filedel_onclick(obj:Button, e:ClickEventInfo)
- {
- fFileDel();
- }
- function btn_reply_onclick(obj:Button, e:ClickEventInfo)
- {
- btn_new.enable = false;
- btn_mod.enable = false;
- btn_cancel.visible = true;
- btn_save.enable = true;
- btn_del.enable = false;
- btn_reply.enable = true;
-
- var userid = sysf_getUserInfo("userid");
- var usernm = sysf_getUserInfo("usernm");
- var replydate = utlf_getCurrentDate() + utlf_getCurrentTime();
-
- ds_main_iteminfo.setColumn( 0, "replyid", userid);
- ds_main_iteminfo.setColumn( 0, "rep", usernm);
- ds_main_iteminfo.setColumn( 0, "replydate", replydate);
-
- dsf_makeValue( ds_main_iteminfo, "savemode", "string", "r"); // 수정표시
-
- ipt_req_text.enable = false;
- ipt_reply_text.enable = true;
- rdo_status.enable = true;
-
- //model.refresh();
- }
- function SPMNO10000_ontimer(obj:Form, e:TimerEventInfo)
- {
- if( e.timerid == 0 ){
- this.killTimer(0);
-
- fgetReqBbsList();
- }
- }]]></Script>
- </Form>
- </FDL>
|