SMAVT01200_생산된조직분류.xfdl 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMAVT01200" position="absolute 0 0 1256 805" titletext="조직은행 생산된 조직분류" onload="SMAVT01200_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption6" text="조직은행 생산된조직분류" class="tit_1" position="absolute 0 0 180 25"/>
  8. <Static id="caption1" text="조직은행 생산된조직분류 리스트" class="tit_2" position="absolute 5 68 221 84"/>
  9. <Shape id="line1" linetype="horizontal" class="line_1" position="absolute 0 88 1194 94" style="strokepen:3 solid #33bbbbff;"/>
  10. <Grid id="dtg_grafttypecdlist" taborder="1" binddataset="ds_main_grafttypecdlist" useinputpanel="false" position="absolute 0 92 1194 756">
  11. <Formats>
  12. <Format id="default">
  13. <Columns>
  14. <Column size="25"/>
  15. <Column size="370"/>
  16. <Column size="172"/>
  17. <Column size="98"/>
  18. <Column size="100"/>
  19. <Column size="100"/>
  20. </Columns>
  21. <Rows>
  22. <Row size="24" band="head"/>
  23. <Row size="24"/>
  24. </Rows>
  25. <Band id="head">
  26. <Cell/>
  27. <Cell col="1" text="생산된 조직 분류"/>
  28. <Cell col="2" text="사이즈/수분함유량"/>
  29. <Cell col="3" text="배치"/>
  30. <Cell col="4" text="이식"/>
  31. <Cell col="5" text="총계"/>
  32. </Band>
  33. <Band id="body">
  34. <Cell celltype="head" expr="expr:currow + 1" combodataset="ds_init_combogtcdlst" combocodecol="grafttypecd" combodatacol="grafttypenm"/>
  35. <Cell col="1" displaytype="combo" style="align:center middle;" text="bind:grafttypecd" suppress="1" suppressalign="middle,over" combodataset="ds_init_combogtcdlst" combocodecol="grafttypecd" combodatacol="grafttypenm" enable="false"/>
  36. <Cell col="2" displaytype="normal" edittype="none" text="bind:sizewcnt" enable="false"/>
  37. <Cell col="3" displaytype="normal" edittype="none" text="bind:stat_d"/>
  38. <Cell col="4" displaytype="normal" edittype="none" text="bind:stat_e"/>
  39. <Cell col="5" displaytype="normal" edittype="none" text="bind:stat_f"/>
  40. </Band>
  41. </Format>
  42. </Formats>
  43. </Grid>
  44. <Div id="grp_sea" taborder="2" position="absolute 0 25 1194 60" class="div_SA">
  45. <Layouts>
  46. <Layout width="1194" height="35">
  47. <Static id="caption2" text="등록일자 :" class="search_name" position="absolute 15 9 101 26" anchor="default"/>
  48. <Static id="caption5" text="~" class="search_no_b" position="absolute 200 9 212 26" anchor="default"/>
  49. <Shape id="line13" linetype="vertical" class="line_4" position="absolute 1104 7 1110 29" anchor="default"/>
  50. <Calendar id="ipt_fromdd" taborder="1" class="input_essential" position="absolute 95 8 195 27" anchor="default" autoselect="true" autoskip="true" dateformat="yyyy-MM-dd"/>
  51. <Calendar id="ipt_todd" taborder="2" class="input_essential" position="absolute 217 8 317 27" anchor="default" autoselect="true" autoskip="true" dateformat="yyyy-MM-dd" value="null"/>
  52. <Button id="btn_sea" taborder="3" text="조회" class="btn1" position="absolute 1123 7 1179 29" anchor="default" onclick="grp_sea_btn_sea_onclick"/>
  53. </Layout>
  54. </Layouts>
  55. </Div>
  56. <Button id="btn_excsave" taborder="3" text="엑셀저장" class="btn2" position="absolute 1129 66 1193 85" onclick="btn_excsave_onclick"/>
  57. <Button id="btn_prt" taborder="4" text="출력" class="btn6" visible="false" position="absolute 0 765 56 787"/>
  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="srchfromdd" type="STRING" size="256"/>
  64. <Column id="srchtodd" type="STRING" size="256"/>
  65. <Column id="srchuseyn" type="STRING" size="256"/>
  66. <Column id="srchgrafttypecd" type="STRING" size="256"/>
  67. <Column id="srchgrafttypenm" type="STRING" size="256"/>
  68. </ColumnInfo>
  69. <Rows>
  70. <Row>
  71. <Col id="srchfromdd"/>
  72. <Col id="srchtodd"/>
  73. <Col id="srchuseyn"/>
  74. <Col id="srchgrafttypecd"/>
  75. <Col id="srchgrafttypenm"/>
  76. </Row>
  77. </Rows>
  78. </Dataset>
  79. <Dataset id="ds_main_grafttypecdlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  80. <ColumnInfo>
  81. <Column id="grafttypecd" type="STRING" size="256" sumtext="조직타입코드"/>
  82. <Column id="sizewcnt" type="STRING" size="256" sumtext="사이즈/수분함유량"/>
  83. <Column id="stat_d" type="STRING" size="256" sumtext="배치"/>
  84. <Column id="stat_e" type="STRING" size="256" sumtext="이식"/>
  85. <Column id="stat_f" type="STRING" size="256" sumtext="총계"/>
  86. </ColumnInfo>
  87. </Dataset>
  88. <Dataset id="ds_init_combogtcdlst" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  89. <ColumnInfo>
  90. <Column id="grafttypecd" type="STRING" size="256"/>
  91. <Column id="grafttypenm" type="STRING" size="256"/>
  92. </ColumnInfo>
  93. </Dataset>
  94. </Objects>
  95. <Bind>
  96. <BindItem id="item0" compid="grp_sea.ipt_fromdd" propid="value" datasetid="ds_send" columnid="srchfromdd"/>
  97. <BindItem id="item1" compid="grp_sea.ipt_todd" propid="value" datasetid="ds_send" columnid="srchtodd"/>
  98. </Bind>
  99. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  100. * System Name :
  101. * Job Name :
  102. * Creator :
  103. * Make Date : 2015-11-13
  104. * Description :
  105. *---------------------------------------------------------------------------------------
  106. * Modify Date Modifier Modify Description
  107. *---------------------------------------------------------------------------------------
  108. * 2015-11-13 Live Converter TF->XP
  109. *
  110. *---------------------------------------------------------------------------------------
  111. ****************************************************************************************/
  112. //=======================================================================================
  113. // Lib Include
  114. //---------------------------------------------------------------------------------------
  115. include 'com_commonxp::comm_main.xjs';
  116. var arErrorCode = new HashArray();
  117. //=======================================================================================
  118. // Local methods
  119. //---------------------------------------------------------------------------------------
  120. /**
  121. * MaskEdit 에서 입력한 데이터가 format 에 맞는 형식인지 검사 한다
  122. * ontextchange 이벤트에서만 사용 할 것
  123. * @param {[type]} obj:MaskEdit [description]
  124. * @param {[type]} e:TextChangeEventInfo [description]
  125. * @param {[type]} format [description]
  126. * @return {[type]} [description]
  127. */
  128. function checkValid(obj: MaskEdit, e: TextChangeEventInfo, format) {
  129. var dummyDay = '20170101120000';
  130. var postValue = utlf_trim(String(e.posttext).replace(':', '').replace('_', '').replace('-', '').replace(' ', ''));
  131. postValue = (postValue.length == dummyDay.length) ? postValue : postValue + dummyDay.substr(postValue.length, dummyDay.length);
  132. if (!utlf_isValidDateTime(postValue, format)) {
  133. return false;
  134. }
  135. return true;
  136. }
  137. /**
  138. * 화면 초기화
  139. * @return {[type]} [description]
  140. */
  141. function fGetScreenInit() {
  142. ds_send.setColumn(0, "srchfromdd", utlf_getCurrentDate());
  143. ds_send.setColumn(0, "srchtodd", utlf_getCurrentDate());
  144. ds_main_grafttypecdlist.clearData();
  145. // Graft Tsdype List
  146. ds_init_combogtcdlst.clearData();
  147. ds_send.setColumn(0, "srchuseyn", "Y");
  148. dsf_createDsRow('ds_req', [
  149. { col: 'srchgrafttypecd', type: 'string', size: 256, val: '' },
  150. { col: 'srchgrafttypenm', type: 'string', size: 256, val: '' },
  151. { col: 'srchuseyn', type: 'string', size: 256, val: '' }
  152. ], false);
  153. ds_req.copyRow(0, ds_send, 0);
  154. var oParam = {};
  155. oParam.id = "TRAVB00301";
  156. oParam.service = "tissuebankbaseapp.TissueBankType";
  157. oParam.method = "reqGetGtCdList";
  158. oParam.inds = "req=ds_req";
  159. oParam.outds = "ds_init_combogtcdlst=item";
  160. oParam.async = false;
  161. tranf_submit(oParam);
  162. var idx = ds_init_combogtcdlst.addRow();
  163. ds_init_combogtcdlst.setColumn(idx, 'grafttypecd', '총계');
  164. ds_init_combogtcdlst.setColumn(idx, 'grafttypenm', '총계');
  165. }
  166. /**
  167. * submit 후 호출 될 공통 콜백
  168. * @param {[type]} sSvcId [description]
  169. * @param {[type]} nErrorCode [description]
  170. * @param {[type]} sErrorMsg [description]
  171. * @return {Function} [description]
  172. */
  173. function callback(sSvcId, nErrorCode, sErrorMsg){
  174. arErrorCode.push(sSvcId, nErrorCode);
  175. }
  176. //=======================================================================================
  177. // Events
  178. //---------------------------------------------------------------------------------------
  179. /**
  180. * onload 이벤트 발생 시 호출
  181. * @param {[type]} obj:Form [description]
  182. * @param {[type]} e:LoadEventInfo [description]
  183. */
  184. function SMAVT01200_onload(obj: Form, e: LoadEventInfo) {
  185. frmf_initForm(obj);
  186. grdf_setGridSort(dtg_grafttypecdlist);
  187. fGetScreenInit();
  188. }
  189. /**
  190. * 검색 버튼 클릭 이벤트
  191. * @param {[type]} obj: Button [description]
  192. * @param {[type]} e: ClickEventInfo [description]
  193. * @return {[type]} [description]
  194. */
  195. function grp_sea_btn_sea_onclick(obj: Button, e: ClickEventInfo) {
  196. if (utlf_transNullToEmpty(ds_send.getColumn(0, "srchfromdd")) == "") {
  197. sysf_messageBox("조회기간", "E013", "입력 후 다시 조회하세요.");
  198. return;
  199. }
  200. if (utlf_transNullToEmpty(ds_send.getColumn(0, "srchtodd")) == "") {
  201. sysf_messageBox("조회기간", "E013", "입력 후 다시 조회하세요.");
  202. return;
  203. }
  204. dsf_createDsRow('ds_req', [
  205. { col: 'srchfromdd', type: 'string', size: 256, val: '' },
  206. { col: 'srchtodd', type: 'string', size: 256, val: '' }
  207. ], false);
  208. ds_req.copyRow(0, ds_send, 0);
  209. ds_main_grafttypecdlist.clearData();
  210. var oParam = {};
  211. oParam.id = "TRAVT01200";
  212. oParam.service = "tissuebankapp.TissueBankProcess";
  213. oParam.method = "reqGetStatistics020";
  214. oParam.inds = "req=ds_req";
  215. oParam.outds = "ds_main_grafttypecdlist=item";
  216. oParam.async = false;
  217. tranf_submit(oParam);
  218. }
  219. /**
  220. * 엑셀 저장 버튼 클릭 이벤트
  221. * @param {[type]} obj: Button [description]
  222. * @param {[type]} e: ClickEventInfo [description]
  223. * @return {[type]} [description]
  224. */
  225. function btn_excsave_onclick(obj: Button, e: ClickEventInfo) {
  226. grdf_exportExcel(dtg_grafttypecdlist, "excel", "sheet", true, "" , 'user' , true);
  227. }
  228. ]]></Script>
  229. </Form>
  230. </FDL>