SMAVT01400_이식진료의분류.xfdl 9.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMAVT01400" position="absolute 0 0 1256 805" titletext="조직은행 이식진료의 분류" onload="SMAVT01400_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 0 757 1195 784" id="grp_btn">
  8. <Layouts>
  9. <Layout>
  10. <Button position="absolute 0 5 56 27" id="btn_prt" class="btn6" visible="false" text="출력"/>
  11. </Layout>
  12. </Layouts>
  13. </Div>
  14. <Static id="caption6" text="조직은행 이식 진료의 분류" class="tit_1" position="absolute 0 0 200 25"/>
  15. <Static id="caption1" text="조직은행 이식 진료의 분류 리스트" class="tit_2" position="absolute 5 68 237 84"/>
  16. <Shape id="line1" linetype="horizontal" class="line_1" position="absolute 0 87 1194 93" style="strokepen:3 solid #33bbbbff;"/>
  17. <Grid id="dtg_opdrnm_list" taborder="1" binddataset="ds_main_opdrnm_list" useinputpanel="false" position="absolute 0 91 1194 755">
  18. <Formats>
  19. <Format id="default">
  20. <Columns>
  21. <Column size="25"/>
  22. <Column size="172"/>
  23. <Column size="98"/>
  24. <Column size="100"/>
  25. </Columns>
  26. <Rows>
  27. <Row size="24" band="head"/>
  28. <Row size="24"/>
  29. </Rows>
  30. <Band id="head">
  31. <Cell/>
  32. <Cell col="1" text="이식진료의"/>
  33. <Cell col="2" text="건수"/>
  34. <Cell col="3" text="비율(%)"/>
  35. </Band>
  36. <Band id="body">
  37. <Cell celltype="head" expr="expr:currow + 1"/>
  38. <Cell col="1" displaytype="normal" edittype="none" text="bind:opdrnm"/>
  39. <Cell col="2" displaytype="normal" edittype="none" text="bind:cnt"/>
  40. <Cell col="3" displaytype="normal" edittype="none" text="bind:ratio"/>
  41. </Band>
  42. </Format>
  43. </Formats>
  44. </Grid>
  45. <Div id="grp_sea" taborder="2" position="absolute 0 25 1194 60" class="div_SA">
  46. <Layouts>
  47. <Layout width="1194" height="35">
  48. <Static id="caption2" text="수술일자 :" class="search_name" position="absolute 15 9 101 26" anchor="default"/>
  49. <Static id="caption5" text="~" class="search_no_b" position="absolute 207 9 219 26" anchor="default"/>
  50. <Shape id="line13" linetype="vertical" class="line_4" position="absolute 1104 7 1110 29" anchor="default"/>
  51. <Calendar id="ipt_fromdd" taborder="1" class="input_essential" position="absolute 104 8 204 27" anchor="default" autoselect="true" autoskip="true" dateformat="yyyy-MM-dd" value="null"/>
  52. <Calendar id="ipt_todd" taborder="2" class="input_essential" position="absolute 222 8 322 27" anchor="default" autoselect="true" autoskip="true" dateformat="yyyy-MM-dd"/>
  53. <Button id="btn_sea" taborder="3" text="조회" class="btn1" position="absolute 1123 7 1179 29" anchor="default" onclick="grp_sea_btn_sea_onclick"/>
  54. </Layout>
  55. </Layouts>
  56. </Div>
  57. <Button id="btn_excsave" taborder="3" text="엑셀저장" class="btn2" position="absolute 1129 65 1193 84" onclick="btn_excsave_onclick"/>
  58. </Layout>
  59. </Layouts>
  60. <Objects>
  61. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  62. <ColumnInfo>
  63. <Column id="srchtodd" type="STRING" size="256"/>
  64. <Column id="srchfromdd" type="STRING" size="256"/>
  65. </ColumnInfo>
  66. <Rows>
  67. <Row>
  68. <Col id="srchtodd"/>
  69. <Col id="srchfromdd"/>
  70. </Row>
  71. </Rows>
  72. </Dataset>
  73. <Dataset id="ds_main_opdrnm_list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  74. <ColumnInfo>
  75. <Column id="opdrnm" type="STRING" size="256" sumtext="이식집도의"/>
  76. <Column id="cnt" type="STRING" size="256" sumtext="건수"/>
  77. <Column id="ratio" type="STRING" size="256" sumtext="비율"/>
  78. </ColumnInfo>
  79. </Dataset>
  80. </Objects>
  81. <Bind>
  82. <BindItem id="item0" compid="grp_sea.ipt_fromdd" propid="value" datasetid="ds_send" columnid="srchfromdd"/>
  83. <BindItem id="item1" compid="grp_sea.ipt_todd" propid="value" datasetid="ds_send" columnid="srchtodd"/>
  84. </Bind>
  85. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  86. * System Name :
  87. * Job Name :
  88. * Creator :
  89. * Make Date : 2015-11-13
  90. * Description :
  91. *---------------------------------------------------------------------------------------
  92. * Modify Date Modifier Modify Description
  93. *---------------------------------------------------------------------------------------
  94. * 2015-11-13 Live Converter TF->XP
  95. *
  96. *---------------------------------------------------------------------------------------
  97. ****************************************************************************************/
  98. //=======================================================================================
  99. // Lib Include
  100. //---------------------------------------------------------------------------------------
  101. include 'com_commonxp::comm_main.xjs';
  102. var arErrorCode = new HashArray();
  103. //=======================================================================================
  104. // Local methods
  105. //---------------------------------------------------------------------------------------
  106. /**
  107. * MaskEdit 에서 입력한 데이터가 format 에 맞는 형식인지 검사 한다
  108. * ontextchange 이벤트에서만 사용 할 것
  109. * @param {[type]} obj:MaskEdit [description]
  110. * @param {[type]} e:TextChangeEventInfo [description]
  111. * @param {[type]} format [description]
  112. * @return {[type]} [description]
  113. */
  114. function checkValid(obj: MaskEdit, e: TextChangeEventInfo, format) {
  115. var dummyDay = '20170101120000';
  116. var postValue = utlf_trim(String(e.posttext).replace(':', '').replace('_', '').replace('-', '').replace(' ', ''));
  117. postValue = (postValue.length == dummyDay.length) ? postValue : postValue + dummyDay.substr(postValue.length, dummyDay.length);
  118. if (!utlf_isValidDateTime(postValue, format)) {
  119. return false;
  120. }
  121. return true;
  122. }
  123. /**
  124. * 화면 초기화
  125. * @return {[type]} [description]
  126. */
  127. function fGetScreenInit() {
  128. ds_send.setColumn(0, "srchfromdd", utlf_getCurrentDate());
  129. ds_send.setColumn(0, "srchtodd", utlf_getCurrentDate());
  130. }
  131. /**
  132. * submit 후 호출 될 공통 콜백
  133. * @param {[type]} sSvcId [description]
  134. * @param {[type]} nErrorCode [description]
  135. * @param {[type]} sErrorMsg [description]
  136. * @return {Function} [description]
  137. */
  138. function callback(sSvcId, nErrorCode, sErrorMsg){
  139. arErrorCode.push(sSvcId, nErrorCode);
  140. }
  141. //=======================================================================================
  142. // Events
  143. //---------------------------------------------------------------------------------------
  144. /**
  145. * onload 이벤트 발생 시 호출
  146. * @param {[type]} obj:Form [description]
  147. * @param {[type]} e:LoadEventInfo [description]
  148. */
  149. function SMAVT01400_onload(obj:Form, e:LoadEventInfo)
  150. {
  151. frmf_initForm(obj);
  152. grdf_setGridSort(dtg_opdrnm_list);
  153. fGetScreenInit();
  154. }
  155. /**
  156. * 조회 버튼 클릭 이벤트
  157. * @param {[type]} obj: Button [description]
  158. * @param {[type]} e: ClickEventInfo [description]
  159. * @return {[type]} [description]
  160. */
  161. function grp_sea_btn_sea_onclick(obj: Button, e: ClickEventInfo) {
  162. if (utlf_transNullToEmpty(ds_send.getColumn(0, "srchfromdd")) == "") {
  163. sysf_messageBox("조회기간", "E013", "입력 후 다시 조회하세요.");
  164. return;
  165. }
  166. if (utlf_transNullToEmpty(ds_send.getColumn(0, "srchtodd")) == "") {
  167. sysf_messageBox("조회기간", "E013", "입력 후 다시 조회하세요.");
  168. return;
  169. }
  170. ds_main_opdrnm_list.clearData();
  171. var oParam = {};
  172. oParam.id = "TRAVT01400";
  173. oParam.service = "tissuebankapp.TissueBankProcess";
  174. oParam.method = "reqGetStatistics040";
  175. oParam.inds = "req=ds_send";
  176. oParam.outds = "ds_main_opdrnm_list=item";
  177. oParam.async = false;
  178. tranf_submit(oParam);
  179. }
  180. /**
  181. * 엑셀저장 버튼 클릭 이벤트
  182. * @param {[type]} obj: Button [description]
  183. * @param {[type]} e: ClickEventInfo [description]
  184. * @return {[type]} [description]
  185. */
  186. function btn_excsave_onclick(obj: Button, e: ClickEventInfo) {
  187. grdf_exportExcel(dtg_opdrnm_list, "excel", "sheet", true, "", 'user', true);
  188. }
  189. ]]></Script>
  190. </Form>
  191. </FDL>