123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269 |
- <?xml version="1.0" encoding="utf-8" standalone="no"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml" />
- <Form id="SPPPI00101" position="absolute 0 0 1000 700" titletext="삭감대상처방코드 조회" onload="SPPPI00101_onload">
- <Layouts>
- <Layout>
- <Static id="caption1" class="tit_2" position="absolute 5 75 333 88" style="" text="삭감 처방코드 내역" />
- <Shape id="line7" class="line_1" linetype="horizontal" position="absolute 5 90 465 93" style="" anchor="default" />
- <Shape id="line8" class="line_1" linetype="horizontal" position="absolute 510 90 970 93" style="" anchor="default" />
- <Button id="btn_init" class="btn4_letter3" position="absolute 900 666 968 688" style="" text="닫 기" onclick="btn_init_onclick" />
- <Div id="group1" position="absolute 5 25 970 70" style="">
- <Layouts>
- <Layout>
- <Shape id="roundrect1" anchor="default" type="roundrectangle" position="absolute 0 0 960 40" style="" />
- <Button id="button1" class="btn4_letter2" position="absolute 895 10 950 30" style="" text="조회" onclick="group1_button1_onclick" />
- <Calendar id="input1" mask="yyyy-mm" position="absolute 110 10 200 29" style="" anchor="default" />
- <Static id="caption2" class="search_name" position="absolute 20 10 115 27" style="" text="조회기간 :" />
- <Static id="caption3" position="absolute 200 15 230 25" style="" text="~" />
- <Calendar id="input2" mask="yyyy-mm" position="absolute 220 10 310 29" style="" anchor="default" />
- </Layout>
- </Layouts>
- </Div>
- <Grid id="grd_discutlist" binddataset="ds_main_discut_discutlist" position="absolute 5 95 465 655" style="">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="80" />
- <Column size="90" />
- <Column size="250" />
- </Columns>
- <Rows>
- <Row size="24" band="head" />
- <Row size="24" />
- </Rows>
- <Band id="head">
- <Cell text="청구월" />
- <Cell col="1" text="처방코드" />
- <Cell col="2" text="처방병" />
- </Band>
- <Band id="body">
- <Cell text="bind:clamym" />
- <Cell col="1" text="bind:calcscorcd" />
- <Cell col="2" text="bind:hngnm" />
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Grid id="grd_cutbflist" binddataset="ds_main_discut_cutbflist" position="absolute 510 95 970 655" style="">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="90" />
- <Column size="200" />
- <Column size="80" />
- <Column size="80" />
- <Column size="100" />
- </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="제어코드" />
- </Band>
- <Band id="body">
- <Cell text="bind:calcscorcd" />
- <Cell col="1" text="bind:hngnm" />
- <Cell col="2" text="bind:fromdd" />
- <Cell col="3" text="bind:todd" />
- <Cell col="4" text="bind:rulecd" />
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button id="button2" class="icon_left" position="absolute 475 350 501 369" style="" text="" onclick="button2_onclick" />
- <Button id="button3" class="icon_right" position="absolute 475 315 501 334" style="" text="" onclick="button3_onclick" />
- <Button id="button4" class="btn4_letter3" position="absolute 825 666 893 688" style="" text="저장" onclick="button4_onclick" />
- <Static id="caption4" class="tit_2" position="absolute 512 75 657 88" style="" text="제어 처방코드 내역" />
- <Static id="caption5" class="tit_1" position="absolute 10 5 110 25" style="" text="삭감대상처방조회" />
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_main_discut" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="discutlist" type="STRING" size="256" />
- <Column id="cutbflist" 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="keep">
- <ColumnInfo>
- <Column id="fromdd" type="STRING" size="256" />
- <Column id="todd" type="STRING" size="256" />
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="fromdd"></Col>
- <Col id="todd"></Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo />
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="group1.input1" propid="value" datasetid="ds_send" columnid="fromdd" />
- <BindItem id="item1" compid="group1.input2" propid="value" datasetid="ds_send" columnid="todd" />
- </Bind>
- <Script type="xscript4.0"><![CDATA[function SPPPI00101_onload(obj:Form, e:LoadEventInfo) {
- frmf_initForm(obj);
- //grdf_initGrid(grd_XXX);
- //grdf_setGridSort(grd_XXX);
- //grdf_setRowTypeIcon(grd_XXX, 0_컬럼위치값);
- var today = utlf_getCurrentDate();
- var fromdd = (today.toDate().getAddDate(-1, "Y")).getAddDate(1, "M").getDateFormat("YYYYMM");
- var todd = today.toDate().getDateFormat("YYYYMM");
- ds_send.setColumn( 0, "todd", todd);
- ds_send.setColumn( 0, "fromdd", fromdd);
- //model.refresh();
- }
- include '../../.._com_commonweb_js_common.js'
- include '../../.._emr_prcpmngtweb_js_MMO001.js'
- include '../../.._com_basiccodeweb_js_ZBC001.js'
- include '../../.._com_commonweb_js_stringHelper.js'
- include '../../.._com_commonweb_js_tfHelper.js'
- include '../../.._com_commonweb_js_dateHelper.js'
- // 화면 open, 저장시 초기화 기능을 수행한다.
- function fClose() {
- window.close();
- }
- function btn_init_onclick(obj:Button, e:ClickEventInfo) {
- }
- function group1_button1_onclick(obj:Button, e:ClickEventInfo) {
- // submit("TRPPI00801");
- var oParam = {};
- oParam.id = "TRPPI00801";
- oParam.service = "bfjudgcareapp.BfJudgCareMngt";
- oParam.method = "reqGetDiscutBfInfo";
- oParam.inds = "req=ds_";
- oParam.outds = "ds_=discutlist ds_=cutbflist";
- oParam.async = false;
- oParam.callback = "cf_TRPPI00801";
- tranf_submit(oParam);
- /*
- function cf_TRPPI00801(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
- }
- function cf_TRPPI00801(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- arErrorCode.pop("TRPPI00801") > -1
- arErrorCode.pop("TRPPI00801") < 0
- */
- }
- function button2_onclick(obj:Button, e:ClickEventInfo) {
- var row = grd_cutbflist.selectedRows;
- if ( row > 0 ) {
- vrow = new Array(row);
- for ( i=0; i<row; i++) {
- var srow = grd_cutbflist.selectedRow(i);
- if ( grd_cutbflist.valueMatrix(srow, grd_cutbflist.colRef("rulecd")) != "" ) {
- grd_cutbflist.rowStatus(srow) = 4;
- grd_cutbflist.valueMatrix(srow, grd_cutbflist.colRef("todd")) = utlf_getCurrentDate();
- } else if ( grd_cutbflist.valueMatrix(srow, grd_cutbflist.colRef("rulecd")) == "" ) {
- vrow[i] = srow;
- }
- }
- alert(vrow[0]);
- if ( vrow.length > 0 && vrow[0] != "" && vrow[0] != null) {
- for ( j=0; j<vrow.length; j++) {
- grd_cutbflist.deleteRow(vrow[j] - j, false);
- }
- }
- }
- //grd_cutbflist.refresh();
- }
- function button3_onclick(obj:Button, e:ClickEventInfo) {
- var row = grd_discutlist.selectedRows;
- vrow = new Array(row-1);
- if ( row > 0 ) {
- for( i = 0; i < row; i++) {
- grd_cutbflist.addRow(false);
- var srow = grd_discutlist.selectedRow(i);
- var arow = grd_cutbflist.rows-1;
- var calcscorcd = grd_discutlist.valueMatrix(srow, grd_discutlist.colRef("calcscorcd"));
- var hngnm = grd_discutlist.valueMatrix(srow, grd_discutlist.colRef("hngnm"));
- grd_cutbflist.valueMatrix(arow, grd_cutbflist.colRef("calcscorcd")) = calcscorcd;
- grd_cutbflist.valueMatrix(arow, grd_cutbflist.colRef("hngnm")) = hngnm;
- grd_cutbflist.valueMatrix(arow, grd_cutbflist.colRef("fromdd")) = utlf_getCurrentDate();
- grd_cutbflist.valueMatrix(arow, grd_cutbflist.colRef("todd")) = "99991231";
- grd_cutbflist.gridToInstance();
- vrow[i] = srow;
- }
- //alert(vrow);
- for( j=0; j < vrow.length; j++) {
- grd_discutlist.deleteRow(vrow[j] - j, false);
- }
- //grd_discutlist.refresh();
- //grd_cutbflist.refresh();
- }
- }
- function button4_onclick(obj:Button, e:ClickEventInfo) {
- dsf_makeValue( ds_send_savedata_cutbf, "cutbflist", "string", "" );
- var update = getGridUpdateData(grd_cutbflist);
- ds_send_savedata_cutbf.setColumn( 0, "cutbflist", update);
- // submit("TXPPI00801");
- var oParam = {};
- oParam.id = "TXPPI00701";
- oParam.service = "bfjudgcareapp.BfJudgCareMngt";
- oParam.method = "reqSetCutBfList";
- oParam.inds = "req=ds_";
- oParam.outds = "ds_=item";
- oParam.async = false;
- oParam.callback = "cf_TXPPI00701";
- tranf_submit(oParam);
- /*
- function cf_TXPPI00701(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
- }
- function cf_TXPPI00701(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- arErrorCode.pop("TXPPI00701") > -1
- arErrorCode.pop("TXPPI00701") < 0
- */
- }
- ]]></Script>
- </Form>
- </FDL>
|