SMRIS00501_연구자별카드관리.xfdl 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276
  1. <?xml version="1.0" encoding="utf-8" standalone="no"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMRIS00501" position="absolute 0 0 1180 772" titletext="은행 및 카드관리" onload="SMRIS00501_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption10" class="tit_1" position="absolute 0 0 160 26" style="" text="연구자별 카드관리"/>
  8. <Static id="caption1" class="cell_1" position="absolute 160 32 223 52" style="" text="지정자명" anchor="left top"/>
  9. <Grid id="grd_bclist" binddataset="ds_result_cardinfo_cardlist" position="absolute 0 56 1180 770" style="" anchor="all">
  10. <Formats>
  11. <Format id="default">
  12. <Columns>
  13. <Column size="48"/>
  14. <Column size="115"/>
  15. <Column size="255"/>
  16. <Column size="172"/>
  17. <Column size="46"/>
  18. <Column size="66"/>
  19. <Column size="60"/>
  20. <Column size="52"/>
  21. <Column size="100"/>
  22. <Column size="142"/>
  23. <Column size="297"/>
  24. </Columns>
  25. <Rows>
  26. <Row size="24" band="head"/>
  27. <Row size="24"/>
  28. </Rows>
  29. <Band id="head">
  30. <Cell text="기관"/>
  31. <Cell col="1" text="발급사"/>
  32. <Cell col="2" text="카드명"/>
  33. <Cell col="3" text="카드번호"/>
  34. <Cell col="4" text="사번"/>
  35. <Cell col="5" text="지정자명"/>
  36. <Cell col="6" text="카드구분"/>
  37. <Cell col="7" text="결재일"/>
  38. <Cell col="8" text="거래은행"/>
  39. <Cell col="9" text="결제계좌"/>
  40. <Cell col="10" text="비고"/>
  41. </Band>
  42. <Band id="body">
  43. <Cell displaytype="combo" edittype="combo" style="align:center;" text="bind:instcd" combodataset="ds_grd_instcd" combocodecol="cdid" combodatacol="cdnm"/>
  44. <Cell col="1" style="align:left;" text="bind:issnm"/>
  45. <Cell col="2" style="align:left;" text="bind:cardnm"/>
  46. <Cell col="3" style="align:left;" text="bind:cardno"/>
  47. <Cell col="4" text="bind:emplno"/>
  48. <Cell col="5" text="bind:emplnm"/>
  49. <Cell col="6" text="bind:cardgbn"/>
  50. <Cell col="7" text="bind:apprday"/>
  51. <Cell col="8" style="align:left;" text="bind:dealbank"/>
  52. <Cell col="9" style="align:left;" text="bind:appracnt"/>
  53. <Cell col="10" style="align:left top;" text="bind:bigo" wordwrap="word"/>
  54. </Band>
  55. </Format>
  56. </Formats>
  57. </Grid>
  58. <Button id="btn_search" class="btn2" position="absolute 991 32 1033 51" style="" text="조회" onclick="btn_search_onclick" anchor="top right"/>
  59. <Button id="btn_insert" class="btn2" visible="false" position="absolute 1048 32 1090 51" style="" text="신규" onclick="btn_insert_onclick" anchor="top right"/>
  60. <Button id="btn_save" class="btn2" visible="false" position="absolute 1138 32 1180 51" style="" text="저장" onclick="btn_save_onclick" anchor="top right"/>
  61. <Button id="btn_delete" class="btn2" visible="false" position="absolute 1093 32 1135 51" style="" text="삭제" onclick="btn_delete_onclick" anchor="top right"/>
  62. <Edit id="ipt_user" position="absolute 225 33 516 52" style="" anchor="left top"/>
  63. <Static id="caption2" class="cell_1" position="absolute 0 32 40 52" style="" text="구분" anchor="left top"/>
  64. <Combo datacolumn="datacolumn" codecolumn="codecolumn" columncount="-1" rowcount="-1" id="cmb_instcd" position="absolute 45 32 145 51" style="" anchor="left top">
  65. <Dataset id="innerdataset">
  66. <ColumnInfo>
  67. <Column id="codecolumn"/>
  68. <Column id="datacolumn"/>
  69. </ColumnInfo>
  70. <Rows>
  71. <Row>
  72. <Col id="codecolumn">031</Col>
  73. <Col id="datacolumn">본원</Col>
  74. </Row>
  75. <Row>
  76. <Col id="codecolumn">032</Col>
  77. <Col id="datacolumn">칠곡</Col>
  78. </Row>
  79. </Rows>
  80. </Dataset>
  81. </Combo>
  82. <Edit id="input1" position="absolute 596 33 781 52" style="" anchor="left top"/>
  83. <Static id="caption3" class="cell_1" position="absolute 528 32 591 52" style="" text="카드번호" anchor="left top"/>
  84. </Layout>
  85. </Layouts>
  86. <Objects>
  87. <Dataset id="ds_result" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  88. <ColumnInfo/>
  89. </Dataset>
  90. <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  91. <ColumnInfo>
  92. <Column id="hidden" type="STRING" size="256"/>
  93. </ColumnInfo>
  94. </Dataset>
  95. <Dataset id="ds_grd_instcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  96. <ColumnInfo>
  97. <Column id="cdid" type="STRING" size="256"/>
  98. <Column id="cdnm" type="STRING" size="256"/>
  99. </ColumnInfo>
  100. <Rows>
  101. <Row>
  102. <Col id="cdid">032</Col>
  103. <Col id="cdnm">칠곡</Col>
  104. </Row>
  105. <Row>
  106. <Col id="cdid">031</Col>
  107. <Col id="cdnm">본원</Col>
  108. </Row>
  109. </Rows>
  110. </Dataset>
  111. <Dataset id="ds_result_cardinfo_cardlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  112. <ColumnInfo>
  113. <Column id="cardlist" type="STRING" size="256"/>
  114. </ColumnInfo>
  115. <Rows>
  116. <Row>
  117. <Col id="cardlist"/>
  118. </Row>
  119. </Rows>
  120. </Dataset>
  121. <Dataset id="ds_main_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  122. <ColumnInfo>
  123. <Column id="user" type="STRING" size="256"/>
  124. <Column id="instcd" type="STRING" size="256"/>
  125. <Column id="cardno" type="STRING" size="256"/>
  126. </ColumnInfo>
  127. <Rows>
  128. <Row>
  129. <Col id="user"/>
  130. <Col id="instcd"/>
  131. <Col id="cardno"/>
  132. </Row>
  133. </Rows>
  134. </Dataset>
  135. <Dataset id="ds_rshinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  136. <Dataset id="ds_temp_bcsetrslt" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  137. </Objects>
  138. <Bind>
  139. <BindItem id="item0" compid="ipt_user" propid="value" datasetid="ds_main_cond" columnid="user"/>
  140. <BindItem id="item1" compid="cmb_instcd" propid="value" datasetid="ds_main_cond" columnid="instcd"/>
  141. <BindItem id="item2" compid="input1" propid="value" datasetid="ds_main_cond" columnid="cardno"/>
  142. </Bind>
  143. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  144. * System Name :
  145. * Job Name :
  146. * Creator :
  147. * Make Date : 2017-01-10
  148. * Description :
  149. *---------------------------------------------------------------------------------------
  150. * Modify Date Modifier Modify Description
  151. *---------------------------------------------------------------------------------------
  152. * 2018-01-10 Live Converter TF->XP
  153. *
  154. *---------------------------------------------------------------------------------------
  155. ****************************************************************************************/
  156. include "com_commonxp::comm_main.xjs";
  157. function SMRIS00501_onload(obj:Form, e:LoadEventInfo) {
  158. frmf_initForm(obj);
  159. grdf_initGrid(grd_bclist);
  160. //grdf_setGridSort(grd_XXX);
  161. //grdf_setRowTypeIcon(grd_XXX, 0_컬럼위치값);
  162. fInit();
  163. }
  164. //저장부분은 버튼은 visible = true 하는 부분이 없어 개발하지 않음.
  165. function fInit(){
  166. cmb_instcd.value = sysf_getUserInfo("dutplceinstcd");
  167. }
  168. function fGetUserlist(){
  169. var sUserGbn = sysf_getModelProperty("usergbn");
  170. ds_send.clearData();
  171. dsf_makeValue( ds_send_rshinfo, "userid", "string", ds_main_cond.getColumn(0, "userid"));
  172. dsf_makeValue( ds_send_rshinfo, "usrgbn", "string", sUserGbn);
  173. dsf_makeValue( ds_send_rshinfo, "frmdd", "string", ds_main_cond_stdycnfmdd.getColumn(0, "frmdd"));
  174. dsf_makeValue( ds_send_rshinfo, "todd", "string", ds_main_cond_stdycnfmdd.getColumn(0, "todd"));
  175. // submit("TRRIS00510"); // 화면별 연구책임자 조회.
  176. var oParam = {};
  177. oParam.id = "TRRIS00510";
  178. oParam.service = "ctmsapp.StudyProjMngt";
  179. oParam.method = "reqGetBankCardUserInfo";
  180. oParam.inds = "req=ds_send_rshinfo";
  181. oParam.outds = "ds_rshinfo=rshinfo";
  182. oParam.async = false;
  183. //oParam.callback = "cf_TRRIS00510";
  184. tranf_submit(oParam);
  185. if (sUserGbn == "A"){
  186. frmf_addComboItem("cmb_member","전체","-","above");
  187. }
  188. }
  189. function fSearch() {
  190. var oParam = {};
  191. oParam.id = "TRRIS00501";
  192. oParam.service = "ctmsapp.StudyProjMngt";
  193. oParam.method = "reqGetCardList";
  194. oParam.inds = "req=ds_main_cond";
  195. oParam.outds = "ds_result_cardinfo_cardlist=cardlist";
  196. oParam.async = false;
  197. //oParam.callback = "cf_TRRIS00501";
  198. tranf_submit(oParam);
  199. }
  200. function btn_search_onclick(obj:Button, e:ClickEventInfo) {
  201. fSearch();
  202. }
  203. function btn_insert_onclick(obj:Button, e:ClickEventInfo) {
  204. if (grd_bclist.rows > 1 ){
  205. grd_bclist.insertRow(1, "above");
  206. }else if (grd_bclist.rows == 1){
  207. grd_bclist.addRow();
  208. }
  209. //grd_bclist.refresh();
  210. var sProjcd = ds_main_cond_stdyinfo_stdylist.getColumn(grd_stdylist.row, "projcd");
  211. ds_main_cond_bnkcrdinfo.setColumn( 0, "bclist[1]_projcd", sProjcd);
  212. }
  213. function btn_save_onclick(obj:Button, e:ClickEventInfo) {
  214. for(var i = 1 ; i < grd_bclist.rows ; i++ ){
  215. if (ds_main_cond_bnkcrdinfo_bclist.getColumn(i, "acntcd") == ""){
  216. sysf_messageBox("'카드_계좌번호'는 필수입력 사항입니다. 정보를","C001");
  217. return;
  218. }
  219. }
  220. ds_send_bclist.clearData();
  221. dsf_makeValue( ds_send, "bclist", "string", grd_bclist.getUpdateData());
  222. // if (submit("TXRIS00510")){
  223. var oParam = {};
  224. oParam.id = "TXRIS00520";
  225. oParam.service = "ctmsapp.StudyProjMngt";
  226. oParam.method = "reqDelResearcher";
  227. oParam.inds = "req=ds_send";
  228. oParam.outds = "ds_temp_bcsetrslt=rslt";
  229. oParam.async = false;
  230. //oParam.callback = "cf_TXRIS00520";
  231. tranf_submit(oParam);
  232. var sRtnValue = ds_temp_bcsetrslt.getColumn(0, "rtnvalue");
  233. if (sRtnValue > 0 ){
  234. sysf_messageBox("[ "+ sRtnValue + " ]건 처리","I002");
  235. }
  236. grd_stdylist.dispatch("ondblclick");
  237. }
  238. function btn_delete_onclick(obj:Button, e:ClickEventInfo) {
  239. grd_bclist.addStatus(grd_bclist.row, "delete");
  240. }
  241. ]]></Script>
  242. </Form>
  243. </FDL>