SMADT12160_마약류연계보고결과에러메세지조회.xfdl 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMADT12160" classname="SMADT12160_마약류연계보고결과에러메세지조회" inheritanceid="" position="absolute 0 0 1104 650" titletext="연계보고 결과 Error 메세지 조회" onload="SMADT12160_onload" oninit="SMADT12160_oninit">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption01" text="연계보고 결과 목록" class="tit_2" position="absolute -1 48 159 69"/>
  8. <Grid id="grd_errorlist" taborder="17" binddataset="ds_errorlist" 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="68"/>
  14. <Column size="988"/>
  15. </Columns>
  16. <Rows>
  17. <Row size="24" band="head"/>
  18. <Row size="24"/>
  19. </Rows>
  20. <Band id="head">
  21. <Cell/>
  22. <Cell col="1" text="Error 코드"/>
  23. <Cell col="2" text="Error 메세지"/>
  24. </Band>
  25. <Band id="body">
  26. <Cell celltype="head" text="expr:currow+1"/>
  27. <Cell col="1" text="bind:error_cd"/>
  28. <Cell col="2" style="align:left;padding:0 0 0 6;" text="bind:error_msg"/>
  29. </Band>
  30. </Format>
  31. </Formats>
  32. </Grid>
  33. <Shape id="line7" class="line_10" position="absolute 0 64 1100 70" anchor="left top right"/>
  34. <Div id="grp_search" anchor="left top right" taborder="19" class="div_SA2" position="absolute 0 0 1100 35">
  35. <Layouts>
  36. <Layout>
  37. <Static id="caption1" text="연계파일명 :" class="search_name" position="absolute 21 10 105 27" anchor="default"/>
  38. <Edit id="ipt_file_name" taborder="1" imemode="alpha" inputmode="upper" autoselect="true" class="output" position="absolute 110 8 356 27" anchor="default" readonly="true"/>
  39. <Static id="caption00" text="사용자보고식별번호 :" class="search_name" position="absolute 381 10 517 27" anchor="default"/>
  40. <Edit id="ipt_usr_prt_id_no" taborder="2" imemode="alpha" inputmode="upper" autoselect="true" class="output" position="absolute 522 8 673 27" anchor="default" readonly="true"/>
  41. <Static id="caption02" text="결과파일명 :" class="search_name" position="absolute 693 10 777 27"/>
  42. <Edit id="ipt_result_file_name" taborder="3" imemode="alpha" inputmode="upper" readonly="true" autoselect="true" class="output" position="absolute 782 8 1047 27"/>
  43. </Layout>
  44. </Layouts>
  45. </Div>
  46. <Button id="btn_cls" taborder="20" text="닫기" onclick="btn_cls_onclick" class="btn3" position="absolute 1035 617 1091 639"/>
  47. <Button id="btn_download" taborder="21" text="엑셀 Download" class="btn2" visible="true" position="absolute 992 45 1100 64" anchor="top right" onclick="btn_download_onclick"/>
  48. </Layout>
  49. </Layouts>
  50. <Bind>
  51. <BindItem id="item12" compid="SMADT12160" propid="text" datasetid="ds_main_prntlist_patinfo" columnid=""/>
  52. <BindItem id="item3" compid="grp_search.ipt_file_name" propid="value" datasetid="ds_send_search" columnid="file_name"/>
  53. <BindItem id="item0" compid="grp_search.ipt_usr_prt_id_no" propid="value" datasetid="ds_send_search" columnid="usr_rpt_id_no"/>
  54. <BindItem id="item1" compid="grp_search.ipt_result_file_name" propid="value" datasetid="ds_send_search" columnid="result_file_name"/>
  55. </Bind>
  56. <Objects>
  57. <Dataset id="ds_errorlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  58. <ColumnInfo>
  59. <Column id="error_cd" type="STRING" size="256"/>
  60. <Column id="error_msg" type="STRING" size="256"/>
  61. </ColumnInfo>
  62. </Dataset>
  63. <Dataset id="ds_send_search" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  64. <ColumnInfo>
  65. <Column id="result_file_name" type="STRING" size="256"/>
  66. <Column id="usr_rpt_id_no" type="STRING" size="256"/>
  67. <Column id="file_name" type="STRING" size="256"/>
  68. </ColumnInfo>
  69. <Rows>
  70. <Row/>
  71. </Rows>
  72. </Dataset>
  73. </Objects>
  74. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  75. * System Name : 경대 의료정보시스템
  76. * Job Name : ast_pharmacydrugsumxp-> SMADT12160
  77. * Creator : pjb
  78. * Make Date : 2018-05-08
  79. * Description :
  80. *---------------------------------------------------------------------------------------
  81. * Modify Date Modifier Modify Description
  82. *---------------------------------------------------------------------------------------
  83. * 2018-05-08 pjb XP개발
  84. *
  85. *---------------------------------------------------------------------------------------
  86. ****************************************************************************************/
  87. //=======================================================================================
  88. // Lib Include
  89. //---------------------------------------------------------------------------------------
  90. include "com_commonxp::comm_main.xjs";
  91. //include "mis_miscommonxp::MIS.xjs";
  92. //include "mis_humtrafactmngtxp::RPB001.xjs";
  93. //=======================================================================================
  94. // Global Form Variable
  95. //---------------------------------------------------------------------------------------
  96. var arErrorCode = new HashArray();
  97. //=======================================================================================
  98. // Function
  99. //---------------------------------------------------------------------------------------
  100. //=======================================================================================
  101. // Event
  102. //---------------------------------------------------------------------------------------
  103. /****************************************************************************************
  104. * Components : Form
  105. * Components ID : SMADT12160
  106. * Event : oninit
  107. * Argument : 01.obj : Object Event has occurred
  108. * : 02.e : Event Object
  109. * Description : 화면 처음 초기화시
  110. ****************************************************************************************/
  111. function SMADT12160_oninit(obj:Form, e:InitEventInfo)
  112. {
  113. frmf_initForm(obj); //폼 초기화
  114. }
  115. /****************************************************************************************
  116. * Components : Form
  117. * Components ID : SMADT12160
  118. * Event : onload
  119. * Argument : 01.obj : Object Event has occurred
  120. * : 02.e : Event Object
  121. * Description : 화면 로딩 완료시
  122. ****************************************************************************************/
  123. function SMADT12160_onload(obj:Form, e:LoadEventInfo)
  124. {
  125. //grdf_setRowTypeIcon(grd_errorlist, 0);
  126. grdf_setGridSort(grd_errorlist);
  127. // 오프너에서 전달받은 정보
  128. try{
  129. dsf_copyDs(ds_send_search, arg_ds_resultinfo, "replace");
  130. }catch(e){}
  131. //연계보고결과조회
  132. var oParam = {};
  133. oParam.id = "TRADT12161";
  134. oParam.service = "pharmacydrugsumapp.NarcManagent";
  135. oParam.method = "reqGetResultErrorList";
  136. oParam.inds = "req=ds_send_search";
  137. oParam.outds = "ds_errorlist=errorlist";
  138. oParam.async = false;
  139. //oParam.callback = "cf_TRADT12161";
  140. tranf_submit(oParam);
  141. //if (arErrorCode.pop("TRADT12161") > -1){
  142. //}
  143. }
  144. function cf_TRADT12161(sSvcId, nErrorCode, sErrorMsg) {
  145. arErrorCode.push(sSvcId, nErrorCode);
  146. }
  147. function btn_download_onclick(obj:Button, e:ClickEventInfo)
  148. {
  149. //조회된 자료가 없으면 먼저 조회하라고 message
  150. if(ds_errorlist.rowcount < 1) {
  151. sysf_messageBox("조회된 결과가 존재하지 않습니다. \n\n먼저 조회 후 Download 하십시요. ", "E999", "");
  152. return;
  153. }
  154. grdf_exportExcel(grd_errorlist, "excel", "savetype", false, "", "user", false);
  155. }
  156. function btn_cls_onclick(obj:Button, e:ClickEventInfo)
  157. {
  158. this.close();
  159. }
  160. ]]></Script>
  161. </Form>
  162. </FDL>