SMADC03300_ADR과거력조회.xfdl 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMADC03300" position="absolute 0 0 1195 768" titletext="ADR과거력조회" oninit="SMADC03300_oninit" onload="SMADC03300_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption19" text="ADR과거력조회" class="tit_1" position="absolute 0 0 145 25"/>
  8. <Div id="grp_sea" anchor="left top right" taborder="1" style="align:center top;" class="div_SA" position="absolute 0 25 1193 65">
  9. <Layouts>
  10. <Layout>
  11. <Static id="caption3" text="입력일자 :" class="search_name" position="absolute 13 13 84 30" anchor="default"/>
  12. <Calendar id="ipt_prcpddstart" taborder="1" class="input_search" position="absolute 87 10 190 31" anchor="default" autoselect="true"/>
  13. <Static id="caption6" text="~" position="absolute 198 13 218 28" anchor="default"/>
  14. <Calendar id="ipt_prcpddend" taborder="2" class="input_search" position="absolute 214 10 317 31" anchor="default" autoselect="true"/>
  15. <Static id="caption1" text="등록번호 :" class="search_name" position="absolute 331 12 402 29" anchor="default"/>
  16. <Edit id="ipt_pid" taborder="3" class="input_search" position="absolute 405 9 490 30" anchor="default" onkeydown="grp_sea_ipt_pid_onkeydown"/>
  17. <Static id="caption4" text="진료과 :" class="search_name" position="absolute 513 11 571 28" anchor="default"/>
  18. <Edit id="ipt_wardnm" taborder="4" class="input_search" enable="false" position="absolute 572 9 757 30" anchor="default"/>
  19. <Button id="button4" taborder="6" class="icon_search" position="absolute 760 13 776 29" anchor="default" onclick="grp_sea_button4_onclick"/>
  20. <Static id="caption2" text="의뢰약물 :" class="search_name" position="absolute 810 11 881 28" anchor="default"/>
  21. <Edit id="ipt_srchdrugcd" taborder="7" class="input_search" position="absolute 883 9 984 30" anchor="default" onkeydown="grp_sea_ipt_srchdrugcd_onkeydown"/>
  22. <Static id="caption5" text="병동 :" class="search_name" visible="false" position="absolute 930 7 975 24" anchor="default"/>
  23. <Combo id="cbo_orddeptcd" taborder="8" innerdataset="ds_init_cbo_orddeptcd" codecolumn="deptcd" datacolumn="deptnm" class="combo_search" visible="false" position="absolute 960 18 1100 39" anchor="default"/>
  24. <Combo id="cmb_ward" taborder="9" innerdataset="ds_init_cmb_ward" codecolumn="deptcd" datacolumn="deptnm" class="combo_search" visible="false" position="absolute 1010 13 1100 34" anchor="default"/>
  25. <Shape id="line13" linetype="vertical" class="line_4" position="absolute 1102 10 1108 35" anchor="top right"/>
  26. <Button id="btn_seamthd" taborder="10" text="조회" class="btn1" position="absolute 1120 12 1176 34" anchor="top right" onclick="grp_sea_btn_seamthd_onclick"/>
  27. <CheckBox id="chk_ward" taborder="11" class="checkbox_search" visible="false" position="absolute 590 36 775 51" anchor="default"/>
  28. <Button id="button00" taborder="12" class="icon_search" position="absolute 988 13 1004 29" onclick="grp_sea_button00_onclick"/>
  29. </Layout>
  30. </Layouts>
  31. </Div>
  32. <Static id="caption10" text="과거력 리스트" class="tit_2" position="absolute 0 86 120 110"/>
  33. <Shape id="line4" linetype="vertical" class="line_1" position="absolute 0 151 1194 157"/>
  34. <Grid id="grd_adrpasthistlist" taborder="3" binddataset="ds_grd_adrpasthistlist" useinputpanel="false" position="absolute 0 104 1193 766" anchor="all" style="focusborder:0 none #808080ff ;border:1 solid #33bbbbff,0 solid #bac5ccff,1 solid #bac5ccff,0 solid #bac5ccff;" cellsizingtype="col">
  35. <Formats>
  36. <Format id="default">
  37. <Columns>
  38. <Column size="70"/>
  39. <Column size="80"/>
  40. <Column size="80"/>
  41. <Column size="90"/>
  42. <Column size="216"/>
  43. <Column size="150"/>
  44. <Column size="80"/>
  45. <Column size="70"/>
  46. <Column size="80"/>
  47. <Column size="120"/>
  48. <Column size="65"/>
  49. <Column size="75"/>
  50. </Columns>
  51. <Rows>
  52. <Row size="24" band="head"/>
  53. <Row size="24"/>
  54. </Rows>
  55. <Band id="head">
  56. <Cell text="등록번호"/>
  57. <Cell col="1" text="환자명"/>
  58. <Cell col="2" text="입력일자"/>
  59. <Cell col="3" text="원인약물"/>
  60. <Cell col="4" text="증상"/>
  61. <Cell col="5" text="인과관계"/>
  62. <Cell col="6" text="등록자"/>
  63. <Cell col="7" text="직군"/>
  64. <Cell col="8" text="발생일"/>
  65. <Cell col="9" text="진료과"/>
  66. <Cell col="10" text="분류"/>
  67. <Cell col="11" text="비고"/>
  68. </Band>
  69. <Band id="body">
  70. <Cell text="bind:pid"/>
  71. <Cell col="1" text="bind:pathngnm"/>
  72. <Cell col="2" displaytype="date" text="bind:inptdd"/>
  73. <Cell col="3" text="bind:resndrugcd"/>
  74. <Cell col="4" text="bind:symp"/>
  75. <Cell col="5" displaytype="combo" edittype="combo" text="bind:casrslt" combodataset="ds_casrslt" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
  76. <Cell col="6" text="bind:rgstrnm"/>
  77. <Cell col="7" text="bind:grupjoblncd"/>
  78. <Cell col="8" displaytype="date" text="bind:sympmnftdd"/>
  79. <Cell col="9" text="bind:orddeptnm"/>
  80. <Cell col="10" displaytype="combo" edittype="combo" text="bind:clsflag" combodataset="ds_clsflag" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
  81. <Cell col="11" text="bind:cmt"/>
  82. </Band>
  83. </Format>
  84. </Formats>
  85. </Grid>
  86. <Button id="btn_excel" taborder="4" text="EXCEL" onclick="group3_btn_excel_onclick" class="btn7" position="absolute 1120 76 1193 100" anchor="top right"/>
  87. <cp_checkboxList id="chk_ward" titletext="CheckBox List" taborder="2" text="cp_checkboxList00" scrollbars="none" position="absolute 572 54 757 82" style="background:white;border:1 solid #808080ff ;" col="1" row="1" cellspacing="2" vcellspacing="0" itemWidth="100" itemHeight="20" overflow="visible" class="checkbox_search" visible="false"/>
  88. </Layout>
  89. </Layouts>
  90. <Objects>
  91. <Dataset id="ds_init_reqdeptlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  92. <ColumnInfo>
  93. <Column id="deptnm" type="STRING"/>
  94. <Column id="deptcd" type="STRING"/>
  95. </ColumnInfo>
  96. </Dataset>
  97. <Dataset id="ds_grd_adrpasthistlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  98. <ColumnInfo>
  99. <Column id="pid" type="STRING"/>
  100. <Column id="pathngnm" type="STRING"/>
  101. <Column id="inptdd" type="STRING"/>
  102. <Column id="resndrugcd" type="STRING"/>
  103. <Column id="symp" type="STRING"/>
  104. <Column id="casrslt" type="STRING"/>
  105. <Column id="rgstrnm" type="STRING"/>
  106. <Column id="grupjoblncd" type="STRING"/>
  107. <Column id="sympmnftdd" type="STRING"/>
  108. <Column id="orddeptnm" type="STRING"/>
  109. <Column id="clsflag" type="STRING"/>
  110. <Column id="cmt" type="STRING"/>
  111. </ColumnInfo>
  112. <Rows>
  113. <Row/>
  114. </Rows>
  115. </Dataset>
  116. <Dataset id="ds_send_srchinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  117. <ColumnInfo>
  118. <Column id="srchfromdd" type="STRING" size="256"/>
  119. <Column id="srchtodd" type="STRING" size="256"/>
  120. <Column id="deptflag" type="STRING" size="256"/>
  121. <Column id="srchorddept" type="STRING" size="256"/>
  122. <Column id="srchdrugcd" type="STRING" size="256"/>
  123. <Column id="srchpid" type="STRING" size="256"/>
  124. <Column id="srchwardcd" type="STRING" size="256"/>
  125. <Column id="srchreqdeptlist" type="STRING" size="256"/>
  126. </ColumnInfo>
  127. <Rows>
  128. <Row/>
  129. </Rows>
  130. </Dataset>
  131. <Dataset id="ds_temp_deptlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  132. <ColumnInfo>
  133. <Column id="deptcd" type="STRING" size="256"/>
  134. <Column id="deptnm" type="STRING" size="256"/>
  135. </ColumnInfo>
  136. <Rows>
  137. <Row/>
  138. </Rows>
  139. </Dataset>
  140. <Dataset id="ds_casrslt" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  141. <ColumnInfo>
  142. <Column id="cdid" type="STRING" size="256"/>
  143. <Column id="cdnm" type="STRING" size="256"/>
  144. </ColumnInfo>
  145. <Rows>
  146. <Row>
  147. <Col id="cdid">CT</Col>
  148. <Col id="cdnm">Certain(90%)</Col>
  149. </Row>
  150. <Row>
  151. <Col id="cdnm">Probable(70%)</Col>
  152. <Col id="cdid">PB</Col>
  153. </Row>
  154. <Row>
  155. <Col id="cdnm">Possible(50%)</Col>
  156. <Col id="cdid">PL</Col>
  157. </Row>
  158. <Row>
  159. <Col id="cdnm">Conditional(평가곤란)</Col>
  160. <Col id="cdid">CD</Col>
  161. </Row>
  162. <Row>
  163. <Col id="cdnm">Unassessible(평가불가)</Col>
  164. <Col id="cdid">UA</Col>
  165. </Row>
  166. </Rows>
  167. </Dataset>
  168. <Dataset id="ds_clsflag" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  169. <ColumnInfo>
  170. <Column id="cdid" type="STRING" size="256"/>
  171. <Column id="cdnm" type="STRING" size="256"/>
  172. </ColumnInfo>
  173. <Rows>
  174. <Row>
  175. <Col id="cdnm">과거력</Col>
  176. <Col id="cdid">A</Col>
  177. </Row>
  178. <Row>
  179. <Col id="cdnm">평가중</Col>
  180. <Col id="cdid">B</Col>
  181. </Row>
  182. <Row>
  183. <Col id="cdnm">평가완료</Col>
  184. <Col id="cdid">C</Col>
  185. </Row>
  186. </Rows>
  187. </Dataset>
  188. </Objects>
  189. <Bind>
  190. <BindItem id="item0" compid="grp_sea.ipt_prcpddstart" propid="value" datasetid="ds_send_srchinfo" columnid="srchfromdd"/>
  191. <BindItem id="item1" compid="grp_sea.ipt_prcpddend" propid="value" datasetid="ds_send_srchinfo" columnid="srchtodd"/>
  192. <BindItem id="item2" compid="grp_sea.ipt_pid" propid="value" datasetid="ds_send_srchinfo" columnid="srchpid"/>
  193. <BindItem id="item3" compid="grp_sea.ipt_wardnm" propid="value" datasetid="ds_temp_deptlist" columnid="deptnm"/>
  194. <BindItem id="item4" compid="grp_sea.ipt_srchdrugcd" propid="value" datasetid="ds_send_srchinfo" columnid="srchdrugcd"/>
  195. </Bind>
  196. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  197. * System Name :
  198. * Job Name :
  199. * Creator :
  200. * Make Date : 2015-11-10
  201. * Description :
  202. *---------------------------------------------------------------------------------------
  203. * Modify Date Modifier Modify Description
  204. *---------------------------------------------------------------------------------------
  205. * 2015-11-10 Live Converter TF->XP
  206. *
  207. *---------------------------------------------------------------------------------------
  208. ****************************************************************************************/
  209. include "com_commonxp::comm_main.xjs";
  210. /******************************************************************
  211. * Argument :
  212. * Description : 초기화
  213. ******************************************************************/
  214. function SMADC03300_oninit(obj:Form, e:InitEventInfo)
  215. {
  216. frmf_initForm(obj);
  217. }
  218. function SMADC03300_onload(obj:Form, e:LoadEventInfo)
  219. {
  220. //입력일자설정
  221. ds_send_srchinfo.setColumn(0, "srchfromdd", utlf_getCurrentDate());
  222. ds_send_srchinfo.setColumn(0, "srchtodd", utlf_getCurrentDate());
  223. //진료과조회
  224. var oParam = {};
  225. oParam.id = "TRADC03302";
  226. oParam.service = "pharmacyconsultapp.ADRMngt";
  227. oParam.method = "reqGetADRPastHistDeptList";
  228. oParam.inds = "req=ds_send_srchinfo";
  229. oParam.outds = "ds_init_reqdeptlist=reqdeptinfo";
  230. oParam.async = false;
  231. //oParam.callback = "cf_TRADC03302";
  232. tranf_submit(oParam);
  233. //진료과조회
  234. var sProp1="col=4,row=19,cellspacing=5,vcellspacing=0,itemWidth=-1,itemHeight=20,overflow=''";
  235. chk_ward.setInitComp(sProp1, ds_init_reqdeptlist, "deptcd", "deptnm", "fn_setDeptcd");
  236. /*
  237. //진료과조회
  238. model.setValue("/root/send/deptflag", "D");
  239. submit("TRADC02103");
  240. astfAddCombo("/root/init/orddept", "dept", "deptcd,deptnm", ",");
  241. //병동
  242. model.setValue("/root/send/deptflag", "W");
  243. submit("TRADC02102");
  244. astfAddCombo("/root/init/deptlist", "ward", "deptcd,deptnm", "T,전체");
  245. */
  246. }
  247. /******************************************************************
  248. * Argument :
  249. * Description : 진료과 bind set
  250. ******************************************************************/
  251. function fn_setDeptcd(){
  252. var getDeptcd = String(chk_ward.getData()).replace(",", "|");
  253. var getLabel = String(chk_ward.getLableData()).replace(",", "|");
  254. ds_temp_deptlist.setColumn(0, "deptcd", getDeptcd);
  255. ds_temp_deptlist.setColumn(0, "deptnm", getLabel);
  256. ds_send_srchinfo.setColumn(0, "srchreqdeptlist", ds_temp_deptlist.getColumn(0, "deptcd"));
  257. if(ds_temp_deptlist.getColumn(0, "deptcd").substr(0,1) == "T") {
  258. ds_send_srchinfo.setColumn(0, "srchreqdeptlist", "T");
  259. ds_temp_deptlist.setColumn(0, "deptnm", "전체");
  260. }
  261. }
  262. /******************************************************************
  263. * Argument :
  264. * Description : 조회 Event
  265. ******************************************************************/
  266. //조회 Button Event
  267. function grp_sea_btn_seamthd_onclick(obj:Button, e:ClickEventInfo)
  268. {
  269. //조회 Function
  270. fGetAdrPastHistList();
  271. }
  272. function fGetAdrPastHistList(){
  273. var sDeptlist = ds_send_srchinfo.getColumn(0, "srchreqdeptlist");
  274. if( utlf_isNull(sDeptlist) ){
  275. ds_send_srchinfo.setColumn(0, "srchreqdeptlist", "T");
  276. }
  277. var oParam = {};
  278. oParam.id = "TRADC03301";
  279. oParam.service = "pharmacyconsultapp.ADRMngt";
  280. oParam.method = "reqGetADRPastHist";
  281. oParam.inds = "req=ds_send_srchinfo";
  282. oParam.outds = "ds_grd_adrpasthistlist=adrpasthistinfo";
  283. oParam.async = false;
  284. //oParam.callback = "cf_TRADC03301";
  285. tranf_submit(oParam);
  286. if( utlf_isNull(sDeptlist) ){
  287. ds_send_srchinfo.setColumn(0, "srchreqdeptlist", "");
  288. }
  289. }
  290. // 등록번호 Enter
  291. function grp_sea_ipt_pid_onkeydown(obj:Edit, e:KeyEventInfo)
  292. {
  293. if( e.keycode == 13 ){
  294. fGetAdrPastHistList();
  295. }
  296. }
  297. //의뢰약물 Event
  298. function grp_sea_ipt_srchdrugcd_onkeydown(obj:Edit, e:KeyEventInfo)
  299. {
  300. if( e.keycode == 13 ){
  301. fGetAdrPastHistList();
  302. }
  303. }
  304. /******************************************************************
  305. * Argument :
  306. * Description : 진료과 선택(돋보기) Event
  307. ******************************************************************/
  308. function grp_sea_button4_onclick(obj:Button, e:ClickEventInfo)
  309. {
  310. if( chk_ward.visible ){
  311. chk_ward.visible = false;
  312. } else {
  313. chk_ward.visible = true;
  314. }
  315. }
  316. /******************************************************************
  317. * Argument :
  318. * Description : 엑셀다운로드
  319. ******************************************************************/
  320. function group3_btn_excel_onclick(obj:Button, e:ClickEventInfo)
  321. {
  322. if( ds_grd_adrpasthistlist.rowcount > 0 ){
  323. grdf_exportExcel(grd_adrpasthistlist, "ADR과거력리스트", "ADR과거력리스트", false, "", "user", false);
  324. } else {
  325. sysf_messageBox("조회된 데이터가 ", "I004");
  326. }
  327. }
  328. function grp_sea_button00_onclick(obj:Button, e:ClickEventInfo)
  329. {
  330. dsf_createDsRow("ds_temp_receivedata",
  331. [{col:"receiveref", type:"string", size:256, val:"ds_send_srchinfo"}
  332. ,{col:"srchflag", type:"string", size:256, val:""}
  333. ,{col:"srchcnts", type:"string", size:256, val:""}
  334. ,{col:"receivedrugcd", type:"string", size:256, val:"srchdrugcd"}
  335. ,{col:"receivedrugnm", type:"string", size:256, val:""}
  336. ,{col:"drugkind", type:"string", size:256, val:""}],true);
  337. var objArg = new Object();
  338. objArg.arg_ds_temp_receivedata = ds_temp_receivedata;
  339. frmf_modal("SPADB60100", "SPADB60100", objArg, null, 0, 100, 150, null, null, null, null, null, "M");
  340. }
  341. ]]></Script>
  342. </Form>
  343. </FDL>