1019-003-gaofei

This commit is contained in:
gaofei
2021-10-19 17:50:34 +08:00
parent fbe44ac308
commit b6e254bfca
8 changed files with 195 additions and 8 deletions
@@ -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);