4d3cf3affc
SVN-Revision: r304
47 lines
1.4 KiB
C#
47 lines
1.4 KiB
C#
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(string[] gridDetail)
|
|
{
|
|
foreach (string item in gridDetail)
|
|
{
|
|
if (string.IsNullOrWhiteSpace(item)) continue;
|
|
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);
|