SPMMB02600_발행부서.xfdl 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPMMB02600" position="absolute 0 0 240 495" titletext="발행부서" onload="SPMMB02600_onload" oninit="SPMMB02600_oninit">
  5. <Layouts>
  6. <Layout>
  7. <Shape position="absolute 0 16 240 22" linetype="horizontal" id="line6" class="line_10"/>
  8. <Static text="발행부서" position="absolute 0 0 126 15" align="align:center middle;" id="caption2" class="tit_2"/>
  9. <Grid position="absolute 0 21 240 495" id="grd_execdeptlist" binddataset="ds_execdeptlist" oncelldblclick="grd_execdeptlist_oncelldblclick" treeusecheckbox="false" treeuseimage="false" autofittype="col">
  10. <Formats>
  11. <Format id="default">
  12. <Columns>
  13. <Column size="0"/>
  14. <Column size="54"/>
  15. <Column size="0"/>
  16. <Column size="0"/>
  17. <Column size="192"/>
  18. </Columns>
  19. <Rows>
  20. <Row size="24" band="head"/>
  21. <Row size="24"/>
  22. </Rows>
  23. <Band id="head">
  24. <Cell/>
  25. <Cell col="1"/>
  26. <Cell col="2" text="deptcd"/>
  27. <Cell col="3" text="useyn"/>
  28. <Cell col="4" text="부서"/>
  29. </Band>
  30. <Band id="body">
  31. <Cell text="bind:depth"/>
  32. <Cell col="1" displaytype="tree" edittype="tree" text="bind:outline" treelevel="bind:depth"/>
  33. <Cell col="2" text="bind:deptcd"/>
  34. <Cell col="3" text="bind:useyn"/>
  35. <Cell col="4" style="align:left middle;" text="bind:depthngnm"/>
  36. </Band>
  37. </Format>
  38. </Formats>
  39. </Grid>
  40. </Layout>
  41. </Layouts>
  42. <Objects>
  43. <Dataset id="ds_execdeptlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  44. <ColumnInfo>
  45. <Column id="depth" type="STRING" size="256" sumtext="depth"/>
  46. <Column id="outline" type="STRING" size="256" sumtext="outline"/>
  47. <Column id="deptcd" type="STRING" size="256" sumtext="부서코드"/>
  48. <Column id="depthngnm" type="STRING" size="256" sumtext="부서명"/>
  49. <Column id="cdgrupid" type="STRING" size="256" sumtext="그룹코드"/>
  50. <Column id="useyn" type="STRING" size="256" sumtext="사용여부"/>
  51. </ColumnInfo>
  52. </Dataset>
  53. <Dataset id="ds_send_reqdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  54. <ColumnInfo>
  55. <Column id="stnddd" type="STRING" size="256" sumtext="기준일자"/>
  56. </ColumnInfo>
  57. <Rows>
  58. <Row/>
  59. </Rows>
  60. </Dataset>
  61. </Objects>
  62. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  63. * System Name :
  64. * Job Name :
  65. * Creator :
  66. * Make Date : 2014-12-10
  67. * Description :
  68. *---------------------------------------------------------------------------------------
  69. * Modify Date Modifier Modify Description
  70. *---------------------------------------------------------------------------------------
  71. * 2014-12-10 Live Converter TF->XP
  72. *
  73. *---------------------------------------------------------------------------------------
  74. ****************************************************************************************/
  75. include "com_commonxp::comm_main.xjs";
  76. var arErrorCode = new HashArray();
  77. function SPMMB02600_oninit(obj:Form, e:InitEventInfo)
  78. {
  79. frmf_initForm(obj);
  80. }
  81. function SPMMB02600_onload(obj:Form, e:LoadEventInfo)
  82. {
  83. fInitialize_SPMMB02600();
  84. fReqPubDeptList();
  85. }
  86. function grd_execdeptlist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  87. {
  88. fSelectPubDeptList(grd_execdeptlist);
  89. }
  90. /**
  91. * @desc : 화면 초기화
  92. * @
  93. * @param :
  94. * @return :
  95. * @author : 오지훈
  96. * @---------------------------------------------------
  97. */
  98. function fInitialize_SPMMB02600(){
  99. ds_execdeptlist.clearData();
  100. }
  101. /**
  102. * @desc : 발행부서 조회
  103. * @
  104. * @param :
  105. * @return :
  106. * @author : 오지훈
  107. * @---------------------------------------------------
  108. */
  109. function fReqPubDeptList(){
  110. //model.removeNodeset("/root/send/reqdata");
  111. ds_send_reqdata.setColumn(0, "stnddd", utlf_getCurrentDate());
  112. var oParam = {};
  113. oParam.id = "TRMMB02601";
  114. oParam.service = "prcpbaseapp.EnvInfoMngt";
  115. oParam.method = "reqGetPubDeptList";
  116. oParam.inds = "req=ds_send_reqdata";
  117. oParam.outds = "ds_execdeptlist=pubdeptlist";
  118. oParam.async = false;
  119. tranf_submit(oParam);
  120. }
  121. /**
  122. * @desc : 발행부서 선택
  123. * @
  124. * @param :
  125. * @return :
  126. * @author : 오지훈
  127. * @---------------------------------------------------
  128. */
  129. function fSelectPubDeptList(grdobj){
  130. var currow = ds_execdeptlist.rowposition;
  131. if(currow < 0){
  132. return;
  133. }
  134. var useyn = ds_execdeptlist.getColumn(currow, "useyn");
  135. if(useyn != "Y"){ //depth 1인 값을 선택한 경우
  136. return;
  137. }
  138. var sTRGTNODE_PATH = opener.frmf_getParameter("SPMMB02600_trgtnode_path");
  139. var deptcd = ds_execdeptlist.getColumn(currow, "deptcd");
  140. if(utlf_isNull(sTRGTNODE_PATH)){
  141. opener.ds_root.setColumn(0,"issdept", deptcd);
  142. }else{
  143. if(sTRGTNODE_PATH == "ds_main_tranempinfo_startposcd"){
  144. opener.ds_main_tranempinfo.setColumn(0,"startposcd", deptcd);
  145. }else if(sTRGTNODE_PATH == "ds_main_tranempinfo_arvposcd"){
  146. opener.ds_main_tranempinfo.setColumn(0,"arvposcd", deptcd);
  147. }else if(sTRGTNODE_PATH == "ds_main_cond_dept"){
  148. opener.ds_main_cond.setColumn(0,"dept", deptcd);
  149. }else{
  150. opener.ds_init.setColumn(0,"issdept", deptcd);
  151. }
  152. }
  153. close();
  154. }]]></Script>
  155. </Form>
  156. </FDL>