SMLBP00800_응급실발송내역조회.xfdl 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  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 330 9 386 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" visible="false"/>
  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" visible="false"/>
  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 201 97"/>
  24. <Grid id="grd_blod" taborder="4" useinputpanel="false" position="absolute 0 97 1256 805" style="align:center middle;" anchor="all" autofittype="none" binddataset="ds_grid_grd_blod" scrollbars="autovert" areaselecttype="limitband" autofitbandtype="body" autofitminwidth="0" autofitminheight="0" cellsizebandtype="body">
  25. <Formats>
  26. <Format id="default">
  27. <Columns>
  28. <Column size="30"/>
  29. <Column size="87"/>
  30. <Column size="117"/>
  31. <Column size="79"/>
  32. <Column size="90"/>
  33. <Column size="110"/>
  34. <Column size="237"/>
  35. <Column size="110"/>
  36. </Columns>
  37. <Rows>
  38. <Row size="29" band="head"/>
  39. <Row size="25"/>
  40. </Rows>
  41. <Band id="head">
  42. <Cell text="No."/>
  43. <Cell col="1" text="등록번호"/>
  44. <Cell col="2" text="환자명"/>
  45. <Cell col="3" text="병동"/>
  46. <Cell col="4" text="혈액형"/>
  47. <Cell col="5" text="혈액번호"/>
  48. <Cell col="6" text="전송일시"/>
  49. <Cell col="7" text="전송자"/>
  50. </Band>
  51. <Band id="body">
  52. <Cell expr="expr:currow+1"/>
  53. <Cell col="1" text="bind:pid"/>
  54. <Cell col="2" style="align:center middle;" text="bind:hngnm"/>
  55. <Cell col="3" text="bind:wardnm"/>
  56. <Cell col="4" text="bind:aborh"/>
  57. <Cell col="5" text="bind:blodno"/>
  58. <Cell col="6" style="align:center middle;" text="bind:transdt" mask="expr:execdt==null?'':'####-##-## ##:##'"/>
  59. <Cell col="7" style="align:center middle;" text="bind:lastupdtrid" mask="expr:validt==null?'':'####-##-## ##:##'"/>
  60. </Band>
  61. </Format>
  62. </Formats>
  63. </Grid>
  64. </Layout>
  65. </Layouts>
  66. <Objects>
  67. <Dataset id="ds_init_lb0605" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  68. <ColumnInfo>
  69. <Column id="cd" type="STRING" size="256"/>
  70. <Column id="nm" type="STRING" size="256"/>
  71. <Column id="etc01" type="STRING" size="256"/>
  72. </ColumnInfo>
  73. </Dataset>
  74. <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">
  75. <ColumnInfo>
  76. <column id="pid" type="STRING" size="256"/>
  77. <column id="hngnm" type="STRING" size="256"/>
  78. <column id="blodno" type="STRING" size="256"/>
  79. <Column id="transdt" type="STRING" size="256"/>
  80. <Column id="lastupdtrid" type="STRING" size="256"/>
  81. <Column id="aborh" type="STRING" size="256"/>
  82. <Column id="wardnm" type="STRING" size="256"/>
  83. <Column id="patsex" type="STRING" size="256"/>
  84. </ColumnInfo>
  85. </Dataset>
  86. </Objects>
  87. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  88. * System Name :
  89. * Job Name :
  90. * Creator :
  91. * Make Date : 2015-05-01
  92. * Description :
  93. *---------------------------------------------------------------------------------------
  94. * Modify Date Modifier Modify Description
  95. *---------------------------------------------------------------------------------------
  96. * 2015-05-01 Live Converter TF->XP
  97. *
  98. *---------------------------------------------------------------------------------------
  99. ****************************************************************************************/
  100. include "com_commonxp::comm_main.xjs";
  101. include "lis_commonxp::LLZ001.xjs";
  102. function model1_oninit(obj:Form, e:InitEventInfo)
  103. {
  104. //폼 초기화 함수
  105. frmf_initForm(obj);
  106. lf_setInit();
  107. }
  108. function lf_setInit() {
  109. var toDay = utlf_getCurrentDate();
  110. var mDate = utlf_addDate(toDay, -5);
  111. group2.ipt_refsdd.value = mDate;
  112. group2.ipt_refedd.value = toDay;
  113. lf_getDbDeptcd("0000|0605|","cbf_SMLBP00700");
  114. ds_grid_grd_blod.clearData();
  115. }
  116. function lf_exeblodlist() {
  117. var toDay = utlf_getCurrentDate();
  118. var mDate = utlf_addDate(toDay, -5);
  119. var refsdd = group2.ipt_refsdd.value;
  120. var refedd = group2.ipt_refedd.value;
  121. var bldkind = group2.cmb_bldkind.value;
  122. var sInDsName = dsf_createDsRow("ds_temp_search"
  123. , [{col: "refsdd", val:refsdd }
  124. , {col: "refedd", val:refedd }
  125. ]);
  126. var oParam = {};
  127. oParam.id = "TRLBP00701";
  128. oParam.service = "refprintmngtapp.BloodBankRefPrintMngt";
  129. oParam.method = "reqGetBloodAcptList";
  130. oParam.inds = "cond="+sInDsName;
  131. oParam.outds = "ds_grid_grd_blod=getBloodAcptList";
  132. oParam.async = false;
  133. oParam.callback = "cbf_SMLBP00700";
  134. tranf_submit(oParam);
  135. }
  136. function lf_setBgColor(validtyn) {
  137. var rtnColor = "transparent";
  138. if(validtyn=="A"){
  139. rtnColor = "#f7a08b";
  140. }else if(validtyn=="B"){
  141. rtnColor = "#ffe79d";
  142. }
  143. return rtnColor;
  144. }
  145. function cbf_SMLBP00700(strSvcID, nErrorCode, strErrorMag) {
  146. if(nErrorCode != 0) {
  147. sysf_messageBox("ID: "+ strSvcID + " Error: " + strErrorMag, "E009", "");
  148. }else{
  149. switch(strSvcID) {
  150. case "TRLZZ00101":
  151. group2.cmb_bldkind.index = 0;
  152. break;
  153. case "TRLBP00701":
  154. break;
  155. default:
  156. break;
  157. }
  158. }
  159. }
  160. function button1_onlbuttonup(obj:Button, e:MouseEventInfo)
  161. {
  162. lf_exeblodlist();
  163. }
  164. function button5_onclick(obj:Button, e:ClickEventInfo)
  165. {
  166. lf_setInit();
  167. }
  168. ]]></Script>
  169. </Form>
  170. </FDL>