SMLBP02600_혈액출고BISS전송.xfdl 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMLBP02600" position="absolute 0 0 1196 771" titletext="혈액출고조회(BISS)" oninit="SMLBP02600_oninit" onload="SMLBP02600_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 0 0 1195 13" id="group1"/>
  8. <Button id="button5" taborder="1" text="초기화" class="btn4" position="absolute 1127 27 1195 49" anchor="top right"/>
  9. <Shape id="line15" linetype="horizontal" class="line_6" position="absolute 0 53 1194 59" style="strokepen:3 solid #9ebed4ff;" anchor="left top right"/>
  10. <Button id="button3" taborder="2" text="저장" class="btn4" visible="false" position="absolute 1068 27 1124 49" anchor="top right"/>
  11. <Static id="caption6" text="혈액출고 조회(BISS)" class="tit_1" position="absolute 0 0 199 25"/>
  12. <Div id="group2" taborder="3" position="absolute 0 57 1195 92" class="div_SA" anchor="left top right">
  13. <Layouts>
  14. <Layout>
  15. <Static id="caption2" text="출고일자 :" class="search_name" position="absolute 16 9 110 26"/>
  16. <Button id="button1" taborder="1" text="조회" class="btn1" position="absolute 1123 7 1179 29" onclick="group2_button1_onclick" anchor="top right"/>
  17. <Shape id="line13" linetype="vertical" class="line_4" position="absolute 1105 7 1111 29" anchor="top right"/>
  18. <Calendar id="input26" taborder="2" class="input_s_essential" position="absolute 110 8 220 27"/>
  19. <Calendar id="input1" taborder="3" class="input_s_essential" position="absolute 245 8 355 27"/>
  20. <Static id="caption111" text="~" class="caption1" position="absolute 225 8 245 27"/>
  21. </Layout>
  22. </Layouts>
  23. </Div>
  24. <Static id="caption1" text="혈액출고 조회(BISS)" class="tit_2" position="absolute 1 99 149 116"/>
  25. <Shape id="line1" class="line_1" position="absolute 0 118 1194 124" style="strokepen:3 solid #33bbbbff;" anchor="left top right"/>
  26. <Button id="btn_excel" taborder="4" text="CSV저장" class="btn2" position="absolute 1130 96 1194 115" onclick="btn_excel_onclick" anchor="top right"/>
  27. <Button id="button2" taborder="5" text="Excel저장" class="btn7" position="absolute 1045 96 1128 115" onclick="button2_onclick" anchor="top right"/>
  28. <Grid id="grd_rsltbiss" taborder="6" binddataset="ds_grd_rsltbiss" useinputpanel="false" position="absolute 0 122 1194 768" anchor="all">
  29. <Formats>
  30. <Format id="default">
  31. <Columns>
  32. <Column size="40"/>
  33. <Column size="80"/>
  34. <Column size="80"/>
  35. <Column size="80"/>
  36. <Column size="70"/>
  37. <Column size="70"/>
  38. <Column size="70"/>
  39. <Column size="100"/>
  40. <Column size="70"/>
  41. <Column size="70"/>
  42. <Column size="90"/>
  43. <Column size="70"/>
  44. <Column size="80"/>
  45. <Column size="100"/>
  46. <Column size="80"/>
  47. </Columns>
  48. <Rows>
  49. <Row size="24" band="head"/>
  50. <Row size="24"/>
  51. </Rows>
  52. <Band id="head">
  53. <Cell text="No"/>
  54. <Cell col="1" text="출고구분코드"/>
  55. <Cell col="2" text="출고구분명"/>
  56. <Cell col="3" text="출고일자"/>
  57. <Cell col="4" text="출고시간"/>
  58. <Cell col="5" text="제제코드"/>
  59. <Cell col="6" text="제제명"/>
  60. <Cell col="7" text="혈액번호"/>
  61. <Cell col="8" text="혈액형코드"/>
  62. <Cell col="9" text="혈액형"/>
  63. <Cell col="10" text="헌혈일"/>
  64. <Cell col="11" text="헌혈시간"/>
  65. <Cell col="12" text="출고처코드"/>
  66. <Cell col="13" text="출고처명"/>
  67. <Cell col="14" text="비고"/>
  68. </Band>
  69. <Band id="body">
  70. <Cell text="bind:seq"/>
  71. <Cell col="1" text="bind:delivecd"/>
  72. <Cell col="2" text="bind:delivenm" mask="yyyy-mm-dd"/>
  73. <Cell col="3" displaytype="date" edittype="date" text="bind:delivedd" mask="yyyy-MM-dd"/>
  74. <Cell col="4" text="bind:delivetm" mask="hh:mm"/>
  75. <Cell col="5" text="bind:blodcd"/>
  76. <Cell col="6" text="bind:blodnm"/>
  77. <Cell col="7" text="bind:blodno"/>
  78. <Cell col="8" text="bind:abocd"/>
  79. <Cell col="9" text="bind:abo"/>
  80. <Cell col="10" displaytype="date" edittype="date" text="bind:bizdd" mask="yyyy-MM-dd"/>
  81. <Cell col="11" text="bind:biztm" mask="hh:mm"/>
  82. <Cell col="12" text="bind:hinstcd"/>
  83. <Cell col="13" text="bind:hinstnm"/>
  84. <Cell col="14" displaytype="text" edittype="text" text="bind:etc"/>
  85. </Band>
  86. </Format>
  87. </Formats>
  88. </Grid>
  89. </Layout>
  90. </Layouts>
  91. <Objects>
  92. <Dataset id="ds_grd_rsltbiss" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  93. <ColumnInfo>
  94. <Column id="seq" type="STRING"/>
  95. <Column id="delivecd" type="STRING"/>
  96. <Column id="delivenm" type="STRING"/>
  97. <Column id="delivedd" type="STRING"/>
  98. <Column id="delivetm" type="STRING"/>
  99. <Column id="blodcd" type="STRING"/>
  100. <Column id="blodnm" type="STRING"/>
  101. <Column id="blodno" type="STRING"/>
  102. <Column id="abocd" type="STRING"/>
  103. <Column id="abo" type="STRING"/>
  104. <Column id="bizdd" type="STRING"/>
  105. <Column id="biztm" type="STRING"/>
  106. <Column id="hinstcd" type="STRING"/>
  107. <Column id="hinstnm" type="STRING"/>
  108. <Column id="etc" type="STRING"/>
  109. </ColumnInfo>
  110. </Dataset>
  111. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  112. <ColumnInfo>
  113. <Column id="fromdd" type="STRING" size="256"/>
  114. <Column id="todd" type="STRING" size="256"/>
  115. </ColumnInfo>
  116. <Rows>
  117. <Row/>
  118. </Rows>
  119. </Dataset>
  120. </Objects>
  121. <Bind>
  122. <BindItem id="item0" compid="group2.input26" propid="value" datasetid="ds_send" columnid="fromdd"/>
  123. <BindItem id="item1" compid="group2.input1" propid="value" datasetid="ds_send" columnid="todd"/>
  124. </Bind>
  125. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  126. * System Name :
  127. * Job Name :
  128. * Creator :
  129. * Make Date : 2015-05-01
  130. * Description :
  131. *---------------------------------------------------------------------------------------
  132. * Modify Date Modifier Modify Description
  133. *---------------------------------------------------------------------------------------
  134. * 2015-05-01 Live Converter TF->XP
  135. *
  136. *---------------------------------------------------------------------------------------
  137. ****************************************************************************************/
  138. include "com_commonxp::comm_main.xjs";
  139. function SMLBP02600_oninit(obj:Form, e:InitEventInfo)
  140. {
  141. frmf_initForm(obj);
  142. }
  143. function SMLBP02600_onload(obj:Form, e:LoadEventInfo)
  144. {
  145. grdf_initGrid(grd_rsltbiss);
  146. fSetInit();
  147. }
  148. // 초기화
  149. function fSetInit()
  150. {
  151. var fromdate = utlf_getCurrentDate().toDate("YYYYMMDD").getAddDate(-7)
  152. var todate = utlf_getCurrentDate().toDate("YYYYMMDD").getAddDate(-1);
  153. //model.setValue("/root/send/fromdd" , fromdate.getDateFormat("YYYYMMDD"));
  154. //model.setValue("/root/send/todd" , todate.getDateFormat("YYYYMMDD"));x
  155. ds_send.setColumn(0, "fromdd", fromdate.getDateFormat("YYYYMMDD"));
  156. ds_send.setColumn(0, "todd", todate.getDateFormat("YYYYMMDD"));
  157. }
  158. //조회버튼
  159. function group2_button1_onclick(obj:Button, e:ClickEventInfo)
  160. {
  161. fGetDelive();
  162. }
  163. // 조회
  164. function fGetDelive()
  165. {
  166. //submit("TRLBP02601");
  167. var oParam = {};
  168. oParam.id = "TRLBP02601";
  169. oParam.service = "refprintmngtapp.BloodBankRefPrintMngt";
  170. oParam.method = "reqGetDeliveList";
  171. oParam.inds = "cond=ds_send";
  172. oParam.outds = "ds_grd_rsltbiss=delivelist";
  173. oParam.async = false;
  174. //oParam.callback = "cf_TRLBP02601";
  175. tranf_submit(oParam);
  176. ds_grd_rsltbiss.deleteRow(0);
  177. }
  178. //엑셀버튼
  179. function button2_onclick(obj:Button, e:ClickEventInfo)
  180. {
  181. fExeExcel(grd_rsltbiss);
  182. }
  183. //엑셀저장
  184. function fExeExcel(pGridId)
  185. {
  186. var dd = utlf_getCurrentDate();
  187. grdf_exportExcel(pGridId, "출고BISS파일전송_"+dd, "see");
  188. }
  189. //CSV저장 버튼
  190. function btn_excel_onclick(obj:Button, e:ClickEventInfo)
  191. {
  192. fExeCSV(grd_rsltbiss);
  193. }
  194. //CSV저장
  195. function fExeCSV(pGridId)
  196. {
  197. var dd = utlf_getCurrentDate();
  198. grdf_exportExcel(pGridId, "출고BISS파일전송_"+dd, "see");
  199. }
  200. ]]></Script>
  201. </Form>
  202. </FDL>