1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPMNO10000" position="absolute 0 0 785 870" titletext="전산의뢰 게시판" onload="SPMNO10000_onload" ontimer="SPMNO10000_ontimer">
- <Layouts>
- <Layout>
- <Div position="absolute 0 0 775 25" id="group1">
- <Layouts>
- <Layout>
- <Static text="전산의뢰 게시판" position="absolute 0 0 129 23" id="caption6" class="tit_1"/>
- </Layout>
- </Layouts>
- </Div>
- <Div position="absolute 0 23 778 59" align="align:center top;" id="group2" class="div_SA">
- <Layouts>
- <Layout>
- <Static text="의뢰일자 :" position="absolute 225 10 296 27" id="caption2" class="search_name" anchor="default"/>
- <Calendar position="absolute 300 8 385 27" id="ipt_fromdd" class="input_search" anchor="default" autoselect="true"/>
- <Static text="~" position="absolute 390 8 405 27" align="align:center middle;" id="caption10" anchor="default"/>
- <Calendar position="absolute 405 8 490 27" id="ipt_todd" class="input_search" anchor="default" autoselect="true"/>
- <Shape position="absolute 574 7 580 32" linetype="vertical" id="line1" class="line_4" anchor="default"/>
- <Button position="absolute 587 7 643 29" id="btn_search" class="btn1" text="조회" anchor="default" onclick="group2_btn_search_onclick"/>
- <Static text="의뢰구분 :" position="absolute 5 10 76 27" id="caption12" class="search_name" anchor="default"/>
- <Radio position="absolute 80 8 190 28" id="rdo_condgbn" columncount="2" codecolumn="codecolumn" datacolumn="datacolumn" anchor="default">
- <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 7 761 29" id="button1" class="btn7" text="Excel" anchor="default" onclick="group2_button1_onclick"/>
- <Button position="absolute 645 7 701 29" id="button2" class="btn6" text="출력" anchor="default" onclick="group2_button2_onclick"/>
- </Layout>
- </Layouts>
- </Div>
- <Grid position="absolute 0 66 778 406" id="grd_bbs" scrollbars="autovert" binddataset="ds_main_reqbbsinfo_reqbbslist" oncelldblclick="grd_bbs_oncelldblclick" cellsizingtype="col" autofittype="col">
- <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="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 61 778 67" linetype="horizontal" id="line2" class="line_1" style="strokepen:3 solid #33bbbbff;"/>
- <Shape position="absolute 0 861 778 867" linetype="horizontal" id="line4" class="line_3"/>
- <Button position="absolute 542 413 606 432" id="btn_cancel" class="btn2" taborder="5" visible="false" text="작성취소" onclick="btn_cancel_onclick"/>
- <Button position="absolute 607 413 649 432" id="btn_new" class="btn2" taborder="5" text="신규" onclick="btn_new_onclick"/>
- <Button position="absolute 650 413 692 432" id="btn_mod" class="btn2" taborder="5" text="수정" onclick="btn_mod_onclick"/>
- <Button position="absolute 693 413 735 432" id="btn_save" class="btn5" enable="false" taborder="5" text="저장" onclick="btn_save_onclick"/>
- <Button position="absolute 736 413 778 432" id="btn_del" class="btn5" enable="false" text="삭제" onclick="btn_del_onclick"/>
- <Static text="의뢰내용" position="absolute 0 487 79 634" align="align:center middle;" id="cap_cnts" class="cell_1"/>
- <Shape position="absolute 0 435 778 441" linetype="horizontal" id="line9" class="line_1" style="strokepen:3 solid #33bbbbff;"/>
- <Static text="내용" position="absolute 1 418 135 435" id="caption7" class="tit_2"/>
- <TextArea position="absolute 81 487 778 634" id="ipt_req_text" class="text_essential" wordwrap="word"/>
- <Static text="응답내용" position="absolute 0 689 79 836" align="align:center middle;" id="caption1" class="cell_1"/>
- <Static text="의뢰일" position="absolute 609 442 656 461" align="align:center middle;" id="caption5" class="cell_1"/>
- <Static text="의뢰자" position="absolute 179 442 227 461" align="align:center middle;" id="caption8" class="cell_1"/>
- <Static text="부서" position="absolute 459 442 503 461" align="align:center middle;" id="caption9" class="cell_1"/>
- <Edit position="absolute 228 442 296 461" id="input1"/>
- <Edit position="absolute 504 442 607 461" id="input2"/>
- <MaskEdit position="absolute 657 442 778 461" id="input3" mask="####-##-## ##:##:##" maskchar=" " type="string" displaynulltext=" " style="align:left middle;" trimtype="both"/>
- <Edit position="absolute 5 442 90 461" id="input4" visible="false"/>
- <Edit position="absolute 20 442 150 461" id="input5" visible="false"/>
- <Static text="상태" position="absolute 0 839 79 861" align="align:center middle;" id="caption3" class="cell_1"/>
- <Radio position="absolute 85 839 745 859" id="rdo_status" enable="false" columncount="5" codecolumn="codecolumn" datacolumn="datacolumn">
- <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 689 778 836" id="ipt_reply_text" enable="false" wordwrap="word"/>
- <Static text="응답일" position="absolute 562 666 614 685" align="align:center middle;" id="caption4" class="cell_1"/>
- <Static text="응답자" position="absolute 414 666 464 685" align="align:center middle;" id="caption11" class="cell_1"/>
- <Shape position="absolute 0 658 778 664" linetype="horizontal" id="line6" class="line_2"/>
- <Button position="absolute 736 666 778 685" id="btn_reply" class="btn2" taborder="5" text="응답" onclick="btn_reply_onclick"/>
- <Edit position="absolute 170 664 255 683" id="ipt_replyid" visible="false"/>
- <Edit position="absolute 467 666 552 685" id="ipt_rep"/>
- <MaskEdit position="absolute 615 666 733 685" id="ipt_replydate" mask="####-##-## ##:##:##" type="string" maskchar=" " displaynulltext=" " style="align:left middle;" trimtype="both"/>
- <Static text="의뢰구분" position="absolute 0 443 79 462" align="align:center middle;" id="caption13" class="cell_1"/>
- <Radio position="absolute 84 442 177 463" id="rdo_gbn" columncount="2" codecolumn="codecolumn" datacolumn="datacolumn">
- <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 673 638 737 657" id="btn_down" class="btn2" taborder="6" text="다운로드" onclick="btn_down_onclick"/>
- <Edit position="absolute 81 638 563 657" id="ipt_attfilenm"/>
- <Button position="absolute 738 638 780 657" id="btn_filedel" class="btn2" text="삭제" onclick="btn_filedel_onclick"/>
- <Static text="첨부" position="absolute 0 637 79 659" align="align:center middle;" id="caption14" class="cell_1"/>
- <Button position="absolute 608 638 672 657" id="btn_preview" class="btn2" taborder="6" text="미리보기" onclick="btn_preview_onclick"/>
- <Button position="absolute 565 638 607 657" id="btn_fileadd" class="btn2" text="첨부" onclick="btn_fileadd_onclick"/>
- <Edit position="absolute 347 442 457 461" id="input6"/>
- <Static text="연락처" position="absolute 298 442 346 461" align="align:center middle;" id="caption15" class="cell_1"/>
- <TextArea position="absolute 81 465 778 484" id="ipt_req_title" class="text_essential" style="padding:3 5 3 5;"/>
- <Static text="의뢰제목" position="absolute 0 465 79 484" align="align:center middle;" id="caption16" class="cell_1"/>
- </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[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2015-05-01
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2015-05-01 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- include "com_commonxp::comm_main.xjs";
- //include "com_basiccodexp::ZBC001.xjs";
- //include "emr_outcarexp::SPMNO10000.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);
-
- // 게시판 리스트를 조회
- //fgetReqBbsList();
-
- 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 = "TRMNO10001";
- oParam.service = "outcareapp.OutCareMngt";
- 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_req_text.attribute("editable") = true;
- //ipt_req_text.attribute("readonly") = true;
- ipt_attfilenm.enable = true;
- } else{
- btn_mod.enable = false;
- btn_del.enable = false;
- ipt_req_title.enable = false;
- //ipt_req_text.enable = false;
- //ipt_req_text.attribute("editable") = false;
- //ipt_req_text.attribute("readonly") = true;
- ipt_attfilenm.enable = false;
- }
- // 각종 컨트롤 보여주기 설정
- btn_cancel.visible = false;
- btn_new.enable = true;
- btn_save.enable = false;
-
- // var jobkindcd = sysf_getUserInfo("jobkindcd");
- // var gbn = "";
- //
- // alert(jobkindcd);
- // if (jobkindcd == "1140") {
- // gbn = '01';
- // } else {
- // gbn = '02';
- // }
- // alert(gbn);
- var gbn = ds_main_iteminfo.getColumn(0, "gbn");
- dsf_makeValue( ds_send, "gbn", "string", "" );
- ds_send.setColumn( 0, "gbn", gbn);
-
- dsf_makeValue( ds_send, "userid", "string", "" );
- ds_send.setColumn( 0, "userid", userid);
-
- ds_main_itcinfo.clearData();
-
- //submit("TRMNO10002");
-
- var oParam = {};
- oParam.id = "TRMNO10002";
- oParam.service = "outcareapp.OutCareMngt";
- 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"); // 삭제표시
- 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 = "TXMNO10001";
- oParam.service = "outcareapp.OutCareMngt";
- oParam.method = "reqExeSaveReqBbs";
- oParam.inds = "req=ds_send_savedata file=ds_send_file";
- oParam.outds = "";
- oParam.async = false;
- oParam.callback = "cf_TXMNO10001";
- tranf_submit(oParam);
- // 저장시 에러난 경우 목록을 재로딩함
- if(arErrorCode.pop("TXMNO10001") < 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_TXMNO10001(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
-
- function fNewBbs() {
- ipt_req_title.value = "";
- ipt_req_text.value = "";
- ipt_attfilenm.value = "";
-
-
- 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();
-
- //submit("TRMNO10004");
-
- var oParam = {};
- oParam.id = "TRMNO10004";
- oParam.service = "outcareapp.OutCareMngt";
- 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; //.attribute("editable") = true;
-
- //model.refresh();
- }
- function fFileAdd() {
- //******파일을 첨부하기 위해 파일열기가 open 되게 한다.
- //파일의 크기를 측정한다.
-
- //var maxsize = upload1.attribute("filesize");
- var maxsize = gMaxSize ; //
-
- var name = ds_main_iteminfo.getColumn(0, "attfilenm");
-
- if(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 = "TRMNO10003";
- oParam.service = "outcareapp.OutCareMngt";
- oParam.method = "reqExeFileDownLoadReq";
- oParam.inds = "req=ds_req";
- oParam.outds = "ds_download=filelist";
- oParam.async = false;
- oParam.callback = "cf_TRMNO10003";
- 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_TRMNO10003(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 = "TRMNO10003";
- oParam.service = "outcareapp.OutCareMngt";
- oParam.method = "reqExeFileDownLoadReq";
- oParam.inds = "req=ds_req";
- oParam.outds = "ds_download=filelist";
- oParam.async = false;
- oParam.callback = "cf_TRMNO10003";
- 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((name != '')){
- var fileupdata = sysf_messageBox(name + " 파일 삭제를" , "S001");
- 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;
- }
- }
-
- //model.refresh();
- }
- 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)$";
- 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(["RPMNO10000"],[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"); // 수정표시
-
- }
- function btn_save_onclick(obj:Button, e:ClickEventInfo)
- {
- // 각 필드값을 체크한다.
- // 공지내용 체크
- if(ds_main_iteminfo.getColumn(0, "gbn").getTrim()=="")
- {
- sysf_messageBox("의뢰구분은 ", "I003");
- rdo_gbn.setFocus();
- return;
- }
-
- 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>
|