123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMLVP00100" position="absolute 0 0 1195 766" titletext="검증보고서출력" oninit="SMLVP00100_oninit" onload="SMLVP00100_onload">
- <Layouts>
- <Layout>
- <Static id="caption6" text="종합검증보고서 일괄출력" class="tit_1" position="absolute 0 0 191 25"/>
- <Shape id="line32" linetype="horizontal" class="line_6" position="absolute 0 50 1194 56" style="strokepen:3 solid #9ebed4ff;"/>
- <Button id="btn_reset" taborder="1" text="초기화" class="btn4" position="absolute 1127 27 1195 49" onclick="btn_reset_onclick"/>
- <Button id="btn_print" taborder="2" text="출력" class="btn6" position="absolute 0 27 56 49"/>
- <Button id="btn_cnfm" taborder="3" text="확인" class="btn4" position="absolute 1068 27 1124 49" onclick="btn_cnfm_onclick"/>
- <Shape id="line1" linetype="horizontal" class="line_1" position="absolute 0 114 1194 120" style="strokepen:3 solid #33bbbbff;"/>
- <Div id="group1" taborder="4" class="div_SA2" position="absolute 0 54 1195 89">
- <Layouts>
- <Layout>
- <Shape id="line3" linetype="vertical" class="line_4" position="absolute 1105 7 1111 29" anchor="default"/>
- <Static id="caption2" text="보고일시 :" class="search_name" position="absolute 15 9 105 26" anchor="default"/>
- <Button id="btn_Ref" taborder="1" text="조회" class="btn1" position="absolute 1123 7 1179 29" anchor="default" onclick="group1_btn_Ref_onclick"/>
- <Static id="caption11" text="~" class="search_n_b" position="absolute 220 9 232 26" anchor="default"/>
- <Calendar id="ipt_usdt" taborder="2" class="input_s_essential" position="absolute 107 8 214 27" anchor="default"/>
- <Calendar id="ipt_uedt" taborder="3" class="input_s_essential" position="absolute 236 8 343 27" anchor="default" onkeyup="group1_ipt_uedt_onkeyup"/>
- </Layout>
- </Layouts>
- </Div>
- <Static id="caption3" text="보고서 조회" class="tit_2" position="absolute 0 95 93 112"/>
- <Grid id="grd_reptlist" taborder="5" binddataset="ds_reptlist" useinputpanel="false" position="absolute 0 118 1194 764" autofittype="col">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="24"/>
- <Column size="25"/>
- <Column size="150"/>
- <Column size="115"/>
- <Column size="115"/>
- <Column size="115"/>
- <Column size="120"/>
- <Column size="130"/>
- <Column size="130"/>
- <Column size="130"/>
- <Column size="120"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1"/>
- <Cell col="2" text="병동/진료과"/>
- <Cell col="3" text="주치의"/>
- <Cell col="4" text="등록번호"/>
- <Cell col="5" text="환자명"/>
- <Cell col="6" text="Sex/Age"/>
- <Cell col="7" text="입원일"/>
- <Cell col="8" text="보고일"/>
- <Cell col="9" text="출력일"/>
- <Cell col="10" text="출력자"/>
- </Band>
- <Band id="body">
- <Cell text="expr:currow + 1"/>
- <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:chk"/>
- <Cell col="2" style="align:left middle;" text="bind:orddeptroom"/>
- <Cell col="3" text="bind:atdrnm"/>
- <Cell col="4" text="bind:pid"/>
- <Cell col="5" text="bind:patnm"/>
- <Cell col="6" text="bind:sexage"/>
- <Cell col="7" text="bind:orddd"/>
- <Cell col="8" text="bind:readdt"/>
- <Cell col="9" text="bind:printdt"/>
- <Cell col="10" text="bind:printid"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_reptlist" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="chk" type="STRING"/>
- <Column id="orddeptroom" type="STRING"/>
- <Column id="atdrnm" type="STRING"/>
- <Column id="pid" type="STRING"/>
- <Column id="patnm" type="STRING"/>
- <Column id="sexage" type="STRING"/>
- <Column id="orddd" type="STRING"/>
- <Column id="readdt" type="STRING"/>
- <Column id="printdt" type="STRING"/>
- <Column id="printid" type="STRING"/>
- <Column id="verimthd" type="STRING" size="256"/>
- <Column id="chk1" type="STRING" size="256"/>
- <Column id="chk2" type="STRING" size="256"/>
- <Column id="chk3" type="STRING" size="256"/>
- <Column id="chk4" type="STRING" size="256"/>
- <Column id="chk5" type="STRING" size="256"/>
- <Column id="chk6" 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="usdd" type="STRING" size="256"/>
- <Column id="uedd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_hidden_ref" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="refrgstsdd" type="STRING" size="256"/>
- <Column id="refrgstedd" type="STRING" size="256"/>
- <Column id="ne" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="group1.ipt_usdt" propid="value" datasetid="ds_hidden_ref" columnid="refrgstsdd"/>
- <BindItem id="item1" compid="group1.ipt_uedt" propid="value" datasetid="ds_hidden_ref" columnid="refrgstedd"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2015-11-09
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2015-11-09 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- include "com_commonxp::comm_main.xjs";
- function SMLVP00100_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SMLVP00100_onload(obj:Form, e:LoadEventInfo)
- {
- grdf_initGrid(grd_reptlist);
- fsetstart();
- }
- //초기화
- function fsetstart()
- {
- ds_reptlist.clearData();
- var toDay = utlf_getCurrentDate();
- ds_hidden_ref.setColumn(0, "refrgstsdd", toDay);
- ds_hidden_ref.setColumn(0, "refrgstedd", toDay);
- }
- //조회버튼
- function group1_btn_Ref_onclick(obj:Button, e:ClickEventInfo)
- {
- fGetReptlist();
- }
- //보고서 조회
- function fGetReptlist()
- {
- //model.setValue("/root/send/usdd", model.getValue("/root/hidden/ref/refrgstsdd"));
- //model.setValue("/root/send/uedd", model.getValue("/root/hidden/ref/refrgstedd"));
- ds_send.setColumn(0, "usdd", ds_hidden_ref.getColumn(0, "refrgstsdd"));
- ds_send.setColumn(0, "uedd", ds_hidden_ref.getColumn(0, "refrgstedd"));
-
- //submit("TRLVP00101");
- var oParam = {};
- oParam.id = "TRLVJ90101";
- oParam.service = "verificationbasemngtapp.CmtCdMngt";
- oParam.method = "reqGetReptList";
- oParam.inds = "cond=ds_send";
- oParam.outds = "ds_reptlist=getReptList";
- oParam.async = false;
- //oParam.callback = "cf_TRLVJ90101";
- tranf_submit(oParam);
-
- fchkvalue();
- fhidenrow();
- }
- function fchkvalue()
- {
- for(i = 0; i < ds_reptlist.rowcount; i++)
- {
- var code = ds_reptlist.getColumn(i, "verimthd");
-
- if(utlf_transNullToEmpty(code).charAt(0)=='Y')
- {
- ds_reptlist.setColumn(i, "chk1", "●");
- }
- else
- {
- ds_reptlist.setColumn(i, "chk1", "○");
- }
- if(utlf_transNullToEmpty(code).charAt(1)=='Y')
- {
- ds_reptlist.setColumn(i, "chk2", "●");
- }
- else
- {
- ds_reptlist.setColumn(i, "chk2", "○");
- }
- if(utlf_transNullToEmpty(code).charAt(2)=='Y')
- {
- ds_reptlist.setColumn(i, "chk3", "●");
- }
- else
- {
- ds_reptlist.setColumn(i, "chk3", "○");
- }
- if(utlf_transNullToEmpty(code).charAt(3)=='Y')
- {
- ds_reptlist.setColumn(i, "chk4", "●");
- }
- else
- {
- ds_reptlist.setColumn(i, "chk4", "○");
- }
- if(utlf_transNullToEmpty(code).charAt(4)=='Y')
- {
- ds_reptlist.setColumn(i, "chk5", "●");
- }
- else
- {
- ds_reptlist.setColumn(i, "chk5", "○");
- }
- if(utlf_transNullToEmpty(code).charAt(5)=='Y')
- {
- ds_reptlist.setColumn(i, "chk6", "●");
- }
- else
- {
- ds_reptlist.setColumn(i, "chk6", "○");
- }
- }
- }
- function fhidenrow()
- {
- for( i = 1; i < ds_reptlist.rowcount; i++)
- {
- if(ds_reptlist.getColumn(i-1, "pid") == ds_reptlist.getColumn(i, "pid"))
- {
- //reptlist.rowHidden(i) = true;
- }
- }
- }
- function btn_cnfm_onclick(obj:Button, e:ClickEventInfo)
- {
- fselectnode();
- }
- function fselectnode()
- {
- var pid = "";
-
- for(i = 0; i < ds_reptlist.rowcount; i++)
- {
- if(ds_reptlist.getColumn(i, "chk") == "1")
- {
- pid = ds_reptlist.getColumn(i, "pid");
-
- for(j = i; j < ds_reptlist.rowcount; j++)
- {
- if(ds_reptlist.getColumn(j, "pid") == pid)
- {
- ds_reptlist.deleteRow(j);
- j--;
- }
- }
- }
- }
- }
- function btn_reset_onclick(obj:Button, e:ClickEventInfo)
- {
- fsetstart();
- }
- function group1_ipt_uedt_onkeyup(obj:Calendar, e:KeyEventInfo)
- {
- if(e.keycode == 13)
- {
- fGetReptlist();
- }
- }
- ]]></Script>
- </Form>
- </FDL>
|