SMAES08000_영상CVR조회.xfdl 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMAES08000" position="absolute 0 0 1180 750" titletext="영상CVR 전송내역조회" ontimer="SMMMD08600_ontimer" oninit="SMAES08000_oninit" onload="SMAES08000_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static text="영상 CVR 조회" position="absolute 0 0 177 25" align="align:center middle;" id="caption9" class="tit_1"/>
  8. <Shape id="line1" class="line_10" position="absolute 0 112 1180 118" anchor="left top right"/>
  9. <Grid position="absolute 0 117 1180 744" id="datagrid1" binddataset="ds_cvrlist" anchor="all" scrollpixel="all" treeusecheckbox="false" treeuseimage="false" cellclickbound="cell" cellsizingtype="col" treeinitstatus="expand,all" selecttype="multirow" cellsizebandtype="allband" autosizingtype="row" autofittype="none" oncelldblclick="datagrid1_oncelldblclick">
  10. <Formats>
  11. <Format id="default">
  12. <Columns>
  13. <Column size="25" band="left"/>
  14. <Column size="70" band="left"/>
  15. <Column size="120" band="left"/>
  16. <Column size="55" band="left"/>
  17. <Column size="50" band="left"/>
  18. <Column size="110"/>
  19. <Column size="110"/>
  20. <Column size="200"/>
  21. <Column size="50"/>
  22. <Column size="80"/>
  23. <Column size="50"/>
  24. <Column size="50"/>
  25. <Column size="50"/>
  26. <Column size="0"/>
  27. <Column size="110"/>
  28. <Column size="260"/>
  29. <Column size="50"/>
  30. <Column size="110"/>
  31. <Column size="0"/>
  32. <Column size="0"/>
  33. <Column size="0"/>
  34. <Column size="0"/>
  35. <Column size="0"/>
  36. <Column size="0"/>
  37. <Column size="0"/>
  38. <Column size="0"/>
  39. <Column size="0"/>
  40. <Column size="0"/>
  41. <Column size="0"/>
  42. <Column size="0"/>
  43. <Column size="0"/>
  44. <Column size="150"/>
  45. </Columns>
  46. <Rows>
  47. <Row size="24" band="head"/>
  48. <Row size="24"/>
  49. </Rows>
  50. <Band id="head">
  51. <Cell/>
  52. <Cell col="1" text="등록일자"/>
  53. <Cell col="2" text="CVR기준"/>
  54. <Cell col="3" text="환자번호"/>
  55. <Cell col="4" text="환자명"/>
  56. <Cell col="5" text="처방일자"/>
  57. <Cell col="6" text="실시일자"/>
  58. <Cell col="7" text="처방명"/>
  59. <Cell col="8" text="진료구분"/>
  60. <Cell col="9" text="진료과" taborder="undefined"/>
  61. <Cell col="10" text="진료의"/>
  62. <Cell col="11" text="통보방법"/>
  63. <Cell col="12" text="전송자"/>
  64. <Cell col="13" text="행레벨"/>
  65. <Cell col="14" text="전송시간"/>
  66. <Cell col="15" text="전송내용"/>
  67. <Cell col="16" text="수신자"/>
  68. <Cell col="17" text="확인시간"/>
  69. <Cell col="18" text="신청번호"/>
  70. <Cell col="19" text="신청순번"/>
  71. <Cell col="20" text="승인상태코드"/>
  72. <Cell col="21" text="생성번호"/>
  73. <Cell col="22" text="진료과코드"/>
  74. <Cell col="23" text="병동코드"/>
  75. <Cell col="24" text="전문의사번"/>
  76. <Cell col="25" text="담당의사번"/>
  77. <Cell col="26" text="처방번호"/>
  78. <Cell col="27" text="처방상태코드"/>
  79. <Cell col="28" text="차용사유코드"/>
  80. <Cell col="29" text="차용신청부서코드"/>
  81. <Cell col="30" text="차용신청자사번"/>
  82. <Cell col="31" text="비고"/>
  83. </Band>
  84. <Band id="body">
  85. <Cell celltype="head" text="expr:currow+1"/>
  86. <Cell col="1" text="bind:genrdd" mask="expr:utlf_isNull(genrdd) ? &quot;&quot; : &quot;####-##-##&quot;"/>
  87. <Cell col="2" displaytype="combo" text="bind:rgstflag" combodataset="ds_rgstflag" combocodecol="cdid" combodatacol="cdnm"/>
  88. <Cell col="3" text="bind:pid"/>
  89. <Cell col="4" text="bind:hngnm"/>
  90. <Cell col="5" style="align:left middle;" text="bind:rgstdt" mask="expr:utlf_isNull(rgstdt) ? &quot;&quot; : &quot;####-##-## ##:##&quot;"/>
  91. <Cell col="6" style="align:center middle;" text="bind:execdt" mask="expr:utlf_isNull(execdt) ? &quot;&quot; : &quot;####-##-## ##:##&quot;"/>
  92. <Cell col="7" style="align:left middle;" text="bind:prcpnm" wordwrap="word"/>
  93. <Cell col="8" style="align:center middle;" text="bind:ordtypenm"/>
  94. <Cell col="9" displaytype="normal" edittype="none" style="align:left middle;padding:EXPR((row_level == 1) ? &quot;0 4 0 0&quot; : &quot;0 4 0 12&quot;);line:1 solid #b0b0b0ff,1 solid #b0b0b0ff,1 solid #b0b0b0ff,0 solid #b0b0b0ff;" text="bind:orddeptnm" treestartlevel="0"/>
  95. <Cell col="10" style="align:center middle;" text="bind:orddrnm"/>
  96. <Cell col="11" style="align:center middle;" text="bind:sendtypenm"/>
  97. <Cell col="12" style="align:center middle;" text="bind:sendnm"/>
  98. <Cell col="13" text="bind:row_level"/>
  99. <Cell col="14" style="align:center middle;" text="bind:senddt" mask="expr:utlf_isNull(senddt) ? &quot;&quot; : &quot;####-##-## ##:##&quot;"/>
  100. <Cell col="15" style="align:left middle;padding:5 5 5 5;" text="bind:cvrmsg" wordwrap="word" autosizerow="default"/>
  101. <Cell col="16" style="align:center middle;" text="bind:recvnm"/>
  102. <Cell col="17" style="align:center middle;" text="bind:confdt" mask="expr:utlf_isNull(confdt) ? &quot;&quot; : &quot;####-##-## ##:##&quot;"/>
  103. <Cell col="18" text="bind:limaprvno"/>
  104. <Cell col="19" text="bind:aprvseq"/>
  105. <Cell col="20" text="bind:aprvstat"/>
  106. <Cell col="21" text="bind:cretno"/>
  107. <Cell col="22" text="bind:orddeptcd"/>
  108. <Cell col="23" text="bind:wardcd"/>
  109. <Cell col="24" text="bind:medispclid"/>
  110. <Cell col="25" text="bind:atdoctid"/>
  111. <Cell col="26" text="bind:prcpno"/>
  112. <Cell col="27" text="bind:prcphistcd"/>
  113. <Cell col="28" text="bind:borrowcd"/>
  114. <Cell col="29" text="bind:borrowdeptcd"/>
  115. <Cell col="30" text="bind:borrowid"/>
  116. <Cell col="31" style="align:left middle;" text="bind:rmk" wordwrap="word"/>
  117. </Band>
  118. </Format>
  119. </Formats>
  120. </Grid>
  121. <Div id="Div00" taborder="1" position="absolute 0 25 1180 88" class="div_SA" scrollbars="none" anchor="left top right">
  122. <Layouts>
  123. <Layout>
  124. <Static id="caption4" text="진료구분 :" class="search_name" position="absolute 6 35 77 55" anchor="default"/>
  125. <Radio id="radio1" taborder="1" columncount="6" rowcount="1" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 83 35 408 55" anchor="default" onitemchanged="Div00_radio1_onitemchanged">
  126. <Dataset id="innerdataset">
  127. <ColumnInfo>
  128. <Column id="codecolumn" size="256"/>
  129. <Column id="datacolumn" size="256"/>
  130. </ColumnInfo>
  131. <Rows>
  132. <Row>
  133. <Col id="codecolumn">-</Col>
  134. <Col id="datacolumn">전체</Col>
  135. </Row>
  136. <Row>
  137. <Col id="codecolumn">O</Col>
  138. <Col id="datacolumn">외래</Col>
  139. </Row>
  140. <Row>
  141. <Col id="codecolumn">S</Col>
  142. <Col id="datacolumn">검진</Col>
  143. </Row>
  144. <Row>
  145. <Col id="codecolumn">I</Col>
  146. <Col id="datacolumn">입원</Col>
  147. </Row>
  148. <Row>
  149. <Col id="codecolumn">E</Col>
  150. <Col id="datacolumn">응급</Col>
  151. </Row>
  152. <Row>
  153. <Col id="codecolumn">D</Col>
  154. <Col id="datacolumn">일일</Col>
  155. </Row>
  156. </Rows>
  157. </Dataset>
  158. </Radio>
  159. <Static id="caption2" text="등록일자 :" class="search_name" position="absolute 6 11 85 31" anchor="default"/>
  160. <Calendar id="ipt_fromdd" taborder="3" class="input" position="absolute 81 11 166 31" anchor="default" dateformat="yyyy-MM-dd" value="null" autoselect="true" autoskip="true"/>
  161. <Static id="caption3" text="~" position="absolute 169 11 179 31" anchor="default"/>
  162. <Calendar id="ipt_todd" taborder="4" class="input" position="absolute 182 11 267 30" anchor="default" dateformat="yyyy-MM-dd" value="null" autoselect="true" autoskip="true"/>
  163. <Static id="caption10" text="등록번호 :" class="search_name" position="absolute 817 35 894 55" anchor="default"/>
  164. <Edit id="input1" taborder="5" position="absolute 892 35 962 55" anchor="default" onkeydown="Div00_input1_onkeydown" autoselect="true"/>
  165. <Button id="btn_patsrch" taborder="6" class="icon_search" position="absolute 1029 36 1049 56" anchor="default" onclick="Div00_btn_patsrch_onclick"/>
  166. <Edit id="input2" taborder="7" enable="false" position="absolute 964 35 1024 55" anchor="default"/>
  167. <Static id="caption1" text="진 료 과 :" class="search_name" position="absolute 449 35 528 55" anchor="default"/>
  168. <Combo id="cmb_orddept" taborder="8" innerdataset="@ds_orddept" codecolumn="deptcd" datacolumn="depthngnm" position="absolute 531 35 760 55" anchor="default" onitemchanged="Div00_cmb_orddept_onitemchanged"/>
  169. <Shape id="line3" linetype="vertical" position="absolute 1093 11 1103 56" anchor="top right"/>
  170. <Button id="btn_req" taborder="11" text="조회" class="btn1" position="absolute 1111 23 1167 43" anchor="top right" onclick="Div00_btn_req_onclick"/>
  171. <Combo id="cmb_prid" taborder="12" codecolumn="codecolumn" datacolumn="datacolumn" onitemchanged="Div00_cmb_prid_onitemchanged" position="absolute 270 11 339 31" anchor="default">
  172. <Dataset id="innerdataset">
  173. <ColumnInfo>
  174. <Column id="codecolumn"/>
  175. <Column id="datacolumn"/>
  176. </ColumnInfo>
  177. <Rows>
  178. <Row>
  179. <Col id="codecolumn">1M</Col>
  180. <Col id="datacolumn">1개월</Col>
  181. </Row>
  182. <Row>
  183. <Col id="codecolumn">3M</Col>
  184. <Col id="datacolumn">3개월</Col>
  185. </Row>
  186. <Row>
  187. <Col id="codecolumn">6M</Col>
  188. <Col id="datacolumn">6개월</Col>
  189. </Row>
  190. <Row>
  191. <Col id="codecolumn">9M</Col>
  192. <Col id="datacolumn">9개월</Col>
  193. </Row>
  194. <Row>
  195. <Col id="codecolumn">1Y</Col>
  196. <Col id="datacolumn">1년</Col>
  197. </Row>
  198. <Row>
  199. <Col id="codecolumn">2Y</Col>
  200. <Col id="datacolumn">2년</Col>
  201. </Row>
  202. </Rows>
  203. </Dataset>
  204. </Combo>
  205. <Static id="caption00" text="CVR기준 :" class="search_name" position="absolute 449 11 528 31" anchor="default"/>
  206. <Combo id="cmb_rgstflag" taborder="13" innerdataset="@ds_rgstflag" codecolumn="cdid" datacolumn="cdnm" position="absolute 531 11 760 31" anchor="default" onitemchanged="Div00_cmb_rgstflag_onitemchanged"/>
  207. </Layout>
  208. </Layouts>
  209. </Div>
  210. <Static id="caption3" text="영상 CVR 등록 내역" class="tit_2" position="absolute 0 94 170 114"/>
  211. <Button id="button1" taborder="2" text="엑셀" class="btn7" position="absolute 1120 91 1176 111" anchor="top right" onclick="button1_onclick"/>
  212. </Layout>
  213. </Layouts>
  214. <Objects>
  215. <Dataset id="ds_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  216. <ColumnInfo>
  217. <Column id="pid" type="STRING" size="256"/>
  218. <Column id="hngnm" type="STRING" size="256"/>
  219. <Column id="fromdd" type="STRING" size="256"/>
  220. <Column id="todd" type="STRING" size="256"/>
  221. <Column id="prid" type="STRING" size="256"/>
  222. <Column id="rgstflag" type="STRING" size="256"/>
  223. <Column id="ioflag" type="STRING" size="256"/>
  224. <Column id="orddeptcd" type="STRING" size="256"/>
  225. </ColumnInfo>
  226. <Rows>
  227. <Row>
  228. <Col id="pid"/>
  229. <Col id="hngnm"/>
  230. <Col id="fromdd"/>
  231. <Col id="todd"/>
  232. <Col id="prid"/>
  233. <Col id="rgstflag"/>
  234. <Col id="ioflag"/>
  235. <Col id="orddeptcd"/>
  236. </Row>
  237. </Rows>
  238. </Dataset>
  239. <Dataset id="ds_orddept" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  240. <ColumnInfo>
  241. <Column id="depthngnm" type="STRING"/>
  242. <Column id="deptcd" type="STRING"/>
  243. </ColumnInfo>
  244. </Dataset>
  245. <Dataset id="ds_patnm" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  246. <Dataset id="ds_cvrlist" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_limantibiolist_oncolumnchanged">
  247. <ColumnInfo>
  248. <Column id="instcd" type="STRING" size="256"/>
  249. <Column id="genrdd" type="STRING" size="256"/>
  250. <Column id="genrno" type="STRING" size="256"/>
  251. <Column id="cvrtype" type="STRING" size="256"/>
  252. <Column id="refkey" type="STRING" size="256"/>
  253. <Column id="rgstflag" type="STRING" size="256"/>
  254. <Column id="sendtypenm" type="STRING" size="256"/>
  255. <Column id="ordtype" type="STRING" size="256"/>
  256. <Column id="ordtypenm" type="STRING" size="256"/>
  257. <Column id="prcpdd" type="STRING" size="256"/>
  258. <Column id="prcpno" type="STRING" size="256"/>
  259. <Column id="pid" type="STRING" size="256"/>
  260. <Column id="hngnm" type="STRING" size="256"/>
  261. <Column id="rgstdt" type="STRING" size="256"/>
  262. <Column id="execdt" type="STRING" size="256"/>
  263. <Column id="prcpnm" type="STRING" size="256"/>
  264. <Column id="orddeptnm" type="STRING" size="256"/>
  265. <Column id="orddrnm" type="STRING" size="256"/>
  266. <Column id="sendnm" type="STRING" size="256"/>
  267. <Column id="senddt" type="STRING" size="256"/>
  268. <Column id="cvrmsg" type="STRING" size="256"/>
  269. <Column id="recvnm" type="STRING" size="256"/>
  270. <Column id="confdt" type="STRING" size="256"/>
  271. <Column id="rmk" type="STRING" size="256"/>
  272. </ColumnInfo>
  273. </Dataset>
  274. <Dataset id="ds_rgstflag" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  275. </Objects>
  276. <Bind>
  277. <BindItem id="item0" compid="Div00.radio1" propid="value" datasetid="ds_cond" columnid="ioflag"/>
  278. <BindItem id="item3" compid="Div00.cmb_orddept" propid="value" datasetid="ds_cond" columnid="orddeptcd"/>
  279. <BindItem id="item4" compid="Div00.ipt_fromdd" propid="value" datasetid="ds_cond" columnid="fromdd"/>
  280. <BindItem id="item5" compid="Div00.ipt_todd" propid="value" datasetid="ds_cond" columnid="todd"/>
  281. <BindItem id="item8" compid="Div00.input1" propid="value" datasetid="ds_cond" columnid="pid"/>
  282. <BindItem id="item9" compid="Div00.input2" propid="value" datasetid="ds_cond" columnid="hngnm"/>
  283. <BindItem id="item6" compid="Div00.cmb_prid" propid="value" datasetid="ds_cond" columnid="prid"/>
  284. <BindItem id="item1" compid="Div00.cmb_rgstflag" propid="value" datasetid="ds_cond" columnid="rgstflag"/>
  285. </Bind>
  286. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  287. * System Name :
  288. * Job Name :
  289. * Creator :
  290. * Make Date : 2019-04-04
  291. * Description :
  292. *---------------------------------------------------------------------------------------
  293. * Modify Date Modifier Modify Description
  294. *---------------------------------------------------------------------------------------
  295. * 2019-04-04 Live Converter TF->XP
  296. *
  297. *---------------------------------------------------------------------------------------
  298. ****************************************************************************************/
  299. include "com_commonxp::comm_main.xjs";
  300. include "emr_prcpmngtxp::MMO001.xjs";
  301. function SMAES08000_oninit(obj:Form, e:InitEventInfo)
  302. {
  303. frmf_initForm(obj);
  304. }
  305. function SMAES08000_onload(obj:Form, e:LoadEventInfo)
  306. {
  307. grdf_setGridSort(datagrid1);
  308. grdf_setToolTipBind(datagrid1);
  309. appf_getCodeList([{dsNm: "ds_rgstflag", cdGrpId: "A0667"}], true);
  310. frmf_addComboItem("Div00.cmb_rgstflag", "전체", "-");
  311. ds_cond.setColumn(0, "ioflag" , "-");
  312. ds_cond.setColumn(0, "prid" , "6M"); // 기간 6달
  313. ds_cond.setColumn(0, "rgstflag","-");
  314. ds_cond.setColumn(0, "fromdd" , ((utlf_getCurrentDate().toDate()).getAddDate(-6,"M")).getDateFormat()); //시작일자는 최근 1달
  315. ds_cond.setColumn(0, "todd" , utlf_getCurrentDate()); //종료일자는 현재일자
  316. lf_mmbfGetDeptCodeComboList(ds_orddept, "A"); //부서코드 콤보
  317. frmf_addComboItem("Div00.cmb_orddept"); //진료과 전체항목 추가
  318. Div00.cmb_orddept.index = 0;
  319. fReqGetRadiologyCvrList();
  320. }
  321. function Div00_input1_onkeydown(obj:Edit, e:KeyEventInfo)
  322. {
  323. if(e.keycode == 13) {
  324. obj.updateToDataset();
  325. fReqGetRadiologyCvrList();
  326. }
  327. }
  328. function Div00_btn_patsrch_onclick(obj:Button, e:ClickEventInfo)
  329. {
  330. frmf_modal("SPPMC02500", "SPPMC02500", null, null, null, null, null, null, null, null, null, null, "M");
  331. if(!utlf_isNull(this.objects["ds_patinfolist"])) {
  332. var sPid = ds_patinfolist.getColumn(0, "pid");
  333. var sHngnm = ds_patinfolist.getColumn(0, "hngnm");
  334. ds_cond.setColumn(0, "pid", sPid);
  335. ds_cond.setColumn(0, "hngnm", sHngnm);
  336. }
  337. }
  338. function Div00_btn_req_onclick(obj:Button, e:ClickEventInfo)
  339. {
  340. fReqGetRadiologyCvrList();
  341. }
  342. function fReqGetRadiologyCvrList() {
  343. var oParam = {};
  344. oParam.id = "TRAES08001";
  345. oParam.service = "examcurestatsapp.ImgMediSc";
  346. oParam.method = "reqGetRadiologyCvrList";
  347. oParam.inds = "req=ds_cond";
  348. oParam.outds = "ds_cvrlist=cvrlist";
  349. oParam.async = false;
  350. tranf_submit(oParam);
  351. }
  352. function Div00_cmb_prid_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  353. {
  354. var number = obj.value.substr(0, 1);
  355. var period = obj.value.substr(1, 1);
  356. var idate = new Date();
  357. var fromdd = idate.getAddDate(parseInt(number) * -1, period).getDateFormat();
  358. var todd = utlf_getCurrentDate();
  359. ds_cond.setColumn(0, "fromdd", fromdd);
  360. ds_cond.setColumn(0, "todd", todd);
  361. fReqGetRadiologyCvrList();
  362. }
  363. function datagrid1_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  364. {
  365. var nRow = ds_cvrlist.rowposition;
  366. if(nRow < 0){ return; }
  367. var sRefKey = ds_cvrlist.getColumn(nRow, "refkey");
  368. if(utlf_isNull(sRefKey)) return;
  369. dsf_createDsRow( "ds_arg_SPLPR03000", [{col : "cvrtype", val : "R"} // CVR구분 R:영상
  370. ,{col : "refkey", val : sRefKey}]); // 영상처방번호
  371. var objArg = new Object();
  372. objArg.arg_ds_popup = ds_arg_SPLPR03000;
  373. frmf_modal("SPLPR03000", "SPLPR03000", objArg, null, null, null, null, null, null, null, null, null, "M");
  374. }
  375. function Div00_cmb_rgstflag_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  376. {
  377. fReqGetRadiologyCvrList();
  378. }
  379. function Div00_cmb_orddept_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  380. {
  381. fReqGetRadiologyCvrList();
  382. }
  383. function Div00_radio1_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
  384. {
  385. fReqGetRadiologyCvrList();
  386. }
  387. function button1_onclick(obj:Button, e:ClickEventInfo)
  388. {
  389. grdf_exportExcel(datagrid1, "영상 CVR 조회", "영상CVR", false, "", "user");
  390. }
  391. ]]></Script>
  392. </Form>
  393. </FDL>