SMLBP02700_수혈동의서조회.xfdl 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMLBP02700" position="absolute 0 0 1256 805" titletext="Untitle" oninit="model1_oninit">
  5. <Layouts>
  6. <Layout>
  7. <Div id="grp_sea" anchor="left top right" taborder="1" style="align:center top;" position="absolute 0 25 1256 67" class="div_SA">
  8. <Layouts>
  9. <Layout/>
  10. </Layouts>
  11. </Div>
  12. <Static id="caption2" class="search_name" position="absolute 9 36 83 56" anchor="default" positiontype="position" text="진료일자"/>
  13. <Static id="caption222" class="search_name" position="absolute 322 36 396 56" anchor="default" positiontype="position" text="등록번호"/>
  14. <Edit id="ipt_pid" class="input_button" position="absolute 394 36 493 56" anchor="default" positiontype="position" onkeydown="ipt_pid_onkeydown"/>
  15. <Button id="button1" class="btn1" position="absolute 1118 36 1174 56" anchor="top right" positiontype="position" text="조회" onclick="button1_onclick"/>
  16. <Shape id="line13" class="line_4" position="absolute 1108 7 1108 29" anchor="default" positiontype="position" linetype="vertical"/>
  17. <Calendar id="input26" class="input_essential" position="absolute 82 36 182 56" anchor="default" positiontype="position" dateformat="yyyy-MM-dd" value="null"/>
  18. <Static id="caption3" position="absolute 185 36 200 56" anchor="default" positiontype="position" text="~"/>
  19. <Calendar id="input1" class="input_essential" position="absolute 198 36 298 56" anchor="default" positiontype="position" dateformat="yyyy-MM-dd"/>
  20. <Static id="caption1" class="tit_2" position="absolute 0 77 131 97" anchor="default" positiontype="position" text="수혈동의서 리스트"/>
  21. <Grid id="grd_transfusiontext" position="absolute 0 97 1256 805" anchor="all" positiontype="position" binddataset="ds_grid_grd_transfusiontext" oncelldblclick="grd_transfusiontext_oncelldblclick" autofittype="col">
  22. <Formats>
  23. <Format id="default">
  24. <Columns>
  25. <Column size="30"/>
  26. <Column size="160"/>
  27. <Column size="85"/>
  28. <Column size="65"/>
  29. <Column size="100"/>
  30. <Column size="60"/>
  31. <Column size="100"/>
  32. <Column size="80"/>
  33. <Column size="40"/>
  34. <Column size="115"/>
  35. <Column size="50"/>
  36. <Column size="100"/>
  37. <Column size="135"/>
  38. </Columns>
  39. <Rows>
  40. <Row size="24" band="head"/>
  41. <Row size="20"/>
  42. </Rows>
  43. <Band id="head">
  44. <Cell/>
  45. <Cell col="1" text="동의서명"/>
  46. <Cell col="2" text="상태"/>
  47. <Cell col="3" text="출력여부"/>
  48. <Cell col="4" text="동의서코드"/>
  49. <Cell col="5" text="생성번호"/>
  50. <Cell col="6" text="등록번호"/>
  51. <Cell col="7" text="진료일"/>
  52. <Cell col="8" text="진료과"/>
  53. <Cell col="9" text="환자명"/>
  54. <Cell col="10" text="진료타입"/>
  55. <Cell col="11" text="진료과/병실"/>
  56. <Cell col="12" text="출력일시"/>
  57. </Band>
  58. <Band id="body">
  59. <Cell celltype="head" expr="expr:currow+1"/>
  60. <Cell col="1" style="align:center middle;" text="bind:formnm"/>
  61. <Cell col="2" style="align:center middle;" text="bind:stat"/>
  62. <Cell col="3" style="align:center middle;" text="bind:scanyn"/>
  63. <Cell col="4" displaytype="text" style="align:center middle;" text="bind:formcd"/>
  64. <Cell col="5" displaytype="text" style="align:center middle;" text="bind:cretno"/>
  65. <Cell col="6" displaytype="text" style="align:center middle;" text="bind:pid"/>
  66. <Cell col="7" style="align:center middle;" text="bind:orddd" mask="expr:orddd==null?'':'####-##-##'"/>
  67. <Cell col="8" style="align:center middle;" text="bind:orddeptcd"/>
  68. <Cell col="9" style="align:center middle;" text="bind:patnm"/>
  69. <Cell col="10" style="align:center middle;" text="bind:ordtype"/>
  70. <Cell col="11" style="align:center middle;" text="bind:wardroom"/>
  71. <Cell col="12" style="align:center middle;" text="bind:prntdt" mask="expr:prntdt==null?'':'####-##-## ##:##:##'"/>
  72. </Band>
  73. </Format>
  74. </Formats>
  75. </Grid>
  76. <Shape id="line1" class="line_1" position="absolute 0 70 1194 70" anchor="default" positiontype="position" linetype="horizontal"/>
  77. <Button id="button10" class="btn7" position="absolute 1201 74 1254 94" anchor="top right" positiontype="position" text="엑셀" onclick="button10_onclick"/>
  78. <Button id="button5" class="btn1" position="absolute 1177 36 1245 56" anchor="top right" positiontype="position" text="초기화" onclick="button5_onclick"/>
  79. <Shape id="line15" class="line_6" position="absolute 0 25 1194 25" anchor="default" positiontype="position" linetype="horizontal"/>
  80. <Static id="caption6" class="tit_1" position="absolute 0 0 136 25" anchor="default" positiontype="position" text="수혈동의서조회"/>
  81. </Layout>
  82. </Layouts>
  83. <Objects>
  84. <Dataset id="ds_grid_grd_transfusiontext" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  85. <ColumnInfo>
  86. <column id="formnm" type="STRING" size="256"/>
  87. <column id="stat" type="STRING" size="256"/>
  88. <column id="scanyn" type="STRING" size="256"/>
  89. <column id="formcd" type="STRING" size="256"/>
  90. <column id="cretno" type="STRING" size="256"/>
  91. <column id="treatno" type="STRING" size="256"/>
  92. <column id="pid" type="STRING" size="256"/>
  93. <column id="orddd" type="STRING" size="256"/>
  94. <column id="orddeptcd" type="STRING" size="256"/>
  95. <column id="patnm" type="STRING" size="256"/>
  96. <column id="ordtype" type="STRING" size="256"/>
  97. <column id="prntdt" type="STRING" size="256"/>
  98. <column id="wardroom" type="STRING" size="256"/>
  99. </ColumnInfo>
  100. </Dataset>
  101. <Dataset id="ds_iemr" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  102. <ColumnInfo>
  103. <Column id="docucd"/>
  104. <Column id="treatno"/>
  105. </ColumnInfo>
  106. <Rows>
  107. <Row/>
  108. </Rows>
  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::LZZ001.xjs";
  126. include "lis_commonxp::LLZ001.xjs";
  127. function model1_oninit(obj:Form, e:InitEventInfo)
  128. {
  129. //폼 초기화 함수
  130. frmf_initForm(obj);
  131. lf_setInit();
  132. }
  133. function lf_setInit() {
  134. var Today = utlf_getCurrentDate();
  135. var BfDay = utlf_addDate(Today, -30);
  136. input26.value = BfDay;
  137. input1.value = Today;
  138. grdf_setGridSort(grd_transfusiontext);
  139. }
  140. function lf_getTansfusionList() {
  141. var startdd = input26.value;
  142. var enddd = input1.value;
  143. var pid = ipt_pid.value;
  144. var sInDsName = dsf_createDsRow("ds_temp_search"
  145. , [{col: "startdd", val:startdd }
  146. , {col: "enddd", val:enddd }
  147. , {col: "pid", val:pid }
  148. ]);
  149. var oParam = {};
  150. oParam.id = "TRLBP02601";
  151. oParam.service = "refprintmngtapp.BloodBankRefPrintMngt";
  152. oParam.method = "reqGetTansfusionList";
  153. oParam.inds = "cond="+sInDsName;
  154. oParam.outds = "ds_grid_grd_transfusiontext=getTansfusionList";
  155. oParam.async = false;
  156. oParam.callback = "cbf_SMLBP02700";
  157. tranf_submit(oParam);
  158. }
  159. // EMR Viewer popup 호출
  160. function lf_openview(){
  161. if(utlf_transNullToEmpty(ds_grid_grd_transfusiontext.getColumn(ds_grid_grd_transfusiontext.rowposition, "scanyn")) == "Y" &&
  162. utlf_transNullToEmpty(ds_grid_grd_transfusiontext.getColumn(ds_grid_grd_transfusiontext.rowposition, "treatno")) != "")
  163. {
  164. var arrArg = new Object();
  165. ds_iemr.clearData();
  166. ds_iemr.addRow();
  167. ds_iemr.setColumn(0, "docucd", utlf_transNullToEmpty(ds_grid_grd_transfusiontext.getColumn(ds_grid_grd_transfusiontext.rowposition, "formcd")));
  168. ds_iemr.setColumn(0, "treatno", utlf_transNullToEmpty(ds_grid_grd_transfusiontext.getColumn(ds_grid_grd_transfusiontext.rowposition, "treatno")));
  169. arrArg.iemr = ds_iemr;
  170. arrArg.viewer_flag = "";
  171. frmf_modal("SPMMR06400","SPMMR06400", arrArg, "", "", "", "", "", "", "", "", "", "M");
  172. }
  173. }
  174. // 등록번호 Enter Key 처리
  175. function lf_keyEvent(){
  176. fSetInputNodeCurPidObj(ipt_pid, 9); //등록번호 9자리로 변경
  177. ipt_pid.setSelect();
  178. lf_getTansfusionList();
  179. }
  180. // 엑셀 저장
  181. function lf_exeExcel(pGridId) {
  182. grdf_exportExcel(pGridId, lf_lisGetTitle(this), "sheet1", false);
  183. }
  184. // callback 함수
  185. function cbf_SMLBP02700(strSvcID, nErrorCode, strErrorMag) {
  186. if(nErrorCode != 0) {
  187. sysf_messageBox("ID: "+ strSvcID + " Error: " + strErrorMag, "E009", "");
  188. }else{
  189. switch(strSvcID) {
  190. case "TRLBP02701":
  191. break;
  192. default:
  193. break;
  194. }
  195. }
  196. }
  197. function ipt_pid_onkeydown(obj:Edit, e:KeyEventInfo)
  198. {
  199. if(e.keycode == 13) {
  200. lf_keyEvent();
  201. }
  202. }
  203. function button1_onclick(obj:Button, e:ClickEventInfo)
  204. {
  205. lf_getTansfusionList();
  206. }
  207. function grd_transfusiontext_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  208. {
  209. lf_openview();
  210. }
  211. function button5_onclick(obj:Button, e:ClickEventInfo)
  212. {
  213. lf_setInit();
  214. }
  215. function button10_onclick(obj:Button, e:ClickEventInfo)
  216. {
  217. lf_exeExcel(grd_transfusiontext);
  218. }
  219. ]]></Script>
  220. </Form>
  221. </FDL>