This commit is contained in:
clovejunti 2024-06-04 17:25:13 +08:00
parent 8b1af1ec38
commit 2b4ab63a1d
40 changed files with 374 additions and 224 deletions

View File

@ -87,12 +87,12 @@ namespace DeviceRepair.Api.Controllers
[HttpGet]
[Route("GetDeviceTreeDatas")]
[HttpAuthorize]
public APIResponseData GetDeviceTreeDatas(string FilterString)
public APIResponseData GetDeviceTreeDatas(string FilterString, string OEMORKH = "ALL")
{
APIResponseData apiResponseData = new APIResponseData { Code = -1, Message = "未能获取到数据!" };
try
{
return DeviceAccess.Instance.GetDeviceTreeDatas(FilterString);
return DeviceAccess.Instance.GetDeviceTreeDatas(FilterString, OEMORKH);
}
catch (Exception ex)
{

View File

@ -55,7 +55,7 @@ namespace DeviceRepair.Api.Controllers
apiResponseData.Message = ex.Message;
}
return new GzipCompressedResult(apiResponseData.ToJson(), Request); ;
return new GzipCompressedResult(apiResponseData.ToJson(), Request);
}
/// <summary>

View File

@ -24,7 +24,7 @@ namespace DeviceRepair.Api.Models
public async Task<HttpResponseMessage> ExecuteAsync(CancellationToken cancellationToken)
{
var response = new HttpResponseMessage(HttpStatusCode.OK);
var contentBytes = Encoding.UTF8.GetBytes(_content).Compress();
var contentBytes = Encoding.UTF8.GetBytes(_content);
using (var outputStream = new MemoryStream())
{
@ -34,8 +34,10 @@ namespace DeviceRepair.Api.Models
}
response.Content = new ByteArrayContent(outputStream.ToArray());
response.Content.Headers.ContentEncoding.Add("gzip");
response.Content.Headers.ContentType = new System.Net.Http.Headers.MediaTypeHeaderValue("application/json");
response.Content = new StringContent(System.Convert.ToBase64String(outputStream.ToArray()), Encoding.UTF8, "text/html");
//response.Content.Headers.ContentEncoding.Add("gzip");
//response.Content.Headers.ContentType = new System.Net.Http.Headers.MediaTypeHeaderValue("application/json");
//response.Content.Headers.ContentType = new System.Net.Http.Headers.MediaTypeHeaderValue("application/json");
}
response.RequestMessage = _request;

View File

@ -10,7 +10,7 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
<LastUsedBuildConfiguration>Debug</LastUsedBuildConfiguration>
<LastUsedPlatform>Any CPU</LastUsedPlatform>
<PublishProvider>FileSystem</PublishProvider>
<PublishUrl>C:\Users\Clove\Desktop\20240603_Release\WebApi_20240603</PublishUrl>
<PublishUrl>C:\Users\Clove\Desktop\20240603_Release\WebApi_20240604</PublishUrl>
<WebPublishMethod>FileSystem</WebPublishMethod>
<SiteUrlToLaunchAfterPublish />
</PropertyGroup>

View File

@ -4,8 +4,8 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
-->
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<_PublishTargetUrl>C:\Users\Clove\Desktop\20240603_Release\WebApi_20240603</_PublishTargetUrl>
<History>True|2024-06-03T17:16:03.9124219Z;True|2024-06-03T15:22:33.9888519+08:00;True|2024-06-03T10:04:55.1562939+08:00;True|2024-06-03T09:51:46.3653303+08:00;True|2024-05-31T10:08:51.2865889+08:00;True|2024-05-31T01:21:35.1603933+08:00;True|2024-05-30T17:42:28.4008960+08:00;True|2024-05-30T17:35:13.0117556+08:00;True|2024-05-30T17:28:00.7834102+08:00;True|2024-05-30T17:10:05.9943745+08:00;True|2024-05-29T13:43:17.4797209+08:00;</History>
<_PublishTargetUrl>C:\Users\Clove\Desktop\20240603_Release\WebApi_20240604</_PublishTargetUrl>
<History>True|2024-06-04T08:24:57.6501582Z;True|2024-06-04T14:30:31.7472780+08:00;True|2024-06-04T01:16:03.9124219+08:00;True|2024-06-03T15:22:33.9888519+08:00;True|2024-06-03T10:04:55.1562939+08:00;True|2024-06-03T09:51:46.3653303+08:00;True|2024-05-31T10:08:51.2865889+08:00;True|2024-05-31T01:21:35.1603933+08:00;True|2024-05-30T17:42:28.4008960+08:00;True|2024-05-30T17:35:13.0117556+08:00;True|2024-05-30T17:28:00.7834102+08:00;True|2024-05-30T17:10:05.9943745+08:00;True|2024-05-29T13:43:17.4797209+08:00;</History>
</PropertyGroup>
<ItemGroup>
<File Include="Areas/HelpPage/HelpPage.css">
@ -78,37 +78,37 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
<publishTime>05/28/2024 22:39:54</publishTime>
</File>
<File Include="bin/DeviceRepair.Api.dll">
<publishTime>06/04/2024 01:16:03</publishTime>
<publishTime>06/04/2024 16:23:04</publishTime>
</File>
<File Include="bin/DeviceRepair.Api.pdb">
<publishTime>06/04/2024 01:16:03</publishTime>
<publishTime>06/04/2024 16:23:04</publishTime>
</File>
<File Include="bin/DeviceRepair.DataAccess.dll">
<publishTime>06/04/2024 00:50:39</publishTime>
<publishTime>06/04/2024 16:23:04</publishTime>
</File>
<File Include="bin/DeviceRepair.DataAccess.dll.config">
<publishTime>05/30/2024 11:42:20</publishTime>
</File>
<File Include="bin/DeviceRepair.DataAccess.pdb">
<publishTime>06/04/2024 00:50:39</publishTime>
<publishTime>06/04/2024 16:23:04</publishTime>
</File>
<File Include="bin/DeviceRepair.Models.dll">
<publishTime>06/04/2024 00:50:39</publishTime>
<publishTime>06/04/2024 16:23:03</publishTime>
</File>
<File Include="bin/DeviceRepair.Models.dll.config">
<publishTime>05/30/2024 11:42:20</publishTime>
</File>
<File Include="bin/DeviceRepair.Models.pdb">
<publishTime>06/04/2024 00:50:39</publishTime>
<publishTime>06/04/2024 16:23:03</publishTime>
</File>
<File Include="bin/DeviceRepair.Utils.dll">
<publishTime>06/04/2024 00:50:39</publishTime>
<publishTime>06/04/2024 16:23:04</publishTime>
</File>
<File Include="bin/DeviceRepair.Utils.dll.config">
<publishTime>05/30/2024 11:42:20</publishTime>
</File>
<File Include="bin/DeviceRepair.Utils.pdb">
<publishTime>06/04/2024 00:50:39</publishTime>
<publishTime>06/04/2024 16:23:04</publishTime>
</File>
<File Include="bin/EntityFramework.dll">
<publishTime>05/28/2024 22:39:54</publishTime>
@ -414,7 +414,7 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
<publishTime>04/16/2024 09:58:38</publishTime>
</File>
<File Include="Web.config">
<publishTime>06/04/2024 01:16:03</publishTime>
<publishTime>06/04/2024 16:24:57</publishTime>
</File>
</ItemGroup>
</Project>

View File

@ -284,7 +284,7 @@ namespace DeviceRepair.DataAccess
/// </summary>
/// <param name="FilterValue"></param>
/// <returns></returns>
public APIResponseData GetDeviceTreeDatas(string FilterValue)
public APIResponseData GetDeviceTreeDatas(string FilterValue, string OEMORKH = "ALL")
{
APIResponseData apiResponseData = new APIResponseData { Code = -1, Message = "没有查询到数据!" };
try
@ -293,18 +293,31 @@ namespace DeviceRepair.DataAccess
int aid = 0;
int.TryParse(FilterValue, out aid);
List<DeviceRouteInfo> RootDatas = db.Queryable<DeviceRouteInfo>().Where(x => x.Status).OrderBy(x => x.AutoID).ToList();
var exp = Expressionable.Create<DeviceInformationInfoTree>()
.OrIF(aid > 0, t1 => t1.AutoID == aid)
.OrIF(!string.IsNullOrEmpty(FilterValue),
t1 => t1.EquipmentID.Equals(FilterValue, StringComparison.CurrentCultureIgnoreCase)
|| t1.EquipmentName.Contains(FilterValue)
|| t1.Remarks.Contains(FilterValue)
|| t1.Specification.Contains(FilterValue)).ToExpression();//拼接表达式
var Root = db.Queryable<DeviceRouteInfo>().Where(x => x.Status).OrderBy(x => x.AutoID).ToList().ToDictionary(x => x.AutoID, x => x);
if (OEMORKH != "All")
{
List<int> waitDel = new List<int>();
foreach (var item in RootDatas)
{
if (item.ParentID == 0 && item.Name != OEMORKH)
{
waitDel.Add(item.AutoID);
continue;
}
if (waitDel.Any(x => x == item.ParentID))
{
waitDel.Add(item.AutoID);
}
}
RootDatas.RemoveAll(x => waitDel.Contains(x.AutoID));
}
var Root = RootDatas.ToDictionary(x => x.AutoID, x => x);
List<DeviceInformationInfoTree> Menus = new List<DeviceInformationInfoTree>();
foreach (KeyValuePair<int, DeviceRouteInfo> item in Root)
{
DeviceRouteInfo dev = item.Value;
@ -317,6 +330,16 @@ namespace DeviceRepair.DataAccess
}
int[] RouteIds = Root.Keys.ToArray();
var exp = Expressionable.Create<DeviceInformationInfoTree>()
.OrIF(aid > 0, t1 => t1.AutoID == aid)
.OrIF(!string.IsNullOrEmpty(FilterValue),
t1 => t1.EquipmentID.Equals(FilterValue, StringComparison.CurrentCultureIgnoreCase)
|| t1.EquipmentName.Contains(FilterValue)
|| t1.Remarks.Contains(FilterValue)
|| t1.Specification.Contains(FilterValue))
.And(t1 => SqlFunc.ContainsArray(RouteIds, t1.Route)).ToExpression();//拼接表达式
var Datas = db.Queryable<DeviceInformationInfo, MaintenanceFormVersionInfo, DeviceRouteInfo>(
(t1, t2, t3) => new object[] {
JoinType.Left, t1.MaintenanceFormVersion == t2.AutoID,
@ -363,6 +386,8 @@ namespace DeviceRepair.DataAccess
return apiResponseData;
}
bool hasEmpty = Menus.Any(x => x.RouteAutoId == Guid.Empty);
foreach (DeviceInformationInfoTree item in Datas)
{
item.ParentRouteId = RouteIds.Contains(item.Route) ? Root[item.Route].GUID : Guid.Empty;
@ -380,9 +405,7 @@ namespace DeviceRepair.DataAccess
HasValues.AddRange(gids);
} while (gids.All(x => x == Guid.Empty));
Menus.RemoveAll(x => !HasValues.Contains(x.RouteAutoId));
Menus.RemoveAll(x => !HasValues.Contains(x.RouteAutoId) && x.ParentRouteId != Guid.Empty);
Menus.AddRange(Datas);
apiResponseData.Code = 1;

View File

@ -353,7 +353,7 @@ namespace DeviceRepair.DataAccess
item.EquipmentName = devDict[data.EquipmentID].EquipmentName;
item.VersionCode = formDict.ContainsKey(devDict[data.EquipmentID].MaintenanceFormVersion) ? formDict[devDict[data.EquipmentID].MaintenanceFormVersion].VersionCode : "";
item.MaintenanceYear = data.MaintenanceYear;
item.PMStartMonth = data.PMStartMonth.ToString("yyyy-MM-dd");
item.PMStartMonth = data.PMStartMonth?.ToString("yyyy-MM-dd") ?? "";
item.CreatUser = data.CreatUser;
item.CreatUserName = usDict[data.CreatUser].RealName;
item.CreatDate = first.CreatDate;
@ -369,7 +369,7 @@ namespace DeviceRepair.DataAccess
item.ChangeUser = last.ChangeUser;
item.ChangeUserName = usDict[last.ChangeUser].RealName;
item.Remarks = last.Remarks;
item.PMStartMonth = last.PMStartMonth.ToString("yyyy-MM-dd");
item.PMStartMonth = last.PMStartMonth?.ToString("yyyy-MM-dd") ?? "";
}
lst.Add(item);

View File

@ -63,11 +63,22 @@ namespace DeviceRepair.DataAccess
try
{
db.ChangeDatabase("addon");
int Count = db.Queryable<UserPostsInfo>().Count(x => x.UserCode == UserCode);
List<PostsInfo> Datas = db.Queryable<UserPostsInfo, PostsInfo>((t1, t2) => new object[] {
JoinType.Left,t1.Post == t2.Guid
}).Select((t1, t2) => t2).ToList();
int PostType = -1;
if (Datas.Any(x => x.PostName == "OEM-QE"))
PostType = 1;
if (Datas.Any(x => x.PostName == "OEM-PE"))
PostType = 1;
apiResponseData.Code = 1;
apiResponseData.Message = "";
apiResponseData.Data = Count;
apiResponseData.Data = PostType;
}
catch (SqlSugarException ex)
{

View File

@ -111,6 +111,7 @@ namespace DeviceRepair.Models.Device
/// </summary>
public virtual int Route { get; set; }
/// <summary>
/// 控件用ID
/// </summary>

View File

@ -122,6 +122,7 @@
<Compile Include="Role\RoleAuthModel.cs" />
<Compile Include="Role\RoleEditSubmitModel.cs" />
<Compile Include="Role\RoleModel.cs" />
<Compile Include="SFC\Addon\PostsInfo.cs" />
<Compile Include="SFC\Addon\ResourceAllocationsInfo.cs" />
<Compile Include="SFC\Addon\StaffsInfo.cs" />
<Compile Include="SFC\Addon\UserPostsInfo.cs" />

View File

@ -56,7 +56,7 @@ namespace DeviceRepair.Models
/// <summary>
/// 新PM起始月份
/// </summary>
public virtual DateTime PMStartMonth { get; set; }
public virtual DateTime? PMStartMonth { get; set; }
public virtual DateTime CreatDate { get; set; }

View File

@ -0,0 +1,75 @@
using SqlSugar;
using System;
namespace DeviceRepair.Models.SFC
{
/// <summary>
///
///</summary>
[SugarTable("Posts")]
public class PostsInfo
{
/// <summary>
///
///</summary>
[SugarColumn(ColumnName = "GUID", IsPrimaryKey = true)]
public Guid Guid { get; set; }
/// <summary>
/// 岗位名称
///</summary>
[SugarColumn(ColumnName = "PostName")]
public string PostName { get; set; }
/// <summary>
/// 岗位描述
///</summary>
[SugarColumn(ColumnName = "PostDesc")]
public string PostDesc { get; set; }
/// <summary>
/// 是否检验作业豁免(即不控制技能矩阵)
/// 默认值: ((0))
///</summary>
[SugarColumn(ColumnName = "InspectionExempt")]
public bool InspectionExempt { get; set; }
/// <summary>
/// 创建人
///</summary>
[SugarColumn(ColumnName = "CreateBy")]
public string CreateBy { get; set; }
/// <summary>
/// 创建时间
///</summary>
[SugarColumn(ColumnName = "CreateOn")]
public DateTime CreateOn { get; set; }
/// <summary>
/// 修改人
///</summary>
[SugarColumn(ColumnName = "ModifyBy")]
public string ModifyBy { get; set; }
/// <summary>
/// 修改时间
///</summary>
[SugarColumn(ColumnName = "ModifyOn")]
public DateTime? ModifyOn { get; set; }
/// <summary>
/// 状态
/// 默认值: ('A')
///</summary>
[SugarColumn(ColumnName = "Status")]
public string Status { get; set; }
/// <summary>
/// 备注
///</summary>
[SugarColumn(ColumnName = "Note")]
public string Note { get; set; }
}
}

View File

@ -0,0 +1,11 @@
namespace DeviceRepairAndOptimization.BaseControl
{
public static class GridControlExtend
{
public static void CustomDrawColumnHeader(this DevExpress.XtraGrid.Views.Grid.ColumnHeaderCustomDrawEventArgs e)
{
if (e.Column != null && (e.Column.Caption == "Selection" || e.Column.FieldName == "DX$CheckboxSelectorColumn"))
e.Info.Caption = "选择";
}
}
}

View File

@ -133,7 +133,7 @@ namespace DeviceRepairAndOptimization.Biz
/// </summary>
/// <param name="FilterValue"></param>
/// <returns></returns>
public APIResponseData GetDeviceTreeDatas(string FilterValue)
public APIResponseData GetDeviceTreeDatas(string FilterValue, string OEMORKH = "ALL")
{
APIResponseData apiResponseData = new APIResponseData { Code = -1, Message = "查询失败!" };
try
@ -143,7 +143,7 @@ namespace DeviceRepairAndOptimization.Biz
case "api":
apiResponseData = ApiHelper.Instance.SendMessage(new HttpItem
{
URL = $"{ServiceRouteConstValue.GetDeviceTreeDatas}?FilterString={FilterValue}",
URL = $"{ServiceRouteConstValue.GetDeviceTreeDatas}?FilterString={FilterValue}&OEMORKH={OEMORKH}",
Method = "Get",
ContentType = "application/json;charset=utf-8",
});

View File

@ -33,23 +33,17 @@ namespace DeviceRepairAndOptimization.Biz
switch (DeviceRepair.Utils.Config.Configurations.Properties.ConnType?.ToLower())
{
case "api":
HttpItem item = new HttpItem
apiResponseData = ApiHelper.Instance.SendMessage(new HttpItem
{
URL = $"{ServiceRouteConstValue.GetMaintenanceDatas}",
Method = "Post",
ContentType = "text/json",
ContentType = "application/json; charset=utf-8",
Postdata = JsonConvert.SerializeObject(FilterInfo),
ResultType = ResultType.Byte
};
apiResponseData = ApiHelper.Instance.SendMessage(item, true);
});
break;
default:
apiResponseData = MaintenanceAccess.Instance.GetDatas(FilterInfo);
break;
}
}

View File

@ -327,6 +327,7 @@
</Reference>
</ItemGroup>
<ItemGroup>
<Compile Include="BaseControl\GridControlExtend.cs" />
<Compile Include="BaseControl\PanelEx.cs">
<SubType>Component</SubType>
</Compile>

View File

@ -104,7 +104,7 @@
this.toolbarFormControl1.Manager = this.toolbarFormManager1;
this.toolbarFormControl1.Margin = new System.Windows.Forms.Padding(2);
this.toolbarFormControl1.Name = "toolbarFormControl1";
this.toolbarFormControl1.Size = new System.Drawing.Size(1035, 31);
this.toolbarFormControl1.Size = new System.Drawing.Size(1048, 31);
this.toolbarFormControl1.TabIndex = 4;
this.toolbarFormControl1.TabStop = false;
this.toolbarFormControl1.ToolbarForm = this;
@ -124,7 +124,7 @@
this.barDockControl1.Location = new System.Drawing.Point(0, 84);
this.barDockControl1.Manager = this.toolbarFormManager1;
this.barDockControl1.Margin = new System.Windows.Forms.Padding(2);
this.barDockControl1.Size = new System.Drawing.Size(1035, 0);
this.barDockControl1.Size = new System.Drawing.Size(1048, 0);
//
// barDockControl2
//
@ -133,7 +133,7 @@
this.barDockControl2.Location = new System.Drawing.Point(0, 639);
this.barDockControl2.Manager = this.toolbarFormManager1;
this.barDockControl2.Margin = new System.Windows.Forms.Padding(2);
this.barDockControl2.Size = new System.Drawing.Size(1035, 0);
this.barDockControl2.Size = new System.Drawing.Size(1048, 0);
//
// barDockControl3
//
@ -148,7 +148,7 @@
//
this.barDockControl4.CausesValidation = false;
this.barDockControl4.Dock = System.Windows.Forms.DockStyle.Right;
this.barDockControl4.Location = new System.Drawing.Point(1035, 84);
this.barDockControl4.Location = new System.Drawing.Point(1048, 84);
this.barDockControl4.Manager = this.toolbarFormManager1;
this.barDockControl4.Margin = new System.Windows.Forms.Padding(2);
this.barDockControl4.Size = new System.Drawing.Size(0, 555);
@ -168,7 +168,7 @@
this.layoutControl1.OptionsPrint.AppearanceGroupCaption.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
this.layoutControl1.OptionsPrint.AppearanceGroupCaption.TextOptions.VAlignment = DevExpress.Utils.VertAlignment.Center;
this.layoutControl1.Root = this.Root;
this.layoutControl1.Size = new System.Drawing.Size(1035, 555);
this.layoutControl1.Size = new System.Drawing.Size(1048, 555);
this.layoutControl1.TabIndex = 5;
this.layoutControl1.Text = "layoutControl1";
//
@ -181,7 +181,7 @@
this.gridControl1.Name = "gridControl1";
this.gridControl1.RepositoryItems.AddRange(new DevExpress.XtraEditors.Repository.RepositoryItem[] {
this.reposBtnStatus});
this.gridControl1.Size = new System.Drawing.Size(1011, 531);
this.gridControl1.Size = new System.Drawing.Size(1024, 531);
this.gridControl1.TabIndex = 4;
this.gridControl1.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
this.gridView1});
@ -212,35 +212,37 @@
//
this.colCode.Caption = "编码";
this.colCode.FieldName = "FieldCode";
this.colCode.MinWidth = 19;
this.colCode.MaxWidth = 25;
this.colCode.MinWidth = 25;
this.colCode.Name = "colCode";
this.colCode.Width = 73;
this.colCode.Width = 25;
//
// colFieldText
//
this.colFieldText.Caption = "名称";
this.colFieldText.FieldName = "FieldText";
this.colFieldText.MinWidth = 19;
this.colFieldText.MinWidth = 170;
this.colFieldText.Name = "colFieldText";
this.colFieldText.Visible = true;
this.colFieldText.VisibleIndex = 1;
this.colFieldText.Width = 73;
this.colFieldText.Width = 200;
//
// colFieldValue
//
this.colFieldValue.Caption = "值";
this.colFieldValue.FieldName = "FieldValue";
this.colFieldValue.MinWidth = 19;
this.colFieldValue.MinWidth = 170;
this.colFieldValue.Name = "colFieldValue";
this.colFieldValue.Visible = true;
this.colFieldValue.VisibleIndex = 2;
this.colFieldValue.Width = 73;
this.colFieldValue.Width = 200;
//
// colFieldType
//
this.colFieldType.Caption = "值类型";
this.colFieldType.ColumnEdit = this.reposBtnStatus;
this.colFieldType.FieldName = "FieldTypeCaption";
this.colFieldType.MinWidth = 60;
this.colFieldType.Name = "colFieldType";
this.colFieldType.Visible = true;
this.colFieldType.VisibleIndex = 3;
@ -258,6 +260,7 @@
this.colStatus.Caption = "状态";
this.colStatus.ColumnEdit = this.reposBtnStatus;
this.colStatus.FieldName = "StatusText";
this.colStatus.MinWidth = 50;
this.colStatus.Name = "colStatus";
this.colStatus.OptionsColumn.AllowGroup = DevExpress.Utils.DefaultBoolean.False;
this.colStatus.OptionsColumn.AllowIncrementalSearch = false;
@ -271,14 +274,17 @@
//
this.colDescription.Caption = "说明";
this.colDescription.FieldName = "Description";
this.colDescription.MinWidth = 170;
this.colDescription.Name = "colDescription";
this.colDescription.Visible = true;
this.colDescription.VisibleIndex = 5;
this.colDescription.Width = 200;
//
// colCreator
//
this.colCreator.Caption = "创建人";
this.colCreator.FieldName = "CreatorName";
this.colCreator.MinWidth = 50;
this.colCreator.Name = "colCreator";
this.colCreator.Visible = true;
this.colCreator.VisibleIndex = 6;
@ -287,17 +293,17 @@
//
this.colCreatOn.Caption = "创建时间";
this.colCreatOn.FieldName = "CreatOn";
this.colCreatOn.MinWidth = 19;
this.colCreatOn.MinWidth = 80;
this.colCreatOn.Name = "colCreatOn";
this.colCreatOn.Visible = true;
this.colCreatOn.VisibleIndex = 7;
this.colCreatOn.Width = 73;
this.colCreatOn.Width = 100;
//
// colModifyBy
//
this.colModifyBy.Caption = "修改人";
this.colModifyBy.FieldName = "ModifierName";
this.colModifyBy.MinWidth = 19;
this.colModifyBy.MinWidth = 50;
this.colModifyBy.Name = "colModifyBy";
this.colModifyBy.Visible = true;
this.colModifyBy.VisibleIndex = 8;
@ -307,11 +313,11 @@
//
this.colModifyOn.Caption = "修改时间";
this.colModifyOn.FieldName = "ModifyOn";
this.colModifyOn.MinWidth = 19;
this.colModifyOn.MinWidth = 80;
this.colModifyOn.Name = "colModifyOn";
this.colModifyOn.Visible = true;
this.colModifyOn.VisibleIndex = 9;
this.colModifyOn.Width = 73;
this.colModifyOn.Width = 100;
//
// Root
//
@ -329,7 +335,7 @@
rowDefinition1.SizeType = System.Windows.Forms.SizeType.Percent;
this.Root.OptionsTableLayoutGroup.RowDefinitions.AddRange(new DevExpress.XtraLayout.RowDefinition[] {
rowDefinition1});
this.Root.Size = new System.Drawing.Size(1035, 555);
this.Root.Size = new System.Drawing.Size(1048, 555);
this.Root.TextVisible = false;
//
// layoutControlItem1
@ -337,7 +343,7 @@
this.layoutControlItem1.Control = this.gridControl1;
this.layoutControlItem1.Location = new System.Drawing.Point(0, 0);
this.layoutControlItem1.Name = "layoutControlItem1";
this.layoutControlItem1.Size = new System.Drawing.Size(1015, 535);
this.layoutControlItem1.Size = new System.Drawing.Size(1028, 535);
this.layoutControlItem1.TextSize = new System.Drawing.Size(0, 0);
this.layoutControlItem1.TextVisible = false;
//
@ -470,7 +476,7 @@
this.barDockControlTop.Location = new System.Drawing.Point(0, 31);
this.barDockControlTop.Manager = this.barManager1;
this.barDockControlTop.Margin = new System.Windows.Forms.Padding(2);
this.barDockControlTop.Size = new System.Drawing.Size(1035, 53);
this.barDockControlTop.Size = new System.Drawing.Size(1048, 53);
//
// barDockControlBottom
//
@ -479,7 +485,7 @@
this.barDockControlBottom.Location = new System.Drawing.Point(0, 639);
this.barDockControlBottom.Manager = this.barManager1;
this.barDockControlBottom.Margin = new System.Windows.Forms.Padding(2);
this.barDockControlBottom.Size = new System.Drawing.Size(1035, 0);
this.barDockControlBottom.Size = new System.Drawing.Size(1048, 0);
//
// barDockControlLeft
//
@ -494,7 +500,7 @@
//
this.barDockControlRight.CausesValidation = false;
this.barDockControlRight.Dock = System.Windows.Forms.DockStyle.Right;
this.barDockControlRight.Location = new System.Drawing.Point(1035, 84);
this.barDockControlRight.Location = new System.Drawing.Point(1048, 84);
this.barDockControlRight.Manager = this.barManager1;
this.barDockControlRight.Margin = new System.Windows.Forms.Padding(2);
this.barDockControlRight.Size = new System.Drawing.Size(0, 555);
@ -564,7 +570,7 @@
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1035, 639);
this.ClientSize = new System.Drawing.Size(1048, 639);
this.Controls.Add(this.layoutControl1);
this.Controls.Add(this.barDockControl3);
this.Controls.Add(this.barDockControl4);

View File

@ -150,8 +150,7 @@ namespace DeviceRepairAndOptimization.Pages.CustomField
private void GridView1_CustomDrawColumnHeader(object sender, DevExpress.XtraGrid.Views.Grid.ColumnHeaderCustomDrawEventArgs e)
{
if (e.Column != null && e.Column.Caption == "Selection")
e.Info.Caption = "选择";
(new Action<DevExpress.XtraGrid.Views.Grid.ColumnHeaderCustomDrawEventArgs>(BaseControl.GridControlExtend.CustomDrawColumnHeader)).Invoke(e);
}
private void GridView1_RowCellClick(object sender, DevExpress.XtraGrid.Views.Grid.RowCellClickEventArgs e)
@ -232,9 +231,19 @@ namespace DeviceRepairAndOptimization.Pages.CustomField
item.ModifierName = UserMapping[item.ModifyBy.Value];
}
gridControl1.DataSource = gridControl1.DataSource = CurrentDatas.Where(x => x.FieldText.Contains(FilterString)
var DataSource = CurrentDatas.Where(x => x.FieldText.Contains(FilterString)
|| x.FieldValue.Contains(FilterString)).ToList();
gridControl1.DataSource = DataSource;
// 设置行号列宽度
SizeF size = this.CreateGraphics().MeasureString(DataSource.Count.ToString(), this.Font);
gridView1.IndicatorWidth = Convert.ToInt32(size.Width) + 20;
gridView1.BestFitColumns();
gridView1.Columns[0].BestFit();
gridView1.Columns[1].BestFit();
gridView1.Columns[2].BestFit();
splashScreenManager1.TryCloseWait();
}
catch (Exception ex)
@ -362,7 +371,6 @@ namespace DeviceRepairAndOptimization.Pages.CustomField
b.Buttons[DialogResult.OK].Click += (c, d) => { DiaResult = DialogResult.OK; };
};
getRemark:
DiaResult = DialogResult.None;
// 显示对话框
var Description = XtraInputBox.Show(args);
@ -372,18 +380,10 @@ namespace DeviceRepairAndOptimization.Pages.CustomField
return;
if (string.IsNullOrWhiteSpace(DescriptionValue))
{
if (XtraMessageBoxHelper.AskYesNo("原因不能为空,是否继续操作?") == DialogResult.Yes)
goto getRemark;
return;
}
throw new Exception("原因不能为空,是否继续操作?");
if (DescriptionValue.Length >= 3800)
{
if (XtraMessageBoxHelper.AskYesNo("原因描述超出长度最大长度为200") == DialogResult.Yes)
goto getRemark;
return;
}
throw new Exception("原因描述超出长度最大长度为200");
bool BeStatus = !CurrentFieldInfo.Status;

View File

@ -29,6 +29,7 @@ namespace DeviceRepairAndOptimization.Pages.DriveMaintenance
if (CurrentRoute != 0)
{
//treeList1.SetNodeCheckState(treeList1.FindNodeByKeyID(CurrentRoute), CheckState.Checked);
foreach (TreeListNode node in treeList1.Nodes)
{
SelectNodeByID(node, CurrentRoute);
@ -41,7 +42,9 @@ namespace DeviceRepairAndOptimization.Pages.DriveMaintenance
// 假设ID存储在节点的第一个列索引0
if (node.GetValue("AutoID")?.ToString() == targetID.ToString())
{
node.Checked = true;
treeList1.SetNodeCheckState(node, CheckState.Checked);
treeList1.SetFocusedNode(node);
//node.Checked = true;
return;
}
@ -91,7 +94,7 @@ namespace DeviceRepairAndOptimization.Pages.DriveMaintenance
if ((treeListNodes?.Count ?? 0) > 0)
{
TreeListNode node = treeListNodes.FirstOrDefault();
CurrentSelectModel = routes.FirstOrDefault(x => x.AutoID == node.Id);
CurrentSelectModel = routes.FirstOrDefault(x => x.AutoID.ToString() == node.GetValue("AutoID").ToString());
if (CurrentSelectModel == null)
{
XtraMessageBoxHelper.Warn("选中数据不能为空!");

View File

@ -80,7 +80,7 @@ namespace DeviceRepairAndOptimization.Pages.FormVersion
}
}
}
/// <summary>
/// 数据绑定
/// </summary>
@ -111,8 +111,7 @@ namespace DeviceRepairAndOptimization.Pages.FormVersion
private void gridView1_CustomDrawColumnHeader(object sender, DevExpress.XtraGrid.Views.Grid.ColumnHeaderCustomDrawEventArgs e)
{
if (e.Column != null && e.Column.Caption == "Selection")
e.Info.Caption = "选择";
(new Action<DevExpress.XtraGrid.Views.Grid.ColumnHeaderCustomDrawEventArgs>(BaseControl.GridControlExtend.CustomDrawColumnHeader)).Invoke(e);
}
/// <summary>

View File

@ -266,14 +266,17 @@ namespace DeviceRepairAndOptimization.Pages.Maintain
//
this.gcFieldName.Caption = "配件名称";
this.gcFieldName.FieldName = "FieldName";
this.gcFieldName.MinWidth = 200;
this.gcFieldName.Name = "gcFieldName";
this.gcFieldName.Visible = true;
this.gcFieldName.VisibleIndex = 1;
this.gcFieldName.Width = 200;
//
// gcAccessoriesCount
//
this.gcAccessoriesCount.Caption = "配件数量";
this.gcAccessoriesCount.FieldName = "AccessoriesCount";
this.gcAccessoriesCount.MinWidth = 50;
this.gcAccessoriesCount.Name = "gcAccessoriesCount";
this.gcAccessoriesCount.Visible = true;
this.gcAccessoriesCount.VisibleIndex = 2;
@ -282,9 +285,11 @@ namespace DeviceRepairAndOptimization.Pages.Maintain
//
this.gcDescription.Caption = "说明";
this.gcDescription.FieldName = "Description";
this.gcDescription.MinWidth = 200;
this.gcDescription.Name = "gcDescription";
this.gcDescription.Visible = true;
this.gcDescription.VisibleIndex = 3;
this.gcDescription.Width = 200;
//
// Root
//

View File

@ -41,8 +41,7 @@ namespace DeviceRepairAndOptimization.Pages.Maintain
/// 修改字段标题
gridView1.CustomDrawColumnHeader += (s, e) =>
{
if (e.Column != null && e.Column.Caption == "Selection")
e.Info.Caption = "选择";
(new Action<DevExpress.XtraGrid.Views.Grid.ColumnHeaderCustomDrawEventArgs>(BaseControl.GridControlExtend.CustomDrawColumnHeader)).Invoke(e);
};
/// 单元格点击

View File

@ -31,15 +31,15 @@ namespace DeviceRepairAndOptimization.Pages.Maintain
{
this.components = new System.ComponentModel.Container();
DevExpress.Utils.Layout.StackPanel stackPanel1;
DevExpress.XtraEditors.Controls.EditorButtonImageOptions editorButtonImageOptions2 = new DevExpress.XtraEditors.Controls.EditorButtonImageOptions();
DevExpress.XtraEditors.Controls.EditorButtonImageOptions editorButtonImageOptions1 = new DevExpress.XtraEditors.Controls.EditorButtonImageOptions();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(dlgAccessoriesLst));
DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject5 = new DevExpress.Utils.SerializableAppearanceObject();
DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject6 = new DevExpress.Utils.SerializableAppearanceObject();
DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject7 = new DevExpress.Utils.SerializableAppearanceObject();
DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject8 = new DevExpress.Utils.SerializableAppearanceObject();
DevExpress.XtraLayout.ColumnDefinition columnDefinition2 = new DevExpress.XtraLayout.ColumnDefinition();
DevExpress.XtraLayout.RowDefinition rowDefinition3 = new DevExpress.XtraLayout.RowDefinition();
DevExpress.XtraLayout.RowDefinition rowDefinition4 = new DevExpress.XtraLayout.RowDefinition();
DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject1 = new DevExpress.Utils.SerializableAppearanceObject();
DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject2 = new DevExpress.Utils.SerializableAppearanceObject();
DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject3 = new DevExpress.Utils.SerializableAppearanceObject();
DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject4 = new DevExpress.Utils.SerializableAppearanceObject();
DevExpress.XtraLayout.ColumnDefinition columnDefinition1 = new DevExpress.XtraLayout.ColumnDefinition();
DevExpress.XtraLayout.RowDefinition rowDefinition1 = new DevExpress.XtraLayout.RowDefinition();
DevExpress.XtraLayout.RowDefinition rowDefinition2 = new DevExpress.XtraLayout.RowDefinition();
this.labelControl1 = new DevExpress.XtraEditors.LabelControl();
this.buttonEdit1 = new DevExpress.XtraEditors.ButtonEdit();
this.toolbarFormManager1 = new DevExpress.XtraBars.ToolbarForm.ToolbarFormManager(this.components);
@ -48,6 +48,7 @@ namespace DeviceRepairAndOptimization.Pages.Maintain
this.barDockControlLeft = new DevExpress.XtraBars.BarDockControl();
this.barDockControlRight = new DevExpress.XtraBars.BarDockControl();
this.barButtonItem1 = new DevExpress.XtraBars.BarButtonItem();
this.barButtonItem2 = new DevExpress.XtraBars.BarButtonItem();
this.simpleButton1 = new DevExpress.XtraEditors.SimpleButton();
this.toolbarFormControl1 = new DevExpress.XtraBars.ToolbarForm.ToolbarFormControl();
this.layoutControl1 = new DevExpress.XtraLayout.LayoutControl();
@ -62,7 +63,6 @@ namespace DeviceRepairAndOptimization.Pages.Maintain
this.layoutControlItem1 = new DevExpress.XtraLayout.LayoutControlItem();
this.layoutControlItem2 = new DevExpress.XtraLayout.LayoutControlItem();
this.splashScreenManager1 = new DevExpress.XtraSplashScreen.SplashScreenManager(this, typeof(global::DeviceRepairAndOptimization.frmWaiting), true, true);
this.barButtonItem2 = new DevExpress.XtraBars.BarButtonItem();
stackPanel1 = new DevExpress.Utils.Layout.StackPanel();
((System.ComponentModel.ISupportInitialize)(stackPanel1)).BeginInit();
stackPanel1.SuspendLayout();
@ -167,6 +167,16 @@ namespace DeviceRepairAndOptimization.Pages.Maintain
this.barButtonItem1.PaintStyle = DevExpress.XtraBars.BarItemPaintStyle.CaptionGlyph;
this.barButtonItem1.ItemClick += new DevExpress.XtraBars.ItemClickEventHandler(this.barButtonItem1_ItemClick);
//
// barButtonItem2
//
this.barButtonItem2.Caption = "新增配件";
this.barButtonItem2.Id = 1;
this.barButtonItem2.ImageOptions.Image = ((System.Drawing.Image)(resources.GetObject("barButtonItem2.ImageOptions.Image")));
this.barButtonItem2.ImageOptions.LargeImage = ((System.Drawing.Image)(resources.GetObject("barButtonItem2.ImageOptions.LargeImage")));
this.barButtonItem2.Name = "barButtonItem2";
this.barButtonItem2.PaintStyle = DevExpress.XtraBars.BarItemPaintStyle.CaptionGlyph;
this.barButtonItem2.ItemClick += new DevExpress.XtraBars.ItemClickEventHandler(this.barButtonItem2_ItemClick);
//
// simpleButton1
//
this.simpleButton1.Location = new System.Drawing.Point(305, 10);
@ -244,17 +254,18 @@ namespace DeviceRepairAndOptimization.Pages.Maintain
//
this.colFieldText.Caption = "配件名称";
this.colFieldText.FieldName = "FieldText";
this.colFieldText.MinWidth = 19;
this.colFieldText.MinWidth = 200;
this.colFieldText.Name = "colFieldText";
this.colFieldText.Visible = true;
this.colFieldText.VisibleIndex = 1;
this.colFieldText.Width = 73;
this.colFieldText.Width = 200;
//
// colStatus
//
this.colStatus.Caption = "状态";
this.colStatus.ColumnEdit = this.reposBtnStatus;
this.colStatus.FieldName = "StatusText";
this.colStatus.MinWidth = 50;
this.colStatus.Name = "colStatus";
this.colStatus.OptionsColumn.AllowGroup = DevExpress.Utils.DefaultBoolean.False;
this.colStatus.OptionsColumn.AllowIncrementalSearch = false;
@ -267,18 +278,20 @@ namespace DeviceRepairAndOptimization.Pages.Maintain
// reposBtnStatus
//
this.reposBtnStatus.AutoHeight = false;
editorButtonImageOptions2.Image = ((System.Drawing.Image)(resources.GetObject("editorButtonImageOptions2.Image")));
editorButtonImageOptions1.Image = ((System.Drawing.Image)(resources.GetObject("editorButtonImageOptions1.Image")));
this.reposBtnStatus.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Glyph, "", -1, true, true, false, editorButtonImageOptions2, new DevExpress.Utils.KeyShortcut(System.Windows.Forms.Keys.None), serializableAppearanceObject5, serializableAppearanceObject6, serializableAppearanceObject7, serializableAppearanceObject8, "", null, null, DevExpress.Utils.ToolTipAnchor.Default)});
new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Glyph, "", -1, true, true, false, editorButtonImageOptions1, new DevExpress.Utils.KeyShortcut(System.Windows.Forms.Keys.None), serializableAppearanceObject1, serializableAppearanceObject2, serializableAppearanceObject3, serializableAppearanceObject4, "", null, null, DevExpress.Utils.ToolTipAnchor.Default)});
this.reposBtnStatus.Name = "reposBtnStatus";
//
// colDescription
//
this.colDescription.Caption = "说明";
this.colDescription.FieldName = "Description";
this.colDescription.MinWidth = 250;
this.colDescription.Name = "colDescription";
this.colDescription.Visible = true;
this.colDescription.VisibleIndex = 3;
this.colDescription.Width = 250;
//
// Root
//
@ -289,17 +302,17 @@ namespace DeviceRepairAndOptimization.Pages.Maintain
this.layoutControlItem2});
this.Root.LayoutMode = DevExpress.XtraLayout.Utils.LayoutMode.Table;
this.Root.Name = "Root";
columnDefinition2.SizeType = System.Windows.Forms.SizeType.Percent;
columnDefinition2.Width = 100D;
columnDefinition1.SizeType = System.Windows.Forms.SizeType.Percent;
columnDefinition1.Width = 100D;
this.Root.OptionsTableLayoutGroup.ColumnDefinitions.AddRange(new DevExpress.XtraLayout.ColumnDefinition[] {
columnDefinition2});
rowDefinition3.Height = 48D;
rowDefinition3.SizeType = System.Windows.Forms.SizeType.Absolute;
rowDefinition4.Height = 100D;
rowDefinition4.SizeType = System.Windows.Forms.SizeType.Percent;
columnDefinition1});
rowDefinition1.Height = 48D;
rowDefinition1.SizeType = System.Windows.Forms.SizeType.Absolute;
rowDefinition2.Height = 100D;
rowDefinition2.SizeType = System.Windows.Forms.SizeType.Percent;
this.Root.OptionsTableLayoutGroup.RowDefinitions.AddRange(new DevExpress.XtraLayout.RowDefinition[] {
rowDefinition3,
rowDefinition4});
rowDefinition1,
rowDefinition2});
this.Root.Size = new System.Drawing.Size(730, 320);
this.Root.TextVisible = false;
//
@ -326,16 +339,6 @@ namespace DeviceRepairAndOptimization.Pages.Maintain
//
this.splashScreenManager1.ClosingDelay = 500;
//
// barButtonItem2
//
this.barButtonItem2.Caption = "新增配件";
this.barButtonItem2.Id = 1;
this.barButtonItem2.ImageOptions.Image = ((System.Drawing.Image)(resources.GetObject("barButtonItem2.ImageOptions.Image")));
this.barButtonItem2.ImageOptions.LargeImage = ((System.Drawing.Image)(resources.GetObject("barButtonItem2.ImageOptions.LargeImage")));
this.barButtonItem2.Name = "barButtonItem2";
this.barButtonItem2.PaintStyle = DevExpress.XtraBars.BarItemPaintStyle.CaptionGlyph;
this.barButtonItem2.ItemClick += new DevExpress.XtraBars.ItemClickEventHandler(this.barButtonItem2_ItemClick);
//
// dlgAccessoriesLst
//
this.AcceptButton = this.simpleButton1;

View File

@ -65,8 +65,7 @@ namespace DeviceRepairAndOptimization.Pages.Maintain
/// 修改字段标题
gridView1.CustomDrawColumnHeader += (s, e) =>
{
if (e.Column != null && e.Column.Caption == "Selection")
e.Info.Caption = "选择";
(new Action<DevExpress.XtraGrid.Views.Grid.ColumnHeaderCustomDrawEventArgs>(BaseControl.GridControlExtend.CustomDrawColumnHeader)).Invoke(e);
};
/// 单元格点击

View File

@ -124,7 +124,7 @@
<value>205, 17</value>
</metadata>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="editorButtonImageOptions2.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<data name="editorButtonImageOptions1.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAD90RVh0VGl0
bGUAQ29uZGl0aW9uYWxGb3JtYXR0aW5zSWNvblNldFNpZ25zMztDb25kaXRpb25hbEZvcm1hdHRpbmc7
@ -211,64 +211,63 @@
</data>
<data name="barButtonItem2.ImageOptions.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAjdEVYdFRpdGxlAEFkZDtGaWxlO0FkZEZpbGU7QmFycztSaWJib247FdyqCgAAAyRJREFUOE9N
k2lIVFEYhq9rahZFBf3xRzi22kYLUxRaoVmhNSoRZaaR4jJWtiiK5VouTU6OjrmCWkGlklIZ2SLZ5mha
FIGh+aM0MS1zVr0z49t3ziR04Lkf99z7Pvc7594r0LArqOp8fqWqE4yCKg3yKzUoIPIqOokO5JZrkFv2
FpfLOpBT+rKNMvYABAYb9vkVGkzTGYcONqY51hmsNrKKX7GUw/8Ch0vlb3nINGmBkTCYbOiNZo7OaIGW
EC1WpCvbWcrxf4EjszKB3mQL2EJmLjOSyDRFwkkzRLMFuWregVNWvb/AYMMpXfmCt6szitAZRBKJGP49
hObOa1A+OAK6EYVUmzWFaH6mYQIXi9UgZNzx4wLnVEUbX+fEv6d//qbBpcb9eNRTjO9jH2G26Hht6VYh
83Yg4q5ukVHOPu3mLi6YlZz3lAv+6M34MTaInLtB6BvugGj9DXVTKs6VHkTJvXPQTn1B79BzpNTs0EZm
bvSirB0TuCZmP4aFdlhL7d9tV+BhVwkM4jeMGF4jsTgEvQNjOK0Kwdc/9RiYaELjmxzIi7ZWUNaRCdzk
6S1cMKGbxIWa/egdaYbijhwnlcFIINi+yKnGF8qQfSscT/qTEKeUDlN2FhPMjk27T+skgX4SCapteDeS
iTjFAXzq+4lxko7rpnhlIyY/CDc+++BE/iaRsi5M4B6d0gSz2YpxrYla3oMnfXIkVfsjKi8QUbmBGJ0w
IupyIE4QZyv9oOrYgLCMdawDLph7PLmJ3rEVo+NGlDZmoPhhKK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xP+pMQp5QOU3YWE8yOTbtP6ySBfhIJqm14N5KJOMUBfOr7iXGSjuum
eGUjJj8INz774ET+JpGyLkzgHp3SBLPZinGtiVregyd9ciRV+yMqLxBRuYEYnTAi6nIgThBnK/2g6tiA
sIx1rAMumHs8uYnesRWj40aUNmag+GEoqj5uhrpnDY5n7+VPjszci9IP3lC/90bq7fU4cGZlLWWdueDY
2UZMkUCrFzEw2I+ILCmuv/SFqns5EtS+OHoxAPISHxR1L0VO6zKEJK0ySGUeaynrwARuh2Lr2sNO1+Pw
qXooKtpRVFuH0PPrkFi9GlmtEhR2eVL1RHyZF2SJ3lZpsEcY5Zz3yZeyvGDPJMQ8Yj6xgFi8TLrQZ2fE
koaAGMlYQJwX/GMkv3zDlzSs2L5oC113Jex2x0gE/kPMsDtWIvBJ2wfC2mOb5E7MJeb8O2fzdn7RnoJf
tKfwF7guZQwBlVFoAAAAAElFTkSuQmCC
</value>
</data>
<data name="barButtonItem2.ImageOptions.LargeImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAjdEVYdFRpdGxlAEFkZDtGaWxlO0FkZEZpbGU7QmFycztSaWJib247FdyqCgAACC5JREFUWEeF
l2lQVFcahpsks2SWzExmK+dHyhGcRFPW6FhOEuNoEiMajRONVVrGiSsgEo3LAAEUBQQUEFlUNFE0iaIp
cKJxiRu4I0osS51JXHAFWbrpDbrppruBd97v9G3SbWP8qp469yKc5z3n3nPOVQegG78K0XiCPPkInuoB
+bn83Q9WgDPghlX42bmKgs/PgS0KhG2VKNzmbfOJtz2L/K1nkVd8FmvZri0+o0jJ/TqNXUgQCR6SVlCu
S8s/qksl/hXgDLhhifRx5XJ5YHe4YG1xQG9sxb06M8NWoqKyBgmr9qxkNz8iKkSTuV2XlHNQuu4udvG9
M+CGlc+OpDydXf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Pwlfh0X11o6LD5FJGIR3K83yayLOVD4/fkd8TGbH8TP6t+/+L
w2f21o2Y0ZuXrJ5Ej+IR5Xsk0rlMrYj8kXBKrOFXOt3/AbGCGaaY1ZGOAAAAAElFTkSuQmCC
</value>
</data>
</root>

View File

@ -253,8 +253,7 @@ namespace DeviceRepairAndOptimization.Pages.Maintain
/// <param name="e"></param>
private void gridView1_CustomDrawColumnHeader(object sender, DevExpress.XtraGrid.Views.Grid.ColumnHeaderCustomDrawEventArgs e)
{
if (e.Column != null && e.Column.Caption == "Selection")
e.Info.Caption = "选择";
(new Action<DevExpress.XtraGrid.Views.Grid.ColumnHeaderCustomDrawEventArgs>(BaseControl.GridControlExtend.CustomDrawColumnHeader)).Invoke(e);
}
/// <summary>

View File

@ -79,7 +79,7 @@
tableLayoutPanel1.RowCount = 2;
tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 48F));
tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
tableLayoutPanel1.Size = new System.Drawing.Size(1598, 916);
tableLayoutPanel1.Size = new System.Drawing.Size(1854, 916);
tableLayoutPanel1.TabIndex = 0;
tableLayoutPanel1.Paint += new System.Windows.Forms.PaintEventHandler(this.tableLayoutPanel1_Paint);
//
@ -123,7 +123,7 @@
this.tvDevices.OptionsSelection.KeepSelectedOnClick = false;
this.tvDevices.OptionsView.AutoWidth = false;
this.tvDevices.OptionsView.BestFitNodes = DevExpress.XtraTreeList.TreeListBestFitNodes.All;
this.tvDevices.Size = new System.Drawing.Size(1590, 860);
this.tvDevices.Size = new System.Drawing.Size(1846, 860);
this.tvDevices.TabIndex = 13;
this.tvDevices.TreeLevelWidth = 23;
//
@ -290,12 +290,12 @@
stackPanel1.LayoutDirection = DevExpress.Utils.Layout.StackPanelLayoutDirection.RightToLeft;
stackPanel1.Location = new System.Drawing.Point(3, 3);
stackPanel1.Name = "stackPanel1";
stackPanel1.Size = new System.Drawing.Size(1592, 42);
stackPanel1.Size = new System.Drawing.Size(1848, 42);
stackPanel1.TabIndex = 0;
//
// EditSearch
//
this.EditSearch.Location = new System.Drawing.Point(1287, 5);
this.EditSearch.Location = new System.Drawing.Point(1543, 5);
this.EditSearch.Margin = new System.Windows.Forms.Padding(5, 7, 5, 7);
this.EditSearch.Name = "EditSearch";
this.EditSearch.Properties.Appearance.Font = new System.Drawing.Font("Verdana", 10F);
@ -318,7 +318,7 @@
//
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
this.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
this.ClientSize = new System.Drawing.Size(1598, 916);
this.ClientSize = new System.Drawing.Size(1854, 916);
this.Controls.Add(tableLayoutPanel1);
this.Name = "page_DriveTypeTree";
this.Text = "page_DriveTypeTree";

View File

@ -54,7 +54,7 @@ namespace DeviceRepairAndOptimization.Pages.Maintenance
try
{
splashScreenManager1.ShowWaitForm();
APIResponseData apiResponseData = DeviceManager.Instance.GetDeviceTreeDatas(FilterString);
APIResponseData apiResponseData = DeviceManager.Instance.GetDeviceTreeDatas(FilterString, "KH");
if (apiResponseData.Code != 1)
throw new Exception(apiResponseData.Message);

View File

@ -74,7 +74,7 @@
this.tableLayoutPanel1.RowCount = 2;
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 48F));
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
this.tableLayoutPanel1.Size = new System.Drawing.Size(1598, 999);
this.tableLayoutPanel1.Size = new System.Drawing.Size(1854, 999);
this.tableLayoutPanel1.TabIndex = 0;
//
// gridControl1
@ -83,7 +83,7 @@
this.gridControl1.Location = new System.Drawing.Point(3, 51);
this.gridControl1.MainView = this.gridView1;
this.gridControl1.Name = "gridControl1";
this.gridControl1.Size = new System.Drawing.Size(1592, 945);
this.gridControl1.Size = new System.Drawing.Size(1848, 945);
this.gridControl1.TabIndex = 1;
this.gridControl1.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
this.gridView1});
@ -223,7 +223,7 @@
this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
this.tableLayoutPanel2.Size = new System.Drawing.Size(1598, 48);
this.tableLayoutPanel2.Size = new System.Drawing.Size(1854, 48);
this.tableLayoutPanel2.TabIndex = 2;
//
// stackPanel1
@ -234,7 +234,7 @@
this.stackPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
this.stackPanel1.LabelVertAlignment = DevExpress.Utils.Layout.LabelVertAlignment.Center;
this.stackPanel1.LayoutDirection = DevExpress.Utils.Layout.StackPanelLayoutDirection.RightToLeft;
this.stackPanel1.Location = new System.Drawing.Point(1148, 0);
this.stackPanel1.Location = new System.Drawing.Point(1404, 0);
this.stackPanel1.Margin = new System.Windows.Forms.Padding(0);
this.stackPanel1.Name = "stackPanel1";
this.stackPanel1.Size = new System.Drawing.Size(450, 48);
@ -275,7 +275,7 @@
this.stackPanel2.Location = new System.Drawing.Point(0, 0);
this.stackPanel2.Margin = new System.Windows.Forms.Padding(0);
this.stackPanel2.Name = "stackPanel2";
this.stackPanel2.Size = new System.Drawing.Size(1148, 48);
this.stackPanel2.Size = new System.Drawing.Size(1404, 48);
this.stackPanel2.TabIndex = 1;
//
// btn_DriveMaintenanceEdit
@ -343,7 +343,7 @@
// page_MaintenanceView
//
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
this.ClientSize = new System.Drawing.Size(1598, 999);
this.ClientSize = new System.Drawing.Size(1854, 999);
this.Controls.Add(this.tableLayoutPanel1);
this.Name = "page_MaintenanceView";
this.Text = "page_MaintenanceView";

View File

@ -203,11 +203,21 @@ namespace DeviceRepairAndOptimization.Pages.Plan
ISheet sheet = workbook.GetSheetAt(0); // 获取第一个工作表
if (sheet == null)
{
throw new Exception("不支持的文件格式");
}
logs.AppendLine("获取第一个工作表");
logs.AppendLine("读取表头(第一行)并将其添加到 DataTable 中");
// 读取表头(第一行)并将其添加到 DataTable 中
if (sheet.LastRowNum == 0)
{
throw new Exception("不支持的文件格式");
}
IRow headerRow = sheet.GetRow(0);
for (int i = 0; i < headerRow.LastCellNum; i++)
{
@ -255,7 +265,6 @@ namespace DeviceRepairAndOptimization.Pages.Plan
}
}
#region
DeviceInformationInfo di = driveLst.Where(x => x.EquipmentID == (newRow[0] + "")).FirstOrDefault();
@ -338,7 +347,7 @@ namespace DeviceRepairAndOptimization.Pages.Plan
MaintenanceMonth = (int)em,
MaintenanceType = item[kvp.Value] + "",
Remarks = item[keyValuePairs["Comment"]] + "",
PMStartMonth = DateTime.Now,
PMStartMonth = null,
CreatDate = DateTime.Today,
CreatUser = GlobalInfo.CurrentUser.AutoID,
ChangeDate = DateTime.Today,

View File

@ -65,8 +65,7 @@ namespace DeviceRepairAndOptimization.Pages.Users
private void GridView1_CustomDrawColumnHeader(object sender, DevExpress.XtraGrid.Views.Grid.ColumnHeaderCustomDrawEventArgs e)
{
if (e.Column != null && e.Column.Caption == "Selection")
e.Info.Caption = "选择";
(new Action<DevExpress.XtraGrid.Views.Grid.ColumnHeaderCustomDrawEventArgs>(BaseControl.GridControlExtend.CustomDrawColumnHeader)).Invoke(e);
}
private void SelectCurrentRoleUsers()

View File

@ -23,7 +23,7 @@ namespace DeviceRepairAndOptimization.Pages.Users
public frmUserAdd(UserInfoModel entity = null, bool AllocationRole = false, string title = "用户新增")
{
InitializeComponent();
this.Text = title;
// 关闭右键Customize Layout菜单
@ -477,10 +477,7 @@ namespace DeviceRepairAndOptimization.Pages.Users
private void gridView1_CustomDrawColumnHeader(object sender, DevExpress.XtraGrid.Views.Grid.ColumnHeaderCustomDrawEventArgs e)
{
if (e.Column != null && e.Column.FieldName == "DX$CheckboxSelectorColumn")
{
e.Info.Caption = "选择";
}
(new Action<DevExpress.XtraGrid.Views.Grid.ColumnHeaderCustomDrawEventArgs>(BaseControl.GridControlExtend.CustomDrawColumnHeader)).Invoke(e);
}
}
}

View File

@ -57,23 +57,25 @@ namespace DeviceRepairAndOptimization.Pages
//
// layoutControl1
//
layoutControl1.AllowCustomization = false;
layoutControl1.Controls.Add(this.dataLayoutControl1);
layoutControl1.Controls.Add(stackPanel1);
layoutControl1.Dock = System.Windows.Forms.DockStyle.Fill;
layoutControl1.Location = new System.Drawing.Point(0, 0);
layoutControl1.Name = "layoutControl1";
layoutControl1.Root = Root;
layoutControl1.Size = new System.Drawing.Size(1598, 999);
layoutControl1.Size = new System.Drawing.Size(1854, 999);
layoutControl1.TabIndex = 0;
layoutControl1.Text = "layoutControl1";
//
// dataLayoutControl1
//
this.dataLayoutControl1.AllowCustomization = false;
this.dataLayoutControl1.Location = new System.Drawing.Point(12, 46);
this.dataLayoutControl1.Name = "dataLayoutControl1";
this.dataLayoutControl1.OptionsCustomizationForm.DesignTimeCustomizationFormPositionAndSize = new System.Drawing.Rectangle(1225, 682, 650, 400);
this.dataLayoutControl1.Root = this.layoutControlGroup1;
this.dataLayoutControl1.Size = new System.Drawing.Size(1574, 941);
this.dataLayoutControl1.Size = new System.Drawing.Size(1830, 941);
this.dataLayoutControl1.TabIndex = 5;
this.dataLayoutControl1.Text = "dataLayoutControl1";
//
@ -82,7 +84,7 @@ namespace DeviceRepairAndOptimization.Pages
this.layoutControlGroup1.EnableIndentsWithoutBorders = DevExpress.Utils.DefaultBoolean.True;
this.layoutControlGroup1.GroupBordersVisible = false;
this.layoutControlGroup1.Name = "Root";
this.layoutControlGroup1.Size = new System.Drawing.Size(1574, 941);
this.layoutControlGroup1.Size = new System.Drawing.Size(1830, 941);
this.layoutControlGroup1.TextVisible = false;
//
// stackPanel1
@ -91,13 +93,13 @@ namespace DeviceRepairAndOptimization.Pages
stackPanel1.LayoutDirection = DevExpress.Utils.Layout.StackPanelLayoutDirection.RightToLeft;
stackPanel1.Location = new System.Drawing.Point(12, 12);
stackPanel1.Name = "stackPanel1";
stackPanel1.Size = new System.Drawing.Size(1574, 30);
stackPanel1.Size = new System.Drawing.Size(1830, 30);
stackPanel1.TabIndex = 4;
//
// simpleButton1
//
this.simpleButton1.ImageOptions.Image = ((System.Drawing.Image)(resources.GetObject("simpleButton1.ImageOptions.Image")));
this.simpleButton1.Location = new System.Drawing.Point(1496, 3);
this.simpleButton1.Location = new System.Drawing.Point(1752, 3);
this.simpleButton1.Name = "simpleButton1";
this.simpleButton1.Size = new System.Drawing.Size(75, 23);
this.simpleButton1.TabIndex = 0;
@ -124,7 +126,7 @@ namespace DeviceRepairAndOptimization.Pages
Root.OptionsTableLayoutGroup.RowDefinitions.AddRange(new DevExpress.XtraLayout.RowDefinition[] {
rowDefinition1,
rowDefinition2});
Root.Size = new System.Drawing.Size(1598, 999);
Root.Size = new System.Drawing.Size(1854, 999);
Root.TextVisible = false;
//
// layoutControlItem1
@ -132,7 +134,7 @@ namespace DeviceRepairAndOptimization.Pages
this.layoutControlItem1.Control = stackPanel1;
this.layoutControlItem1.Location = new System.Drawing.Point(0, 0);
this.layoutControlItem1.Name = "layoutControlItem1";
this.layoutControlItem1.Size = new System.Drawing.Size(1578, 34);
this.layoutControlItem1.Size = new System.Drawing.Size(1834, 34);
this.layoutControlItem1.TextSize = new System.Drawing.Size(0, 0);
this.layoutControlItem1.TextVisible = false;
//
@ -142,7 +144,8 @@ namespace DeviceRepairAndOptimization.Pages
this.lcContent.Location = new System.Drawing.Point(0, 34);
this.lcContent.Name = "lcContent";
this.lcContent.OptionsTableLayoutItem.RowIndex = 1;
this.lcContent.Size = new System.Drawing.Size(1578, 945);
this.lcContent.ShowInCustomizationForm = false;
this.lcContent.Size = new System.Drawing.Size(1834, 945);
this.lcContent.TextSize = new System.Drawing.Size(0, 0);
this.lcContent.TextVisible = false;
//
@ -150,7 +153,7 @@ namespace DeviceRepairAndOptimization.Pages
//
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 15F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1598, 999);
this.ClientSize = new System.Drawing.Size(1854, 999);
this.Controls.Add(layoutControl1);
this.DoubleBuffered = true;
this.Font = new System.Drawing.Font("宋体", 11.25F);

View File

@ -62,6 +62,7 @@ namespace DeviceRepairAndOptimization.Pages
Text = item,
ExpandButtonVisible = true
};
InitializeGroupItem(vlayoutControlGroup, sysConfigs.Where(x => x.GroupKey.Equals(item))?.ToList());
control.AddRange(new BaseLayoutItem[] { vlayoutControlGroup });
}

View File

@ -31,5 +31,5 @@ using System.Runtime.InteropServices;
//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值
//通过使用 "*",如下所示:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("2.0.1.12")]
[assembly: AssemblyFileVersion("2.0.1.12")]
[assembly: AssemblyVersion("2.0.1.13")]
[assembly: AssemblyFileVersion("2.0.1.13")]

View File

@ -302,7 +302,7 @@
/// <summary>
/// 设备维修单获取
/// </summary>
public const string GetMaintenanceDatas = "Api/Maintenance/GetDataTest";//"Api/Maintenance/GetDatas";
public const string GetMaintenanceDatas = "Api/Maintenance/GetDatas";
/// <summary>
/// 设备维修

View File

@ -0,0 +1,11 @@
namespace TsSFCDeivceClient.BaseControlEx
{
public static class GridControlExtend
{
public static void CustomDrawColumnHeader(this DevExpress.XtraGrid.Views.Grid.ColumnHeaderCustomDrawEventArgs e)
{
if (e.Column != null && (e.Column.Caption == "Selection" || e.Column.FieldName == "DX$CheckboxSelectorColumn"))
e.Info.Caption = "选择";
}
}
}

View File

@ -106,6 +106,7 @@
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="BaseControlEx\GridControlExtend.cs" />
<Compile Include="Biz\HttpHelper.cs" />
<Compile Include="Common\ComputerHelper.cs" />
<Compile Include="Common\DESEncrypt.cs" />

View File

@ -85,8 +85,7 @@ namespace TsSFCDeivceClient
/// 修改字段标题
gridView1.CustomDrawColumnHeader += (s, e) =>
{
if (e.Column != null && e.Column.Caption == "Selection")
e.Info.Caption = "选择";
(new Action<DevExpress.XtraGrid.Views.Grid.ColumnHeaderCustomDrawEventArgs>(BaseControlEx.GridControlExtend.CustomDrawColumnHeader)).Invoke(e);
};
/// 单元格点击

View File

@ -20,7 +20,7 @@ namespace TsSFCDeivceClient
{
int m_SelectedCurrentRowIndex = 0;
DataRow CurrentRequestForm = null;
List<LookUpItemModel> lookupMaintenanceStatus;
#region
@ -81,7 +81,7 @@ namespace TsSFCDeivceClient
}
#endregion
bool HasAuth = false;
int EmployeeType = -1;
public pageDeviceMaintenanceFormView(UserInfo user, string APPVERSION = "5.0.0.0")
{
@ -120,7 +120,7 @@ namespace TsSFCDeivceClient
this.Close();
}
HasAuth = apiResponseData.ToInt() > 0;
EmployeeType = apiResponseData.ToInt();
if (lookupMaintenanceStatus == null)
lookupMaintenanceStatus = new List<LookUpItemModel>();
@ -280,8 +280,7 @@ namespace TsSFCDeivceClient
/// 修改字段标题
gridView1.CustomDrawColumnHeader += (s, e) =>
{
if (e.Column != null && e.Column.Caption == "Selection")
e.Info.Caption = "选择";
(new Action<DevExpress.XtraGrid.Views.Grid.ColumnHeaderCustomDrawEventArgs>(BaseControlEx.GridControlExtend.CustomDrawColumnHeader)).Invoke(e);
};
/// 单元格点击
@ -345,16 +344,16 @@ namespace TsSFCDeivceClient
int AutoID = Convert.ToInt32(CurrentRequestForm["AutoID"]);
DeviceWarrantyRequestFormView Item = CurrentGridDatas[AutoID];// GridDatas.FirstOrDefault(x => x.AutoID == AutoID);
if (Item != null && HasAuth && Item.FormStatus != DeviceWarrantyRequestFormStatus.BeComplate && Item.InProduction)
if (Item != null && EmployeeType != -1 && Item.FormStatus != DeviceWarrantyRequestFormStatus.BeComplate && Item.InProduction)
{
if (Item.EvaluatorItems != null)
{
if (!Item.EvaluatorItems.Any(x => x.EvaluatorCode == "PE"))
if (!Item.EvaluatorItems.Any(x => x.EvaluatorCode == "PE") && EmployeeType == 0)
{
PE = true;
}
if (!Item.EvaluatorItems.Any(x => x.EvaluatorCode == "QE"))
if (!Item.EvaluatorItems.Any(x => x.EvaluatorCode == "QE") && EmployeeType == 1)
{
QE = true;
}