123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMAVT02101" position="absolute 0 0 1256 805" titletext="조직은행 수혜자리스트" onload="SMAVT02101_onload">
- <Layouts>
- <Layout>
- <Static id="caption6" text="조직은행 수혜자 정보" class="tit_1" position="absolute 0 0 180 25"/>
- <Static id="caption1" text="조직은행 수혜자 정보" class="tit_2" position="absolute 5 66 215 82"/>
- <Shape id="line1" linetype="horizontal" class="line_1" position="absolute 0 84 1194 90" style="strokepen:3 solid #33bbbbff;"/>
- <Grid id="dtg_benflist" taborder="1" binddataset="ds_main_benflist" useinputpanel="false" position="absolute 0 88 1194 752">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25"/>
- <Column size="80"/>
- <Column size="75"/>
- <Column size="40"/>
- <Column size="40"/>
- <Column size="210"/>
- <Column size="80"/>
- <Column size="100"/>
- <Column size="175"/>
- <Column size="175"/>
- <Column size="100"/>
- <Column size="55"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1" text="이식날짜"/>
- <Cell col="2" text="GraftNo"/>
- <Cell col="3" text="Seq"/>
- <Cell col="4" text="No"/>
- <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="이식번호"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" expr="expr:currow + 1"/>
- <Cell col="1" displaytype="date" text="bind:opdd" mask="yyyy-MM-dd" suppress="1" suppressalign="middle,over" calendardisplaynulltype="none" tooltiptype="bottom,right" tooltiptext="bind:opdd"/>
- <Cell col="2" displaytype="normal" edittype="none" text="bind:graftno" suppress="2" suppressalign="middle,over" tooltiptype="bottom,right" tooltiptext="bind:graftno"/>
- <Cell col="3" displaytype="normal" edittype="none" text="bind:partseq" suppress="3" suppressalign="middle,over" tooltiptype="bottom,right" tooltiptext="bind:partseq"/>
- <Cell col="4" displaytype="number" style="align:center middle;" text="bind:batchno" mask="000" tooltiptype="bottom,right" tooltiptext="bind:batchno"/>
- <Cell col="5" style="align:left middle;" text="bind:partname" tooltiptype="bottom,right" tooltiptext="bind:partname"/>
- <Cell col="6" displaytype="normal" edittype="none" text="bind:hngnm" tooltiptype="bottom,right" tooltiptext="bind:hngnm"/>
- <Cell col="7" text="bind:rrgstno" tooltiptype="bottom,right" tooltiptext="bind:rrgstno"/>
- <Cell col="8" style="align:left middle;" text="bind:opengnm" tooltiptype="bottom,right" tooltiptext="bind:opengnm"/>
- <Cell col="9" style="align:left middle;" text="bind:diagengnm" tooltiptype="bottom,right" tooltiptext="bind:diagengnm"/>
- <Cell col="10" style="align:left middle;" text="bind:hospnm" tooltiptype="bottom,right" tooltiptext="bind:hospnm"/>
- <Cell col="11" text="bind:recvno" tooltiptype="bottom,right" tooltiptext="bind:recvno"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Div id="div" taborder="2" position="absolute 0 25 1194 60" class="div_SA">
- <Layouts>
- <Layout width="1194" height="35">
- <Static id="caption2" text="수술일자 :" class="search_name" position="absolute 15 9 101 26" anchor="default"/>
- <Static id="caption5" text="~" class="search_no_b" position="absolute 204 9 213 26" anchor="default"/>
- <Shape id="line13" linetype="vertical" class="line_4" position="absolute 1104 7 1110 29" anchor="default"/>
- <Calendar id="ipt_fromdd" taborder="1" class="input_essential" position="absolute 96 8 196 27" anchor="default" autoselect="true" autoskip="true" dateformat="yyyy-MM-dd"/>
- <Calendar id="ipt_todd" taborder="2" class="input_essential" position="absolute 221 8 321 27" anchor="default" autoselect="true" autoskip="true" dateformat="yyyy-MM-dd" value="null"/>
- <Button id="btn_sea" taborder="3" text="조회" class="btn1" position="absolute 1123 7 1179 29" anchor="default" onclick="div_btn_sea_onclick"/>
- </Layout>
- </Layouts>
- </Div>
- <Button id="btn_excsave" taborder="3" text="엑셀저장" class="btn7" position="absolute 1119 64 1194 83" onclick="btn_excsave_onclick"/>
- <Button id="btn_prt" taborder="4" text="출력" class="btn6" position="absolute 0 757 56 779" onclick="btn_prt_onclick"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="srchfromdd" type="STRING" size="256"/>
- <Column id="srchtodd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="srchfromdd"/>
- <Col id="srchtodd"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_benflist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="opdd" type="STRING" size="256" sumtext="수술일자"/>
- <Column id="graftno" type="STRING" size="256" sumtext="graftno"/>
- <Column id="partseq" type="STRING" size="256" sumtext="파트seq"/>
- <Column id="batchno" type="STRING" size="256" sumtext="배치no"/>
- <Column id="partname" type="STRING" size="256" sumtext="조직명"/>
- <Column id="hngnm" type="STRING" size="256" sumtext="성명"/>
- <Column id="rrgstno" type="STRING" size="256" sumtext="주민번호"/>
- <Column id="diagengnm" type="STRING" size="256" sumtext="진단명"/>
- <Column id="opengnm" type="STRING" size="256" sumtext="수술명"/>
- <Column id="recvno" type="STRING" size="256" sumtext="이식번호"/>
- <Column id="hospnm" type="STRING" size="256" sumtext="병원명"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_rexprnt_benflist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="Column0" type="STRING" size="256"/>
- <Column id="Column1" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="Column0">srchfromdd</Col>
- </Row>
- <Row>
- <Col id="Column0">srchtodd</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_rexprnt_benflist_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="opdd" type="STRING" size="256" sumtext="수술일자"/>
- <Column id="graftno" type="STRING" size="256" sumtext="graftno"/>
- <Column id="partseq" type="STRING" size="256" sumtext="파트seq"/>
- <Column id="batchno" type="STRING" size="256" sumtext="배치no"/>
- <Column id="partname" type="STRING" size="256" sumtext="조직명"/>
- <Column id="hngnm" type="STRING" size="256" sumtext="성명"/>
- <Column id="rrgstno" type="STRING" size="256" sumtext="주민번호"/>
- <Column id="diagengnm" type="STRING" size="256" sumtext="진단명"/>
- <Column id="opengnm" type="STRING" size="256" sumtext="수술명"/>
- <Column id="recvno" type="STRING" size="256" sumtext="이식번호"/>
- <Column id="hospnm" type="STRING" size="256" sumtext="병원명"/>
- </ColumnInfo>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="div.ipt_fromdd" propid="value" datasetid="ds_send" columnid="srchfromdd"/>
- <BindItem id="item1" compid="div.ipt_todd" propid="value" datasetid="ds_send" columnid="srchtodd"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2015-11-13
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2015-11-13 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- //=======================================================================================
- // Lib Include
- //---------------------------------------------------------------------------------------
- include 'com_commonxp::comm_main.xjs';
- var arErrorCode = new HashArray();
- //=======================================================================================
- // Local methods
- //---------------------------------------------------------------------------------------
- /**
- * 화면 초기화
- * @return {[type]} [description]
- */
- function fGetScreenInit() {
- ds_send.setColumn(0, "srchfromdd", utlf_getCurrentDate());
- ds_send.setColumn(0, "srchtodd", utlf_getCurrentDate());
- ds_main_benflist.clearData();
- }
- /**
- * 폐기대장 조회
- * @return {[type]} [description]
- */
- function fGetAbnList() {
- ds_main_benflist.clearData();
- var oParam = {};
- oParam.id = "TRAVT02101";
- oParam.service = "tissuebankapp.TissueBankProcess";
- oParam.method = "reqGettissuebankBenflist";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_benflist=item";
- oParam.async = false;
- oParam.callback = "callback";
- tranf_submit(oParam);
- if (arErrorCode.pop("TRAVT02101") > -1) {
- for (var i = 0; i < ds_main_benflist.rowcount; i++) {
- var seq = parseInt(ds_main_benflist.getColumn(i, "partseq"));
- var no = parseInt(ds_main_benflist.getColumn(i, "batchno"));
- if (seq != "" && seq < 10) {
- ds_main_benflist.setColumn(i, "partseq", "0" + seq);
- }
- if (no != "" && no < 10) {
- ds_main_benflist.setColumn(i, "batchno", "00" + no);
- }
- else if (no != "" && no > 9 && no < 100) {
- ds_main_benflist.setColumn(i, "batchno", "0" + no);
- }
- }
- }
- }
- /**
- * submit 후 호출 될 공통 콜백
- * @param {[type]} sSvcId [description]
- * @param {[type]} nErrorCode [description]
- * @param {[type]} sErrorMsg [description]
- * @return {Function} [description]
- */
- function callback(sSvcId, nErrorCode, sErrorMsg){
- arErrorCode.push(sSvcId, nErrorCode);
- }
- //=======================================================================================
- // Events
- //---------------------------------------------------------------------------------------
- /**
- * onload 이벤트 발생 시 호출
- * @param {[type]} obj:Form [description]
- * @param {[type]} e:LoadEventInfo [description]
- */
- function SMAVT02101_onload(obj: Form, e: LoadEventInfo) {
- frmf_initForm(obj);
-
- grdf_setGridSort(dtg_benflist);
- fGetScreenInit();
- }
- /**
- * 조회 버튼 클릭 이벤트
- * @param {[type]} obj: Button [description]
- * @param {[type]} e: ClickEventInfo [description]
- * @return {[type]} [description]
- */
- function div_btn_sea_onclick(obj: Button, e: ClickEventInfo) {
- if (utlf_transNullToEmpty(ds_send.getColumn(0, "srchfromdd")) == "") {
- sysf_messageBox("조회기간", "E013", "입력 후 다시 조회하세요.");
- return;
- }
- if (utlf_transNullToEmpty(ds_send.getColumn(0, "srchtodd")) == "") {
- sysf_messageBox("조회기간", "E013", "입력 후 다시 조회하세요.");
- return;
- }
- fGetAbnList();
- }
- /**
- * 엑셀저장 버튼 클릭 이벤트
- * @param {[type]} obj: Button [description]
- * @param {[type]} e: ClickEventInfo [description]
- * @return {[type]} [description]
- */
- function btn_excsave_onclick(obj: Button, e: ClickEventInfo) {
- grdf_exportExcel(dtg_benflist, "excel", "Sheet1", true);
- }
- /**
- * 출력 버튼 클릭 이벤트
- * @param {[type]} obj: Button [description]
- * @param {[type]} e: ClickEventInfo [description]
- * @return {[type]} [description]
- */
- function btn_prt_onclick(obj: Button, e: ClickEventInfo) {
- ds_rexprnt_benflist.copyRow(0, ds_send, 0);
- ds_rexprnt_benflist_item.clearData();
- dsf_copyColInfo(ds_rexprnt_benflist_item, ds_main_benflist, true);
- for (var i = 0; i < ds_main_benflist.rowcount; i++) {
- ds_rexprnt_benflist_item.copyRow(ds_rexprnt_benflist_item.addRow(), ds_main_benflist, i);
- }
- // DOM 객체 설정
- var objDOM = rptf_createDOM();
- rptf_setNodeListToDOM(objDOM, "root/rexprnt/benflist/item", ds_rexprnt_benflist_item);
- rptf_setValueToDOM(objDOM, "root/rexprnt/benflist/srchfromdd", ds_send.getColumn(0, 'srchfromdd'));
- rptf_setValueToDOM(objDOM, "root/rexprnt/benflist/srchtodd", ds_send.getColumn(0, 'srchtodd'));
- rptf_exeReportPreview30(["RPAVT00109"],[{ xml_data_XML1: objDOM.documentElement.source }],
- "open=1;save=1;directprint=0;print=1;zoom=0;excel=1;show=1");
- }
- ]]></Script>
- </Form>
- </FDL>
|