无法删除错误录入的装置/单元 做一个 删除装置提示有对应工区、单位工程如果挂着就提示一下
本部用户信息维护 部门不必填
This commit is contained in:
		
							parent
							
								
									cab3443c9f
								
							
						
					
					
						commit
						e688f6ec45
					
				| 
						 | 
				
			
			@ -8,6 +8,7 @@ using System.Web.UI;
 | 
			
		|||
using System.Web.UI.WebControls;
 | 
			
		||||
using BLL;
 | 
			
		||||
using Newtonsoft.Json.Linq;
 | 
			
		||||
using Model;
 | 
			
		||||
 | 
			
		||||
namespace FineUIPro.Web.ProjectData
 | 
			
		||||
{
 | 
			
		||||
| 
						 | 
				
			
			@ -382,6 +383,13 @@ namespace FineUIPro.Web.ProjectData
 | 
			
		|||
                BLL.WbsDetailService.DeleteWbsDetailByToWbs(wbsSet.WbsSetId);                  //删除进度记录
 | 
			
		||||
                BLL.WbsSetService.DeleteWbsSet(wbsSet.WbsSetId);
 | 
			
		||||
            }
 | 
			
		||||
            var unitWorks  = (from x in Funs.DB.WBS_UnitWork where x.InstallationId == installationId   select x).ToList();
 | 
			
		||||
            foreach (var unitWork in unitWorks)
 | 
			
		||||
            {
 | 
			
		||||
                BLL.BreakdownProjectService.DeleteAllBreakdownByUnitWorkId(unitWork.UnitWorkId);
 | 
			
		||||
                BLL.DivisionProjectService.DeleteDivisionProjectByUnitWorkId(unitWork.UnitWorkId);
 | 
			
		||||
                BLL.UnitWorkService.DeleteUnitWorkById(unitWork.UnitWorkId);
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
            //删除单位工程及子单位工程
 | 
			
		||||
            var unitProjects = from x in Funs.DB.Wbs_UnitProject join y in Funs.DB.WBS_CnProfession on x.CnProfessionId equals y.CnProfessionId where y.InstallationId == installationId && x.CnProfessionId != null select x;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -38,7 +38,7 @@
 | 
			
		|||
                </f:FormRow>
 | 
			
		||||
                <f:FormRow runat="server" ID="trServer">
 | 
			
		||||
                    <Items>                      
 | 
			
		||||
                        <f:DropDownList ID="drpDepart" runat="server" Label="部门" ShowRedStar="true" Required="true"
 | 
			
		||||
                        <f:DropDownList ID="drpDepart" runat="server" Label="部门"  
 | 
			
		||||
                            EnableEdit="true" ForceSelection="false" LabelWidth="90px">
 | 
			
		||||
                        </f:DropDownList>
 | 
			
		||||
                        <f:DropDownList ID="drpIsOffice" runat="server" Label="本部人员"  
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -163,11 +163,11 @@ namespace FineUIPro.Web.SysManage
 | 
			
		|||
                Alert.ShowInParent("请选择单位!", MessageBoxIcon.Warning);
 | 
			
		||||
                return;
 | 
			
		||||
            }
 | 
			
		||||
            if (this.drpDepart.SelectedValue == Const._Null && !this.trServer.Hidden)
 | 
			
		||||
            {
 | 
			
		||||
                Alert.ShowInParent("请选择部门!", MessageBoxIcon.Warning);
 | 
			
		||||
                return;
 | 
			
		||||
            }
 | 
			
		||||
            //if (this.drpDepart.SelectedValue == Const._Null && !this.trServer.Hidden)
 | 
			
		||||
            //{
 | 
			
		||||
            //    Alert.ShowInParent("请选择部门!", MessageBoxIcon.Warning);
 | 
			
		||||
            //    return;
 | 
			
		||||
            //}
 | 
			
		||||
            var q = Funs.DB.Sys_User.FirstOrDefault(x => x.Account == this.txtAccount.Text.Trim() && (x.UserId != this.UserId || (this.UserId == null && x.UserId != null)));
 | 
			
		||||
            if (q != null)
 | 
			
		||||
            {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue