SMLBP03000_혈액은행Comment조회.xfdl 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMLBP03000" position="absolute 0 0 1256 805" titletext="혈액은행 Critical 결과보고" onload="SMLBP03000_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div id="group3" position="absolute 0 25 1256 67" anchor="left top right" positiontype="position" class="div_SA">
  8. <Layouts>
  9. <Layout>
  10. <Button id="button1" class="btn1" position="absolute 1188 10 1244 30" anchor="top right" positiontype="position" text="조회" onclick="group3_button1_onclick"/>
  11. <Shape id="line13" class="line_4" position="absolute 1121 10 1121 30" anchor="default" positiontype="position" linetype="vertical"/>
  12. <Static id="caption5" class="search_name" position="absolute 8 10 82 30" anchor="default" positiontype="position" text="조회일자"/>
  13. <Static id="caption1115" class="search_name" position="absolute 540 10 614 30" anchor="default" positiontype="position" text="등록번호"/>
  14. <Edit id="ipt_pid" class="input_s_button" position="absolute 614 10 734 30" anchor="default" positiontype="position" onkeydown="group3_ipt_pid_onkeydown"/>
  15. <Static id="caption2" class="search_name" position="absolute 322 10 396 30" anchor="default" positiontype="position" text="조회구분"/>
  16. <Combo id="cmb_gbn" position="absolute 396 10 516 30" anchor="default" positiontype="position" innerdataset="@ds_cond_gbn" codecolumn="value" datacolumn="label" index="0" value="-" text="전체"/>
  17. <Calendar id="ipt_fromdd" taborder="1" dateformat="yyyy-MM-dd" class="input_essential" position="absolute 82 10 182 30"/>
  18. <Static id="caption3" text="~" position="absolute 185 10 200 30"/>
  19. <Calendar id="ipt_todd" taborder="2" dateformat="yyyy-MM-dd" class="input_essential" position="absolute 198 10 298 30"/>
  20. </Layout>
  21. </Layouts>
  22. </Div>
  23. <Static id="caption6" text="혈액은행 Critical 결과보고 조회" class="tit_1" position="absolute 0 0 231 25"/>
  24. <Static id="caption1" text="이상결과 리스트" class="tit_2" position="absolute 0 77 131 97"/>
  25. <Grid id="grd_blodcmtlist" taborder="2" useinputpanel="false" position="absolute 0 97 1256 805" style="align:center middle;" anchor="all" autofittype="col" binddataset="ds_grid_grd_blodcmtlist" autosizingtype="row" cellsizingtype="col">
  26. <Formats>
  27. <Format id="default">
  28. <Columns>
  29. <Column size="30"/>
  30. <Column size="140"/>
  31. <Column size="106"/>
  32. <Column size="100"/>
  33. <Column size="60"/>
  34. <Column size="100"/>
  35. <Column size="518"/>
  36. <Column size="100"/>
  37. <Column size="100"/>
  38. </Columns>
  39. <Rows>
  40. <Row size="22" band="head"/>
  41. <Row size="20"/>
  42. </Rows>
  43. <Band id="head">
  44. <Cell text="No."/>
  45. <Cell col="1" text="연락일시"/>
  46. <Cell col="2" text="환자명"/>
  47. <Cell col="3" text="등록번호"/>
  48. <Cell col="4" text="S/A"/>
  49. <Cell col="5" text="진료과/병실"/>
  50. <Cell col="6" text="내용"/>
  51. <Cell col="7" text="연락자"/>
  52. <Cell col="8" text="주치의"/>
  53. </Band>
  54. <Band id="body">
  55. <Cell celltype="head" expr="expr:currow+1"/>
  56. <Cell col="1" text="bind:rgstdt" mask="expr:rgstdt==null?'':'####-##-## ##:##:##'"/>
  57. <Cell col="2" text="bind:hngnm"/>
  58. <Cell col="3" text="bind:pid"/>
  59. <Cell col="4" text="bind:sexage"/>
  60. <Cell col="5" text="bind:wardroom"/>
  61. <Cell col="6" style="align:left middle;" text="bind:patcmt" wordwrap="word"/>
  62. <Cell col="7" text="bind:rgstrnm"/>
  63. <Cell col="8" text="bind:orddrnm"/>
  64. </Band>
  65. </Format>
  66. </Formats>
  67. </Grid>
  68. <Button id="button5" taborder="3" text="초기화" onclick="button5_onclick" class="btn4" position="absolute 1187 1 1256 21" anchor="top right"/>
  69. <Button id="button13" taborder="4" text="EXCEL저장" onclick="button13_onclick" class="btn7" position="absolute 1055 1 1147 23" style="align:right middle;"/>
  70. </Layout>
  71. </Layouts>
  72. <Objects>
  73. <Dataset id="ds_cond_gbn" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  74. <ColumnInfo>
  75. <Column id="label" type="STRING" size="256"/>
  76. <Column id="value" type="STRING" size="256"/>
  77. </ColumnInfo>
  78. <Rows>
  79. <Row>
  80. <Col id="label">전체</Col>
  81. <Col id="value">-</Col>
  82. </Row>
  83. <Row>
  84. <Col id="label">Critical Value</Col>
  85. <Col id="value">1</Col>
  86. </Row>
  87. <Row>
  88. <Col id="label">Comment</Col>
  89. <Col id="value">2</Col>
  90. </Row>
  91. </Rows>
  92. </Dataset>
  93. <Dataset id="ds_grid_grd_blodcmtlist" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  94. <ColumnInfo>
  95. <column id="rgstdt" type="STRING" size="256"/>
  96. <column id="hngnm" type="STRING" size="256"/>
  97. <column id="pid" type="STRING" size="256"/>
  98. <column id="sexage" type="STRING" size="256"/>
  99. <column id="patcmt" type="STRING" size="256"/>
  100. <column id="rgstrnm" type="STRING" size="256"/>
  101. <column id="wardroom" type="STRING" size="256"/>
  102. <column id="orddrnm" type="STRING" size="256"/>
  103. </ColumnInfo>
  104. </Dataset>
  105. </Objects>
  106. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  107. * System Name :
  108. * Job Name :
  109. * Creator :
  110. * Make Date : 2015-05-01
  111. * Description :
  112. *---------------------------------------------------------------------------------------
  113. * Modify Date Modifier Modify Description
  114. *---------------------------------------------------------------------------------------
  115. * 2015-05-01 Live Converter TF->XP
  116. *
  117. *---------------------------------------------------------------------------------------
  118. ****************************************************************************************/
  119. include "com_commonxp::comm_main.xjs";
  120. include "lis_commonxp::LZZ001.xjs";
  121. include "lis_commonxp::LLZ001.xjs";
  122. function SMLBP03000_onload(obj:Form, e:LoadEventInfo)
  123. {
  124. //폼 초기화 함수
  125. frmf_initForm(obj);
  126. lf_setInit();
  127. }
  128. function lf_setInit() {
  129. group3.ipt_fromdd.value = utlf_getCurrentDate();
  130. group3.ipt_todd.value = utlf_getCurrentDate();
  131. grdf_setGridSort(grd_blodcmtlist);
  132. }
  133. function lf_getBlodcmtlist() {
  134. var fromdd = group3.ipt_fromdd.value;
  135. var todd = group3.ipt_todd.value;
  136. var pid = group3.ipt_pid.value;
  137. var gbn = group3.cmb_gbn.value;
  138. var sInDsName = dsf_createDsRow("ds_temp_search"
  139. , [{col: "fromdd", val:fromdd }
  140. , {col: "todd", val:todd }
  141. , {col: "pid", val:pid }
  142. , {col: "gbn", val:gbn }
  143. ]);
  144. var oParam = {};
  145. oParam.id = "TRLBP03001";
  146. oParam.service = "refprintmngtapp.BloodBankRefPrintMngt";
  147. oParam.method = "reqGetBlodCmtList";
  148. oParam.inds = "cond="+sInDsName;
  149. oParam.outds = "ds_grid_grd_blodcmtlist=blodcmtlist";
  150. oParam.async = false;
  151. oParam.callback = "cbf_SMLBP03000";
  152. tranf_submit(oParam);
  153. }
  154. // callback 함수
  155. function cbf_SMLBP03000(strSvcID, nErrorCode, strErrorMag) {
  156. if(nErrorCode != 0) {
  157. sysf_messageBox("ID: "+ strSvcID + " Error: " + strErrorMag, "E009", "");
  158. }else{
  159. switch(strSvcID) {
  160. case "TRLBP03001":
  161. break;
  162. default:
  163. break;
  164. }
  165. }
  166. }
  167. function group3_button1_onclick(obj:Button, e:ClickEventInfo)
  168. {
  169. lf_getBlodcmtlist();
  170. }
  171. function group3_ipt_pid_onkeydown(obj:Edit, e:KeyEventInfo)
  172. {
  173. if(e.keycode == 13) {
  174. fSetInputNodeCurPidObj(group3.ipt_pid, 9); //등록번호 9자리로 변경
  175. lf_getBlodcmtlist();
  176. }
  177. }
  178. function button5_onclick(obj:Button, e:ClickEventInfo)
  179. {
  180. this.reload();
  181. }
  182. function button13_onclick(obj:Button, e:ClickEventInfo)
  183. {
  184. grdf_exportExcel(grd_blodcmtlist, "혈액은행 Critical 결과보고 조회");
  185. }
  186. ]]></Script>
  187. </Form>
  188. </FDL>