SVN r294
SVN-Revision: r294
This commit is contained in:
@@ -0,0 +1,45 @@
|
||||
using DevExpress.Utils;
|
||||
using DevExpress.XtraTab;
|
||||
using Lskj.Business.Impl;
|
||||
using Lskj.Model;
|
||||
using Lskj.Util;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace Lskj.PubTabDll
|
||||
{
|
||||
public partial class TabDllEx : UserControl
|
||||
{
|
||||
public TabDllEx()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
public void InitTabPages(List<string> gridDetail)
|
||||
{
|
||||
foreach (string item in gridDetail)
|
||||
{
|
||||
DataRow dataRow= MainImpl.GetModuleInformation(item);
|
||||
if (dataRow == null) continue;
|
||||
|
||||
// 验证权限
|
||||
int purview = MainImpl.GetUserPurviewsByMenuId(dataRow["MenuId"] + "");
|
||||
if (purview == 0) continue;
|
||||
|
||||
string[] args = new string[]{
|
||||
dataRow["MenuCaption"] + "",
|
||||
ERPInfo.Instance.UserId,
|
||||
ERPInfo.Instance.UserName,
|
||||
purview + "",
|
||||
dataRow["UrlParams"] + "",
|
||||
dataRow["MenuId"] + ""
|
||||
};
|
||||
|
||||
XtraTabPage tp = new XtraTabPage();
|
||||
IForm iform = FormHelper.LoadDllForm(dataRow["DllFileName"] + "", args);
|
||||
Reference in New Issue
Block a user