1019-003-gaofei
This commit is contained in:
@@ -97,6 +97,9 @@
|
||||
Width="800px" Height="300px">
|
||||
</f:Window>
|
||||
<f:Menu ID="Menu1" runat="server">
|
||||
<f:MenuButton ID="btnMenuDown" OnClick="btnMenuDown_Click" EnablePostBack="true" runat="server" Icon="ArrowDown" Hidden="true"
|
||||
Text="抽取">
|
||||
</f:MenuButton>
|
||||
<f:MenuButton ID="btnMenuAdd" OnClick="btnMenuAdd_Click" EnablePostBack="true" runat="server" Icon="Add" Hidden="true"
|
||||
Text="增加">
|
||||
</f:MenuButton>
|
||||
|
||||
@@ -8,6 +8,7 @@ using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using BLL;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace FineUIPro.Web.ProjectData
|
||||
{
|
||||
@@ -46,6 +47,7 @@ namespace FineUIPro.Web.ProjectData
|
||||
{
|
||||
if (buttonList.Contains(BLL.Const.BtnAdd))
|
||||
{
|
||||
this.btnMenuDown.Hidden = false;
|
||||
this.btnMenuAdd.Hidden = false;
|
||||
}
|
||||
if (buttonList.Contains(BLL.Const.BtnModify))
|
||||
@@ -227,7 +229,33 @@ namespace FineUIPro.Web.ProjectData
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 右键增加、修改、删除方法
|
||||
#region 右键抽取、增加、修改、删除方法
|
||||
/// <summary>
|
||||
/// 抽取
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnMenuDown_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (this.trProjects.SelectedNode != null)
|
||||
{
|
||||
if (BLL.CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.ProjectInstallationMenuId, BLL.Const.BtnAdd))
|
||||
{
|
||||
string url = Funs.RealNameApiUrl + "/Projects/GetConstructionWbsList";
|
||||
string contenttype = "application/json;charset=utf-8";
|
||||
var returndata = BLL.APIGetHttpService.ControlHttp(Funs.ControlApiUrl + "/Projects/GetConstructionWbsList?ProjId=" + 2370, "GET", contenttype, null, null);
|
||||
}
|
||||
else
|
||||
{
|
||||
ShowNotify("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
ShowNotify("请选择树节点!", MessageBoxIcon.Warning);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 右键修改事件
|
||||
/// </summary>
|
||||
@@ -348,7 +376,7 @@ namespace FineUIPro.Web.ProjectData
|
||||
|
||||
private void DeleteBaseData(string installationId)
|
||||
{
|
||||
Model.Project_Installation installation=BLL.Project_InstallationService.GetInstallationByInstallationId(installationId);
|
||||
Model.Project_Installation installation = BLL.Project_InstallationService.GetInstallationByInstallationId(installationId);
|
||||
if (installation.IsEnd == false)
|
||||
{
|
||||
BLL.Project_InstallationService.DeleteInstallation(installationId);
|
||||
|
||||
@@ -174,6 +174,15 @@ namespace FineUIPro.Web.ProjectData {
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Menu Menu1;
|
||||
|
||||
/// <summary>
|
||||
/// btnMenuDown 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.MenuButton btnMenuDown;
|
||||
|
||||
/// <summary>
|
||||
/// btnMenuAdd 控件。
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user