SMABS10900_조혈모세포출고현황통계.xfdl 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMABS10900" position="absolute 0 0 1196 763" titletext="조혈모세포 출고 현황" onload="SMABS10900_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 0 51 1194 762" id="grp_biz" scrollbars="autoboth" anchor="all">
  8. <Layouts>
  9. <Layout>
  10. <Static text="조혈모세포 출고 현황" position="absolute 0 73 210 90" id="caption1" class="tit_2" anchor="default"/>
  11. <Shape position="absolute 0 89 1194 95" id="line1" class="line_10" anchor="left top right"/>
  12. <Button position="absolute 1114 67 1194 89" id="button2" class="btn7" text="엑셀저장" anchor="top right" onclick="grp_biz_button2_onclick"/>
  13. <Div position="absolute 0 0 1194 60" align="align:center top;" id="grp_sea" class="div_SA2" anchor="left top right">
  14. <Layouts>
  15. <Layout>
  16. <Static text="기간(출고일) :" position="absolute 15 9 127 26" id="caption4" class="search_name" anchor="default"/>
  17. <Static text="~" position="absolute 241 10 253 27" id="caption7" class="search_no_b" anchor="default"/>
  18. <Button position="absolute 1123 20 1179 42" id="button3" class="btn1" text="조회" anchor="top right" onclick="grp_biz_grp_sea_button3_onclick"/>
  19. <Shape position="absolute 1104 12 1110 50" linetype="vertical" id="line2" class="line_4" anchor="top right"/>
  20. <Calendar position="absolute 130 8 238 27" id="input2" class="input_essential" anchor="default"/>
  21. <Calendar position="absolute 256 8 364 27" id="input3" class="input_essential" anchor="default"/>
  22. <Static text="출고장소 :" position="absolute 468 9 554 26" id="caption8" class="search_name" anchor="default"/>
  23. <Combo position="absolute 557 8 687 27" id="combo2" class="combo_search" innerdataset="@ds_init_cmbinfo_deliveflag_A0157" datacolumn="cdnm" codecolumn="cdid" anchor="default"/>
  24. <Static text="비교(츨고일) :" position="absolute 15 35 127 52" id="caption9" class="search_name" anchor="default"/>
  25. <Calendar position="absolute 130 34 238 53" id="input1" class="input_essential" anchor="default"/>
  26. <Static text="~" position="absolute 241 36 253 53" id="caption2" class="search_no_b" anchor="default"/>
  27. <Calendar position="absolute 256 34 364 53" id="input4" class="input_essential" anchor="default"/>
  28. </Layout>
  29. </Layouts>
  30. </Div>
  31. <Grid position="absolute 0 94 1194 710" align="align:center middle;" id="grd_cellinoutlist" binddataset="ds_main_cellinout_cellinoutlist" anchor="all" cellsizingtype="col" selecttype="multirow">
  32. <Formats>
  33. <Format id="default">
  34. <Columns>
  35. <Column size="25" band="left"/>
  36. <Column size="88"/>
  37. <Column size="60"/>
  38. <Column size="60"/>
  39. <Column size="60"/>
  40. <Column size="60"/>
  41. <Column size="60"/>
  42. <Column size="60"/>
  43. <Column size="60"/>
  44. <Column size="60"/>
  45. <Column size="60"/>
  46. <Column size="60"/>
  47. <Column size="60"/>
  48. <Column size="60"/>
  49. <Column size="63"/>
  50. <Column size="100"/>
  51. <Column size="100"/>
  52. </Columns>
  53. <Rows>
  54. <Row size="24" band="head"/>
  55. <Row size="24"/>
  56. </Rows>
  57. <Band id="head">
  58. <Cell/>
  59. <Cell col="1" text="구분"/>
  60. <Cell col="2" text="1월"/>
  61. <Cell col="3" text="2월"/>
  62. <Cell col="4" text="3월"/>
  63. <Cell col="5" text="4월"/>
  64. <Cell col="6" text="5월"/>
  65. <Cell col="7" text="6월"/>
  66. <Cell col="8" text="7월"/>
  67. <Cell col="9" text="8월"/>
  68. <Cell col="10" text="9월"/>
  69. <Cell col="11" text="10월"/>
  70. <Cell col="12" text="11월"/>
  71. <Cell col="13" text="12월"/>
  72. <Cell col="14" text="Total"/>
  73. <Cell col="15" text="전년도"/>
  74. <Cell col="16" text="증감율"/>
  75. </Band>
  76. <Band id="body">
  77. <Cell celltype="head" text="expr:currow+1"/>
  78. <Cell col="1" displaytype="text" edittype="none" text="bind:codenm"/>
  79. <Cell col="2" edittype="none" text="bind:monthcnt01"/>
  80. <Cell col="3" text="bind:monthcnt02"/>
  81. <Cell col="4" text="bind:monthcnt03"/>
  82. <Cell col="5" text="bind:monthcnt04"/>
  83. <Cell col="6" text="bind:monthcnt05"/>
  84. <Cell col="7" text="bind:monthcnt06"/>
  85. <Cell col="8" text="bind:monthcnt07"/>
  86. <Cell col="9" text="bind:monthcnt08"/>
  87. <Cell col="10" text="bind:monthcnt09"/>
  88. <Cell col="11" text="bind:monthcnt10"/>
  89. <Cell col="12" text="bind:monthcnt11"/>
  90. <Cell col="13" text="bind:monthcnt12"/>
  91. <Cell col="14" text="bind:monthcnttotal"/>
  92. <Cell col="15" text="bind:beforeyearcnt"/>
  93. <Cell col="16" text="bind:cntaddper"/>
  94. </Band>
  95. </Format>
  96. </Formats>
  97. </Grid>
  98. </Layout>
  99. </Layouts>
  100. </Div>
  101. <Div position="absolute 0 25 1195 53" id="grp_btn" anchor="left top right">
  102. <Layouts>
  103. <Layout>
  104. <Button position="absolute 0 1 56 23" id="btn_prt" class="btn6" text="출력" anchor="default" visible="false"/>
  105. <Shape id="line9" class="line_6" position="absolute 0 22 1195 28" anchor="left top right"/>
  106. </Layout>
  107. </Layouts>
  108. </Div>
  109. <Static id="caption6" text="조혈모세포 출고 현황" class="tit_1" position="absolute 0 0 210 25"/>
  110. </Layout>
  111. </Layouts>
  112. <Objects>
  113. <Dataset id="ds_init_cmbinfo_deliveflag_A0157" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  114. <ColumnInfo>
  115. <Column id="cdid" type="STRING" size="256"/>
  116. <Column id="cdnm" type="STRING" size="256"/>
  117. </ColumnInfo>
  118. <Rows>
  119. <Row>
  120. <Col id="cdid"/>
  121. <Col id="cdnm"/>
  122. </Row>
  123. </Rows>
  124. </Dataset>
  125. <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  126. <ColumnInfo>
  127. <Column id="hidden" type="STRING" size="256"/>
  128. </ColumnInfo>
  129. </Dataset>
  130. <Dataset id="ds_send_req" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  131. <ColumnInfo>
  132. <Column id="delivefromdd" type="STRING" size="256"/>
  133. <Column id="delivetodd" type="STRING" size="256"/>
  134. <Column id="delivefromdd2" type="STRING" size="256"/>
  135. <Column id="delivetodd2" type="STRING" size="256"/>
  136. <Column id="deliveflag" type="STRING" size="256"/>
  137. <Column id="searchflag" type="STRING" size="256"/>
  138. </ColumnInfo>
  139. <Rows>
  140. <Row>
  141. <Col id="delivefromdd"/>
  142. <Col id="delivetodd"/>
  143. <Col id="delivefromdd2"/>
  144. <Col id="delivetodd2"/>
  145. <Col id="deliveflag"/>
  146. <Col id="searchflag">O</Col>
  147. </Row>
  148. </Rows>
  149. </Dataset>
  150. <Dataset id="ds_main_cellinout_cellinoutlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  151. <ColumnInfo>
  152. <Column id="codenm" type="STRING" size="256"/>
  153. <Column id="monthcnt01" type="STRING" size="256"/>
  154. <Column id="monthcnt02" type="STRING" size="256"/>
  155. <Column id="monthcnt03" type="STRING" size="256"/>
  156. <Column id="monthcnt04" type="STRING" size="256"/>
  157. <Column id="monthcnt05" type="STRING" size="256"/>
  158. <Column id="monthcnt06" type="STRING" size="256"/>
  159. <Column id="monthcnt07" type="STRING" size="256"/>
  160. <Column id="monthcnt08" type="STRING" size="256"/>
  161. <Column id="monthcnt09" type="STRING" size="256"/>
  162. <Column id="monthcnt10" type="STRING" size="256"/>
  163. <Column id="monthcnt11" type="STRING" size="256"/>
  164. <Column id="monthcnt12" type="STRING" size="256"/>
  165. <Column id="monthcnttotal" type="STRING" size="256"/>
  166. <Column id="beforeyearcnt" type="STRING" size="256"/>
  167. <Column id="cntaddper" type="STRING" size="256"/>
  168. <Column id="bonebank" type="STRING" size="256"/>
  169. </ColumnInfo>
  170. <Rows>
  171. <Row>
  172. <Col id="codenm"/>
  173. <Col id="monthcnt01"/>
  174. <Col id="monthcnt02"/>
  175. <Col id="monthcnt03"/>
  176. <Col id="monthcnt04"/>
  177. <Col id="monthcnt05"/>
  178. <Col id="monthcnt06"/>
  179. <Col id="monthcnt07"/>
  180. <Col id="monthcnt08"/>
  181. <Col id="monthcnt09"/>
  182. <Col id="monthcnt10"/>
  183. <Col id="monthcnt11"/>
  184. <Col id="monthcnt12"/>
  185. <Col id="monthcnttotal"/>
  186. <Col id="beforeyearcnt"/>
  187. <Col id="cntaddper"/>
  188. <Col id="bonebank"/>
  189. </Row>
  190. </Rows>
  191. </Dataset>
  192. </Objects>
  193. <Bind>
  194. <BindItem id="item0" compid="grp_biz.grp_sea.input2" propid="value" datasetid="ds_send_req" columnid="delivefromdd"/>
  195. <BindItem id="item1" compid="grp_biz.grp_sea.input3" propid="value" datasetid="ds_send_req" columnid="delivetodd"/>
  196. <BindItem id="item2" compid="grp_biz.grp_sea.combo2" propid="value" datasetid="ds_send_req" columnid="deliveflag"/>
  197. <BindItem id="item3" compid="grp_biz.grp_sea.input1" propid="value" datasetid="ds_send_req" columnid="delivefromdd2"/>
  198. <BindItem id="item4" compid="grp_biz.grp_sea.input4" propid="value" datasetid="ds_send_req" columnid="delivetodd2"/>
  199. </Bind>
  200. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  201. * System Name :
  202. * Job Name :
  203. * Creator :
  204. * Make Date : 2017-06-19
  205. * Description :
  206. *---------------------------------------------------------------------------------------
  207. * Modify Date Modifier Modify Description
  208. *---------------------------------------------------------------------------------------
  209. * 2017-06-19 Live Converter TF->XP
  210. *
  211. *---------------------------------------------------------------------------------------
  212. ****************************************************************************************/
  213. //=======================================================================================
  214. // Lib Include
  215. //---------------------------------------------------------------------------------------
  216. include "com_commonxp::comm_main.xjs";
  217. //=======================================================================================
  218. // Global Form Variable
  219. //---------------------------------------------------------------------------------------
  220. var arErrorCode = new HashArray();
  221. //=======================================================================================
  222. // Function
  223. //---------------------------------------------------------------------------------------
  224. /****************************************************************************************
  225. * Argument : N/A
  226. * Description : 조회
  227. ****************************************************************************************/
  228. function fGetCellInOutInfo() {
  229. dsf_setFixVal(ds_send_req, "searchflag:O");
  230. var oParam = {};
  231. oParam.id = "TRABS10901";
  232. oParam.service = "hsctstemcellapp.StemCellDelive";
  233. oParam.method = "reqGetCellInOutStats";
  234. oParam.inds = "req=ds_send_req";
  235. oParam.outds = "ds_main_cellinout_cellinoutlist=cellinoutlist";
  236. oParam.async = false;
  237. oParam.callback = "cf_TRABS10901";
  238. tranf_submit(oParam);
  239. // 전년도 대비 증감율을 구한다.
  240. for (var i = 0; i < ds_main_cellinout_cellinoutlist.rowcount; i++) {
  241. var iMonthCntTotal = ds_main_cellinout_cellinoutlist.getColumn(i, "monthcnttotal");
  242. var iBeforeYearCnt = ds_main_cellinout_cellinoutlist.getColumn(i, "beforeyearcnt");
  243. if ( utlf_isNull(iMonthCntTotal) || utlf_isNull(iBeforeYearCnt) || iBeforeYearCnt == 0 ) {
  244. ds_main_cellinout_cellinoutlist.setColumn( i , "cntaddper", "");
  245. } else {
  246. var dCntAddPer = ((parseFloat(iMonthCntTotal) - parseFloat(iBeforeYearCnt)) / parseFloat(iBeforeYearCnt)) * 100;
  247. ds_main_cellinout_cellinoutlist.setColumn( i , "cntaddper", (Math.round(dCntAddPer * 100) / 100));
  248. }
  249. }
  250. }
  251. function cf_TRABS10901(sSvcId, nErrorCode, sErrorMsg) {
  252. if(nErrorCode < 0) return;
  253. dsf_setTypeFormat(ds_main_cellinout_cellinoutlist, "monthcnt01:INT^monthcnt02:INT^monthcnt03:INT^monthcnt04:INT^monthcnt05:INT^monthcnt06:INT^monthcnt07:INT^monthcnt08:INT^monthcnt09:INT^monthcnt10:INT^monthcnt11:INT^monthcnt12:INT^monthcnttotal:INT^beforeyearcnt:INT^cntaddper:FLOAT");
  254. }
  255. //=======================================================================================
  256. // Event
  257. //---------------------------------------------------------------------------------------
  258. /****************************************************************************************
  259. * Components : Form
  260. * Description : 화면 처음 초기화시 폼초기화
  261. ****************************************************************************************/
  262. function SMABS10900_onload(obj:Form, e:LoadEventInfo) {
  263. frmf_initForm(obj);
  264. //grdf_initGrid(grd_XXX);
  265. //grdf_setGridSort(grd_XXX);
  266. //grdf_setRowTypeIcon(grd_XXX, 0_컬럼위치값);
  267. var arrParam = [{dsNm: "ds_init_cmbinfo_deliveflag_A0157", cdGrpId: "A0157"}
  268. ];
  269. appf_getCodeList(arrParam);
  270. var scurrentdd = utlf_getCurrentDate();
  271. ds_send_req.setColumn( 0, "delivefromdd", scurrentdd.toDate().getAddDate(-30,"D").getDateFormat("YYYYMMDD"));
  272. ds_send_req.setColumn( 0, "delivetodd", scurrentdd.toDate().getAddDate(30,"D").getDateFormat("YYYYMMDD"));
  273. ds_send_req.setColumn( 0, "delivefromdd2", scurrentdd.toDate().getAddDate(-30,"D").getDateFormat("YYYYMMDD"));
  274. ds_send_req.setColumn( 0, "delivetodd2", scurrentdd.toDate().getAddDate(30,"D").getDateFormat("YYYYMMDD"));
  275. }
  276. /****************************************************************************************
  277. * Components : Button
  278. * Description : 엑셀저장
  279. ****************************************************************************************/
  280. function grp_biz_button2_onclick(obj:Button, e:ClickEventInfo) {
  281. if( ds_main_cellinout_cellinoutlist.rowcount > 0 ){
  282. grdf_exportExcel(grp_biz.grd_cellinoutlist, "조혈모세포츨고현황", "조혈모세포츨고현황", false, "", "user", false);
  283. } else {
  284. sysf_messageBox("조회된 데이터가 ", "I004");
  285. }
  286. }
  287. /****************************************************************************************
  288. * Components : Button
  289. * Description : 조회
  290. ****************************************************************************************/
  291. function grp_biz_grp_sea_button3_onclick(obj:Button, e:ClickEventInfo) {
  292. fGetCellInOutInfo()
  293. }
  294. ]]></Script>
  295. </Form>
  296. </FDL>