SMMNI00600_진료내역조회.xfdl 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMMNI00600" position="absolute 0 0 1256 805" titletext="진료내역조회" oninit="model1_oninit" onload="SMMNI00600_onload" scrollbars="none">
  5. <Layouts>
  6. <Layout>
  7. <Div id="group3" position="absolute 0 0 1256 805" anchor="all" positiontype="position" scrollbars="none">
  8. <Layouts>
  9. <Layout>
  10. <Div id="group2" position="absolute 0 10 1194 70" style="align:center top;" anchor="default" positiontype="position">
  11. <Layouts>
  12. <Layout>
  13. <Shape id="line4" class="line_4" position="absolute 1072 19 1072 41" anchor="default" linetype="vertical" positiontype="position"/>
  14. </Layout>
  15. </Layouts>
  16. </Div>
  17. <Grid id="datagrid7" class="datagrid2" position="absolute 0 122 1256 805" anchor="all" positiontype="position" autofittype="col" binddataset="ds_grid_datagrid7" onmousemove="group3_datagrid7_onmousemove">
  18. <Formats>
  19. <Format id="default">
  20. <Columns>
  21. <Column size="25"/>
  22. <Column size="80"/>
  23. <Column size="55"/>
  24. <Column size="40"/>
  25. <Column size="60"/>
  26. <Column size="68"/>
  27. <Column size="265"/>
  28. <Column size="49"/>
  29. <Column size="49"/>
  30. <Column size="45"/>
  31. <Column size="59"/>
  32. <Column size="62"/>
  33. <Column size="54"/>
  34. <Column size="80"/>
  35. <Column size="79"/>
  36. <Column size="80"/>
  37. </Columns>
  38. <Rows>
  39. <Row size="22" band="head"/>
  40. <Row size="24"/>
  41. </Rows>
  42. <Band id="head">
  43. <Cell/>
  44. <Cell col="1" text="처방일자"/>
  45. <Cell col="2" text="수납여부"/>
  46. <Cell col="3" text="원외"/>
  47. <Cell col="4" text="선처치"/>
  48. <Cell col="5" text="처방코드"/>
  49. <Cell col="6" text="처방명"/>
  50. <Cell col="7" text="용량"/>
  51. <Cell col="8" text="용량단위"/>
  52. <Cell col="9" text="수량"/>
  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. </Band>
  60. <Band id="body">
  61. <Cell celltype="head" text="expr:currow+1"/>
  62. <Cell col="1" text="bind:orddd" mask="@@@@-@@-@@"/>
  63. <Cell col="2" text="bind:rcptyn"/>
  64. <Cell col="3" text="bind:hosinhosoutflag"/>
  65. <Cell col="4" text="bind:precureprcpflag"/>
  66. <Cell col="5" style="align:left;" text="bind:prcpcd"/>
  67. <Cell col="6" style="align:left middle;" text="bind:prcpnm"/>
  68. <Cell col="7" text="bind:prcpvol"/>
  69. <Cell col="8" text="bind:prcpvolunitflag"/>
  70. <Cell col="9" text="bind:prcpqty"/>
  71. <Cell col="10" style="align:center middle;" text="bind:prcpqtyunitflag"/>
  72. <Cell col="11" style="align:center middle;" text="bind:prcptims"/>
  73. <Cell col="12" style="align:center middle;" text="bind:prcpdayno"/>
  74. <Cell col="13" style="align:center middle;" text="bind:hngnm"/>
  75. <Cell col="14" style="align:left;" text="bind:depthngnm"/>
  76. <Cell col="15" style="align:center middle;" text="bind:usernm"/>
  77. <Cell col="16"/>
  78. </Band>
  79. </Format>
  80. </Formats>
  81. </Grid>
  82. <Static id="caption10" class="tit_2" position="absolute 0 102 165 122" anchor="default" text="당일 업무대상자 리스트" positiontype="position"/>
  83. <Shape id="line7" class="line_1" position="absolute 0 93 1194 93" anchor="default" linetype="horizontal" positiontype="position"/>
  84. </Layout>
  85. </Layouts>
  86. </Div>
  87. <Static id="caption6" class="tit_1" position="absolute 0 0 112 25" anchor="default" positiontype="position" text="진료내역조회"/>
  88. <Div id="grp_sea" taborder="1" style="align:center top;" class="div_SA" position="absolute 0 25 1256 92" anchor="left top right">
  89. <Layouts>
  90. <Layout>
  91. <Button id="button1" taborder="0" text="조회" onlbuttonup="button1_onlbuttonup" class="btn1" position="absolute 1188 23 1244 43" anchor="right" positiontype="position" onclick="button1_onclick"/>
  92. <Edit id="opt_diag" taborder="1" position="absolute 519 10 877 30" anchor="default" imemode="hangul" positiontype="position" readonly="true" class="output"/>
  93. <Combo id="cmb_prcp" taborder="2" class="combo_search" position="absolute 519 35 877 55" anchor="default" positiontype="position" innerdataset="@ds_data_prcpitemlist" codecolumn="orddd" datacolumn="prcpdata" onitemchanged="grp_sea_cmb_prcp_onitemchanged"/>
  94. <Static id="caption2" text="진단명" class="search_name" position="absolute 445 10 521 30" anchor="default" positiontype="position"/>
  95. <Static id="caption3" text="처방정보" class="search_name" position="absolute 445 35 521 55" anchor="default" positiontype="position"/>
  96. <Static id="caption1" text="조회일자" class="search_name" position="absolute 8 35 94 55" anchor="default" positiontype="position" visible="true"/>
  97. <Calendar id="ipt_fromdd" taborder="3" class="input_search" position="absolute 83 35 181 55" style="align:center middle;" mask="####-##-##" anchor="default" dateformat="yyyy-MM-dd " value="null" positiontype="position" onchanged="grp_sea_ipt_fromdd_onchanged" visible="true"/>
  98. <Calendar id="ipt_todd" taborder="6" class="input_search" position="absolute 200 35 298 55" style="align:center middle;" mask="####-##-##" anchor="default" dateformat="yyyy-MM-dd " value="null" positiontype="position" onchanged="grp_sea_ipt_todd_onchanged" visible="true"/>
  99. <Edit id="opt_gndrage" taborder="8" readonly="true" position="absolute 294 9 339 29" anchor="default" positiontype="position" class="output"/>
  100. <Static id="caption00" text="~" position="absolute 182 35 198 55" style="align:center;" visible="true"/>
  101. <Static id="caption11" text="등록번호" class="search_name" position="absolute 7 9 80 28"/>
  102. <Edit id="ipt_pid" taborder="9" onkeyup="group2_ipt_pid_onkeyup" position="absolute 82 9 167 28"/>
  103. <Button id="button61" taborder="10" onclick="group2_button61_onclick" class="icon_search" position="absolute 169 10 185 26"/>
  104. <Edit id="opt_hngnm" taborder="11" readonly="true" position="absolute 194 9 279 28" class="output"/>
  105. </Layout>
  106. </Layouts>
  107. </Div>
  108. </Layout>
  109. </Layouts>
  110. <Objects>
  111. <Dataset id="ds_grid_datagrid7" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  112. <ColumnInfo>
  113. <Column id="orddd" type="STRING"/>
  114. <Column id="deptcd" type="STRING"/>
  115. <Column id="usernm" type="STRING"/>
  116. <Column id="hosinhosoutflag" type="STRING"/>
  117. <Column id="precureprcpflag" type="STRING"/>
  118. <Column id="prcpcd" type="STRING"/>
  119. <Column id="prcpnm" type="STRING"/>
  120. <Column id="prcpqty" type="STRING"/>
  121. <Column id="drprcpetc3" type="STRING"/>
  122. <Column id="drprcpetc7" type="STRING"/>
  123. <Column id="prcptims" type="STRING"/>
  124. <Column id="prcpdayno" type="STRING"/>
  125. <Column id="abbrnm" type="STRING"/>
  126. <Column id="hngnm" type="STRING"/>
  127. <Column id="execyn" type="STRING"/>
  128. <Column id="rcptyn" type="STRING"/>
  129. <Column id="depthngnm" type="STRING"/>
  130. <Column id="usernm1" type="STRING"/>
  131. </ColumnInfo>
  132. </Dataset>
  133. <Dataset id="ds_refpidinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  134. <ColumnInfo>
  135. <Column id="fromdd" type="STRING" size="256"/>
  136. <Column id="todd" type="STRING" size="256"/>
  137. <Column id="pid" type="STRING" size="256"/>
  138. <Column id="hngnm" type="STRING" size="256"/>
  139. <Column id="gndrage" type="STRING" size="256"/>
  140. <Column id="prcp" type="STRING" size="256"/>
  141. <Column id="diag" type="STRING" size="256"/>
  142. <Column id="orddd" type="STRING" size="256"/>
  143. </ColumnInfo>
  144. <Rows>
  145. <Row/>
  146. </Rows>
  147. </Dataset>
  148. <Dataset id="ds_data_pamlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  149. <Dataset id="ds_data_rghtreflist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  150. <Dataset id="ds_data_prcpitemlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  151. <ColumnInfo>
  152. <Column id="prcpdata" type="STRING" size="256"/>
  153. <Column id="orddd" type="STRING" size="256"/>
  154. <Column id="termengnm" type="STRING" size="256"/>
  155. </ColumnInfo>
  156. </Dataset>
  157. <Dataset id="ds_diaginfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  158. <ColumnInfo>
  159. <Column id="diagdata" type="STRING" size="256"/>
  160. </ColumnInfo>
  161. <Rows>
  162. <Row/>
  163. </Rows>
  164. </Dataset>
  165. <Dataset id="ds_prcpinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  166. <ColumnInfo>
  167. <Column id="prcpdata" type="STRING" size="256"/>
  168. </ColumnInfo>
  169. <Rows>
  170. <Row/>
  171. </Rows>
  172. </Dataset>
  173. <Dataset id="ds_datainfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  174. <ColumnInfo>
  175. <Column id="fromdd" type="STRING" size="256"/>
  176. <Column id="todd" type="STRING" size="256"/>
  177. </ColumnInfo>
  178. <Rows>
  179. <Row/>
  180. </Rows>
  181. </Dataset>
  182. </Objects>
  183. <Bind>
  184. <BindItem id="item2" compid="grp_sea.opt_gndrage" propid="value" datasetid="ds_refpidinfo" columnid="gndrage"/>
  185. <BindItem id="item3" compid="grp_sea.ipt_fromdd" propid="value" datasetid="ds_datainfo" columnid="fromdd"/>
  186. <BindItem id="item4" compid="grp_sea.ipt_todd" propid="value" datasetid="ds_datainfo" columnid="todd"/>
  187. <BindItem id="item5" compid="grp_sea.opt_diag" propid="value" datasetid="ds_diaginfo" columnid="diagdata"/>
  188. <BindItem id="item6" compid="grp_sea.cmb_prcp" propid="value" datasetid="ds_prcpinfo" columnid="prcpdata"/>
  189. <BindItem id="item0" compid="grp_sea.ipt_pid" propid="value" datasetid="ds_refpidinfo" columnid="pid"/>
  190. <BindItem id="item1" compid="grp_sea.opt_hngnm" propid="value" datasetid="ds_refpidinfo" columnid="hngnm"/>
  191. </Bind>
  192. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  193. * System Name : KU2.0
  194. * Job Name :
  195. * File Name : SMMNI00600_진료내역조회.xfdl
  196. * Creator :
  197. * Make Date : 2016-04-27
  198. *
  199. * Description :
  200. *---------------------------------------------------------------------------------------
  201. * Modify Date Modifier Modify Description
  202. *---------------------------------------------------------------------------------------
  203. *
  204. *---------------------------------------------------------------------------------------
  205. ****************************************************************************************/
  206. include "com_commonxp::comm_main.xjs";
  207. /********************************************************************************
  208. * 설 명 : 처방정보 및 진단명 정보 조회
  209. * argument :
  210. ********************************************************************************/
  211. function fPrcpSrch(){
  212. var pid = grp_sea.ipt_pid.value;
  213. var rsrvdd = ds_datainfo.getColumn(0,"fromdd");
  214. var orddd = ds_datainfo.getColumn(0,"todd");
  215. var ds_temp = dsf_createDsRow("ds_temp", [{col: "pid", val:pid }
  216. ,{col: "rsrvdd", val:rsrvdd }
  217. ,{col: "orddd", val:orddd }]);
  218. var objParam = new Object();
  219. objParam.id = "TRMNI00602";
  220. objParam.service = "injroomapp.InjRoomPatMngt";
  221. objParam.method = "reqGetPrcpRef";
  222. objParam.inds = "refCond="+ds_temp;
  223. objParam.outds = "ds_data_prcpitemlist=prcpitemlist"
  224. objParam.async = false;
  225. objParam.callback = "cbk_TRMNI00602";
  226. tranf_submit(objParam);
  227. }
  228. /********************************************************************************
  229. * 설 명 : 처방정보 및 진단명 정보 조회 콜백
  230. * argument :
  231. ********************************************************************************/
  232. function cbk_TRMNI00602(sScvId, nErrorCode, sErrorMsg){
  233. if(nErrorCode == 0){//성공하였을때
  234. ds_diaginfo.setColumn(0,"diagdata",ds_data_prcpitemlist.getColumn(0,"termengnm"));
  235. var prcpvalue = ds_data_prcpitemlist.getColumn(0,"orddd")
  236. grp_sea.cmb_prcp.value = prcpvalue;
  237. }else{
  238. sysf_messageBox(sErrorMsg, "E");
  239. }
  240. }
  241. /********************************************************************************
  242. * 설 명 : 당일 업무대상자 리스트 조회
  243. * argument :
  244. ********************************************************************************/
  245. function fPatOrdList(){
  246. var pid = grp_sea.ipt_pid.value;
  247. var orddd = ds_prcpinfo.getColumn(0,"prcpdata");
  248. var ds_temp = dsf_createDsRow("ds_temp", [{col: "pid", val:pid }
  249. ,{col: "orddd", val:orddd }]);
  250. var objParam = new Object();
  251. objParam.id = "TRMNI00603";
  252. objParam.service = "injroomapp.InjRoomPatMngt";
  253. objParam.method = "reqPatOrdList";
  254. objParam.inds = "refCond="+ds_temp;
  255. objParam.outds = "ds_grid_datagrid7=biztrgtmanlist";
  256. objParam.async = false;
  257. objParam.callback = "cbk_TRMNI00603";
  258. tranf_submit(objParam);
  259. }
  260. /********************************************************************************
  261. * 설 명 : 당일 업무대상자 리스트 조회 콜백
  262. * argument :
  263. ********************************************************************************/
  264. function cbk_TRMNI00603(sScvId, nErrorCode, sErrorMsg){
  265. if(nErrorCode == 0){//성공하였을때
  266. ds_grid_datagrid7.rowposition = -1;
  267. }else{
  268. sysf_messageBox(sErrorMsg, "E");
  269. }
  270. }
  271. //=======================================================================================
  272. // Event
  273. //---------------------------------------------------------------------------------------
  274. /****************************************************************************************
  275. * Components : Form
  276. * Components ID : SMMNI00600
  277. * Event : onload
  278. * Argument : 01.obj : Object Event has occurred
  279. * : 02.e : Event Object
  280. * Description :
  281. ****************************************************************************************/
  282. function SMMNI00600_onload(obj:Form, e:LoadEventInfo)
  283. {
  284. frmf_initForm(obj);
  285. var Ndate = utlf_getNewDate()
  286. var Odate = Ndate.getAddDate(-1, "Y");
  287. var Idate = Odate.getDateFormat("YYYYMMDD")
  288. var fromdd = Idate;
  289. var todd = utlf_getCurrentDate();
  290. ds_datainfo.setColumn(0,"fromdd",fromdd);
  291. ds_datainfo.setColumn(0,"todd",todd);
  292. var sPamInfo = sysf_getGlobalVariable("paminfo");
  293. dsf_setCSVToDs("ds_data_pamlist",sPamInfo);
  294. var uppid = ds_data_pamlist.getColumn(0,"pid");
  295. var uphngnm = ds_data_pamlist.getColumn(0,"hngnm");
  296. var upgndrage = ds_data_pamlist.getColumn(0,"sex") + "/" + ds_data_pamlist.getColumn(0,"age");
  297. if(!utlf_isNull(uppid)){
  298. grp_sea.ipt_pid.value = uppid;
  299. fpidref("new");
  300. }
  301. fPatOrdList();
  302. }
  303. /****************************************************************************************
  304. * Components : Button
  305. * Components ID : button1
  306. * Event : onclick
  307. * Argument : 01.obj : Object Event has occurred
  308. * : 02.e : Event Object
  309. * Description : 조회버튼
  310. ****************************************************************************************/
  311. function button1_onclick(obj:Button, e:ClickEventInfo)
  312. {
  313. fPatOrdList();
  314. }
  315. /****************************************************************************************
  316. * Components : Calendar
  317. * Components ID : ipt_fromdd
  318. * Event : onchanged
  319. * Argument : 01.obj : Object Event has occurred
  320. * : 02.e : Event Object
  321. * Description : 조회일자 변경시 처방조회
  322. ****************************************************************************************/
  323. function grp_sea_ipt_fromdd_onchanged(obj:Calendar, e:ChangeEventInfo)
  324. {
  325. fPrcpSrch();
  326. }
  327. /****************************************************************************************
  328. * Components : Calendar
  329. * Components ID : ipt_todd
  330. * Event : onchanged
  331. * Argument : 01.obj : Object Event has occurred
  332. * : 02.e : Event Object
  333. * Description : 조회일자 변경시 처방조회
  334. ****************************************************************************************/
  335. function grp_sea_ipt_todd_onchanged(obj:Calendar, e:ChangeEventInfo)
  336. {
  337. fPrcpSrch();
  338. }
  339. /****************************************************************************************
  340. * Components : Combo
  341. * Components ID : cmb_prcp
  342. * Event : onitemchanged
  343. * Argument : 01.obj : Object Event has occurred
  344. * : 02.e : Event Object
  345. * Description : 처방변경시 해당 환자 조회
  346. ****************************************************************************************/
  347. function grp_sea_cmb_prcp_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  348. {
  349. ds_diaginfo.setColumn(0,"diagdata",ds_data_prcpitemlist.getColumn(e.postindex,"termengnm"));
  350. fPatOrdList();
  351. }
  352. function finit(){
  353. var fromdd = utlf_addMonth(utlf_getCurrentDate(), -12);
  354. var todd = utlf_getCurrentDate();
  355. ds_cond.setColumn(0,"fromdd",fromdd);
  356. ds_cond.setColumn(0,"todd",todd);
  357. var sPamInfo = sysf_getGlobalVariable("paminfo");
  358. if(!utlf_isNull(sPamInfo)){
  359. ds_data_pamlist.loadCSV(sPamInfo);
  360. var uppid = ds_data_pamlist.getColumn(0,"pid");
  361. var uphngnm = ds_data_pamlist.getColumn(0,"hngnm");
  362. var upgndrage = ds_data_pamlist.getColumn(0,"sex") + "/" + ds_data_pamlist.getColumn(0,"age");
  363. if(!utlf_isNull(uppid)){
  364. grp_sea.ipt_pid.value = uppid;
  365. grp_sea.opt_hngnm.value = uphngnm;
  366. ds_cond.setColumn(0,"gndrage",upgndrage);
  367. fPrcpSrch();
  368. }
  369. fPatOrdList();
  370. }
  371. }
  372. function group2_ipt_pid_onkeyup(obj:Edit, e:KeyEventInfo)
  373. {
  374. if(e.keycode == 13) {
  375. obj.updateToDataset();
  376. fpidref("new");
  377. fPatOrdList();
  378. }
  379. }
  380. function group2_button61_onclick(obj:Button, e:ClickEventInfo)
  381. {
  382. fPatSrch();
  383. }
  384. function fPatSrch(){
  385. frmf_modal("SPPMC02500","SPPMC02500","","","","","","","","","","","P");
  386. var popupendflag = ds_main.getColumn(0,"popupendflag");
  387. // if (popupendflag == "ok"){
  388. ds_refpidinfo.setColumn(0,"pid",ds_patinfolist.getColumn(0,"pid"));
  389. var pid = ds_refpidinfo.getColumn(0,"pid");
  390. if (!utlf_isNull(pid) && pid != " " && pid != "-"){
  391. fpidref();
  392. }
  393. // }
  394. }
  395. function fpidref(){
  396. var pid = grp_sea.ipt_pid.value;
  397. dsf_createDsRow("ds_send" , [
  398. {col: "pid", val:pid}
  399. ]);
  400. //20090601 dhkim
  401. //그리드초기화
  402. ds_grid_datagrid7.clearData();
  403. var oParam = {};
  404. oParam.id = "TRMNI00601";
  405. oParam.service = "injroomapp.InjRoomPatMngt";
  406. oParam.method = "reqGetPidRef";
  407. oParam.inds = "refCond=ds_send";
  408. oParam.outds = "ds_refpidinfo=rghtreflist";
  409. oParam.async = false;
  410. oParam.callback = "cf_TRMNI00601";
  411. tranf_submit(oParam);
  412. fPrcpSrch();
  413. }
  414. function cf_TRMNI00601(sSvcId, nErrorCode, sErrorMsg) {
  415. if(nErrorCode < 0) return;
  416. var hngnm=ds_refpidinfo.getColumn(0,"hngnm");
  417. //데이타가 없을시 이전 출력 내용 삭제.
  418. if(utlf_isNull(hngnm)){
  419. grp_sea.opt_hngnm.value="";
  420. grp_sea.opt_gndrage.value="";
  421. grp_sea.cmb_prcp.value="";
  422. grp_sea.opt_diag.value="";
  423. }
  424. }
  425. ]]></Script>
  426. </Form>
  427. </FDL>