SMAVT01100_기증자분류.xfdl 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMAVT01100" position="absolute 0 0 1256 798" titletext="조직은행 기증자분류" onload="SMAVT01100_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption1" text="조직은행 기증자분류 리스트" class="tit_2" position="absolute 5 68 215 84"/>
  8. <Shape id="line1" linetype="horizontal" class="line_1" position="absolute 0 88 1194 94" style="strokepen:3 solid #33bbbbff;"/>
  9. <Grid id="dtg_dntglist" taborder="1" binddataset="ds_main_dntglist" useinputpanel="false" position="absolute 0 92 1194 756">
  10. <Formats>
  11. <Format id="default">
  12. <Columns>
  13. <Column size="25"/>
  14. <Column size="161"/>
  15. <Column size="593"/>
  16. <Column size="147"/>
  17. </Columns>
  18. <Rows>
  19. <Row size="24" band="head"/>
  20. <Row size="24"/>
  21. </Rows>
  22. <Band id="head">
  23. <Cell/>
  24. <Cell col="1" text="기증자 분류"/>
  25. <Cell col="2" text="기증조직"/>
  26. <Cell col="3" text="기증조직의 수"/>
  27. </Band>
  28. <Band id="body">
  29. <Cell celltype="head" expr="expr:currow + 1"/>
  30. <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"/>
  31. <Cell col="2" displaytype="combo" style="align:center middle;" text="bind:partcode" combodataset="ds_init_comboptcdlst" combocodecol="partcode" combodatacol="partname" enable="false"/>
  32. <Cell col="3" displaytype="normal" edittype="none" text="bind:cnt"/>
  33. </Band>
  34. </Format>
  35. </Formats>
  36. </Grid>
  37. <Div id="grp_sea" taborder="2" position="absolute 0 25 1194 60" class="div_SA">
  38. <Layouts>
  39. <Layout width="1194" height="35">
  40. <Static id="caption2" text="채취일자 :" class="search_name" position="absolute 15 9 101 26" anchor="default"/>
  41. <Static id="caption5" text="~" class="search_no_b" position="absolute 199 9 211 26" anchor="default"/>
  42. <Shape id="line13" linetype="vertical" class="line_4" position="absolute 1104 7 1110 29" anchor="default"/>
  43. <Calendar id="ipt_fromdd" taborder="1" class="input_essential" position="absolute 89 8 189 27" anchor="default" dateformat="yyyy-MM-dd" value="null"/>
  44. <Calendar id="ipt_todd" taborder="2" class="input_essential" position="absolute 221 8 321 27" anchor="default" dateformat="yyyy-MM-dd"/>
  45. <Button id="btn_sea" taborder="3" text="조회" class="btn1" position="absolute 1123 7 1179 29" anchor="default" onclick="grp_sea_btn_sea_onclick"/>
  46. </Layout>
  47. </Layouts>
  48. </Div>
  49. <Button id="btn_excsave" taborder="3" text="엑셀저장" class="btn2" position="absolute 1129 67 1193 86" onclick="btn_excsave_onclick"/>
  50. <Static id="caption6" text="조직은행 기증자분류" class="tit_1" position="absolute 0 0 200 25"/>
  51. <Button id="btn_prt" taborder="4" text="출력" class="btn6" visible="false" position="absolute 0 763 56 785"/>
  52. </Layout>
  53. </Layouts>
  54. <Objects>
  55. <Dataset id="ds_init_combobscdlst" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  56. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  57. <ColumnInfo>
  58. <Column id="srchfromdd" type="STRING" size="256"/>
  59. <Column id="srchtodd" type="STRING" size="256"/>
  60. </ColumnInfo>
  61. <Rows>
  62. <Row>
  63. <Col id="srchfromdd"/>
  64. <Col id="srchtodd"/>
  65. </Row>
  66. </Rows>
  67. </Dataset>
  68. <Dataset id="ds_main_dntglist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  69. <Dataset id="ds_init_comboptcdlst" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  70. <ColumnInfo>
  71. <Column id="partname" type="STRING" size="256"/>
  72. <Column id="partcode" type="STRING" size="256"/>
  73. </ColumnInfo>
  74. </Dataset>
  75. </Objects>
  76. <Bind>
  77. <BindItem id="item0" compid="grp_sea.ipt_fromdd" propid="value" datasetid="ds_send" columnid="srchfromdd"/>
  78. <BindItem id="item1" compid="grp_sea.ipt_todd" propid="value" datasetid="ds_send" columnid="srchtodd"/>
  79. </Bind>
  80. <Script type="xscript4.0"><![CDATA[//=======================================================================================
  81. // Lib Include
  82. //---------------------------------------------------------------------------------------
  83. include 'com_commonxp::comm_main.xjs';
  84. include 'ast_tissuebankbasexp::tissuebankcombolist.xjs';
  85. var arErrorCode = new HashArray();
  86. //=======================================================================================
  87. // Local methods
  88. //---------------------------------------------------------------------------------------
  89. /**
  90. * 화면 초기화
  91. * @return {[type]} [description]
  92. */
  93. function fGetScreenInit() {
  94. // C14 기증 구분
  95. tbGetBscdList([{ dsNm: 'ds_init_combobscdlst', cdGrpId: 'C14' }]);
  96. ds_send.setColumn(0, "srchfromdd", utlf_getCurrentDate());
  97. ds_send.setColumn(0, "srchtodd", utlf_getCurrentDate());
  98. ds_main_dntglist.clearData();
  99. // 부위콤보 List
  100. ds_init_comboptcdlst.clearData();
  101. var oParam = {};
  102. oParam.id = "TRAVB00001";
  103. oParam.service = "tissuebankbaseapp.TissueBankPart";
  104. oParam.method = "reqGetComboList";
  105. oParam.inds = "req=ds_req";
  106. oParam.outds = "ds_init_comboptcdlst=item";
  107. oParam.async = false;
  108. tranf_submit(oParam);
  109. var idx = ds_init_comboptcdlst.addRow();
  110. ds_init_comboptcdlst.setColumn(idx, 'partcode', '합계');
  111. ds_init_comboptcdlst.setColumn(idx, 'partname', '합계');
  112. }
  113. /**
  114. * submit 후 호출 될 공통 콜백
  115. * @param {[type]} sSvcId [description]
  116. * @param {[type]} nErrorCode [description]
  117. * @param {[type]} sErrorMsg [description]
  118. * @return {Function} [description]
  119. */
  120. function callback(sSvcId, nErrorCode, sErrorMsg){
  121. arErrorCode.push(sSvcId, nErrorCode);
  122. }
  123. //=======================================================================================
  124. // Events
  125. //---------------------------------------------------------------------------------------
  126. /**
  127. * onload 이벤트 발생 시 호출
  128. * @param {[type]} obj:Form [description]
  129. * @param {[type]} e:LoadEventInfo [description]
  130. */
  131. function SMAVT01100_onload(obj: Form, e: LoadEventInfo) {
  132. frmf_initForm(obj);
  133. grdf_setGridSort(dtg_dntglist);
  134. fGetScreenInit();
  135. }
  136. /**
  137. * 조회 버튼 클릭 이벤트
  138. * @param {[type]} obj: Button [description]
  139. * @param {[type]} e: ClickEventInfo [description]
  140. * @return {[type]} [description]
  141. */
  142. function grp_sea_btn_sea_onclick(obj: Button, e: ClickEventInfo) {
  143. if (utlf_transNullToEmpty(ds_send.getColumn(0, "srchfromdd")) == "") {
  144. sysf_messageBox("조회기간", "E013", "입력 후 다시 조회하세요.");
  145. return;
  146. }
  147. if (utlf_transNullToEmpty(ds_send.getColumn(0, "srchtodd")) == "") {
  148. sysf_messageBox("조회기간", "E013", "입력 후 다시 조회하세요.");
  149. return;
  150. }
  151. ds_main_dntglist.clearData();
  152. var oParam = {};
  153. oParam.id = "TRAVT01100";
  154. oParam.service = "tissuebankapp.TissueBankProcess";
  155. oParam.method = "reqGetStatistics010";
  156. oParam.inds = "req=ds_send";
  157. oParam.outds = "ds_main_dntglist=item";
  158. oParam.async = false;
  159. oParam.callback = "callback";
  160. tranf_submit(oParam);
  161. if (arErrorCode.pop("TRAVT01100") > -1) {
  162. // 의미가 없다.
  163. // var rows = dtg_dntglist.rows
  164. // if (rows > 1) {
  165. // // model.setValue(/root/main/dntglist/item/partcode)
  166. // }
  167. }
  168. }
  169. /**
  170. * 엑셀저장 버튼 클릭 이벤트
  171. * @param {[type]} obj: Button [description]
  172. * @param {[type]} e: ClickEventInfo [description]
  173. * @return {[type]} [description]
  174. */
  175. function btn_excsave_onclick(obj: Button, e: ClickEventInfo) {
  176. grdf_exportExcel(dtg_dntglist, "excel", "sheet", true, "", 'user', true);
  177. }
  178. ]]></Script>
  179. </Form>
  180. </FDL>