SMLLF01300_사용자기능관리.xfdl 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMLLF01300" position="absolute 0 0 1197 785" titletext="New Form" onload="SMLLF01300_onload" oninit="SMLLF01300_oninit">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 0 40 1195 784" id="group3" scrollbars="autoboth" anchor="left top right">
  8. <Layouts>
  9. <Layout width="1195" height="744">
  10. <Static text="권한목록" position="absolute 1 55 76 73" id="caption1" class="tit_2" anchor="default"/>
  11. <Static text="권한목록" position="absolute 594 55 669 72" id="caption3" class="tit_2" anchor="default"/>
  12. <Div position="absolute 0 10 1195 45" id="group1" anchor="left top right" class="div_SA2">
  13. <Layouts>
  14. <Layout>
  15. <Button position="absolute 1129 6 1185 28" id="button3" class="btn1" text="조회" anchor="top right" onclick="group3_group1_button3_onclick"/>
  16. <Static text="사용자 :" position="absolute 15 9 105 26" id="caption2" class="search_name" anchor="left top"/>
  17. <Combo position="absolute 112 8 262 27" id="usernm" innerdataset="@ds_init_lb0909" datacolumn="nm" codecolumn="cd" anchor="left top" onitemchanged="group3_group1_usernm_onitemchanged"/>
  18. <Shape id="line3" linetype="vertical" class="line_4" position="absolute 1114 6 1120 28" anchor="top right"/>
  19. </Layout>
  20. </Layouts>
  21. </Div>
  22. <Button position="absolute 447 49 500 68" id="button1" class="btn2" text="행삭제" anchor="default" onclick="group3_button1_onclick"/>
  23. <Button position="absolute 535 380 561 399" id="button102" class="icon_left" text="" anchor="default" onclick="group3_button102_onclick"/>
  24. <Grid position="absolute 0 75 500 744" id="ufunlist" binddataset="ds_ufunlist" anchor="default">
  25. <Formats>
  26. <Format id="default">
  27. <Columns>
  28. <Column size="40"/>
  29. <Column size="150"/>
  30. <Column size="150"/>
  31. <Column size="160"/>
  32. </Columns>
  33. <Rows>
  34. <Row size="24" band="head"/>
  35. <Row size="24"/>
  36. </Rows>
  37. <Band id="head">
  38. <Cell/>
  39. <Cell col="1" text="기능그룹"/>
  40. <Cell col="2" text="기능ID"/>
  41. <Cell col="3" text="기능설명"/>
  42. </Band>
  43. <Band id="body">
  44. <Cell celltype="head"/>
  45. <Cell col="1" text="bind:funtgrupcd"/>
  46. <Cell col="2" text="bind:funtseqno"/>
  47. <Cell col="3" text="bind:funtgrupdesc"/>
  48. </Band>
  49. </Format>
  50. </Formats>
  51. </Grid>
  52. <Grid position="absolute 594 75 1194 744" id="funtlist" binddataset="ds_funtlist" anchor="default" autofittype="col" scrollbars="autovert" oncellclick="group3_funtlist_oncellclick" selectbandtype="default" selecttype="row" cellclickbound="cell">
  53. <Formats>
  54. <Format id="default">
  55. <Columns>
  56. <Column size="23"/>
  57. <Column size="50"/>
  58. <Column size="150"/>
  59. <Column size="150"/>
  60. <Column size="226"/>
  61. </Columns>
  62. <Rows>
  63. <Row size="24" band="head"/>
  64. <Row size="24"/>
  65. </Rows>
  66. <Band id="head">
  67. <Cell/>
  68. <Cell col="1" text="선택"/>
  69. <Cell col="2" text="기능그룹"/>
  70. <Cell col="3" text="기능ID"/>
  71. <Cell col="4" text="기능설명"/>
  72. </Band>
  73. <Band id="body">
  74. <Cell celltype="head"/>
  75. <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:check"/>
  76. <Cell col="2" text="bind:funtgrupcd"/>
  77. <Cell col="3" text="bind:funtseqno"/>
  78. <Cell col="4" text="bind:funtgrupdesc"/>
  79. </Band>
  80. </Format>
  81. </Formats>
  82. </Grid>
  83. </Layout>
  84. </Layouts>
  85. </Div>
  86. <Div position="absolute 0 13 1195 40" id="group4" scrollbars="autoboth" anchor="left top right">
  87. <Layouts>
  88. <Layout>
  89. <Button position="absolute 1126 3 1194 25" id="button5" class="btn4" text="초기화" onclick="group4_button5_onclick" anchor="top right"/>
  90. <Button position="absolute 1067 3 1123 25" id="button11" class="btn4" text="저장" onclick="group4_button11_onclick" anchor="top right"/>
  91. </Layout>
  92. </Layouts>
  93. </Div>
  94. <Div id="group2" taborder="1" position="absolute 0 0 130 32">
  95. <Layouts>
  96. <Layout>
  97. <Static id="caption6" text="사용자기능관리" class="tit_1" position="absolute 0 0 128 25" onclick="group2_caption6_onclick" anchor="default"/>
  98. </Layout>
  99. </Layouts>
  100. </Div>
  101. </Layout>
  102. </Layouts>
  103. <Objects>
  104. <Dataset id="ds_init_lb0909" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  105. <ColumnInfo>
  106. <Column id="nm" type="STRING"/>
  107. <Column id="cd" type="STRING"/>
  108. </ColumnInfo>
  109. <Rows>
  110. <Row/>
  111. </Rows>
  112. </Dataset>
  113. <Dataset id="ds_ufunlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  114. <ColumnInfo>
  115. <Column id="funtgrupcd" type="STRING"/>
  116. <Column id="funtseqno" type="STRING"/>
  117. <Column id="funtgrupdesc" type="STRING"/>
  118. </ColumnInfo>
  119. </Dataset>
  120. <Dataset id="ds_funtlist" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false" oncolumnchanged="ds_funtlist_oncolumnchanged">
  121. <ColumnInfo>
  122. <Column id="check" type="STRING"/>
  123. <Column id="funtgrupcd" type="STRING"/>
  124. <Column id="funtseqno" type="STRING"/>
  125. <Column id="funtgrupdesc" type="STRING"/>
  126. </ColumnInfo>
  127. </Dataset>
  128. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  129. <ColumnInfo>
  130. <Column id="codeflaq" type="STRING" size="256"/>
  131. <Column id="null" type="STRING" size="256"/>
  132. <Column id="userinfo" type="STRING" size="256"/>
  133. <Column id="data1" type="STRING" size="256"/>
  134. <Column id="data2" type="STRING" size="256"/>
  135. <Column id="basecdid" type="STRING" size="256"/>
  136. </ColumnInfo>
  137. <Rows>
  138. <Row/>
  139. </Rows>
  140. </Dataset>
  141. <Dataset id="ds_hidden_ref" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  142. <ColumnInfo>
  143. <Column id="usernm" type="STRING" size="256"/>
  144. </ColumnInfo>
  145. <Rows>
  146. <Row/>
  147. </Rows>
  148. </Dataset>
  149. <Dataset id="ds_instcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  150. <ColumnInfo>
  151. <Column id="instcd" type="STRING" size="256"/>
  152. </ColumnInfo>
  153. <Rows>
  154. <Row/>
  155. </Rows>
  156. </Dataset>
  157. <Dataset id="ds_userid" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  158. <ColumnInfo>
  159. <Column id="userid" type="STRING" size="256"/>
  160. </ColumnInfo>
  161. <Rows>
  162. <Row/>
  163. </Rows>
  164. </Dataset>
  165. <Dataset id="ds_refrslt" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  166. <ColumnInfo>
  167. <Column id="refrslt" type="STRING" size="256"/>
  168. </ColumnInfo>
  169. <Rows>
  170. <Row/>
  171. </Rows>
  172. </Dataset>
  173. <Dataset id="ds_data1" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  174. <ColumnInfo>
  175. <Column id="status" type="STRING" size="256"/>
  176. <Column id="funtgrupcd" type="STRING" size="256"/>
  177. <Column id="funtseqno" type="STRING" size="256"/>
  178. <Column id="funtgrupdesc" type="STRING" size="256"/>
  179. </ColumnInfo>
  180. </Dataset>
  181. <Dataset id="ds_data2" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  182. <ColumnInfo>
  183. <Column id="userdeptflag" type="STRING" size="256"/>
  184. </ColumnInfo>
  185. </Dataset>
  186. <Dataset id="ds_userinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  187. <ColumnInfo>
  188. <Column id="userinfo" type="STRING" size="256"/>
  189. </ColumnInfo>
  190. </Dataset>
  191. </Objects>
  192. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  193. * System Name :
  194. * Job Name :
  195. * Creator :
  196. * Make Date : 2015-11-09
  197. * Description :
  198. *---------------------------------------------------------------------------------------
  199. * Modify Date Modifier Modify Description
  200. *---------------------------------------------------------------------------------------
  201. * 2015-11-09 Live Converter TF->XP
  202. *
  203. *---------------------------------------------------------------------------------------
  204. ****************************************************************************************/
  205. include "com_commonxp::comm_main.xjs";
  206. include "lis_commonxp::LLZ001.xjs";
  207. function SMLLF01300_oninit(obj:Form, e:InitEventInfo)
  208. {
  209. //폼 초기화 함수
  210. frmf_initForm(obj);
  211. }
  212. function SMLLF01300_onload(obj:Form, e:LoadEventInfo)
  213. {
  214. grdf_setRowTypeIcon(group3.ufunlist, 0);
  215. grdf_setRowTypeIcon(group3.funtlist, 0);
  216. //시작할때 리스트 조회
  217. fExeInitialize();
  218. }
  219. // 초기화면 출력
  220. function fExeInitialize()
  221. {
  222. group3.group1.usernm.value = "00";
  223. var usernm = group3.group1.usernm.value;
  224. var sInDsName = dsf_createDsRow("ds_temp_search", [{col: "null", val: usernm}]);
  225. var oParam = {};
  226. oParam.id = "TRLLF01302";
  227. oParam.service = "diagtestbaseinfomngtapp.GeneralTestBaseInfoMngt";
  228. oParam.method = "reqGetFuntList";
  229. //oParam.inds = "cond=ds_";
  230. oParam.outds = "ds_funtlist=getFuntList";
  231. oParam.async = false;
  232. //oParam.callback = "cbf_SMLLF01300";
  233. tranf_submit(oParam);
  234. // 사용자가 속한 과코드 조회
  235. var usernm = group3.group1.usernm.value;
  236. var sInDsName = dsf_createDsRow("ds_temp_search", [{col: "instcd", val: sysf_getUserInfo("dutplceinstcd")}]);
  237. var oParam = {};
  238. oParam.id = "TRLAF00402";
  239. oParam.service = "goodbaseinfomngtapp.GoodBaseInfoRgst";
  240. oParam.method = "reqGetDeptList";
  241. oParam.inds = "req="+sInDsName;
  242. oParam.outds = "ds_refrslt=refrslt";
  243. oParam.async = false;
  244. //oParam.callback = "cf_TRLAF00402";
  245. tranf_submit(oParam);
  246. if (ds_refrslt.getColumn(0, "cd") == "P")
  247. {
  248. var sInDsName = dsf_createDsRow("ds_temp_search", [{col: "instcd", val: ds_refrslt.getColumn(0,"cd")}]);
  249. var oParam = {};
  250. oParam.id = "TRLPZ00105";
  251. oParam.service = "plgycomnusemngtapp.BaseInfoCode";
  252. oParam.method = "reqGetUserInfoList";
  253. oParam.inds = "refdata=" + sInDsName;
  254. oParam.outds = "ds_reflist=reflist";
  255. oParam.async = false;
  256. //oParam.callback = "cf_TRLPZ00105";
  257. tranf_submit(oParam);
  258. }
  259. else
  260. {
  261. lf_getDbDeptcd("0000|0909|", "");
  262. }
  263. }
  264. //목록추가
  265. function fdatemove()
  266. {
  267. var usernm = group3.group1.usernm.value;
  268. //사용자 조회
  269. if(utlf_isNull(usernm))
  270. {
  271. alert("사용자를 선택해주십시오");
  272. }
  273. else
  274. {
  275. var equaldata = true;
  276. for(i = 0; i < ds_funtlist.rowcount; i++)
  277. {
  278. equaldata = true;
  279. if(ds_funtlist.getColumn(i, "check") == 1)
  280. {
  281. var funtgrupcd = ds_funtlist.getColumn(i, "funtgrupcd");
  282. var funtseqno = ds_funtlist.getColumn(i, "funtseqno");
  283. var str = funtgrupcd + funtseqno;
  284. for(j = 0; j < ds_ufunlist.rowcount; j++)
  285. {
  286. var funtgrupcd2 = ds_ufunlist.getColumn(j, "funtgrupcd");
  287. var funtseqno2 = ds_ufunlist.getColumn(j, "funtseqno");
  288. var str2 = funtgrupcd2 + funtseqno2;
  289. if(str == str2)
  290. {
  291. equaldata = false;
  292. }
  293. }
  294. if(equaldata)
  295. {
  296. var a = ds_ufunlist.addRow();
  297. ds_ufunlist.copyRow(a, ds_funtlist, i);
  298. equaldata = true;
  299. }
  300. else
  301. {
  302. var funtgrupdesc = ds_funtlist.getColumn(i, "funtgrupdesc");
  303. alert(funtgrupdesc + "권한은 이미 가지고 있습니다.");
  304. }
  305. }
  306. }
  307. }
  308. }
  309. //행삭제
  310. function fInsRowdel()
  311. {
  312. ds_ufunlist.deleteRow(ds_ufunlist.rowposition);
  313. }
  314. //저장
  315. function fExeEqmtSave()
  316. {
  317. var oParam = {};
  318. oParam.id = "TXLLF01301";
  319. oParam.service = "diagtestbaseinfomngtapp.GeneralTestBaseInfoMngt";
  320. oParam.method = "reqExeUserFuntList";
  321. oParam.inds = "cond=ds_data1 cond2=ds_data2 user=ds_userinfo";
  322. oParam.async = false;
  323. //oParam.callback = "cf_TXLLF001301";
  324. tranf_submit(oParam);
  325. fExeInitialize();
  326. }
  327. //조회
  328. function fGetufunlist()
  329. {
  330. var oParam = {};
  331. oParam.id = "TRLLF01301";
  332. oParam.service = "diagtestbaseinfomngtapp.GeneralTestBaseInfoMngt";
  333. oParam.method = "reqGetUserFuntList";
  334. oParam.inds = "cond=ds_userinfo";
  335. oParam.outds = "ds_ufunlist=getUserFuntList";
  336. oParam.async = false;
  337. //oParam.callback = "cf_TRLLF001301";
  338. tranf_submit(oParam);
  339. }
  340. //초기화
  341. function group4_button5_onclick(obj:Button, e:ClickEventInfo)
  342. {
  343. this.reload();
  344. }
  345. //목록추가
  346. function group3_button102_onclick(obj:Button, e:ClickEventInfo)
  347. {
  348. fdatemove();
  349. }
  350. //행삭제
  351. function group3_button1_onclick(obj:Button, e:ClickEventInfo)
  352. {
  353. fInsRowdel();
  354. }
  355. //저장
  356. function group4_button11_onclick(obj:Button, e:ClickEventInfo)
  357. {
  358. fExeEqmtSave();
  359. }
  360. //조회
  361. function group3_group1_button3_onclick(obj:Button, e:ClickEventInfo)
  362. {
  363. fGetufunlist();
  364. }]]></Script>
  365. </Form>
  366. </FDL>