SMABS10800_조혈모세포입고현황통계.xfdl 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMABS10800" position="absolute 0 0 1195 746" titletext="조혈모세포 입고 현황" onload="SMABS10800_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 0 51 1194 745" id="grp_biz" scrollbars="autoboth">
  8. <Layouts>
  9. <Layout>
  10. <Static text="조혈모세포 입고 현황" position="absolute 0 73 210 89" id="caption1" class="tit_2" anchor="default"/>
  11. <Shape position="absolute 0 89 1194 95" id="line1" class="line_10" anchor="default"/>
  12. <Button position="absolute 1114 67 1194 89" id="button2" class="btn7" text="엑셀저장" anchor="default" onclick="grp_biz_button2_onclick"/>
  13. <Div position="absolute 0 0 1194 60" align="align:center top;" id="grp_sea" anchor="default" class="div_SA2">
  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 19 1179 41" id="button3" class="btn1" text="조회" anchor="default" onclick="grp_biz_grp_sea_button3_onclick"/>
  19. <Shape position="absolute 1104 11 1110 49" linetype="vertical" id="line2" class="line_4" anchor="default"/>
  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 34 127 51" id="caption9" class="search_name" anchor="default"/>
  25. <Calendar position="absolute 130 33 238 52" 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 33 364 52" id="input4" class="input_essential" anchor="default"/>
  28. </Layout>
  29. </Layouts>
  30. </Div>
  31. <Grid position="absolute 0 94 1194 694" align="align:center middle;" id="grd_cellinoutlist" binddataset="ds_main_cellinout_cellinoutlist" anchor="default" autoenter="key" 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" displaytype="number" edittype="none" text="bind:monthcnt01"/>
  80. <Cell col="3" displaytype="number" text="bind:monthcnt02"/>
  81. <Cell col="4" displaytype="number" text="bind:monthcnt03"/>
  82. <Cell col="5" displaytype="number" text="bind:monthcnt04"/>
  83. <Cell col="6" displaytype="number" text="bind:monthcnt05"/>
  84. <Cell col="7" displaytype="number" text="bind:monthcnt06"/>
  85. <Cell col="8" displaytype="number" text="bind:monthcnt07"/>
  86. <Cell col="9" displaytype="number" text="bind:monthcnt08"/>
  87. <Cell col="10" displaytype="number" text="bind:monthcnt09"/>
  88. <Cell col="11" displaytype="number" text="bind:monthcnt10"/>
  89. <Cell col="12" displaytype="number" text="bind:monthcnt11"/>
  90. <Cell col="13" displaytype="number" text="bind:monthcnt12"/>
  91. <Cell col="14" displaytype="number" text="bind:monthcnttotal"/>
  92. <Cell col="15" displaytype="number" text="bind:beforeyearcnt"/>
  93. <Cell col="16" displaytype="number" 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">
  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 180 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="cwinfromdd" type="STRING" size="256"/>
  133. <Column id="cwintodd" type="STRING" size="256"/>
  134. <Column id="cwinfromdd2" type="STRING" size="256"/>
  135. <Column id="cwintodd2" 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="cwinfromdd"/>
  142. <Col id="cwintodd"/>
  143. <Col id="cwinfromdd2"/>
  144. <Col id="cwintodd2"/>
  145. <Col id="deliveflag"/>
  146. <Col id="searchflag">I</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="cwinfromdd"/>
  195. <BindItem id="item1" compid="grp_biz.grp_sea.input3" propid="value" datasetid="ds_send_req" columnid="cwintodd"/>
  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="cwinfromdd2"/>
  198. <BindItem id="item4" compid="grp_biz.grp_sea.input4" propid="value" datasetid="ds_send_req" columnid="cwintodd2"/>
  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. include "mis_miscommonxp::MIS.xjs";
  218. include "mis_miscommonxp::RSZ001.xjs";
  219. //=======================================================================================
  220. // Global Form Variable
  221. //---------------------------------------------------------------------------------------
  222. var arErrorCode = new HashArray();
  223. //=======================================================================================
  224. // Function
  225. //---------------------------------------------------------------------------------------
  226. /****************************************************************************************
  227. * Argument : N/A
  228. * Description :
  229. ****************************************************************************************/
  230. function fGetCellInOutInfo(){
  231. dsf_setFixVal(ds_send_req, "searchflag:I");
  232. var oParam = {};
  233. oParam.id = "TRABS10801";
  234. oParam.service = "hsctstemcellapp.StemCellDelive";
  235. oParam.method = "reqGetCellInOutStats";
  236. oParam.inds = "req=ds_send_req";
  237. oParam.outds = "ds_main_cellinout_cellinoutlist=cellinoutlist";
  238. oParam.async = false;
  239. oParam.callback = "cf_TRABS10801";
  240. tranf_submit(oParam);
  241. // 전년도 대비 증감율을 구한다.
  242. for (var i = 0; i < ds_main_cellinout_cellinoutlist.rowcount; i++) {
  243. var iMonthCntTotal = ds_main_cellinout_cellinoutlist.getColumn(i, "monthcnttotal");
  244. var iBeforeYearCnt = ds_main_cellinout_cellinoutlist.getColumn(i, "beforeyearcnt");
  245. if ( utlf_isNull(iMonthCntTotal) || utlf_isNull(iBeforeYearCnt) || iBeforeYearCnt == 0 ) {
  246. ds_main_cellinout_cellinoutlist.setColumn( i , "cntaddper", "");
  247. } else {
  248. var dCntAddPer = ((parseFloat(iMonthCntTotal) - parseFloat(iBeforeYearCnt)) / parseFloat(iBeforeYearCnt)) * 100;
  249. ds_main_cellinout_cellinoutlist.setColumn( i , "cntaddper", (Math.round(dCntAddPer * 100) / 100));
  250. }
  251. }
  252. }
  253. function cf_TRABS10801(sSvcId, nErrorCode, sErrorMsg) {
  254. if(nErrorCode < 0) return;
  255. 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");
  256. }
  257. //=======================================================================================
  258. // Event
  259. //---------------------------------------------------------------------------------------
  260. /****************************************************************************************
  261. * Components : Form
  262. * Description : 화면 처음 초기화시 폼초기화
  263. ****************************************************************************************/
  264. function SMABS10800_onload(obj:Form, e:LoadEventInfo) {
  265. frmf_initForm(obj);
  266. //grdf_initGrid(grd_XXX);
  267. //grdf_setGridSort(grd_XXX);
  268. //grdf_setRowTypeIcon(grd_XXX, 0_컬럼위치값);
  269. var arrParam = [{dsNm: "ds_init_cmbinfo_deliveflag_A0157", cdGrpId: "A0157"}
  270. ];
  271. appf_getCodeList(arrParam);
  272. var scurrentdd = utlf_getCurrentDate();
  273. ds_send_req.setColumn( 0, "cwinfromdd", scurrentdd.toDate().getAddDate(-30,"D").getDateFormat("YYYYMMDD"));
  274. ds_send_req.setColumn( 0, "cwintodd", scurrentdd.toDate().getAddDate(30,"D").getDateFormat("YYYYMMDD"));
  275. ds_send_req.setColumn( 0, "cwinfromdd2", scurrentdd.toDate().getAddDate(-30,"D").getDateFormat("YYYYMMDD"));
  276. ds_send_req.setColumn( 0, "cwintodd2", scurrentdd.toDate().getAddDate(30,"D").getDateFormat("YYYYMMDD"));
  277. }
  278. /****************************************************************************************
  279. * Components : Button
  280. * Description : 엑셀저장
  281. ****************************************************************************************/
  282. function grp_biz_button2_onclick(obj:Button, e:ClickEventInfo) {
  283. if( ds_main_cellinout_cellinoutlist.rowcount > 0 ){
  284. grdf_exportExcel(grp_biz.grd_cellinoutlist, "조혈모세포입고현황", "조혈모세포입고현황", false, "", "user", false);
  285. } else {
  286. sysf_messageBox("조회된 데이터가 ", "I004");
  287. }
  288. }
  289. /****************************************************************************************
  290. * Components : Button
  291. * Description : 조회
  292. ****************************************************************************************/
  293. function grp_biz_grp_sea_button3_onclick(obj:Button, e:ClickEventInfo) {
  294. fGetCellInOutInfo()
  295. }
  296. ]]></Script>
  297. </Form>
  298. </FDL>