123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMPIJ02600" position="absolute 0 0 1219 788" titletext="메세지 현황" onload="SMPIJ02600_onload">
- <Layouts>
- <Layout>
- <Static id="Static01" class="sta_DA_box" position="absolute 598 520 1195 735"/>
- <Static id="Static00" position="absolute 0 520 587 735" class="sta_DA_box"/>
- <TextArea id="txt_recv" taborder="14" position="absolute 601 524 1191 731" imemode="hangul" enable="false" positiontype="position" wordwrap="word" scrollbars="autovert"/>
- <Div id="group5" taborder="9" style="align:center top;" class="div_SA" position="absolute 0 27 1194 69">
- <Layouts>
- <Layout>
- <Static id="caption10" text="수신처" class="search_name" position="absolute 8 10 82 30" anchor="default" positiontype="position"/>
- <Radio id="chkdate" taborder="1" columncount="3" rowcount="1" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 373 10 528 30" anchor="default" positiontype="position">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn" size="256"/>
- <Column id="datacolumn" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">1</Col>
- <Col id="datacolumn">처방일자</Col>
- </Row>
- <Row>
- <Col id="codecolumn">2</Col>
- <Col id="datacolumn">송신일자</Col>
- </Row>
- </Rows>
- </Dataset>
- </Radio>
- <Static id="caption2" text="등록번호" class="search_name" position="absolute 752 10 826 30" anchor="default" positiontype="position"/>
- <Radio id="chkflag" taborder="2" columncount="3" rowcount="1" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 925 10 1085 30" anchor="default" positiontype="position">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn" size="256"/>
- <Column id="datacolumn" size="256"/>
- </ColumnInfo>
- <Rows>
- <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>
- </Rows>
- </Dataset>
- </Radio>
- <Button id="btn_search" taborder="3" text="조회" onclick="btn_search_onclick" class="btn1" position="absolute 1126 10 1182 30" anchor="default" positiontype="position"/>
- <Static id="caption1" text="심사자(송신자)" class="search_name" position="absolute 164 10 277 30" anchor="default" positiontype="position"/>
- <Combo id="cmb_sendflag" taborder="4" class="combo_search" position="absolute 85 10 140 30" anchor="default" positiontype="position" codecolumn="cdid" datacolumn="cdnm" innerdataset="@ds_init_sendflag"/>
- <Combo id="cmb_judgrid" taborder="5" class="combo_search" position="absolute 280 10 370 30" anchor="default" positiontype="position" innerdataset="@ds_init_judgrid" codecolumn="userid" datacolumn="usernm"/>
- <Calendar id="ipt_todd" taborder="6" class="input_search" position="absolute 638 10 728 30" anchor="default" dateformat="yyyy-MM-dd" value="null" positiontype="position" autoselect="true"/>
- <Calendar id="ipt_fromdd" taborder="7" class="input_search" position="absolute 531 10 621 30" anchor="default" dateformat="yyyy-MM-dd" value="null" positiontype="position" autoselect="true"/>
- <Static id="caption5" text="~" position="absolute 624 10 639 30" anchor="default" positiontype="position"/>
- <Edit id="ipt_pid" taborder="8" class="input_s_essential" position="absolute 845 10 915 30" imemode="hangul" positiontype="position" inputtype="number" maxlength="9" autoselect="true" onkeydown="group5_ipt_pid_onkeydown"/>
- </Layout>
- </Layouts>
- </Div>
- <Grid id="grd_sendmsglist" taborder="11" useinputpanel="false" onkeydown="grd_sendmsglist_onkeydown" position="absolute 0 100 1196 490" binddataset="ds_grid_grd_sendmsglist" positiontype="position" ondbclick="grd_sendmsglist_ondbclick" autosizingtype="none" extendsizetype="row" oncellclick="grd_sendmsglist_oncellclick" onheadclick="grd_sendmsglist_onheadclick" cellsizingtype="col" cellmovingtype="col">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="65"/>
- <Column size="66"/>
- <Column size="55"/>
- <Column size="65"/>
- <Column size="63"/>
- <Column size="90"/>
- <Column size="77"/>
- <Column size="484"/>
- <Column size="76"/>
- <Column size="120"/>
- <Column size="76"/>
- <Column size="115"/>
- <Column size="236"/>
- <Column size="73"/>
- <Column size="91"/>
- <Column size="108"/>
- <Column size="115"/>
- <Column size="96"/>
- <Column size="204"/>
- <Column size="61"/>
- <Column size="61"/>
- <Column size="54"/>
- <Column size="60"/>
- <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="진료형태"/>
- <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="anybody"/>
- <Cell col="14" text="연속조회여부"/>
- <Cell col="15" text="주(M)/부(S)유형"/>
- <Cell col="16" text="진료일시"/>
- <Cell col="17" text="처방코드"/>
- <Cell col="18" text="처방코드명칭"/>
- <Cell col="19" text="처방급비"/>
- <Cell col="20" text="처방수량"/>
- <Cell col="21" text="처방횟수"/>
- <Cell col="22" text="처방일수"/>
- <Cell col="23" text="instcd"/>
- <Cell col="24" text="msgwrtedd"/>
- <Cell col="25" text="msgwrteno"/>
- <Cell col="26" text="msgwrtehistno"/>
- </Band>
- <Band id="body">
- <Cell style="align:center middle;" text="bind:ordtype"/>
- <Cell col="1" style="align:center middle;" text="bind:kindflag"/>
- <Cell col="2" style="align:center middle;" text="bind:sendflag"/>
- <Cell col="3" style="align:center middle;" text="bind:pid"/>
- <Cell col="4" style="align:center middle;" text="bind:hngnm"/>
- <Cell col="5" style="align:center middle;" text="bind:orddeptcd"/>
- <Cell col="6" style="align:center middle;" text="bind:deliveid"/>
- <Cell col="7" style="align:left middle;" text="bind:sendmsg" wordwrap="word"/>
- <Cell col="8" style="align:center middle;" text="bind:sendid"/>
- <Cell col="9" displaytype="date" edittype="none" style="align:left;" text="bind:senddate" mask="yyyy/MM/dd HH:mm:ss" calendardisplaynulltype="none"/>
- <Cell col="10" style="align:center middle;" text="bind:recvid"/>
- <Cell col="11" displaytype="date" edittype="none" style="align:left;" text="bind:recvdate" mask="yyyy/MM/dd HH:mm:ss" calendardisplaynulltype="none"/>
- <Cell col="12" text="bind:recvmsg"/>
- <Cell col="13" style="align:center middle;" text="bind:anybodyyn"/>
- <Cell col="14" style="align:center middle;" text="bind:recvcnfmyn"/>
- <Cell col="15" style="align:center middle;" text="bind:mskind"/>
- <Cell col="16" displaytype="date" edittype="none" style="align:left;" text="bind:rgstdt" mask="yyyy/MM/dd HH:mm:ss" calendardisplaynulltype="none"/>
- <Cell col="17" text="bind:grupcalcscorcd"/>
- <Cell col="18" text="bind:codehngnm"/>
- <Cell col="19" displaytype="normal" edittype="none" style="align:left;" text="bind:prcppayflag" calendardisplaynulltype="none"/>
- <Cell col="20" displaytype="normal" edittype="none" style="align:left;" text="bind:ordqty" calendardisplaynulltype="none"/>
- <Cell col="21" style="align:center middle;" text="bind:ordtims"/>
- <Cell col="22" style="align:center middle;" text="bind:orddays"/>
- <Cell col="23" text="bind:instcd"/>
- <Cell col="24" text="bind:msgwrtedd"/>
- <Cell col="25" text="bind:msgwrteno"/>
- <Cell col="26" text="bind:msgwrtehistno"/>
- <Cell col="27"/>
- <Cell col="28"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static id="caption3" text="메세지 송신내역" class="tit_2" position="absolute -1 80 149 100" positiontype="position"/>
- <Combo id="cmb_recvcnfmyn" taborder="12" class="combo_search" position="absolute 497 497 587 517" positiontype="position" codecolumn="cdid" datacolumn="cdnm" innerdataset="@ds_init_recvcnfmyn"/>
- <Static id="caption7" text="보낸 메세지" class="tit_2" position="absolute 0 500 157 520" positiontype="position"/>
- <Static id="caption9" text="연속조회여부" class="search_name" position="absolute 379 497 492 517" positiontype="position"/>
- <TextArea id="txt_send" taborder="13" position="absolute 3 524 584 731" imemode="hangul" positiontype="position" scrollbars="autovert" wordwrap="word"/>
- <Static id="caption8" text="받은 메세지" class="tit_2" position="absolute 609 500 766 520" positiontype="position"/>
- <Button id="button1" taborder="15" text="엑셀" onlbuttonup="button1_onlbuttonup" class="btn7" position="absolute 963 738 1019 758" positiontype="position" onclick="button1_onclick"/>
- <Button id="btn_modify" taborder="16" text="수정" onlbuttonup="btn_modify_onlbuttonup" class="btn4" position="absolute 1022 738 1078 758" positiontype="position" onclick="btn_modify_onclick"/>
- <Button id="btn_delete" taborder="17" text="삭제" onlbuttonup="btn_delete_onlbuttonup" class="btn4" position="absolute 1081 738 1137 758" positiontype="position" onclick="btn_delete_onclick"/>
- <Static id="caption00" text="메세지현황" class="tit_1" position="absolute 0 0 177 26"/>
- <Button id="btn_close" taborder="18" text="닫기" onclick="btn_close_onclick" class="btn4" position="absolute 1139 738 1195 758" anchor="top right"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_grid_grd_sendmsglist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="ordtype" type="STRING"/>
- <Column id="kindflag" type="STRING"/>
- <Column id="sendflag" type="STRING"/>
- <Column id="pid" type="STRING"/>
- <Column id="hngnm" type="STRING"/>
- <Column id="orddeptcd" type="STRING"/>
- <Column id="deliveid" type="STRING"/>
- <Column id="sendmsg" type="STRING"/>
- <Column id="sendid" type="STRING"/>
- <Column id="senddate" type="STRING"/>
- <Column id="recvid" type="STRING"/>
- <Column id="recvdate" type="STRING"/>
- <Column id="recvmsg" type="STRING"/>
- <Column id="anybodyyn" type="STRING"/>
- <Column id="recvcnfmyn" type="STRING"/>
- <Column id="mskind" type="STRING"/>
- <Column id="rgstdt" type="STRING"/>
- <Column id="grupcalcscorcd" type="STRING"/>
- <Column id="codehngnm" type="STRING"/>
- <Column id="prcppayflag" type="STRING"/>
- <Column id="ordqty" type="STRING"/>
- <Column id="ordtims" type="STRING"/>
- <Column id="orddays" type="STRING"/>
- <Column id="instcd" type="STRING"/>
- <Column id="msgwrtedd" type="STRING"/>
- <Column id="msgwrteno" type="STRING"/>
- <Column id="msgwrtehistno" type="STRING"/>
- </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="fromdd" type="STRING" size="256"/>
- <Column id="todd" type="STRING" size="256"/>
- <Column id="pid" type="STRING" size="256"/>
- <Column id="chkflag" type="STRING" size="256"/>
- <Column id="judgrid" type="STRING" size="256"/>
- <Column id="updatedata" type="STRING" size="256"/>
- <Column id="sendflag" type="STRING" size="256"/>
- <Column id="chkdate" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="chkflag">1</Col>
- <Col id="chkdate">2</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_judgrid" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="userid" type="STRING" size="255"/>
- <Column id="usernm" type="STRING" size="255"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="userid">-</Col>
- <Col id="usernm">전체</Col>
- </Row>
- <Row>
- <Col id="userid">19860094</Col>
- <Col id="usernm">김민아</Col>
- </Row>
- <Row>
- <Col id="userid">19910202</Col>
- <Col id="usernm">최혜영</Col>
- </Row>
- <Row>
- <Col id="userid">19990359</Col>
- <Col id="usernm">성민주</Col>
- </Row>
- <Row>
- <Col id="userid">20010116</Col>
- <Col id="usernm">안혜영</Col>
- </Row>
- <Row>
- <Col id="userid">20010145</Col>
- <Col id="usernm">이병숙</Col>
- </Row>
- <Row>
- <Col id="userid">20010161</Col>
- <Col id="usernm">성민아</Col>
- </Row>
- <Row>
- <Col id="userid">20010219</Col>
- <Col id="usernm">이순아</Col>
- </Row>
- <Row>
- <Col id="userid">20010891</Col>
- <Col id="usernm">조숙영</Col>
- </Row>
- <Row>
- <Col id="userid">20011009</Col>
- <Col id="usernm">한윤주</Col>
- </Row>
- <Row>
- <Col id="userid">20011054</Col>
- <Col id="usernm">이수정</Col>
- </Row>
- <Row>
- <Col id="userid">20011088</Col>
- <Col id="usernm">김주라</Col>
- </Row>
- <Row>
- <Col id="userid">20011100</Col>
- <Col id="usernm">김은경</Col>
- </Row>
- <Row>
- <Col id="userid">20011112</Col>
- <Col id="usernm">김성민</Col>
- </Row>
- <Row>
- <Col id="userid">20011113</Col>
- <Col id="usernm">남상명</Col>
- </Row>
- <Row>
- <Col id="userid">20011227</Col>
- <Col id="usernm">김미성</Col>
- </Row>
- <Row>
- <Col id="userid">20020042</Col>
- <Col id="usernm">김경미</Col>
- </Row>
- <Row>
- <Col id="userid">20020581</Col>
- <Col id="usernm">홍화목</Col>
- </Row>
- <Row>
- <Col id="userid">20020584</Col>
- <Col id="usernm">박문실</Col>
- </Row>
- <Row>
- <Col id="userid">20030243</Col>
- <Col id="usernm">황지은</Col>
- </Row>
- <Row>
- <Col id="userid">20040279</Col>
- <Col id="usernm">김경남</Col>
- </Row>
- <Row>
- <Col id="userid">20040370</Col>
- <Col id="usernm">성혜미</Col>
- </Row>
- <Row>
- <Col id="userid">20040480</Col>
- <Col id="usernm">이은옥</Col>
- </Row>
- <Row>
- <Col id="userid">20050022</Col>
- <Col id="usernm">우현미</Col>
- </Row>
- <Row>
- <Col id="userid">20050409</Col>
- <Col id="usernm">이재은</Col>
- </Row>
- <Row>
- <Col id="userid">20060432</Col>
- <Col id="usernm">김효진</Col>
- </Row>
- <Row>
- <Col id="userid">20060856</Col>
- <Col id="usernm">민진숙</Col>
- </Row>
- <Row>
- <Col id="userid">20120914</Col>
- <Col id="usernm">장새연</Col>
- </Row>
- <Row>
- <Col id="userid">20130984</Col>
- <Col id="usernm">김가영</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_sendflag" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cdid" type="STRING" size="256"/>
- <Column id="cdnm" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="cdid"/>
- <Col id="cdnm">전체</Col>
- </Row>
- <Row>
- <Col id="cdid">O</Col>
- <Col id="cdnm">진료</Col>
- </Row>
- <Row>
- <Col id="cdid">C</Col>
- <Col id="cdnm">간호</Col>
- </Row>
- <Row>
- <Col id="cdid">P</Col>
- <Col id="cdnm">원무</Col>
- </Row>
- <Row>
- <Col id="cdid">R</Col>
- <Col id="cdnm">수납</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_msginfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="sendmsg" type="STRING" size="256"/>
- <Column id="msgwrtedd" type="STRING" size="256"/>
- <Column id="recvmsg" type="STRING" size="256"/>
- <Column id="recvcnfmyn" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_recvcnfmyn" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cdid" type="STRING" size="256"/>
- <Column id="cdnm" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="cdid">1</Col>
- <Col id="cdnm">Y</Col>
- </Row>
- <Row>
- <Col id="cdid">0</Col>
- <Col id="cdnm">N</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_send_updatedata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="sendmsg" type="STRING" size="256"/>
- <Column id="recvcnfmyn" type="STRING" size="256"/>
- <Column id="msgwrtedd" type="STRING" size="256"/>
- <Column id="msgwrteno" type="STRING" size="256"/>
- <Column id="msgwrtehistno" type="STRING" size="256"/>
- <Column id="workflag" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="group5.cmb_sendflag" propid="value" datasetid="ds_send" columnid="sendflag"/>
- <BindItem id="item1" compid="group5.cmb_judgrid" propid="value" datasetid="ds_send" columnid="judgrid"/>
- <BindItem id="item2" compid="group5.chkdate" propid="value" datasetid="ds_send" columnid="chkdate"/>
- <BindItem id="item3" compid="group5.ipt_fromdd" propid="value" datasetid="ds_send" columnid="fromdd"/>
- <BindItem id="item4" compid="group5.ipt_todd" propid="value" datasetid="ds_send" columnid="todd"/>
- <BindItem id="item5" compid="group5.ipt_pid" propid="value" datasetid="ds_send" columnid="pid"/>
- <BindItem id="item6" compid="group5.chkflag" propid="value" datasetid="ds_send" columnid="chkflag"/>
- <BindItem id="item7" compid="txt_send" propid="value" datasetid="ds_main_msginfo" columnid="sendmsg"/>
- <BindItem id="item8" compid="cmb_recvcnfmyn" propid="value" datasetid="ds_main_msginfo" columnid="recvcnfmyn"/>
- <BindItem id="item9" compid="txt_recv" propid="value" datasetid="ds_main_msginfo" columnid="recvmsg"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2016-05-24
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2016-05-24 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- include "com_commonxp::comm_main.xjs";
- include "com_basiccodexp::ZBC001.xjs";
- function lf_initDataSet()
- {
- this.cmb_judgrid.innerdataset = "ds_init_cmb_judgrid";
- this.cmb_judgrid.codecolumn = "cd";
- this.cmb_judgrid.datacolumn = "nm";
- }
- function lf_Initialize()
- {
- var curDate = utlf_getCurrentDate();
- ds_send.setColumn(0, "fromdd", curDate);
- ds_send.setColumn(0, "todd", curDate);
-
- var oParam = {};
- oParam.id = "TRPIJ02503";
- oParam.service = "bfjudgapp.MsgManag";
- oParam.method = "reqGetJudgList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_init_judgrid=judgrid";
- oParam.async = false;
- tranf_submit(oParam);
- var fRow = ds_init_judgrid.findRow("userid", "-");
- ds_init_judgrid.setColumn(fRow, "userid", "");
- this.group5.cmb_sendflag.value = ""; // 수신처
- this.group5.cmb_judgrid.value = ""; // 심사자
-
- //팝업으로 호출시
- if (frmf_checkOpener()) {
- curDate = utlf_addMonth(curDate, -6);
- var nextDate = curDate;
- ds_send.setColumn(0, "chkdate", "2");
- ds_send.setColumn(0, "fromdd", nextDate);
- ds_send.setColumn(0, "chkflag", "1");
- ds_send.setColumn(0, "pid", sPid); // 부모창에서 넘길값
- btn_search_onclick();
- }
- }
- function lf_Save(flag)
- {
- if ( flag == "U" ) {
- var vrecvcnfmyn = "";
- if ( ds_main_msginfo.getColumn(0, "recvcnfmyn") == "1" ) {
- vrecvcnfmyn = "Y";
- } else {
- vrecvcnfmyn = "N";
- }
- }
- ds_send_updatedata.clearData();
- ds_send_updatedata.addRow();
- ds_send_updatedata.setColumn(0, "sendmsg", ds_main_msginfo.getColumn(0, "sendmsg"));
- ds_send_updatedata.setColumn(0, "recvcnfmyn", vrecvcnfmyn);
- ds_send_updatedata.setColumn(0, "msgwrtedd", ds_grid_grd_sendmsglist.getColumn(ds_grid_grd_sendmsglist.rowposition, "msgwrtedd"));
- ds_send_updatedata.setColumn(0, "msgwrteno", ds_grid_grd_sendmsglist.getColumn(ds_grid_grd_sendmsglist.rowposition, "msgwrteno"));
- ds_send_updatedata.setColumn(0, "msgwrtehistno", ds_grid_grd_sendmsglist.getColumn(ds_grid_grd_sendmsglist.rowposition, "msgwrtehistno"));
- ds_send_updatedata.setColumn(0, "workflag", flag);
-
- var oParam = {};
- oParam.id = "TXPIJ02501";
- oParam.service = "bfjudgapp.MsgManag";
- oParam.method = "reqExeMsgList";
- oParam.inds = "req=ds_send_updatedata";
- oParam.async = false;
- tranf_submit(oParam);
-
- btn_search_onclick(); // 재조회
- }
- function SMPIJ02600_onload(obj:Form, e:LoadEventInfo)
- {
- frmf_initForm(obj); // 폼 초기화 함수
- lf_commoduleDataSetShow(); // DataSet 조회
- lf_Initialize();
- }
- function btn_search_onclick(obj:Button, e:ClickEventInfo)
- {
- var oParam = {};
- oParam.id = "TRPIJ02502";
- oParam.service = "bfjudgapp.MsgManag";
- oParam.method = "reqGetMsgList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_grid_grd_sendmsglist=grdsendmsglist";
- oParam.async = false;
- tranf_submit(oParam);
-
- // 진료일시 데이터 이상 초기화(쿼리에서 만들어짐)
- for (var i=0; i<ds_grid_grd_sendmsglist.rowcount; i++ ) {
- if (ds_grid_grd_sendmsglist.getColumn(i, "rgstdt") == "-// -::") {
- ds_grid_grd_sendmsglist.setColumn(i, "rgstdt", "");
- }
- }
-
- ds_grid_grd_sendmsglist.rowposition = -1;
- ds_main_msginfo.clearData();
- }
- function grd_sendmsglist_oncellclick(obj:Grid, e:GridClickEventInfo)
- {
- var vrecvid = ds_grid_grd_sendmsglist.getColumn(ds_grid_grd_sendmsglist.rowposition, "recvid");
- if ( !utlf_isNull(vrecvid) ) {
- sysf_messageBox("이미 수신된 내역은 수정","E001");
- btn_delete.enable = false;
- txt_send.readonly = true;
-
- } else {
- btn_modify.enable = true;
- txt_send.readonly = false;
- btn_delete.enable = true;
- }
-
- ds_main_msginfo.clearData();
- ds_main_msginfo.addRow();
-
- ds_main_msginfo.copyRow(0, ds_grid_grd_sendmsglist, ds_grid_grd_sendmsglist.rowposition);
-
- if ( ds_main_msginfo.getColumn(0, "recvcnfmyn") == 'Y') {
- cmb_recvcnfmyn.value = 1;
- } else {
- cmb_recvcnfmyn.value = 0;
- }
- }
- function btn_modify_onclick(obj:Button, e:ClickEventInfo)
- {
- lf_Save("U");
- }
- function btn_delete_onclick(obj:Button, e:ClickEventInfo)
- {
- lf_Save("D");
- }
- function button1_onclick(obj:Button, e:ClickEventInfo)
- {
- grdf_exportExcel(grd_sendmsglist, "메세지현황", "메세지현황");
- }
- // 환자번호 채우기
- function group5_ipt_pid_onkeydown(obj:Edit, e:KeyEventInfo)
- {
- if ( e.keycode == 13 ) {
- obj.updateToDataset();
- var rtn = frmf_setInputNodeCurPid_Change(obj.value);
- ds_send.setColumn(0, "pid", rtn);
- }
- }
- function grd_sendmsglist_onheadclick(obj:Grid, e:GridClickEventInfo)
- {
- grdf_gridSort(grd_sendmsglist, e); // 그리드 정렬
- }
- function btn_close_onclick(obj:Button, e:ClickEventInfo)
- {
- this.close();
- }
- ]]></Script>
- </Form>
- </FDL>
|