日期:2014-05-17 浏览次数:21250 次
private void buttonItem11_Click(object sender, EventArgs e)
{
foreach (Form f in this.MdiChildren)
{
if (f is WL_SaleCost.SC_SalesQuotation)
{
f.Activate();
SetParent((int)f.Handle, (int)this.Handle);
return;
}
}
WL.WL_SaleCost.SC_SalesQuotation WF = new WL_SaleCost.SC_SalesQuotation();
//权限
if (PropertyClass.IsAdmin != 1)
{
string qx = cUse.UserAssignRight(WF);
if (qx == "没有权限")
{
MessageBoxEx.Show("没有权限,请联系系统管理员!", "软件提示");
return;
}
}
//open form
WF.MdiParent = this;
WF.Show();
SetParent((int)WF.Handle, (int)this.Handle);