SMAVT01700_방사선조사분류.xfdl 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMAVT01700" position="absolute 0 0 1256 805" titletext="조직은행 방사선조사 분류" onload="SMAVT01700_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption6" text="조직은행 방사선조사 분류" class="tit_1" position="absolute 0 0 200 25"/>
  8. <Static id="caption1" text="조직은행 방사선조사 분류 리스트" class="tit_2" position="absolute 5 68 236 84"/>
  9. <Shape id="line1" linetype="horizontal" class="line_1" position="absolute 0 87 1194 93" style="strokepen:3 solid #33bbbbff;"/>
  10. <Grid id="dtg_graftbatchlist" taborder="2" binddataset="ds_main_graftbatchlist" useinputpanel="false" position="absolute 0 91 1194 755">
  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="3" 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"/>
  48. <Static id="caption5" text="~" class="search_no_b" position="absolute 202 9 214 26"/>
  49. <Shape id="line13" linetype="vertical" class="line_4" position="absolute 1104 7 1110 29"/>
  50. <Calendar id="ipt_fromdd" taborder="5" class="input_essential" position="absolute 96 8 196 27" autoselect="true" autoskip="true" dateformat="yyyy-MM-dd" value="null"/>
  51. <Calendar id="ipt_todd" taborder="6" class="input_essential" position="absolute 220 8 320 27" autoselect="true" autoskip="true" dateformat="yyyy-MM-dd"/>
  52. <Button id="btn_sea" taborder="7" text="조회" class="btn1" position="absolute 1123 7 1179 29" onclick="grp_sea_btn_sea_onclick"/>
  53. <Radio id="rad_srchflag" taborder="8" columncount="-1" rowcount="-1" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 345 8 540 28" style="textpadding:0 3 0 3;">
  54. <Dataset id="innerdataset">
  55. <ColumnInfo>
  56. <Column id="codecolumn"/>
  57. <Column id="datacolumn"/>
  58. </ColumnInfo>
  59. <Rows>
  60. <Row>
  61. <Col id="codecolumn">1</Col>
  62. <Col id="datacolumn">생산일자</Col>
  63. </Row>
  64. <Row>
  65. <Col id="codecolumn">2</Col>
  66. <Col id="datacolumn">방사선조사일자</Col>
  67. </Row>
  68. </Rows>
  69. </Dataset>
  70. </Radio>
  71. </Layout>
  72. </Layouts>
  73. </Div>
  74. <Button id="btn_excsave" taborder="4" text="엑셀저장" class="btn2" position="absolute 1129 66 1193 85" onclick="btn_excsave_onclick"/>
  75. <Button id="btn_prt" taborder="5" text="출력" class="btn6" visible="false" position="absolute 0 759 56 781"/>
  76. </Layout>
  77. </Layouts>
  78. <Objects>
  79. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  80. <ColumnInfo>
  81. <Column id="srchfromdd" type="STRING" size="256"/>
  82. <Column id="srchtodd" type="STRING" size="256"/>
  83. <Column id="srchuseyn" type="STRING" size="256"/>
  84. <Column id="srchgrafttypecd" type="STRING" size="256"/>
  85. <Column id="srchgrafttypenm" type="STRING" size="256"/>
  86. <Column id="srchflag" type="STRING" size="256"/>
  87. </ColumnInfo>
  88. <Rows>
  89. <Row>
  90. <Col id="srchfromdd"/>
  91. <Col id="srchtodd"/>
  92. <Col id="srchuseyn"/>
  93. <Col id="srchgrafttypecd"/>
  94. <Col id="srchgrafttypenm"/>
  95. <Col id="srchflag"/>
  96. </Row>
  97. </Rows>
  98. </Dataset>
  99. <Dataset id="ds_main_graftbatchlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  100. <Dataset id="ds_init_combogtcdlst" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  101. </Objects>
  102. <Bind>
  103. <BindItem id="item0" compid="grp_sea.ipt_fromdd" propid="value" datasetid="ds_send" columnid="srchfromdd"/>
  104. <BindItem id="item1" compid="grp_sea.ipt_todd" propid="value" datasetid="ds_send" columnid="srchtodd"/>
  105. <BindItem id="item2" compid="grp_sea.rad_srchflag" propid="value" datasetid="ds_send" columnid="srchflag"/>
  106. </Bind>
  107. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  108. * System Name :
  109. * Job Name :
  110. * Creator :
  111. * Make Date : 2015-11-13
  112. * Description :
  113. *---------------------------------------------------------------------------------------
  114. * Modify Date Modifier Modify Description
  115. *---------------------------------------------------------------------------------------
  116. * 2015-11-13 Live Converter TF->XP
  117. *
  118. *---------------------------------------------------------------------------------------
  119. ****************************************************************************************/
  120. //=======================================================================================
  121. // Lib Include
  122. //---------------------------------------------------------------------------------------
  123. include 'com_commonxp::comm_main.xjs';
  124. var arErrorCode = new HashArray();
  125. //=======================================================================================
  126. // Local methods
  127. //---------------------------------------------------------------------------------------
  128. /**
  129. * 화면 초기화
  130. * @return {[type]} [description]
  131. */
  132. function fGetScreenInit() {
  133. ds_send.setColumn(0, "srchfromdd", utlf_getCurrentDate());
  134. ds_send.setColumn(0, "srchtodd", utlf_getCurrentDate());
  135. ds_main_graftbatchlist.clearData();
  136. // Graft Tsdype List
  137. ds_init_combogtcdlst.clearData();
  138. ds_send.setColumn(0, "srchuseyn", "Y");
  139. dsf_createDsRow('ds_req', [
  140. { col: 'srchgrafttypecd', type: 'string', size: 256, val: '' },
  141. { col: 'srchgrafttypenm', type: 'string', size: 256, val: '' },
  142. { col: 'srchuseyn', type: 'string', size: 256, val: '' }
  143. ], false);
  144. ds_req.copyRow(0, ds_send, 0);
  145. var oParam = {};
  146. oParam.id = "TRAVB00301";
  147. oParam.service = "tissuebankbaseapp.TissueBankType";
  148. oParam.method = "reqGetGtCdList";
  149. oParam.inds = "req=ds_req";
  150. oParam.outds = "ds_init_combogtcdlst=item";
  151. oParam.async = false;
  152. tranf_submit(oParam);
  153. ds_send.setColumn(0, 'srchflag', '1');
  154. var idx = ds_init_combogtcdlst.addRow();
  155. ds_init_combogtcdlst.setColumn(idx, 'grafttypecd', '총계');
  156. ds_init_combogtcdlst.setColumn(idx, 'grafttypenm', '총계');
  157. }
  158. /**
  159. * submit 후 호출 될 공통 콜백
  160. * @param {[type]} sSvcId [description]
  161. * @param {[type]} nErrorCode [description]
  162. * @param {[type]} sErrorMsg [description]
  163. * @return {Function} [description]
  164. */
  165. function callback(sSvcId, nErrorCode, sErrorMsg){
  166. arErrorCode.push(sSvcId, nErrorCode);
  167. }
  168. //=======================================================================================
  169. // Events
  170. //---------------------------------------------------------------------------------------
  171. /**
  172. * onload 이벤트 발생 시 호출
  173. * @param {[type]} obj:Form [description]
  174. * @param {[type]} e:LoadEventInfo [description]
  175. */
  176. function SMAVT01700_onload(obj: Form, e: LoadEventInfo) {
  177. frmf_initForm(obj);
  178. grdf_setGridSort(dtg_graftbatchlist);
  179. fGetScreenInit();
  180. }
  181. /**
  182. * 조회 버튼 클릭 이벤트
  183. * @param {[type]} obj: Button [description]
  184. * @param {[type]} e: ClickEventInfo [description]
  185. * @return {[type]} [description]
  186. */
  187. function grp_sea_btn_sea_onclick(obj: Button, e: ClickEventInfo) {
  188. if (utlf_transNullToEmpty(ds_send.getColumn(0, "srchfromdd")) == "") {
  189. sysf_messageBox("조회기간", "E013", "입력 후 다시 조회하세요.");
  190. return;
  191. }
  192. if (utlf_transNullToEmpty(ds_send.getColumn(0, "srchtodd")) == "") {
  193. sysf_messageBox("조회기간", "E013", "입력 후 다시 조회하세요.");
  194. return;
  195. }
  196. dsf_createDsRow('ds_req', [
  197. { col: 'srchfromdd', type: 'string', size: 256, val: '' },
  198. { col: 'srchtodd', type: 'string', size: 256, val: '' },
  199. { col: 'srchflag', type: 'string', size: 256, val: '' }
  200. ], false);
  201. ds_req.copyRow(0, ds_send, 0);
  202. ds_main_graftbatchlist.clearData();
  203. var oParam = {};
  204. oParam.id = "TRAVT01700";
  205. oParam.service = "tissuebankapp.TissueBankProcess";
  206. oParam.method = "reqGetStatistics070";
  207. oParam.inds = "req=ds_req";
  208. oParam.outds = "ds_main_graftbatchlist=item";
  209. oParam.async = false;
  210. tranf_submit(oParam);
  211. }
  212. /**
  213. * 엑셀저장 버튼 클릭 이벤트
  214. * @param {[type]} obj: Button [description]
  215. * @param {[type]} e: ClickEventInfo [description]
  216. * @return {[type]} [description]
  217. */
  218. function btn_excsave_onclick(obj: Button, e: ClickEventInfo) {
  219. grdf_exportExcel(dtg_graftbatchlist, "excel", "sheet", true, "", 'user', true);
  220. }
  221. ]]></Script>
  222. </Form>
  223. </FDL>