SMAVT02101_수혜자리스트.xfdl 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMAVT02101" position="absolute 0 0 1256 805" titletext="조직은행 수혜자리스트" onload="SMAVT02101_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 66 215 82"/>
  9. <Shape id="line1" linetype="horizontal" class="line_1" position="absolute 0 84 1194 90" style="strokepen:3 solid #33bbbbff;"/>
  10. <Grid id="dtg_benflist" taborder="1" binddataset="ds_main_benflist" useinputpanel="false" position="absolute 0 88 1194 752">
  11. <Formats>
  12. <Format id="default">
  13. <Columns>
  14. <Column size="25"/>
  15. <Column size="80"/>
  16. <Column size="75"/>
  17. <Column size="40"/>
  18. <Column size="40"/>
  19. <Column size="210"/>
  20. <Column size="80"/>
  21. <Column size="100"/>
  22. <Column size="175"/>
  23. <Column size="175"/>
  24. <Column size="100"/>
  25. <Column size="55"/>
  26. </Columns>
  27. <Rows>
  28. <Row size="24" band="head"/>
  29. <Row size="24"/>
  30. </Rows>
  31. <Band id="head">
  32. <Cell/>
  33. <Cell col="1" text="이식날짜"/>
  34. <Cell col="2" text="GraftNo"/>
  35. <Cell col="3" text="Seq"/>
  36. <Cell col="4" text="No"/>
  37. <Cell col="5" text="조직명"/>
  38. <Cell col="6" text="이름"/>
  39. <Cell col="7" text="주민번호"/>
  40. <Cell col="8" text="수술명"/>
  41. <Cell col="9" text="진단명"/>
  42. <Cell col="10" text="병원"/>
  43. <Cell col="11" text="이식번호"/>
  44. </Band>
  45. <Band id="body">
  46. <Cell celltype="head" expr="expr:currow + 1"/>
  47. <Cell col="1" displaytype="date" text="bind:opdd" mask="yyyy-MM-dd" suppress="1" suppressalign="middle,over" calendardisplaynulltype="none" tooltiptype="bottom,right" tooltiptext="bind:opdd"/>
  48. <Cell col="2" displaytype="normal" edittype="none" text="bind:graftno" suppress="2" suppressalign="middle,over" tooltiptype="bottom,right" tooltiptext="bind:graftno"/>
  49. <Cell col="3" displaytype="normal" edittype="none" text="bind:partseq" suppress="3" suppressalign="middle,over" tooltiptype="bottom,right" tooltiptext="bind:partseq"/>
  50. <Cell col="4" displaytype="number" style="align:center middle;" text="bind:batchno" mask="000" tooltiptype="bottom,right" tooltiptext="bind:batchno"/>
  51. <Cell col="5" style="align:left middle;" text="bind:partname" tooltiptype="bottom,right" tooltiptext="bind:partname"/>
  52. <Cell col="6" displaytype="normal" edittype="none" text="bind:hngnm" tooltiptype="bottom,right" tooltiptext="bind:hngnm"/>
  53. <Cell col="7" text="bind:rrgstno" tooltiptype="bottom,right" tooltiptext="bind:rrgstno"/>
  54. <Cell col="8" style="align:left middle;" text="bind:opengnm" tooltiptype="bottom,right" tooltiptext="bind:opengnm"/>
  55. <Cell col="9" style="align:left middle;" text="bind:diagengnm" tooltiptype="bottom,right" tooltiptext="bind:diagengnm"/>
  56. <Cell col="10" style="align:left middle;" text="bind:hospnm" tooltiptype="bottom,right" tooltiptext="bind:hospnm"/>
  57. <Cell col="11" text="bind:recvno" tooltiptype="bottom,right" tooltiptext="bind:recvno"/>
  58. </Band>
  59. </Format>
  60. </Formats>
  61. </Grid>
  62. <Div id="div" taborder="2" position="absolute 0 25 1194 60" class="div_SA">
  63. <Layouts>
  64. <Layout width="1194" height="35">
  65. <Static id="caption2" text="수술일자 :" class="search_name" position="absolute 15 9 101 26" anchor="default"/>
  66. <Static id="caption5" text="~" class="search_no_b" position="absolute 204 9 213 26" anchor="default"/>
  67. <Shape id="line13" linetype="vertical" class="line_4" position="absolute 1104 7 1110 29" anchor="default"/>
  68. <Calendar id="ipt_fromdd" taborder="1" class="input_essential" position="absolute 96 8 196 27" anchor="default" autoselect="true" autoskip="true" dateformat="yyyy-MM-dd"/>
  69. <Calendar id="ipt_todd" taborder="2" class="input_essential" position="absolute 221 8 321 27" anchor="default" autoselect="true" autoskip="true" dateformat="yyyy-MM-dd" value="null"/>
  70. <Button id="btn_sea" taborder="3" text="조회" class="btn1" position="absolute 1123 7 1179 29" anchor="default" onclick="div_btn_sea_onclick"/>
  71. </Layout>
  72. </Layouts>
  73. </Div>
  74. <Button id="btn_excsave" taborder="3" text="엑셀저장" class="btn7" position="absolute 1119 64 1194 83" onclick="btn_excsave_onclick"/>
  75. <Button id="btn_prt" taborder="4" text="출력" class="btn6" position="absolute 0 757 56 779" onclick="btn_prt_onclick"/>
  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. </ColumnInfo>
  84. <Rows>
  85. <Row>
  86. <Col id="srchfromdd"/>
  87. <Col id="srchtodd"/>
  88. </Row>
  89. </Rows>
  90. </Dataset>
  91. <Dataset id="ds_main_benflist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  92. <ColumnInfo>
  93. <Column id="opdd" type="STRING" size="256" sumtext="수술일자"/>
  94. <Column id="graftno" type="STRING" size="256" sumtext="graftno"/>
  95. <Column id="partseq" type="STRING" size="256" sumtext="파트seq"/>
  96. <Column id="batchno" type="STRING" size="256" sumtext="배치no"/>
  97. <Column id="partname" type="STRING" size="256" sumtext="조직명"/>
  98. <Column id="hngnm" type="STRING" size="256" sumtext="성명"/>
  99. <Column id="rrgstno" type="STRING" size="256" sumtext="주민번호"/>
  100. <Column id="diagengnm" type="STRING" size="256" sumtext="진단명"/>
  101. <Column id="opengnm" type="STRING" size="256" sumtext="수술명"/>
  102. <Column id="recvno" type="STRING" size="256" sumtext="이식번호"/>
  103. <Column id="hospnm" type="STRING" size="256" sumtext="병원명"/>
  104. </ColumnInfo>
  105. </Dataset>
  106. <Dataset id="ds_rexprnt_benflist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  107. <ColumnInfo>
  108. <Column id="Column0" type="STRING" size="256"/>
  109. <Column id="Column1" type="STRING" size="256"/>
  110. </ColumnInfo>
  111. <Rows>
  112. <Row>
  113. <Col id="Column0">srchfromdd</Col>
  114. </Row>
  115. <Row>
  116. <Col id="Column0">srchtodd</Col>
  117. </Row>
  118. </Rows>
  119. </Dataset>
  120. <Dataset id="ds_rexprnt_benflist_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  121. <ColumnInfo>
  122. <Column id="opdd" type="STRING" size="256" sumtext="수술일자"/>
  123. <Column id="graftno" type="STRING" size="256" sumtext="graftno"/>
  124. <Column id="partseq" type="STRING" size="256" sumtext="파트seq"/>
  125. <Column id="batchno" type="STRING" size="256" sumtext="배치no"/>
  126. <Column id="partname" type="STRING" size="256" sumtext="조직명"/>
  127. <Column id="hngnm" type="STRING" size="256" sumtext="성명"/>
  128. <Column id="rrgstno" type="STRING" size="256" sumtext="주민번호"/>
  129. <Column id="diagengnm" type="STRING" size="256" sumtext="진단명"/>
  130. <Column id="opengnm" type="STRING" size="256" sumtext="수술명"/>
  131. <Column id="recvno" type="STRING" size="256" sumtext="이식번호"/>
  132. <Column id="hospnm" type="STRING" size="256" sumtext="병원명"/>
  133. </ColumnInfo>
  134. </Dataset>
  135. </Objects>
  136. <Bind>
  137. <BindItem id="item0" compid="div.ipt_fromdd" propid="value" datasetid="ds_send" columnid="srchfromdd"/>
  138. <BindItem id="item1" compid="div.ipt_todd" propid="value" datasetid="ds_send" columnid="srchtodd"/>
  139. </Bind>
  140. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  141. * System Name :
  142. * Job Name :
  143. * Creator :
  144. * Make Date : 2015-11-13
  145. * Description :
  146. *---------------------------------------------------------------------------------------
  147. * Modify Date Modifier Modify Description
  148. *---------------------------------------------------------------------------------------
  149. * 2015-11-13 Live Converter TF->XP
  150. *
  151. *---------------------------------------------------------------------------------------
  152. ****************************************************************************************/
  153. //=======================================================================================
  154. // Lib Include
  155. //---------------------------------------------------------------------------------------
  156. include 'com_commonxp::comm_main.xjs';
  157. var arErrorCode = new HashArray();
  158. //=======================================================================================
  159. // Local methods
  160. //---------------------------------------------------------------------------------------
  161. /**
  162. * 화면 초기화
  163. * @return {[type]} [description]
  164. */
  165. function fGetScreenInit() {
  166. ds_send.setColumn(0, "srchfromdd", utlf_getCurrentDate());
  167. ds_send.setColumn(0, "srchtodd", utlf_getCurrentDate());
  168. ds_main_benflist.clearData();
  169. }
  170. /**
  171. * 폐기대장 조회
  172. * @return {[type]} [description]
  173. */
  174. function fGetAbnList() {
  175. ds_main_benflist.clearData();
  176. var oParam = {};
  177. oParam.id = "TRAVT02101";
  178. oParam.service = "tissuebankapp.TissueBankProcess";
  179. oParam.method = "reqGettissuebankBenflist";
  180. oParam.inds = "req=ds_send";
  181. oParam.outds = "ds_main_benflist=item";
  182. oParam.async = false;
  183. oParam.callback = "callback";
  184. tranf_submit(oParam);
  185. if (arErrorCode.pop("TRAVT02101") > -1) {
  186. for (var i = 0; i < ds_main_benflist.rowcount; i++) {
  187. var seq = parseInt(ds_main_benflist.getColumn(i, "partseq"));
  188. var no = parseInt(ds_main_benflist.getColumn(i, "batchno"));
  189. if (seq != "" && seq < 10) {
  190. ds_main_benflist.setColumn(i, "partseq", "0" + seq);
  191. }
  192. if (no != "" && no < 10) {
  193. ds_main_benflist.setColumn(i, "batchno", "00" + no);
  194. }
  195. else if (no != "" && no > 9 && no < 100) {
  196. ds_main_benflist.setColumn(i, "batchno", "0" + no);
  197. }
  198. }
  199. }
  200. }
  201. /**
  202. * submit 후 호출 될 공통 콜백
  203. * @param {[type]} sSvcId [description]
  204. * @param {[type]} nErrorCode [description]
  205. * @param {[type]} sErrorMsg [description]
  206. * @return {Function} [description]
  207. */
  208. function callback(sSvcId, nErrorCode, sErrorMsg){
  209. arErrorCode.push(sSvcId, nErrorCode);
  210. }
  211. //=======================================================================================
  212. // Events
  213. //---------------------------------------------------------------------------------------
  214. /**
  215. * onload 이벤트 발생 시 호출
  216. * @param {[type]} obj:Form [description]
  217. * @param {[type]} e:LoadEventInfo [description]
  218. */
  219. function SMAVT02101_onload(obj: Form, e: LoadEventInfo) {
  220. frmf_initForm(obj);
  221. grdf_setGridSort(dtg_benflist);
  222. fGetScreenInit();
  223. }
  224. /**
  225. * 조회 버튼 클릭 이벤트
  226. * @param {[type]} obj: Button [description]
  227. * @param {[type]} e: ClickEventInfo [description]
  228. * @return {[type]} [description]
  229. */
  230. function div_btn_sea_onclick(obj: Button, e: ClickEventInfo) {
  231. if (utlf_transNullToEmpty(ds_send.getColumn(0, "srchfromdd")) == "") {
  232. sysf_messageBox("조회기간", "E013", "입력 후 다시 조회하세요.");
  233. return;
  234. }
  235. if (utlf_transNullToEmpty(ds_send.getColumn(0, "srchtodd")) == "") {
  236. sysf_messageBox("조회기간", "E013", "입력 후 다시 조회하세요.");
  237. return;
  238. }
  239. fGetAbnList();
  240. }
  241. /**
  242. * 엑셀저장 버튼 클릭 이벤트
  243. * @param {[type]} obj: Button [description]
  244. * @param {[type]} e: ClickEventInfo [description]
  245. * @return {[type]} [description]
  246. */
  247. function btn_excsave_onclick(obj: Button, e: ClickEventInfo) {
  248. grdf_exportExcel(dtg_benflist, "excel", "Sheet1", true);
  249. }
  250. /**
  251. * 출력 버튼 클릭 이벤트
  252. * @param {[type]} obj: Button [description]
  253. * @param {[type]} e: ClickEventInfo [description]
  254. * @return {[type]} [description]
  255. */
  256. function btn_prt_onclick(obj: Button, e: ClickEventInfo) {
  257. ds_rexprnt_benflist.copyRow(0, ds_send, 0);
  258. ds_rexprnt_benflist_item.clearData();
  259. dsf_copyColInfo(ds_rexprnt_benflist_item, ds_main_benflist, true);
  260. for (var i = 0; i < ds_main_benflist.rowcount; i++) {
  261. ds_rexprnt_benflist_item.copyRow(ds_rexprnt_benflist_item.addRow(), ds_main_benflist, i);
  262. }
  263. // DOM 객체 설정
  264. var objDOM = rptf_createDOM();
  265. rptf_setNodeListToDOM(objDOM, "root/rexprnt/benflist/item", ds_rexprnt_benflist_item);
  266. rptf_setValueToDOM(objDOM, "root/rexprnt/benflist/srchfromdd", ds_send.getColumn(0, 'srchfromdd'));
  267. rptf_setValueToDOM(objDOM, "root/rexprnt/benflist/srchtodd", ds_send.getColumn(0, 'srchtodd'));
  268. rptf_exeReportPreview30(["RPAVT00109"],[{ xml_data_XML1: objDOM.documentElement.source }],
  269. "open=1;save=1;directprint=0;print=1;zoom=0;excel=1;show=1");
  270. }
  271. ]]></Script>
  272. </Form>
  273. </FDL>