SMADT12260_마약류연계보고상세내역조회.xfdl 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMADT12260" classname="SMADT12260_마약류연계보고결상세내역조회" inheritanceid="" position="absolute 0 0 1104 650" titletext="연계보고 결과 상세내역 조회" onload="SMADT12260_onload" oninit="SMADT12260_oninit">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption01" text="연계보고 상세내역 조회" class="tit_2" position="absolute -1 48 159 69"/>
  8. <Grid id="grd_pmmrlist" taborder="17" binddataset="ds_pmmrlist" autoenter="select" useinputpanel="false" selecttype="row" cellsizingtype="both" position="absolute 0 69 1100 608" anchor="all">
  9. <Formats>
  10. <Format id="default">
  11. <Columns>
  12. <Column size="25" band="left"/>
  13. <Column size="49"/>
  14. <Column size="60"/>
  15. <Column size="57"/>
  16. <Column size="61"/>
  17. <Column size="255"/>
  18. <Column size="67"/>
  19. <Column size="110"/>
  20. <Column size="72"/>
  21. <Column size="108"/>
  22. <Column size="67"/>
  23. <Column size="42"/>
  24. <Column size="37"/>
  25. <Column size="40"/>
  26. </Columns>
  27. <Rows>
  28. <Row size="24" band="head"/>
  29. <Row size="24"/>
  30. </Rows>
  31. <Band id="head">
  32. <Cell/>
  33. <Cell col="1" text="구분"/>
  34. <Cell col="2" text="등록번호"/>
  35. <Cell col="3" text="환자명"/>
  36. <Cell col="4" text="투약번호"/>
  37. <Cell col="5" text="제품명"/>
  38. <Cell col="6" text="불출저장소"/>
  39. <Cell col="7" text="제품코드"/>
  40. <Cell col="8" text="제조번호"/>
  41. <Cell col="9" text="일련번호"/>
  42. <Cell col="10" text="유효기간"/>
  43. <Cell col="11" colspan="2" text="조제수량" taborder="undefined"/>
  44. <Cell col="13" text="폐기량"/>
  45. </Band>
  46. <Band id="body">
  47. <Cell celltype="head" text="expr:currow+1"/>
  48. <Cell col="1" displaytype="combo" style="align:center;background:EXPR(flag=='2'?'#ffe79d':'');background2:EXPR(flag=='2'?'#ffe79d':'');" text="bind:flag" combodataset="ds_flag" combocodecol="cd" combodatacol="nm"/>
  49. <Cell col="2" style="background:EXPR(flag=='2'?'#ffe79d':'');background2:EXPR(flag=='2'?'#ffe79d':'');" text="bind:pid"/>
  50. <Cell col="3" style="background:EXPR(flag=='2'?'#ffe79d':'');background2:EXPR(flag=='2'?'#ffe79d':'');" text="bind:mdc_pat_nm"/>
  51. <Cell col="4" style="background:EXPR(flag=='2'?'#ffe79d':'');background2:EXPR(flag=='2'?'#ffe79d':'');" text="bind:drugno"/>
  52. <Cell col="5" style="align:left;padding:0 0 0 5;background:EXPR(flag=='2'?'#ffe79d':'');background2:EXPR(flag=='2'?'#ffe79d':'');" text="bind:prduct_nm"/>
  53. <Cell col="6" displaytype="combo" style="align:center;background:EXPR(flag=='2'?'#ffe79d':'');background2:EXPR(flag=='2'?'#ffe79d':'');" text="bind:storge_no" combodataset="ds_storge" combocodecol="cd" combodatacol="nm"/>
  54. <Cell col="7" style="background:EXPR(flag=='2'?'#ffe79d':'');background2:EXPR(flag=='2'?'#ffe79d':'');" text="bind:prduct_cd"/>
  55. <Cell col="8" style="background:EXPR(flag=='2'?'#ffe79d':'');background2:EXPR(flag=='2'?'#ffe79d':'');" text="bind:mnf_no"/>
  56. <Cell col="9" style="align:left;padding:0 0 0 5;background:EXPR(flag=='2'?'#ffe79d':'');background2:EXPR(flag=='2'?'#ffe79d':'');" text="bind:mnf_seq"/>
  57. <Cell col="10" style="background:EXPR(flag=='2'?'#ffe79d':'');background2:EXPR(flag=='2'?'#ffe79d':'');" text="bind:prd_valid_de"/>
  58. <Cell col="11" style="background:EXPR(flag=='2'?'#ffe79d':'');background2:EXPR(flag=='2'?'#ffe79d':'');" text="bind:pce_qy"/>
  59. <Cell col="12" style="background:EXPR(flag=='2'?'#ffe79d':'');background2:EXPR(flag=='2'?'#ffe79d':'');" text="bind:prd_pce_unit"/>
  60. <Cell col="13" style="background:EXPR(flag=='2'?'#ffe79d':'');background2:EXPR(flag=='2'?'#ffe79d':'');" text="bind:mdc_aft_dsuse_qy"/>
  61. </Band>
  62. </Format>
  63. </Formats>
  64. </Grid>
  65. <Shape id="line7" class="line_10" position="absolute 0 64 1100 70" anchor="left top right"/>
  66. <Div id="grp_search" anchor="left top right" taborder="19" class="div_SA2" position="absolute 0 0 1100 35">
  67. <Layouts>
  68. <Layout>
  69. <Static id="caption1" text="연계파일명 :" class="search_name" position="absolute 325 10 409 27" anchor="default"/>
  70. <Edit id="ipt_file_name" taborder="1" imemode="alpha" inputmode="upper" autoselect="true" class="output" position="absolute 414 8 660 27" anchor="default" readonly="true"/>
  71. <Static id="caption00" text="사용자보고식별번호 :" class="search_name" position="absolute 13 10 149 27" anchor="default"/>
  72. <Edit id="ipt_usr_prt_id_no" taborder="2" imemode="alpha" inputmode="upper" autoselect="true" class="output" position="absolute 154 8 305 27" anchor="default" readonly="true"/>
  73. <Static id="caption02" text="결과파일명 :" class="search_name" position="absolute 669 10 753 27"/>
  74. <Edit id="ipt_result_file_name" taborder="3" imemode="alpha" inputmode="upper" readonly="true" autoselect="true" class="output" position="absolute 758 8 1023 27"/>
  75. </Layout>
  76. </Layouts>
  77. </Div>
  78. <Button id="btn_cls" taborder="20" text="닫기" onclick="btn_cls_onclick" class="btn3" position="absolute 1035 617 1091 639"/>
  79. <Button id="btn_download" taborder="21" text="엑셀 Download" class="btn2" visible="false" position="absolute 992 45 1100 64" anchor="top right" onclick="btn_download_onclick"/>
  80. </Layout>
  81. </Layouts>
  82. <Bind>
  83. <BindItem id="item12" compid="SMADT12160" propid="text" datasetid="ds_main_prntlist_patinfo" columnid=""/>
  84. <BindItem id="item3" compid="grp_search.ipt_file_name" propid="value" datasetid="ds_send_search" columnid="file_name"/>
  85. <BindItem id="item0" compid="grp_search.ipt_usr_prt_id_no" propid="value" datasetid="ds_send_search" columnid="usr_rpt_id_no"/>
  86. <BindItem id="item1" compid="grp_search.ipt_result_file_name" propid="value" datasetid="ds_send_search" columnid="result_file_name"/>
  87. </Bind>
  88. <Objects>
  89. <Dataset id="ds_pmmrlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  90. <ColumnInfo>
  91. <Column id="usr_rpt_id_no" type="STRING" size="256"/>
  92. <Column id="pid" type="STRING" size="256"/>
  93. <Column id="drugno" type="STRING" size="256"/>
  94. <Column id="drugdd" type="STRING" size="256"/>
  95. <Column id="mdc_pat_nm" type="STRING" size="256"/>
  96. <Column id="prduct_nm" type="STRING" size="256"/>
  97. <Column id="storge_no" type="STRING" size="256"/>
  98. <Column id="prduct_cd" type="STRING" size="256"/>
  99. <Column id="mnf_no" type="STRING" size="256"/>
  100. <Column id="mnf_seq" type="STRING" size="256"/>
  101. <Column id="prd_valid_de" type="STRING" size="256"/>
  102. <Column id="pce_qy" type="STRING" size="256"/>
  103. <Column id="prd_pce_unit" type="STRING" size="256"/>
  104. <Column id="mdc_aft_dsuse_qy" type="STRING" size="256"/>
  105. <Column id="flag" type="STRING" size="256"/>
  106. </ColumnInfo>
  107. </Dataset>
  108. <Dataset id="ds_send_search" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  109. <ColumnInfo>
  110. <Column id="result_file_name" type="STRING" size="256"/>
  111. <Column id="usr_rpt_id_no" type="STRING" size="256"/>
  112. <Column id="file_name" type="STRING" size="256"/>
  113. <Column id="ref_usr_rpt_id_no" type="STRING" size="256"/>
  114. <Column id="rpt_ty_cd" type="STRING" size="256"/>
  115. </ColumnInfo>
  116. <Rows>
  117. <Row/>
  118. </Rows>
  119. </Dataset>
  120. <Dataset id="ds_storge" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  121. <ColumnInfo>
  122. <Column id="cd" type="STRING" size="256"/>
  123. <Column id="nm" type="STRING" size="256"/>
  124. </ColumnInfo>
  125. <Rows>
  126. <Row>
  127. <Col id="cd">S0001</Col>
  128. <Col id="nm">기본저장소</Col>
  129. </Row>
  130. <Row>
  131. <Col id="cd">S0002</Col>
  132. <Col id="nm">병동약국</Col>
  133. </Row>
  134. <Row>
  135. <Col id="cd">S0003</Col>
  136. <Col id="nm">외래약국</Col>
  137. </Row>
  138. <Row>
  139. <Col id="cd">S0004</Col>
  140. <Col id="nm">마취회복실</Col>
  141. </Row>
  142. <Row>
  143. <Col id="cd">S0005</Col>
  144. <Col id="nm">내시경실</Col>
  145. </Row>
  146. <Row>
  147. <Col id="cd">S0006</Col>
  148. <Col id="nm">45병동(주사실)</Col>
  149. </Row>
  150. <Row>
  151. <Col id="cd">S0007</Col>
  152. <Col id="nm">PICU</Col>
  153. </Row>
  154. <Row>
  155. <Col id="cd">S0008</Col>
  156. <Col id="nm">ICU</Col>
  157. </Row>
  158. <Row>
  159. <Col id="cd">S0009</Col>
  160. <Col id="nm">응급실</Col>
  161. </Row>
  162. <Row>
  163. <Col id="cd">S0010</Col>
  164. <Col id="nm">비치약품관리소</Col>
  165. </Row>
  166. </Rows>
  167. </Dataset>
  168. <Dataset id="ds_flag" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  169. <ColumnInfo>
  170. <Column id="cd" type="STRING" size="256"/>
  171. <Column id="nm" type="STRING" size="256"/>
  172. </ColumnInfo>
  173. <Rows>
  174. <Row>
  175. <Col id="cd">1</Col>
  176. <Col id="nm">변경전</Col>
  177. </Row>
  178. <Row>
  179. <Col id="cd">2</Col>
  180. <Col id="nm">변경후</Col>
  181. </Row>
  182. </Rows>
  183. </Dataset>
  184. </Objects>
  185. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  186. * System Name : 경대 의료정보시스템
  187. * Job Name : ast_pharmacydrugsumxp-> SMADT12160
  188. * Creator : pjb
  189. * Make Date : 2018-05-08
  190. * Description :
  191. *---------------------------------------------------------------------------------------
  192. * Modify Date Modifier Modify Description
  193. *---------------------------------------------------------------------------------------
  194. * 2018-05-08 pjb XP개발
  195. *
  196. *---------------------------------------------------------------------------------------
  197. ****************************************************************************************/
  198. //=======================================================================================
  199. // Lib Include
  200. //---------------------------------------------------------------------------------------
  201. include "com_commonxp::comm_main.xjs";
  202. //include "mis_miscommonxp::MIS.xjs";
  203. //include "mis_humtrafactmngtxp::RPB001.xjs";
  204. //=======================================================================================
  205. // Global Form Variable
  206. //---------------------------------------------------------------------------------------
  207. var arErrorCode = new HashArray();
  208. //=======================================================================================
  209. // Function
  210. //---------------------------------------------------------------------------------------
  211. //=======================================================================================
  212. // Event
  213. //---------------------------------------------------------------------------------------
  214. /****************************************************************************************
  215. * Components : Form
  216. * Components ID : SMADT12160
  217. * Event : oninit
  218. * Argument : 01.obj : Object Event has occurred
  219. * : 02.e : Event Object
  220. * Description : 화면 처음 초기화시
  221. ****************************************************************************************/
  222. function SMADT12260_onload(obj:Form, e:LoadEventInfo)
  223. {
  224. frmf_initForm(obj); //폼 초기화
  225. }
  226. function SMADT12260_oninit(obj:Form, e:InitEventInfo)
  227. {
  228. fInit();
  229. //if (arErrorCode.pop("TRADT12161") > -1){
  230. //}
  231. }
  232. function fInit() {
  233. //grdf_setRowTypeIcon(grd_errorlist, 0);
  234. grdf_setGridSort(grd_pmmrlist);
  235. // 오프너에서 전달받은 정보
  236. try{
  237. dsf_copyDs(ds_send_search, arg_ds_resultinfo, "replace");
  238. }catch(e){}
  239. var rpt_ty_cd =ds_send_search.getColumn(0, "rpt_ty_cd");
  240. if(rpt_ty_cd == "2") {
  241. grd_pmmrlist.setFormatColProperty(1,"size",45);
  242. } else {
  243. grd_pmmrlist.setFormatColProperty(1,"size",0);
  244. }
  245. //연계보고결과조회
  246. var oParam = {};
  247. oParam.id = "TRADT12261";
  248. oParam.service = "pharmacydrugsumapp.NarcManagent";
  249. oParam.method = "reqGetSendDetailInfo";
  250. oParam.inds = "req=ds_send_search";
  251. oParam.outds = "ds_pmmrlist=info";
  252. oParam.async = false;
  253. //oParam.callback = "cf_TRADT12161";
  254. tranf_submit(oParam);
  255. }
  256. function cf_TRADT12261(sSvcId, nErrorCode, sErrorMsg) {
  257. arErrorCode.push(sSvcId, nErrorCode);
  258. }
  259. function btn_download_onclick(obj:Button, e:ClickEventInfo)
  260. {
  261. //조회된 자료가 없으면 먼저 조회하라고 message
  262. if(ds_pmmrlist.rowcount < 1) {
  263. sysf_messageBox("조회된 결과가 존재하지 않습니다. \n\n먼저 조회 후 Download 하십시요. ", "E999", "");
  264. return;
  265. }
  266. grdf_exportExcel(ds_pmmrlist, "excel", "savetype", false, "", "user", false);
  267. }
  268. function btn_cls_onclick(obj:Button, e:ClickEventInfo)
  269. {
  270. this.close();
  271. }
  272. ]]></Script>
  273. </Form>
  274. </FDL>