SPMMB02500_시행부서.xfdl 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.4">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPMMB02500" position="absolute 0 0 241 515" titletext="시행부서" oninit="SPMMB02500_oninit" onload="SPMMB02500_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static text="시행부서" position="absolute 0 0 126 20" align="align:center middle;" id="caption2" class="tit_2"/>
  8. <Grid position="absolute 0 19 241 515" id="grd_execdeptlist" binddataset="ds_execdeptlist" treeuseimage="false" autofittype="col" cellsizingtype="col" treeusecheckbox="false" oncelldblclick="grd_execdeptlist_oncelldblclick" oncellclick="grd_execdeptlist_oncellclick" cellclickbound="cell">
  9. <Formats>
  10. <Format id="default">
  11. <Columns>
  12. <Column size="0"/>
  13. <Column size="50"/>
  14. <Column size="0"/>
  15. <Column size="0"/>
  16. <Column size="191"/>
  17. </Columns>
  18. <Rows>
  19. <Row size="24" band="head"/>
  20. <Row size="24"/>
  21. </Rows>
  22. <Band id="head">
  23. <Cell/>
  24. <Cell col="1" autosizecol="limitmin"/>
  25. <Cell col="2" text="deptcd"/>
  26. <Cell col="3" text="useyn"/>
  27. <Cell col="4" text="부서"/>
  28. </Band>
  29. <Band id="body">
  30. <Cell text="bind:depth"/>
  31. <Cell col="1" displaytype="tree" edittype="tree" text="bind:outline" treestartlevel="1" treelevel="bind:depth" autosizecol="limitmin"/>
  32. <Cell col="2" text="bind:deptcd"/>
  33. <Cell col="3" text="bind:useyn"/>
  34. <Cell col="4" style="align:left middle;" text="bind:depthngnm"/>
  35. </Band>
  36. </Format>
  37. </Formats>
  38. </Grid>
  39. </Layout>
  40. </Layouts>
  41. <Objects>
  42. <Dataset id="ds_send_reqdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  43. <ColumnInfo>
  44. <Column id="stnddd" type="STRING" size="256" sumtext="기준일자"/>
  45. </ColumnInfo>
  46. <Rows>
  47. <Row/>
  48. </Rows>
  49. </Dataset>
  50. <Dataset id="ds_execdeptlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  51. <ColumnInfo>
  52. <Column id="depth" type="STRING" size="256" sumtext="depth"/>
  53. <Column id="outline" type="STRING" size="256" sumtext="outline"/>
  54. <Column id="deptcd" type="STRING" size="256" sumtext="부서코드"/>
  55. <Column id="depthngnm" type="STRING" size="256" sumtext="부서명"/>
  56. <Column id="cdgrupid" type="STRING" size="256" sumtext="그룹코드"/>
  57. <Column id="useyn" type="STRING" size="256" sumtext="사용여부"/>
  58. </ColumnInfo>
  59. </Dataset>
  60. </Objects>
  61. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  62. * System Name :
  63. * Job Name :
  64. * Creator :
  65. * Make Date : 2014-12-10
  66. * Description :
  67. *---------------------------------------------------------------------------------------
  68. * Modify Date Modifier Modify Description
  69. *---------------------------------------------------------------------------------------
  70. * 2014-12-10 Live Converter TF->XP
  71. *
  72. *---------------------------------------------------------------------------------------
  73. ****************************************************************************************/
  74. include "com_commonxp::comm_main.xjs";
  75. function SPMMB02500_oninit(obj:Form, e:InitEventInfo)
  76. {
  77. frmf_initForm(obj);
  78. }
  79. function SPMMB02500_onload(obj:Form, e:LoadEventInfo)
  80. {
  81. fReqExecDeptList();
  82. }
  83. function grd_execdeptlist_oncellclick(obj:Grid, e:GridClickEventInfo)
  84. {
  85. if(e.col == 1) return;
  86. var useyn = ds_execdeptlist.getColumn(e.row, "useyn");
  87. if(useyn != "Y"){ //depth 1인 값을 선택한 경우
  88. var row = obj.getTreeRow(e.row);
  89. var status = obj.getTreeStatus(row);
  90. if(status == 0)
  91. obj.setTreeStatus(row, true);
  92. else if(status == 1)
  93. obj.setTreeStatus(row, false);
  94. return;
  95. }
  96. }
  97. function grd_execdeptlist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  98. {
  99. fSelectExecDeptList(grd_execdeptlist);
  100. }
  101. /**
  102. * @desc : 시행부서 조회
  103. * @
  104. * @param :
  105. * @return :
  106. * @author : 오지훈
  107. * @---------------------------------------------------
  108. */
  109. function fReqExecDeptList(){
  110. ds_send_reqdata.setColumn(0, "stnddd", utlf_getCurrentDate());
  111. var oParam = {};
  112. oParam.id = "TRMMB02501";
  113. oParam.service = "prcpbaseapp.EnvInfoMngt";
  114. oParam.method = "reqGetExecDeptList";
  115. oParam.inds = "req=ds_send_reqdata";
  116. oParam.outds = "ds_execdeptlist=execdeptlist";
  117. oParam.async = true;
  118. tranf_submit(oParam);
  119. }
  120. /**
  121. * @desc : 시행부서 선택
  122. * @
  123. * @param :
  124. * @return :
  125. * @author : 오지훈
  126. * @---------------------------------------------------
  127. */
  128. function fSelectExecDeptList(grdobj){
  129. var currow = ds_execdeptlist.rowposition;
  130. if(currow < 0){
  131. return;
  132. }
  133. var useyn = ds_execdeptlist.getColumn(currow, "useyn");
  134. if(useyn != "Y"){ //depth 1인 값을 선택한 경우
  135. return;
  136. }
  137. var deptcd = ds_execdeptlist.getColumn(currow, "deptcd");
  138. opener.ds_orddept.copyData(ds_execdeptlist);
  139. if(opener.name == "div_prcpdetail") { // 처방상세화면을 처방아래에 열어두고 사용할 때 처방 데이타셋 이름이 다르다.
  140. opener.ds_main_detlprcplist.enableevent = false;
  141. opener.ds_main_detlprcplist.setColumn(0, "prcpexecdeptcd", deptcd);
  142. opener.ds_main_detlprcplist.enableevent = true;
  143. } else {
  144. opener.ds_main_prcplist.enableevent = false;
  145. opener.ds_main_prcplist.setColumn(0, "prcpexecdeptcd", deptcd);
  146. opener.ds_main_prcplist.enableevent = true;
  147. }
  148. close();
  149. }]]></Script>
  150. </Form>
  151. </FDL>