SPMMO06801_권역외상의사호출내역.xfdl 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPMMO06800" position="absolute 0 0 1186 713" titletext="권역외상의사 호출내역" oninit="SPMMO06801_oninit" onload="SPMMO06801_onload">
  5. <Layouts>
  6. <Layout>
  7. <Grid position="absolute 0 70 1185 713" id="grd_erdrcalllist" taborder="5" binddataset="ds_grd_erdrcalllist" cellsizingtype="both" treeinitstatus="expand,null" treeusecheckbox="false" treeuseexpandkey="true" treeuseimage="false" anchor="all" cellsizebandtype="allband" extendsizetype="row" selecttype="multirow" autofittype="col">
  8. <Formats>
  9. <Format id="default">
  10. <Columns>
  11. <Column size="0" band="left"/>
  12. <Column size="24" band="left"/>
  13. <Column size="60"/>
  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="60"/>
  22. <Column size="60"/>
  23. <Column size="30"/>
  24. <Column size="100"/>
  25. <Column size="85"/>
  26. <Column size="75"/>
  27. <Column size="90"/>
  28. <Column size="100"/>
  29. <Column size="0"/>
  30. <Column size="0"/>
  31. <Column size="75"/>
  32. <Column size="100"/>
  33. <Column size="0"/>
  34. <Column size="192"/>
  35. <Column size="48"/>
  36. <Column size="80"/>
  37. </Columns>
  38. <Rows>
  39. <Row size="24" band="head"/>
  40. <Row size="24"/>
  41. </Rows>
  42. <Band id="head">
  43. <Cell text="levl"/>
  44. <Cell col="1"/>
  45. <Cell col="2" text="환자번호"/>
  46. <Cell col="3" text="indd"/>
  47. <Cell col="4" text="cretno"/>
  48. <Cell col="5" text="visitno"/>
  49. <Cell col="6" text="erorddoctcd"/>
  50. <Cell col="7" text="호출순서"/>
  51. <Cell col="8" text="callcntcno"/>
  52. <Cell col="9" text="callcnts"/>
  53. <Cell col="10" text="이름"/>
  54. <Cell col="11" text="성별/나이"/>
  55. <Cell col="12" text="중증"/>
  56. <Cell col="13" text="내원일시"/>
  57. <Cell col="14" text="진료과"/>
  58. <Cell col="15" text="담당의"/>
  59. <Cell col="16" text="호출번호"/>
  60. <Cell col="17" text="호출일시"/>
  61. <Cell col="18" text="callnm"/>
  62. <Cell col="19" text="callpsnid"/>
  63. <Cell col="20" text="호출자"/>
  64. <Cell col="21" text="도착일시"/>
  65. <Cell col="22" text="visitrgstrid"/>
  66. <Cell col="23" text="호출내용"/>
  67. <Cell col="24" text="호출취소"/>
  68. <Cell col="25" text="소요시간(분)"/>
  69. </Band>
  70. <Band id="body">
  71. <Cell text="bind:lvl"/>
  72. <Cell col="1" celltype="head" text="expr:currow + 1"/>
  73. <Cell col="2" style="align:center middle;" text="bind:pid" suppress="1" suppressalign="middle,over"/>
  74. <Cell col="3" style="align:left middle;" text="bind:indd"/>
  75. <Cell col="4" style="align:left middle;" text="bind:cretno"/>
  76. <Cell col="5" style="align:left middle;" text="bind:visitno"/>
  77. <Cell col="6" style="align:left middle;" text="bind:erorddoctcd"/>
  78. <Cell col="7" style="align:left middle;" text="bind:callno"/>
  79. <Cell col="8" style="align:left middle;" text="bind:callcntcno"/>
  80. <Cell col="9" style="align:left middle;" text="bind:callcnts"/>
  81. <Cell col="10" style="align:center middle;" text="bind:pname" suppress="2" suppressalign="middle,over"/>
  82. <Cell col="11" text="bind:sa" suppress="3" suppressalign="middle,over"/>
  83. <Cell col="12" text="bind:serflag" suppress="4" suppressalign="middle,over"/>
  84. <Cell col="13" text="bind:indt" mask="####-##-## ##:##" suppress="5" suppressalign="middle,over"/>
  85. <Cell col="14" displaytype="combo" edittype="combo" style="padding:0 0 3 3;" text="bind:erorddeptcd" suppress="6" suppressalign="middle,over" combodataset="ds_orddept" combocodecol="deptcd" combodatacol="depthngnm"/>
  86. <Cell col="15" style="align:center middle;" text="bind:erorddoctnm"/>
  87. <Cell col="16" text="bind:dispcallcntcno"/>
  88. <Cell col="17" text="bind:calldt" mask="####-##-## ##:##"/>
  89. <Cell col="18" text="bind:callnm"/>
  90. <Cell col="19" text="bind:callpsnid"/>
  91. <Cell col="20" style="align:center middle;" text="bind:callpsnnm"/>
  92. <Cell col="21" text="bind:arrivdt" mask="expr:(!utlf_isNull(arrivdt) &amp;&amp; arrivdt != &quot;--------------&quot;) ? &quot;####-##-## ##:##&quot; : &quot;&quot;"/>
  93. <Cell col="22" text="bind:visitrgstrid"/>
  94. <Cell col="23" displaytype="text" style="align:left top;padding:3 2 1 2;" text="bind:callcnts" wordwrap="char"/>
  95. <Cell col="24" displaytype="normal" style="align:center;" text="bind:histcd"/>
  96. <Cell col="25" style="align:center middle;" text="bind:usetm"/>
  97. </Band>
  98. </Format>
  99. </Formats>
  100. </Grid>
  101. <Static text="권역외상의사 호출내역" position="absolute 0 52 179 68" align="align:center middle;" id="caption2" class="tit_2"/>
  102. <Shape position="absolute 987 7 993 39" linetype="vertical" id="line3"/>
  103. <Div id="Div00" taborder="6" position="absolute 0 0 1185 46" class="div_SA" anchor="left top right">
  104. <Layouts>
  105. <Layout>
  106. <Static id="caption11" text="호출일자" class="search_name" position="absolute 11 14 87 34" anchor="default"/>
  107. <Calendar id="input11" taborder="0" position="absolute 80 14 170 33" anchor="default" dateformat="yyyy-MM-dd" value="null" autoselect="true" autoskip="true"/>
  108. <Static id="caption1" text="진료과 / 담당의" class="search_name" position="absolute 301 14 419 34" anchor="default"/>
  109. <Combo id="combo2" taborder="3" innerdataset="ds_userlist" codecolumn="userid" datacolumn="usernm" position="absolute 519 14 619 34" anchor="default"/>
  110. <Static id="caption3" text="등록번호" class="search_name" position="absolute 641 14 710 34" anchor="default"/>
  111. <Edit id="input1" taborder="4" position="absolute 714 14 792 34" anchor="default" autoselect="true" onkeyup="Div00_input1_onkeyup"/>
  112. <Edit id="input2" taborder="5" enable="false" position="absolute 793 14 862 34" anchor="default"/>
  113. <Combo id="cmb_orddept" taborder="2" innerdataset="ds_orddept" codecolumn="deptcd" datacolumn="depthngnm" position="absolute 416 14 516 34" anchor="default" onitemchanged="Div00_cmb_orddept_onitemchanged"/>
  114. <Button id="btn_req" taborder="7" text="조회" class="btn1" position="absolute 1121 14 1177 34" anchor="top right" onclick="Div00_btn_req_onclick"/>
  115. <Calendar id="input00" taborder="1" autoselect="true" dateformat="yyyy-MM-dd" position="absolute 190 14 280 33" anchor="default" autoskip="true"/>
  116. <Static id="Static00" text="~" position="absolute 175 19 188 30" onclick="Div00_Static00_onclick" anchor="default"/>
  117. <CheckBox id="chk_resyn" taborder="6" text="전공의 포함" value="N" truevalue="Y" falsevalue="N" position="absolute 875 6 959 22"/>
  118. <CheckBox id="chk_viewall" taborder="8" text="외상호출 취소" value="N" truevalue="Y" falsevalue="N" position="absolute 876 26 974 42"/>
  119. </Layout>
  120. </Layouts>
  121. </Div>
  122. <Grid id="grd_excel" taborder="7" useinputpanel="false" position="absolute 0 152 1181 471" binddataset="ds_grd_erdrcalllist" visible="false">
  123. <Formats>
  124. <Format id="default">
  125. <Columns>
  126. <Column size="80"/>
  127. <Column size="80"/>
  128. <Column size="80"/>
  129. <Column size="80"/>
  130. <Column size="80"/>
  131. <Column size="80"/>
  132. <Column size="80"/>
  133. <Column size="80"/>
  134. <Column size="80"/>
  135. <Column size="80"/>
  136. <Column size="80"/>
  137. <Column size="80"/>
  138. <Column size="80"/>
  139. <Column size="80"/>
  140. <Column size="80"/>
  141. <Column size="365"/>
  142. <Column size="110"/>
  143. <Column size="80"/>
  144. <Column size="110"/>
  145. <Column size="80"/>
  146. <Column size="80"/>
  147. <Column size="80"/>
  148. </Columns>
  149. <Rows>
  150. <Row size="24" band="head"/>
  151. <Row size="24"/>
  152. </Rows>
  153. <Band id="head">
  154. <Cell displaytype="normal" text="instcd"/>
  155. <Cell col="1" displaytype="normal" text="pid"/>
  156. <Cell col="2" displaytype="normal" text="indd"/>
  157. <Cell col="3" displaytype="normal" text="cretno"/>
  158. <Cell col="4" displaytype="normal" text="visitno"/>
  159. <Cell col="5" displaytype="normal" text="erorddoctcd"/>
  160. <Cell col="6" displaytype="normal" text="callno"/>
  161. <Cell col="7" displaytype="normal" text="serflag"/>
  162. <Cell col="8" displaytype="normal" text="pname"/>
  163. <Cell col="9" displaytype="normal" text="sa"/>
  164. <Cell col="10" displaytype="normal" text="erorddeptcd"/>
  165. <Cell col="11" displaytype="normal" text="erorddeptnm"/>
  166. <Cell col="12" displaytype="normal" text="erorddoctnm"/>
  167. <Cell col="13" displaytype="normal" text="mainsubflag"/>
  168. <Cell col="14" displaytype="normal" text="callcntcno"/>
  169. <Cell col="15" displaytype="normal" text="callcnts"/>
  170. <Cell col="16" displaytype="normal" text="calldt"/>
  171. <Cell col="17" displaytype="normal" text="callpsnnm"/>
  172. <Cell col="18" displaytype="normal" text="arrivdt"/>
  173. <Cell col="19" displaytype="normal" text="visitrgstnm"/>
  174. <Cell col="20" displaytype="normal" text="usetm"/>
  175. <Cell col="21" displaytype="normal" text="dispcallcntcno"/>
  176. </Band>
  177. <Band id="body">
  178. <Cell displaytype="text" text="bind:instcd"/>
  179. <Cell col="1" displaytype="normal" text="bind:pid"/>
  180. <Cell col="2" displaytype="normal" text="bind:indd"/>
  181. <Cell col="3" displaytype="normal" text="bind:cretno"/>
  182. <Cell col="4" displaytype="normal" text="bind:visitno"/>
  183. <Cell col="5" displaytype="text" style="align:center;" text="bind:erorddoctcd"/>
  184. <Cell col="6" displaytype="normal" text="bind:callno"/>
  185. <Cell col="7" displaytype="normal" text="bind:serflag"/>
  186. <Cell col="8" displaytype="normal" text="bind:pname"/>
  187. <Cell col="9" displaytype="normal" text="bind:sa"/>
  188. <Cell col="10" displaytype="normal" text="bind:erorddeptcd"/>
  189. <Cell col="11" displaytype="normal" text="bind:erorddeptnm"/>
  190. <Cell col="12" displaytype="normal" text="bind:erorddoctnm"/>
  191. <Cell col="13" displaytype="normal" text="bind:mainsubflag"/>
  192. <Cell col="14" displaytype="text" style="align:center;" text="bind:callcntcno"/>
  193. <Cell col="15" displaytype="normal" text="bind:callcnts"/>
  194. <Cell col="16" displaytype="text" style="align:center;" text="bind:calldt"/>
  195. <Cell col="17" displaytype="normal" text="bind:callpsnnm"/>
  196. <Cell col="18" displaytype="text" style="align:center;" text="bind:arrivdt"/>
  197. <Cell col="19" displaytype="normal" text="bind:visitrgstnm"/>
  198. <Cell col="20" displaytype="normal" text="bind:usetm"/>
  199. <Cell col="21" displaytype="normal" text="bind:dispcallcntcno"/>
  200. </Band>
  201. </Format>
  202. </Formats>
  203. </Grid>
  204. <Button id="btn_excel1" taborder="8" text="엑셀1" onclick="btn_excel1_onclick" class="btn7" position="absolute 984 14 1045 34" anchor="top right" visible="false"/>
  205. <Button id="btn_excel2" taborder="9" text="엑셀2" class="btn7" position="absolute 1047 14 1108 34" anchor="top right" onclick="btn_excel2_onclick" visible="false"/>
  206. </Layout>
  207. </Layouts>
  208. <Objects>
  209. <Dataset id="ds_grd_erdrcalllist" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  210. <ColumnInfo>
  211. <Column id="instcd" type="STRING"/>
  212. <Column id="pid" type="STRING"/>
  213. <Column id="indd" type="STRING"/>
  214. <Column id="cretno" type="STRING"/>
  215. <Column id="indt" type="STRING"/>
  216. <Column id="visitno" type="STRING"/>
  217. <Column id="erorddoctcd" type="STRING"/>
  218. <Column id="callno" type="STRING"/>
  219. <Column id="serflag" type="STRING"/>
  220. <Column id="pname" type="STRING"/>
  221. <Column id="sa" type="STRING"/>
  222. <Column id="erorddeptcd" type="STRING"/>
  223. <Column id="erorddeptnm" type="STRING"/>
  224. <Column id="erorddoctnm" type="STRING"/>
  225. <Column id="mainsubflag" type="STRING"/>
  226. <Column id="callcntcno" type="STRING"/>
  227. <Column id="callcnts" type="STRING"/>
  228. <Column id="calldt" type="STRING"/>
  229. <Column id="callpsnnm" type="STRING"/>
  230. <Column id="arrivdt" type="STRING"/>
  231. <Column id="visitrgstnm" type="STRING"/>
  232. <Column id="usetm" type="STRING"/>
  233. <Column id="dispcallcntcno" type="STRING"/>
  234. <Column id="histcd" type="STRING" size="256" sumtext="호출취소(L)"/>
  235. </ColumnInfo>
  236. <Rows>
  237. <Row/>
  238. </Rows>
  239. </Dataset>
  240. <Dataset id="ds_userlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  241. <ColumnInfo>
  242. <Column id="usernm" type="STRING"/>
  243. <Column id="userid" type="STRING"/>
  244. </ColumnInfo>
  245. </Dataset>
  246. <Dataset id="ds_orddept" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  247. <ColumnInfo>
  248. <Column id="depthngnm" type="STRING"/>
  249. <Column id="deptcd" type="STRING"/>
  250. </ColumnInfo>
  251. </Dataset>
  252. <Dataset id="ds_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  253. <ColumnInfo>
  254. <Column id="fromdd" type="STRING" size="256"/>
  255. <Column id="todd" type="STRING" size="256"/>
  256. <Column id="orddeptcd" type="STRING" size="256"/>
  257. <Column id="orddrid" type="STRING" size="256"/>
  258. <Column id="pid" type="STRING" size="256"/>
  259. <Column id="hngnm" type="STRING" size="256"/>
  260. <Column id="resyn" type="STRING" size="256"/>
  261. <Column id="viewdel" type="STRING" size="256" sumtext="N : 삭제포함 , Y : 삭제만"/>
  262. </ColumnInfo>
  263. <Rows>
  264. <Row>
  265. <Col id="resyn">N</Col>
  266. <Col id="hngnm"/>
  267. <Col id="pid"/>
  268. <Col id="orddrid"/>
  269. <Col id="orddeptcd"/>
  270. <Col id="todd"/>
  271. <Col id="fromdd"/>
  272. <Col id="viewdel">N</Col>
  273. </Row>
  274. </Rows>
  275. </Dataset>
  276. <Dataset id="ds_reqdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  277. <Dataset id="ds_patnm" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  278. <Dataset id="ds_mainyn" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  279. <ColumnInfo>
  280. <Column id="label" type="STRING" size="256"/>
  281. <Column id="value" type="STRING" size="256"/>
  282. </ColumnInfo>
  283. <Rows>
  284. <Row>
  285. <Col id="label">주</Col>
  286. <Col id="value">M</Col>
  287. </Row>
  288. <Row>
  289. <Col id="label">부</Col>
  290. <Col id="value">S</Col>
  291. </Row>
  292. </Rows>
  293. </Dataset>
  294. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  295. <ColumnInfo>
  296. <Column id="userid" type="STRING" size="256" sumtext="userid"/>
  297. <Column id="dutplcecd" type="STRING" size="256" sumtext="dutplcecd"/>
  298. <Column id="workdd" type="STRING" size="256" sumtext="workdd"/>
  299. </ColumnInfo>
  300. <Rows>
  301. <Row/>
  302. </Rows>
  303. </Dataset>
  304. <Dataset id="ds_userinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  305. <ColumnInfo>
  306. <Column id="superuser" type="STRING" size="256" sumtext="근무확인"/>
  307. </ColumnInfo>
  308. <Rows>
  309. <Row/>
  310. </Rows>
  311. </Dataset>
  312. </Objects>
  313. <Bind>
  314. <BindItem id="item0" compid="Div00.input11" propid="value" datasetid="ds_cond" columnid="fromdd"/>
  315. <BindItem id="item1" compid="Div00.cmb_orddept" propid="value" datasetid="ds_cond" columnid="orddeptcd"/>
  316. <BindItem id="item2" compid="Div00.combo2" propid="value" datasetid="ds_cond" columnid="orddrid"/>
  317. <BindItem id="item3" compid="Div00.input1" propid="value" datasetid="ds_cond" columnid="pid"/>
  318. <BindItem id="item4" compid="Div00.input2" propid="value" datasetid="ds_cond" columnid="hngnm"/>
  319. <BindItem id="item5" compid="Div00.input00" propid="value" datasetid="ds_cond" columnid="todd"/>
  320. <BindItem id="item6" compid="" propid="" datasetid="ds_grd_erdrcalllist" columnid=""/>
  321. <BindItem id="item7" compid="Div00.chk_resyn" propid="value" datasetid="ds_cond" columnid="resyn"/>
  322. <BindItem id="item8" compid="Div00.chk_viewall" propid="value" datasetid="ds_cond" columnid="viewdel"/>
  323. </Bind>
  324. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  325. * System Name :
  326. * Job Name :
  327. * Creator :
  328. * Make Date : 2014-08-29
  329. * Description :
  330. *---------------------------------------------------------------------------------------
  331. * Modify Date Modifier Modify Description
  332. *---------------------------------------------------------------------------------------
  333. * 2014-08-29 Live Converter TF->XP
  334. *
  335. *---------------------------------------------------------------------------------------
  336. ****************************************************************************************/
  337. include "com_commonxp::comm_main.xjs";
  338. include "emr_prcpmngtxp::MMO001.xjs";
  339. function SPMMO06801_oninit(obj:Form, e:InitEventInfo)
  340. {
  341. frmf_initForm(obj);
  342. grdf_initGrid(grd_erdrcalllist);
  343. }
  344. function SPMMO06801_onload(obj:Form, e:LoadEventInfo)
  345. {
  346. grdf_setToolTipBind(grd_erdrcalllist);
  347. var currentDate = utlf_getCurrentDate();
  348. lf_mmbfGetDeptCodeComboList(ds_orddept, "D", currentDate);
  349. frmf_addComboItem("Div00.cmb_orddept"); //진료과 전체항목 추가
  350. frmf_addComboItem("Div00.combo2"); //의사콤보 전체항목 추가
  351. ds_cond.setColumn(0, "fromdd", currentDate);
  352. ds_cond.setColumn(0, "todd", currentDate);
  353. ds_cond.setColumn(0, "pid", "");
  354. ds_cond.setColumn(0, "hngnm", "");
  355. ds_cond.setColumn(0, "orddeptcd", "-");
  356. ds_cond.setColumn(0, "orddrid" , "-");
  357. ds_send.setColumn(0, "userid", sysf_getUserInfo("userid"));
  358. ds_send.setColumn(0, "dutplcecd", "2870000000");
  359. ds_send.setColumn(0, "workdd", currentDate);
  360. var oParam = {};
  361. oParam.id = "TRMNE05805";
  362. oParam.service = "ercareapp.ERPatMngt";
  363. oParam.method = "reqGetSuperUserTCenter";
  364. oParam.inds = "req=ds_send";
  365. oParam.outds = "ds_userinfo=userinfo";
  366. oParam.async = false;
  367. tranf_submit(oParam);
  368. var sSuperUser = ds_userinfo.getColumn(0, "superuser");
  369. if (sSuperUser == "Y") {
  370. btn_excel1.visible = true;
  371. btn_excel2.visible = true;
  372. } else {
  373. btn_excel1.visible = false;
  374. btn_excel2.visible = false;
  375. }
  376. fReqERDrCallHistList();
  377. }
  378. function Div00_btn_req_onclick(obj:Button, e:ClickEventInfo)
  379. {
  380. fReqERDrCallHistList();
  381. }
  382. function Div00_cmb_orddept_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  383. {
  384. lf_mmbfGetUserComboList(ds_userlist, obj.value, "0330"); //전체로 변경이 아닌 경우, 해당부서 의사조회
  385. frmf_addComboItem("Div00.combo2"); //의사콤보 전체항목 추가
  386. Div00.combo2.value ="-";
  387. ds_cond.setColumn(0, "orddrid", "-");
  388. //Div00.combo2.updateToDataset();
  389. }
  390. function fReConcPhone(){
  391. var totrow = ds_grd_erdrcalllist.rowcount;
  392. var dispcallcntcno = "";
  393. var callcntcno = "";
  394. for(var currow = 0; currow < totrow; currow++){
  395. dispcallcntcno = "";
  396. callcntcno = ds_grd_erdrcalllist.getColumn(currow, "callcntcno");
  397. if(callcntcno.length == 11){
  398. dispcallcntcno = callcntcno.substr(0, 3) + "-" + callcntcno.substr(3, 4) + "-" + callcntcno.substr(7, 4);
  399. } else if (callcntcno.length == 10){
  400. dispcallcntcno = callcntcno.substr(0, 3) + "-" + callcntcno.substr(3, 3) + "-" + callcntcno.substr(6, 4);
  401. } else {
  402. dispcallcntcno = callcntcno;
  403. }
  404. ds_grd_erdrcalllist.setColumn(currow, "dispcallcntcno", dispcallcntcno);
  405. }
  406. }
  407. /**
  408. * @desc 응급실의사 호출내역 조회
  409. */
  410. function fReqERDrCallHistList(){
  411. ds_reqdata.copyData(ds_cond);
  412. var oParam = {};
  413. oParam.id = "TRMMO06802";
  414. oParam.service = "prcpmngtapp.ErMngt";
  415. oParam.method = "reqGetTOrdDrCallHist";
  416. oParam.inds = "req=ds_reqdata";
  417. oParam.outds = "ds_grd_erdrcalllist=torddrcallhist";
  418. oParam.async = true;
  419. oParam.callback = "cf_TRMMO06802";
  420. tranf_submit(oParam);
  421. }
  422. function cf_TRMMO06802(sSvcId, nErrorCode, sErrorMsg) {
  423. if(nErrorCode < 0) return;
  424. fReConcPhone();
  425. }
  426. function Div00_input1_onkeyup(obj:Edit, e:KeyEventInfo)
  427. {
  428. if(e.keycode == 13) {
  429. if(utlf_isNull(obj.value)){
  430. return;
  431. }
  432. obj.updateToDataset();
  433. if(lf_reqPatInfo(ds_patnm, "pid", "ptbs", obj.value)) {
  434. ds_cond.setColumn(0, "hngnm", ds_patnm.getColumn(0, "hngnm"));
  435. fReqERDrCallHistList();
  436. }
  437. }
  438. }
  439. function btn_excel1_onclick(obj:Button, e:ClickEventInfo)
  440. {
  441. var sToDd = ds_cond.getColumn(0, "todd");
  442. var title = utlf_splitDateS(sToDd, "-") + " 권역외상의사 호출내역1";
  443. grdf_exportExcel(grd_excel, title, sToDd, false, "", "user");
  444. }
  445. function btn_excel2_onclick(obj:Button, e:ClickEventInfo)
  446. {
  447. var sToDd = ds_cond.getColumn(0, "todd");
  448. var title = utlf_splitDateS(sToDd, "-") + " 권역외상의사 호출내역2";
  449. grdf_exportExcel(grd_erdrcalllist, title, sToDd, false, "", "user");
  450. }
  451. ]]></Script>
  452. </Form>
  453. </FDL>