SPMMO32100_Visit.xfdl 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPMMO32100" position="absolute 0 0 1000 800" titletext="응급실-visit등록" oninit="SPMMO32100_oninit" onload="SPMMO32100_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static text="응급실 - Visit 등록" position="absolute 0 0 185 20" id="caption6" class="tit_1"/>
  8. <Grid position="absolute 0 20 985 789" id="grd_calledpatlist" binddataset="ds_main_calledpatlist" oncelldblclick="grd_calledpatlist_oncelldblclick" autofittype="col">
  9. <Formats>
  10. <Format id="default">
  11. <Columns>
  12. <Column size="120"/>
  13. <Column size="115"/>
  14. <Column size="146"/>
  15. <Column size="0"/>
  16. <Column size="109"/>
  17. <Column size="221"/>
  18. <Column size="260"/>
  19. <Column size="0"/>
  20. <Column size="0"/>
  21. <Column size="0"/>
  22. <Column size="0"/>
  23. <Column size="0"/>
  24. </Columns>
  25. <Rows>
  26. <Row size="24" band="head"/>
  27. <Row size="24"/>
  28. </Rows>
  29. <Band id="head">
  30. <Cell text="환자명"/>
  31. <Cell col="1" text="등록번호"/>
  32. <Cell col="2" text="입원일"/>
  33. <Cell col="3" text="Call Type"/>
  34. <Cell col="4" text="호출구분"/>
  35. <Cell col="5" text="호출시간"/>
  36. <Cell col="6" text="호출과"/>
  37. <Cell col="7" text="instcd"/>
  38. <Cell col="8" text="cretno"/>
  39. <Cell col="9" text="visitno"/>
  40. <Cell col="10" text="erorddeptcd"/>
  41. <Cell col="11" text="grtype"/>
  42. </Band>
  43. <Band id="body">
  44. <Cell text="bind:hngnm"/>
  45. <Cell col="1" text="bind:pid"/>
  46. <Cell col="2" displaytype="date" text="bind:indd" mask="yyyy-MM-dd"/>
  47. <Cell col="3" text="bind:grtypenm"/>
  48. <Cell col="4" displaytype="combo" edittype="combo" style="align:center;" text="bind:callgbn" combodataset="ds_callgbn" combocodecol="value" combodatacol="label"/>
  49. <Cell col="5" displaytype="date" text="bind:calldt" mask="yyyy-MM-dd hh:mm"/>
  50. <Cell col="6" style="align:left;" text="bind:disorddeptnm"/>
  51. <Cell col="7" text="bind:instcd"/>
  52. <Cell col="8" text="bind:cretno"/>
  53. <Cell col="9" text="bind:visitno"/>
  54. <Cell col="10" text="bind:erorddeptcd"/>
  55. <Cell col="11" text="bind:grtype"/>
  56. </Band>
  57. </Format>
  58. </Formats>
  59. </Grid>
  60. </Layout>
  61. </Layouts>
  62. <Objects>
  63. <Dataset id="ds_grd_calledpatlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  64. <ColumnInfo>
  65. <Column id="hngnm" type="STRING"/>
  66. <Column id="pid" type="STRING"/>
  67. <Column id="indd" type="STRING"/>
  68. <Column id="grtypenm" type="STRING"/>
  69. <Column id="callgbn" type="STRING"/>
  70. <Column id="calldt" type="STRING"/>
  71. <Column id="disorddeptnm" type="STRING"/>
  72. <Column id="erorddeptnm" type="STRING"/>
  73. <Column id="erorddoctnm" type="STRING"/>
  74. <Column id="instcd" type="STRING"/>
  75. <Column id="cretno" type="STRING"/>
  76. <Column id="visitno" type="STRING"/>
  77. <Column id="erorddeptcd" type="STRING"/>
  78. <Column id="erorddoctcd" type="STRING"/>
  79. <Column id="jobposcd" type="STRING"/>
  80. <Column id="grtype" type="STRING"/>
  81. </ColumnInfo>
  82. </Dataset>
  83. <Dataset id="ds_send_reqdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  84. <Dataset id="ds_main_calledpatlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  85. <ColumnInfo>
  86. <Column id="hngnm" type="STRING"/>
  87. <Column id="pid" type="STRING"/>
  88. <Column id="indd" type="STRING"/>
  89. <Column id="grtypenm" type="STRING"/>
  90. <Column id="callgbn" type="STRING"/>
  91. <Column id="calldt" type="STRING"/>
  92. <Column id="disorddeptnm" type="STRING"/>
  93. <Column id="erorddeptnm" type="STRING"/>
  94. <Column id="erorddoctnm" type="STRING"/>
  95. <Column id="instcd" type="STRING"/>
  96. <Column id="cretno" type="STRING"/>
  97. <Column id="visitno" type="STRING"/>
  98. <Column id="erorddeptcd" type="STRING"/>
  99. <Column id="erorddoctcd" type="STRING"/>
  100. <Column id="jobposcd" type="STRING"/>
  101. <Column id="grtype" type="STRING"/>
  102. </ColumnInfo>
  103. </Dataset>
  104. <Dataset id="ds_callgbn" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  105. <ColumnInfo>
  106. <Column id="label" type="STRING" size="256"/>
  107. <Column id="value" type="STRING" size="256"/>
  108. </ColumnInfo>
  109. <Rows>
  110. <Row>
  111. <Col id="label">일반</Col>
  112. <Col id="value">EE</Col>
  113. </Row>
  114. <Row>
  115. <Col id="label">외상</Col>
  116. <Col id="value">ET</Col>
  117. </Row>
  118. <Row>
  119. <Col id="label">권역외상</Col>
  120. <Col id="value">TT</Col>
  121. </Row>
  122. </Rows>
  123. </Dataset>
  124. <Dataset id="Dataset03" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  125. <Dataset id="Dataset04" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  126. </Objects>
  127. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  128. * System Name :
  129. * Job Name :
  130. * Creator :
  131. * Make Date : 2014-12-10
  132. * Description :
  133. *---------------------------------------------------------------------------------------
  134. * Modify Date Modifier Modify Description
  135. *---------------------------------------------------------------------------------------
  136. * 2014-12-10 Live Converter TF->XP
  137. *
  138. *---------------------------------------------------------------------------------------
  139. ****************************************************************************************/
  140. include "com_commonxp::comm_main.xjs";
  141. include "emr_prcpmngtxp::MMO001.xjs";
  142. var getErCalledPatListInterval = "";
  143. function SPMMO32100_oninit(obj:Form, e:InitEventInfo)
  144. {
  145. frmf_initForm(obj);
  146. }
  147. function SPMMO32100_onload(obj:Form, e:LoadEventInfo)
  148. {
  149. fInitialize();
  150. }
  151. // 초기화
  152. function fInitialize(){
  153. //model.removeNodeset("/root/main/calledpatinfo/calledpatlist");
  154. fGetErCalledPatList();
  155. // getErCalledPatListInterval = window.setInterval("fGetErCalledPatList()", "10000" ); //5초
  156. // model.refresh();
  157. }
  158. function fGetErCalledPatList(){
  159. dsf_makeValue(ds_send_reqdata, "instcd", "string", sysf_getUserInfo("duteplceinstcd")); //model.makeValue("/root/send/reqdata/instcd", getUserInfo("duteplceinstcd"));
  160. var oParam = {};
  161. oParam.id = "TRMMO32101";
  162. oParam.service = "prcpmngtapp.ErMngt";
  163. oParam.method = "reqGetErCalledPatList";
  164. oParam.inds = "req=ds_send_reqdata";
  165. oParam.outds = "ds_main_calledpatlist=calledpatlist";
  166. oParam.async = false;
  167. oParam.callback = "cf_TRMMO32101";
  168. tranf_submit(oParam);
  169. }
  170. function cf_TRMMO32101(sSvcId, nErrorCode, sErrorMsg) {
  171. if(nErrorCode < 0) {
  172. return;
  173. } else {
  174. grd_calledpatlist.setCellProperty("Body", -1, "size", 30); //grd_calledpatlist.rowHeight(0) = 30;
  175. for (i = 0; i < ds_main_calledpatlist.rowcount ; i++) {
  176. grd_calledpatlist.setCellProperty("Body", i, "size", 40); //grd_calledpatlist.rowHeight(i) = 40;
  177. }
  178. }
  179. }
  180. function grd_calledpatlist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  181. {
  182. //if(isDataCell() == true) {
  183. //window.clearInterval(getErCalledPatListInterval);
  184. var hngnm = ds_main_calledpatlist.getColumn(ds_main_calledpatlist.rowposition, "hngnm");
  185. var pid = ds_main_calledpatlist.getColumn(ds_main_calledpatlist.rowposition, "pid");
  186. var indd = ds_main_calledpatlist.getColumn(ds_main_calledpatlist.rowposition, "indd");
  187. var grtypenm = ds_main_calledpatlist.getColumn(ds_main_calledpatlist.rowposition, "grtypenm");
  188. var erorddeptnm = ds_main_calledpatlist.getColumn(ds_main_calledpatlist.rowposition, "erorddeptnm");
  189. var erorddoctnm = ds_main_calledpatlist.getColumn(ds_main_calledpatlist.rowposition, "erorddoctnm");
  190. var instcd = ds_main_calledpatlist.getColumn(ds_main_calledpatlist.rowposition, "instcd");
  191. var cretno = ds_main_calledpatlist.getColumn(ds_main_calledpatlist.rowposition, "cretno");
  192. var visitno = ds_main_calledpatlist.getColumn(ds_main_calledpatlist.rowposition, "visitno");
  193. var erorddeptcd = ds_main_calledpatlist.getColumn(ds_main_calledpatlist.rowposition, "erorddeptcd");
  194. var erorddoctcd = ds_main_calledpatlist.getColumn(ds_main_calledpatlist.rowposition, "erorddoctcd");
  195. var jobposcd = ds_main_calledpatlist.getColumn(ds_main_calledpatlist.rowposition, "jobposcd");
  196. var grtype = ds_main_calledpatlist.getColumn(ds_main_calledpatlist.rowposition, "grtype");
  197. var callgbn = ds_main_calledpatlist.getColumn(ds_main_calledpatlist.rowposition, "callgbn");
  198. var param = hngnm + "/" + pid + "/" + indd + "/" + grtypenm + "/" + erorddeptnm + "/" + instcd + "/" + cretno + "/" + visitno + "/" +erorddeptcd + "/" +grtype + "/" +callgbn + "/" +erorddoctnm + "/" +erorddoctcd + "/" +jobposcd;
  199. frmf_setParameter("SPMMO032100_param", param);
  200. frmf_modal("SPMMO32200", "SPMMO32200", null, false, null, null, null, null, null, null, null, null, "M"); //modal("SPMMO32200");
  201. fGetErCalledPatList();
  202. //getErCalledPatListInterval = window.setInterval("fGetErCalledPatList()", "10000" ); //5초
  203. //}
  204. }
  205. ]]></Script>
  206. </Form>
  207. </FDL>