SMADT22001_투약X반환불가약조회.xfdl 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMADT21001_특정약집계" classname="SMADT21001_특정약집계" inheritanceid="" position="absolute 0 0 1024 768" titletext="투약X반환불가내역 조회" oninit="SMADT22001_oninit" onload="SMADT22001_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div id="group2" anchor="left top right" taborder="0" class="div_SA" position="absolute 0 24 1024 64">
  8. <Layouts>
  9. <Layout>
  10. <Shape id="line13" linetype="vertical" position="absolute 901 8 907 33" anchor="top right"/>
  11. <Static id="caption24" text="처방일자 : " class="search_name" position="absolute 10 13 145 30" anchor="default"/>
  12. <Static id="caption5" text="~" position="absolute 191 11 206 31" anchor="default"/>
  13. <Button id="btn_sea" taborder="3" text="조회" onclick="group3_group2_btn_sea_onclick" class="btn1" position="absolute 921 9 977 31" anchor="top right"/>
  14. <Calendar id="ipt_fromdd" taborder="4" autoselect="true" dateformat="yyyy-MM-dd" oneditclick="group3_group2_ipt_sumdt1_oneditclick" class="input_essential" position="absolute 88 11 188 30" anchor="default"/>
  15. <Calendar id="ipt_todd" taborder="5" autoselect="true" dateformat="yyyy-MM-dd" class="input_essential" position="absolute 204 11 304 30" anchor="default"/>
  16. <Static id="caption00" text="구분 :" class="search_name" position="absolute 333 11 382 28"/>
  17. <Radio id="Radio00" taborder="6" columncount="2" rowcount="0" position="absolute 386 8 520 28" codecolumn="codecolumn" datacolumn="datacolumn" onitemchanged="group2_Radio00_onitemchanged">
  18. <Dataset id="innerdataset">
  19. <ColumnInfo>
  20. <Column id="codecolumn" size="256"/>
  21. <Column id="datacolumn" size="256"/>
  22. </ColumnInfo>
  23. <Rows>
  24. <Row>
  25. <Col id="codecolumn">1</Col>
  26. <Col id="datacolumn">부서별</Col>
  27. </Row>
  28. <Row>
  29. <Col id="codecolumn">2</Col>
  30. <Col id="datacolumn">환자별</Col>
  31. </Row>
  32. </Rows>
  33. </Dataset>
  34. </Radio>
  35. </Layout>
  36. </Layouts>
  37. </Div>
  38. <Static id="caption6" text="투약X반환불가내역 조회" class="tit_1" position="absolute 0 0 179 25"/>
  39. <Grid id="grd_detllist" taborder="2" useinputpanel="false" position="absolute 222 99 1012 760" binddataset="ds_main_sumdetllist">
  40. <Formats>
  41. <Format id="default">
  42. <Columns>
  43. <Column size="94"/>
  44. <Column size="54"/>
  45. <Column size="67"/>
  46. <Column size="64"/>
  47. <Column size="76"/>
  48. <Column size="70"/>
  49. <Column size="59"/>
  50. <Column size="82"/>
  51. <Column size="49"/>
  52. <Column size="231"/>
  53. <Column size="70"/>
  54. <Column size="59"/>
  55. <Column size="105"/>
  56. </Columns>
  57. <Rows>
  58. <Row size="24" band="head"/>
  59. <Row size="24"/>
  60. </Rows>
  61. <Band id="head">
  62. <Cell text="병동"/>
  63. <Cell col="1" text="병실"/>
  64. <Cell col="2" text="등록번호"/>
  65. <Cell col="3" text="환자명"/>
  66. <Cell col="4" text="처방일자"/>
  67. <Cell col="5" text="적용일자"/>
  68. <Cell col="6" text="약번호"/>
  69. <Cell col="7" text="처방코드"/>
  70. <Cell col="8" text="DC여부"/>
  71. <Cell col="9" text="처방명"/>
  72. <Cell col="10" text="수행일자"/>
  73. <Cell col="11" text="수행시간"/>
  74. <Cell col="12" text="처방등록일시"/>
  75. </Band>
  76. <Band id="body">
  77. <Cell text="bind:wardnm"/>
  78. <Cell col="1" text="bind:roomcd"/>
  79. <Cell col="2" text="bind:pid"/>
  80. <Cell col="3" text="bind:hngnm"/>
  81. <Cell col="4" displaytype="date" text="bind:prcpdd"/>
  82. <Cell col="5" displaytype="date" text="bind:drugdd"/>
  83. <Cell col="6" displaytype="text" style="align:center;" text="bind:drugno"/>
  84. <Cell col="7" text="bind:prcpcd"/>
  85. <Cell col="8" style="align:center;" text="bind:dcyn"/>
  86. <Cell col="9" style="align:left;padding:0 0 0 5;" text="bind:prcpnm"/>
  87. <Cell col="10" displaytype="date" text="bind:execdd"/>
  88. <Cell col="11" displaytype="text" style="align:center;" text="bind:exectm" mask="99:99" maskchar="__:__"/>
  89. <Cell col="12" text="bind:rgstdt" mask="9999-99-99 99:99"/>
  90. </Band>
  91. </Format>
  92. </Formats>
  93. </Grid>
  94. <Shape id="line01" class="line_1" position="absolute 222 92 1012 102" style="strokepen:3 solid #33bbbbff;"/>
  95. <Static id="cap_detl" text="부서별 상세내역" class="search_name" position="absolute 228 77 393 94"/>
  96. <Static id="cap_sum" text="집계내역" class="search_name" position="absolute 7 77 172 94"/>
  97. <Shape id="line00" class="line_1" position="absolute 2 92 208 102" style="strokepen:3 solid #33bbbbff;"/>
  98. <Grid id="grd_sumlist" taborder="4" binddataset="ds_main_sumlist" useinputpanel="false" oncellclick="Grid00_oncellclick" oncelldblclick="Grid00_oncelldblclick" position="absolute 2 99 208 760">
  99. <Formats>
  100. <Format id="default">
  101. <Columns>
  102. <Column size="130"/>
  103. <Column size="0"/>
  104. <Column size="61"/>
  105. <Column size="0"/>
  106. </Columns>
  107. <Rows>
  108. <Row size="24" band="head"/>
  109. <Row size="24"/>
  110. </Rows>
  111. <Band id="head">
  112. <Cell text="부서"/>
  113. <Cell col="1" text="처방"/>
  114. <Cell col="2" text="건수"/>
  115. <Cell col="3"/>
  116. </Band>
  117. <Band id="body">
  118. <Cell style="align:left;padding:5 5 5 5;" text="bind:wardnm"/>
  119. <Cell col="1" text="bind:prcpcd"/>
  120. <Cell col="2" text="bind:qty"/>
  121. <Cell col="3" text="bind:flag"/>
  122. </Band>
  123. </Format>
  124. </Formats>
  125. </Grid>
  126. </Layout>
  127. </Layouts>
  128. <Objects>
  129. <Dataset id="ds_send_req" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  130. <ColumnInfo>
  131. <Column id="fromdd" type="STRING" size="256"/>
  132. <Column id="todd" type="STRING" size="256"/>
  133. <Column id="flag" type="STRING" size="256"/>
  134. </ColumnInfo>
  135. <Rows>
  136. <Row/>
  137. </Rows>
  138. </Dataset>
  139. <Dataset id="ds_main_sumlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  140. <ColumnInfo>
  141. <Column id="wardnm" type="STRING" size="256"/>
  142. <Column id="prcpcd" type="STRING" size="256"/>
  143. <Column id="wardcd" type="STRING" size="256"/>
  144. <Column id="qty" type="STRING" size="256"/>
  145. <Column id="flag" type="STRING" size="256"/>
  146. </ColumnInfo>
  147. <Rows>
  148. <Row/>
  149. </Rows>
  150. </Dataset>
  151. <Dataset id="ds_send_detl" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  152. <ColumnInfo>
  153. <Column id="fromdd" type="STRING" size="256"/>
  154. <Column id="todd" type="STRING" size="256"/>
  155. <Column id="flag" type="STRING" size="256"/>
  156. <Column id="wardcd" type="STRING" size="256"/>
  157. <Column id="prcpcd" type="STRING" size="256"/>
  158. </ColumnInfo>
  159. <Rows>
  160. <Row/>
  161. </Rows>
  162. </Dataset>
  163. <Dataset id="ds_main_sumdetllist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  164. <ColumnInfo>
  165. <Column id="pid" type="STRING" size="256"/>
  166. <Column id="hngnm" type="STRING" size="256"/>
  167. <Column id="prcpdd" type="STRING" size="256"/>
  168. <Column id="prcpcd" type="STRING" size="256"/>
  169. <Column id="prcpnm" type="STRING" size="256"/>
  170. <Column id="qty" type="STRING" size="256"/>
  171. <Column id="roomcd" type="STRING" size="256"/>
  172. <Column id="drugdd" type="STRING" size="256"/>
  173. <Column id="drugno" type="STRING" size="256"/>
  174. </ColumnInfo>
  175. <Rows>
  176. <Row/>
  177. </Rows>
  178. </Dataset>
  179. <Dataset id="ds_main_prntlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  180. </Objects>
  181. <Bind>
  182. <BindItem id="item1" compid="group2.ipt_fromdd" propid="value" datasetid="ds_send_req" columnid="fromdd"/>
  183. <BindItem id="item2" compid="group2.ipt_todd" propid="value" datasetid="ds_send_req" columnid="todd"/>
  184. <BindItem id="item0" compid="group2.Radio00" propid="value" datasetid="ds_send_req" columnid="flag"/>
  185. </Bind>
  186. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  187. * System Name :
  188. * Job Name :
  189. * Creator :
  190. * Make Date : 2015-11-13
  191. * Description :
  192. *---------------------------------------------------------------------------------------
  193. * Modify Date Modifier Modify Description
  194. *---------------------------------------------------------------------------------------
  195. * 2015-11-13 Live Converter TF->XP
  196. *
  197. *---------------------------------------------------------------------------------------
  198. ****************************************************************************************/
  199. //=======================================================================================
  200. // Lib Include
  201. //---------------------------------------------------------------------------------------
  202. include "com_commonxp::comm_main.xjs"
  203. function group3_group2_btn_sea_onclick(obj:Button, e:ClickEventInfo)
  204. {
  205. var flag = ds_send_req.getColumn(0, "flag");
  206. if(flag =="1") {
  207. var oParam = {};
  208. oParam.id = "TRADT21001";
  209. oParam.service = "pharmacydrugsumapp.BeforeCure";
  210. oParam.method = "reqGetDrugXRtnRecList";
  211. oParam.inds = "req=ds_send_req";
  212. oParam.outds = "ds_main_sumlist=info";
  213. oParam.async = false;
  214. } else {
  215. var oParam = {};
  216. oParam.id = "TRADT21002";
  217. oParam.service = "pharmacydrugsumapp.BeforeCure";
  218. oParam.method = "reqGetDrugXRtnRecDetlList";
  219. oParam.inds = "req=ds_send_req";
  220. oParam.outds = "ds_main_sumdetllist=info";
  221. oParam.async = false;
  222. }
  223. tranf_submit(oParam);
  224. }
  225. function Grid00_oncellclick(obj:Grid, e:GridClickEventInfo)
  226. {
  227. var wardcd = ds_main_sumlist.getColumn(obj.currentrow, "wardcd");
  228. var prcpcd = ds_main_sumlist.getColumn(obj.currentrow, "prcpcd");
  229. var flag = ds_main_sumlist.getColumn(obj.currentrow, "flag");
  230. var fromdd = ds_send_req.getColumn(0, "fromdd");
  231. var todd = ds_send_req.getColumn(0, "todd");
  232. ds_send_detl.setColumn(0, "wardcd", wardcd);
  233. //ds_send_detl.setColumn(0, "prcpcd", prcpcd);
  234. ds_send_detl.setColumn(0, "fromdd" , fromdd);
  235. ds_send_detl.setColumn(0, "todd" , todd);
  236. var oParam = {};
  237. oParam.id = "TRADT21002";
  238. oParam.service = "pharmacydrugsumapp.BeforeCure";
  239. oParam.method = "reqGetDrugXRtnRecDetlList";
  240. oParam.inds = "req=ds_send_detl";
  241. oParam.outds = "ds_main_sumdetllist=info";
  242. oParam.async = false;
  243. //oParam.callback = "cf_TRADT10323";
  244. tranf_submit(oParam);
  245. }
  246. function group2_Radio00_onitemclick(obj:Radio, e:RadioMouseEventInfo)
  247. {
  248. }
  249. function group2_Radio00_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
  250. {
  251. var flag = ds_send_req.getColumn(0, "flag");
  252. if(flag == "1") {
  253. grd_sumlist.visible = true;
  254. cap_sum.visible = true;
  255. ds_main_sumdetllist.clearData();
  256. grd_detllist.position.left = 222;
  257. grd_detllist.position.width = 790;
  258. cap_detl.position.left=222;
  259. } else {
  260. ds_main_sumlist.clearData();
  261. grd_detllist.position.left = 0;
  262. grd_detllist.position.width = 1012;
  263. cap_detl.position.left=0;
  264. grd_sumlist.visible = false;
  265. cap_sum.visible = false;
  266. }
  267. }
  268. function SMADT22001_oninit(obj:Form, e:InitEventInfo)
  269. {
  270. frmf_initForm(obj);
  271. }
  272. function SMADT22001_onload(obj:Form, e:LoadEventInfo)
  273. {
  274. var fromdd = utlf_getCurrentDate().toDate().getAddDate(-1, "D").getDateFormat("YYYYMMDD");
  275. var todd = utlf_getCurrentDate();
  276. ds_send_req.setColumn(0, "fromdd", fromdd);
  277. ds_send_req.setColumn(0, "todd", todd);
  278. ds_send_req.setColumn(0, "flag", "1");
  279. }
  280. ]]></Script>
  281. </Form>
  282. </FDL>