SMLBP00700_미수령혈액조회.xfdl 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="workform" position="absolute 0 0 1256 805" titletext="Untitle" oninit="model1_oninit">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption6" text="미수령 혈액 조회" class="tit_1" position="absolute 0 0 189 25"/>
  8. <Div id="group2" taborder="3" style="align:center top;" position="absolute 0 25 1256 67" anchor="left top right" class="div_SA">
  9. <Layouts>
  10. <Layout>
  11. <Static id="caption2" text="검사일자" class="search_name" position="absolute 8 10 82 30" anchor="default"/>
  12. <Button id="button1" taborder="1" text="조회" onlbuttonup="button1_onlbuttonup" class="btn1" position="absolute 1122 9 1178 29" anchor="top right"/>
  13. <Shape id="line13" linetype="vertical" class="line_4" position="absolute 1108 7 1108 29" anchor="default"/>
  14. <Static id="caption5" text="혈액종류" class="search_name" position="absolute 322 10 396 30" anchor="default"/>
  15. <Combo id="cmb_bldkind" taborder="4" class="combo_s_essential" position="absolute 396 10 611 30" anchor="default" innerdataset="@ds_init_lb0605" codecolumn="cd" datacolumn="nm"/>
  16. <Button id="button5" taborder="6" text="초기화" onclick="button5_onclick" class="btn4" position="absolute 1181 9 1250 29" anchor="right bottom"/>
  17. <Calendar id="ipt_refsdd" taborder="7" dateformat="yyyy-MM-dd" class="input_search" position="absolute 86 10 186 30"/>
  18. <Static id="caption8" text="~" position="absolute 186 10 202 30" style="align:center;"/>
  19. <Calendar id="ipt_refedd" taborder="8" dateformat="yyyy-MM-dd" class="input_search" position="absolute 202 10 302 30"/>
  20. </Layout>
  21. </Layouts>
  22. </Div>
  23. <Static id="caption1" text="미수령 혈액 목록" class="tit_2" position="absolute 0 77 131 97"/>
  24. <Grid id="grd_blod" taborder="4" useinputpanel="false" position="absolute 0 97 1256 805" style="align:center middle;" anchor="all" autofittype="col" binddataset="ds_grid_grd_blod">
  25. <Formats>
  26. <Format id="default">
  27. <Columns>
  28. <Column size="30"/>
  29. <Column size="80"/>
  30. <Column size="80"/>
  31. <Column size="70"/>
  32. <Column size="60"/>
  33. <Column size="100"/>
  34. <Column size="100"/>
  35. <Column size="110"/>
  36. <Column size="30"/>
  37. <Column size="119"/>
  38. <Column size="90"/>
  39. <Column size="110"/>
  40. <Column size="110"/>
  41. <Column size="90"/>
  42. </Columns>
  43. <Rows>
  44. <Row size="22" band="head"/>
  45. <Row size="20"/>
  46. </Rows>
  47. <Band id="head">
  48. <Cell text="No."/>
  49. <Cell col="1" text="등록번호"/>
  50. <Cell col="2" text="환자명"/>
  51. <Cell col="3" text="병실"/>
  52. <Cell col="4" text="혈액형"/>
  53. <Cell col="5" text="처방"/>
  54. <Cell col="6" text="일련번호"/>
  55. <Cell col="7" text="혈액번호"/>
  56. <Cell col="8" text="IR"/>
  57. <Cell col="9" text="실시일시"/>
  58. <Cell col="10" text="유효일자"/>
  59. <Cell col="11" text="유효일시"/>
  60. <Cell col="12" text="검사일자"/>
  61. <Cell col="13" text="처방일자"/>
  62. </Band>
  63. <Band id="body">
  64. <Cell expr="expr:currow+1"/>
  65. <Cell col="1" style="background:EXPR(lf_setBgColor(validtyn));background2:EXPR(lf_setBgColor(validtyn));" text="bind:pid"/>
  66. <Cell col="2" style="align:center middle;background:EXPR(lf_setBgColor(validtyn));background2:EXPR(lf_setBgColor(validtyn));" text="bind:patnm"/>
  67. <Cell col="3" style="background:EXPR(lf_setBgColor(validtyn));background2:EXPR(lf_setBgColor(validtyn));" text="bind:roomcd"/>
  68. <Cell col="4" style="background:EXPR(lf_setBgColor(validtyn));background2:EXPR(lf_setBgColor(validtyn));" text="bind:btype"/>
  69. <Cell col="5" style="background:EXPR(lf_setBgColor(validtyn));background2:EXPR(lf_setBgColor(validtyn));" text="bind:blodcomnm"/>
  70. <Cell col="6" style="align:center middle;background:EXPR(lf_setBgColor(validtyn));background2:EXPR(lf_setBgColor(validtyn));" text="bind:prepblodseqno"/>
  71. <Cell col="7" style="background:EXPR(lf_setBgColor(validtyn));background2:EXPR(lf_setBgColor(validtyn));" text="bind:blodno"/>
  72. <Cell col="8" style="background:EXPR(lf_setBgColor(validtyn));background2:EXPR(lf_setBgColor(validtyn));" text="bind:iryn"/>
  73. <Cell col="9" style="align:center middle;background:EXPR(lf_setBgColor(validtyn));background2:EXPR(lf_setBgColor(validtyn));" text="bind:execdt" mask="expr:execdt==null?'':'####-##-## ##:##'"/>
  74. <Cell col="10" style="background:EXPR(lf_setBgColor(validtyn));background2:EXPR(lf_setBgColor(validtyn));" text="bind:validd" mask="expr:validd==null?'':'####-##-##'"/>
  75. <Cell col="11" style="align:center middle;background:EXPR(lf_setBgColor(validtyn));background2:EXPR(lf_setBgColor(validtyn));" text="bind:validt" mask="expr:validt==null?'':'####-##-## ##:##'"/>
  76. <Cell col="12" style="align:center middle;background:EXPR(lf_setBgColor(validtyn));background2:EXPR(lf_setBgColor(validtyn));" text="bind:transexcdd" mask="expr:transexcdd==null?'':'####-##-## ##:##'"/>
  77. <Cell col="13" style="align:center middle;background:EXPR(lf_setBgColor(validtyn));background2:EXPR(lf_setBgColor(validtyn));" text="bind:prcpdd" mask="expr:prcpdd==null?'':'####-##-##'"/>
  78. </Band>
  79. </Format>
  80. </Formats>
  81. </Grid>
  82. </Layout>
  83. </Layouts>
  84. <Objects>
  85. <Dataset id="ds_init_lb0605" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  86. <ColumnInfo>
  87. <Column id="cd" type="STRING" size="256"/>
  88. <Column id="nm" type="STRING" size="256"/>
  89. <Column id="etc01" type="STRING" size="256"/>
  90. </ColumnInfo>
  91. </Dataset>
  92. <Dataset id="ds_grid_grd_blod" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" onrowposchanged="ds_grid_grd_rslt_onrowposchanged">
  93. <ColumnInfo>
  94. <column id="prcpdd" type="STRING" size="256"/>
  95. <column id="pid" type="STRING" size="256"/>
  96. <column id="patnm" type="STRING" size="256"/>
  97. <column id="roomcd" type="STRING" size="256"/>
  98. <column id="blodcomnm" type="STRING" size="256"/>
  99. <column id="blodno" type="STRING" size="256"/>
  100. <column id="iryn" type="STRING" size="256"/>
  101. <column id="execdt" type="STRING" size="256"/>
  102. <column id="validd" type="STRING" size="256"/>
  103. <column id="validt" type="STRING" size="256"/>
  104. <column id="transexcdd" type="STRING" size="256"/>
  105. <column id="prepblodseqno" type="STRING" size="256"/>
  106. <column id="btype" type="STRING" size="256"/>
  107. <column id="validtyn" type="STRING" size="256"/>
  108. </ColumnInfo>
  109. </Dataset>
  110. </Objects>
  111. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  112. * System Name :
  113. * Job Name :
  114. * Creator :
  115. * Make Date : 2015-05-01
  116. * Description :
  117. *---------------------------------------------------------------------------------------
  118. * Modify Date Modifier Modify Description
  119. *---------------------------------------------------------------------------------------
  120. * 2015-05-01 Live Converter TF->XP
  121. *
  122. *---------------------------------------------------------------------------------------
  123. ****************************************************************************************/
  124. include "com_commonxp::comm_main.xjs";
  125. include "lis_commonxp::LLZ001.xjs";
  126. function model1_oninit(obj:Form, e:InitEventInfo)
  127. {
  128. //폼 초기화 함수
  129. frmf_initForm(obj);
  130. lf_setInit();
  131. }
  132. function lf_setInit() {
  133. var toDay = utlf_getCurrentDate();
  134. var mDate = utlf_addDate(toDay, -5);
  135. group2.ipt_refsdd.value = mDate;
  136. group2.ipt_refedd.value = toDay;
  137. lf_getDbDeptcd("0000|0605|","cbf_SMLBP00700");
  138. ds_grid_grd_blod.clearData();
  139. }
  140. function lf_exeblodlist() {
  141. var toDay = utlf_getCurrentDate();
  142. var mDate = utlf_addDate(toDay, -5);
  143. var refsdd = group2.ipt_refsdd.value;
  144. var refedd = group2.ipt_refedd.value;
  145. var bldkind = group2.cmb_bldkind.value;
  146. var sInDsName = dsf_createDsRow("ds_temp_search"
  147. , [{col: "refsdd", val:refsdd }
  148. , {col: "refedd", val:refedd }
  149. , {col: "bldkind", val:bldkind }
  150. ]);
  151. var oParam = {};
  152. oParam.id = "TRLBP00701";
  153. oParam.service = "refprintmngtapp.BloodBankRefPrintMngt";
  154. oParam.method = "reqGetUnAcptList";
  155. oParam.inds = "cond="+sInDsName;
  156. oParam.outds = "ds_grid_grd_blod=getUnAcptList";
  157. oParam.async = false;
  158. oParam.callback = "cbf_SMLBP00700";
  159. tranf_submit(oParam);
  160. }
  161. function lf_setBgColor(validtyn) {
  162. var rtnColor = "transparent";
  163. if(validtyn=="A"){
  164. rtnColor = "#f7a08b";
  165. }else if(validtyn=="B"){
  166. rtnColor = "#ffe79d";
  167. }
  168. return rtnColor;
  169. }
  170. function cbf_SMLBP00700(strSvcID, nErrorCode, strErrorMag) {
  171. if(nErrorCode != 0) {
  172. sysf_messageBox("ID: "+ strSvcID + " Error: " + strErrorMag, "E009", "");
  173. }else{
  174. switch(strSvcID) {
  175. case "TRLZZ00101":
  176. group2.cmb_bldkind.index = 0;
  177. break;
  178. case "TRLBP00701":
  179. break;
  180. default:
  181. break;
  182. }
  183. }
  184. }
  185. function button1_onlbuttonup(obj:Button, e:MouseEventInfo)
  186. {
  187. lf_exeblodlist();
  188. }
  189. function button5_onclick(obj:Button, e:ClickEventInfo)
  190. {
  191. lf_setInit();
  192. }
  193. ]]></Script>
  194. </Form>
  195. </FDL>