SMCRC00200_연동내역정보.xfdl 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMCRC00200" position="absolute 0 0 1198 777" titletext="데이터 연동 내역" oninit="SMCRC00200_oninit" onload="SMCRC00200_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 0 25 1194 65" align="align:center top;" id="group2" class="div_SA" anchor="left top right">
  8. <Layouts>
  9. <Layout>
  10. <Static text="연동일시 :" position="absolute 16 11 120 28" id="caption3" class="search_name" anchor="left top"/>
  11. <Calendar position="absolute 108 10 208 29" id="ipt_syncfromdd" class="input_search" anchor="left top"/>
  12. <Static text="~" position="absolute 213 11 225 28" id="caption6" class="search_no_b" anchor="left top"/>
  13. <Calendar position="absolute 230 10 330 29" id="ipt_synctodd" class="input_search" anchor="left top"/>
  14. <Static text="프로그램 ID :" position="absolute 386 11 568 28" id="caption4" class="search_name" anchor="left top"/>
  15. <Edit position="absolute 495 10 640 29" id="ipt_tablenm" class="input_search" anchor="left top"/>
  16. <Button position="absolute 645 11 661 27" id="btn_prgmsrch" class="icon_search" text="" anchor="left top" onclick="group2_btn_prgmsrch_onclick"/>
  17. <Static text="정상종료여부 :" position="absolute 885 12 997 29" id="caption5" class="search_name" anchor="top right"/>
  18. <Combo position="absolute 1005 10 1090 29" id="cmb_useyn" class="combo_search" innerdataset="@ds_init_comncdlist_C0023list" datacolumn="cdnm" codecolumn="cdid" anchor="top right" index="-1"/>
  19. <Shape position="absolute 1103 9 1109 31" linetype="vertical" id="line1" class="line_4" anchor="top right"/>
  20. <Button position="absolute 1122 9 1178 31" id="btn_search" class="btn1" text="조회" anchor="top right" onclick="group2_btn_search_onclick"/>
  21. </Layout>
  22. </Layouts>
  23. </Div>
  24. <Static id="caption1" text="데이터 연동내역 조회" class="tit_1" position="absolute 0 0 157 25" anchor="left top"/>
  25. <Static id="caption2" text="데이터 연동 내역" class="tit_2" position="absolute 0 73 128 89" anchor="left top"/>
  26. <Button id="btn_saveexcel" taborder="1" text="엑셀저장" class="btn7" position="absolute 1120 70 1194 89" onclick="btn_saveexcel_onclick" anchor="top right"/>
  27. <Shape id="line2" linetype="horizontal" class="line_10" position="absolute 0 89 1194 95" anchor="left top right"/>
  28. <Grid id="grd_synclist" class="datagrid2" taborder="2" binddataset="ds_main_list_synclist" useinputpanel="false" position="absolute 0 94 1194 752" anchor="all">
  29. <Formats>
  30. <Format id="default">
  31. <Columns>
  32. <Column size="25"/>
  33. <Column size="150"/>
  34. <Column size="150"/>
  35. <Column size="90"/>
  36. <Column size="60"/>
  37. <Column size="70"/>
  38. <Column size="130"/>
  39. <Column size="130"/>
  40. <Column size="60"/>
  41. <Column size="60"/>
  42. <Column size="60"/>
  43. <Column size="60"/>
  44. <Column size="60"/>
  45. <Column size="70"/>
  46. </Columns>
  47. <Rows>
  48. <Row size="31" band="head"/>
  49. <Row size="24"/>
  50. </Rows>
  51. <Band id="head">
  52. <Cell/>
  53. <Cell col="1" text="프로그램 ID"/>
  54. <Cell col="2" text="연동 정보"/>
  55. <Cell col="3" text="연동번호"/>
  56. <Cell col="4" text="일련&#10;번호"/>
  57. <Cell col="5" text="실행구분"/>
  58. <Cell col="6" text="연동시작일시"/>
  59. <Cell col="7" text="연동종료일시"/>
  60. <Cell col="8" text="총&#10;건수"/>
  61. <Cell col="9" text="실행&#10;건수"/>
  62. <Cell col="10" text="추가&#10;건수"/>
  63. <Cell col="11" text="수정&#10;건수"/>
  64. <Cell col="12" text="삭제&#10;건수"/>
  65. <Cell col="13" text="정상여부"/>
  66. </Band>
  67. <Band id="body">
  68. <Cell celltype="head" expr="expr:currow+1"/>
  69. <Cell col="1" style="align:left middle;padding:0 0 0 3;" text="bind:trsmtablenm"/>
  70. <Cell col="2" style="align:left middle;padding:0 0 0 3;" text="bind:tableinfo"/>
  71. <Cell col="3" displaytype="text" text="bind:synctabledivsetno"/>
  72. <Cell col="4" displaytype="text" style="align:center middle;" class="text_center" text="bind:syncseq"/>
  73. <Cell col="5" displaytype="combo" style="align:center middle;" class="text_center" text="bind:execflag" combodataset="ds_init_comncdlist_C0024list" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
  74. <Cell col="6" displaytype="date" class="text_center" text="bind:trsmusdt" mask="yyyy-MM-dd hh:mm:ss" maskchar=" " calendardisplaynulltype="nulltext"/>
  75. <Cell col="7" displaytype="date" class="text_center" text="bind:trsmuedt" mask="yyyy-MM-dd hh:mm:ss" maskchar=" " calendardisplaynulltype="nulltext"/>
  76. <Cell col="8" displaytype="number" class="text_right" text="bind:totcnt"/>
  77. <Cell col="9" displaytype="number" class="text_right" text="bind:execcnt"/>
  78. <Cell col="10" displaytype="number" class="text_right" text="bind:addcnt"/>
  79. <Cell col="11" displaytype="number" class="text_right" text="bind:updtcnt"/>
  80. <Cell col="12" displaytype="number" class="text_right" text="bind:delcnt"/>
  81. <Cell col="13" displaytype="combo" style="align:center middle;" class="text_center" text="bind:nrmlendyn" combodataset="ds_init_comncdlist_C0023list" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
  82. </Band>
  83. </Format>
  84. </Formats>
  85. </Grid>
  86. <Button id="btn_navi" taborder="3" text="연동정보관리" class="btn3" position="absolute 0 753 104 775" onclick="btn_navi_onclick" anchor="left bottom"/>
  87. </Layout>
  88. </Layouts>
  89. <Objects>
  90. <Dataset id="ds_init_comncdlist_C0023list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  91. <ColumnInfo>
  92. <Column id="cdnm" type="STRING"/>
  93. <Column id="cdid" type="STRING"/>
  94. </ColumnInfo>
  95. </Dataset>
  96. <Dataset id="ds_init_comncdlist_C0024list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  97. <ColumnInfo>
  98. <Column id="cdnm" type="STRING"/>
  99. <Column id="cdid" type="STRING"/>
  100. </ColumnInfo>
  101. </Dataset>
  102. <Dataset id="ds_main_list_synclist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  103. <ColumnInfo>
  104. <Column id="trsmtablenm" type="STRING"/>
  105. <Column id="tableinfo" type="STRING"/>
  106. <Column id="synctabledivsetno" type="STRING"/>
  107. <Column id="syncseq" type="STRING"/>
  108. <Column id="execflag" type="STRING"/>
  109. <Column id="trsmusdt" type="STRING"/>
  110. <Column id="trsmuedt" type="STRING"/>
  111. <Column id="totcnt" type="STRING"/>
  112. <Column id="execcnt" type="STRING"/>
  113. <Column id="addcnt" type="STRING"/>
  114. <Column id="updtcnt" type="STRING"/>
  115. <Column id="delcnt" type="STRING"/>
  116. <Column id="nrmlendyn" type="STRING"/>
  117. </ColumnInfo>
  118. </Dataset>
  119. <Dataset id="ds_send_srch" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  120. <ColumnInfo>
  121. <Column id="syncfromdd" type="STRING" size="256"/>
  122. <Column id="synctodd" type="STRING" size="256"/>
  123. <Column id="tablenm" type="STRING" size="256"/>
  124. <Column id="nrmlendyn" type="STRING" size="256"/>
  125. </ColumnInfo>
  126. <Rows>
  127. <Row/>
  128. </Rows>
  129. </Dataset>
  130. </Objects>
  131. <Bind>
  132. <BindItem id="item0" compid="group2.ipt_syncfromdd" propid="value" datasetid="ds_send_srch" columnid="syncfromdd"/>
  133. <BindItem id="item1" compid="group2.ipt_synctodd" propid="value" datasetid="ds_send_srch" columnid="synctodd"/>
  134. <BindItem id="item2" compid="group2.ipt_tablenm" propid="value" datasetid="ds_send_srch" columnid="tablenm"/>
  135. <BindItem id="item3" compid="group2.cmb_useyn" propid="value" datasetid="ds_send_srch" columnid="nrmlendyn"/>
  136. </Bind>
  137. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  138. * System Name :
  139. * Job Name :
  140. * Creator :
  141. * Make Date : 2016-05-24
  142. * Description :
  143. *---------------------------------------------------------------------------------------
  144. * Modify Date Modifier Modify Description
  145. *---------------------------------------------------------------------------------------
  146. * 2016-05-24 Live Converter TF->XP
  147. *
  148. *---------------------------------------------------------------------------------------
  149. ****************************************************************************************/
  150. include "com_commonxp::comm_main.xjs";
  151. include "com_basiccodexp::ZBC001.xjs";
  152. include "crm_rulexp::CRZ001.xjs";
  153. function SMCRC00200_oninit(obj:Form, e:InitEventInfo)
  154. {
  155. frmf_initForm(obj);
  156. }
  157. function SMCRC00200_onload(obj:Form, e:LoadEventInfo)
  158. {
  159. var arrParam = [ {dsNm : "ds_init_comncdlist_C0023list", cdGrpId: "C0023"},
  160. {dsNm : "ds_init_comncdlist_C0024list", cdGrpId: "C0024"}];
  161. appf_getCodeList(arrParam);
  162. var sync_dd = utlf_getCurrentDate();
  163. ds_send_srch.setColumn(0, "syncfromdd", sync_dd);
  164. ds_send_srch.setColumn(0, "synctodd", sync_dd);
  165. frmf_addComboItemAll("group2.cmb_useyn");
  166. group2.cmb_useyn.index = 0;
  167. fCheckAuth();
  168. fInitSyncList();
  169. }
  170. function fCheckAuth()
  171. {
  172. // 권한체크
  173. if (!frmf_checkAuth("r"))
  174. {
  175. group2.btn_search.enable = false;
  176. }
  177. if (!frmf_checkAuth("p"))
  178. {
  179. btn_saveexcel.enable = false;
  180. }
  181. }
  182. function fInitSyncList()
  183. {
  184. // 그리드 초기화
  185. ds_main_list_synclist.clearData();
  186. }
  187. //조회
  188. function group2_btn_search_onclick(obj:Button, e:ClickEventInfo)
  189. {
  190. var oParam = {};
  191. oParam.id = "TRCRC00201";
  192. oParam.service = "rulemngtapp.RuleMngt";
  193. oParam.method = "reqGetSyncHistory";
  194. oParam.inds = "req=ds_send_srch";
  195. oParam.outds = "ds_main_list_synclist=synclist";
  196. oParam.async = false;
  197. //oParam.callback = "cf_TRCRC00201";
  198. tranf_submit(oParam);
  199. }
  200. //엑셀저장
  201. function btn_saveexcel_onclick(obj:Button, e:ClickEventInfo)
  202. {
  203. grdf_exportExcel(grd_synclist, "excel", "SheetName", "true", "", "");
  204. }
  205. //연동정보관리
  206. function btn_navi_onclick(obj:Button, e:ClickEventInfo)
  207. {
  208. frmf_open("SMCRC00100", "SMCRC00100", "", "", "", "", "", "", "", "", "", "", "M");
  209. }
  210. //프로그램ID 조회
  211. function group2_btn_prgmsrch_onclick(obj:Button, e:ClickEventInfo)
  212. {
  213. var srch_condition = "P";
  214. var srch_term = ds_send_srch.getColumn(0, "tablenm");
  215. var param = crzfOpenSelectPrgm(srch_condition, srch_term);
  216. ds_send_srch.setColumn(0, "tablenm", param.tablenm);
  217. }
  218. ]]></Script>
  219. </Form>
  220. </FDL>