123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMAVT01100" position="absolute 0 0 1256 798" titletext="조직은행 기증자분류" onload="SMAVT01100_onload">
- <Layouts>
- <Layout>
- <Static id="caption1" text="조직은행 기증자분류 리스트" class="tit_2" position="absolute 5 68 215 84"/>
- <Shape id="line1" linetype="horizontal" class="line_1" position="absolute 0 88 1194 94" style="strokepen:3 solid #33bbbbff;"/>
- <Grid id="dtg_dntglist" taborder="1" binddataset="ds_main_dntglist" useinputpanel="false" position="absolute 0 92 1194 756">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25"/>
- <Column size="161"/>
- <Column size="593"/>
- <Column size="147"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1" text="기증자 분류"/>
- <Cell col="2" text="기증조직"/>
- <Cell col="3" text="기증조직의 수"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" expr="expr:currow + 1"/>
- <Cell col="1" displaytype="combo" style="align:center middle;" text="bind:dntgbd" suppress="1" suppressalign="middle,over" combodataset="ds_init_combobscdlst" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
- <Cell col="2" displaytype="combo" style="align:center middle;" text="bind:partcode" combodataset="ds_init_comboptcdlst" combocodecol="partcode" combodatacol="partname" enable="false"/>
- <Cell col="3" displaytype="normal" edittype="none" text="bind:cnt"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Div id="grp_sea" 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 199 9 211 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 89 8 189 27" anchor="default" dateformat="yyyy-MM-dd" value="null"/>
- <Calendar id="ipt_todd" taborder="2" class="input_essential" position="absolute 221 8 321 27" anchor="default" dateformat="yyyy-MM-dd"/>
- <Button id="btn_sea" taborder="3" text="조회" class="btn1" position="absolute 1123 7 1179 29" anchor="default" onclick="grp_sea_btn_sea_onclick"/>
- </Layout>
- </Layouts>
- </Div>
- <Button id="btn_excsave" taborder="3" text="엑셀저장" class="btn2" position="absolute 1129 67 1193 86" onclick="btn_excsave_onclick"/>
- <Static id="caption6" text="조직은행 기증자분류" class="tit_1" position="absolute 0 0 200 25"/>
- <Button id="btn_prt" taborder="4" text="출력" class="btn6" visible="false" position="absolute 0 763 56 785"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_init_combobscdlst" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <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_dntglist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_init_comboptcdlst" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="partname" type="STRING" size="256"/>
- <Column id="partcode" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="grp_sea.ipt_fromdd" propid="value" datasetid="ds_send" columnid="srchfromdd"/>
- <BindItem id="item1" compid="grp_sea.ipt_todd" propid="value" datasetid="ds_send" columnid="srchtodd"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[//=======================================================================================
- // Lib Include
- //---------------------------------------------------------------------------------------
- include 'com_commonxp::comm_main.xjs';
- include 'ast_tissuebankbasexp::tissuebankcombolist.xjs';
- var arErrorCode = new HashArray();
- //=======================================================================================
- // Local methods
- //---------------------------------------------------------------------------------------
- /**
- * 화면 초기화
- * @return {[type]} [description]
- */
- function fGetScreenInit() {
- // C14 기증 구분
- tbGetBscdList([{ dsNm: 'ds_init_combobscdlst', cdGrpId: 'C14' }]);
- ds_send.setColumn(0, "srchfromdd", utlf_getCurrentDate());
- ds_send.setColumn(0, "srchtodd", utlf_getCurrentDate());
- ds_main_dntglist.clearData();
- // 부위콤보 List
- ds_init_comboptcdlst.clearData();
- var oParam = {};
- oParam.id = "TRAVB00001";
- oParam.service = "tissuebankbaseapp.TissueBankPart";
- oParam.method = "reqGetComboList";
- oParam.inds = "req=ds_req";
- oParam.outds = "ds_init_comboptcdlst=item";
- oParam.async = false;
- tranf_submit(oParam);
- var idx = ds_init_comboptcdlst.addRow();
- ds_init_comboptcdlst.setColumn(idx, 'partcode', '합계');
- ds_init_comboptcdlst.setColumn(idx, 'partname', '합계');
- }
- /**
- * 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 SMAVT01100_onload(obj: Form, e: LoadEventInfo) {
- frmf_initForm(obj);
- grdf_setGridSort(dtg_dntglist);
- fGetScreenInit();
- }
- /**
- * 조회 버튼 클릭 이벤트
- * @param {[type]} obj: Button [description]
- * @param {[type]} e: ClickEventInfo [description]
- * @return {[type]} [description]
- */
- function grp_sea_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;
- }
- ds_main_dntglist.clearData();
- var oParam = {};
- oParam.id = "TRAVT01100";
- oParam.service = "tissuebankapp.TissueBankProcess";
- oParam.method = "reqGetStatistics010";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_dntglist=item";
- oParam.async = false;
- oParam.callback = "callback";
- tranf_submit(oParam);
- if (arErrorCode.pop("TRAVT01100") > -1) {
- // 의미가 없다.
- // var rows = dtg_dntglist.rows
- // if (rows > 1) {
- // // model.setValue(/root/main/dntglist/item/partcode)
- // }
- }
- }
- /**
- * 엑셀저장 버튼 클릭 이벤트
- * @param {[type]} obj: Button [description]
- * @param {[type]} e: ClickEventInfo [description]
- * @return {[type]} [description]
- */
- function btn_excsave_onclick(obj: Button, e: ClickEventInfo) {
- grdf_exportExcel(dtg_dntglist, "excel", "sheet", true, "", 'user', true);
- }
- ]]></Script>
- </Form>
- </FDL>
|