SPMMO06800_응급실의사호출내역.xfdl 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.4">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPMMO06800" position="absolute 0 0 1086 713" titletext="응급실의사 호출내역" oninit="SPMMO06800_oninit" onload="SPMMO06800_onload">
  5. <Layouts>
  6. <Layout>
  7. <Grid position="absolute 0 70 1086 713" id="grd_erdrcalllist" taborder="5" binddataset="ds_grd_erdrcalllist" cellsizingtype="col" treeinitstatus="expand,null" treeusecheckbox="false" treeuseexpandkey="true" treeuseimage="false" anchor="all">
  8. <Formats>
  9. <Format id="default">
  10. <Columns>
  11. <Column size="43"/>
  12. <Column size="0"/>
  13. <Column size="75"/>
  14. <Column size="0"/>
  15. <Column size="0"/>
  16. <Column size="0"/>
  17. <Column size="0"/>
  18. <Column size="0"/>
  19. <Column size="0"/>
  20. <Column size="0"/>
  21. <Column size="85"/>
  22. <Column size="99"/>
  23. <Column size="80"/>
  24. <Column size="29"/>
  25. <Column size="93"/>
  26. <Column size="107"/>
  27. <Column size="0"/>
  28. <Column size="0"/>
  29. <Column size="80"/>
  30. <Column size="107"/>
  31. <Column size="0"/>
  32. <Column size="80"/>
  33. <Column size="190"/>
  34. </Columns>
  35. <Rows>
  36. <Row size="24" band="head"/>
  37. <Row size="24"/>
  38. </Rows>
  39. <Band id="head">
  40. <Cell/>
  41. <Cell col="1" text="levl"/>
  42. <Cell col="2" text="환자번호"/>
  43. <Cell col="3" text="indd"/>
  44. <Cell col="4" text="cretno"/>
  45. <Cell col="5" text="visitno"/>
  46. <Cell col="6" text="erorddoctcd"/>
  47. <Cell col="7" text="호출순서"/>
  48. <Cell col="8" text="callcntcno"/>
  49. <Cell col="9" text="callcnts"/>
  50. <Cell col="10" text="이름"/>
  51. <Cell col="11" text="진료과"/>
  52. <Cell col="12" text="담당의"/>
  53. <Cell col="13"/>
  54. <Cell col="14" text="호출번호"/>
  55. <Cell col="15" text="호출일시"/>
  56. <Cell col="16" text="callnm"/>
  57. <Cell col="17" text="callpsnid"/>
  58. <Cell col="18" text="호출자"/>
  59. <Cell col="19" text="도착일시"/>
  60. <Cell col="20" text="visitrgstrid"/>
  61. <Cell col="21" text="등록자"/>
  62. <Cell col="22" text="호출내용"/>
  63. </Band>
  64. <Band id="body">
  65. <Cell displaytype="tree" edittype="tree" style="align:left middle;" text="bind:outline" treestartlevel="1" treelevel="bind:lvl"/>
  66. <Cell col="1" text="bind:lvl"/>
  67. <Cell col="2" style="align:left middle;" text="bind:pid"/>
  68. <Cell col="3" style="align:left middle;" text="bind:indd"/>
  69. <Cell col="4" style="align:left middle;" text="bind:cretno"/>
  70. <Cell col="5" style="align:left middle;" text="bind:visitno"/>
  71. <Cell col="6" style="align:left middle;" text="bind:erorddoctcd"/>
  72. <Cell col="7" style="align:left middle;" text="bind:callno"/>
  73. <Cell col="8" style="align:left middle;" text="bind:callcntcno"/>
  74. <Cell col="9" style="align:left middle;" text="bind:callcnts"/>
  75. <Cell col="10" style="align:left middle;" text="bind:pname"/>
  76. <Cell col="11" displaytype="combo" edittype="combo" text="bind:erorddeptcd" combodataset="ds_orddept" combocodecol="deptcd" combodatacol="depthngnm"/>
  77. <Cell col="12" style="align:left middle;" text="bind:erorddoctnm"/>
  78. <Cell col="13" displaytype="combo" edittype="combo" style="align:center middle;" text="bind:mainyn" combodataset="ds_mainyn" combocodecol="value" combodatacol="label"/>
  79. <Cell col="14" text="bind:dispcallcntcno"/>
  80. <Cell col="15" text="bind:calldt" mask="####-##-## ##:##"/>
  81. <Cell col="16" text="bind:callnm"/>
  82. <Cell col="17" text="bind:callpsnid"/>
  83. <Cell col="18" style="align:left middle;" text="bind:callpsnnm"/>
  84. <Cell col="19" text="bind:arrivdt" mask="expr:(!utlf_isNull(arrivdt) &amp;&amp; arrivdt != &quot;--------------&quot;) ? &quot;####-##-## ##:##&quot; : &quot;&quot;"/>
  85. <Cell col="20" text="bind:visitrgstrid"/>
  86. <Cell col="21" style="align:left middle;" text="bind:visitrgstnm"/>
  87. <Cell col="22" style="align:left middle;" text="bind:callcnts"/>
  88. </Band>
  89. </Format>
  90. </Formats>
  91. </Grid>
  92. <Static text="응급실의사 호출내역" position="absolute 0 49 161 69" align="align:center middle;" id="caption2" class="tit_2"/>
  93. <Shape position="absolute 987 7 993 39" linetype="vertical" id="line3"/>
  94. <Div id="Div00" taborder="6" position="absolute 0 0 1086 46" class="div_SA" anchor="left top right">
  95. <Layouts>
  96. <Layout>
  97. <Static id="caption11" text="호출일자" class="search_name" position="absolute 11 14 87 34" anchor="default"/>
  98. <Calendar id="input11" taborder="1" position="absolute 96 14 196 33" anchor="default" dateformat="yyyy-MM-dd" value="null" autoselect="true"/>
  99. <Static id="caption1" text="진료과 / 담당의" class="search_name" position="absolute 285 14 403 34" anchor="default"/>
  100. <Combo id="combo2" taborder="3" innerdataset="ds_userlist" codecolumn="userid" datacolumn="usernm" position="absolute 519 14 619 34" anchor="default"/>
  101. <Static id="caption3" text="등록번호" class="search_name" position="absolute 681 14 750 34" anchor="default"/>
  102. <Edit id="input1" taborder="4" position="absolute 762 14 846 34" anchor="default" onkeydown="Div00_input1_onkeydown" autoselect="true"/>
  103. <Edit id="input2" taborder="5" enable="false" position="absolute 849 14 937 34" anchor="default"/>
  104. <Combo id="cmb_orddept" taborder="6" innerdataset="ds_orddept" codecolumn="deptcd" datacolumn="depthngnm" position="absolute 416 14 516 34" anchor="default" onitemchanged="Div00_cmb_orddept_onitemchanged"/>
  105. <Button id="btn_req" taborder="2" text="조회" class="btn1" position="absolute 1017 14 1073 34" anchor="top right" onclick="Div00_btn_req_onclick"/>
  106. </Layout>
  107. </Layouts>
  108. </Div>
  109. </Layout>
  110. </Layouts>
  111. <Objects>
  112. <Dataset id="ds_grd_erdrcalllist" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  113. <ColumnInfo>
  114. <Column id="outline" type="STRING"/>
  115. <Column id="lvl" type="STRING"/>
  116. <Column id="pid" type="STRING"/>
  117. <Column id="indd" type="STRING"/>
  118. <Column id="cretno" type="STRING"/>
  119. <Column id="visitno" type="STRING"/>
  120. <Column id="erorddoctcd" type="STRING"/>
  121. <Column id="callno" type="STRING"/>
  122. <Column id="callcntcno" type="STRING"/>
  123. <Column id="callcnts" type="STRING"/>
  124. <Column id="pname" type="STRING"/>
  125. <Column id="erorddeptcd" type="STRING"/>
  126. <Column id="erorddoctnm" type="STRING"/>
  127. <Column id="mainyn" type="STRING"/>
  128. <Column id="dispcallcntcno" type="STRING"/>
  129. <Column id="calldt" type="STRING"/>
  130. <Column id="callnm" type="STRING"/>
  131. <Column id="callpsnid" type="STRING"/>
  132. <Column id="callpsnnm" type="STRING"/>
  133. <Column id="arrivdt" type="STRING"/>
  134. <Column id="visitrgstrid" type="STRING"/>
  135. <Column id="visitrgstnm" type="STRING"/>
  136. <Column id="callcnts" type="STRING"/>
  137. </ColumnInfo>
  138. <Rows>
  139. <Row/>
  140. </Rows>
  141. </Dataset>
  142. <Dataset id="ds_userlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  143. <ColumnInfo>
  144. <Column id="usernm" type="STRING"/>
  145. <Column id="userid" type="STRING"/>
  146. </ColumnInfo>
  147. </Dataset>
  148. <Dataset id="ds_orddept" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  149. <ColumnInfo>
  150. <Column id="depthngnm" type="STRING"/>
  151. <Column id="deptcd" type="STRING"/>
  152. </ColumnInfo>
  153. </Dataset>
  154. <Dataset id="ds_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  155. <ColumnInfo>
  156. <Column id="calldd" type="STRING" size="256"/>
  157. <Column id="orddeptcd" type="STRING" size="256"/>
  158. <Column id="orddrid" type="STRING" size="256"/>
  159. <Column id="pid" type="STRING" size="256"/>
  160. <Column id="hngnm" type="STRING" size="256"/>
  161. </ColumnInfo>
  162. <Rows>
  163. <Row/>
  164. </Rows>
  165. </Dataset>
  166. <Dataset id="ds_reqdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  167. <Dataset id="ds_patnm" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  168. <Dataset id="ds_mainyn" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  169. <ColumnInfo>
  170. <Column id="label" type="STRING" size="256"/>
  171. <Column id="value" type="STRING" size="256"/>
  172. </ColumnInfo>
  173. <Rows>
  174. <Row>
  175. <Col id="label">주</Col>
  176. <Col id="value">M</Col>
  177. </Row>
  178. <Row>
  179. <Col id="label">부</Col>
  180. <Col id="value">S</Col>
  181. </Row>
  182. </Rows>
  183. </Dataset>
  184. </Objects>
  185. <Bind>
  186. <BindItem id="item0" compid="Div00.input11" propid="value" datasetid="ds_cond" columnid="calldd"/>
  187. <BindItem id="item1" compid="Div00.cmb_orddept" propid="value" datasetid="ds_cond" columnid="orddeptcd"/>
  188. <BindItem id="item2" compid="Div00.combo2" propid="value" datasetid="ds_cond" columnid="orddrid"/>
  189. <BindItem id="item3" compid="Div00.input1" propid="value" datasetid="ds_cond" columnid="pid"/>
  190. <BindItem id="item4" compid="Div00.input2" propid="value" datasetid="ds_cond" columnid="hngnm"/>
  191. </Bind>
  192. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  193. * System Name :
  194. * Job Name :
  195. * Creator :
  196. * Make Date : 2014-08-29
  197. * Description :
  198. *---------------------------------------------------------------------------------------
  199. * Modify Date Modifier Modify Description
  200. *---------------------------------------------------------------------------------------
  201. * 2014-08-29 Live Converter TF->XP
  202. *
  203. *---------------------------------------------------------------------------------------
  204. ****************************************************************************************/
  205. include "com_commonxp::comm_main.xjs";
  206. include "emr_prcpmngtxp::MMO001.xjs";
  207. function SPMMO06800_oninit(obj:Form, e:InitEventInfo)
  208. {
  209. frmf_initForm(obj);
  210. }
  211. function SPMMO06800_onload(obj:Form, e:LoadEventInfo)
  212. {
  213. var currentDate = utlf_getCurrentDate();
  214. ds_cond.setColumn(0, "calldd", currentDate);
  215. lf_mmbfGetDeptCodeComboList(ds_orddept, "D", currentDate);
  216. frmf_addComboItem("Div00.cmb_orddept"); //진료과 전체항목 추가
  217. frmf_addComboItem("Div00.combo2"); //의사콤보 전체항목 추가
  218. if(frmf_checkOpener()){
  219. var pid = opener.frmf_getParameter("SPMMO06800_pid");
  220. var hngnm = opener.frmf_getParameter("SPMMO06800_hngnm");
  221. }
  222. if(utlf_isNull(pid)){
  223. pid = appf_getPatientInfo("pid");
  224. hngnm = appf_getPatientInfo("pname");
  225. }
  226. ds_cond.setColumn(0, "pid" , pid);
  227. ds_cond.setColumn(0, "hngnm" , hngnm);
  228. ds_cond.setColumn(0, "orddeptcd", "-");
  229. ds_cond.setColumn(0, "orddrid" , "-");
  230. fReqERDrCallHistList();
  231. }
  232. function Div00_btn_req_onclick(obj:Button, e:ClickEventInfo)
  233. {
  234. fReqERDrCallHistList();
  235. }
  236. function Div00_cmb_orddept_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  237. {
  238. lf_mmbfGetUserComboList(ds_userlist, obj.value, "0330"); //전체로 변경이 아닌 경우, 해당부서 의사조회
  239. frmf_addComboItem("Div00.combo2"); //의사콤보 전체항목 추가
  240. ds_cond.setColumn(0, "orddrid", "-");
  241. }
  242. function Div00_input1_onkeydown(obj:Edit, e:KeyEventInfo)
  243. {
  244. if(e.keycode == 13) {
  245. if(utlf_isNull(obj.value)){
  246. return;
  247. }
  248. if(lf_reqPatInfo(ds_patnm, "pid", "ptbs", obj.value)) {
  249. ds_cond.setColumn(0, "hngnm", ds_patnm.getColumn(0, "hngnm"));
  250. fReqERDrCallHistList();
  251. }
  252. }
  253. }
  254. function fReConcPhone(){
  255. var totrow = ds_grd_erdrcalllist.rowcount;
  256. for(var currow = 0; currow < totrow; currow++){
  257. var callcntcno = ds_grd_erdrcalllist.getColumn(currow, "callcntcno");
  258. if(callcntcno.length == 11){
  259. var dispcallcntcno = callcntcno.substr(0, 3) + "-" + callcntcno.substr(3, 4) + "-" + callcntcno.substr(7, 4);
  260. }else if(callcntcno.length == 10){
  261. var dispcallcntcno = callcntcno.substr(0, 3) + "-" + callcntcno.substr(3, 3) + "-" + callcntcno.substr(6, 4);
  262. }
  263. ds_grd_erdrcalllist.setColumn(currow, "dispcallcntcno", dispcallcntcno);
  264. }
  265. }
  266. /**
  267. * @desc 응급실의사 호출내역 조회
  268. */
  269. function fReqERDrCallHistList(){
  270. ds_reqdata.copyData(ds_cond);
  271. var oParam = {};
  272. oParam.id = "TRMMO06801";
  273. oParam.service = "prcpmngtapp.ErMngt";
  274. oParam.method = "reqGetEROrdDrCallHist";
  275. oParam.inds = "req=ds_reqdata";
  276. oParam.outds = "ds_grd_erdrcalllist=erorddrcallhist";
  277. oParam.async = true;
  278. oParam.callback = "cf_TRMMO06801";
  279. tranf_submit(oParam);
  280. }
  281. function cf_TRMMO06801(sSvcId, nErrorCode, sErrorMsg) {
  282. if(nErrorCode < 0) return;
  283. fReConcPhone();
  284. }
  285. ]]></Script>
  286. </Form>
  287. </FDL>