1019-003-gaofei
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user