1
This commit is contained in:
commit
38e5331d09
File diff suppressed because it is too large
Load Diff
@ -631,10 +631,17 @@ namespace Learun.Application.Web.AppApi
|
||||
//每个位号的属性信息
|
||||
foreach (var tag in objectType.tags)
|
||||
{
|
||||
if (userDict.TryGetValue(tag.CreateUserID, out string createUserName))
|
||||
if (!string.IsNullOrEmpty(tag.CreateUserID))
|
||||
{
|
||||
tag.CreateUserName = createUserName;// allUser.FirstOrDefault(x => x.F_UserId == item.CreateUserID)?.F_RealName;
|
||||
if (userDict.TryGetValue(tag.CreateUserID, out string createUserName))
|
||||
{
|
||||
tag.CreateUserName = createUserName;// allUser.FirstOrDefault(x => x.F_UserId == item.CreateUserID)?.F_RealName;
|
||||
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
tag.CreateUserName = string.Empty;
|
||||
}
|
||||
|
||||
tag.EngineDataProperty = tagPropDictByTag[tag.EngineDataID];// tagPropAll.Where(x => x.EngineDataID == tag.EngineDataID).ToList();
|
||||
|
@ -61,11 +61,17 @@ namespace Learun.Application.Web.AppApi
|
||||
{
|
||||
return Fail("项目数据字典中,没有找到【肋位号】的下拉项中。");// 或者 无法从数据字典中找到对应的那个下拉
|
||||
}
|
||||
ec_dataitemBLL ec_DataitemBLL = new ec_dataitemBLL();
|
||||
var roomLists = ec_DataitemBLL.GetDetailList("RoomNo", "", ProjectId, false);
|
||||
if (roomLists == null)
|
||||
{
|
||||
return Fail("项目数据字典中,没有找到【房间号】的下拉项中。");// 或者 无法从数据字典中找到对应的那个下拉
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
var pointsOnDwg = SqlSugarHelper.Db.Queryable<ec_enginedata_pixelEntity>().AS(pixelTbName).
|
||||
Where(x => x.DrawingFileID == drawingId).ToList();
|
||||
Where(x => x.DrawingFileID == drawingId && x.DeleteFlg==0).ToList();
|
||||
var pointTags = SqlSugarHelper.Db.Queryable<ec_enginedataEntity>().AS(tagTbName).
|
||||
Where(x => pointsOnDwg.Select(y => y.EngineDataID).Distinct().Contains(x.EngineDataID)
|
||||
&& x.ObjectTypeID == pointType.ObjectTypeID).ToList();
|
||||
@ -85,10 +91,17 @@ namespace Learun.Application.Web.AppApi
|
||||
{
|
||||
Prop_Frame = Prop_Frame.Split(new string[] { GlobalObject.enum_separator }, StringSplitOptions.None)[0];//插件端对于下拉列表 都是 name || nameEN
|
||||
|
||||
}
|
||||
var Prop_Room = tagProps.FirstOrDefault(x => x.PropertyName == GlobalObject.propName_Room)?.PropertyValue;
|
||||
if (Prop_Room != null)
|
||||
{
|
||||
Prop_Room = Prop_Room.Split(new string[] { GlobalObject.enum_separator }, StringSplitOptions.None)[0];//插件端对于下拉列表 都是 name || nameEN
|
||||
|
||||
}
|
||||
|
||||
var matchedFrame = frameLists.FirstOrDefault(X => X.Num == Prop_Frame);
|
||||
if (matchedFrame == null)
|
||||
var matchedRoom = roomLists.FirstOrDefault(X => X.DataItemName == Prop_Room);
|
||||
if (matchedFrame == null && matchedRoom == null)
|
||||
{
|
||||
//没有
|
||||
//无效的基点
|
||||
@ -104,12 +117,22 @@ namespace Learun.Application.Web.AppApi
|
||||
res.Add(layoutTagInvalid);
|
||||
continue;
|
||||
}
|
||||
var xValue = frameLists.FirstOrDefault(X => X.Num == Prop_Frame).Value;
|
||||
if (xValue < 400)
|
||||
double xValue = 0 ;
|
||||
if (matchedFrame != null)
|
||||
{
|
||||
// 小于400,我几乎可以认为此时肋位号用的是m这个单位。因为如果用的是mm,400mm的肋位号似乎也太小了。
|
||||
xValue = 1000 * xValue; // 转成mm
|
||||
xValue = frameLists.FirstOrDefault(X => X.Num == Prop_Frame).Value;
|
||||
if (xValue < 400)
|
||||
{
|
||||
// 小于400,我几乎可以认为此时肋位号用的是m这个单位。因为如果用的是mm,400mm的肋位号似乎也太小了。
|
||||
xValue = 1000 * xValue; // 转成mm
|
||||
}
|
||||
}
|
||||
string strRoom = string.Empty;
|
||||
if (matchedRoom != null)
|
||||
{
|
||||
strRoom = matchedRoom.DataItemName;
|
||||
}
|
||||
|
||||
var Prop_FrameOff = tagProps.FirstOrDefault(x => x.PropertyName == GlobalObject.propName_FrameOff)?.PropertyValue;
|
||||
var Prop_YOff = tagProps.FirstOrDefault(x => x.PropertyName == GlobalObject.propName_YOff)?.PropertyValue;
|
||||
var DECK = tagProps.FirstOrDefault(x => x.PropertyName == "甲板号")?.PropertyValue;
|
||||
@ -128,9 +151,10 @@ namespace Learun.Application.Web.AppApi
|
||||
YOff = Prop_YOff,
|
||||
deck = DECK,
|
||||
area = AREA,
|
||||
Scale = BasePointProp_scale == null ? 1 : (double.TryParse(BasePointProp_scale.PropertyValue, out double scale) ? scale : 1)
|
||||
Scale = BasePointProp_scale == null ? 1 : (double.TryParse(BasePointProp_scale.PropertyValue, out double scale) ? scale : 1),
|
||||
RoomNo = strRoom
|
||||
};
|
||||
|
||||
layoutTag.Scale = 1.0 / layoutTag.Scale; // 这里的比例是放大多少倍,所以取倒数。
|
||||
|
||||
|
||||
|
||||
@ -138,12 +162,12 @@ namespace Learun.Application.Web.AppApi
|
||||
}
|
||||
// 找出area和deck列组合重复的行
|
||||
var duplicateGroups = res
|
||||
.GroupBy(r => new { r.area, r.deck })
|
||||
.GroupBy(r => new { r.area, r.deck, r.RoomNo })
|
||||
.Where(g => g.Count() > 1)
|
||||
.ToList();
|
||||
if (duplicateGroups.Any())
|
||||
{
|
||||
return Fail("该图纸上有区域和甲板信息重复的基点存在。");
|
||||
return Fail("该图纸上有甲板、房间号信息重复的基点存在。");
|
||||
}
|
||||
|
||||
//这里要考虑下拉列表 带 ||的问题
|
||||
@ -181,7 +205,7 @@ namespace Learun.Application.Web.AppApi
|
||||
{
|
||||
#region 每个基点关联的设备
|
||||
//甲板 区域都和基点一致的设备
|
||||
var DeckMatchedTagIds = EquipPropAll.Where(x => x.PropertyName == "甲板号" && x.PropertyValue == basePoint.deck).Select(X => X.EngineDataID).ToList();
|
||||
var DeckMatchedTagIds = EquipPropAll.Where(x => x.PropertyName == "甲板号" && (x.PropertyValue?.Split(new[] { "||" }, StringSplitOptions.None)[0] == basePoint.deck)).Select(X => X.EngineDataID).ToList();
|
||||
//var AreaMatchedTagIds = EquipPropAll.Where(x => x.PropertyName == "区域" && x.PropertyValue == basePoint.area).Select(X => X.EngineDataID).ToList();
|
||||
//#task 9542
|
||||
var matchPointTagIds = DeckMatchedTagIds;//.Intersect(AreaMatchedTagIds).ToList();
|
||||
@ -195,8 +219,14 @@ namespace Learun.Application.Web.AppApi
|
||||
{
|
||||
Prop_Frame = Prop_Frame.Split(new string[] { GlobalObject.enum_separator }, StringSplitOptions.None)[0];//插件端对于下拉列表 都是 name || nameEN
|
||||
}
|
||||
var Prop_RoomNo = tagProps.FirstOrDefault(x => x.PropertyName == GlobalObject.propName_Room)?.PropertyValue;
|
||||
if (Prop_RoomNo != null)
|
||||
{
|
||||
Prop_RoomNo = Prop_RoomNo.Split(new string[] { GlobalObject.enum_separator }, StringSplitOptions.None)[0];//插件端对于下拉列表 都是 name || nameEN
|
||||
}
|
||||
var matchedFrame = frameLists.FirstOrDefault(X => X.Num == Prop_Frame);
|
||||
if (matchedFrame == null)
|
||||
var matchedRoom = roomLists.FirstOrDefault(x => x.DataItemName == Prop_RoomNo);
|
||||
if (matchedFrame == null && matchedRoom == null)
|
||||
{
|
||||
var layoutTagInfoInvalid = new layoutTagInfoBrief()
|
||||
{
|
||||
@ -208,11 +238,20 @@ namespace Learun.Application.Web.AppApi
|
||||
basePoint.Tags.Add(layoutTagInfoInvalid);
|
||||
continue;
|
||||
}
|
||||
var xValue = frameLists.FirstOrDefault(X => X.Num == Prop_Frame).Value;
|
||||
if (xValue < 400)
|
||||
double xValue = 0;
|
||||
if (matchedFrame != null)
|
||||
{
|
||||
// 小于400,我几乎可以认为此时肋位号用的是m这个单位。因为如果用的是mm,400mm的肋位号似乎也太小了。
|
||||
xValue = 1000 * xValue; // 转成mm
|
||||
xValue = frameLists.FirstOrDefault(X => X.Num == Prop_Frame).Value;
|
||||
if (xValue < 400)
|
||||
{
|
||||
// 小于400,我几乎可以认为此时肋位号用的是m这个单位。因为如果用的是mm,400mm的肋位号似乎也太小了。
|
||||
xValue = 1000 * xValue; // 转成mm
|
||||
}
|
||||
}
|
||||
string strRoom = string.Empty;
|
||||
if (matchedRoom != null)
|
||||
{
|
||||
strRoom = matchedRoom.DataItemName;
|
||||
}
|
||||
var Prop_FrameOff = tagProps.FirstOrDefault(x => x.PropertyName == GlobalObject.propName_FrameOff)?.PropertyValue;
|
||||
var Prop_YOff = tagProps.FirstOrDefault(x => x.PropertyName == GlobalObject.propName_YOff)?.PropertyValue;
|
||||
@ -309,7 +348,8 @@ namespace Learun.Application.Web.AppApi
|
||||
YOff = Prop_YOff,
|
||||
deck = basePoint.deck,
|
||||
area = basePoint.area,
|
||||
Scale = basePoint.Scale
|
||||
Scale = basePoint.Scale,
|
||||
RoomNo = strRoom
|
||||
};
|
||||
basePoint.Tags.Add(layoutTagInfo);
|
||||
}
|
||||
|
@ -80,6 +80,7 @@ namespace Learun.Application.TwoDevelopment.ZZDT_EC
|
||||
public const string propName_FrameOff = "肋位号偏移量(mm)";
|
||||
public const string propName_YOff = "纵骨偏移量(mm)";
|
||||
public const string propName_TagNumber = "TagNumber";
|
||||
public const string propName_Room = "房间号";
|
||||
#endregion
|
||||
|
||||
#region projSetting
|
||||
|
@ -1,4 +1,5 @@
|
||||
using DocumentFormat.OpenXml.Drawing.Spreadsheet;
|
||||
using DocumentFormat.OpenXml.Spreadsheet;
|
||||
using Learun.Util;
|
||||
using Learun.Util.SqlSugar;
|
||||
using SqlSugar;
|
||||
@ -7,6 +8,7 @@ using System.Collections.Generic;
|
||||
using System.Collections.ObjectModel;
|
||||
using System.Data;
|
||||
using System.Linq;
|
||||
using System.Windows;
|
||||
|
||||
namespace Learun.Application.TwoDevelopment.ZZDT_EC
|
||||
{
|
||||
@ -307,77 +309,34 @@ namespace Learun.Application.TwoDevelopment.ZZDT_EC
|
||||
|
||||
|
||||
|
||||
cable.ToPanel = panelObj;//暂用一下topanel属性,相当于电缆预分配的采集箱背后的Panel对象。
|
||||
cable.AssignedPanel = panelObj;
|
||||
|
||||
var IOsOnPanel = panelObj.allowedIOTypes.Split(',').ToList();
|
||||
//剩下的感觉都可以是set上的参数?
|
||||
foreach (var set in sets)
|
||||
{
|
||||
#region 判断下io匹配程度
|
||||
if (set.PreAssignInOrOut == GlobalEnum.inOrOut.输入.ToString() && cable.PreAssignIOType.ToLower() == "digital")
|
||||
var setNew = SetIOMatchPanel(cable.PreAssignIOType, set, IOsOnPanel);
|
||||
|
||||
if (IOsOnPanel.Contains(setNew.IOType.ToString()))
|
||||
{
|
||||
set.IOType = GlobalEnum.IOType.DI;
|
||||
}
|
||||
else if (set.PreAssignInOrOut == GlobalEnum.inOrOut.输出.ToString() && cable.PreAssignIOType.ToLower() == "digital")
|
||||
{
|
||||
set.IOType = GlobalEnum.IOType.DO;
|
||||
}
|
||||
else if (set.PreAssignInOrOut == GlobalEnum.inOrOut.输入.ToString() && cable.PreAssignIOType == "4~20mA")
|
||||
{
|
||||
set.IOType = GlobalEnum.IOType.AI;
|
||||
}
|
||||
else if (set.PreAssignInOrOut == GlobalEnum.inOrOut.输出.ToString() && cable.PreAssignIOType == "4~20mA")
|
||||
{
|
||||
set.IOType = GlobalEnum.IOType.AO;
|
||||
}
|
||||
else if (cable.PreAssignIOType == "10v")
|
||||
{
|
||||
set.IOType = GlobalEnum.IOType.TenVolt;
|
||||
}
|
||||
else if (cable.PreAssignIOType == GlobalEnum.signalType.PT100.ToString())
|
||||
{
|
||||
set.IOType = GlobalEnum.IOType.PT100;
|
||||
}
|
||||
else if (cable.PreAssignIOType.ToUpper() == GlobalEnum.signalType.PULSE.ToString())
|
||||
{
|
||||
set.IOType = GlobalEnum.IOType.PULSE;
|
||||
}
|
||||
else if (cable.PreAssignIOType == GlobalEnum.signalType.PT100.ToString())
|
||||
{
|
||||
set.IOType = GlobalEnum.IOType.PT100;
|
||||
}
|
||||
//下面是通讯的
|
||||
else
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
if (IOsOnPanel.Contains(set.IOType.ToString()))
|
||||
{
|
||||
set.IOTypeMatch = true;
|
||||
setNew.IOTypeMatch = true;
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
set.IOTypeMatch = false;
|
||||
cable.IOTypesNotMatchedList.Add(set.IOType.ToString());//从电缆上就能知道哪些io是匹配补上的
|
||||
setNew.IOTypeMatch = false;
|
||||
cable.IOTypesNotMatchedList.Add(setNew.IOType.ToString());//从电缆上就能知道哪些io是匹配补上的
|
||||
}
|
||||
#endregion
|
||||
var wires = Wires.Where(x => x.CableSetID == set.CableSetID);
|
||||
set.Wires = wires.ToList();
|
||||
var wires = Wires.Where(x => x.CableSetID == setNew.CableSetID);
|
||||
setNew.Wires = wires.ToList();
|
||||
cable.Sets.Add(setNew);
|
||||
}
|
||||
cable.Sets = sets;
|
||||
//if (cable.Sets.Any(x => !x.IOTypeMatch))
|
||||
//{
|
||||
// cable.IOTypeMatch = true;
|
||||
//}
|
||||
//else
|
||||
//{
|
||||
// cable.IOTypeMatch = false;
|
||||
//}
|
||||
//cable.Sets = sets;
|
||||
}
|
||||
|
||||
//分组
|
||||
//排序
|
||||
preAssignedCables = preAssignedCables.OrderBy(x => x.PreAssignIOType).ToList();
|
||||
|
||||
|
||||
@ -397,7 +356,59 @@ namespace Learun.Application.TwoDevelopment.ZZDT_EC
|
||||
else { ec_CableService.DeleteEntity(ProjectId, CableID); }
|
||||
|
||||
}
|
||||
/// <summary>
|
||||
/// 预分配的电缆上的io,是否和电缆上的io能匹配
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public static ec_CableSetEntity SetIOMatchPanel(string signalOnCable, ec_CableSetEntity set, List<string> IOsOnPanel)
|
||||
{
|
||||
//var IOsOnPanel = panelObj.allowedIOTypes.Split(',').ToList();
|
||||
//剩下的感觉都可以是set上的参数?
|
||||
|
||||
|
||||
#region 判断下io匹配程度
|
||||
if (set.PreAssignInOrOut == GlobalEnum.inOrOut.输入.ToString() && signalOnCable.ToLower() == "digital")
|
||||
{
|
||||
set.IOType = GlobalEnum.IOType.DI;
|
||||
}
|
||||
else if (set.PreAssignInOrOut == GlobalEnum.inOrOut.输出.ToString() && signalOnCable.ToLower() == "digital")
|
||||
{
|
||||
set.IOType = GlobalEnum.IOType.DO;
|
||||
}
|
||||
else if (set.PreAssignInOrOut == GlobalEnum.inOrOut.输入.ToString() && signalOnCable == "4~20mA")
|
||||
{
|
||||
set.IOType = GlobalEnum.IOType.AI;
|
||||
}
|
||||
else if (set.PreAssignInOrOut == GlobalEnum.inOrOut.输出.ToString() && signalOnCable == "4~20mA")
|
||||
{
|
||||
set.IOType = GlobalEnum.IOType.AO;
|
||||
}
|
||||
else if (signalOnCable == "10v")
|
||||
{
|
||||
set.IOType = GlobalEnum.IOType.TenVolt;
|
||||
}
|
||||
else if (signalOnCable == GlobalEnum.signalType.PT100.ToString())
|
||||
{
|
||||
set.IOType = GlobalEnum.IOType.PT100;
|
||||
}
|
||||
else if (signalOnCable.ToUpper() == GlobalEnum.signalType.PULSE.ToString())
|
||||
{
|
||||
set.IOType = GlobalEnum.IOType.PULSE;
|
||||
}
|
||||
else if (signalOnCable == GlobalEnum.signalType.PT100.ToString())
|
||||
{
|
||||
set.IOType = GlobalEnum.IOType.PT100;
|
||||
}
|
||||
//下面是通讯的
|
||||
else
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
return set;
|
||||
}
|
||||
/// <summary>
|
||||
/// 保存实体数据(新增、修改)
|
||||
/// <param name="keyValue">主键</param>
|
||||
|
@ -87,6 +87,7 @@ namespace Learun.Application.TwoDevelopment.ZZDT_EC
|
||||
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 编辑调用
|
||||
/// </summary>
|
||||
@ -109,7 +110,7 @@ namespace Learun.Application.TwoDevelopment.ZZDT_EC
|
||||
///
|
||||
/// </summary>
|
||||
[SugarColumn(IsIgnore = true)]
|
||||
public List<ec_CableSetEntity> Sets { set; get; }
|
||||
public List<ec_CableSetEntity> Sets { set; get; } = new List<ec_CableSetEntity>();
|
||||
|
||||
/// <summary>
|
||||
/// 平行电缆数据
|
||||
@ -147,12 +148,15 @@ namespace Learun.Application.TwoDevelopment.ZZDT_EC
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// From连接处的工程位号信息。同时,也表达下预分配电缆panelid对应的柜子信息。
|
||||
/// From连接处的工程位号信息。
|
||||
/// </summary>
|
||||
[SugarColumn(IsIgnore = true)]
|
||||
public ec_PanelEntity ToPanel { set; get; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 根据<see cref="PanelID"/>算出来的实际分配的箱子,当然也能和panelid不同,而是就近的另外一个采集箱
|
||||
/// </summary>
|
||||
[SugarColumn(IsIgnore = true)]
|
||||
public ec_PanelEntity AssignedPanel { set; get; }
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
|
@ -148,7 +148,7 @@ namespace Learun.Application.TwoDevelopment.ZZDT_EC
|
||||
/// 是否被连接
|
||||
/// </summary>
|
||||
[SugarColumn(IsIgnore = true)]
|
||||
public bool? IsConned { set; get; }
|
||||
public bool? IsConned { set; get; } = false;
|
||||
|
||||
/// <summary>
|
||||
/// 当前这个set的连接情况
|
||||
@ -168,8 +168,7 @@ namespace Learun.Application.TwoDevelopment.ZZDT_EC
|
||||
#endregion
|
||||
|
||||
public ec_CableSetEntity()
|
||||
{
|
||||
IsConned = null;
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -986,7 +986,7 @@ namespace Learun.Application.TwoDevelopment.ZZDT_EC
|
||||
|
||||
#region 工程数据和图面
|
||||
|
||||
var resourcePixelList = ec_enginedata_pixelService.GetList("{ProjectId:\"" + item.ProjectId + "\",DrawingFileID:\"" + item.DrawingFileID + "\"}",ProjectId).ToList();
|
||||
var resourcePixelList = ec_enginedata_pixelService.GetList("{ProjectId:\"" + item.ProjectId + "\",DrawingFileID:\"" + item.DrawingFileID + "\"}", item.ProjectId).ToList();
|
||||
if (resourcePixelList != null && resourcePixelList.Count() > 0)//不包含deleteflg的
|
||||
{
|
||||
//获取拷贝图纸所有的工程数据ID
|
||||
|
@ -59,9 +59,10 @@ namespace Learun.Application.TwoDevelopment.ZZDT_EC
|
||||
/// 基点从属的、或者说附近的设备位号
|
||||
/// </summary>
|
||||
public List<layoutTagInfoBrief> Tags { get; set; } = new List<layoutTagInfoBrief>();
|
||||
public string RoomNo { get; set; }
|
||||
#endregion
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -117,7 +117,7 @@ namespace Learun.Application.TwoDevelopment.ZZDT_EC
|
||||
this.ChannelID = Guid.NewGuid().ToString();
|
||||
this.CreateTime = Time.MySqlTime;
|
||||
UserInfo userInfo = LoginUserInfo.Get();
|
||||
this.CreateUserID = userInfo.userId;
|
||||
this.CreateUserID = userInfo?.userId;
|
||||
|
||||
|
||||
}
|
||||
|
@ -73,7 +73,7 @@ namespace Learun.Application.TwoDevelopment.ZZDT_EC
|
||||
this.StripID = Guid.NewGuid().ToString();
|
||||
this.CreateTime = Time.MySqlTime;
|
||||
UserInfo userInfo = LoginUserInfo.Get();
|
||||
this.CreateUserID = userInfo.userId;
|
||||
this.CreateUserID = userInfo?.userId;
|
||||
|
||||
|
||||
}
|
||||
@ -96,15 +96,23 @@ namespace Learun.Application.TwoDevelopment.ZZDT_EC
|
||||
/// </summary>
|
||||
[SugarColumn(IsIgnore = true)]
|
||||
public List<ec_PanelChannelEntity> Channels { set; get; } = new List<ec_PanelChannelEntity>();
|
||||
|
||||
/// <summary>
|
||||
/// channel在<see cref="ec_WireTerminalEntity"/>里有,同时<see cref="ec_Wire_GroupEntity.ChannelID"/>也有
|
||||
/// </summary>
|
||||
[SugarColumn(IsIgnore = true)]
|
||||
public int ChannelsUsed { set; get; } = 0;
|
||||
|
||||
/// <summary>
|
||||
/// channel在<see cref="ec_WireTerminalEntity"/>里有,但是没有信号
|
||||
/// </summary>
|
||||
[SugarColumn(IsIgnore = true)]
|
||||
public int ChannelsUsedNoSignal { set; get; } = 0;
|
||||
|
||||
/// <summary>
|
||||
/// channel在<see cref="ec_WireTerminalEntity"/>里没有
|
||||
/// </summary>
|
||||
[SugarColumn(IsIgnore = true)]
|
||||
public int ChannelsSpared { set; get; } = 0;
|
||||
|
||||
[SugarColumn(IsIgnore = true)]
|
||||
public string TagNumber { set; get; }
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
|
||||
|
||||
FD:\陈进步\项目\009\SWSDBSchemeUpgradeTool\MainWindow.xaml;;
|
||||
FD:\陈进步\项目\009\SWSDBSchemeUpgradeTool\SQLPreview.xaml;;
|
||||
FE:\Di-Electrical\SWSDBSchemeUpgradeTool\MainWindow.xaml;;
|
||||
FE:\Di-Electrical\SWSDBSchemeUpgradeTool\SQLPreview.xaml;;
|
||||
|
||||
|
Binary file not shown.
@ -5,6 +5,7 @@ using Bricscad.Global;
|
||||
using SWS.CAD.CADFunc.Editor;
|
||||
using SWS.CAD.Helper;
|
||||
using SWS.CAD.Views.CustomControl;
|
||||
using SWS.Commons;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Drawing;
|
||||
|
@ -181,12 +181,8 @@
|
||||
<Compile Include="Helper\Converter\RadGridViewRowToBoolConverter.cs" />
|
||||
<Compile Include="Helper\Converter\StatusToColourConverter.cs" />
|
||||
<Compile Include="Helper\Converter\YesNotConverter.cs" />
|
||||
<Compile Include="Helper\FileHelper.cs" />
|
||||
<Compile Include="Helper\Behavior\PasswordHelper.cs" />
|
||||
<Compile Include="Helper\TreeHelper.cs" />
|
||||
<Compile Include="Start.cs" />
|
||||
<Compile Include="GlobalObje.cs" />
|
||||
<Compile Include="Helper\LoggerHelper.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="ViewModels\CheckInApproveViewModel.cs" />
|
||||
<Compile Include="ViewModels\DialogCableConnectionVM\DialogCableConnection_NewStripViewModel.cs" />
|
||||
@ -534,11 +530,17 @@
|
||||
<Project>{51cb6f5b-16e9-4ee0-baa4-144dd1ec8580}</Project>
|
||||
<Name>SWS.Service</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\SWS.Share\SWS.Share.csproj">
|
||||
<Project>{87E71797-E60A-4637-BA32-C8B57154ABC3}</Project>
|
||||
<Name>SWS.Share</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\SWS.WPF\SWS.WPF.csproj">
|
||||
<Project>{7aff9117-78e7-4395-9f23-6dcfe09f9299}</Project>
|
||||
<Name>SWS.WPF</Name>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<ItemGroup />
|
||||
<ItemGroup>
|
||||
<Folder Include="Helper\Behavior\" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
</Project>
|
@ -53,7 +53,7 @@ namespace SWS.CAD.ViewModels
|
||||
}
|
||||
|
||||
private List<ec_Cable> CablePreAssigns;
|
||||
public async void OnDialogOpened(IDialogParameters parameters)
|
||||
public void OnDialogOpened(IDialogParameters parameters)
|
||||
{
|
||||
//title = parameters.GetValue<string>(GlobalObject.dialogPar.title.ToString());
|
||||
title = "待分配的信号预览和统计";
|
||||
@ -128,7 +128,7 @@ namespace SWS.CAD.ViewModels
|
||||
IDialogParameters para = new Prism.Services.Dialogs.DialogParameters();
|
||||
para.Add(GlobalObject.dialogPar.para1.ToString(), PreAssignCables);
|
||||
var _dialogService = GlobalObject._prismContainer.Resolve<IDialogService>();
|
||||
_dialogService.ShowDialog(nameof(DialogCablePreAssignResult), para, async (RES) =>
|
||||
_dialogService.ShowDialog(nameof(DialogCablePreAssignResult), para, (RES) =>
|
||||
{
|
||||
if (RES.Result == ButtonResult.Yes)
|
||||
{
|
||||
@ -182,7 +182,7 @@ namespace SWS.CAD.ViewModels
|
||||
/// 页面左侧按钮
|
||||
/// </summary>
|
||||
/// <param name="parameter"></param>
|
||||
public virtual async void Button_Click(object parameter)
|
||||
public virtual void Button_Click(object parameter)
|
||||
{
|
||||
if (parameter.ToString().Equals("全选"))
|
||||
{
|
||||
@ -288,7 +288,7 @@ namespace SWS.CAD.ViewModels
|
||||
TagNumber = ec_Cable.TagNumber;
|
||||
PreAssignIOType = ec_Cable.PreAssignIOType;
|
||||
CableClass = ec_Cable.CableClass.Equals("homerun") ? "是" : "否";
|
||||
ToPanel_TagNumber = ec_Cable.ToPanel != null ? ec_Cable.ToPanel.TagNumber : null;
|
||||
ToPanel_TagNumber = ec_Cable.AssignedPanel != null ? ec_Cable.AssignedPanel.TagNumber : null;
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
@ -108,6 +108,7 @@ namespace SWS.CAD.ViewModels
|
||||
|
||||
public override async void ExecuteOKCommandAsync(object para)
|
||||
{
|
||||
//只传入分配成功的电缆
|
||||
var Cables = new List<ec_Cable>();
|
||||
if (AllPreAssignCables != null)
|
||||
{
|
||||
@ -153,7 +154,7 @@ namespace SWS.CAD.ViewModels
|
||||
{
|
||||
foreach (var PreAssignCable in AllPreAssignCables)
|
||||
{
|
||||
if (PreAssignCable.Sets != null && !string.IsNullOrEmpty(PreAssignCable.Sets.FirstOrDefault().ConnectionInfo))
|
||||
if (PreAssignCable.AssignedPanel!=null)
|
||||
{
|
||||
PreAssignCables.Add(PreAssignCable);
|
||||
}
|
||||
@ -163,7 +164,7 @@ namespace SWS.CAD.ViewModels
|
||||
{
|
||||
foreach (var PreAssignCable in AllPreAssignCables)
|
||||
{
|
||||
if (PreAssignCable.Sets == null || string.IsNullOrEmpty(PreAssignCable.Sets.FirstOrDefault().ConnectionInfo))
|
||||
if (PreAssignCable.AssignedPanel == null)
|
||||
{
|
||||
PreAssignCables.Add(PreAssignCable);
|
||||
}
|
||||
@ -179,14 +180,14 @@ namespace SWS.CAD.ViewModels
|
||||
|
||||
PreAllocationResultls = new ObservableCollection<PreAllocationResult>();
|
||||
if (cable == null) return;
|
||||
if (cable.Sets != null)
|
||||
if (cable.AssignedPanel != null)
|
||||
{
|
||||
foreach (var Set in cable.Sets)
|
||||
{
|
||||
PreAllocationResult preAllocationResult = new PreAllocationResult();
|
||||
preAllocationResult.CablePair = Set.CableSetName;
|
||||
preAllocationResult.IOType = cable.PreAssignIOType;
|
||||
preAllocationResult.ToPanel_TagNumber = cable.ToPanel == null ? "" : cable.ToPanel.TagNumber;
|
||||
preAllocationResult.ToPanel_TagNumber = cable.AssignedPanel == null ? "" : cable.AssignedPanel.TagNumber;
|
||||
preAllocationResult.Panel_TagNumber = string.IsNullOrEmpty(Set.ConnectionInfo) ? "" : Set.ConnectionInfo.Split('/')[0].Split(':')[1].Trim();
|
||||
preAllocationResult.StripName = string.IsNullOrEmpty(Set.ConnectionInfo) ? "" : Set.ConnectionInfo.Split('/')[1].Split(':')[1].Trim();
|
||||
preAllocationResult.Terms = new ObservableCollection<ec_PanelStripTerm>(Set.AssignedTerms);
|
||||
@ -220,7 +221,9 @@ namespace SWS.CAD.ViewModels
|
||||
public string CablePair
|
||||
{
|
||||
get { return _CablePair; }
|
||||
set { _CablePair = value; }
|
||||
set { _CablePair = value;
|
||||
RaisePropertyChanged(nameof(CablePair));
|
||||
}
|
||||
}
|
||||
|
||||
private string _IOType;
|
||||
@ -230,7 +233,9 @@ namespace SWS.CAD.ViewModels
|
||||
public string IOType
|
||||
{
|
||||
get { return _IOType; }
|
||||
set { _IOType = value; }
|
||||
set { _IOType = value;
|
||||
RaisePropertyChanged(nameof(IOType));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -241,7 +246,9 @@ namespace SWS.CAD.ViewModels
|
||||
public string ToPanel_TagNumber
|
||||
{
|
||||
get { return _ToPanel_TagNumber; }
|
||||
set { _ToPanel_TagNumber = value; }
|
||||
set { _ToPanel_TagNumber = value;
|
||||
RaisePropertyChanged(nameof(ToPanel_TagNumber));
|
||||
}
|
||||
}
|
||||
|
||||
private string _Panel_TagNumber;
|
||||
@ -251,7 +258,9 @@ namespace SWS.CAD.ViewModels
|
||||
public string Panel_TagNumber
|
||||
{
|
||||
get { return _Panel_TagNumber; }
|
||||
set { _Panel_TagNumber = value; }
|
||||
set { _Panel_TagNumber = value;
|
||||
RaisePropertyChanged(nameof(Panel_TagNumber));
|
||||
}
|
||||
}
|
||||
|
||||
private string _StripName;
|
||||
@ -261,7 +270,9 @@ namespace SWS.CAD.ViewModels
|
||||
public string StripName
|
||||
{
|
||||
get { return _StripName; }
|
||||
set { _StripName = value; }
|
||||
set { _StripName = value;
|
||||
RaisePropertyChanged(nameof(StripName));
|
||||
}
|
||||
}
|
||||
|
||||
private ObservableCollection<ec_PanelStripTerm> _Terms;
|
||||
@ -271,7 +282,9 @@ namespace SWS.CAD.ViewModels
|
||||
public ObservableCollection<ec_PanelStripTerm> Terms
|
||||
{
|
||||
get { return _Terms; }
|
||||
set { _Terms = value; }
|
||||
set { _Terms = value;
|
||||
RaisePropertyChanged(nameof(Terms));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
@ -410,7 +410,7 @@ namespace SWS.CAD.ViewModels
|
||||
#endregion
|
||||
|
||||
#region 改变关联和解除信号按钮的可用状态
|
||||
private async void UpdateButtonEnabled()
|
||||
private void UpdateButtonEnabled()
|
||||
{
|
||||
if (SelectedChannelInfo != null)
|
||||
{
|
||||
@ -2723,7 +2723,7 @@ namespace SWS.CAD.ViewModels
|
||||
IDialogParameters para = new Prism.Services.Dialogs.DialogParameters();
|
||||
para.Add(GlobalObject.dialogPar.para1.ToString(), PreAssignCables);
|
||||
var _dialogService = GlobalObject._prismContainer.Resolve<IDialogService>();
|
||||
_dialogService.ShowDialog(nameof(DialogCablePreAssignPreview), para, async (RES) =>
|
||||
_dialogService.ShowDialog(nameof(DialogCablePreAssignPreview), para, (RES) =>
|
||||
{
|
||||
if (RES.Result == ButtonResult.Yes)
|
||||
{
|
||||
|
@ -22,6 +22,9 @@ using Unity;
|
||||
|
||||
namespace SWS.CAD.ViewModels
|
||||
{
|
||||
/// <summary>
|
||||
/// 信号预分配页面的模型类
|
||||
/// </summary>
|
||||
public class DialogSignalPredistributionViewModel : DialogBase, IDialogAware
|
||||
{
|
||||
#region 字段
|
||||
|
@ -506,7 +506,7 @@ namespace SWS.CAD.ViewModels
|
||||
foreach (var id in listObjectTypeId)
|
||||
{
|
||||
//获取节点
|
||||
Model.TreeModel node = Helper.TreeHelper.GetTreeModel(GlobalObject.objectTypeTree, id);
|
||||
Model.TreeModel node = TreeHelper.GetTreeModel(GlobalObject.objectTypeTree, id);
|
||||
if (node != null)
|
||||
{
|
||||
var node1 = (Model.TreeModel)node.Clone();
|
||||
@ -531,7 +531,7 @@ namespace SWS.CAD.ViewModels
|
||||
GlobalObject.AllDwgName.Clear();
|
||||
foreach (var dwg in Drawings)
|
||||
{
|
||||
Helper.TreeHelper.GetTreeText(dwg);
|
||||
TreeHelper.GetTreeText(dwg);
|
||||
}
|
||||
#endregion
|
||||
|
||||
@ -1975,7 +1975,7 @@ namespace SWS.CAD.ViewModels
|
||||
foreach (var dto in historyDrawingsTree)
|
||||
{
|
||||
//获取节点下的图纸
|
||||
node = Helper.TreeHelper.GetTreeModel(dto, item.DrawingFileID);
|
||||
node = TreeHelper.GetTreeModel(dto, item.DrawingFileID);
|
||||
if (node != null)
|
||||
{
|
||||
break;
|
||||
@ -2283,7 +2283,7 @@ namespace SWS.CAD.ViewModels
|
||||
if (string.IsNullOrEmpty(strRecentObjectType))
|
||||
{
|
||||
//获取节点
|
||||
Model.TreeModel node = Helper.TreeHelper.GetTreeModel(GlobalObject.objectTypeTree, selectType.ID);
|
||||
Model.TreeModel node = TreeHelper.GetTreeModel(GlobalObject.objectTypeTree, selectType.ID);
|
||||
var addNode = (Model.TreeModel)node.Clone();
|
||||
var firstNode = objectTypeTree[0];
|
||||
//UI添加到最近使用
|
||||
@ -2304,7 +2304,7 @@ namespace SWS.CAD.ViewModels
|
||||
}
|
||||
listObjectTypeId.Insert(0, selectType.ID);
|
||||
//获取节点
|
||||
Model.TreeModel node = Helper.TreeHelper.GetTreeModel(GlobalObject.objectTypeTree, selectType.ID);
|
||||
Model.TreeModel node = TreeHelper.GetTreeModel(GlobalObject.objectTypeTree, selectType.ID);
|
||||
var addNode = (Model.TreeModel)node.Clone();
|
||||
firstNode.ChildNodes.Insert(0, addNode);//UI添加到最近使用
|
||||
ids = string.Join(",", listObjectTypeId);
|
||||
|
@ -254,7 +254,7 @@ namespace SWS.CAD.ViewModels
|
||||
//所属系统下拉框
|
||||
foreach (var item in dwgSystem)
|
||||
{
|
||||
var node = Helper.TreeHelper.GetTreeModel(item, dwgFile.DrawingSystem);
|
||||
var node = TreeHelper.GetTreeModel(item, dwgFile.DrawingSystem);
|
||||
if (node != null)
|
||||
{
|
||||
SelectedSystemItem = node;
|
||||
@ -264,7 +264,7 @@ namespace SWS.CAD.ViewModels
|
||||
//图纸目录下拉框
|
||||
foreach (var item in dwgCatalogueID)
|
||||
{
|
||||
var node = Helper.TreeHelper.GetTreeModel(item, dwgFile.DrawingCatalogueID);
|
||||
var node = TreeHelper.GetTreeModel(item, dwgFile.DrawingCatalogueID);
|
||||
if (node != null)
|
||||
{
|
||||
SelectedCatalogueIDItem = node;
|
||||
@ -476,7 +476,7 @@ namespace SWS.CAD.ViewModels
|
||||
foreach (var catalogueId in tempCatalogueID)
|
||||
{
|
||||
//遍历获取当前节点数据
|
||||
node = Helper.TreeHelper.GetTreeModel(catalogueId, dwgNode.ID);
|
||||
node = TreeHelper.GetTreeModel(catalogueId, dwgNode.ID);
|
||||
if (node != null)
|
||||
{ break; }
|
||||
}
|
||||
|
@ -92,7 +92,13 @@
|
||||
ShowGroupPanel="False" telerik:StyleManager.Theme="Office_Blue"
|
||||
ItemsSource="{Binding PreAllocationResultls}" SelectedItem="{Binding SelectedChannelInfo, Mode=TwoWay}"
|
||||
>
|
||||
<telerik:RadGridView.Columns>
|
||||
<telerik:EventToCommandBehavior.EventBindings>
|
||||
<telerik:EventBinding
|
||||
Command="{Binding EditEndCmd}"
|
||||
EventName="CellEditEnded"
|
||||
PassEventArgsToCommand="True" />
|
||||
</telerik:EventToCommandBehavior.EventBindings>
|
||||
<telerik:RadGridView.Columns>
|
||||
<telerik:GridViewDataColumn Header="电缆对" DataMemberBinding="{Binding CablePair}" IsReadOnly="True"/>
|
||||
<telerik:GridViewDataColumn Header="IO类型" DataMemberBinding="{Binding IOType}" IsReadOnly="True"/>
|
||||
<telerik:GridViewDataColumn Header="预分配箱子" DataMemberBinding="{Binding ToPanel_TagNumber}" IsReadOnly="True"/>
|
||||
|
@ -241,7 +241,7 @@
|
||||
<ItemsControl.ItemTemplate>
|
||||
<DataTemplate>
|
||||
<Border BorderBrush="#cccccc" BorderThickness="0,0,0,1" Padding="0">
|
||||
<TextBlock Text="{Binding}" TextAlignment="Center" Padding="4,2" />
|
||||
<TextBlock Text="{Binding}" TextAlignment="Center" Padding="4,2" />
|
||||
</Border>
|
||||
</DataTemplate>
|
||||
</ItemsControl.ItemTemplate>
|
||||
@ -364,135 +364,135 @@
|
||||
</ResourceDictionary>
|
||||
</UserControl.Resources>
|
||||
<telerik:RadBusyIndicator BusyContent="{Binding BusyContent}" IsBusy="{Binding IsBusy}">
|
||||
<Grid >
|
||||
<StackPanel>
|
||||
<CustomControl:customWindowTitleBar/>
|
||||
<Grid Background="#5d6b99">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="260" />
|
||||
<ColumnDefinition Width="5" />
|
||||
<ColumnDefinition Width="*" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<StackPanel Background="#5d6b99">
|
||||
<!-- 按钮区域 -->
|
||||
<StackPanel Grid.Column="0" Orientation="Horizontal" Margin="10,0,10,5">
|
||||
<Line X1="0" Y1="1" X2="0" Y2="29" StrokeThickness="0.3" Stroke="Black"/>
|
||||
<telerik:RadPathButton PathGeometry="{telerik:RadGlyph Glyph=}"
|
||||
<Grid >
|
||||
<StackPanel>
|
||||
<CustomControl:customWindowTitleBar/>
|
||||
<Grid Background="#5d6b99">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="260" />
|
||||
<ColumnDefinition Width="5" />
|
||||
<ColumnDefinition Width="*" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<StackPanel Background="#5d6b99">
|
||||
<!-- 按钮区域 -->
|
||||
<StackPanel Grid.Column="0" Orientation="Horizontal" Margin="10,0,10,5">
|
||||
<Line X1="0" Y1="1" X2="0" Y2="29" StrokeThickness="0.3" Stroke="Black"/>
|
||||
<telerik:RadPathButton PathGeometry="{telerik:RadGlyph Glyph=}"
|
||||
ToolTip="新增位置"
|
||||
Command="{Binding HeadButtonCmd}" CommandParameter="{Binding ToolTip,RelativeSource={RelativeSource Self}}">
|
||||
<telerik:RadPathButton.IsEnabled>
|
||||
<MultiBinding Converter="{StaticResource SelectedItemToBoolConverter}">
|
||||
<Binding ElementName="treeView1" Path="SelectedItem" />
|
||||
<Binding RelativeSource="{RelativeSource Self}" Path="ToolTip" />
|
||||
</MultiBinding>
|
||||
</telerik:RadPathButton.IsEnabled>
|
||||
</telerik:RadPathButton>
|
||||
<telerik:RadPathButton PathGeometry="{telerik:RadGlyph Glyph=}" x:Name="IconButton2"
|
||||
<telerik:RadPathButton.IsEnabled>
|
||||
<MultiBinding Converter="{StaticResource SelectedItemToBoolConverter}">
|
||||
<Binding ElementName="treeView1" Path="SelectedItem" />
|
||||
<Binding RelativeSource="{RelativeSource Self}" Path="ToolTip" />
|
||||
</MultiBinding>
|
||||
</telerik:RadPathButton.IsEnabled>
|
||||
</telerik:RadPathButton>
|
||||
<telerik:RadPathButton PathGeometry="{telerik:RadGlyph Glyph=}" x:Name="IconButton2"
|
||||
ToolTip="新建端子排"
|
||||
Command="{Binding HeadButtonCmd}"
|
||||
CommandParameter="{Binding ToolTip,RelativeSource={RelativeSource Self}}">
|
||||
<telerik:RadPathButton.IsEnabled>
|
||||
<MultiBinding Converter="{StaticResource SelectedItemToBoolConverter}">
|
||||
<Binding ElementName="treeView1" Path="SelectedItem" />
|
||||
<Binding RelativeSource="{RelativeSource Self}" Path="ToolTip" />
|
||||
</MultiBinding>
|
||||
</telerik:RadPathButton.IsEnabled>
|
||||
</telerik:RadPathButton>
|
||||
<telerik:RadPathButton PathGeometry="{telerik:RadGlyph Glyph=}"
|
||||
<telerik:RadPathButton.IsEnabled>
|
||||
<MultiBinding Converter="{StaticResource SelectedItemToBoolConverter}">
|
||||
<Binding ElementName="treeView1" Path="SelectedItem" />
|
||||
<Binding RelativeSource="{RelativeSource Self}" Path="ToolTip" />
|
||||
</MultiBinding>
|
||||
</telerik:RadPathButton.IsEnabled>
|
||||
</telerik:RadPathButton>
|
||||
<telerik:RadPathButton PathGeometry="{telerik:RadGlyph Glyph=}"
|
||||
ToolTip="修改位置,端子排信息"
|
||||
Command="{Binding HeadButtonCmd}"
|
||||
CommandParameter="{Binding ToolTip,RelativeSource={RelativeSource Self}}">
|
||||
<telerik:RadPathButton.IsEnabled>
|
||||
<MultiBinding Converter="{StaticResource SelectedItemToBoolConverter}">
|
||||
<Binding ElementName="treeView1" Path="SelectedItem" />
|
||||
<Binding RelativeSource="{RelativeSource Self}" Path="ToolTip" />
|
||||
</MultiBinding>
|
||||
</telerik:RadPathButton.IsEnabled>
|
||||
</telerik:RadPathButton>
|
||||
<telerik:RadPathButton PathGeometry="{telerik:RadGlyph Glyph=}"
|
||||
<telerik:RadPathButton.IsEnabled>
|
||||
<MultiBinding Converter="{StaticResource SelectedItemToBoolConverter}">
|
||||
<Binding ElementName="treeView1" Path="SelectedItem" />
|
||||
<Binding RelativeSource="{RelativeSource Self}" Path="ToolTip" />
|
||||
</MultiBinding>
|
||||
</telerik:RadPathButton.IsEnabled>
|
||||
</telerik:RadPathButton>
|
||||
<telerik:RadPathButton PathGeometry="{telerik:RadGlyph Glyph=}"
|
||||
ToolTip="删除节点"
|
||||
Command="{Binding HeadButtonCmd}"
|
||||
CommandParameter="{Binding ToolTip,RelativeSource={RelativeSource Self}}">
|
||||
<telerik:RadPathButton.IsEnabled>
|
||||
<MultiBinding Converter="{StaticResource SelectedItemToBoolConverter}">
|
||||
<Binding ElementName="treeView1" Path="SelectedItem" />
|
||||
<Binding RelativeSource="{RelativeSource Self}" Path="ToolTip" />
|
||||
</MultiBinding>
|
||||
</telerik:RadPathButton.IsEnabled>
|
||||
</telerik:RadPathButton>
|
||||
<Line X1="0" Y1="1" X2="0" Y2="29" StrokeThickness="0.3" Stroke="Black"/>
|
||||
<telerik:RadPathButton PathGeometry="{telerik:RadGlyph Glyph=}"
|
||||
<telerik:RadPathButton.IsEnabled>
|
||||
<MultiBinding Converter="{StaticResource SelectedItemToBoolConverter}">
|
||||
<Binding ElementName="treeView1" Path="SelectedItem" />
|
||||
<Binding RelativeSource="{RelativeSource Self}" Path="ToolTip" />
|
||||
</MultiBinding>
|
||||
</telerik:RadPathButton.IsEnabled>
|
||||
</telerik:RadPathButton>
|
||||
<Line X1="0" Y1="1" X2="0" Y2="29" StrokeThickness="0.3" Stroke="Black"/>
|
||||
<telerik:RadPathButton PathGeometry="{telerik:RadGlyph Glyph=}"
|
||||
ToolTip="选择位号关联通道"
|
||||
Command="{Binding HeadButtonCmd}"
|
||||
CommandParameter="{Binding ToolTip,RelativeSource={RelativeSource Self}}">
|
||||
<telerik:RadPathButton.IsEnabled>
|
||||
<MultiBinding Converter="{StaticResource SelectedItemToBoolConverter}">
|
||||
<Binding ElementName="treeView1" Path="SelectedItem" />
|
||||
<Binding RelativeSource="{RelativeSource Self}" Path="ToolTip" />
|
||||
</MultiBinding>
|
||||
</telerik:RadPathButton.IsEnabled>
|
||||
</telerik:RadPathButton>
|
||||
<telerik:RadPathButton PathGeometry="{telerik:RadGlyph Glyph=}"
|
||||
<telerik:RadPathButton.IsEnabled>
|
||||
<MultiBinding Converter="{StaticResource SelectedItemToBoolConverter}">
|
||||
<Binding ElementName="treeView1" Path="SelectedItem" />
|
||||
<Binding RelativeSource="{RelativeSource Self}" Path="ToolTip" />
|
||||
</MultiBinding>
|
||||
</telerik:RadPathButton.IsEnabled>
|
||||
</telerik:RadPathButton>
|
||||
<telerik:RadPathButton PathGeometry="{telerik:RadGlyph Glyph=}"
|
||||
ToolTip="选择电缆关联通道"
|
||||
Command="{Binding HeadButtonCmd}"
|
||||
CommandParameter="{Binding ToolTip,RelativeSource={RelativeSource Self}}">
|
||||
<telerik:RadPathButton.IsEnabled>
|
||||
<MultiBinding Converter="{StaticResource SelectedItemToBoolConverter}">
|
||||
<Binding ElementName="treeView1" Path="SelectedItem" />
|
||||
<Binding RelativeSource="{RelativeSource Self}" Path="ToolTip" />
|
||||
</MultiBinding>
|
||||
</telerik:RadPathButton.IsEnabled>
|
||||
</telerik:RadPathButton>
|
||||
<telerik:RadPathButton PathGeometry="{telerik:RadGlyph Glyph=}"
|
||||
<telerik:RadPathButton.IsEnabled>
|
||||
<MultiBinding Converter="{StaticResource SelectedItemToBoolConverter}">
|
||||
<Binding ElementName="treeView1" Path="SelectedItem" />
|
||||
<Binding RelativeSource="{RelativeSource Self}" Path="ToolTip" />
|
||||
</MultiBinding>
|
||||
</telerik:RadPathButton.IsEnabled>
|
||||
</telerik:RadPathButton>
|
||||
<telerik:RadPathButton PathGeometry="{telerik:RadGlyph Glyph=}"
|
||||
ToolTip="解除电缆关联通道"
|
||||
Command="{Binding HeadButtonCmd}"
|
||||
CommandParameter="{Binding ToolTip,RelativeSource={RelativeSource Self}}">
|
||||
<telerik:RadPathButton.IsEnabled>
|
||||
<MultiBinding Converter="{StaticResource SelectedItemToBoolConverter}">
|
||||
<Binding ElementName="treeView1" Path="SelectedItem" />
|
||||
<Binding RelativeSource="{RelativeSource Self}" Path="ToolTip" />
|
||||
</MultiBinding>
|
||||
</telerik:RadPathButton.IsEnabled>
|
||||
</telerik:RadPathButton>
|
||||
<Line X1="0" Y1="1" X2="0" Y2="29" StrokeThickness="0.3" Stroke="Black"/>
|
||||
<telerik:RadPathButton PathGeometry="{telerik:RadGlyph Glyph=}"
|
||||
<telerik:RadPathButton.IsEnabled>
|
||||
<MultiBinding Converter="{StaticResource SelectedItemToBoolConverter}">
|
||||
<Binding ElementName="treeView1" Path="SelectedItem" />
|
||||
<Binding RelativeSource="{RelativeSource Self}" Path="ToolTip" />
|
||||
</MultiBinding>
|
||||
</telerik:RadPathButton.IsEnabled>
|
||||
</telerik:RadPathButton>
|
||||
<Line X1="0" Y1="1" X2="0" Y2="29" StrokeThickness="0.3" Stroke="Black"/>
|
||||
<telerik:RadPathButton PathGeometry="{telerik:RadGlyph Glyph=}"
|
||||
ToolTip="新增端子排通道"
|
||||
Command="{Binding HeadButtonCmd}"
|
||||
CommandParameter="{Binding ToolTip,RelativeSource={RelativeSource Self}}">
|
||||
<telerik:RadPathButton.IsEnabled>
|
||||
<MultiBinding Converter="{StaticResource SelectedItemToBoolConverter}">
|
||||
<Binding ElementName="treeView1" Path="SelectedItem" />
|
||||
<Binding RelativeSource="{RelativeSource Self}" Path="ToolTip" />
|
||||
</MultiBinding>
|
||||
</telerik:RadPathButton.IsEnabled>
|
||||
</telerik:RadPathButton>
|
||||
<telerik:RadPathButton PathGeometry="{telerik:RadGlyph Glyph=}"
|
||||
<telerik:RadPathButton.IsEnabled>
|
||||
<MultiBinding Converter="{StaticResource SelectedItemToBoolConverter}">
|
||||
<Binding ElementName="treeView1" Path="SelectedItem" />
|
||||
<Binding RelativeSource="{RelativeSource Self}" Path="ToolTip" />
|
||||
</MultiBinding>
|
||||
</telerik:RadPathButton.IsEnabled>
|
||||
</telerik:RadPathButton>
|
||||
<telerik:RadPathButton PathGeometry="{telerik:RadGlyph Glyph=}"
|
||||
ToolTip="删除端子排通道"
|
||||
Command="{Binding HeadButtonCmd}"
|
||||
CommandParameter="{Binding ToolTip,RelativeSource={RelativeSource Self}}">
|
||||
<telerik:RadPathButton.IsEnabled>
|
||||
<MultiBinding Converter="{StaticResource SelectedItemToBoolConverter}">
|
||||
<Binding ElementName="treeView1" Path="SelectedItem" />
|
||||
<Binding RelativeSource="{RelativeSource Self}" Path="ToolTip" />
|
||||
</MultiBinding>
|
||||
</telerik:RadPathButton.IsEnabled>
|
||||
</telerik:RadPathButton>
|
||||
<Line X1="0" Y1="1" X2="0" Y2="29" StrokeThickness="0.3" Stroke="Black"/>
|
||||
<telerik:RadPathButton PathGeometry="{telerik:RadGlyph Glyph=}"
|
||||
<telerik:RadPathButton.IsEnabled>
|
||||
<MultiBinding Converter="{StaticResource SelectedItemToBoolConverter}">
|
||||
<Binding ElementName="treeView1" Path="SelectedItem" />
|
||||
<Binding RelativeSource="{RelativeSource Self}" Path="ToolTip" />
|
||||
</MultiBinding>
|
||||
</telerik:RadPathButton.IsEnabled>
|
||||
</telerik:RadPathButton>
|
||||
<Line X1="0" Y1="1" X2="0" Y2="29" StrokeThickness="0.3" Stroke="Black"/>
|
||||
<telerik:RadPathButton PathGeometry="{telerik:RadGlyph Glyph=}"
|
||||
ToolTip="导出端子排(模块)使用明细表"
|
||||
Command="{Binding HeadButtonCmd}"
|
||||
CommandParameter="{Binding ToolTip,RelativeSource={RelativeSource Self}}">
|
||||
</telerik:RadPathButton>
|
||||
</StackPanel>
|
||||
<Border Grid.Row="1" BorderThickness="1" >
|
||||
<StackPanel>
|
||||
<Border BorderThickness="0 0 0 1" Margin="10,0,0,0">
|
||||
<TextBlock Text="端子排浏览" Foreground="White" />
|
||||
</Border>
|
||||
</telerik:RadPathButton>
|
||||
</StackPanel>
|
||||
<Border Grid.Row="1" BorderThickness="1" >
|
||||
<StackPanel>
|
||||
<Border BorderThickness="0 0 0 1" Margin="10,0,0,0">
|
||||
<TextBlock Text="端子排浏览" Foreground="White" />
|
||||
</Border>
|
||||
|
||||
<!-- 左侧树形结构 -->
|
||||
<Border>
|
||||
<telerik:RadTreeView x:Name="treeView1" Height="660" Background="White"
|
||||
<!-- 左侧树形结构 -->
|
||||
<Border>
|
||||
<telerik:RadTreeView x:Name="treeView1" Height="660" Background="White"
|
||||
IsLineEnabled="True" ExpanderStyle="{StaticResource ExpanderStyle}"
|
||||
ItemsSource="{Binding PanelTreels}" SelectedItem="{Binding SelectedTreeNode,Mode=TwoWay}"
|
||||
ItemContainerStyle="{StaticResource ExpandedTreeViewItemStyle}"
|
||||
@ -502,117 +502,123 @@
|
||||
IsVirtualizing="True"
|
||||
telerik:TextSearch.TextPath="Text"
|
||||
>
|
||||
<telerik:RadTreeView.ItemTemplate>
|
||||
<HierarchicalDataTemplate ItemsSource="{Binding ChildNodes}">
|
||||
<TextBlock Text="{Binding Text}">
|
||||
</TextBlock>
|
||||
<HierarchicalDataTemplate.ItemTemplate>
|
||||
<HierarchicalDataTemplate ItemsSource="{Binding ChildNodes}">
|
||||
<TextBlock Text="{Binding Text}"/>
|
||||
<HierarchicalDataTemplate.ItemTemplate>
|
||||
<HierarchicalDataTemplate ItemsSource="{Binding PanelTreels}">
|
||||
<StackPanel Orientation="Horizontal">
|
||||
<TextBlock Text="{Binding Text}"/>
|
||||
<TextBlock Text=" (" />
|
||||
<TextBlock Text="{Binding NodeExtData.ChannelsSpared}" FontWeight="Bold" />
|
||||
<TextBlock Text=")" />
|
||||
</StackPanel>
|
||||
</HierarchicalDataTemplate>
|
||||
</HierarchicalDataTemplate.ItemTemplate>
|
||||
</HierarchicalDataTemplate>
|
||||
</HierarchicalDataTemplate.ItemTemplate>
|
||||
</HierarchicalDataTemplate>
|
||||
</telerik:RadTreeView.ItemTemplate>
|
||||
<telerik:RadTreeView.ContextMenu>
|
||||
<ContextMenu x:Name="TreeItemContextMenu">
|
||||
<!-- 菜单项将会在后台动态填充 -->
|
||||
</ContextMenu>
|
||||
</telerik:RadTreeView.ContextMenu>
|
||||
</telerik:RadTreeView>
|
||||
</Border>
|
||||
</StackPanel>
|
||||
</Border>
|
||||
</StackPanel>
|
||||
<telerik:RadTreeView.ItemTemplate>
|
||||
<HierarchicalDataTemplate ItemsSource="{Binding ChildNodes}">
|
||||
<TextBlock Text="{Binding Text}">
|
||||
</TextBlock>
|
||||
<HierarchicalDataTemplate.ItemTemplate>
|
||||
<HierarchicalDataTemplate ItemsSource="{Binding ChildNodes}">
|
||||
<TextBlock Text="{Binding Text}"/>
|
||||
<HierarchicalDataTemplate.ItemTemplate>
|
||||
<HierarchicalDataTemplate ItemsSource="{Binding PanelTreels}">
|
||||
<StackPanel Orientation="Horizontal">
|
||||
<TextBlock Text="{Binding Text}"/>
|
||||
<TextBlock Text=" (" />
|
||||
<TextBlock Text="{Binding NodeExtData.ChannelsSpared}" FontWeight="Bold" />
|
||||
<TextBlock Text=")" />
|
||||
</StackPanel>
|
||||
</HierarchicalDataTemplate>
|
||||
</HierarchicalDataTemplate.ItemTemplate>
|
||||
</HierarchicalDataTemplate>
|
||||
</HierarchicalDataTemplate.ItemTemplate>
|
||||
</HierarchicalDataTemplate>
|
||||
</telerik:RadTreeView.ItemTemplate>
|
||||
<telerik:RadTreeView.ContextMenu>
|
||||
<ContextMenu x:Name="TreeItemContextMenu">
|
||||
<!-- 菜单项将会在后台动态填充 -->
|
||||
</ContextMenu>
|
||||
</telerik:RadTreeView.ContextMenu>
|
||||
</telerik:RadTreeView>
|
||||
</Border>
|
||||
</StackPanel>
|
||||
</Border>
|
||||
</StackPanel>
|
||||
|
||||
<StackPanel Grid.Column="2" Margin="0,0,5,20" Background="#5d6b99">
|
||||
<!-- 按钮区域 -->
|
||||
<DockPanel Margin="0,0,0,0">
|
||||
<telerik:RadPathButton PathGeometry="{telerik:RadGlyph Glyph=}"
|
||||
<StackPanel Grid.Column="2" Margin="0,0,5,20" Background="#5d6b99">
|
||||
<!-- 按钮区域 -->
|
||||
<DockPanel Margin="0,0,0,0">
|
||||
<telerik:RadPathButton PathGeometry="{telerik:RadGlyph Glyph=}"
|
||||
ToolTip="端子排模版设置" Padding="0"
|
||||
Command="{Binding HeadButtonCmd}" CommandParameter="{Binding ToolTip,RelativeSource={RelativeSource Self}}"/>
|
||||
<telerik:RadButton Content="上移通道(L)" Command="{Binding TableButtonCmd}" CommandParameter="{Binding Content,RelativeSource={RelativeSource Self}}" Margin="5"/>
|
||||
<telerik:RadButton Content="下移通道(D)" Command="{Binding TableButtonCmd}" CommandParameter="{Binding Content,RelativeSource={RelativeSource Self}}" Margin="5"/>
|
||||
<telerik:RadButton Content="迁移通道(M)" Command="{Binding TableButtonCmd}" CommandParameter="{Binding Content,RelativeSource={RelativeSource Self}}" Margin="5"/>
|
||||
<telerik:RadButton Content="锁定通道(L)" Command="{Binding TableButtonCmd}" CommandParameter="{Binding Content,RelativeSource={RelativeSource Self}}" Margin="5"/>
|
||||
<telerik:RadButton Content="解锁通道(L)" Command="{Binding TableButtonCmd}" CommandParameter="{Binding Content,RelativeSource={RelativeSource Self}}" Margin="5"/>
|
||||
<telerik:RadButton Content="关联信号" Command="{Binding TableButtonCmd}" CommandParameter="{Binding Content,RelativeSource={RelativeSource Self}}" IsEnabled="{Binding IsEnabledASButton}" Margin="5">
|
||||
<telerik:RadButton Content="上移通道(L)" Width="auto" Style="{StaticResource sysBtn}" Command="{Binding TableButtonCmd}" CommandParameter="{Binding Content,RelativeSource={RelativeSource Self}}" Margin="5"/>
|
||||
<telerik:RadButton Content="下移通道(D)" Width="auto" Style="{StaticResource sysBtn}" Command="{Binding TableButtonCmd}" CommandParameter="{Binding Content,RelativeSource={RelativeSource Self}}" Margin="5"/>
|
||||
<telerik:RadButton Content="迁移通道(M)" Width="auto" Style="{StaticResource sysBtn}" Command="{Binding TableButtonCmd}" CommandParameter="{Binding Content,RelativeSource={RelativeSource Self}}" Margin="5"/>
|
||||
<telerik:RadButton Content="锁定通道(L)" Width="auto" Style="{StaticResource sysBtn}" Command="{Binding TableButtonCmd}" CommandParameter="{Binding Content,RelativeSource={RelativeSource Self}}" Margin="5"/>
|
||||
<telerik:RadButton Content="解锁通道(L)" Command="{Binding TableButtonCmd}" CommandParameter="{Binding Content,RelativeSource={RelativeSource Self}}" Margin="5"/>
|
||||
<telerik:RadButton Content="关联信号" Style="{StaticResource sysBtn}" Command="{Binding TableButtonCmd}" CommandParameter="{Binding Content,RelativeSource={RelativeSource Self}}" IsEnabled="{Binding IsEnabledASButton}" Margin="5">
|
||||
|
||||
</telerik:RadButton>
|
||||
<telerik:RadButton Content="解除信号" Command="{Binding TableButtonCmd}" CommandParameter="{Binding Content,RelativeSource={RelativeSource Self}}" IsEnabled="{Binding IsEnabledClearButton}" Margin="5"/>
|
||||
<telerik:RadButton Content="母线详情" Command="{Binding TableButtonCmd}" CommandParameter="{Binding Content,RelativeSource={RelativeSource Self}}" Margin="5"/>
|
||||
<telerik:RadButton Content="批量分配" Command="{Binding TableButtonCmd}" CommandParameter="{Binding Content,RelativeSource={RelativeSource Self}}" Margin="5"/>
|
||||
<telerik:RadButton Content="保存" HorizontalAlignment="Right" Width="50" Command="{Binding TableButtonCmd}" CommandParameter="{Binding Content,RelativeSource={RelativeSource Self}}" Margin="5,5,0,5"/>
|
||||
</DockPanel>
|
||||
<Border BorderThickness="0 0 0 1">
|
||||
<TextBlock Text="通道详细信息" Foreground="White" />
|
||||
</Border>
|
||||
<!-- 数据表格 -->
|
||||
<Grid>
|
||||
<telerik:RadGridView x:Name="RadGridView1" SelectionMode="Single" Width="auto" Height="660"
|
||||
</telerik:RadButton>
|
||||
<telerik:RadButton Content="解除信号" Command="{Binding TableButtonCmd}" CommandParameter="{Binding Content,RelativeSource={RelativeSource Self}}" IsEnabled="{Binding IsEnabledClearButton}" Margin="5"/>
|
||||
<telerik:RadButton Content="母线详情" Command="{Binding TableButtonCmd}" CommandParameter="{Binding Content,RelativeSource={RelativeSource Self}}" Margin="5"/>
|
||||
<telerik:RadButton Content="批量分配" Style="{StaticResource sysBtn}" Command="{Binding TableButtonCmd}" CommandParameter="{Binding Content,RelativeSource={RelativeSource Self}}" Margin="5"/>
|
||||
<telerik:RadButton Style="{StaticResource sysBtn}" Content="保存" HorizontalAlignment="Right" Width="50" Command="{Binding TableButtonCmd}" CommandParameter="{Binding Content,RelativeSource={RelativeSource Self}}" Margin="5,5,0,5"/>
|
||||
</DockPanel>
|
||||
<Border BorderThickness="0 0 0 1">
|
||||
<TextBlock Text="通道详细信息" Foreground="White" />
|
||||
</Border>
|
||||
<!-- 数据表格 -->
|
||||
<Grid>
|
||||
<telerik:RadGridView x:Name="RadGridView1" SelectionMode="Single" Width="auto" Height="660"
|
||||
AutoGenerateColumns="False" IsFilteringAllowed="False"
|
||||
IsReadOnly="False" RowIndicatorVisibility="Collapsed"
|
||||
ShowGroupPanel="False" telerik:StyleManager.Theme="Office_Blue"
|
||||
ItemsSource="{Binding ChannelInfos}" SelectedItem="{Binding SelectedChannelInfo, Mode=TwoWay}"
|
||||
>
|
||||
<telerik:RadGridView.Columns>
|
||||
<telerik:GridViewDataColumn Header="序号" CellTemplate="{StaticResource CellTemplate1}" CellStyle="{StaticResource CellTyle1}" IsReadOnly="True"/>
|
||||
<telerik:GridViewDataColumn Header="通道号" DataMemberBinding="{Binding ChannelNumber}"
|
||||
<telerik:EventToCommandBehavior.EventBindings>
|
||||
<telerik:EventBinding
|
||||
Command="{Binding EditEndCmd}"
|
||||
EventName="CellEditEnded"
|
||||
PassEventArgsToCommand="True" />
|
||||
</telerik:EventToCommandBehavior.EventBindings>
|
||||
<telerik:RadGridView.Columns>
|
||||
<telerik:GridViewDataColumn Header="序号" CellTemplate="{StaticResource CellTemplate1}" CellStyle="{StaticResource CellTyle1}" IsReadOnly="True"/>
|
||||
<telerik:GridViewDataColumn Header="通道号" DataMemberBinding="{Binding ChannelNumber}"
|
||||
IsCellMergingEnabled="True"/>
|
||||
<telerik:GridViewDataColumn Header="端子号" CellTemplate="{StaticResource CellTemplate2}" CellEditTemplate="{StaticResource CellEditTemplate2}"/>
|
||||
<telerik:GridViewDataColumn Header="占用人" DataMemberBinding="{Binding Occupant}" IsReadOnly="True"/>
|
||||
<telerik:GridViewDataColumn Header="电缆位号" DataMemberBinding="{Binding CableTag}" IsReadOnly="True" Width="100">
|
||||
<telerik:GridViewDataColumn.CellTemplate>
|
||||
<DataTemplate>
|
||||
<TextBlock Text="{Binding CableTag}"
|
||||
<telerik:GridViewDataColumn Header="端子号" CellTemplate="{StaticResource CellTemplate2}" CellEditTemplate="{StaticResource CellEditTemplate2}"/>
|
||||
<telerik:GridViewDataColumn Header="占用人" DataMemberBinding="{Binding Occupant}" IsReadOnly="True" Width="100" Background="#f0f0f0"/>
|
||||
<telerik:GridViewDataColumn Header="电缆位号" DataMemberBinding="{Binding CableTag}" IsReadOnly="True" Width="100" Background="#f0f0f0">
|
||||
<telerik:GridViewDataColumn.CellTemplate>
|
||||
<DataTemplate>
|
||||
<TextBlock Text="{Binding CableTag}"
|
||||
TextTrimming="CharacterEllipsis"
|
||||
ToolTip="{Binding CableTag}"/>
|
||||
</DataTemplate>
|
||||
</telerik:GridViewDataColumn.CellTemplate>
|
||||
</telerik:GridViewDataColumn>
|
||||
<telerik:GridViewDataColumn Header="电缆对" DataMemberBinding="{Binding CablePair}"/>
|
||||
<telerik:GridViewDataColumn Header="电缆线号" CellTemplate="{StaticResource CellTemplate3}" CellEditTemplate="{StaticResource CellEditTemplate3}"/>
|
||||
<telerik:GridViewDataColumn Header="极性" CellTemplate="{StaticResource CellTemplate4}" CellEditTemplate="{StaticResource CellEditTemplate4}"/>
|
||||
<telerik:GridViewDataColumn Header="信号名称" DataMemberBinding="{Binding SignalName}"/>
|
||||
<telerik:GridViewDataColumn Header="信号组别" DataMemberBinding="{Binding GroupOther}" IsReadOnly="True"/>
|
||||
<telerik:GridViewDataColumn Header="信号编码" DataMemberBinding="{Binding SignalCode}" IsReadOnly="True"/>
|
||||
<telerik:GridViewDataColumn Header="中文描述" DataMemberBinding="{Binding ChineseDescription}" Width="120">
|
||||
<telerik:GridViewDataColumn.CellTemplate>
|
||||
<DataTemplate>
|
||||
<TextBlock Text="{Binding ChineseDescription}"
|
||||
</DataTemplate>
|
||||
</telerik:GridViewDataColumn.CellTemplate>
|
||||
</telerik:GridViewDataColumn>
|
||||
<telerik:GridViewDataColumn Header="电缆对" DataMemberBinding="{Binding CablePair}"/>
|
||||
<telerik:GridViewDataColumn Header="电缆线号" CellTemplate="{StaticResource CellTemplate3}" CellEditTemplate="{StaticResource CellEditTemplate3}"/>
|
||||
<telerik:GridViewDataColumn Header="极性" CellTemplate="{StaticResource CellTemplate4}" CellEditTemplate="{StaticResource CellEditTemplate4}"/>
|
||||
<telerik:GridViewDataColumn Header="信号名称" DataMemberBinding="{Binding SignalName}"/>
|
||||
<telerik:GridViewDataColumn Header="信号组别" DataMemberBinding="{Binding GroupOther}" IsReadOnly="True" Background="#f0f0f0"/>
|
||||
<telerik:GridViewDataColumn Header="信号编码" DataMemberBinding="{Binding SignalCode}" IsReadOnly="True" Background="#f0f0f0"/>
|
||||
<telerik:GridViewDataColumn Header="中文描述" DataMemberBinding="{Binding ChineseDescription}" Width="120">
|
||||
<telerik:GridViewDataColumn.CellTemplate>
|
||||
<DataTemplate>
|
||||
<TextBlock Text="{Binding ChineseDescription}"
|
||||
TextTrimming="CharacterEllipsis"
|
||||
ToolTip="{Binding ChineseDescription}"/>
|
||||
</DataTemplate>
|
||||
</telerik:GridViewDataColumn.CellTemplate>
|
||||
</telerik:GridViewDataColumn>
|
||||
<telerik:GridViewDataColumn Header="英文描述" DataMemberBinding="{Binding EnglishDescription}" Width="120">
|
||||
<telerik:GridViewDataColumn.CellTemplate>
|
||||
<DataTemplate>
|
||||
<TextBlock Text="{Binding EnglishDescription}"
|
||||
</DataTemplate>
|
||||
</telerik:GridViewDataColumn.CellTemplate>
|
||||
</telerik:GridViewDataColumn>
|
||||
<telerik:GridViewDataColumn Header="英文描述" DataMemberBinding="{Binding EnglishDescription}" Width="120">
|
||||
<telerik:GridViewDataColumn.CellTemplate>
|
||||
<DataTemplate>
|
||||
<TextBlock Text="{Binding EnglishDescription}"
|
||||
TextTrimming="CharacterEllipsis"
|
||||
ToolTip="{Binding EnglishDescription}"/>
|
||||
</DataTemplate>
|
||||
</telerik:GridViewDataColumn.CellTemplate>
|
||||
</telerik:GridViewDataColumn>
|
||||
<telerik:GridViewDataColumn Header="信号类型" DataMemberBinding="{Binding SignalType}"
|
||||
</DataTemplate>
|
||||
</telerik:GridViewDataColumn.CellTemplate>
|
||||
</telerik:GridViewDataColumn>
|
||||
<telerik:GridViewDataColumn Header="信号类型" DataMemberBinding="{Binding SignalType}"
|
||||
Width="*"/>
|
||||
</telerik:RadGridView.Columns>
|
||||
</telerik:RadGridView>
|
||||
</Grid>
|
||||
</StackPanel>
|
||||
</telerik:RadGridView.Columns>
|
||||
</telerik:RadGridView>
|
||||
</Grid>
|
||||
</StackPanel>
|
||||
|
||||
|
||||
</Grid>
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
</Grid>
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
</telerik:RadBusyIndicator>
|
||||
</UserControl>
|
||||
|
12
newFront/c#前端/SWS.CAD/Views/Dialog/DialogSectionBox.xaml
Normal file
12
newFront/c#前端/SWS.CAD/Views/Dialog/DialogSectionBox.xaml
Normal file
@ -0,0 +1,12 @@
|
||||
<UserControl x:Class="SWS.CAD.Views.Dialog.DialogSectionBox"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:local="clr-namespace:SWS.CAD.Views.Dialog"
|
||||
mc:Ignorable="d"
|
||||
d:DesignHeight="450" d:DesignWidth="800">
|
||||
<Grid>
|
||||
|
||||
</Grid>
|
||||
</UserControl>
|
28
newFront/c#前端/SWS.CAD/Views/Dialog/DialogSectionBox.xaml.cs
Normal file
28
newFront/c#前端/SWS.CAD/Views/Dialog/DialogSectionBox.xaml.cs
Normal file
@ -0,0 +1,28 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Data;
|
||||
using System.Windows.Documents;
|
||||
using System.Windows.Input;
|
||||
using System.Windows.Media;
|
||||
using System.Windows.Media.Imaging;
|
||||
using System.Windows.Navigation;
|
||||
using System.Windows.Shapes;
|
||||
|
||||
namespace SWS.CAD.Views.Dialog
|
||||
{
|
||||
/// <summary>
|
||||
/// DialogSectionBox.xaml 的交互逻辑
|
||||
/// </summary>
|
||||
public partial class DialogSectionBox : UserControl
|
||||
{
|
||||
public DialogSectionBox()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
||||
}
|
@ -4,8 +4,8 @@
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:i="http://schemas.microsoft.com/xaml/behaviors"
|
||||
xmlns:local="clr-namespace:SWS.CAD.Views.CustomControl"
|
||||
xmlns:local2="clr-namespace:SWS.CAD.Helper"
|
||||
xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
|
||||
xmlns:local2="clr-namespace:SWS.Commons;assembly=SWS.Commons"
|
||||
xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
|
||||
Width="300"
|
||||
Height="250"
|
||||
AllowsTransparency="True"
|
||||
|
@ -39,6 +39,10 @@
|
||||
|
||||
<Setter Property="Foreground" Value="Black" />
|
||||
</DataTrigger>
|
||||
<!-- 按钮禁用时 -->
|
||||
<DataTrigger Binding="{Binding IsEnabled, RelativeSource={RelativeSource Self}}" Value="false">
|
||||
<Setter Property="Foreground" Value="Black" />
|
||||
</DataTrigger>
|
||||
</Style.Triggers>
|
||||
</Style>
|
||||
<Style x:Key="sysBtn2" TargetType="Button">
|
||||
|
@ -130,6 +130,10 @@
|
||||
<Project>{1995385b-d1b0-4c55-835e-d3e769972a6a}</Project>
|
||||
<Name>SWS.Model</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\SWS.Share\SWS.Share.csproj">
|
||||
<Project>{87E71797-E60A-4637-BA32-C8B57154ABC3}</Project>
|
||||
<Name>SWS.Share</Name>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<EmbeddedResource Include="Images\OpenProject.png" />
|
||||
|
@ -1,159 +0,0 @@
|
||||
#pragma checksum "..\..\..\Views\DialogAutoArrangeLayout.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "8E0302C7B31AF0BFE57DDCDA7BD9F7E1B53C3458B14B24E3C31D70FADF66C1B2"
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// 此代码由工具生成。
|
||||
// 运行时版本:4.0.30319.42000
|
||||
//
|
||||
// 对此文件的更改可能会导致不正确的行为,并且如果
|
||||
// 重新生成代码,这些更改将会丢失。
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using Microsoft.Xaml.Behaviors;
|
||||
using Microsoft.Xaml.Behaviors.Core;
|
||||
using Microsoft.Xaml.Behaviors.Input;
|
||||
using Microsoft.Xaml.Behaviors.Layout;
|
||||
using Microsoft.Xaml.Behaviors.Media;
|
||||
using Prism.DryIoc;
|
||||
using Prism.Interactivity;
|
||||
using Prism.Ioc;
|
||||
using Prism.Mvvm;
|
||||
using Prism.Regions;
|
||||
using Prism.Regions.Behaviors;
|
||||
using Prism.Services.Dialogs;
|
||||
using Prism.Unity;
|
||||
using SWS.CustomControl;
|
||||
using SWS.Electrical;
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
using System.Windows;
|
||||
using System.Windows.Automation;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Controls.Primitives;
|
||||
using System.Windows.Data;
|
||||
using System.Windows.Documents;
|
||||
using System.Windows.Ink;
|
||||
using System.Windows.Input;
|
||||
using System.Windows.Markup;
|
||||
using System.Windows.Media;
|
||||
using System.Windows.Media.Animation;
|
||||
using System.Windows.Media.Effects;
|
||||
using System.Windows.Media.Imaging;
|
||||
using System.Windows.Media.Media3D;
|
||||
using System.Windows.Media.TextFormatting;
|
||||
using System.Windows.Navigation;
|
||||
using System.Windows.Shapes;
|
||||
using System.Windows.Shell;
|
||||
using Telerik.Windows.Controls;
|
||||
using Telerik.Windows.Controls.Animation;
|
||||
using Telerik.Windows.Controls.Behaviors;
|
||||
using Telerik.Windows.Controls.Carousel;
|
||||
using Telerik.Windows.Controls.ComboBox;
|
||||
using Telerik.Windows.Controls.Data.PropertyGrid;
|
||||
using Telerik.Windows.Controls.DragDrop;
|
||||
using Telerik.Windows.Controls.GridView;
|
||||
using Telerik.Windows.Controls.LayoutControl;
|
||||
using Telerik.Windows.Controls.Legend;
|
||||
using Telerik.Windows.Controls.MultiColumnComboBox;
|
||||
using Telerik.Windows.Controls.Primitives;
|
||||
using Telerik.Windows.Controls.RadialMenu;
|
||||
using Telerik.Windows.Controls.TransitionEffects;
|
||||
using Telerik.Windows.Controls.TreeListView;
|
||||
using Telerik.Windows.Controls.TreeView;
|
||||
using Telerik.Windows.Controls.Wizard;
|
||||
using Telerik.Windows.Data;
|
||||
using Telerik.Windows.DragDrop;
|
||||
using Telerik.Windows.DragDrop.Behaviors;
|
||||
using Telerik.Windows.Input.Touch;
|
||||
using Telerik.Windows.Shapes;
|
||||
|
||||
|
||||
namespace SWS.Electrical.Views {
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// DialogAutoArrangeLayout
|
||||
/// </summary>
|
||||
public partial class DialogAutoArrangeLayout : System.Windows.Controls.UserControl, System.Windows.Markup.IComponentConnector {
|
||||
|
||||
|
||||
#line 122 "..\..\..\Views\DialogAutoArrangeLayout.xaml"
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||
internal SWS.CustomControl.customWindowTitleBar titleBar;
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
|
||||
#line 245 "..\..\..\Views\DialogAutoArrangeLayout.xaml"
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||
internal System.Windows.Controls.DataGrid dgTag;
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
|
||||
#line 351 "..\..\..\Views\DialogAutoArrangeLayout.xaml"
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||
internal System.Windows.Controls.DataGrid dgErrTag;
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
private bool _contentLoaded;
|
||||
|
||||
/// <summary>
|
||||
/// InitializeComponent
|
||||
/// </summary>
|
||||
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
|
||||
public void InitializeComponent() {
|
||||
if (_contentLoaded) {
|
||||
return;
|
||||
}
|
||||
_contentLoaded = true;
|
||||
System.Uri resourceLocater = new System.Uri("/SWS.Electrical;component/views/dialogautoarrangelayout.xaml", System.UriKind.Relative);
|
||||
|
||||
#line 1 "..\..\..\Views\DialogAutoArrangeLayout.xaml"
|
||||
System.Windows.Application.LoadComponent(this, resourceLocater);
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
}
|
||||
|
||||
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
|
||||
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")]
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")]
|
||||
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
|
||||
switch (connectionId)
|
||||
{
|
||||
case 1:
|
||||
this.titleBar = ((SWS.CustomControl.customWindowTitleBar)(target));
|
||||
return;
|
||||
case 2:
|
||||
this.dgTag = ((System.Windows.Controls.DataGrid)(target));
|
||||
|
||||
#line 251 "..\..\..\Views\DialogAutoArrangeLayout.xaml"
|
||||
this.dgTag.LoadingRow += new System.EventHandler<System.Windows.Controls.DataGridRowEventArgs>(this.dgTag_LoadingRow);
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
return;
|
||||
case 3:
|
||||
this.dgErrTag = ((System.Windows.Controls.DataGrid)(target));
|
||||
|
||||
#line 357 "..\..\..\Views\DialogAutoArrangeLayout.xaml"
|
||||
this.dgErrTag.LoadingRow += new System.EventHandler<System.Windows.Controls.DataGridRowEventArgs>(this.dgTag_LoadingRow);
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
return;
|
||||
}
|
||||
this._contentLoaded = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,125 +0,0 @@
|
||||
#pragma checksum "..\..\..\Views\DialogTest2.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "6D6B0D2E8B29B2F4DE2F7CF02D2382F69B7F06455C4BC9504C7F76B8C7D980B6"
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// 此代码由工具生成。
|
||||
// 运行时版本:4.0.30319.42000
|
||||
//
|
||||
// 对此文件的更改可能会导致不正确的行为,并且如果
|
||||
// 重新生成代码,这些更改将会丢失。
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using Microsoft.Xaml.Behaviors;
|
||||
using Microsoft.Xaml.Behaviors.Core;
|
||||
using Microsoft.Xaml.Behaviors.Input;
|
||||
using Microsoft.Xaml.Behaviors.Layout;
|
||||
using Microsoft.Xaml.Behaviors.Media;
|
||||
using Prism.DryIoc;
|
||||
using Prism.Interactivity;
|
||||
using Prism.Ioc;
|
||||
using Prism.Mvvm;
|
||||
using Prism.Regions;
|
||||
using Prism.Regions.Behaviors;
|
||||
using Prism.Services.Dialogs;
|
||||
using Prism.Unity;
|
||||
using SWS.CustomControl;
|
||||
using SWS.Electrical.Views;
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
using System.Windows;
|
||||
using System.Windows.Automation;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Controls.Primitives;
|
||||
using System.Windows.Data;
|
||||
using System.Windows.Documents;
|
||||
using System.Windows.Ink;
|
||||
using System.Windows.Input;
|
||||
using System.Windows.Markup;
|
||||
using System.Windows.Media;
|
||||
using System.Windows.Media.Animation;
|
||||
using System.Windows.Media.Effects;
|
||||
using System.Windows.Media.Imaging;
|
||||
using System.Windows.Media.Media3D;
|
||||
using System.Windows.Media.TextFormatting;
|
||||
using System.Windows.Navigation;
|
||||
using System.Windows.Shapes;
|
||||
using System.Windows.Shell;
|
||||
using Telerik.Windows.Controls;
|
||||
using Telerik.Windows.Controls.Animation;
|
||||
using Telerik.Windows.Controls.Behaviors;
|
||||
using Telerik.Windows.Controls.Carousel;
|
||||
using Telerik.Windows.Controls.ComboBox;
|
||||
using Telerik.Windows.Controls.Data.PropertyGrid;
|
||||
using Telerik.Windows.Controls.DragDrop;
|
||||
using Telerik.Windows.Controls.GridView;
|
||||
using Telerik.Windows.Controls.LayoutControl;
|
||||
using Telerik.Windows.Controls.Legend;
|
||||
using Telerik.Windows.Controls.MultiColumnComboBox;
|
||||
using Telerik.Windows.Controls.Primitives;
|
||||
using Telerik.Windows.Controls.RadialMenu;
|
||||
using Telerik.Windows.Controls.TransitionEffects;
|
||||
using Telerik.Windows.Controls.TreeListView;
|
||||
using Telerik.Windows.Controls.TreeView;
|
||||
using Telerik.Windows.Controls.Wizard;
|
||||
using Telerik.Windows.Data;
|
||||
using Telerik.Windows.DragDrop;
|
||||
using Telerik.Windows.DragDrop.Behaviors;
|
||||
using Telerik.Windows.Input.Touch;
|
||||
using Telerik.Windows.Shapes;
|
||||
|
||||
|
||||
namespace SWS.Electrical.Views {
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// DialogTest2
|
||||
/// </summary>
|
||||
public partial class DialogTest2 : System.Windows.Controls.UserControl, System.Windows.Markup.IComponentConnector {
|
||||
|
||||
|
||||
#line 33 "..\..\..\Views\DialogTest2.xaml"
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||
internal SWS.CustomControl.customWindowTitleBar titleBar;
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
private bool _contentLoaded;
|
||||
|
||||
/// <summary>
|
||||
/// InitializeComponent
|
||||
/// </summary>
|
||||
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
|
||||
public void InitializeComponent() {
|
||||
if (_contentLoaded) {
|
||||
return;
|
||||
}
|
||||
_contentLoaded = true;
|
||||
System.Uri resourceLocater = new System.Uri("/SWS.Electrical;component/views/dialogtest2.xaml", System.UriKind.Relative);
|
||||
|
||||
#line 1 "..\..\..\Views\DialogTest2.xaml"
|
||||
System.Windows.Application.LoadComponent(this, resourceLocater);
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
}
|
||||
|
||||
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
|
||||
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")]
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")]
|
||||
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
|
||||
switch (connectionId)
|
||||
{
|
||||
case 1:
|
||||
this.titleBar = ((SWS.CustomControl.customWindowTitleBar)(target));
|
||||
return;
|
||||
}
|
||||
this._contentLoaded = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -23,6 +23,7 @@ using Prism.Regions.Behaviors;
|
||||
using Prism.Services.Dialogs;
|
||||
using Prism.Unity;
|
||||
using SWS.CustomControl;
|
||||
using SWS.Electrical;
|
||||
using SWS.Electrical.Views;
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
|
@ -9,6 +9,23 @@
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using Microsoft.Xaml.Behaviors;
|
||||
using Microsoft.Xaml.Behaviors.Core;
|
||||
using Microsoft.Xaml.Behaviors.Input;
|
||||
using Microsoft.Xaml.Behaviors.Layout;
|
||||
using Microsoft.Xaml.Behaviors.Media;
|
||||
using Prism.DryIoc;
|
||||
using Prism.Interactivity;
|
||||
using Prism.Ioc;
|
||||
using Prism.Mvvm;
|
||||
using Prism.Regions;
|
||||
using Prism.Regions.Behaviors;
|
||||
using Prism.Services.Dialogs;
|
||||
using Prism.Unity;
|
||||
using SWS.CustomControl;
|
||||
using SWS.Electrical;
|
||||
using SWS.Electrical.Views;
|
||||
using SWS.Model;
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
using System.Windows;
|
||||
@ -29,6 +46,28 @@ using System.Windows.Media.TextFormatting;
|
||||
using System.Windows.Navigation;
|
||||
using System.Windows.Shapes;
|
||||
using System.Windows.Shell;
|
||||
using Telerik.Windows.Controls;
|
||||
using Telerik.Windows.Controls.Animation;
|
||||
using Telerik.Windows.Controls.Behaviors;
|
||||
using Telerik.Windows.Controls.Carousel;
|
||||
using Telerik.Windows.Controls.ComboBox;
|
||||
using Telerik.Windows.Controls.Data.PropertyGrid;
|
||||
using Telerik.Windows.Controls.DragDrop;
|
||||
using Telerik.Windows.Controls.GridView;
|
||||
using Telerik.Windows.Controls.LayoutControl;
|
||||
using Telerik.Windows.Controls.Legend;
|
||||
using Telerik.Windows.Controls.MultiColumnComboBox;
|
||||
using Telerik.Windows.Controls.Primitives;
|
||||
using Telerik.Windows.Controls.RadialMenu;
|
||||
using Telerik.Windows.Controls.TransitionEffects;
|
||||
using Telerik.Windows.Controls.TreeListView;
|
||||
using Telerik.Windows.Controls.TreeView;
|
||||
using Telerik.Windows.Controls.Wizard;
|
||||
using Telerik.Windows.Data;
|
||||
using Telerik.Windows.DragDrop;
|
||||
using Telerik.Windows.DragDrop.Behaviors;
|
||||
using Telerik.Windows.Input.Touch;
|
||||
using Telerik.Windows.Shapes;
|
||||
|
||||
|
||||
namespace SWS.Electrical.Views {
|
||||
|
@ -9,6 +9,23 @@
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using Microsoft.Xaml.Behaviors;
|
||||
using Microsoft.Xaml.Behaviors.Core;
|
||||
using Microsoft.Xaml.Behaviors.Input;
|
||||
using Microsoft.Xaml.Behaviors.Layout;
|
||||
using Microsoft.Xaml.Behaviors.Media;
|
||||
using Prism.DryIoc;
|
||||
using Prism.Interactivity;
|
||||
using Prism.Ioc;
|
||||
using Prism.Mvvm;
|
||||
using Prism.Regions;
|
||||
using Prism.Regions.Behaviors;
|
||||
using Prism.Services.Dialogs;
|
||||
using Prism.Unity;
|
||||
using SWS.CustomControl;
|
||||
using SWS.Electrical;
|
||||
using SWS.Electrical.Views;
|
||||
using SWS.Model;
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
using System.Windows;
|
||||
@ -29,6 +46,28 @@ using System.Windows.Media.TextFormatting;
|
||||
using System.Windows.Navigation;
|
||||
using System.Windows.Shapes;
|
||||
using System.Windows.Shell;
|
||||
using Telerik.Windows.Controls;
|
||||
using Telerik.Windows.Controls.Animation;
|
||||
using Telerik.Windows.Controls.Behaviors;
|
||||
using Telerik.Windows.Controls.Carousel;
|
||||
using Telerik.Windows.Controls.ComboBox;
|
||||
using Telerik.Windows.Controls.Data.PropertyGrid;
|
||||
using Telerik.Windows.Controls.DragDrop;
|
||||
using Telerik.Windows.Controls.GridView;
|
||||
using Telerik.Windows.Controls.LayoutControl;
|
||||
using Telerik.Windows.Controls.Legend;
|
||||
using Telerik.Windows.Controls.MultiColumnComboBox;
|
||||
using Telerik.Windows.Controls.Primitives;
|
||||
using Telerik.Windows.Controls.RadialMenu;
|
||||
using Telerik.Windows.Controls.TransitionEffects;
|
||||
using Telerik.Windows.Controls.TreeListView;
|
||||
using Telerik.Windows.Controls.TreeView;
|
||||
using Telerik.Windows.Controls.Wizard;
|
||||
using Telerik.Windows.Data;
|
||||
using Telerik.Windows.DragDrop;
|
||||
using Telerik.Windows.DragDrop.Behaviors;
|
||||
using Telerik.Windows.Input.Touch;
|
||||
using Telerik.Windows.Shapes;
|
||||
|
||||
|
||||
namespace SWS.Electrical.Views {
|
||||
|
@ -115,7 +115,6 @@
|
||||
<Compile Include="ec_wire_group_notice.cs" />
|
||||
<Compile Include="ec_wire_group_propertyhis.cs" />
|
||||
<Compile Include="KeyValueModel.cs" />
|
||||
<Compile Include="LayoutTagInfoBrief.cs" />
|
||||
<Compile Include="NoEntity\BomConfig.cs" />
|
||||
<Compile Include="NoEntity\CheckInLogNeedApproveModel.cs" />
|
||||
<Compile Include="NoEntity\CheckInModel.cs" />
|
||||
@ -141,5 +140,11 @@
|
||||
<ItemGroup>
|
||||
<None Include="packages.config" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\SWS.Share\SWS.Share.csproj">
|
||||
<Project>{87e71797-e60a-4637-ba32-c8b57154abc3}</Project>
|
||||
<Name>SWS.Share</Name>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
</Project>
|
@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<ProjectView>ShowAllFiles</ProjectView>
|
||||
<ProjectView>ProjectFiles</ProjectView>
|
||||
</PropertyGroup>
|
||||
</Project>
|
@ -3,6 +3,7 @@ using System.Collections.Generic;
|
||||
using System.Collections.ObjectModel;
|
||||
using System.Linq;
|
||||
using SWS.Model;
|
||||
using SWS.Share;
|
||||
using Telerik.Windows.Controls;
|
||||
using Telerik.Windows.Data;
|
||||
|
||||
|
@ -67,11 +67,11 @@ namespace SWS.Model
|
||||
set { _IO_Type = value; }
|
||||
}
|
||||
|
||||
private Model.Action _ActionID;
|
||||
private Share.Action _ActionID;
|
||||
/// <summary>
|
||||
/// 操作ID
|
||||
/// </summary>
|
||||
public Model.Action ActionID
|
||||
public Share.Action ActionID
|
||||
{
|
||||
get { return _ActionID; }
|
||||
set { _ActionID = value; }
|
||||
|
@ -107,6 +107,8 @@ namespace SWS.Model
|
||||
/// </summary>
|
||||
public ec_Panel ToPanel { set; get; }
|
||||
|
||||
public ec_Panel AssignedPanel { set; get; }
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
|
@ -1,6 +1,7 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using SWS.Share;
|
||||
|
||||
namespace SWS.Model
|
||||
{
|
||||
@ -393,43 +394,4 @@ namespace SWS.Model
|
||||
public List<ec_wire_group_log> Logs { get; set; }
|
||||
#endregion
|
||||
}
|
||||
public enum WireGroupStatusEnum
|
||||
{
|
||||
/// <summary>
|
||||
/// 待删除
|
||||
/// </summary>
|
||||
[Description("待删除")]
|
||||
ToDelete = 01,
|
||||
/// <summary>
|
||||
/// 新增的
|
||||
/// </summary>
|
||||
[Description("新增的")]
|
||||
New = 02,
|
||||
/// <summary>
|
||||
/// 已关联
|
||||
/// </summary>
|
||||
[Description("已使用(关联)")]
|
||||
Used = 03,
|
||||
/// <summary>
|
||||
/// 已审核
|
||||
/// </summary>
|
||||
[Description("已确认(审核)")]
|
||||
Confirmed = 04,
|
||||
/// <summary>
|
||||
/// 重新打开
|
||||
/// </summary>
|
||||
[Description("重新打开")]
|
||||
Reopen = 05,
|
||||
/// <summary>
|
||||
/// 彻底删除
|
||||
/// </summary>
|
||||
[Description("彻底删除")]
|
||||
deleted = 06
|
||||
}
|
||||
public class ActionHistory
|
||||
{
|
||||
public DateTime? ActionTime { get; set; }
|
||||
public Action ActionType { get; set; }
|
||||
public string reason { get; set; }
|
||||
}
|
||||
}
|
||||
|
@ -10,7 +10,7 @@ namespace SWS.Model
|
||||
{
|
||||
|
||||
}
|
||||
public ec_wire_group_log(Action OperateType, string WireGroupID)
|
||||
public ec_wire_group_log(Share.Action OperateType, string WireGroupID)
|
||||
{
|
||||
this.OperateType = OperateType;
|
||||
this.WireGroupID = WireGroupID;
|
||||
@ -22,7 +22,7 @@ namespace SWS.Model
|
||||
/// <param name="OperateType"></param>
|
||||
/// <param name="WireGroupID"></param>
|
||||
/// <param name="createtime">因为<see cref="ec_Wire_GroupEntity.ActionHistorys"/>的关系,所以时间是有值的</param>
|
||||
public ec_wire_group_log(Action OperateType, string WireGroupID, DateTime? createtime)
|
||||
public ec_wire_group_log(Share.Action OperateType, string WireGroupID, DateTime? createtime)
|
||||
{
|
||||
this.OperateType = OperateType;
|
||||
this.WireGroupID = WireGroupID;
|
||||
@ -50,7 +50,7 @@ namespace SWS.Model
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[JsonConverter(typeof(StringEnumConverter))]
|
||||
public Action OperateType { get; set; }
|
||||
public Share.Action OperateType { get; set; }
|
||||
/// <summary>
|
||||
/// 备注
|
||||
/// </summary>
|
||||
|
@ -3,24 +3,6 @@
|
||||
namespace SWS.Model
|
||||
|
||||
{
|
||||
/// <summary>
|
||||
/// 动作。和状态是两码事情。
|
||||
/// </summary>
|
||||
public enum Action
|
||||
{
|
||||
|
||||
新增 = 0,
|
||||
修改 = 1,
|
||||
准备删除 = 2,
|
||||
撤销删除 = 3,
|
||||
删除 = 4,
|
||||
关联通道 = 5,
|
||||
审核 = 6,
|
||||
重新打开 = 7,
|
||||
关联解除 = 8,
|
||||
回收站恢复 = 9
|
||||
}
|
||||
|
||||
public enum Department
|
||||
{
|
||||
轮机 = 0,
|
||||
|
@ -3,6 +3,7 @@ using System.Threading.Tasks;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using SWS.Commons;
|
||||
using SWS.Model;
|
||||
using SWS.Share;
|
||||
|
||||
namespace SWS.Service
|
||||
{
|
||||
|
@ -62,7 +62,7 @@ namespace SWS.Service
|
||||
/// </summary>
|
||||
/// <param name="entity"></param>
|
||||
/// <returns></returns>
|
||||
public async Task<string> CanSaveSignals(WireGroups entity ,Model.Action ActionType)
|
||||
public async Task<string> CanSaveSignals(WireGroups entity ,Share.Action ActionType)
|
||||
{
|
||||
var res = await this.PostBodyAsync<List<ec_Wire_Group>, WireGroups>($"WireGroupApi/CanSaveSignals?projId={GlobalObject.curProject?.ProjectId}&ActionType={ActionType}", entity);
|
||||
if (res.code == 200)
|
||||
|
@ -0,0 +1 @@
|
||||
{"RootPath":"E:\\Di-Electrical\\newFront\\c#前端\\SWS.Share","ProjectFileName":"SWS.Share.csproj","Configuration":"Debug|AnyCPU","FrameworkPath":"","Sources":[{"SourceFile":"BOMGroupInfo.cs"},{"SourceFile":"Properties\\AssemblyInfo.cs"},{"SourceFile":"obj\\Debug\\.NETFramework,Version=v4.6.1.AssemblyAttributes.cs"}],"References":[{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.6.1\\Microsoft.CSharp.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.6.1\\mscorlib.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.6.1\\System.Core.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.6.1\\System.Data.DataSetExtensions.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.6.1\\System.Data.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.6.1\\System.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.6.1\\System.Net.Http.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.6.1\\System.Xml.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.6.1\\System.Xml.Linq.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""}],"Analyzers":[],"Outputs":[{"OutputItemFullPath":"E:\\Di-Electrical\\newFront\\c#前端\\SWS.Share\\bin\\Debug\\SWS.Share.dll","OutputItemRelativePath":"SWS.Share.dll"},{"OutputItemFullPath":"","OutputItemRelativePath":""}],"CopyToOutputEntries":[]}
|
15
newFront/c#前端/SWS.Share/ActionHistory.cs
Normal file
15
newFront/c#前端/SWS.Share/ActionHistory.cs
Normal file
@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace SWS.Share
|
||||
{
|
||||
public class ActionHistory
|
||||
{
|
||||
public DateTime? ActionTime { get; set; }
|
||||
public Action ActionType { get; set; }
|
||||
public string reason { get; set; }
|
||||
}
|
||||
}
|
13
newFront/c#前端/SWS.Share/ConstString.cs
Normal file
13
newFront/c#前端/SWS.Share/ConstString.cs
Normal file
@ -0,0 +1,13 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace SWS.Share
|
||||
{
|
||||
public class ConstString
|
||||
{
|
||||
|
||||
}
|
||||
}
|
22
newFront/c#前端/SWS.Share/Enum.cs
Normal file
22
newFront/c#前端/SWS.Share/Enum.cs
Normal file
@ -0,0 +1,22 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace SWS.Share
|
||||
{
|
||||
public class Enum
|
||||
{
|
||||
public enum inOrOut
|
||||
{
|
||||
输入 = 0,
|
||||
输出 = 1
|
||||
}
|
||||
public enum cableClass
|
||||
{
|
||||
conventional = 0,
|
||||
homerun = 1
|
||||
}
|
||||
}
|
||||
}
|
25
newFront/c#前端/SWS.Share/Enums/Action.cs
Normal file
25
newFront/c#前端/SWS.Share/Enums/Action.cs
Normal file
@ -0,0 +1,25 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace SWS.Share
|
||||
{
|
||||
/// <summary>
|
||||
/// 动作。和状态是两码事情。
|
||||
/// </summary>
|
||||
public enum Action
|
||||
{
|
||||
新增 = 0,
|
||||
修改 = 1,
|
||||
准备删除 = 2,
|
||||
撤销删除 = 3,
|
||||
删除 = 4,
|
||||
关联通道 = 5,
|
||||
审核 = 6,
|
||||
重新打开 = 7,
|
||||
关联解除 = 8,
|
||||
回收站恢复 = 9
|
||||
}
|
||||
}
|
43
newFront/c#前端/SWS.Share/Enums/WireGroupStatusEnum.cs
Normal file
43
newFront/c#前端/SWS.Share/Enums/WireGroupStatusEnum.cs
Normal file
@ -0,0 +1,43 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace SWS.Share
|
||||
{
|
||||
public enum WireGroupStatusEnum
|
||||
{
|
||||
/// <summary>
|
||||
/// 待删除
|
||||
/// </summary>
|
||||
[Description("待删除")]
|
||||
ToDelete = 01,
|
||||
/// <summary>
|
||||
/// 新增的
|
||||
/// </summary>
|
||||
[Description("新增的")]
|
||||
New = 02,
|
||||
/// <summary>
|
||||
/// 已关联
|
||||
/// </summary>
|
||||
[Description("已使用(关联)")]
|
||||
Used = 03,
|
||||
/// <summary>
|
||||
/// 已审核
|
||||
/// </summary>
|
||||
[Description("已确认(审核)")]
|
||||
Confirmed = 04,
|
||||
/// <summary>
|
||||
/// 重新打开
|
||||
/// </summary>
|
||||
[Description("重新打开")]
|
||||
Reopen = 05,
|
||||
/// <summary>
|
||||
/// 彻底删除
|
||||
/// </summary>
|
||||
[Description("彻底删除")]
|
||||
deleted = 06
|
||||
}
|
||||
}
|
80
newFront/c#前端/SWS.Share/LayoutTagInfoBrief.cs
Normal file
80
newFront/c#前端/SWS.Share/LayoutTagInfoBrief.cs
Normal file
@ -0,0 +1,80 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace SWS.Share
|
||||
{
|
||||
/// <summary>
|
||||
/// 精简的类,用于布置图绘制
|
||||
/// </summary>
|
||||
public class LayoutTagInfoBrief
|
||||
{
|
||||
public LayoutTagInfoBrief()
|
||||
{
|
||||
}
|
||||
#region 实体成员
|
||||
/// <summary>
|
||||
/// 工程数据ID
|
||||
/// </summary>
|
||||
public string EngineDataID { get; set; }
|
||||
/// <summary>
|
||||
/// 位号
|
||||
/// </summary>
|
||||
public string TagNumber { get; set; } = "";
|
||||
/// <summary>
|
||||
/// tag
|
||||
/// </summary>
|
||||
public string TagNumber_Upper { get; set; } = "";
|
||||
/// <summary>
|
||||
/// system
|
||||
/// </summary>
|
||||
public string TagNumber_Lower { get; set; } = "";
|
||||
|
||||
/// <summary>
|
||||
/// 图元文件Id
|
||||
/// </summary>
|
||||
public string FileId { get; set; }
|
||||
/// <summary>
|
||||
/// 基点在布置图上的句柄
|
||||
/// </summary>
|
||||
public string PixelOnDwg { get; set; }
|
||||
/// <summary>
|
||||
/// 比例
|
||||
/// </summary>
|
||||
public double Scale { get; set; }
|
||||
/// <summary>
|
||||
/// true:默认块,false:异性块
|
||||
/// </summary>
|
||||
public bool IsNotDefaultSymbol { get; set; }
|
||||
/// <summary>
|
||||
/// 肋位号 和 偏移量
|
||||
/// </summary>
|
||||
public double X { get; set; }
|
||||
private string _XOff;
|
||||
public string XOff
|
||||
{
|
||||
get { return string.IsNullOrEmpty(_XOff) ? "0" : _XOff; }
|
||||
set { _XOff = value; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 纵骨号 偏移量
|
||||
/// </summary>
|
||||
private string _YOff;
|
||||
public string YOff
|
||||
{
|
||||
get { return string.IsNullOrEmpty(_YOff) ? "0" : _YOff; }
|
||||
set { _YOff = value; }
|
||||
}
|
||||
|
||||
public string deck { get; set; }
|
||||
public string area { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 基点从属的、或者说附近的设备位号
|
||||
/// </summary>
|
||||
public List<LayoutTagInfoBrief> Tags { get; set; } = new List<LayoutTagInfoBrief>();
|
||||
#endregion
|
||||
}
|
||||
}
|
@ -42,8 +42,14 @@
|
||||
<Reference Include="System.Xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Enums\Action.cs" />
|
||||
<Compile Include="ActionHistory.cs" />
|
||||
<Compile Include="BOMGroupInfo.cs" />
|
||||
<Compile Include="LayoutTagInfoBrief.cs" />
|
||||
<Compile Include="ConstString.cs" />
|
||||
<Compile Include="Enum.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="Enums\WireGroupStatusEnum.cs" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
</Project>
|
@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<ProjectView>ProjectFiles</ProjectView>
|
||||
<ProjectView>ShowAllFiles</ProjectView>
|
||||
</PropertyGroup>
|
||||
</Project>
|
@ -191,6 +191,10 @@
|
||||
<Project>{51cb6f5b-16e9-4ee0-baa4-144dd1ec8580}</Project>
|
||||
<Name>SWS.Service</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\SWS.Share\SWS.Share.csproj">
|
||||
<Project>{87E71797-E60A-4637-BA32-C8B57154ABC3}</Project>
|
||||
<Name>SWS.Share</Name>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Folder Include="Style\StyleSelectors\" />
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<ProjectView>ShowAllFiles</ProjectView>
|
||||
<ProjectView>ProjectFiles</ProjectView>
|
||||
</PropertyGroup>
|
||||
</Project>
|
@ -20,6 +20,7 @@ using DryIoc;
|
||||
using ImTools;
|
||||
using System.Timers;
|
||||
using System.Windows.Threading;
|
||||
using SWS.Share;
|
||||
|
||||
namespace SWS.WPF.ViewModels
|
||||
{
|
||||
@ -903,7 +904,7 @@ namespace SWS.WPF.ViewModels
|
||||
new ActionHistory()
|
||||
{
|
||||
ActionTime= DateTime.Now,
|
||||
ActionType = SWS.Model.Action.准备删除,
|
||||
ActionType = Share.Action.准备删除,
|
||||
reason = Reason
|
||||
|
||||
}
|
||||
@ -961,7 +962,7 @@ namespace SWS.WPF.ViewModels
|
||||
new ActionHistory()
|
||||
{
|
||||
ActionTime= DateTime.Now,
|
||||
ActionType = Model.Action.撤销删除,
|
||||
ActionType = Share.Action.撤销删除,
|
||||
|
||||
}
|
||||
};
|
||||
@ -1022,7 +1023,7 @@ namespace SWS.WPF.ViewModels
|
||||
|
||||
WireGroups ent = new WireGroups();
|
||||
ent.Signals = Signals;
|
||||
string message = await _wireGroupService.CanSaveSignals(ent, Model.Action.删除);
|
||||
string message = await _wireGroupService.CanSaveSignals(ent, Share.Action.删除);
|
||||
if (message != "OK")
|
||||
{
|
||||
// 显示消息框
|
||||
@ -1036,7 +1037,7 @@ namespace SWS.WPF.ViewModels
|
||||
new ActionHistory()
|
||||
{
|
||||
ActionTime= DateTime.Now,
|
||||
ActionType = Model.Action.删除,
|
||||
ActionType = Share.Action.删除,
|
||||
reason = ""
|
||||
|
||||
}
|
||||
@ -1113,7 +1114,7 @@ namespace SWS.WPF.ViewModels
|
||||
new ActionHistory()
|
||||
{
|
||||
ActionTime= DateTime.Now,
|
||||
ActionType = Model.Action.回收站恢复,
|
||||
ActionType = Share.Action.回收站恢复,
|
||||
reason = Reason
|
||||
|
||||
}
|
||||
@ -1166,7 +1167,7 @@ namespace SWS.WPF.ViewModels
|
||||
};
|
||||
WireGroups ent = new WireGroups();
|
||||
ent.Signals = Signals;
|
||||
string message = await _wireGroupService.CanSaveSignals(ent, Model.Action.审核);
|
||||
string message = await _wireGroupService.CanSaveSignals(ent, Share.Action.审核);
|
||||
if (message != "OK")
|
||||
{
|
||||
// 显示消息框
|
||||
@ -1180,7 +1181,7 @@ namespace SWS.WPF.ViewModels
|
||||
new ActionHistory()
|
||||
{
|
||||
ActionTime= DateTime.Now,
|
||||
ActionType = Model.Action.审核,
|
||||
ActionType = Share.Action.审核,
|
||||
reason = ""
|
||||
|
||||
}
|
||||
@ -1222,7 +1223,7 @@ namespace SWS.WPF.ViewModels
|
||||
new ActionHistory()
|
||||
{
|
||||
ActionTime= DateTime.Now,
|
||||
ActionType = Model.Action.重新打开,
|
||||
ActionType = Share.Action.重新打开,
|
||||
reason = Reason
|
||||
|
||||
}
|
||||
|
@ -212,11 +212,11 @@ namespace SWS.WPF.ViewModels
|
||||
set { _WireGroupID = value; }
|
||||
}
|
||||
[JsonConverter(typeof(StringEnumConverter))]
|
||||
private Model.Action _OperateType;
|
||||
private Share.Action _OperateType;
|
||||
/// <summary>
|
||||
/// 操作
|
||||
/// </summary>
|
||||
public Model.Action OperateType
|
||||
public Share.Action OperateType
|
||||
{
|
||||
get { return _OperateType; }
|
||||
set { _OperateType = value; }
|
||||
|
@ -9,6 +9,8 @@
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using SWS.Commons.Helper.Converter;
|
||||
using SWS.CustomControl;
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
using System.Windows;
|
||||
@ -29,6 +31,28 @@ using System.Windows.Media.TextFormatting;
|
||||
using System.Windows.Navigation;
|
||||
using System.Windows.Shapes;
|
||||
using System.Windows.Shell;
|
||||
using Telerik.Windows.Controls;
|
||||
using Telerik.Windows.Controls.Animation;
|
||||
using Telerik.Windows.Controls.Behaviors;
|
||||
using Telerik.Windows.Controls.Carousel;
|
||||
using Telerik.Windows.Controls.ComboBox;
|
||||
using Telerik.Windows.Controls.Data.PropertyGrid;
|
||||
using Telerik.Windows.Controls.DragDrop;
|
||||
using Telerik.Windows.Controls.GridView;
|
||||
using Telerik.Windows.Controls.LayoutControl;
|
||||
using Telerik.Windows.Controls.Legend;
|
||||
using Telerik.Windows.Controls.MultiColumnComboBox;
|
||||
using Telerik.Windows.Controls.Primitives;
|
||||
using Telerik.Windows.Controls.RadialMenu;
|
||||
using Telerik.Windows.Controls.TransitionEffects;
|
||||
using Telerik.Windows.Controls.TreeListView;
|
||||
using Telerik.Windows.Controls.TreeView;
|
||||
using Telerik.Windows.Controls.Wizard;
|
||||
using Telerik.Windows.Data;
|
||||
using Telerik.Windows.DragDrop;
|
||||
using Telerik.Windows.DragDrop.Behaviors;
|
||||
using Telerik.Windows.Input.Touch;
|
||||
using Telerik.Windows.Shapes;
|
||||
|
||||
|
||||
namespace SWS.WPF.Views {
|
||||
|
@ -9,6 +9,8 @@
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using SWS.Commons.Helper.Converter;
|
||||
using SWS.CustomControl;
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
using System.Windows;
|
||||
@ -29,6 +31,28 @@ using System.Windows.Media.TextFormatting;
|
||||
using System.Windows.Navigation;
|
||||
using System.Windows.Shapes;
|
||||
using System.Windows.Shell;
|
||||
using Telerik.Windows.Controls;
|
||||
using Telerik.Windows.Controls.Animation;
|
||||
using Telerik.Windows.Controls.Behaviors;
|
||||
using Telerik.Windows.Controls.Carousel;
|
||||
using Telerik.Windows.Controls.ComboBox;
|
||||
using Telerik.Windows.Controls.Data.PropertyGrid;
|
||||
using Telerik.Windows.Controls.DragDrop;
|
||||
using Telerik.Windows.Controls.GridView;
|
||||
using Telerik.Windows.Controls.LayoutControl;
|
||||
using Telerik.Windows.Controls.Legend;
|
||||
using Telerik.Windows.Controls.MultiColumnComboBox;
|
||||
using Telerik.Windows.Controls.Primitives;
|
||||
using Telerik.Windows.Controls.RadialMenu;
|
||||
using Telerik.Windows.Controls.TransitionEffects;
|
||||
using Telerik.Windows.Controls.TreeListView;
|
||||
using Telerik.Windows.Controls.TreeView;
|
||||
using Telerik.Windows.Controls.Wizard;
|
||||
using Telerik.Windows.Data;
|
||||
using Telerik.Windows.DragDrop;
|
||||
using Telerik.Windows.DragDrop.Behaviors;
|
||||
using Telerik.Windows.Input.Touch;
|
||||
using Telerik.Windows.Shapes;
|
||||
|
||||
|
||||
namespace SWS.WPF.Views {
|
||||
|
Loading…
x
Reference in New Issue
Block a user