liuwf 1 year ago
commit fe8a702e1d

@ -451,6 +451,61 @@
接收从条码系统获取的校验字符串
</summary>
</member>
<member name="T:Admin.Core.Model.Model_New.BoxFoamData">
<summary>
箱体发泡数据
</summary>
</member>
<member name="P:Admin.Core.Model.Model_New.BoxFoamData.ObjId">
<summary>
主键标识
</summary>
</member>
<member name="P:Admin.Core.Model.Model_New.BoxFoamData.BoxFixturetype">
<summary>
夹具类型
</summary>
</member>
<member name="P:Admin.Core.Model.Model_New.BoxFoamData.BoxFixturestatus">
<summary>
夹具状态;1正常生产、0暂停生产
</summary>
</member>
<member name="P:Admin.Core.Model.Model_New.BoxFoamData.BoxFixtureproduction">
<summary>
夹具产量
</summary>
</member>
<member name="P:Admin.Core.Model.Model_New.BoxFoamData.BoxFixturesideplate">
<summary>
侧板温度
</summary>
</member>
<member name="P:Admin.Core.Model.Model_New.BoxFoamData.BoxClosebetatemperature">
<summary>
内模温度
</summary>
</member>
<member name="P:Admin.Core.Model.Model_New.BoxFoamData.BoxBeat">
<summary>
节拍
</summary>
</member>
<member name="P:Admin.Core.Model.Model_New.BoxFoamData.FoamVolume">
<summary>
发泡量
</summary>
</member>
<member name="P:Admin.Core.Model.Model_New.BoxFoamData.Createtime">
<summary>
创建时间
</summary>
</member>
<member name="P:Admin.Core.Model.Model_New.BoxFoamData.UpdateTime">
<summary>
创建时间
</summary>
</member>
<member name="T:Admin.Core.Model.Model_New.MaterialCompletion">
<summary>
物料完成记录
@ -1061,6 +1116,51 @@
创建时间
</summary>
</member>
<member name="T:Admin.Core.Model.BoxLastShotRecord">
<summary>
获取发泡机最后一枪记录
</summary>
</member>
<member name="P:Admin.Core.Model.BoxLastShotRecord.ObjId">
<summary>
主键
</summary>
</member>
<member name="P:Admin.Core.Model.BoxLastShotRecord.System">
<summary>
所属系统;1系统 2系统
</summary>
</member>
<member name="P:Admin.Core.Model.BoxLastShotRecord.PolInjectionpressure">
<summary>
POL注料压力
</summary>
</member>
<member name="P:Admin.Core.Model.BoxLastShotRecord.IsoInjectionpressure">
<summary>
ISO注料压力
</summary>
</member>
<member name="P:Admin.Core.Model.BoxLastShotRecord.PolInjectiontemperature">
<summary>
POL注料温度
</summary>
</member>
<member name="P:Admin.Core.Model.BoxLastShotRecord.IsoInjectiontemperature">
<summary>
ISO注料温度
</summary>
</member>
<member name="P:Admin.Core.Model.BoxLastShotRecord.LastTime">
<summary>
最后一次时间
</summary>
</member>
<member name="P:Admin.Core.Model.BoxLastShotRecord.Createtime">
<summary>
创建时间
</summary>
</member>
<member name="T:Admin.Core.Model.CodeBindingRecord">
<summary>
条码绑定记录

@ -0,0 +1,12 @@
using Admin.Core.Model;
using Admin.Core.Model.Model_New;
namespace Admin.Core.IRepository
{
/// <summary>
/// IBoxFoamDataRepository
/// </summary>
public interface IBoxFoamDataRepository : IBaseRepository<BoxFoamData>
{
}
}

@ -0,0 +1,11 @@
using Admin.Core.Model;
namespace Admin.Core.IRepository
{
/// <summary>
/// IBoxLastShotRecordRepository
/// </summary>
public interface IBoxLastShotRecordRepository : IBaseRepository<BoxLastShotRecord>
{
}
}

@ -0,0 +1,15 @@
using Admin.Core.IService;
using Admin.Core.Model;
using Admin.Core.Model.Model_New;
using System.Collections.Generic;
using System.Threading.Tasks;
namespace Admin.Core.IService
{
/// <summary>
/// IBoxFoamDataServices
/// </summary>
public interface IBoxFoamDataServices : IBaseServices<BoxFoamData>
{
}
}

@ -0,0 +1,14 @@
using Admin.Core.IService;
using Admin.Core.Model;
using System.Collections.Generic;
using System.Threading.Tasks;
namespace Admin.Core.IService
{
/// <summary>
/// IBoxLastShotRecordServices
/// </summary>
public interface IBoxLastShotRecordServices : IBaseServices<BoxLastShotRecord>
{
}
}

@ -0,0 +1,73 @@
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Admin.Core.Model.Model_New
{
/// <summary>
/// 箱体发泡数据
/// </summary>
[SugarTable("BOX_FOAMDATA", "AUCMA_SCADA")]
public class BoxFoamData
{
/// <summary>
/// 主键标识
///</summary>
[SugarColumn(ColumnName = "OBJ_ID", IsPrimaryKey = true)]
public int ObjId { get; set; }
/// <summary>
/// 夹具类型
/// </summary>
[SugarColumn(ColumnName = "BOX_FIXTURETYPE")]
public string BoxFixturetype { get; set; }
/// <summary>
/// 夹具状态;1正常生产、0暂停生产
/// </summary>
[SugarColumn(ColumnName = "BOX_FIXTURESTATUS")]
public int BoxFixturestatus { get; set; }
/// <summary>
/// 夹具产量
/// </summary>
[SugarColumn(ColumnName = "BOX_FIXTUREPRODUCTION")]
public int BoxFixtureproduction { get; set; }
/// <summary>
/// 侧板温度
/// </summary>
[SugarColumn(ColumnName = "BOX_FIXTURESIDEPLATE")]
public string BoxFixturesideplate { get; set; }
/// <summary>
/// 内模温度
/// </summary>
[SugarColumn(ColumnName = "BOX_CLOSEBETATEMPERATURE")]
public string BoxClosebetatemperature { get; set; }
/// <summary>
/// 节拍
/// </summary>
[SugarColumn(ColumnName = "BOX_BEAT")]
public int BoxBeat { get; set; }
/// <summary>
///发泡量
/// </summary>
[SugarColumn(ColumnName = "BOX_BEAT")]
public int FoamVolume { get; set; }
/// <summary>
/// 创建时间
/// </summary>
[SugarColumn(ColumnName = "CREATETIME")]
public DateTime Createtime { get; set; }
/// <summary>
/// 创建时间
/// </summary>
[SugarColumn(ColumnName = "CREATETIME")]
public DateTime UpdateTime { get; set; }
}
}

@ -0,0 +1,64 @@
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Admin.Core.Model
{
/// <summary>
/// 获取发泡机最后一枪记录
/// </summary>
[SugarTable("BOX_LASTSHOTRECORD", "AUCMA_SCADA")]
public class BoxLastShotRecord
{
/// <summary>
/// 主键
/// </summary>
[SugarColumn(ColumnName = "OBJ_ID", IsIdentity = true, IsPrimaryKey = true)]
public float ObjId { get; set; }
/// <summary>
/// 所属系统;1系统 2系统
/// </summary>
[SugarColumn(ColumnName = "SYSTEM")]
public string System { get; set; }
/// <summary>
/// POL注料压力
/// </summary>
[SugarColumn(ColumnName = "POL_INJECTIONPRESSURE")]
public string PolInjectionpressure { get; set; }
/// <summary>
/// ISO注料压力
/// </summary>
[SugarColumn(ColumnName = "ISO_INJECTIONPRESSURE")]
public string IsoInjectionpressure { get; set; }
/// <summary>
/// POL注料温度
/// </summary>
[SugarColumn(ColumnName = "POL_INJECTIONTEMPERATURE")]
public string PolInjectiontemperature { get; set; }
/// <summary>
/// ISO注料温度
/// </summary>
[SugarColumn(ColumnName = "ISO_INJECTIONTEMPERATURE")]
public string IsoInjectiontemperature { get; set; }
/// <summary>
/// 最后一次时间
/// </summary>
[SugarColumn(ColumnName = "LAST_TIME")]
public DateTime LastTime { get; set; }
/// <summary>
/// 创建时间
/// </summary>
[SugarColumn(ColumnName = "CREATETIME")]
public DateTime Createtime { get; set; }
}
}

@ -0,0 +1,16 @@
using Admin.Core.IRepository;
using Admin.Core.Model;
using Admin.Core.Model.Model_New;
namespace Admin.Core.Repository
{
/// <summary>
/// BoxFoamDataRepository
/// </summary>
public class BoxFoamDataRepository : BaseRepository<BoxFoamData>, IBoxFoamDataRepository
{
public BoxFoamDataRepository(IUnitOfWork unitOfWork) : base(unitOfWork)
{
}
}
}

@ -0,0 +1,15 @@
using Admin.Core.IRepository;
using Admin.Core.Model;
namespace Admin.Core.Repository
{
/// <summary>
/// BoxLastShotRecordRepository
/// </summary>
public class BoxLastShotRecordRepository : BaseRepository<BoxLastShotRecord>, IBoxLastShotRecordRepository
{
public BoxLastShotRecordRepository(IUnitOfWork unitOfWork) : base(unitOfWork)
{
}
}
}

@ -0,0 +1,16 @@
using Admin.Core.IRepository;
using Admin.Core.IService;
using Admin.Core.Model.Model_New;
using log4net;
namespace Admin.Core.Service
{
public class BoxFoamDataServices : BaseServices<BoxFoamData>, IBoxFoamDataServices
{
private readonly IBaseRepository<BoxFoamData> _dal;
public BoxFoamDataServices(IBaseRepository<BoxFoamData> dal)
{
this._dal = dal;
base.BaseDal = dal;
}
}
}

@ -0,0 +1,24 @@
using Admin.Core.IRepository;
using Admin.Core.IService;
using Admin.Core.Model;
using Admin.Core.Model.Model_New;
using log4net;
using Microsoft.AspNetCore.Razor.TagHelpers;
using Microsoft.IdentityModel.Logging;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace Admin.Core.Service
{
public class BoxLastShotRecordServices : BaseServices<BoxLastShotRecord>, IBoxLastShotRecordServices
{
private readonly IBaseRepository<BoxLastShotRecord> _dal;
public BoxLastShotRecordServices(IBaseRepository<BoxLastShotRecord> dal)
{
this._dal = dal;
base.BaseDal = dal;
}
}
}

@ -0,0 +1,233 @@
using Admin.Core.IService.ISys;
using Admin.Core.IService;
using Admin.Core.Service;
using Quartz;
using System;
using System.Threading.Tasks;
using log4net;
using Admin.Core.Model;
using Admin.Core.Common;
using System.Linq;
using StackExchange.Profiling.Internal;
using Admin.Core.Model.Model_New;
using NPOI.POIFS.Crypt.Dsig;
using Aucma.Core.PLc;
using System.Diagnostics;
/// <summary>
/// 发泡数据采集
/// </summary>
namespace Admin.Core.Tasks
{
public class Job_BoxFoamData_Quartz : JobBase, IJob
{
public delegate Task RefreshBoxFoamDataDelegate();
public static event RefreshBoxFoamDataDelegate RefreshBoxFoamDataDelegateEvent;
private static readonly log4net.ILog logHelper = LogManager.GetLogger(typeof(Job_BoxFoamData_Quartz));
private readonly IBoxFoamDataServices _boxFoamDataServices;
public Job_BoxFoamData_Quartz(ISysTasksQzService SysTasksQzService, ISysJobLogService sysJobLogService,
IBoxFoamDataServices boxFoamDataServices)
{
_SysTasksQzService = SysTasksQzService;
_boxFoamDataServices= boxFoamDataServices;
}
public async Task Execute(IJobExecutionContext context)
{
await ExecuteJob(context, async () => await Run(context));
}
public async Task Run(IJobExecutionContext context)
{
await SaveData();
}
#region PLC 任务处理表
/// <summary>
/// PLC 任务处理表
/// </summary>
/// <param name="storeCode">仓库编码</param>
/// <param name="materialBarCode">物料编码</param>
/// <returns></returns>
public async Task SaveData()
{
//扫描入库信号,入库完成
try
{
var obj = PlcHelper.melsecList.FirstOrDefault(d => d.EquipName.Equals("发泡Plc"));
if (obj.plc.IsConnected)
{
var taskList = await _boxFoamDataServices.QueryAsync();
foreach (var item in taskList)
{
await UpdateRealData(obj, item);
}
}
}
catch (Exception ex)
{
logHelper.Error($"入库数据处理异常:{ex.Message}");
}
}
private async Task<BoxFoamData> UpdateRealData(PlcModel obj, BoxFoamData item)
{
try
{
#region 更新PLC数据
if (item.ObjId == 1)
{
item.BoxFixturetype = obj.plc.ReadString("DB8.DBX2.0");
if (obj.plc.ReadInt16("DB8.DBW122.0") == 1) item.BoxFixturestatus = 1;
if (obj.plc.ReadInt16("DB8.DBW122.1") == 1) item.BoxFixturestatus = 0;
item.BoxFixtureproduction = obj.plc.ReadInt16("DB8.DBD146");
item.BoxFixturesideplate = obj.plc.ReadString("DB8.DBD294");
item.BoxClosebetatemperature = obj.plc.ReadString("DB8.DBD310");
item.BoxBeat = obj.plc.ReadInt16("DB8.DBD578");
item.UpdateTime = DateTime.Now;
}
if (item.ObjId == 2)
{
item.BoxFixturetype = obj.plc.ReadString("DB8.DBX12.0");
if (obj.plc.ReadInt16("DB8.DBW124.0") == 1) item.BoxFixturestatus = 1;
if (obj.plc.ReadInt16("DB8.DBW124.1") == 1) item.BoxFixturestatus = 0;
item.BoxFixtureproduction = obj.plc.ReadInt16("DB8.DBD150");
item.BoxFixturesideplate = obj.plc.ReadString("DB8.DBD318");
item.BoxClosebetatemperature = obj.plc.ReadString("DB8.DBD334");
item.BoxBeat = obj.plc.ReadInt16("DB8.DBD582");
item.UpdateTime = DateTime.Now;
}
if (item.ObjId == 3)
{
item.BoxFixturetype = obj.plc.ReadString("DB8.DBX2.0");
if (obj.plc.ReadInt16("DB8.DBW126.0") == 1) item.BoxFixturestatus = 1;
if (obj.plc.ReadInt16("DB8.DBW126.1") == 1) item.BoxFixturestatus = 0;
item.BoxFixtureproduction = obj.plc.ReadInt16("DB8.DBD154");
item.BoxFixturesideplate = obj.plc.ReadString("DB8.DBD342");
item.BoxClosebetatemperature = obj.plc.ReadString("DB8.DBD358");
item.BoxBeat = obj.plc.ReadInt16("DB8.DBD586");
item.UpdateTime = DateTime.Now;
}
if (item.ObjId == 4)
{
item.BoxFixturetype = obj.plc.ReadString("DB8.DBX2.0");
if (obj.plc.ReadInt16("DB8.DBW128.0") == 1) item.BoxFixturestatus = 1;
if (obj.plc.ReadInt16("DB8.DBW128.1") == 1) item.BoxFixturestatus = 0;
item.BoxFixtureproduction = obj.plc.ReadInt16("DB8.DBD158");
item.BoxFixturesideplate = obj.plc.ReadString("DB8.DBD366");
item.BoxClosebetatemperature = obj.plc.ReadString("DB8.DBD382");
item.BoxBeat = obj.plc.ReadInt16("DB8.DBD590");
item.UpdateTime = DateTime.Now;
}
if (item.ObjId == 5)
{
item.BoxFixturetype = obj.plc.ReadString("DB8.DBX2.0");
if (obj.plc.ReadInt16("DB8.DBW130.0") == 1) item.BoxFixturestatus = 1;
if (obj.plc.ReadInt16("DB8.DBW130.1") == 1) item.BoxFixturestatus = 0;
item.BoxFixtureproduction = obj.plc.ReadInt16("DB8.DBD162");
item.BoxFixturesideplate = obj.plc.ReadString("DB8.DBD390");
item.BoxClosebetatemperature = obj.plc.ReadString("DB8.DBD406");
item.BoxBeat = obj.plc.ReadInt16("DB8.DBD594");
item.UpdateTime = DateTime.Now;
}
if (item.ObjId == 6)
{
item.BoxFixturetype = obj.plc.ReadString("DB8.DBX2.0");
if (obj.plc.ReadInt16("DB8.DBW122.0") == 1) item.BoxFixturestatus = 1;
if (obj.plc.ReadInt16("DB8.DBW122.1") == 1) item.BoxFixturestatus = 0;
item.BoxFixtureproduction = obj.plc.ReadInt16("DB8.DBD166");
item.BoxFixturesideplate = obj.plc.ReadString("DB8.DBD414");
item.BoxClosebetatemperature = obj.plc.ReadString("DB8.DBD430");
item.BoxBeat = obj.plc.ReadInt16("DB8.DBD598");
item.UpdateTime = DateTime.Now;
}
if (item.ObjId == 7)
{
item.BoxFixturetype = obj.plc.ReadString("DB8.DBX2.0");
if (obj.plc.ReadInt16("DB8.DBW134.0") == 1) item.BoxFixturestatus = 1;
if (obj.plc.ReadInt16("DB8.DBW134.1") == 1) item.BoxFixturestatus = 0;
item.BoxFixtureproduction = obj.plc.ReadInt16("DB8.DBD170");
item.BoxFixturesideplate = obj.plc.ReadString("DB8.DBD438");
item.BoxClosebetatemperature = obj.plc.ReadString("DB8.DBD454");
item.BoxBeat = obj.plc.ReadInt16("DB8.DBD602");
item.UpdateTime = DateTime.Now;
}
if (item.ObjId == 8)
{
item.BoxFixturetype = obj.plc.ReadString("DB8.DBX2.0");
if (obj.plc.ReadInt16("DB8.DBW136.0") == 1) item.BoxFixturestatus = 1;
if (obj.plc.ReadInt16("DB8.DBW136.1") == 1) item.BoxFixturestatus = 0;
item.BoxFixtureproduction = obj.plc.ReadInt16("DB8.DBD174");
item.BoxFixturesideplate = obj.plc.ReadString("DB8.DBD462");
item.BoxClosebetatemperature = obj.plc.ReadString("DB8.DBD478");
item.BoxBeat = obj.plc.ReadInt16("DB8.DBD606");
item.UpdateTime = DateTime.Now;
}
if (item.ObjId == 9)
{
item.BoxFixturetype = obj.plc.ReadString("DB8.DBX2.0");
if (obj.plc.ReadInt16("DB8.DBW138.0") == 1) item.BoxFixturestatus = 1;
if (obj.plc.ReadInt16("DB8.DBW138.1") == 1) item.BoxFixturestatus = 0;
item.BoxFixtureproduction = obj.plc.ReadInt16("DB8.DBD178");
item.BoxFixturesideplate = obj.plc.ReadString("DB8.DBD486");
item.BoxClosebetatemperature = obj.plc.ReadString("DB8.DBD502");
item.BoxBeat = obj.plc.ReadInt16("DB8.DBD610");
item.UpdateTime = DateTime.Now;
}
if (item.ObjId == 10)
{
item.BoxFixturetype = obj.plc.ReadString("DB8.DBX2.0");
if (obj.plc.ReadInt16("DB8.DBW140.0") == 1) item.BoxFixturestatus = 1;
if (obj.plc.ReadInt16("DB8.DBW140.1") == 1) item.BoxFixturestatus = 0;
item.BoxFixtureproduction = obj.plc.ReadInt16("DB8.DBD182");
item.BoxFixturesideplate = obj.plc.ReadString("DB8.DBD510");
item.BoxClosebetatemperature = obj.plc.ReadString("DB8.DBD526");
item.BoxBeat = obj.plc.ReadInt16("DB8.DBD614");
item.UpdateTime = DateTime.Now;
}
if (item.ObjId == 11)
{
item.BoxFixturetype = obj.plc.ReadString("DB8.DBX2.0");
if (obj.plc.ReadInt16("DDB8.DBW142.0") == 1) item.BoxFixturestatus = 1;
if (obj.plc.ReadInt16("DB8.DBW142.1") == 1) item.BoxFixturestatus = 0;
item.BoxFixtureproduction = obj.plc.ReadInt16("DB8.DBD186");
item.BoxFixturesideplate = obj.plc.ReadString("DB8.DBD534");
item.BoxClosebetatemperature = obj.plc.ReadString("DB8.DBD550");
item.BoxBeat = obj.plc.ReadInt16("DB8.DBD622");
item.UpdateTime = DateTime.Now;
}
if (item.ObjId == 12)
{
item.BoxFixturetype = obj.plc.ReadString("DB8.DBX2.0");
if (obj.plc.ReadInt16("DB8.DBW144.0") == 1) item.BoxFixturestatus = 1;
if (obj.plc.ReadInt16("DB8.DBW144.1") == 1) item.BoxFixturestatus = 0;
item.BoxFixtureproduction = obj.plc.ReadInt16("DB8.DBD190");
item.BoxFixturesideplate = obj.plc.ReadString("DB8.DBD558");
item.BoxClosebetatemperature = obj.plc.ReadString("DB8.DBD574");
item.BoxBeat = obj.plc.ReadInt16("DB8.DBD626");
item.UpdateTime = DateTime.Now;
}
#endregion
bool result = await _boxFoamDataServices.UpdateAsync(item);
if (result)
{
RefreshBoxFoamDataDelegateEvent?.Invoke();
}
else
{
// LogDelegateEvent?.Invoke($"物料[{planInfo.MaterialName}], 入库[{baseSpace.SpaceName}]失败,任务回滚!");
}
}
catch (Exception ex)
{
logHelper.Error($"更新箱体发泡数据失败");
}
return await Task.FromResult(item);
}
#endregion
}
}

@ -52,17 +52,17 @@ namespace Admin.Core.Tasks
}
public async Task Run(IJobExecutionContext context)
{
var obj = PlcHelper.melsecList.FirstOrDefault(d => d.EquipName.Equals("泡前库Plc"));
if (obj.IsConnect)
{
var val = obj.plc.ReadBool("M100");//出发出库点位
if (val)
{
//获取发泡夹类型=》箱体类型
var planInfo = await _executePlanInfoServices.FirstAsync();
await PlanHandle(planInfo);
}
}
//var obj = PlcHelper.melsecList.FirstOrDefault(d => d.EquipName.Equals("泡前库Plc"));
//if (obj.IsConnect)
//{
// var val = obj.plc.ReadBool("M100");//出发出库点位
// if (val)
// {
// //获取发泡夹类型=》箱体类型
// var planInfo = await _executePlanInfoServices.FirstAsync();
// await PlanHandle(planInfo);
// }
//}
}

@ -26,8 +26,9 @@
<SolidColorBrush x:Key="PrimaryHueDarkForegroundBrush" Color="White" />
<!--字体大小设置-->
<Style TargetType="TextBlock">
<Setter Property="FontSize" Value="18"/>
<!--<Setter Property="FontSize" Value="18"/>-->
<Setter Property="FontWeight" Value="Bold"/>
<Setter Property="FontFamily" Value="Microsoft YaHei"/>
</Style>
</ResourceDictionary>
</Application.Resources>

@ -10,6 +10,9 @@
<Compile Update="Views\EnterWarehouseStatisticsPageView.xaml.cs">
<SubType>Code</SubType>
</Compile>
<Compile Update="Views\FoamMachinesPageView.xaml.cs">
<SubType>Code</SubType>
</Compile>
<Compile Update="Views\FoamMonitorPageView.xaml.cs">
<SubType>Code</SubType>
</Compile>
@ -25,6 +28,12 @@
<Compile Update="Views\UserPage\BeforeFoamingPageView.xaml.cs">
<SubType>Code</SubType>
</Compile>
<Compile Update="Views\UserPage\LinerInventory.xaml.cs">
<SubType>Code</SubType>
</Compile>
<Compile Update="Views\UserPage\ShellInventory.xaml.cs">
<SubType>Code</SubType>
</Compile>
<Compile Update="Views\UserPage\SpaceDetailPageView.xaml.cs">
<SubType>Code</SubType>
</Compile>
@ -33,6 +42,9 @@
<Page Update="Views\EnterWarehouseStatisticsPageView.xaml">
<SubType>Designer</SubType>
</Page>
<Page Update="Views\FoamMachinesPageView.xaml">
<SubType>Designer</SubType>
</Page>
<Page Update="Views\FoamMonitorPageView.xaml">
<SubType>Designer</SubType>
</Page>
@ -66,6 +78,12 @@
<Page Update="Views\UserPage\BeforeFoamingPageView.xaml">
<SubType>Designer</SubType>
</Page>
<Page Update="Views\UserPage\LinerInventory.xaml">
<SubType>Designer</SubType>
</Page>
<Page Update="Views\UserPage\ShellInventory.xaml">
<SubType>Designer</SubType>
</Page>
<Page Update="Views\UserPage\SpaceDetailPageView.xaml">
<SubType>Designer</SubType>
</Page>

@ -0,0 +1,48 @@
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Aucma.Core.BoxFoam.Models
{
public class LastShotRecordModel
{
public int No { get; set; }
/// <summary>
/// 所属系统;1系统 2系统
/// </summary>
public string System { get; set; }
/// <summary>
/// POL注料压力
/// </summary>
public string PolInjectionpressure { get; set; }
/// <summary>
/// ISO注料压力
/// </summary>
public string IsoInjectionpressure { get; set; }
/// <summary>
/// POL注料温度
/// </summary>
public string PolInjectiontemperature { get; set; }
/// <summary>
/// ISO注料温度
/// </summary>
public string IsoInjectiontemperature { get; set; }
/// <summary>
/// 最后一次时间
/// </summary>
public DateTime LastTime { get; set; }
/// <summary>
/// 创建时间
/// </summary>
public DateTime Createtime { get; set; }
}
}

@ -1,5 +1,6 @@
using Admin.Core.Common;
using Admin.Core.IService;
using Admin.Core.Model;
using Admin.Core.Service;
using Aucma.Core.BoxFoam.Models;
using Aucma.Core.BoxFoam.Views.UserPage;
@ -8,6 +9,7 @@ using CommunityToolkit.Mvvm.Input;
using log4net;
using MaterialDesignThemes.Wpf;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.IdentityModel.Logging;
using NPOI.SS.Formula.Functions;
using System;
using System.Collections.ObjectModel;
@ -132,5 +134,52 @@ namespace Aucma.Core.BoxFoam.ViewModels
}
#endregion
/// <summary>
/// 货道入库标识设置
/// </summary>
/// <param name="obj"></param>
private async void UpdateInStoreFlag(object obj)
{
string info = obj as string;
string shellStoreCode = Appsettings.app("StoreInfo", "BeforeStoreCode");//泡前库code
bool result =await UpdateInStoreFlag(shellStoreCode, info);
if (result)
{
//Query();
//MessageBoxTimeoutA((IntPtr)0, $"货道入库状态修改成功3秒后关闭提示", "提示", 0, 0, 3000);
}
else
{
MessageBox.Show("货道入库状态修改失败", "提示", MessageBoxButton.OK, MessageBoxImage.Error, MessageBoxResult.OK, MessageBoxOptions.DefaultDesktopOnly);
}
}
/// <summary>
/// 修改货道入库标识
/// </summary>
/// <param name="storeCode"></param>
/// <param name="spaceCode"></param>
public async Task<bool> UpdateInStoreFlag(string storeCode, string spaceCode)
{
bool result = false;
try
{
BaseSpaceInfo spaceInfo =await _baseSpaceInfoServices.GetSpaceInfoBySpaceCode(storeCode, spaceCode);
if (spaceInfo != null)
{
spaceInfo.InStoreFlag = spaceInfo.InStoreFlag == 1 ? 2 : 1;
result =await _baseSpaceInfoServices.UpdateSpaceInfo(spaceInfo);
//logHelper.Info($"修改仓库:{storeCode};货道:{spaceCode};入库标识:{spaceInfo.inStoreFlag};修改{(result == true ? "成功" : "失败")}");
}
}
catch (Exception ex)
{
//logHelper.Error("修改货道入库标识异常", ex);
}
return result;
}
}
}

@ -0,0 +1,453 @@
using Admin.Core.Common;
using Admin.Core.IService;
using Admin.Core.Model.ViewModels;
using Admin.Core.Service;
using Aucma.Core.BoxFoam.Models;
using CommunityToolkit.Mvvm.ComponentModel;
using Microsoft.Extensions.DependencyInjection;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Aucma.Core.BoxFoam.ViewModels
{
public partial class FoamMachinesPageViewModel : ObservableObject
{
IBoxLastShotRecordServices _boxLastShotRecordServices;
public FoamMachinesPageViewModel()
{
_boxLastShotRecordServices = App.ServiceProvider.GetService<IBoxLastShotRecordServices>();
Task.WaitAll(LoadData());
}
#region 加载DataGrid数据
private async Task LoadData()
{
System.Windows.Application.Current.Dispatcher.Invoke((Action)(async () =>
{
LastShotRecordDataGrid.Clear();
int i = 1;
var list = await _boxLastShotRecordServices.QueryAsync();
list.OrderByDescending(d => d.LastTime);
foreach (var item in list.Take(50))
{
string system = string.Empty;
if (item.System == "1") { system = "1系统"; }
if (item.System == "2") { system = "2系统"; }
LastShotRecordDataGrid.Add(new LastShotRecordModel()
{
No = i,
System = system,
PolInjectionpressure = item.PolInjectionpressure,
IsoInjectionpressure = item.IsoInjectionpressure,
PolInjectiontemperature = item.PolInjectiontemperature,
IsoInjectiontemperature = item.IsoInjectiontemperature,
LastTime = item.LastTime,
Createtime = item.Createtime
});
i++;
};
//Datalist.Insert(0, Datalist[Datalist.Count - 1]);
//Datalist.RemoveAt(Datalist.Count - 1);
}));
}
#endregion
#region 初始化datagrid
private ObservableCollection<LastShotRecordModel> _lastShotRecordDataGrid = new ObservableCollection<LastShotRecordModel>();
public ObservableCollection<LastShotRecordModel> LastShotRecordDataGrid
{
get { return _lastShotRecordDataGrid; }
set
{
_lastShotRecordDataGrid = value;
OnPropertyChanged();//属性通知
}
}
#endregion
#region 1系统属性
/// <summary>
/// POL输入压力
/// </summary>
private string _PolInputPressure = "0.00";
public string PolInputPressure1
{
get => _PolInputPressure;
set => SetProperty(ref _PolInputPressure, value);
}
/// <summary>
/// ISO输入压力
/// </summary>
private string _IsoInputPressure = "0.00";
public string IsoInputPressure1
{
get => _IsoInputPressure;
set => SetProperty(ref _IsoInputPressure, value);
}
/// <summary>
/// POL输出压力
/// </summary>
private string _polOutputPressure = "0.0";
public string PolOutputPressure1
{
get => _polOutputPressure;
set => SetProperty(ref _polOutputPressure, value);
}
/// <summary>
/// ISO输出压力
/// </summary>
private string _isoOutputPressure1 = "0.0";
public string IsoOutputPressure1
{
get => _isoOutputPressure1;
set => SetProperty(ref _isoOutputPressure1, value);
}
/// <summary>
/// Pol流量
/// </summary>
private string _Polflow1 = "0";
public string PolFlow1
{
get => _Polflow1;
set => SetProperty(ref _Polflow1, value);
}
/// <summary>
/// Iso流量
/// </summary>
private string _isoflow1 = "0";
public string IsoFlow1
{
get => _isoflow1;
set => SetProperty(ref _isoflow1, value);
}
/// <summary>
/// Pol温度
/// </summary>
private string _PoleTmperature = "0";
public string PoleTmperature1
{
get => _PoleTmperature;
set => SetProperty(ref _PoleTmperature, value);
}
/// <summary>
/// Iso温度
/// </summary>
private string _isoTemperature = "0";
public string IsoTemperature1
{
get => _isoTemperature;
set => SetProperty(ref _isoTemperature, value);
}
/// <summary>
/// 料位
/// </summary>
private string _PolMaterialLevel1 = "0";
public string PolMaterialLevel1
{
get => _PolMaterialLevel1;
set => SetProperty(ref _PolMaterialLevel1, value);
}
/// <summary>
/// Iso温度
/// </summary>
private string _IsoMaterialLevel1 = "0";
public string IsoMaterialLevel1
{
get => _IsoMaterialLevel1;
set => SetProperty(ref _IsoMaterialLevel1, value);
}
/// <summary>
/// 压力
/// </summary>
private string _pressure1 = "0.00";
public string Pressure1
{
get => _pressure1;
set => SetProperty(ref _pressure1, value);
}
/// <summary>
/// 温度
/// </summary>
private string _temperature1 = "0.00";
public string Temperature1
{
get => _temperature1;
set => SetProperty(ref _temperature1, value);
}
/// <summary>
/// A枪状态
/// </summary>
private string _status1;
public string Status1
{
get => _status1;
set => SetProperty(ref _status1, value);
}
/// <summary>
/// B枪状态
/// </summary>
private string _status11;
public string Status11
{
get => _status11;
set => SetProperty(ref _status11, value);
}
/// <summary>
/// 压力
/// </summary>
private string _POLPressure1 = "0.00";
public string POLPressure1
{
get => _POLPressure1;
set => SetProperty(ref _POLPressure1, value);
}
/// <summary>
/// A枪POL温度
/// </summary>
private string _POLTemperature1 = "0.00";
public string POLTemperature1
{
get => _POLTemperature1;
set => SetProperty(ref _POLTemperature1, value);
}
/// <summary>
/// B枪POL温度
/// </summary>
private string _POLTemperature11 = "0.0";
public string POLTemperature11
{
get => _POLTemperature11;
set => SetProperty(ref _POLTemperature11, value);
}
/// <summary>
/// 压力
/// </summary>
private string _ISOPressure1 = "0.00";
public string ISOPressure1
{
get => _ISOPressure1;
set => SetProperty(ref _ISOPressure1, value);
}
/// <summary>
/// 温度
/// </summary>
private string _ISOTemperature11 = "0.0";
public string ISOTemperature11
{
get => _ISOTemperature11;
set => SetProperty(ref _ISOTemperature11, value);
}
#endregion
#region 2系统属性
/// <summary>
/// POL输入压力
/// </summary>
private string _PolInputPressure2 = "0.00";
public string PolInputPressure2
{
get => _PolInputPressure2;
set => SetProperty(ref _PolInputPressure2, value);
}
/// <summary>
/// ISO输入压力
/// </summary>
private string _IsoInputPressure2 = "0.00";
public string IsoInputPressure2
{
get => _IsoInputPressure2;
set => SetProperty(ref _IsoInputPressure2, value);
}
/// <summary>
/// POL输出压力
/// </summary>
private string _polOutputPressure2 = "0.00";
public string PolOutputPressure2
{
get => _polOutputPressure2;
set => SetProperty(ref _polOutputPressure2, value);
}
/// <summary>
/// ISO输出压力
/// </summary>
private string _isoOutputPressure2 = "0.00";
public string IsoOutputPressure2
{
get => _isoOutputPressure2;
set => SetProperty(ref _isoOutputPressure2, value);
}
/// <summary>
/// Pol流量
/// </summary>
private string _Polflow2 = "0";
public string PolFlow2
{
get => _Polflow2;
set => SetProperty(ref _Polflow2, value);
}
/// <summary>
/// Iso流量
/// </summary>
private string _isoflow2 = "0";
public string IsoFlow2
{
get => _isoflow2;
set => SetProperty(ref _isoflow2, value);
}
/// <summary>
/// Pol温度
/// </summary>
private string _PoleTmperature2 = "0";
public string PoleTmperature2
{
get => _PoleTmperature2;
set => SetProperty(ref _PoleTmperature2, value);
}
/// <summary>
/// Iso温度
/// </summary>
private string _isoTemperature2 = "0";
public string IsoTemperature2
{
get => _isoTemperature2;
set => SetProperty(ref _isoTemperature2, value);
}
/// <summary>
/// 料位
/// </summary>
private string _PolMaterialLevel2 = "0";
public string PolMaterialLevel2
{
get => _PolMaterialLevel2;
set => SetProperty(ref _PolMaterialLevel2, value);
}
/// <summary>
/// Iso温度
/// </summary>
private string _IsoMaterialLevel2 = "0";
public string IsoMaterialLevel2
{
get => _IsoMaterialLevel2;
set => SetProperty(ref _IsoMaterialLevel2, value);
}
/// <summary>
/// 压力
/// </summary>
private string _pressure2 = "0.00";
public string Pressure2
{
get => _pressure2;
set => SetProperty(ref _pressure2, value);
}
/// <summary>
/// 温度
/// </summary>
private string _temperature2 = "0.00";
public string Temperature2
{
get => _temperature2;
set => SetProperty(ref _temperature2, value);
}
/// <summary>
/// A枪状态
/// </summary>
private string _status2 = "";
public string Status2
{
get => _status2;
set => SetProperty(ref _status2, value);
}
/// <summary>
/// B枪状态
/// </summary>
private string _status12 = "";
public string Status12
{
get => _status12;
set => SetProperty(ref _status12, value);
}
/// <summary>
/// 压力
/// </summary>
private string _POLPressure2 = "0.00";
public string POLPressure2
{
get => _POLPressure2;
set => SetProperty(ref _POLPressure2, value);
}
/// <summary>
/// 温度
/// </summary>
private string _POLTemperature2 = "0.00";
public string POLTemperature2
{
get => _POLTemperature2;
set => SetProperty(ref _POLTemperature2, value);
}
/// <summary>
/// A枪压力
/// </summary>
private string _ISOPressure2 = "0.00";
public string ISOPressure2
{
get => _ISOPressure2;
set => SetProperty(ref _ISOPressure2, value);
}
/// <summary>
/// B枪温度
/// </summary>
private string _ISOTemperature22 = "0.0";
public string ISOTemperature22
{
get => _ISOTemperature22;
set => SetProperty(ref _ISOTemperature22, value);
}
/// <summary>
/// B枪温度
/// </summary>
private string _POLPressure22 = "0.0";
public string POLPressure22
{
get => _POLPressure22;
set => SetProperty(ref _POLPressure22, value);
}
/// <summary>
/// B枪ISO温度
/// </summary>
private string _POLTemperature22 = "0.0";
public string POLTemperature22
{
get => _POLTemperature22;
set => SetProperty(ref _POLTemperature22, value);
}
/// <summary>
/// B枪ISO压力
/// </summary>
private string _ISOPressure22 = "0.0";
public string ISOPressure22
{
get => _ISOPressure22;
set => SetProperty(ref _ISOPressure22, value);
}
#endregion
}
}

@ -9,25 +9,33 @@ using System.Text;
using System.Threading.Tasks;
using System.Windows.Media;
using System.Collections.ObjectModel;
using Admin.Core.IService;
using Admin.Core.Service;
using Microsoft.Extensions.DependencyInjection;
using Admin.Core.Common;
using Admin.Core.Tasks;
namespace Aucma.Core.BoxFoam.ViewModels
{
public partial class FoamMonitorPageViewModel : ObservableObject
{
private readonly IBoxFoamDataServices _boxFoamDataServices;
public FoamMonitorPageViewModel()
{
Task.WaitAll(InitEveryDayMethod());
InitStatus();
}
_boxFoamDataServices = App.ServiceProvider.GetService<IBoxFoamDataServices>();
Job_BoxFoamData_Quartz.RefreshBoxFoamDataDelegateEvent += InitData;
public void InitStatus()
{
for (int i = 0; i < 12; i++)
{
Color.Add("Red");
}
Task.WaitAll(InitEveryDayMethod(), InitData());
}
//public void InitStatus()
//{
// for (int i = 0; i < 12; i++)
// {
// Color.Add("Red");
// }
//}
#region 日产量
/// <summary>
/// 每日生产
@ -169,5 +177,111 @@ namespace Aucma.Core.BoxFoam.ViewModels
set => SetProperty(ref _color, value);
}
#endregion
#region 总计
private int _totle = 0;
public int Totle
{
get => _totle;
set => SetProperty(ref _totle, value);
}
#endregion
#region 夹具状态
private ObservableCollection<string> _statusColor = new ObservableCollection<string>();
public ObservableCollection<string> StatusColor
{
get => _statusColor;
set => SetProperty(ref _statusColor, value);
}
#endregion
#region 夹具名称
private ObservableCollection<string> _fixtureName = new ObservableCollection<string>();
public ObservableCollection<string> FixtureName
{
get => _fixtureName;
set => SetProperty(ref _fixtureName, value);
}
#endregion
#region 夹具产量
/// <summary>
///夹具产量
/// </summary>
private ObservableCollection<string> _production = new ObservableCollection<string>();
public ObservableCollection<string> Production
{
get => _production;
set => SetProperty(ref _production, value);
}
#endregion
#region 发泡量
/// <summary>
/// 发泡量
/// </summary>
private ObservableCollection<int> _foamVolume = new ObservableCollection<int>();
public ObservableCollection<int> FoamVolume
{
get => _foamVolume;
set => SetProperty(ref _foamVolume, value);
}
#endregion
#region 内侧温度
private ObservableCollection<string> _internalTemperature = new ObservableCollection<string>();
public ObservableCollection<string> InternalTemperature
{
get => _internalTemperature;
set => SetProperty(ref _internalTemperature, value);
}
#endregion
#region 侧板温度温度
private ObservableCollection<string> _outsideTemperature = new ObservableCollection<string>();
public ObservableCollection<string> OutsideTemperature
{
get => _outsideTemperature;
set => SetProperty(ref _outsideTemperature, value);
}
#endregion
#region 夹具节拍
private ObservableCollection<int> _beat = new ObservableCollection<int>();
public ObservableCollection<int> Beat
{
get => _beat;
set => SetProperty(ref _beat, value);
}
#endregion
/// <summary>
/// 初始化发泡数据
/// </summary>
/// <returns></returns>
public async Task InitData()
{
int total = 0;
var list = await _boxFoamDataServices.QueryAsync();
foreach (var item in list)
{
if (item.BoxFixturestatus == 1) StatusColor.Add("Green");
if (item.BoxFixturestatus == 0) StatusColor.Add("Red");
FixtureName.Add(item.BoxFixturetype);
Production.Add(item.BoxFixtureproduction.ToString());
FoamVolume.Add(item.FoamVolume);
InternalTemperature.Add(item.BoxClosebetatemperature.ToString());
OutsideTemperature.Add(item.BoxFixturesideplate.ToString());
Beat.Add(item.BoxBeat);
total += item.BoxFixtureproduction;
}
Totle = total;
}
}
}

@ -0,0 +1,96 @@
using Admin.Core.Common;
using Admin.Core.IService;
using Admin.Core.Model;
using Admin.Core.Model.ViewModels;
using Admin.Core.Service;
using CommunityToolkit.Mvvm.ComponentModel;
using CommunityToolkit.Mvvm.Input;
using Microsoft.Extensions.DependencyInjection;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Aucma.Core.BoxFoam.ViewModels
{
public partial class LinerInventoryViewModel : ObservableObject
{
private IBaseSpaceInfoServices _spaceInfoService;
private IBaseSpaceDetailServices _spaceDetailService;
public LinerInventoryViewModel() {
_spaceInfoService = App.ServiceProvider.GetService<IBaseSpaceInfoServices>();
_spaceDetailService = App.ServiceProvider.GetService<IBaseSpaceDetailServices>();
Task.WaitAll(Query());
}
private async Task Query()
{
var storeCode = Appsettings.app("StoreInfo", "StoreCode");
List<BaseSpaceInfo> info = await _spaceInfoService.QueryAsync(d => d.StoreCode.Equals(storeCode));
if (info != null)
{
foreach (BaseSpaceInfo info2 in info)
{
shapes.Add(info2);
}
}
}
/// <summary>
/// 货道明细
/// </summary>
/// <param name="obj"></param>
[RelayCommand]
private async void SpaceDetail(object obj)
{
string info = obj as string;
var storeCode = Appsettings.app("StoreInfo", "StoreCode");
List<BaseSpaceDetail> list =await _spaceDetailService.GetSpaceDetailsBySpaceCode(storeCode, info);
RefreshSpaceDetails(list);
}
/// <summary>
/// 刷新货道明细列表
/// </summary>
/// <param name="spaceDetails"></param>
private void RefreshSpaceDetails(List<BaseSpaceDetail> spaceDetails)
{
SpaceDetailDataGrid = new ObservableCollection<BaseSpaceDetail>();
if (spaceDetails != null)
{
spaceDetails.ForEach(
arg =>
{
SpaceDetailDataGrid.Add(arg);
});
}
}
#region 初始化datagrid
private ObservableCollection<BaseSpaceInfo> shapes = new ObservableCollection<BaseSpaceInfo>();
public ObservableCollection<BaseSpaceInfo> Shapes
{
get { return shapes; }
set
{
shapes = value;
OnPropertyChanged();//属性通知
}
}
#endregion
private ObservableCollection<BaseSpaceDetail> spaceDetailDataGrid;
public ObservableCollection<BaseSpaceDetail> SpaceDetailDataGrid
{
get { return spaceDetailDataGrid; }
set
{
spaceDetailDataGrid = value;
OnPropertyChanged();//属性通知
}
}
}
}

@ -18,6 +18,8 @@ namespace Aucma.Core.BoxFoam.ViewModels
private RealTimeInventoryPageView realTimeInventoryPage = new RealTimeInventoryPageView();
private FoamPlanPageView foamPlanPageView = new FoamPlanPageView();
FoamMonitorPageView foamMonitorPageView = new FoamMonitorPageView();
FoamMachinesPageView foamMachinesPageView = new FoamMachinesPageView();
public MainWindowViewModel()
{
UserContent = firstPage;
@ -132,6 +134,10 @@ namespace Aucma.Core.BoxFoam.ViewModels
case "FoamMonitorPage":
UserContent = foamMonitorPageView;
break;
case "FoamMachinesPage":
UserContent = foamMachinesPageView;
break;
default:
break;
}

@ -12,6 +12,8 @@ namespace Aucma.Core.BoxFoam.ViewModels
public readonly IRecordInStoreServices? _recordInstoreServices;
private BeforeFoamingPageView beforeFoaming = new BeforeFoamingPageView();
private AfterFoamingPageView afterFoaming = new AfterFoamingPageView();
LinerInventory linerInventoryView =new LinerInventory();
ShellInventory shellInventoryView =new ShellInventory();
public RealTimeInventoryPageViewModel()
{
InventoryControl = beforeFoaming;
@ -42,6 +44,12 @@ namespace Aucma.Core.BoxFoam.ViewModels
case "PhInventory":
InventoryControl = afterFoaming;
break;
case "ShellInventory"://壳库
InventoryControl = shellInventoryView;
break;
case "LinerInventory"://胆库
InventoryControl = linerInventoryView;
break;
default:
break;
}

@ -0,0 +1,96 @@
using Admin.Core.Common;
using Admin.Core.IService;
using Admin.Core.Model;
using CommunityToolkit.Mvvm.ComponentModel;
using CommunityToolkit.Mvvm.Input;
using Microsoft.Extensions.DependencyInjection;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Aucma.Core.BoxFoam.ViewModels
{
public partial class ShellInventoryViewModel : ObservableObject
{
private IBaseSpaceInfoServices _spaceInfoService;
private IBaseSpaceDetailServices _spaceDetailService;
public ShellInventoryViewModel()
{
_spaceInfoService = App.ServiceProvider.GetService<IBaseSpaceInfoServices>();
_spaceDetailService = App.ServiceProvider.GetService<IBaseSpaceDetailServices>();
Task.WaitAll(Query());
}
private async Task Query()
{
var storeCode = Appsettings.app("StoreInfo", "StoreCode");
List<BaseSpaceInfo> info = await _spaceInfoService.QueryAsync(d => d.StoreCode.Equals(storeCode));
if (info != null)
{
foreach (BaseSpaceInfo info2 in info)
{
shapes.Add(info2);
}
}
}
/// <summary>
/// 货道明细
/// </summary>
/// <param name="obj"></param>
[RelayCommand]
private async void SpaceDetail(object obj)
{
string info = obj as string;
var storeCode = Appsettings.app("StoreInfo", "StoreCode");
List<BaseSpaceDetail> list = await _spaceDetailService.GetSpaceDetailsBySpaceCode(storeCode, info);
RefreshSpaceDetails(list);
}
/// <summary>
/// 刷新货道明细列表
/// </summary>
/// <param name="spaceDetails"></param>
private void RefreshSpaceDetails(List<BaseSpaceDetail> spaceDetails)
{
SpaceDetailDataGrid = new ObservableCollection<BaseSpaceDetail>();
if (spaceDetails != null)
{
spaceDetails.ForEach(
arg =>
{
SpaceDetailDataGrid.Add(arg);
});
}
}
#region 初始化datagrid
private ObservableCollection<BaseSpaceInfo> shapes = new ObservableCollection<BaseSpaceInfo>();
public ObservableCollection<BaseSpaceInfo> Shapes
{
get { return shapes; }
set
{
shapes = value;
OnPropertyChanged();//属性通知
}
}
#endregion
private ObservableCollection<BaseSpaceDetail> spaceDetailDataGrid;
public ObservableCollection<BaseSpaceDetail> SpaceDetailDataGrid
{
get { return spaceDetailDataGrid; }
set
{
spaceDetailDataGrid = value;
OnPropertyChanged();//属性通知
}
}
}
}

@ -6,7 +6,7 @@
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
xmlns:cvt="clr-namespace:Aucma.Core.BoxFoam.ConvertTo"
xmlns:local="clr-namespace:Aucma.Core.BoxFoam.Views"
mc:Ignorable="d" Background="#1152AC"
mc:Ignorable="d" Background="#1152AC" FontFamily="Microsoft YaHei"
d:DesignHeight="450" d:DesignWidth="800">
<UserControl.Resources>
<cvt:MultiBindingConverter x:Key="QueryConvert"></cvt:MultiBindingConverter>
@ -43,7 +43,7 @@
<Setter Property="HorizontalContentAlignment" Value="Center" />
<Setter Property="BorderBrush" Value="#dddddd" />
<Setter Property="Height" Value="40"/>
<Setter Property="FontSize" Value="14"/>
<Setter Property="FontSize" Value="18"/>
<Setter Property="Background" Value="#4285DE"/>
<Setter Property="Foreground" Value="White"/>
</Style>
@ -105,7 +105,7 @@
<RowDefinition Height="8*"/>
</Grid.RowDefinitions>
<WrapPanel Grid.Row="0" HorizontalAlignment="Left" VerticalAlignment="Center">
<TextBlock Text="开始时间" Margin="10 0" Foreground="White" FontSize="15" VerticalAlignment="Center"/>
<TextBlock Text="开始时间" Margin="10 0" Foreground="White" FontSize="18" VerticalAlignment="Center"/>
<DatePicker
x:Name="BeginTime"
Width="200" Margin="10 0" Text="2023-10-09" BorderBrush="White"
@ -120,7 +120,7 @@
</DatePicker.SelectedDate>
</DatePicker>
<TextBlock Text="结束时间" Margin="10 0" Foreground="White" FontSize="15" VerticalAlignment="Center"/>
<TextBlock Text="结束时间" Margin="10 0" Foreground="White" FontSize="18" VerticalAlignment="Center"/>
<DatePicker
x:Name="EndTime" Margin="10 0" Text="2023-10-09"
Width="200"

@ -0,0 +1,530 @@
<UserControl x:Class="Aucma.Core.BoxFoam.Views.FoamMachinesPageView"
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:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
xmlns:local="clr-namespace:Aucma.Core.BoxFoam.Views"
mc:Ignorable="d"
FontFamily="Microsoft YaHei"
d:DesignHeight="1080"
d:DesignWidth="1920"
Foreground="White"
FontSize="18">
<UserControl.Resources>
<Style x:Key="DataGridTextColumnCenterSytle" TargetType="{x:Type TextBlock}">
<Setter Property="VerticalAlignment" Value="Center" />
<Setter Property="HorizontalAlignment" Value="Left" />
<Setter Property="Margin" Value="5 0 0 0" />
</Style>
<Style TargetType="DataGrid">
<!--网格线颜色-->
<Setter Property="CanUserResizeColumns" Value="false"/>
<Setter Property="Background" Value="#1152AC" />
<Setter Property="BorderBrush" Value="#4285DE" />
<Setter Property="Foreground" Value="White"/>
<Setter Property="HorizontalGridLinesBrush">
<Setter.Value>
<SolidColorBrush Color="#4285DE"/>
</Setter.Value>
</Setter>
<Setter Property="VerticalGridLinesBrush">
<Setter.Value>
<SolidColorBrush Color="#1152AC"/>
</Setter.Value>
</Setter>
</Style>
<!--列头标题栏样式-->
<Style TargetType="DataGridColumnHeader">
<Setter Property="HorizontalContentAlignment" Value="Left" />
<Setter Property="BorderBrush" Value="#dddddd" />
<Setter Property="Height" Value="40"/>
<Setter Property="FontSize" Value="18"/>
<Setter Property="Background" Value="#4285DE"/>
<Setter Property="Foreground" Value="White"/>
</Style>
<!--单元格样式-->
<Style TargetType="DataGridCell">
<Setter Property="FocusVisualStyle" Value="{x:Null}" />
<Setter Property="BorderThickness" Value="0" />
<Setter Property="BorderBrush" Value="Gray" />
<Setter Property="Height" Value="40"/>
<Setter Property="FontSize" Value="18"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type DataGridCell}">
<Grid Background="{TemplateBinding Background}" >
<ContentPresenter HorizontalAlignment="Left" VerticalAlignment="Center" />
</Grid>
</ControlTemplate>
</Setter.Value>
</Setter>
<Style.Triggers>
<Trigger Property="IsSelected" Value="True">
<Setter Property="Background" Value="#4285DE"/>
<Setter Property="Foreground" Value="White"/>
</Trigger>
</Style.Triggers>
</Style>
</UserControl.Resources>
<Border x:Name="HeightHelperPanel" BorderBrush="#0288d1" BorderThickness="0" CornerRadius="5" Background="Transparent" Margin="5">
<Grid>
<Grid.Resources>
<Style TargetType="TextBlock">
<Setter Property="VerticalAlignment" Value="Center"/>
<Setter Property="HorizontalAlignment" Value="Center"/>
<Setter Property="FontSize" Value="16"/>
<Setter Property="FontFamily" Value="Microsoft YaHei"/>
</Style>
<Style TargetType="Border">
<Setter Property="BorderBrush" Value="#0288d1"/>
<Setter Property="BorderThickness" Value="1"/>
</Style>
</Grid.Resources>
<Grid.RowDefinitions>
<RowDefinition Height="*" />
<RowDefinition Height="0.6*" />
</Grid.RowDefinitions>
<Border Grid.Row="0" BorderBrush="#0288d1" BorderThickness="1" CornerRadius="5" Background="Transparent" Margin="1,1,5,5">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition />
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<Border Grid.Column="0" BorderBrush="#0288d1" BorderThickness="1" CornerRadius="5">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="0.08*" />
<RowDefinition />
</Grid.RowDefinitions>
<Border Grid.Row="0" BorderBrush="#0288d1" BorderThickness="1" CornerRadius="0" Background="#1157b9" Margin="1,1,5,5" >
<TextBlock Text="1系统" FontSize="23" FontWeight="Bold" Foreground="White" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Border>
<Border Grid.Row="1" BorderBrush="#0288d1" BorderThickness="0" CornerRadius="5" Background="Transparent" Margin="1,1,5,5">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<Border Grid.Row="0" BorderBrush="#0288d1" BorderThickness="0" CornerRadius="5" Background="Transparent" Margin="1,1,5,5">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="*"/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="*" />
<RowDefinition Height="*" />
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<StackPanel Grid.Column="0" Grid.Row="0" VerticalAlignment="Center"/>
<StackPanel Grid.Column="1" Grid.Row="0" VerticalAlignment="Center" HorizontalAlignment="Center">
<TextBlock Text="POL" FontSize="18" FontWeight="Bold" Foreground="White" />
</StackPanel>
<StackPanel Grid.Row="0" Grid.Column="2" Grid.ColumnSpan="3" VerticalAlignment="Center" HorizontalAlignment="Center" >
<TextBlock Text="ISO" FontSize="18" FontWeight="Bold" Foreground="White"/>
</StackPanel>
<StackPanel Grid.Column="0" Grid.Row="1" VerticalAlignment="Center" HorizontalAlignment="Right" >
<TextBlock Text="输入压力" FontSize="18" Foreground="White"/>
</StackPanel>
<WrapPanel Grid.Column="1" Grid.Row="1" VerticalAlignment="Center" HorizontalAlignment="Center">
<TextBlock Text="{Binding PolInputPressure1}" FontSize="18" Margin="0 0 18 0" Foreground="Black" Width="50"/>
<TextBlock Text="MPa" FontSize="18" Foreground="White" />
</WrapPanel>
<WrapPanel Grid.Column="2" Grid.Row="1" VerticalAlignment="Center" HorizontalAlignment="Center">
<TextBlock Text="{Binding IsoInputPressure1}" FontSize="18" Margin="0 0 18 0" Foreground="Black" Width="50"/>
<TextBlock Text="MPa" FontSize="18" Foreground="White"/>
</WrapPanel>
<WrapPanel Grid.Column="0" Grid.Row="2" VerticalAlignment="Center" HorizontalAlignment="Right">
<TextBlock Text="输出压力" FontSize="18" Foreground="White"/>
</WrapPanel>
<WrapPanel Grid.Column="1" Grid.Row="2" VerticalAlignment="Center" HorizontalAlignment="Center">
<TextBlock Text="{Binding PolOutputPressure1}" FontSize="18" Margin="0 0 18 0" Foreground="Black" Width="50"/>
<TextBlock Text="MPa" FontSize="18" Foreground="White"/>
</WrapPanel>
<WrapPanel Grid.Column="2" Grid.Row="2" VerticalAlignment="Center" HorizontalAlignment="Center">
<TextBlock Text="{Binding IsoOutputPressure1}" FontSize="18" Margin="0 0 18 0" Foreground="Black" Width="50"/>
<TextBlock Text="MPa" FontSize="18" Foreground="White"/>
</WrapPanel>
<WrapPanel Grid.Column="0" Grid.Row="3" VerticalAlignment="Center" HorizontalAlignment="Right">
<TextBlock Text="流量" FontSize="18" Foreground="White"/>
</WrapPanel>
<WrapPanel Grid.Column="1" Grid.Row="3" VerticalAlignment="Center" HorizontalAlignment="Center">
<TextBlock Text="{Binding PolFlow1}" FontSize="18" Margin="0 0 18 0" Foreground="Black" Width="50"/>
<TextBlock Text="g/s" FontSize="18" Foreground="White"/>
</WrapPanel>
<WrapPanel Grid.Column="2" Grid.Row="3" VerticalAlignment="Center" HorizontalAlignment="Center">
<TextBlock Text="{Binding IsoFlow1}" FontSize="18" Margin="0 0 18 0" Foreground="Black" Width="50"/>
<TextBlock Text="g/s" FontSize="18" Foreground="White" />
</WrapPanel>
<WrapPanel Grid.Column="0" Grid.Row="4" VerticalAlignment="Center" HorizontalAlignment="Right">
<TextBlock Text="温度" FontSize="18" Foreground="White"/>
</WrapPanel>
<WrapPanel Grid.Column="1" Grid.Row="4" VerticalAlignment="Center" HorizontalAlignment="Center">
<TextBlock Text="{Binding PoleTmperature1}" FontSize="18" Margin="0 0 18 0" Foreground="Black" Width="50"/>
<TextBlock Text="℃" FontSize="18" Foreground="White" />
</WrapPanel>
<WrapPanel Grid.Column="2" Grid.Row="4" VerticalAlignment="Center" HorizontalAlignment="Center">
<TextBlock Text="{Binding IsoTemperature1}" FontSize="18" Margin="0 0 18 0" Foreground="Black"/>
<TextBlock Text="℃" FontSize="18" Foreground="White"/>
</WrapPanel>
<WrapPanel Grid.Column="0" Grid.Row="5" VerticalAlignment="Center" HorizontalAlignment="Right">
<TextBlock Text="料位" FontSize="18" Foreground="White"/>
</WrapPanel>
<WrapPanel Grid.Column="1" Grid.Row="5" VerticalAlignment="Center" HorizontalAlignment="Center">
<TextBlock Text="{Binding PolMaterialLevel1}" FontSize="18" Margin="0 0 18 0" Foreground="Black" Width="50"/>
<TextBlock Text="%" FontSize="18" Foreground="White"/>
</WrapPanel>
<WrapPanel Grid.Column="2" Grid.Row="5" VerticalAlignment="Center" HorizontalAlignment="Center">
<TextBlock Text="{Binding IsoMaterialLevel1}" FontSize="18" Margin="0 0 18 0" Foreground="Black" Width="50"/>
<TextBlock Text="%" FontSize="18" Foreground="White"/>
</WrapPanel>
<Border Grid.Column="0" Grid.Row="6" Grid.ColumnSpan="3" BorderBrush="#0288d1" BorderThickness="1" CornerRadius="0" Background="#1157b9" >
<TextBlock Text="液压" FontSize="18" FontWeight="Bold" Foreground="White"/>
</Border>
<WrapPanel Grid.Column="0" Grid.Row="7" VerticalAlignment="Center" HorizontalAlignment="Right">
<TextBlock Text="压力" FontSize="18" Foreground="White"/>
</WrapPanel>
<WrapPanel Grid.Column="1" Grid.Row="7" VerticalAlignment="Center" HorizontalAlignment="Center">
<TextBlock Text="{Binding Pressure1}" FontSize="18" Margin="0 0 18 0" Foreground="Black" Width="50"/>
<TextBlock Text="MPa" FontSize="18" Foreground="White"/>
</WrapPanel>
<WrapPanel Grid.Column="0" Grid.Row="8" VerticalAlignment="Center" HorizontalAlignment="Right">
<TextBlock Text="温度" FontSize="18" Foreground="White"/>
</WrapPanel>
<WrapPanel Grid.Column="1" Grid.Row="8" VerticalAlignment="Center" HorizontalAlignment="Center">
<TextBlock Text="{Binding Temperature1}" FontSize="18" Margin="0 0 18 0" Foreground="Black" Width="50"/>
<TextBlock Text="℃" FontSize="18" Foreground="White"/>
</WrapPanel>
<Border Grid.Column="0" Grid.Row="9" BorderBrush="#0288d1" BorderThickness="1" CornerRadius="0" Background="#1157b9">
<TextBlock Text="" FontSize="18" FontWeight="Bold" Foreground="White"/>
</Border>
<Border Grid.Column="1" Grid.Row="9" BorderBrush="#0288d1" BorderThickness="1" CornerRadius="0" Background="#1157b9">
<TextBlock Text="A枪" FontSize="18" FontWeight="Bold" Foreground="White"/>
</Border>
<Border Grid.Column="2" Grid.Row="9" BorderBrush="#0288d1" BorderThickness="1" CornerRadius="0" Background="#1157b9">
<TextBlock Text="B枪" FontSize="18" FontWeight="Bold" Foreground="White"/>
</Border>
<WrapPanel Grid.Column="0" Grid.Row="10" VerticalAlignment="Center" HorizontalAlignment="Right">
<TextBlock Text="状态" FontSize="18" Foreground="White"/>
</WrapPanel>
<WrapPanel Grid.Column="1" Grid.Row="10" VerticalAlignment="Center" HorizontalAlignment="Center">
<TextBlock Text="{Binding Status1}" FontSize="18" Margin="0 0 18 0" Foreground="White" Width="50"/>
</WrapPanel>
<WrapPanel Grid.Column="2" Grid.Row="10" VerticalAlignment="Center" HorizontalAlignment="Center">
<TextBlock Text="{Binding Status11}" FontSize="18" Margin="0 0 18 0" Foreground="White" Width="50"/>
</WrapPanel>
<WrapPanel Grid.Column="0" Grid.Row="11" VerticalAlignment="Center" HorizontalAlignment="Right">
<TextBlock Text="POL压力" FontSize="18" Foreground="White"/>
</WrapPanel>
<WrapPanel Grid.Column="1" Grid.Row="11" VerticalAlignment="Center" HorizontalAlignment="Center">
<TextBlock Text="{Binding POLPressure1}" FontSize="18" Margin="0 0 18 0" Foreground="Black" Width="50"/>
<TextBlock Text="MPa" FontSize="18" Foreground="White"/>
</WrapPanel>
<WrapPanel Grid.Column="2" Grid.Row="11" VerticalAlignment="Center" HorizontalAlignment="Center">
<TextBlock Text="{Binding POLPressure1}" FontSize="18" Margin="0 0 18 0" Foreground="Black" Width="50"/>
<TextBlock Text="MPa" FontSize="18" Foreground="White"/>
</WrapPanel>
<WrapPanel Grid.Column="0" Grid.Row="12" VerticalAlignment="Center" HorizontalAlignment="Right">
<TextBlock Text="POL温度" FontSize="18" Foreground="White"/>
</WrapPanel>
<WrapPanel Grid.Column="1" Grid.Row="12" VerticalAlignment="Center" HorizontalAlignment="Center">
<TextBlock Text="{Binding POLTemperature1}" FontSize="18" Margin="0 0 18 0" Foreground="Black" Width="50"/>
<TextBlock Text="℃" FontSize="18" Foreground="White"/>
</WrapPanel>
<WrapPanel Grid.Column="2" Grid.Row="12" VerticalAlignment="Center" HorizontalAlignment="Center">
<TextBlock Text="{Binding POLTemperature11}" FontSize="18" Margin="0 0 18 0" Foreground="Black" Width="50"/>
<TextBlock Text="℃" FontSize="18" Foreground="White"/>
</WrapPanel>
<WrapPanel Grid.Column="0" Grid.Row="13" VerticalAlignment="Center" HorizontalAlignment="Right">
<TextBlock Text="ISO压力" FontSize="18" Foreground="White"/>
</WrapPanel>
<WrapPanel Grid.Column="1" Grid.Row="13" VerticalAlignment="Center" HorizontalAlignment="Center">
<TextBlock Text="{Binding ISOPressure1}" FontSize="18" Margin="0 0 18 0" Foreground="Black" Width="50"/>
<TextBlock Text="MPa" FontSize="18" Foreground="White"/>
</WrapPanel>
<WrapPanel Grid.Column="2" Grid.Row="13" VerticalAlignment="Center" HorizontalAlignment="Center">
<TextBlock Text="{Binding ISOPressure11}" FontSize="18" Margin="0 0 18 0" Foreground="Black" Width="50"/>
<TextBlock Text="℃" FontSize="18" Foreground="White"/>
</WrapPanel>
<WrapPanel Grid.Column="0" Grid.Row="14" VerticalAlignment="Center" HorizontalAlignment="Right">
<TextBlock Text="ISO温度" FontSize="18" Foreground="White"/>
</WrapPanel>
<WrapPanel Grid.Column="1" Grid.Row="14" VerticalAlignment="Center" HorizontalAlignment="Center">
<TextBlock Text="{Binding ISOTemperature11}" FontSize="18" Margin="0 0 18 0" Foreground="Black" Width="50"/>
<TextBlock Text="℃" FontSize="18" Foreground="White"/>
</WrapPanel>
<WrapPanel Grid.Column="2" Grid.Row="14" VerticalAlignment="Center" HorizontalAlignment="Center">
<TextBlock Text="{Binding ISOTemperature11}" FontSize="18" Margin="0 0 18 0" Foreground="Black" Width="50"/>
<TextBlock Text="℃" FontSize="18" Foreground="White"/>
</WrapPanel>
</Grid>
</Border>
</Grid>
</Border>
</Grid>
</Border>
<Border Grid.Column="1" BorderBrush="#0288d1" BorderThickness="1" CornerRadius="5">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="0.08*" />
<RowDefinition />
</Grid.RowDefinitions>
<Border Grid.Row="0" BorderBrush="#0288d1" BorderThickness="1" CornerRadius="0" Background="#1157b9" Margin="1,1,5,5" >
<TextBlock Text="1系统" FontSize="23" FontWeight="Bold" Foreground="White" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Border>
<Border Grid.Row="1" BorderBrush="#0288d1" BorderThickness="0" CornerRadius="5" Background="Transparent" Margin="1,1,5,5">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<Border Grid.Row="0" BorderBrush="#0288d1" BorderThickness="0" CornerRadius="5" Background="Transparent" Margin="1,1,5,5">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="*"/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="*" />
<RowDefinition Height="*" />
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<StackPanel Grid.Column="0" Grid.Row="0" VerticalAlignment="Center"/>
<StackPanel Grid.Column="1" Grid.Row="0" VerticalAlignment="Center" HorizontalAlignment="Center">
<TextBlock Text="POL" FontSize="18" FontWeight="Bold" Foreground="White" />
</StackPanel>
<StackPanel Grid.Row="0" Grid.Column="2" Grid.ColumnSpan="3" VerticalAlignment="Center" HorizontalAlignment="Center" >
<TextBlock Text="ISO" FontSize="18" FontWeight="Bold" Foreground="White"/>
</StackPanel>
<StackPanel Grid.Column="0" Grid.Row="1" VerticalAlignment="Center" HorizontalAlignment="Right" >
<TextBlock Text="输入压力" FontSize="18" Foreground="White"/>
</StackPanel>
<WrapPanel Grid.Column="1" Grid.Row="1" VerticalAlignment="Center" HorizontalAlignment="Center">
<TextBlock Text="{Binding PolInputPressure2}" FontSize="18" Margin="0 0 18 0" Foreground="Black" Width="50"/>
<TextBlock Text="MPa" FontSize="18" Foreground="White" />
</WrapPanel>
<WrapPanel Grid.Column="2" Grid.Row="1" VerticalAlignment="Center" HorizontalAlignment="Center">
<TextBlock Text="{Binding IsoInputPressure2}" FontSize="18" Margin="0 0 18 0" Foreground="Black" Width="50"/>
<TextBlock Text="MPa" FontSize="18" Foreground="White"/>
</WrapPanel>
<WrapPanel Grid.Column="0" Grid.Row="2" VerticalAlignment="Center" HorizontalAlignment="Right">
<TextBlock Text="输出压力" FontSize="18" Foreground="White"/>
</WrapPanel>
<WrapPanel Grid.Column="1" Grid.Row="2" VerticalAlignment="Center" HorizontalAlignment="Center">
<TextBlock Text="{Binding PolOutputPressure2}" FontSize="18" Margin="0 0 18 0" Foreground="Black" Width="50"/>
<TextBlock Text="MPa" FontSize="18" Foreground="White"/>
</WrapPanel>
<WrapPanel Grid.Column="2" Grid.Row="2" VerticalAlignment="Center" HorizontalAlignment="Center">
<TextBlock Text="{Binding IsoOutputPressure2}" FontSize="18" Margin="0 0 18 0" Foreground="Black" Width="50"/>
<TextBlock Text="MPa" FontSize="18" Foreground="White"/>
</WrapPanel>
<WrapPanel Grid.Column="0" Grid.Row="3" VerticalAlignment="Center" HorizontalAlignment="Right">
<TextBlock Text="流量" FontSize="18" Foreground="White"/>
</WrapPanel>
<WrapPanel Grid.Column="1" Grid.Row="3" VerticalAlignment="Center" HorizontalAlignment="Center">
<TextBlock Text="{Binding PolFlow2}" FontSize="18" Margin="0 0 18 0" Foreground="Black" Width="50"/>
<TextBlock Text="g/s" FontSize="18" Foreground="White"/>
</WrapPanel>
<WrapPanel Grid.Column="2" Grid.Row="3" VerticalAlignment="Center" HorizontalAlignment="Center">
<TextBlock Text="{Binding IsoFlow2}" FontSize="18" Margin="0 0 18 0" Foreground="Black" Width="50"/>
<TextBlock Text="g/s" FontSize="18" Foreground="White" />
</WrapPanel>
<WrapPanel Grid.Column="0" Grid.Row="4" VerticalAlignment="Center" HorizontalAlignment="Right">
<TextBlock Text="温度" FontSize="18" Foreground="White"/>
</WrapPanel>
<WrapPanel Grid.Column="1" Grid.Row="4" VerticalAlignment="Center" HorizontalAlignment="Center">
<TextBlock Text="{Binding PoleTmperature2}" FontSize="18" Margin="0 0 18 0" Foreground="Black" Width="50"/>
<TextBlock Text="℃" FontSize="18" Foreground="White" />
</WrapPanel>
<WrapPanel Grid.Column="2" Grid.Row="4" VerticalAlignment="Center" HorizontalAlignment="Center">
<TextBlock Text="{Binding IsoTemperature2}" FontSize="18" Margin="0 0 18 0" Foreground="Black"/>
<TextBlock Text="℃" FontSize="18" Foreground="White"/>
</WrapPanel>
<WrapPanel Grid.Column="0" Grid.Row="5" VerticalAlignment="Center" HorizontalAlignment="Right">
<TextBlock Text="料位" FontSize="18" Foreground="White"/>
</WrapPanel>
<WrapPanel Grid.Column="1" Grid.Row="5" VerticalAlignment="Center" HorizontalAlignment="Center">
<TextBlock Text="{Binding PolMaterialLevel2}" FontSize="18" Margin="0 0 18 0" Foreground="Black" Width="50"/>
<TextBlock Text="%" FontSize="18" Foreground="White"/>
</WrapPanel>
<WrapPanel Grid.Column="2" Grid.Row="5" VerticalAlignment="Center" HorizontalAlignment="Center">
<TextBlock Text="{Binding IsoMaterialLevel2}" FontSize="18" Margin="0 0 18 0" Foreground="Black" Width="50"/>
<TextBlock Text="%" FontSize="18" Foreground="White"/>
</WrapPanel>
<Border Grid.Column="0" Grid.Row="6" Grid.ColumnSpan="3" BorderBrush="#0288d1" BorderThickness="1" CornerRadius="0" Background="#1157b9" >
<TextBlock Text="液压" FontSize="18" FontWeight="Bold" Foreground="White"/>
</Border>
<WrapPanel Grid.Column="0" Grid.Row="7" VerticalAlignment="Center" HorizontalAlignment="Right">
<TextBlock Text="压力" FontSize="18" Foreground="White"/>
</WrapPanel>
<WrapPanel Grid.Column="1" Grid.Row="7" VerticalAlignment="Center" HorizontalAlignment="Center">
<TextBlock Text="{Binding Pressure2}" FontSize="18" Margin="0 0 18 0" Foreground="Black" Width="50"/>
<TextBlock Text="MPa" FontSize="18" Foreground="White"/>
</WrapPanel>
<WrapPanel Grid.Column="0" Grid.Row="8" VerticalAlignment="Center" HorizontalAlignment="Right">
<TextBlock Text="温度" FontSize="18" Foreground="White"/>
</WrapPanel>
<WrapPanel Grid.Column="1" Grid.Row="8" VerticalAlignment="Center" HorizontalAlignment="Center">
<TextBlock Text="{Binding Temperature2}" FontSize="18" Margin="0 0 18 0" Foreground="Black" Width="50"/>
<TextBlock Text="℃" FontSize="18" Foreground="White"/>
</WrapPanel>
<Border Grid.Column="0" Grid.Row="9" BorderBrush="#0288d1" BorderThickness="1" CornerRadius="0" Background="#1157b9">
<TextBlock Text="" FontSize="18" FontWeight="Bold" Foreground="White"/>
</Border>
<Border Grid.Column="1" Grid.Row="9" BorderBrush="#0288d1" BorderThickness="1" CornerRadius="0" Background="#1157b9">
<TextBlock Text="A枪" FontSize="18" FontWeight="Bold" Foreground="White"/>
</Border>
<Border Grid.Column="2" Grid.Row="9" BorderBrush="#0288d1" BorderThickness="1" CornerRadius="0" Background="#1157b9">
<TextBlock Text="B枪" FontSize="18" FontWeight="Bold" Foreground="White"/>
</Border>
<WrapPanel Grid.Column="0" Grid.Row="10" VerticalAlignment="Center" HorizontalAlignment="Right">
<TextBlock Text="状态" FontSize="18" Foreground="White"/>
</WrapPanel>
<WrapPanel Grid.Column="1" Grid.Row="10" VerticalAlignment="Center" HorizontalAlignment="Center">
<TextBlock Text="{Binding Status2}" FontSize="18" Margin="0 0 18 0" Foreground="White" Width="50"/>
</WrapPanel>
<WrapPanel Grid.Column="2" Grid.Row="10" VerticalAlignment="Center" HorizontalAlignment="Center">
<TextBlock Text="{Binding Status22}" FontSize="18" Margin="0 0 18 0" Foreground="White" Width="50"/>
</WrapPanel>
<WrapPanel Grid.Column="0" Grid.Row="11" VerticalAlignment="Center" HorizontalAlignment="Right">
<TextBlock Text="POL压力" FontSize="18" Foreground="White"/>
</WrapPanel>
<WrapPanel Grid.Column="0" Grid.Row="11" VerticalAlignment="Center" HorizontalAlignment="Right">
<TextBlock Text="POL压力" FontSize="18" Foreground="White"/>
</WrapPanel>
<WrapPanel Grid.Column="1" Grid.Row="11" VerticalAlignment="Center" HorizontalAlignment="Center">
<TextBlock Text="{Binding POLPressure2}" FontSize="18" Margin="0 0 18 0" Foreground="Black" Width="50"/>
<TextBlock Text="MPa" FontSize="18" Foreground="White"/>
</WrapPanel>
<WrapPanel Grid.Column="2" Grid.Row="11" VerticalAlignment="Center" HorizontalAlignment="Center">
<TextBlock Text="{Binding POLPressure22}" FontSize="18" Margin="0 0 18 0" Foreground="Black" Width="50"/>
<TextBlock Text="MPa" FontSize="18" Foreground="White"/>
</WrapPanel>
<WrapPanel Grid.Column="0" Grid.Row="12" VerticalAlignment="Center" HorizontalAlignment="Right">
<TextBlock Text="POL温度" FontSize="18" Foreground="White"/>
</WrapPanel>
<WrapPanel Grid.Column="1" Grid.Row="12" VerticalAlignment="Center" HorizontalAlignment="Center">
<TextBlock Text="{Binding POLTemperature2}" FontSize="18" Margin="0 0 18 0" Foreground="Black" Width="50"/>
<TextBlock Text="℃" FontSize="18" Foreground="White"/>
</WrapPanel>
<WrapPanel Grid.Column="2" Grid.Row="12" VerticalAlignment="Center" HorizontalAlignment="Center">
<TextBlock Text="{Binding POLTemperature22}" FontSize="18" Margin="0 0 18 0" Foreground="Black" Width="50"/>
<TextBlock Text="℃" FontSize="18" Foreground="White"/>
</WrapPanel>
<WrapPanel Grid.Column="0" Grid.Row="13" VerticalAlignment="Center" HorizontalAlignment="Right">
<TextBlock Text="ISO压力" FontSize="18" Foreground="White"/>
</WrapPanel>
<WrapPanel Grid.Column="1" Grid.Row="13" VerticalAlignment="Center" HorizontalAlignment="Center">
<TextBlock Text="{Binding ISOPressure2}" FontSize="18" Margin="0 0 18 0" Foreground="Black" Width="50"/>
<TextBlock Text="MPa" FontSize="18" Foreground="White"/>
</WrapPanel>
<WrapPanel Grid.Column="2" Grid.Row="13" VerticalAlignment="Center" HorizontalAlignment="Center">
<TextBlock Text="{Binding ISOPressure22}" FontSize="18" Margin="0 0 18 0" Foreground="Black" Width="50"/>
<TextBlock Text="MPa" FontSize="18" Foreground="White"/>
</WrapPanel>
<WrapPanel Grid.Column="0" Grid.Row="14" VerticalAlignment="Center" HorizontalAlignment="Right">
<TextBlock Text="ISO温度" FontSize="18" Foreground="White"/>
</WrapPanel>
<WrapPanel Grid.Column="1" Grid.Row="14" VerticalAlignment="Center" HorizontalAlignment="Center">
<TextBlock Text="{Binding ISOTemperature22}" FontSize="18" Margin="0 0 18 0" Foreground="Black" Width="50"/>
<TextBlock Text="℃" FontSize="18" Foreground="White"/>
</WrapPanel>
<WrapPanel Grid.Column="2" Grid.Row="14" VerticalAlignment="Center" HorizontalAlignment="Center">
<TextBlock Text="{Binding ISOTemperature222}" FontSize="18" Margin="0 0 18 0" Foreground="Black" Width="50"/>
<TextBlock Text="℃" FontSize="18" Foreground="White"/>
</WrapPanel>
</Grid>
</Border>
</Grid>
</Border>
</Grid>
</Border>
</Grid>
</Border>
<Border Grid.Row="1" BorderBrush="#0288d1" BorderThickness="1" CornerRadius="5" Background="Transparent" Margin="1,1,5,5">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="auto"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<DataGrid Grid.Row="0" ItemsSource="{Binding LastShotRecordDataGrid}" Background="#00000000"
ColumnHeaderHeight="40"
RowHeight="50" AutoGenerateColumns="False" RowHeaderWidth="0" FontSize="20"
GridLinesVisibility="None" ScrollViewer.HorizontalScrollBarVisibility="Auto"
ScrollViewer.VerticalScrollBarVisibility="Auto" BorderThickness="0" CanUserAddRows="False" SelectionMode="Single" IsReadOnly="True"
Foreground="White" >
<!--修改选中字体颜色-->
<DataGrid.Columns>
<DataGridTextColumn Binding="{Binding No}" Header="编号" Width="1*" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}"/>
<DataGridTextColumn Binding="{Binding System}" Header="系统" Width="1*" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}"/>
<DataGridTextColumn Binding="{Binding PolInjectionpressure}" Header="POL注料压力" Width="1*" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}"/>
<DataGridTextColumn Binding="{Binding IsoInjectionpressure}" Header="ISO注料压力" Width="1*" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}" />
<DataGridTextColumn Binding="{Binding PolInjectiontemperature}" Header="POL注料温度" Width="2*" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}" />
<DataGridTextColumn Binding="{Binding IsoInjectiontemperature}" Header="ISO注料温度" Width="*" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}"/>
<DataGridTextColumn Binding="{Binding LastTime ,StringFormat=\{0:MM-dd HH:mm\}}" Header="最后时间" Width="1.5*" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}"/>
</DataGrid.Columns>
</DataGrid>
</Grid>
</Border>
</Grid>
</Border>
</UserControl>

@ -0,0 +1,30 @@
using Aucma.Core.BoxFoam.ViewModels;
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 Aucma.Core.BoxFoam.Views
{
/// <summary>
/// FoamMachinesPageView.xaml 的交互逻辑
/// </summary>
public partial class FoamMachinesPageView : UserControl
{
public FoamMachinesPageView()
{
InitializeComponent();
this.DataContext = new FoamMachinesPageViewModel();
}
}
}

@ -5,7 +5,7 @@
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:Aucma.Core.BoxFoam.Views"
xmlns:lvc="clr-namespace:LiveCharts.Wpf;assembly=LiveCharts.Wpf"
mc:Ignorable="d"
mc:Ignorable="d" FontFamily="Microsoft YaHei"
d:DesignHeight="1080"
d:DesignWidth="1920">
@ -52,227 +52,387 @@
<RowDefinition/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="0.5*"/>
<ColumnDefinition Width="0.5*"/>
<ColumnDefinition Width="2*"/>
<ColumnDefinition/>
<ColumnDefinition/>
<ColumnDefinition/>
<ColumnDefinition/>
<ColumnDefinition/>
<ColumnDefinition/>
<ColumnDefinition Width="0.5*"/>
<ColumnDefinition Width="0.5*"/>
<ColumnDefinition Width="2*"/>
<ColumnDefinition/>
<ColumnDefinition/>
<ColumnDefinition/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<Border Grid.Row="0" Grid.ColumnSpan="4" Background="#1157b9">
<TextBlock Text="发泡线(南)" Foreground="White" FontSize="20"/>
<Border Grid.Row="0" Grid.ColumnSpan="5" Background="#1157b9">
<TextBlock Text="发泡线(南)" Foreground="White" FontSize="18" FontWeight="Bold"/>
</Border>
<Border Grid.Row="1" Grid.Column="0" Background="#1157b9">
<TextBlock Text="夹具号" Foreground="White" FontSize="20"/>
<TextBlock Text="夹具号" Foreground="White" FontSize="18" FontWeight="Bold"/>
</Border>
<Border Grid.Row="2" Grid.Column="0" Background="#1157b9">
<TextBlock Text="1" Foreground="White" FontSize="20"/>
<TextBlock Text="1" Foreground="White" FontSize="18" FontWeight="Bold"/>
</Border>
<Border Grid.Row="3" Grid.Column="0" Background="#1157b9">
<TextBlock Text="2" Foreground="White" FontSize="20"/>
<TextBlock Text="2" Foreground="White" FontSize="18" FontWeight="Bold"/>
</Border>
<Border Grid.Row="4" Grid.Column="0" Background="#1157b9">
<TextBlock Text="3" Foreground="White" FontSize="20"/>
<TextBlock Text="3" Foreground="White" FontSize="18" FontWeight="Bold"/>
</Border>
<Border Grid.Row="5" Grid.Column="0" Background="#1157b9">
<TextBlock Text="4" Foreground="White" FontSize="20"/>
<TextBlock Text="4" Foreground="White" FontSize="18" FontWeight="Bold"/>
</Border>
<Border Grid.Row="6" Grid.Column="0" Background="#1157b9">
<TextBlock Text="5" Foreground="White" FontSize="20"/>
<TextBlock Text="5" Foreground="White" FontSize="18" FontWeight="Bold"/>
</Border>
<Border Grid.Row="7" Grid.Column="0" Background="#1157b9">
<TextBlock Text="6" Foreground="White" FontSize="20"/>
<TextBlock Text="6" Foreground="White" FontSize="18" FontWeight="Bold"/>
</Border>
<Border Grid.Row="1" Grid.Column="1" Background="#1157b9">
<TextBlock Text="状态" Foreground="White" FontSize="20"/>
<TextBlock Text="状态" Foreground="White" FontSize="18" FontWeight="Bold"/>
</Border>
<Border Grid.Row="2" Grid.Column="1" Background="#1157b9">
<Path Data="M 5,5 A 15,15 45 1 1 0,1 Z" Stroke="{Binding Color[0]}" StrokeThickness="1" Fill="{Binding Color[0]}" VerticalAlignment="Center" HorizontalAlignment="Center"/>
<Border Grid.Row="2" Grid.Column="1" >
<Path Data="M 5,5 A 15,15 45 1 1 0,1 Z" Stroke="{Binding StatusColor[0]}" StrokeThickness="1" Fill="{Binding StatusColor[0]}" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Border>
<Border Grid.Row="3" Grid.Column="1" Background="#1157b9">
<Path Data="M 5,5 A 15,15 45 1 1 0,1 Z" Stroke="{Binding Color[1]}" StrokeThickness="1" Fill="{Binding Color[1]}" VerticalAlignment="Center" HorizontalAlignment="Center"/>
<Border Grid.Row="3" Grid.Column="1" >
<Path Data="M 5,5 A 15,15 45 1 1 0,1 Z" Stroke="{Binding StatusColor[1]}" StrokeThickness="1" Fill="{Binding StatusColor[1]}" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Border>
<Border Grid.Row="4" Grid.Column="1" Background="#1157b9">
<Path Data="M 5,5 A 15,15 45 1 1 0,1 Z" Stroke="{Binding Color[2]}" StrokeThickness="1" Fill="{Binding Color[2]}" VerticalAlignment="Center" HorizontalAlignment="Center"/>
<Border Grid.Row="4" Grid.Column="1" >
<Path Data="M 5,5 A 15,15 45 1 1 0,1 Z" Stroke="{Binding StatusColor[2]}" StrokeThickness="1" Fill="{Binding StatusColor[2]}" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Border>
<Border Grid.Row="5" Grid.Column="1" Background="#1157b9">
<Path Data="M 5,5 A 15,15 45 1 1 0,1 Z" Stroke="{Binding Color[3]}" StrokeThickness="1" Fill="{Binding Color[3]}" VerticalAlignment="Center" HorizontalAlignment="Center"/>
<Border Grid.Row="5" Grid.Column="1" >
<Path Data="M 5,5 A 15,15 45 1 1 0,1 Z" Stroke="{Binding StatusColor[3]}" StrokeThickness="1" Fill="{Binding StatusColor[3]}" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Border>
<Border Grid.Row="6" Grid.Column="1" Background="#1157b9">
<Path Data="M 5,5 A 15,15 45 1 1 0,1 Z" Stroke="{Binding Color[4]}" StrokeThickness="1" Fill="{Binding Color[4]}" VerticalAlignment="Center" HorizontalAlignment="Center"/>
<Border Grid.Row="6" Grid.Column="1" >
<Path Data="M 5,5 A 15,15 45 1 1 0,1 Z" Stroke="{Binding StatusColor[4]}" StrokeThickness="1" Fill="{Binding StatusColor[4]}" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Border>
<Border Grid.Row="7" Grid.Column="1" Background="#1157b9">
<Path Data="M 5,5 A 15,15 45 1 1 0,1 Z" Stroke="{Binding Color[5]}" StrokeThickness="1" Fill="{Binding Color[5]}" VerticalAlignment="Center" HorizontalAlignment="Center"/>
<Border Grid.Row="7" Grid.Column="1" >
<Path Data="M 5,5 A 15,15 45 1 1 0,1 Z" Stroke="{Binding StatusColor[5]}" StrokeThickness="1" Fill="{Binding StatusColor[5]}" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Border>
<Border Grid.Row="1" Grid.Column="2" Background="#1157b9">
<TextBlock Text="发泡型号" Foreground="White" FontSize="20"/>
<TextBlock Text="发泡型号" Foreground="White" FontSize="18" FontWeight="Bold"/>
</Border>
<Border Grid.Row="2" Grid.Column="2" >
<TextBlock Text="1#夹具" Foreground="White" FontSize="18"/>
<TextBlock Text="{Binding FixtureName[0]}" Foreground="White" FontSize="18"/>
</Border>
<Border Grid.Row="3" Grid.Column="2">
<TextBlock Text="2#夹具" Foreground="White" FontSize="18"/>
<TextBlock Text="{Binding FixtureName[1]}" Foreground="White" FontSize="18"/>
</Border>
<Border Grid.Row="4" Grid.Column="2">
<TextBlock Text="3#夹具" Foreground="White" FontSize="18"/>
<TextBlock Text="{Binding FixtureName[2]}" Foreground="White" FontSize="18"/>
</Border>
<Border Grid.Row="5" Grid.Column="2">
<TextBlock Text="4#夹具" Foreground="White" FontSize="18"/>
<TextBlock Text="{Binding FixtureName[3]}" Foreground="White" FontSize="18"/>
</Border>
<Border Grid.Row="6" Grid.Column="2">
<TextBlock Text="5#夹具" Foreground="White" FontSize="18"/>
<TextBlock Text="{Binding FixtureName[4]}" Foreground="White" FontSize="18" FontWeight="Bold"/>
</Border>
<Border Grid.Row="7" Grid.Column="2">
<TextBlock Text="6#夹具" Foreground="White" FontSize="18"/>
<TextBlock Text="{Binding FixtureName[5]}" Foreground="White" FontSize="18" FontWeight="Bold"/>
</Border>
<Border Grid.Row="1" Grid.Column="3" Background="#1157b9">
<TextBlock Text="夹具产量" Foreground="White" FontSize="20"/>
<TextBlock Text="夹具产量" Foreground="White" FontSize="18" FontWeight="Bold"/>
</Border>
<Border Grid.Row="2" Grid.Column="3" >
<TextBlock Text="{Binding Production[0]}" Foreground="White" FontSize="18" FontWeight="Bold"/>
</Border>
<Border Grid.Row="3" Grid.Column="3">
<TextBlock Text="{Binding Production[1]}" Foreground="White" FontSize="18" FontWeight="Bold"/>
</Border>
<Border Grid.Row="4" Grid.Column="3">
<TextBlock Text="{Binding Production[2]}" Foreground="White" FontSize="18" FontWeight="Bold"/>
</Border>
<Border Grid.Row="5" Grid.Column="3">
<TextBlock Text="{Binding Production[3]}" Foreground="White" FontSize="18" FontWeight="Bold"/>
</Border>
<Border Grid.Row="6" Grid.Column="3">
<TextBlock Text="{Binding Production[4]}" Foreground="White" FontSize="18" FontWeight="Bold"/>
</Border>
<Border Grid.Row="7" Grid.Column="3">
<TextBlock Text="{Binding Production[5]}" Foreground="White" FontSize="18" FontWeight="Bold"/>
</Border>
<Border Grid.Row="0" Grid.Column="4" Grid.ColumnSpan="3" >
<TextBlock Text="0" Foreground="White" FontSize="20"/>
<Border Grid.Row="0" Grid.Column="5" Grid.ColumnSpan="5" >
<TextBlock Text="{Binding Totle,Mode=TwoWay}" Foreground="White" FontSize="30" FontWeight="Bold"/>
</Border>
<Border Grid.Row="1" Grid.Column="4" Background="#1157b9">
<TextBlock Text="内外模温度" Foreground="White" FontSize="20"/>
<TextBlock Text="发泡量" Foreground="White" FontSize="18" FontWeight="Bold"/>
</Border>
<Border Grid.Row="2" Grid.Column="4" >
<TextBlock Text="夹具号" Foreground="White" FontSize="20"/>
<TextBlock Text="{Binding FoamVolume[0]}" Foreground="White" FontSize="18" FontWeight="Bold"/>
</Border>
<Border Grid.Row="3" Grid.Column="4">
<TextBlock Text="{Binding FoamVolume[1]}" Foreground="White" FontSize="18" FontWeight="Bold"/>
</Border>
<Border Grid.Row="4" Grid.Column="4">
<TextBlock Text="{Binding FoamVolume[2]}" Foreground="White" FontSize="18" FontWeight="Bold"/>
</Border>
<Border Grid.Row="5" Grid.Column="4">
<TextBlock Text="{Binding FoamVolume[3]}" Foreground="White" FontSize="18" FontWeight="Bold"/>
</Border>
<Border Grid.Row="6" Grid.Column="4">
<TextBlock Text="{Binding FoamVolume[4]}" Foreground="White" FontSize="18" FontWeight="Bold"/>
</Border>
<Border Grid.Row="7" Grid.Column="4">
<TextBlock Text="{Binding FoamVolume[5]}" Foreground="White" FontSize="18" FontWeight="Bold"/>
</Border>
<Border Grid.Row="0" Grid.Column="7" Grid.ColumnSpan="4" Background="#1157b9">
<TextBlock Text="发泡线(北)" Foreground="White" FontSize="20"/>
<Border Grid.Row="1" Grid.Column="5" Background="#1157b9">
<TextBlock Text="内外模温度" Foreground="White" FontSize="18"/>
</Border>
<Border Grid.Row="2" Grid.Column="5" >
<WrapPanel VerticalAlignment="Center" HorizontalAlignment="Center">
<TextBlock Text="{Binding InternalTemperature[0]}" Foreground="White" FontSize="18" FontWeight="Bold"/>
<TextBlock Text="|" Foreground="White" FontSize="18" FontWeight="Bold"/>
<TextBlock Text="{Binding OutsideTemperature[0]}" Foreground="White" FontSize="18" FontWeight="Bold"/>
</WrapPanel>
</Border>
<Border Grid.Row="3" Grid.Column="5">
<WrapPanel VerticalAlignment="Center" HorizontalAlignment="Center">
<TextBlock Text="{Binding InternalTemperature[1]}" Foreground="White" FontSize="18" FontWeight="Bold"/>
<TextBlock Text="|" Foreground="White" FontSize="18" FontWeight="Bold"/>
<TextBlock Text="{Binding OutsideTemperature[1]}" Foreground="White" FontSize="18" FontWeight="Bold"/>
</WrapPanel>
</Border>
<Border Grid.Row="4" Grid.Column="5">
<WrapPanel VerticalAlignment="Center" HorizontalAlignment="Center">
<TextBlock Text="{Binding InternalTemperature[2]}" Foreground="White" FontSize="18" FontWeight="Bold"/>
<TextBlock Text="|" Foreground="White" FontSize="18" FontWeight="Bold"/>
<TextBlock Text="{Binding OutsideTemperature[2]}" Foreground="White" FontSize="18" FontWeight="Bold"/>
</WrapPanel>
</Border>
<Border Grid.Row="5" Grid.Column="5">
<WrapPanel VerticalAlignment="Center" HorizontalAlignment="Center">
<TextBlock Text="{Binding InternalTemperature[3]}" Foreground="White" FontSize="18" FontWeight="Bold"/>
<TextBlock Text="|" Foreground="White" FontSize="18" FontWeight="Bold"/>
<TextBlock Text="{Binding OutsideTemperature[3]}" Foreground="White" FontSize="18" FontWeight="Bold"/>
</WrapPanel>
</Border>
<Border Grid.Row="6" Grid.Column="5">
<WrapPanel VerticalAlignment="Center" HorizontalAlignment="Center">
<TextBlock Text="{Binding InternalTemperature[4]}" Foreground="White" FontSize="18" FontWeight="Bold"/>
<TextBlock Text="|" Foreground="White" FontSize="18" FontWeight="Bold"/>
<TextBlock Text="{Binding OutsideTemperature[4]}" Foreground="White" FontSize="18" FontWeight="Bold"/>
</WrapPanel>
</Border>
<Border Grid.Row="7" Grid.Column="5">
<WrapPanel VerticalAlignment="Center" HorizontalAlignment="Center">
<TextBlock Text="{Binding InternalTemperature[5]}" Foreground="White" FontSize="18" FontWeight="Bold"/>
<TextBlock Text="|" Foreground="White" FontSize="18" FontWeight="Bold"/>
<TextBlock Text="{Binding OutsideTemperature[5]}" Foreground="White" FontSize="18" FontWeight="Bold"/>
</WrapPanel>
</Border>
<Border Grid.Row="1" Grid.Column="5" Background="#1157b9">
<TextBlock Text="" Foreground="White" FontSize="20"/>
<Border Grid.Row="1" Grid.Column="6" Background="#1157b9">
<TextBlock Text="节拍" Foreground="White" FontSize="18"/>
</Border>
<Border Grid.Row="2" Grid.Column="5" Background="#1157b9">
<TextBlock Text="1" Foreground="White" FontSize="20"/>
<Border Grid.Row="2" Grid.Column="6" >
<TextBlock Text="{Binding Beat[0]}" Foreground="White" FontSize="18"/>
</Border>
<Border Grid.Row="3" Grid.Column="5" Background="#1157b9">
<TextBlock Text="2" Foreground="White" FontSize="20"/>
<Border Grid.Row="3" Grid.Column="6">
<TextBlock Text="{Binding Beat[1]}" Foreground="White" FontSize="18"/>
</Border>
<Border Grid.Row="4" Grid.Column="5" Background="#1157b9">
<TextBlock Text="3" Foreground="White" FontSize="20"/>
<Border Grid.Row="4" Grid.Column="6">
<TextBlock Text="{Binding Beat[2]}" Foreground="White" FontSize="18"/>
</Border>
<Border Grid.Row="5" Grid.Column="5" Background="#1157b9">
<TextBlock Text="4" Foreground="White" FontSize="20"/>
<Border Grid.Row="5" Grid.Column="6">
<TextBlock Text="{Binding Beat[3]}" Foreground="White" FontSize="18"/>
</Border>
<Border Grid.Row="6" Grid.Column="5" Background="#1157b9">
<TextBlock Text="5" Foreground="White" FontSize="20"/>
<Border Grid.Row="6" Grid.Column="6">
<TextBlock Text="{Binding Beat[4]}" Foreground="White" FontSize="18"/>
</Border>
<Border Grid.Row="7" Grid.Column="5" Background="#1157b9">
<TextBlock Text="6" Foreground="White" FontSize="20"/>
<Border Grid.Row="7" Grid.Column="6">
<TextBlock Text="{Binding Beat[5]}" Foreground="White" FontSize="18"/>
</Border>
<Border Grid.Row="0" Grid.Column="10" Grid.ColumnSpan="5" Background="#1157b9">
<TextBlock Text="发泡线(北)" Foreground="White" FontSize="18" FontWeight="Bold"/>
</Border>
<Border Grid.Row="1" Grid.Column="6" Background="#1157b9">
<TextBlock Text="状态" Foreground="White" FontSize="20"/>
<Border Grid.Row="1" Grid.Column="7" Background="#1157b9">
<TextBlock Text="夹具号" Foreground="White" FontSize="18" FontWeight="Bold"/>
</Border>
<Border Grid.Row="2" Grid.Column="6" Background="#1157b9">
<Path Data="M 5,5 A 15,15 45 1 1 0,1 Z" Stroke="{Binding Color[6]}" StrokeThickness="1" Fill="{Binding Color[6]}" VerticalAlignment="Center" HorizontalAlignment="Center"/>
<Border Grid.Row="2" Grid.Column="7" Background="#1157b9">
<TextBlock Text="1" Foreground="White" FontSize="18" FontWeight="Bold"/>
</Border>
<Border Grid.Row="3" Grid.Column="6" Background="#1157b9">
<Path Data="M 5,5 A 15,15 45 1 1 0,1 Z" Stroke="{Binding Color[7]}" StrokeThickness="1" Fill="{Binding Color[7]}" VerticalAlignment="Center" HorizontalAlignment="Center"/>
<Border Grid.Row="3" Grid.Column="7" Background="#1157b9">
<TextBlock Text="2" Foreground="White" FontSize="18" FontWeight="Bold"/>
</Border>
<Border Grid.Row="4" Grid.Column="6" Background="#1157b9">
<Path Data="M 5,5 A 15,15 45 1 1 0,1 Z" Stroke="{Binding Color[8]}" StrokeThickness="1" Fill="{Binding Color[8]}" VerticalAlignment="Center" HorizontalAlignment="Center"/>
<Border Grid.Row="4" Grid.Column="7" Background="#1157b9">
<TextBlock Text="3" Foreground="White" FontSize="18" FontWeight="Bold"/>
</Border>
<Border Grid.Row="5" Grid.Column="6" Background="#1157b9">
<Path Data="M 5,5 A 15,15 45 1 1 0,1 Z" Stroke="{Binding Color[9]}" StrokeThickness="1" Fill="{Binding Color[9]}" VerticalAlignment="Center" HorizontalAlignment="Center"/>
<Border Grid.Row="5" Grid.Column="7" Background="#1157b9">
<TextBlock Text="4" Foreground="White" FontSize="18" FontWeight="Bold"/>
</Border>
<Border Grid.Row="6" Grid.Column="6" Background="#1157b9">
<Path Data="M 5,5 A 15,15 45 1 1 0,1 Z" Stroke="{Binding Color[10]}" StrokeThickness="1" Fill="{Binding Color[10]}" VerticalAlignment="Center" HorizontalAlignment="Center"/>
<Border Grid.Row="6" Grid.Column="7" Background="#1157b9">
<TextBlock Text="5" Foreground="White" FontSize="18" FontWeight="Bold"/>
</Border>
<Border Grid.Row="7" Grid.Column="6" Background="#1157b9">
<Path Data="M 5,5 A 15,15 45 1 1 0,1 Z" Stroke="{Binding Color[11]}" StrokeThickness="1" Fill="{Binding Color[11]}" VerticalAlignment="Center" HorizontalAlignment="Center"/>
<Border Grid.Row="7" Grid.Column="7" Background="#1157b9">
<TextBlock Text="6" Foreground="White" FontSize="18" FontWeight="Bold"/>
</Border>
<Border Grid.Row="1" Grid.Column="7" Background="#1157b9">
<TextBlock Text="发泡型号" Foreground="White" FontSize="20"/>
<Border Grid.Row="1" Grid.Column="8" Background="#1157b9">
<TextBlock Text="状态" Foreground="White" FontSize="18" FontWeight="Bold"/>
</Border>
<Border Grid.Row="2" Grid.Column="7" >
<TextBlock Text="7#夹具" Foreground="White" FontSize="18"/>
<Border Grid.Row="2" Grid.Column="8" >
<Path Data="M 5,5 A 15,15 45 1 1 0,1 Z" Stroke="{Binding StatusColor[6]}" StrokeThickness="1" Fill="{Binding StatusColor[6]}" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Border>
<Border Grid.Row="3" Grid.Column="7" >
<TextBlock Text="8#夹具" Foreground="White" FontSize="18"/>
<Border Grid.Row="3" Grid.Column="8" >
<Path Data="M 5,5 A 15,15 45 1 1 0,1 Z" Stroke="{Binding StatusColor[7]}" StrokeThickness="1" Fill="{Binding StatusColor[7]}" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Border>
<Border Grid.Row="4" Grid.Column="7" >
<TextBlock Text="9#夹具" Foreground="White" FontSize="18"/>
<Border Grid.Row="4" Grid.Column="8" >
<Path Data="M 5,5 A 15,15 45 1 1 0,1 Z" Stroke="{Binding StatusColor[8]}" StrokeThickness="1" Fill="{Binding StatusColor[8]}" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Border>
<Border Grid.Row="5" Grid.Column="7">
<TextBlock Text="10#夹具" Foreground="White" FontSize="18"/>
<Border Grid.Row="5" Grid.Column="8" >
<Path Data="M 5,5 A 15,15 45 1 1 0,1 Z" Stroke="{Binding StatusColor[9]}" StrokeThickness="1" Fill="{Binding StatusColor[9]}" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Border>
<Border Grid.Row="6" Grid.Column="7" >
<TextBlock Text="11#夹具" Foreground="White" FontSize="18"/>
<Border Grid.Row="6" Grid.Column="8" >
<Path Data="M 5,5 A 15,15 45 1 1 0,1 Z" Stroke="{Binding StatusColor[10]}" StrokeThickness="1" Fill="{Binding StatusColor[10]}" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Border>
<Border Grid.Row="7" Grid.Column="7" >
<TextBlock Text="12#夹具" Foreground="White" FontSize="18"/>
<Border Grid.Row="7" Grid.Column="8" >
<Path Data="M 5,5 A 15,15 45 1 1 0,1 Z" Stroke="{Binding StatusColor[11]}" StrokeThickness="1" Fill="{Binding StatusColor[11]}" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Border>
<Border Grid.Row="1" Grid.Column="8" Background="#1157b9">
<TextBlock Text="夹具产量" Foreground="White" FontSize="20"/>
<Border Grid.Row="1" Grid.Column="9" Background="#1157b9">
<TextBlock Text="发泡型号" Foreground="White" FontSize="18" FontWeight="Bold"/>
</Border>
<Border Grid.Row="2" Grid.Column="9" >
<TextBlock Text="{Binding FixtureName[6]}" Foreground="White" FontSize="18"/>
</Border>
<Border Grid.Row="3" Grid.Column="9" >
<TextBlock Text="{Binding FixtureName[7]}" Foreground="White" FontSize="18"/>
</Border>
<Border Grid.Row="4" Grid.Column="9" >
<TextBlock Text="{Binding FixtureName[8]}" Foreground="White" FontSize="18"/>
</Border>
<Border Grid.Row="5" Grid.Column="9">
<TextBlock Text="{Binding FixtureName[9]}" Foreground="White" FontSize="18"/>
</Border>
<Border Grid.Row="6" Grid.Column="9" >
<TextBlock Text="{Binding FixtureName[10]}" Foreground="White" FontSize="18"/>
</Border>
<Border Grid.Row="7" Grid.Column="9" >
<TextBlock Text="{Binding FixtureName[11]}" Foreground="White" FontSize="18"/>
</Border>
<Border Grid.Row="2" Grid.Column="8" >
<Border Grid.Row="1" Grid.Column="10" Background="#1157b9">
<TextBlock Text="夹具产量" Foreground="White" FontSize="18" FontWeight="Bold"/>
</Border>
<Border Grid.Row="2" Grid.Column="10" >
<TextBlock Text="{Binding Production[6]}" Foreground="White" FontSize="18" FontWeight="Bold"/>
</Border>
<Border Grid.Row="3" Grid.Column="8">
<Border Grid.Row="3" Grid.Column="10">
<TextBlock Text="{Binding Production[7]}" Foreground="White" FontSize="18" FontWeight="Bold"/>
</Border>
<Border Grid.Row="4" Grid.Column="8">
<Border Grid.Row="4" Grid.Column="10">
<TextBlock Text="{Binding Production[8]}" Foreground="White" FontSize="18" FontWeight="Bold"/>
</Border>
<Border Grid.Row="5" Grid.Column="8">
<Border Grid.Row="5" Grid.Column="10">
<TextBlock Text="{Binding Production[9]}" Foreground="White" FontSize="18" FontWeight="Bold"/>
</Border>
<Border Grid.Row="6" Grid.Column="8">
<Border Grid.Row="6" Grid.Column="10">
<TextBlock Text="{Binding Production[10]}" Foreground="White" FontSize="18" FontWeight="Bold"/>
</Border>
<Border Grid.Row="7" Grid.Column="8">
<Border Grid.Row="7" Grid.Column="10">
<TextBlock Text="{Binding Production[11]}" Foreground="White" FontSize="18" FontWeight="Bold"/>
</Border>
<Border Grid.Row="1" Grid.Column="9" Background="#1157b9">
<TextBlock Text="发泡量" Foreground="White" FontSize="20"/>
<Border Grid.Row="1" Grid.Column="11" Background="#1157b9">
<TextBlock Text="发泡量" Foreground="White" FontSize="18" FontWeight="Bold"/>
</Border>
<Border Grid.Row="2" Grid.Column="11" >
<TextBlock Text="{Binding FoamVolume[6]}" Foreground="White" FontSize="18" FontWeight="Bold"/>
</Border>
<Border Grid.Row="3" Grid.Column="11">
<TextBlock Text="{Binding FoamVolume[7]}" Foreground="White" FontSize="18" FontWeight="Bold"/>
</Border>
<Border Grid.Row="4" Grid.Column="11">
<TextBlock Text="{Binding FoamVolume[8]}" Foreground="White" FontSize="18" FontWeight="Bold"/>
</Border>
<Border Grid.Row="5" Grid.Column="11">
<TextBlock Text="{Binding FoamVolume[9]}" Foreground="White" FontSize="18" FontWeight="Bold"/>
</Border>
<Border Grid.Row="6" Grid.Column="11">
<TextBlock Text="{Binding FoamVolume[10]}" Foreground="White" FontSize="18" FontWeight="Bold"/>
</Border>
<Border Grid.Row="7" Grid.Column="11">
<TextBlock Text="{Binding FoamVolume[11]}" Foreground="White" FontSize="18" FontWeight="Bold"/>
</Border>
<Border Grid.Row="2" Grid.Column="9" >
<Border Grid.Row="1" Grid.Column="12" Background="#1157b9">
<TextBlock Text="内外模温度" Foreground="White" FontSize="18" FontWeight="Bold"/>
</Border>
<Border Grid.Row="2" Grid.Column="12" >
<WrapPanel VerticalAlignment="Center" HorizontalAlignment="Center">
<TextBlock Text="{Binding InternalTemperature[6]}" Foreground="White" FontSize="18" FontWeight="Bold"/>
<TextBlock Text="|" Foreground="White" FontSize="18" FontWeight="Bold"/>
<TextBlock Text="{Binding OutsideTemperature[6]}" Foreground="White" FontSize="18" FontWeight="Bold"/>
</WrapPanel>
</Border>
<Border Grid.Row="3" Grid.Column="12">
<WrapPanel VerticalAlignment="Center" HorizontalAlignment="Center">
<TextBlock Text="{Binding InternalTemperature[7]}" Foreground="White" FontSize="18" FontWeight="Bold"/>
<TextBlock Text="|" Foreground="White" FontSize="18" FontWeight="Bold"/>
<TextBlock Text="{Binding OutsideTemperature[7]}" Foreground="White" FontSize="18" FontWeight="Bold"/>
</WrapPanel>
</Border>
<Border Grid.Row="4" Grid.Column="12">
<WrapPanel VerticalAlignment="Center" HorizontalAlignment="Center">
<TextBlock Text="{Binding InternalTemperature[8]}" Foreground="White" FontSize="18" FontWeight="Bold"/>
<TextBlock Text="|" Foreground="White" FontSize="18" FontWeight="Bold"/>
<TextBlock Text="{Binding OutsideTemperature[8]}" Foreground="White" FontSize="18" FontWeight="Bold"/>
</WrapPanel>
</Border>
<Border Grid.Row="5" Grid.Column="12">
<WrapPanel VerticalAlignment="Center" HorizontalAlignment="Center">
<TextBlock Text="{Binding InternalTemperature[9]}" Foreground="White" FontSize="18" FontWeight="Bold"/>
<TextBlock Text="|" Foreground="White" FontSize="18" FontWeight="Bold"/>
<TextBlock Text="{Binding OutsideTemperature[9]}" Foreground="White" FontSize="18" FontWeight="Bold"/>
</WrapPanel>
</Border>
<Border Grid.Row="6" Grid.Column="12">
<WrapPanel VerticalAlignment="Center" HorizontalAlignment="Center">
<TextBlock Text="{Binding InternalTemperature[10]}" Foreground="White" FontSize="18" FontWeight="Bold"/>
<TextBlock Text="|" Foreground="White" FontSize="18" FontWeight="Bold"/>
<TextBlock Text="{Binding OutsideTemperature[10]}" Foreground="White" FontSize="18" FontWeight="Bold"/>
</WrapPanel>
</Border>
<Border Grid.Row="7" Grid.Column="12">
<WrapPanel VerticalAlignment="Center" HorizontalAlignment="Center">
<TextBlock Text="{Binding InternalTemperature[11]}" Foreground="White" FontSize="18" FontWeight="Bold"/>
<TextBlock Text="|" Foreground="White" FontSize="18" FontWeight="Bold"/>
<TextBlock Text="{Binding OutsideTemperature[11]}" Foreground="White" FontSize="18" FontWeight="Bold"/>
</WrapPanel>
</Border>
<Border Grid.Row="3" Grid.Column="9">
<Border Grid.Row="1" Grid.Column="13" Background="#1157b9">
<TextBlock Text="节拍" Foreground="White" FontSize="18" FontWeight="Bold"/>
</Border>
<Border Grid.Row="4" Grid.Column="9">
<Border Grid.Row="2" Grid.Column="13" >
<TextBlock Text="{Binding Beat[6]}" Foreground="White" FontSize="18"/>
</Border>
<Border Grid.Row="5" Grid.Column="9">
<Border Grid.Row="3" Grid.Column="13">
<TextBlock Text="{Binding Beat[7]}" Foreground="White" FontSize="18"/>
</Border>
<Border Grid.Row="4" Grid.Column="13">
<TextBlock Text="{Binding Beat[8]}" Foreground="White" FontSize="18"/>
</Border>
<Border Grid.Row="5" Grid.Column="13">
<TextBlock Text="{Binding Beat[9]}" Foreground="White" FontSize="18"/>
</Border>
<Border Grid.Row="6" Grid.Column="9">
<Border Grid.Row="6" Grid.Column="13">
<TextBlock Text="{Binding Beat[10]}" Foreground="White" FontSize="18"/>
</Border>
<Border Grid.Row="7" Grid.Column="9">
<Border Grid.Row="7" Grid.Column="13">
<TextBlock Text="{Binding Beat[11]}" Foreground="White" FontSize="18"/>
</Border>
</Grid>
</UniformGrid>

@ -4,7 +4,7 @@
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:Aucma.Core.BoxFoam.Views"
mc:Ignorable="d" Background="#1152AC"
mc:Ignorable="d" Background="#1152AC" FontFamily="Microsoft YaHei"
d:DesignHeight="1080" d:DesignWidth="1920">
<Border x:Name="HeightHelperPanel" BorderBrush="#0288d1" BorderThickness="0" CornerRadius="5" Background="Transparent" Margin="5">

@ -5,14 +5,14 @@
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
xmlns:local="clr-namespace:Aucma.Core.BoxFoam.Views"
mc:Ignorable="d" Background="#1152AC"
mc:Ignorable="d" Background="#1152AC"
d:DesignHeight="1080" FontFamily="Microsoft YaHei"
d:DesignWidth="1920" >
<UserControl.Resources>
<Style x:Key="DataGridTextColumnCenterSytle" TargetType="{x:Type TextBlock}">
<Setter Property="VerticalAlignment" Value="Center" />
<Setter Property="FontSize" Value="18" />
<Setter Property="HorizontalAlignment" Value="Left" />
</Style>
<Style TargetType="DataGrid">
@ -53,7 +53,7 @@
<Setter.Value>
<ControlTemplate TargetType="{x:Type DataGridCell}">
<Grid Background="{TemplateBinding Background}" >
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center" />
<ContentPresenter HorizontalAlignment="Left" VerticalAlignment="Center" />
</Grid>
</ControlTemplate>
</Setter.Value>

@ -64,17 +64,17 @@
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<StackPanel Grid.Row="1" Height="50" Orientation="Horizontal" Margin="5 0" HorizontalAlignment="Left">
<Button Content="实时监控" x:Name="FirstPage" Margin="5 0" Command="{Binding SwitchPagesCommand}" CommandParameter="{Binding Name,ElementName=FirstPage}" />
<Button Content="实时库存" x:Name="RealTimeInventoryPage" Margin="5 0" Command="{Binding SwitchPagesCommand}" CommandParameter="{Binding Name,ElementName=RealTimeInventoryPage}" />
<Button Content="任务监控" x:Name="MonitorPage" Margin="5 0" Command="{Binding SwitchPagesCommand}" CommandParameter="{Binding Name,ElementName=MonitorPage}" />
<Button Content="入库统计" x:Name="StatisticsPage" Margin="5 0" Command="{Binding SwitchPagesCommand}" CommandParameter="{Binding Name,ElementName=StatisticsPage}" />
<Button Content="发泡计划" x:Name="FoamPlanPage" Margin="5 0" Command="{Binding SwitchPagesCommand}" CommandParameter="{Binding Name,ElementName=FoamPlanPage}" />
<Button Content="发泡线监控" x:Name="FoamMonitorPage" Margin="5 0" Command="{Binding SwitchPagesCommand}" CommandParameter="{Binding Name,ElementName=FoamMonitorPage}" />
<Button Content="发泡机监控" x:Name="FoamMonitor1Page" Margin="5 0" Command="{Binding SwitchPagesCommand}" CommandParameter="{Binding Name,ElementName=FoamMonitorPage}" />
<Button Content="库存设置" x:Name="SetLibPage" Margin="5 0" Command="{Binding SwitchPagesCommand}" CommandParameter="{Binding Name,ElementName=StatisticsPage}" />
<Button Content="键 盘" x:Name="TabTip" Margin="5 0" Command="{Binding FormControlCommand}" CommandParameter="{Binding Name,ElementName=TabTip}" />
<Button Content="最小化" x:Name="Minimized" Margin="5 0" Command="{Binding FormControlCommand}" CommandParameter="{Binding Name,ElementName=Minimized}" Background="#FF9900" BorderBrush="#FF9900" />
<Button Content="退 出" x:Name="Exit" Margin="5 0" Command="{Binding FormControlCommand}" CommandParameter="{Binding Name,ElementName=Exit}" Background="#FF0033" BorderBrush="#FF0033"/>
<Button Content="实时监控" x:Name="FirstPage" FontSize="18" Margin="5 0" Command="{Binding SwitchPagesCommand}" CommandParameter="{Binding Name,ElementName=FirstPage}" />
<Button Content="实时库存" x:Name="RealTimeInventoryPage" FontSize="18" Margin="5 0" Command="{Binding SwitchPagesCommand}" CommandParameter="{Binding Name,ElementName=RealTimeInventoryPage}" />
<Button Content="任务监控" x:Name="MonitorPage" FontSize="18" Margin="5 0" Command="{Binding SwitchPagesCommand}" CommandParameter="{Binding Name,ElementName=MonitorPage}" />
<Button Content="入库统计" x:Name="StatisticsPage" FontSize="18" Margin="5 0" Command="{Binding SwitchPagesCommand}" CommandParameter="{Binding Name,ElementName=StatisticsPage}" />
<Button Content="发泡计划" x:Name="FoamPlanPage" FontSize="18" Margin="5 0" Command="{Binding SwitchPagesCommand}" CommandParameter="{Binding Name,ElementName=FoamPlanPage}" />
<Button Content="发泡线监控" x:Name="FoamMonitorPage" FontSize="18" Margin="5 0" Command="{Binding SwitchPagesCommand}" CommandParameter="{Binding Name,ElementName=FoamMonitorPage}" />
<Button Content="发泡机监控" x:Name="FoamMachinesPage" FontSize="18" Margin="5 0" Command="{Binding SwitchPagesCommand}" CommandParameter="{Binding Name,ElementName=FoamMachinesPage}" />
<!--<Button Content="库存设置" x:Name="SetLibPage" Margin="5 0" Command="{Binding SwitchPagesCommand}" CommandParameter="{Binding Name,ElementName=StatisticsPage}" />-->
<Button Content="键 盘" x:Name="TabTip" FontSize="18" Margin="5 0" Command="{Binding FormControlCommand}" CommandParameter="{Binding Name,ElementName=TabTip}" />
<Button Content="最小化" x:Name="Minimized" FontSize="18" Margin="5 0" Command="{Binding FormControlCommand}" CommandParameter="{Binding Name,ElementName=Minimized}" Background="#FF9900" BorderBrush="#FF9900" />
<Button Content="退 出" x:Name="Exit" Margin="5 0" FontSize="18" Command="{Binding FormControlCommand}" CommandParameter="{Binding Name,ElementName=Exit}" Background="#FF0033" BorderBrush="#FF0033"/>
</StackPanel>
<StackPanel Grid.Row="2" Height="50" Orientation="Horizontal" HorizontalAlignment="Right">
<TextBlock x:Name="PLCState" Text="PLC" VerticalAlignment="Center" Foreground="white" FontSize="15" Margin="10,0"/>

@ -4,12 +4,11 @@
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:Aucma.Core.BoxFoam.Views"
mc:Ignorable="d" Background="#1152AC"
mc:Ignorable="d" Background="#1152AC" FontFamily="Microsoft YaHei"
d:DesignHeight="450" d:DesignWidth="800">
<UserControl.Resources>
<Style x:Key="DataGridTextColumnCenterSytle" TargetType="{x:Type TextBlock}">
<Setter Property="VerticalAlignment" Value="Center" />
</Style>
<Style TargetType="DataGrid">
@ -50,7 +49,7 @@
<Setter Property="BorderThickness" Value="0" />
<Setter Property="BorderBrush" Value="Gray" />
<Setter Property="Height" Value="40"/>
<Setter Property="FontSize" Value="12"/>
<Setter Property="FontSize" Value="18"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type DataGridCell}">
@ -130,7 +129,7 @@
<UniformGrid Grid.Row="0" Margin="5">
<DataGrid Grid.Row="0" ItemsSource="{Binding RealTimeDataGrid}"
ColumnHeaderHeight="35" Foreground="white"
ColumnHeaderHeight="30" Foreground="white"
RowHeight="50" AutoGenerateColumns="False" RowHeaderWidth="0"
GridLinesVisibility="None" ScrollViewer.HorizontalScrollBarVisibility="Hidden"
ScrollViewer.VerticalScrollBarVisibility="Hidden" BorderThickness="0" CanUserAddRows="False" SelectionMode="Single" IsReadOnly="True"

@ -4,7 +4,7 @@
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:Aucma.Core.BoxFoam.Views"
mc:Ignorable="d" Background="#1152AC"
mc:Ignorable="d" Background="#1152AC" FontFamily="Microsoft YaHei"
Title="下达数量" Height="500" Width="700" Name="window"
ResizeMode="NoResize" Topmost="True">

@ -6,7 +6,7 @@
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
xmlns:local="clr-namespace:Aucma.Core.BoxFoam.Views"
x:Class="Aucma.Core.BoxFoam.Views.RealTimeInventoryPageView"
mc:Ignorable="d" Background="#1152AC"
mc:Ignorable="d" Background="#1152AC" FontFamily="Microsoft YaHei"
d:DesignHeight="450" d:DesignWidth="800">
<Border Grid.Row="1" BorderBrush="#0288d1" BorderThickness="1" CornerRadius="5" Background="Transparent" Margin="5,5">
@ -16,6 +16,8 @@
<RowDefinition/>
</Grid.RowDefinitions>
<WrapPanel Grid.Row="0" Margin="10 5 0 0" HorizontalAlignment="Left" VerticalAlignment="Center" >
<Button Content="箱壳库" Style="{StaticResource MaterialDesignRaisedButton}" Margin="0 0 5 0" x:Name="ShellInventory" Command="{Binding InventoryOnClickCommand}" CommandParameter="{Binding Name,ElementName=ShellInventory}"/>
<Button Content="内胆库" Style="{StaticResource MaterialDesignRaisedButton}" Margin="0 0 5 0" x:Name="LinerInventory" Command="{Binding InventoryOnClickCommand}" CommandParameter="{Binding Name,ElementName=LinerInventory}"/>
<Button Content="泡前库" Style="{StaticResource MaterialDesignRaisedButton}" Width="100" Margin="0 0 5 0" x:Name="PqInventory" Command="{Binding InventoryOnClickCommand}" CommandParameter="{Binding Name,ElementName=PqInventory}"/>
<Button Content="泡后库" Style="{StaticResource MaterialDesignRaisedButton}" Width="100" x:Name="PhInventory" Command="{Binding InventoryOnClickCommand}" CommandParameter="{Binding Name,ElementName=PhInventory}"/>
</WrapPanel>

@ -5,7 +5,7 @@
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:Aucma.Core.BoxFoam.Views"
mc:Ignorable="d"
Title="搜索条件配置" Name="window"
Title="搜索条件配置" Name="window" FontFamily="Microsoft YaHei"
Background="#1152AC" Height="350" Width="600" WindowStartupLocation="CenterScreen"
d:DesignHeight="350"
d:DesignWidth="600"

@ -5,7 +5,7 @@
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
mc:Ignorable="d"
Background="#1152AC"
Background="#1152AC"
Title="计划维护" FontFamily="Microsoft YaHei" Height="700" Width="900"
d:DesignHeight="800" WindowStartupLocation="CenterScreen"
d:DesignWidth="1500" ResizeMode="NoResize" Topmost="True" >
@ -13,7 +13,6 @@
<Window.Resources>
<Style x:Key="DataGridTextColumnCenterSytle" TargetType="{x:Type TextBlock}">
<Setter Property="VerticalAlignment" Value="Center" />
<Setter Property="FontSize" Value="20"/>
</Style>
<Style TargetType="DataGrid">

@ -5,151 +5,253 @@
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
xmlns:local="clr-namespace:Aucma.Core.BoxFoam.Views.UserPage"
mc:Ignorable="d" Background="#1152AC"
mc:Ignorable="d" Background="#1152AC" FontFamily="Microsoft YaHei"
d:DesignHeight="450" d:DesignWidth="800">
<Grid >
<UserControl.Resources>
<Style x:Key="DataGridTextColumnCenterSytle" TargetType="{x:Type TextBlock}">
<Setter Property="VerticalAlignment" Value="Center" />
<Setter Property="HorizontalAlignment" Value="Left" />
</Style>
<Style TargetType="DataGrid">
<!--网格线颜色-->
<Setter Property="CanUserResizeColumns" Value="false"/>
<Setter Property="Background" Value="#1152AC" />
<Setter Property="BorderBrush" Value="#4285DE" />
<Setter Property="Foreground" Value="White"/>
<Setter Property="HorizontalGridLinesBrush">
<Setter.Value>
<SolidColorBrush Color="#4285DE"/>
</Setter.Value>
</Setter>
<Setter Property="VerticalGridLinesBrush">
<Setter.Value>
<SolidColorBrush Color="#1152AC"/>
</Setter.Value>
</Setter>
</Style>
<!--列头标题栏样式-->
<Style TargetType="DataGridColumnHeader">
<Setter Property="HorizontalContentAlignment" Value="Center" />
<Setter Property="BorderBrush" Value="#dddddd" />
<Setter Property="FontSize" Value="18"/>
<Setter Property="Background" Value="#4285DE"/>
<Setter Property="Foreground" Value="White"/>
</Style>
<!--单元格样式-->
<Style TargetType="DataGridCell">
<Setter Property="FocusVisualStyle" Value="{x:Null}" />
<Setter Property="BorderThickness" Value="0" />
<Setter Property="BorderBrush" Value="Gray" />
<Setter Property="Height" Value="35"/>
<Setter Property="FontSize" Value="15"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type DataGridCell}">
<Grid Background="{TemplateBinding Background}" >
<ContentPresenter HorizontalAlignment="Left" VerticalAlignment="Center" />
</Grid>
</ControlTemplate>
</Setter.Value>
</Setter>
<Style.Triggers>
<Trigger Property="IsSelected" Value="True">
<Setter Property="Background" Value="#4285DE"/>
<Setter Property="Foreground" Value="White"/>
</Trigger>
</Style.Triggers>
</Style>
</UserControl.Resources>
<Grid Margin="5,5">
<Grid.RowDefinitions>
<RowDefinition Height="auto"/>
<RowDefinition/>
<RowDefinition Height="*"/>
<RowDefinition Height="12*"/>
</Grid.RowDefinitions>
<StackPanel Grid.Row="0" Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Center">
<TextBlock Text="泡后库实时库存" FontSize="18" FontWeight="Bold" Foreground="White"/>
<!--<TextBlock Text="泡后库实时库存" FontSize="18" FontWeight="Bold" Foreground="White"/>-->
</StackPanel>
<StackPanel Grid.Row="1" Margin="5,5">
<ScrollViewer x:Name="MainScrollViewer" materialDesign:ScrollViewerAssist.IsAutoHideEnabled="True">
<ItemsControl ItemsSource="{Binding Shapes}" VerticalAlignment="Center" HorizontalAlignment="Center" >
<ItemsControl.ItemsPanel>
<!--布局-->
<ItemsPanelTemplate>
<WrapPanel Orientation="Horizontal"></WrapPanel>
</ItemsPanelTemplate>
</ItemsControl.ItemsPanel>
<!--控件模板-->
<ItemsControl.ItemTemplate>
<DataTemplate>
<Control x:Name="ctrl" MinWidth="550" MinHeight="160" ></Control>
<DataTemplate.Triggers>
<!--根据不同类型选择不同模板-->
<DataTrigger Binding="{Binding spaceType}" Value="1">
<!--矩形-->
<Setter Property="Template" TargetName="ctrl">
<Setter.Value>
<ControlTemplate >
<Border Margin="3" Background="#0288d1" BorderBrush="White" BorderThickness="2" >
<Grid Margin="3,3">
<Grid.RowDefinitions>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
</Grid.RowDefinitions>
<Border Grid.Row="0">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition/>
<ColumnDefinition/>
<ColumnDefinition/>
<ColumnDefinition/>
<ColumnDefinition/>
<ColumnDefinition/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<Border Grid.Column="0" BorderBrush="White" BorderThickness="1">
<TextBlock Text="{Binding spaceCode}" FontSize="18" Foreground="White" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Border>
<Border Grid.Column="1" BorderBrush="White" BorderThickness="1">
<TextBlock Text="在库" FontSize="18" Foreground="White" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Border>
<Border Grid.Column="2" BorderBrush="White" BorderThickness="1">
<TextBlock Text="{Binding spaceStock}" FontSize="18" Foreground="White" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Border>
<Border Grid.Column="3" BorderBrush="White" BorderThickness="1">
<TextBlock Text="在途" FontSize="18" Foreground="White" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Border>
<Border Grid.Column="4" BorderBrush="White" BorderThickness="1">
<TextBlock Text="{Binding onTheWay}" FontSize="18" Foreground="White" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Border>
<Border Grid.Column="5" BorderBrush="White" BorderThickness="1">
<TextBlock Text="合计" FontSize="18" Foreground="White" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Border>
<Border Grid.Column="6" BorderBrush="White" BorderThickness="1">
<TextBlock Text="{Binding totalAmount}" FontSize="18" Foreground="White" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Border>
</Grid>
</Border>
<Border Grid.Row="1">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1*"/>
<ColumnDefinition Width="6*"/>
</Grid.ColumnDefinitions>
<Border Grid.Column="0" BorderBrush="White" BorderThickness="1">
<TextBlock Text="型号" FontSize="18" Foreground="White" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Border>
<Border Grid.Column="1" BorderBrush="White" BorderThickness="1">
<TextBlock Text="{Binding materialType}" FontSize="16" Foreground="White" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Border>
</Grid>
</Border>
<Border Grid.Row="2">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition/>
<ColumnDefinition/>
<ColumnDefinition/>
<ColumnDefinition/>
<ColumnDefinition/>
<ColumnDefinition/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<Border Grid.Column="0" BorderBrush="White" BorderThickness="1" >
<TextBlock Text="状态" FontSize="18" Foreground="White" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Border>
<Border Grid.Column="1" BorderBrush="White" BorderThickness="1">
<Button Visibility="Collapsed" Command="{Binding DataContext.UpdateCommand, RelativeSource={RelativeSource AncestorType=ItemsControl}}" CommandParameter="{Binding spaceCode}" Style="{x:Null}" BorderBrush="Transparent" BorderThickness="0" Background="Transparent">
<TextBlock Text="入库" Foreground="{Binding inStoreFlag}" FontSize="18" FontWeight="Bold" VerticalAlignment="Center" HorizontalAlignment="Center" />
</Button>
</Border>
<Border Grid.Column="2" BorderBrush="White" BorderThickness="1">
<Button Visibility="Collapsed" Command="{Binding DataContext.UpdateCommand, RelativeSource={RelativeSource AncestorType=ItemsControl}}" CommandParameter="{Binding spaceCode}" Style="{x:Null}" BorderBrush="Transparent" BorderThickness="0" Background="Transparent">
<TextBlock Text="出库" Foreground="{Binding outStoreFlag}" FontSize="18" FontWeight="Bold" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Button>
<Border Grid.Row="1">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="8*"/>
<ColumnDefinition Width="4*"/>
</Grid.ColumnDefinitions>
<Border Grid.Column="0" BorderBrush="#0288d1" BorderThickness="1" Margin="5">
<Border.Effect>
<DropShadowEffect Color="#1254AB" ShadowDepth="0" BlurRadius="5" Opacity="0.5" Direction="0"></DropShadowEffect>
</Border.Effect>
</Border>
<Border Grid.Column="3" BorderBrush="White" BorderThickness="1">
<Button Visibility="Collapsed" Command="{Binding DataContext.UpdateCommand, RelativeSource={RelativeSource AncestorType=ItemsControl}}" CommandParameter="{Binding spaceCode}" Style="{x:Null}" BorderBrush="Transparent" BorderThickness="0" Background="Transparent">
<TextBlock Text="异常" Foreground="{Binding unusualFlag}" FontSize="18" FontWeight="Bold" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Button>
</Border>
<Border Grid.Column="4" BorderBrush="White" BorderThickness="1">
<Button Visibility="Collapsed" Command="{Binding DataContext.UpdateCommand, RelativeSource={RelativeSource AncestorType=ItemsControl}}" CommandParameter="{Binding spaceCode}" Style="{x:Null}" BorderBrush="Transparent" BorderThickness="0" Background="Transparent">
<TextBlock Visibility="Collapsed" Foreground="{Binding isFlag}" FontSize="18" FontWeight="Bold" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Button>
<ItemsControl Grid.Column="0" ItemsSource="{Binding Shapes}" VerticalAlignment="Center" HorizontalAlignment="Center" >
<ItemsControl.ItemsPanel>
<!--布局-->
<ItemsPanelTemplate>
<WrapPanel Orientation="Vertical"></WrapPanel>
</ItemsPanelTemplate>
</ItemsControl.ItemsPanel>
<!--控件模板-->
<ItemsControl.ItemTemplate>
<DataTemplate>
<Control x:Name="ctrl" Width="900" Height="200" ></Control>
<DataTemplate.Triggers>
<!--根据不同类型选择不同模板-->
<DataTrigger Binding="{Binding spaceType}" Value="1">
<!--矩形-->
<Setter Property="Template" TargetName="ctrl">
<Setter.Value>
<ControlTemplate >
<Border Margin="5,5" Background="#0288d1" BorderBrush="White" BorderThickness="2" >
<Grid Margin="3,3">
<Grid.RowDefinitions>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
</Grid.RowDefinitions>
<Border Grid.Row="0">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition/>
<ColumnDefinition/>
<ColumnDefinition/>
<ColumnDefinition/>
<ColumnDefinition/>
<ColumnDefinition/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<Border Grid.Column="0" BorderBrush="White" BorderThickness="1">
<TextBlock Text="{Binding spaceCode}" FontSize="18" Foreground="White" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Border>
<Border Grid.Column="1" BorderBrush="White" BorderThickness="1">
<TextBlock Text="在库" FontSize="18" Foreground="White" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Border>
<Border Grid.Column="2" BorderBrush="White" BorderThickness="1">
<TextBlock Text="{Binding spaceStock}" FontSize="18" Foreground="White" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Border>
<Border Grid.Column="3" BorderBrush="White" BorderThickness="1">
<TextBlock Text="在途" FontSize="18" Foreground="White" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Border>
<Border Grid.Column="4" BorderBrush="White" BorderThickness="1">
<TextBlock Text="{Binding onRouteAmount}" FontSize="18" Foreground="White" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Border>
<Border Grid.Column="5" BorderBrush="White" BorderThickness="1">
<TextBlock Text="合计" FontSize="18" Foreground="White" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Border>
<Border Grid.Column="6" BorderBrush="White" BorderThickness="1">
<TextBlock Text="{Binding totalAmount}" FontSize="18" Foreground="White" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Border>
</Grid>
</Border>
<Border Grid.Row="1">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1*"/>
<ColumnDefinition Width="6*"/>
</Grid.ColumnDefinitions>
<Border Grid.Column="0" BorderBrush="White" BorderThickness="1">
<TextBlock Text="型号" FontSize="18" Foreground="White" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Border>
<Border Grid.Column="1" BorderBrush="White" BorderThickness="1">
<TextBlock Text="{Binding materialType}" FontSize="16" Foreground="White" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Border>
</Grid>
</Border>
</Border>
<Border Grid.Column="5" BorderBrush="White" BorderThickness="1">
<Button Command="{Binding DataContext.SpaceDetailCommand, RelativeSource={RelativeSource AncestorType=ItemsControl}}" CommandParameter="{Binding spaceCode}" Style="{x:Null}" BorderBrush="Transparent" BorderThickness="0" Background="Transparent">
<TextBlock Text="明细" FontSize="18" Foreground="Green" FontWeight="Bold" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Button>
</Border>
<Border Grid.Column="6" BorderBrush="White" BorderThickness="1">
<Button Visibility="Collapsed" Command="{Binding DataContext.UpdateCommand, RelativeSource={RelativeSource AncestorType=ItemsControl}}" CommandParameter="{Binding spaceCode}" Style="{x:Null}" BorderBrush="Transparent" BorderThickness="0" Background="Transparent">
<TextBlock Text="出一个" Foreground="{Binding onlyOne}" FontSize="17" FontWeight="Bold" VerticalAlignment="Center" HorizontalAlignment="Center" />
</Button>
</Border>
</Grid>
</Border>
</Grid>
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
</DataTrigger>
</DataTemplate.Triggers>
</DataTemplate>
</ItemsControl.ItemTemplate>
</ItemsControl>
</ScrollViewer>
</StackPanel>
<Border Grid.Row="2">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition/>
<ColumnDefinition/>
<ColumnDefinition/>
<ColumnDefinition/>
<ColumnDefinition/>
<ColumnDefinition/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<Border Grid.Column="0" BorderBrush="White" BorderThickness="1" >
<TextBlock Text="状态" FontSize="18" Foreground="White" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Border>
<Border Grid.Column="1" BorderBrush="White" BorderThickness="1">
<!--<Button Command="{Binding DataContext.UpdateInStoreFlagCommand, RelativeSource={RelativeSource AncestorType=ItemsControl}}" CommandParameter="{Binding spaceCode}" Style="{StaticResource BUTTON_AGREE}" BorderBrush="Transparent" BorderThickness="0" Background="Transparent">
<TextBlock Text="入库" Foreground="{Binding inStoreFlag,Converter={StaticResource StatusLabelConverter}}" FontSize="18" FontWeight="Bold" VerticalAlignment="Center" HorizontalAlignment="Center" />
</Button>-->
</Border>
<Border Grid.Column="2" BorderBrush="White" BorderThickness="1">
<!--<Button Command="{Binding DataContext.UpdateOutStoreFlagCommand, RelativeSource={RelativeSource AncestorType=ItemsControl}}" CommandParameter="{Binding spaceCode}" Style="{StaticResource BUTTON_AGREE}" BorderBrush="Transparent" BorderThickness="0" Background="Transparent">
<TextBlock Text="出库" Foreground="{Binding outStoreFlag,Converter={StaticResource StatusLabelConverter}}" FontSize="18" FontWeight="Bold" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Button>-->
</Border>
<Border Grid.Column="3" BorderBrush="White" BorderThickness="1">
<!--<Button Command="{Binding DataContext.UpdateUnusualFlagCommand, RelativeSource={RelativeSource AncestorType=ItemsControl}}" CommandParameter="{Binding spaceCode}" Style="{StaticResource BUTTON_AGREE}" BorderBrush="Transparent" BorderThickness="0" Background="Transparent">
<TextBlock Text="异常" Foreground="{Binding unusualFlag,Converter={StaticResource StatusLabelConverter}}" FontSize="18" FontWeight="Bold" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Button>-->
</Border>
<Border Grid.Column="4" BorderBrush="White" BorderThickness="1">
<!--<Button Command="{Binding DataContext.UpdateSpaceStatusCommand, RelativeSource={RelativeSource AncestorType=ItemsControl}}" CommandParameter="{Binding spaceCode}" Style="{StaticResource BUTTON_AGREE}" BorderBrush="Transparent" BorderThickness="0" Background="Transparent">
<TextBlock Text="禁用" Foreground="{Binding spaceStatus,Converter={StaticResource StatusLabelConverter}}" FontSize="18" FontWeight="Bold" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Button>-->
</Border>
<Border Grid.Column="5" BorderBrush="White" BorderThickness="1">
<!--<Button Command="{Binding DataContext.SpaceDetailCommand, RelativeSource={RelativeSource AncestorType=ItemsControl}}" CommandParameter="{Binding spaceCode}" Style="{StaticResource BUTTON_AGREE}" BorderBrush="Transparent" BorderThickness="0" Background="Transparent">
<TextBlock Text="明细" FontSize="18" Foreground="Green" FontWeight="Bold" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Button>-->
</Border>
<Border Grid.Column="6" BorderBrush="White" BorderThickness="1">
<!--<Button Command="{Binding DataContext.OutOnlyOneCommand, RelativeSource={RelativeSource AncestorType=ItemsControl}}" CommandParameter="{Binding spaceCode}" Style="{StaticResource BUTTON_AGREE}" BorderBrush="Transparent" BorderThickness="0" Background="Transparent">
<TextBlock Text="出一个" Foreground="Green" FontSize="17" FontWeight="Bold" VerticalAlignment="Center" HorizontalAlignment="Center" />
</Button>-->
</Border>
</Grid>
</Border>
</Grid>
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
</DataTrigger>
</DataTemplate.Triggers>
</DataTemplate>
</ItemsControl.ItemTemplate>
</ItemsControl>
</Border>
<Border Grid.Column="1" BorderBrush="#0288d1" BorderThickness="1" Margin="5">
<Border.Effect>
<DropShadowEffect Color="#1254AB" ShadowDepth="0" BlurRadius="5" Opacity="0.5" Direction="0"></DropShadowEffect>
</Border.Effect>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="0.5*"/>
<RowDefinition Height="13*"/>
</Grid.RowDefinitions>
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center">
<TextBlock Text="货道明细" Foreground="#FFFFFF" FontSize="15"/>
</StackPanel>
<DataGrid Grid.Row="1" ItemsSource="{Binding SpaceDetailDataGrid}" Background="Transparent"
FontSize="15" ColumnHeaderHeight="35"
RowHeight="31" AutoGenerateColumns="False" RowHeaderWidth="0"
GridLinesVisibility="None" ScrollViewer.HorizontalScrollBarVisibility="Hidden"
ScrollViewer.VerticalScrollBarVisibility="Hidden" BorderThickness="0" CanUserAddRows="False"
Foreground="#FFFFFF" >
<!--resourceStyle 399行修改选中字体颜色-->
<DataGrid.Columns>
<DataGridTextColumn Binding="{Binding spaceCode}" Header="货道编号" Width="1*" IsReadOnly="True" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}" />
<DataGridTextColumn Binding="{Binding materialCode}" Header="物料编号" Width="*" IsReadOnly="True" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}" />
<DataGridTextColumn Binding="{Binding materialName}" Header="物料名称" Width="*" IsReadOnly="True" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}" />
<!--<DataGridTextColumn Binding="{Binding materialType}" Header="物料类型" Width="1*" IsReadOnly="True"/>-->
</DataGrid.Columns>
</DataGrid>
</Grid>
</Border>
</Grid>
</Border>
</Grid>
</UserControl>
</UserControl>

@ -4,149 +4,254 @@
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
mc:Ignorable="d" Background="#1152AC"
mc:Ignorable="d" Background="#1152AC" FontFamily="Microsoft YaHei"
d:DesignHeight="450" d:DesignWidth="800">
<Grid >
<UserControl.Resources>
<Style x:Key="DataGridTextColumnCenterSytle" TargetType="{x:Type TextBlock}">
<Setter Property="VerticalAlignment" Value="Center" />
<Setter Property="HorizontalAlignment" Value="Left" />
</Style>
<Style TargetType="DataGrid">
<!--网格线颜色-->
<Setter Property="CanUserResizeColumns" Value="false"/>
<Setter Property="Background" Value="#1152AC" />
<Setter Property="BorderBrush" Value="#4285DE" />
<Setter Property="Foreground" Value="White"/>
<Setter Property="HorizontalGridLinesBrush">
<Setter.Value>
<SolidColorBrush Color="#4285DE"/>
</Setter.Value>
</Setter>
<Setter Property="VerticalGridLinesBrush">
<Setter.Value>
<SolidColorBrush Color="#1152AC"/>
</Setter.Value>
</Setter>
</Style>
<!--列头标题栏样式-->
<Style TargetType="DataGridColumnHeader">
<Setter Property="HorizontalContentAlignment" Value="Center" />
<Setter Property="BorderBrush" Value="#dddddd" />
<Setter Property="FontSize" Value="18"/>
<Setter Property="Background" Value="#4285DE"/>
<Setter Property="Foreground" Value="White"/>
</Style>
<!--单元格样式-->
<Style TargetType="DataGridCell">
<Setter Property="FocusVisualStyle" Value="{x:Null}" />
<Setter Property="BorderThickness" Value="0" />
<Setter Property="BorderBrush" Value="Gray" />
<Setter Property="Height" Value="35"/>
<Setter Property="FontSize" Value="15"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type DataGridCell}">
<Grid Background="{TemplateBinding Background}" >
<ContentPresenter HorizontalAlignment="Left" VerticalAlignment="Center" />
</Grid>
</ControlTemplate>
</Setter.Value>
</Setter>
<Style.Triggers>
<Trigger Property="IsSelected" Value="True">
<Setter Property="Background" Value="#4285DE"/>
<Setter Property="Foreground" Value="White"/>
</Trigger>
</Style.Triggers>
</Style>
</UserControl.Resources>
<Grid Margin="5,5">
<Grid.RowDefinitions>
<RowDefinition Height="auto"/>
<RowDefinition/>
<RowDefinition Height="1*"/>
<RowDefinition Height="12*"/>
</Grid.RowDefinitions>
<StackPanel Grid.Row="0" Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Center">
<TextBlock Text="泡前库实时库存" FontSize="18" FontWeight="Bold" Foreground="White"/>
</StackPanel>
<StackPanel Grid.Row="1" Margin="5,5">
<ScrollViewer x:Name="MainScrollViewer" materialDesign:ScrollViewerAssist.IsAutoHideEnabled="True">
<ItemsControl ItemsSource="{Binding Shapes}" VerticalAlignment="Center" HorizontalAlignment="Center" >
<ItemsControl.ItemsPanel>
<!--布局-->
<ItemsPanelTemplate>
<WrapPanel Orientation="Horizontal"></WrapPanel>
</ItemsPanelTemplate>
</ItemsControl.ItemsPanel>
<!--控件模板-->
<ItemsControl.ItemTemplate>
<DataTemplate>
<Control x:Name="ctrl" MinWidth="550" MinHeight="160" ></Control>
<DataTemplate.Triggers>
<!--根据不同类型选择不同模板-->
<DataTrigger Binding="{Binding spaceType}" Value="1">
<!--矩形-->
<Setter Property="Template" TargetName="ctrl">
<Setter.Value>
<ControlTemplate >
<Border Margin="3" Background="#0288d1" BorderBrush="White" BorderThickness="2" >
<Grid Margin="3,3">
<Grid.RowDefinitions>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
</Grid.RowDefinitions>
<Border Grid.Row="0">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition/>
<ColumnDefinition/>
<ColumnDefinition/>
<ColumnDefinition/>
<ColumnDefinition/>
<ColumnDefinition/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<Border Grid.Column="0" BorderBrush="White" BorderThickness="1">
<TextBlock Text="{Binding spaceCode}" FontSize="18" Foreground="White" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Border>
<Border Grid.Column="1" BorderBrush="White" BorderThickness="1">
<TextBlock Text="在库" FontSize="18" Foreground="White" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Border>
<Border Grid.Column="2" BorderBrush="White" BorderThickness="1">
<TextBlock Text="{Binding spaceStock}" FontSize="18" Foreground="White" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Border>
<Border Grid.Column="3" BorderBrush="White" BorderThickness="1">
<TextBlock Text="在途" FontSize="18" Foreground="White" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Border>
<Border Grid.Column="4" BorderBrush="White" BorderThickness="1">
<TextBlock Text="{Binding onTheWay}" FontSize="18" Foreground="White" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Border>
<Border Grid.Column="5" BorderBrush="White" BorderThickness="1">
<TextBlock Text="合计" FontSize="18" Foreground="White" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Border>
<Border Grid.Column="6" BorderBrush="White" BorderThickness="1">
<TextBlock Text="{Binding totalAmount}" FontSize="18" Foreground="White" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Border>
</Grid>
</Border>
<Border Grid.Row="1">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1*"/>
<ColumnDefinition Width="6*"/>
</Grid.ColumnDefinitions>
<Border Grid.Column="0" BorderBrush="White" BorderThickness="1">
<TextBlock Text="型号" FontSize="18" Foreground="White" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Border>
<Border Grid.Column="1" BorderBrush="White" BorderThickness="1">
<TextBlock Text="{Binding materialType}" FontSize="16" Foreground="White" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Border>
</Grid>
</Border>
<Border Grid.Row="2">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition/>
<ColumnDefinition/>
<ColumnDefinition/>
<ColumnDefinition/>
<ColumnDefinition/>
<ColumnDefinition/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<Border Grid.Column="0" BorderBrush="White" BorderThickness="1" >
<TextBlock Text="状态" FontSize="18" Foreground="White" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Border>
<Border Grid.Column="1" BorderBrush="White" BorderThickness="1">
<Border Grid.Row="1">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="8*"/>
<ColumnDefinition Width="4*"/>
</Grid.ColumnDefinitions>
<Border Grid.Column="0" BorderBrush="#0288d1" BorderThickness="1" Margin="5">
<Border.Effect>
<DropShadowEffect Color="#1254AB" ShadowDepth="0" BlurRadius="5" Opacity="0.5" Direction="0"></DropShadowEffect>
</Border.Effect>
<Button IsEnabled="{Binding setEnable}" Command="{Binding DataContext.EnterSpaceCommand, RelativeSource={RelativeSource AncestorType=ItemsControl}}" CommandParameter="{Binding spaceCode}" Style="{x:Null}" BorderBrush="Transparent" BorderThickness="0" Background="Transparent">
<TextBlock Text="入库" Foreground="{Binding inStoreFlag}" FontSize="18" FontWeight="Bold" VerticalAlignment="Center" HorizontalAlignment="Center" />
</Button>
</Border>
<Border Grid.Column="2" BorderBrush="White" BorderThickness="1">
<Button IsEnabled="{Binding setEnable}" Visibility="Collapsed" Command="{Binding DataContext.OutSpaceCommand, RelativeSource={RelativeSource AncestorType=ItemsControl}}" CommandParameter="{Binding spaceCode}" Style="{x:Null}" BorderBrush="Transparent" BorderThickness="0" Background="Transparent">
<TextBlock Text="入库" Foreground="{Binding inStoreFlag}" FontSize="18" FontWeight="Bold" VerticalAlignment="Center" HorizontalAlignment="Center" />
</Button>
</Border>
<Border Grid.Column="3" BorderBrush="White" BorderThickness="1">
<Button IsEnabled="{Binding setEnable}" Command="{Binding DataContext.UpdateCommand, RelativeSource={RelativeSource AncestorType=ItemsControl}}" CommandParameter="{Binding spaceCode}" Style="{x:Null}" BorderBrush="Transparent" BorderThickness="0" Background="Transparent">
<TextBlock Text="异常" Foreground="{Binding unusualFlag}" FontSize="18" FontWeight="Bold" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Button>
</Border>
<Border Grid.Column="4" BorderBrush="White" BorderThickness="1">
<Button IsEnabled="{Binding setEnable}" Command="{Binding DataContext.IsEnableSpace, RelativeSource={RelativeSource AncestorType=ItemsControl}}" CommandParameter="{Binding spaceCode}" Style="{x:Null}" BorderBrush="Transparent" BorderThickness="0" Background="Transparent">
<TextBlock Text="禁用" Foreground="{Binding isFlag}" FontSize="18" FontWeight="Bold" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Button>
<ItemsControl Grid.Column="0" ItemsSource="{Binding Shapes}" VerticalAlignment="Center" HorizontalAlignment="Center" >
<ItemsControl.ItemsPanel>
<!--布局-->
<ItemsPanelTemplate>
<WrapPanel Orientation="Vertical"></WrapPanel>
</ItemsPanelTemplate>
</ItemsControl.ItemsPanel>
<!--控件模板-->
<ItemsControl.ItemTemplate>
<DataTemplate>
<Control x:Name="ctrl" Width="450" Height="200" ></Control>
<DataTemplate.Triggers>
<!--根据不同类型选择不同模板-->
<DataTrigger Binding="{Binding spaceType}" Value="1">
<!--矩形-->
<Setter Property="Template" TargetName="ctrl">
<Setter.Value>
<ControlTemplate >
<Border Margin="5,5" Background="#0288d1" BorderBrush="White" BorderThickness="2" >
<Grid Margin="3,3">
<Grid.RowDefinitions>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
</Grid.RowDefinitions>
<Border Grid.Row="0">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition/>
<ColumnDefinition/>
<ColumnDefinition/>
<ColumnDefinition/>
<ColumnDefinition/>
<ColumnDefinition/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<Border Grid.Column="0" BorderBrush="White" BorderThickness="1">
<TextBlock Text="{Binding spaceCode}" FontSize="18" Foreground="White" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Border>
<Border Grid.Column="1" BorderBrush="White" BorderThickness="1">
<TextBlock Text="在库" FontSize="18" Foreground="White" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Border>
<Border Grid.Column="2" BorderBrush="White" BorderThickness="1">
<TextBlock Text="{Binding spaceStock}" FontSize="18" Foreground="White" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Border>
<Border Grid.Column="3" BorderBrush="White" BorderThickness="1">
<TextBlock Text="在途" FontSize="18" Foreground="White" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Border>
<Border Grid.Column="4" BorderBrush="White" BorderThickness="1">
<TextBlock Text="{Binding onRouteAmount}" FontSize="18" Foreground="White" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Border>
<Border Grid.Column="5" BorderBrush="White" BorderThickness="1">
<TextBlock Text="合计" FontSize="18" Foreground="White" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Border>
<Border Grid.Column="6" BorderBrush="White" BorderThickness="1">
<TextBlock Text="{Binding totalAmount}" FontSize="18" Foreground="White" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Border>
</Grid>
</Border>
<Border Grid.Row="1">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1*"/>
<ColumnDefinition Width="6*"/>
</Grid.ColumnDefinitions>
<Border Grid.Column="0" BorderBrush="White" BorderThickness="1">
<TextBlock Text="型号" FontSize="18" Foreground="White" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Border>
<Border Grid.Column="1" BorderBrush="White" BorderThickness="1">
<TextBlock Text="{Binding materialType}" FontSize="16" Foreground="White" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Border>
</Grid>
</Border>
</Border>
<Border Grid.Column="5" BorderBrush="White" BorderThickness="1">
<Button IsEnabled="{Binding setEnable}" Command="{Binding DataContext.SpaceDetailCommand, RelativeSource={RelativeSource AncestorType=ItemsControl}}" CommandParameter="{Binding spaceCode}" Style="{x:Null}" BorderBrush="Transparent" BorderThickness="0" Background="Transparent">
<TextBlock Text="明细" FontSize="18" Foreground="Green" FontWeight="Bold" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Button>
</Border>
<Border Grid.Column="6" BorderBrush="White" BorderThickness="1">
</Border>
</Grid>
</Border>
</Grid>
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
</DataTrigger>
</DataTemplate.Triggers>
</DataTemplate>
</ItemsControl.ItemTemplate>
</ItemsControl>
</ScrollViewer>
</StackPanel>
<Border Grid.Row="2">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition/>
<ColumnDefinition/>
<ColumnDefinition/>
<ColumnDefinition/>
<ColumnDefinition/>
<ColumnDefinition/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<Border Grid.Column="0" BorderBrush="White" BorderThickness="1" >
<TextBlock Text="状态" FontSize="18" Foreground="White" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Border>
<Border Grid.Column="1" BorderBrush="White" BorderThickness="1">
<!--<Button Command="{Binding DataContext.UpdateInStoreFlagCommand, RelativeSource={RelativeSource AncestorType=ItemsControl}}" CommandParameter="{Binding spaceCode}" Style="{StaticResource BUTTON_AGREE}" BorderBrush="Transparent" BorderThickness="0" Background="Transparent">
<TextBlock Text="入库" Foreground="{Binding inStoreFlag,Converter={StaticResource StatusLabelConverter}}" FontSize="18" FontWeight="Bold" VerticalAlignment="Center" HorizontalAlignment="Center" />
</Button>-->
</Border>
<Border Grid.Column="2" BorderBrush="White" BorderThickness="1">
<!--<Button Command="{Binding DataContext.UpdateOutStoreFlagCommand, RelativeSource={RelativeSource AncestorType=ItemsControl}}" CommandParameter="{Binding spaceCode}" Style="{StaticResource BUTTON_AGREE}" BorderBrush="Transparent" BorderThickness="0" Background="Transparent">
<TextBlock Text="出库" Foreground="{Binding outStoreFlag,Converter={StaticResource StatusLabelConverter}}" FontSize="18" FontWeight="Bold" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Button>-->
</Border>
<Border Grid.Column="3" BorderBrush="White" BorderThickness="1">
<!--<Button Command="{Binding DataContext.UpdateUnusualFlagCommand, RelativeSource={RelativeSource AncestorType=ItemsControl}}" CommandParameter="{Binding spaceCode}" Style="{StaticResource BUTTON_AGREE}" BorderBrush="Transparent" BorderThickness="0" Background="Transparent">
<TextBlock Text="异常" Foreground="{Binding unusualFlag,Converter={StaticResource StatusLabelConverter}}" FontSize="18" FontWeight="Bold" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Button>-->
</Border>
<Border Grid.Column="4" BorderBrush="White" BorderThickness="1">
<!--<Button Command="{Binding DataContext.UpdateSpaceStatusCommand, RelativeSource={RelativeSource AncestorType=ItemsControl}}" CommandParameter="{Binding spaceCode}" Style="{StaticResource BUTTON_AGREE}" BorderBrush="Transparent" BorderThickness="0" Background="Transparent">
<TextBlock Text="禁用" Foreground="{Binding spaceStatus,Converter={StaticResource StatusLabelConverter}}" FontSize="18" FontWeight="Bold" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Button>-->
</Border>
<Border Grid.Column="5" BorderBrush="White" BorderThickness="1">
<!--<Button Command="{Binding DataContext.SpaceDetailCommand, RelativeSource={RelativeSource AncestorType=ItemsControl}}" CommandParameter="{Binding spaceCode}" Style="{StaticResource BUTTON_AGREE}" BorderBrush="Transparent" BorderThickness="0" Background="Transparent">
<TextBlock Text="明细" FontSize="18" Foreground="Green" FontWeight="Bold" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Button>-->
</Border>
<Border Grid.Column="6" BorderBrush="White" BorderThickness="1">
<!--<Button Command="{Binding DataContext.OutOnlyOneCommand, RelativeSource={RelativeSource AncestorType=ItemsControl}}" CommandParameter="{Binding spaceCode}" Style="{StaticResource BUTTON_AGREE}" BorderBrush="Transparent" BorderThickness="0" Background="Transparent">
<TextBlock Text="出一个" Foreground="Green" FontSize="17" FontWeight="Bold" VerticalAlignment="Center" HorizontalAlignment="Center" />
</Button>-->
</Border>
</Grid>
</Border>
</Grid>
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
</DataTrigger>
</DataTemplate.Triggers>
</DataTemplate>
</ItemsControl.ItemTemplate>
</ItemsControl>
</Border>
<Border Grid.Column="1" BorderBrush="#0288d1" BorderThickness="1" Margin="5">
<Border.Effect>
<DropShadowEffect Color="#1254AB" ShadowDepth="0" BlurRadius="5" Opacity="0.5" Direction="0"></DropShadowEffect>
</Border.Effect>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="0.5*"/>
<RowDefinition Height="13*"/>
</Grid.RowDefinitions>
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center">
<TextBlock Text="货道明细" Foreground="#FFFFFF" FontSize="15"/>
</StackPanel>
<DataGrid Grid.Row="1" ItemsSource="{Binding SpaceDetailDataGrid}" Background="Transparent"
FontSize="15" ColumnHeaderHeight="35"
RowHeight="31" AutoGenerateColumns="False" RowHeaderWidth="0"
GridLinesVisibility="None" ScrollViewer.HorizontalScrollBarVisibility="Hidden"
ScrollViewer.VerticalScrollBarVisibility="Hidden" BorderThickness="0" CanUserAddRows="False"
Foreground="#FFFFFF" >
<!--resourceStyle 399行修改选中字体颜色-->
<DataGrid.Columns>
<DataGridTextColumn Binding="{Binding spaceCode}" Header="货道编号" Width="1*" IsReadOnly="True" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}" />
<DataGridTextColumn Binding="{Binding materialCode}" Header="物料编号" Width="*" IsReadOnly="True" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}" />
<DataGridTextColumn Binding="{Binding materialName}" Header="物料名称" Width="*" IsReadOnly="True" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}" />
<!--<DataGridTextColumn Binding="{Binding materialType}" Header="物料类型" Width="1*" IsReadOnly="True"/>-->
</DataGrid.Columns>
</DataGrid>
</Grid>
</Border>
</Grid>
</Border>
</Grid>
</UserControl>

@ -0,0 +1,256 @@
<UserControl x:Class="Aucma.Core.BoxFoam.Views.UserPage.LinerInventory"
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:Aucma.Core.BoxFoam.Views.UserPage"
mc:Ignorable="d" FontFamily="Microsoft YaHei"
d:DesignHeight="450" d:DesignWidth="800">
<UserControl.Resources>
<Style x:Key="DataGridTextColumnCenterSytle" TargetType="{x:Type TextBlock}">
<Setter Property="VerticalAlignment" Value="Center" />
<Setter Property="HorizontalAlignment" Value="Left" />
</Style>
<Style TargetType="DataGrid">
<!--网格线颜色-->
<Setter Property="CanUserResizeColumns" Value="false"/>
<Setter Property="Background" Value="#1152AC" />
<Setter Property="BorderBrush" Value="#4285DE" />
<Setter Property="Foreground" Value="White"/>
<Setter Property="HorizontalGridLinesBrush">
<Setter.Value>
<SolidColorBrush Color="#4285DE"/>
</Setter.Value>
</Setter>
<Setter Property="VerticalGridLinesBrush">
<Setter.Value>
<SolidColorBrush Color="#1152AC"/>
</Setter.Value>
</Setter>
</Style>
<!--列头标题栏样式-->
<Style TargetType="DataGridColumnHeader">
<Setter Property="HorizontalContentAlignment" Value="Center" />
<Setter Property="BorderBrush" Value="#dddddd" />
<Setter Property="FontSize" Value="18"/>
<Setter Property="Background" Value="#4285DE"/>
<Setter Property="Foreground" Value="White"/>
</Style>
<!--单元格样式-->
<Style TargetType="DataGridCell">
<Setter Property="FocusVisualStyle" Value="{x:Null}" />
<Setter Property="BorderThickness" Value="0" />
<Setter Property="BorderBrush" Value="Gray" />
<Setter Property="Height" Value="35"/>
<Setter Property="FontSize" Value="15"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type DataGridCell}">
<Grid Background="{TemplateBinding Background}" >
<ContentPresenter HorizontalAlignment="Left" VerticalAlignment="Center" />
</Grid>
</ControlTemplate>
</Setter.Value>
</Setter>
<Style.Triggers>
<Trigger Property="IsSelected" Value="True">
<Setter Property="Background" Value="#4285DE"/>
<Setter Property="Foreground" Value="White"/>
</Trigger>
</Style.Triggers>
</Style>
</UserControl.Resources>
<Grid Margin="5,5">
<Grid.RowDefinitions>
<RowDefinition Height="1*"/>
<RowDefinition Height="12*"/>
</Grid.RowDefinitions>
<StackPanel Grid.Row="0" Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Center">
<TextBlock Text="内胆库实时库存" FontSize="18" FontWeight="Bold" Foreground="White"/>
</StackPanel>
<Border Grid.Row="1">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="8*"/>
<ColumnDefinition Width="4*"/>
</Grid.ColumnDefinitions>
<Border Grid.Column="0" BorderBrush="#0288d1" BorderThickness="1" Margin="5">
<Border.Effect>
<DropShadowEffect Color="#1254AB" ShadowDepth="0" BlurRadius="5" Opacity="0.5" Direction="0"></DropShadowEffect>
</Border.Effect>
<ItemsControl Grid.Column="0" ItemsSource="{Binding Shapes}" VerticalAlignment="Center" HorizontalAlignment="Center" >
<ItemsControl.ItemsPanel>
<!--布局-->
<ItemsPanelTemplate>
<WrapPanel Orientation="Vertical"></WrapPanel>
</ItemsPanelTemplate>
</ItemsControl.ItemsPanel>
<!--控件模板-->
<ItemsControl.ItemTemplate>
<DataTemplate>
<Control x:Name="ctrl" Width="450" Height="200" ></Control>
<DataTemplate.Triggers>
<!--根据不同类型选择不同模板-->
<DataTrigger Binding="{Binding spaceType}" Value="1">
<!--矩形-->
<Setter Property="Template" TargetName="ctrl">
<Setter.Value>
<ControlTemplate >
<Border Margin="5,5" Background="#0288d1" BorderBrush="White" BorderThickness="2" >
<Grid Margin="3,3">
<Grid.RowDefinitions>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
</Grid.RowDefinitions>
<Border Grid.Row="0">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition/>
<ColumnDefinition/>
<ColumnDefinition/>
<ColumnDefinition/>
<ColumnDefinition/>
<ColumnDefinition/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<Border Grid.Column="0" BorderBrush="White" BorderThickness="1">
<TextBlock Text="{Binding spaceCode}" FontSize="18" Foreground="White" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Border>
<Border Grid.Column="1" BorderBrush="White" BorderThickness="1">
<TextBlock Text="在库" FontSize="18" Foreground="White" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Border>
<Border Grid.Column="2" BorderBrush="White" BorderThickness="1">
<TextBlock Text="{Binding spaceStock}" FontSize="18" Foreground="White" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Border>
<Border Grid.Column="3" BorderBrush="White" BorderThickness="1">
<TextBlock Text="在途" FontSize="18" Foreground="White" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Border>
<Border Grid.Column="4" BorderBrush="White" BorderThickness="1">
<TextBlock Text="{Binding onRouteAmount}" FontSize="18" Foreground="White" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Border>
<Border Grid.Column="5" BorderBrush="White" BorderThickness="1">
<TextBlock Text="合计" FontSize="18" Foreground="White" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Border>
<Border Grid.Column="6" BorderBrush="White" BorderThickness="1">
<TextBlock Text="{Binding totalAmount}" FontSize="18" Foreground="White" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Border>
</Grid>
</Border>
<Border Grid.Row="1">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1*"/>
<ColumnDefinition Width="6*"/>
</Grid.ColumnDefinitions>
<Border Grid.Column="0" BorderBrush="White" BorderThickness="1">
<TextBlock Text="型号" FontSize="18" Foreground="White" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Border>
<Border Grid.Column="1" BorderBrush="White" BorderThickness="1">
<TextBlock Text="{Binding materialType}" FontSize="16" Foreground="White" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Border>
</Grid>
</Border>
<Border Grid.Row="2">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition/>
<ColumnDefinition/>
<ColumnDefinition/>
<ColumnDefinition/>
<ColumnDefinition/>
<ColumnDefinition/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<Border Grid.Column="0" BorderBrush="White" BorderThickness="1" >
<TextBlock Text="状态" FontSize="18" Foreground="White" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Border>
<Border Grid.Column="1" BorderBrush="White" BorderThickness="1">
<Button Command="{Binding DataContext.UpdateInStoreFlagCommand, RelativeSource={RelativeSource AncestorType=ItemsControl}}" CommandParameter="{Binding spaceCode}" Style="{StaticResource BUTTON_AGREE}" BorderBrush="Transparent" BorderThickness="0" Background="Transparent">
<TextBlock Text="入库" Foreground="{Binding inStoreFlag,Converter={StaticResource StatusLabelConverter}}" FontSize="18" FontWeight="Bold" VerticalAlignment="Center" HorizontalAlignment="Center" />
</Button>
</Border>
<Border Grid.Column="2" BorderBrush="White" BorderThickness="1">
</Border>
<Border Grid.Column="3" BorderBrush="White" BorderThickness="1">
<Button Command="{Binding DataContext.UpdateUnusualFlagCommand, RelativeSource={RelativeSource AncestorType=ItemsControl}}" CommandParameter="{Binding spaceCode}" Style="{StaticResource BUTTON_AGREE}" BorderBrush="Transparent" BorderThickness="0" Background="Transparent">
<TextBlock Text="异常" Foreground="{Binding unusualFlag,Converter={StaticResource StatusLabelConverter}}" FontSize="18" FontWeight="Bold" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Button>
</Border>
<Border Grid.Column="4" BorderBrush="White" BorderThickness="1">
<Button Command="{Binding DataContext.UpdateSpaceStatusCommand, RelativeSource={RelativeSource AncestorType=ItemsControl}}" CommandParameter="{Binding spaceCode}" Style="{StaticResource BUTTON_AGREE}" BorderBrush="Transparent" BorderThickness="0" Background="Transparent">
<TextBlock Text="禁用" Foreground="{Binding spaceStatus,Converter={StaticResource StatusLabelConverter}}" FontSize="18" FontWeight="Bold" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Button>
</Border>
<Border Grid.Column="5" BorderBrush="White" BorderThickness="1">
<Button Command="{Binding DataContext.SpaceDetailCommand, RelativeSource={RelativeSource AncestorType=ItemsControl}}" CommandParameter="{Binding spaceCode}" Style="{StaticResource BUTTON_AGREE}" BorderBrush="Transparent" BorderThickness="0" Background="Transparent">
<TextBlock Text="明细" FontSize="18" Foreground="Green" FontWeight="Bold" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Button>
</Border>
<Border Grid.Column="6" BorderBrush="White" BorderThickness="1">
<Button Command="{Binding DataContext.OutOnlyOneCommand, RelativeSource={RelativeSource AncestorType=ItemsControl}}" CommandParameter="{Binding spaceCode}" Style="{StaticResource BUTTON_AGREE}" BorderBrush="Transparent" BorderThickness="0" Background="Transparent">
<TextBlock Text="出一个" Foreground="Green" FontSize="17" FontWeight="Bold" VerticalAlignment="Center" HorizontalAlignment="Center" />
</Button>
</Border>
</Grid>
</Border>
</Grid>
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
</DataTrigger>
</DataTemplate.Triggers>
</DataTemplate>
</ItemsControl.ItemTemplate>
</ItemsControl>
</Border>
<Border Grid.Column="1" BorderBrush="#0288d1" BorderThickness="1" Margin="5">
<Border.Effect>
<DropShadowEffect Color="#1254AB" ShadowDepth="0" BlurRadius="5" Opacity="0.5" Direction="0"></DropShadowEffect>
</Border.Effect>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="2*"/>
<RowDefinition Height="13*"/>
</Grid.RowDefinitions>
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center">
<TextBlock Text="货道明细" Foreground="#FFFFFF" FontSize="15"/>
</StackPanel>
<DataGrid Grid.Row="1" ItemsSource="{Binding SpaceDetailDataGrid}" Background="Transparent"
FontSize="15" ColumnHeaderHeight="35"
RowHeight="31" AutoGenerateColumns="False" RowHeaderWidth="0"
GridLinesVisibility="None" ScrollViewer.HorizontalScrollBarVisibility="Hidden"
ScrollViewer.VerticalScrollBarVisibility="Hidden" BorderThickness="0" CanUserAddRows="False"
Foreground="#FFFFFF" >
<!--resourceStyle 399行修改选中字体颜色-->
<DataGrid.Columns>
<DataGridTextColumn Binding="{Binding spaceCode}" Header="货道编号" Width="1*" IsReadOnly="True" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}" />
<DataGridTextColumn Binding="{Binding materialCode}" Header="物料编号" Width="*" IsReadOnly="True" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}" />
<DataGridTextColumn Binding="{Binding materialName}" Header="物料名称" Width="*" IsReadOnly="True" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}" />
<!--<DataGridTextColumn Binding="{Binding materialType}" Header="物料类型" Width="1*" IsReadOnly="True"/>-->
</DataGrid.Columns>
</DataGrid>
</Grid>
</Border>
</Grid>
</Border>
</Grid>
</UserControl>

@ -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 Aucma.Core.BoxFoam.Views.UserPage
{
/// <summary>
/// LinerInventory.xaml 的交互逻辑
/// </summary>
public partial class LinerInventory : UserControl
{
public LinerInventory()
{
InitializeComponent();
}
}
}

@ -0,0 +1,259 @@
<UserControl x:Class="Aucma.Core.BoxFoam.Views.UserPage.ShellInventory"
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:Aucma.Core.BoxFoam.Views.UserPage"
mc:Ignorable="d" FontFamily="Microsoft YaHei"
d:DesignHeight="450" d:DesignWidth="800">
<UserControl.Resources>
<Style x:Key="DataGridTextColumnCenterSytle" TargetType="{x:Type TextBlock}">
<Setter Property="VerticalAlignment" Value="Center" />
<Setter Property="HorizontalAlignment" Value="Left" />
</Style>
<Style TargetType="DataGrid">
<!--网格线颜色-->
<Setter Property="CanUserResizeColumns" Value="false"/>
<Setter Property="Background" Value="#1152AC" />
<Setter Property="BorderBrush" Value="#4285DE" />
<Setter Property="Foreground" Value="White"/>
<Setter Property="HorizontalGridLinesBrush">
<Setter.Value>
<SolidColorBrush Color="#4285DE"/>
</Setter.Value>
</Setter>
<Setter Property="VerticalGridLinesBrush">
<Setter.Value>
<SolidColorBrush Color="#1152AC"/>
</Setter.Value>
</Setter>
</Style>
<!--列头标题栏样式-->
<Style TargetType="DataGridColumnHeader">
<Setter Property="HorizontalContentAlignment" Value="Center" />
<Setter Property="BorderBrush" Value="#dddddd" />
<Setter Property="FontSize" Value="18"/>
<Setter Property="Background" Value="#4285DE"/>
<Setter Property="Foreground" Value="White"/>
</Style>
<!--单元格样式-->
<Style TargetType="DataGridCell">
<Setter Property="FocusVisualStyle" Value="{x:Null}" />
<Setter Property="BorderThickness" Value="0" />
<Setter Property="BorderBrush" Value="Gray" />
<Setter Property="Height" Value="35"/>
<Setter Property="FontSize" Value="15"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type DataGridCell}">
<Grid Background="{TemplateBinding Background}" >
<ContentPresenter HorizontalAlignment="Left" VerticalAlignment="Center" />
</Grid>
</ControlTemplate>
</Setter.Value>
</Setter>
<Style.Triggers>
<Trigger Property="IsSelected" Value="True">
<Setter Property="Background" Value="#4285DE"/>
<Setter Property="Foreground" Value="White"/>
</Trigger>
</Style.Triggers>
</Style>
</UserControl.Resources>
<Grid Margin="5,5">
<Grid.RowDefinitions>
<RowDefinition Height="1*"/>
<RowDefinition Height="12*"/>
</Grid.RowDefinitions>
<StackPanel Grid.Row="0" Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Center">
<TextBlock Text="箱壳库实时库存" FontSize="18" FontWeight="Bold" Foreground="White"/>
</StackPanel>
<Border Grid.Row="1">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="8*"/>
<ColumnDefinition Width="4*"/>
</Grid.ColumnDefinitions>
<Border Grid.Column="0" BorderBrush="#0288d1" BorderThickness="1" Margin="5">
<Border.Effect>
<DropShadowEffect Color="#1254AB" ShadowDepth="0" BlurRadius="5" Opacity="0.5" Direction="0"></DropShadowEffect>
</Border.Effect>
<ItemsControl Grid.Column="0" ItemsSource="{Binding Shapes}" VerticalAlignment="Center" HorizontalAlignment="Center" >
<ItemsControl.ItemsPanel>
<!--布局-->
<ItemsPanelTemplate>
<WrapPanel Orientation="Vertical"></WrapPanel>
</ItemsPanelTemplate>
</ItemsControl.ItemsPanel>
<!--控件模板-->
<ItemsControl.ItemTemplate>
<DataTemplate>
<Control x:Name="ctrl" Width="450" Height="200" ></Control>
<DataTemplate.Triggers>
<!--根据不同类型选择不同模板-->
<DataTrigger Binding="{Binding spaceType}" Value="1">
<!--矩形-->
<Setter Property="Template" TargetName="ctrl">
<Setter.Value>
<ControlTemplate >
<Border Margin="5,5" Background="#0288d1" BorderBrush="White" BorderThickness="2" >
<Grid Margin="3,3">
<Grid.RowDefinitions>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
</Grid.RowDefinitions>
<Border Grid.Row="0">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition/>
<ColumnDefinition/>
<ColumnDefinition/>
<ColumnDefinition/>
<ColumnDefinition/>
<ColumnDefinition/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<Border Grid.Column="0" BorderBrush="White" BorderThickness="1">
<TextBlock Text="{Binding spaceCode}" FontSize="18" Foreground="White" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Border>
<Border Grid.Column="1" BorderBrush="White" BorderThickness="1">
<TextBlock Text="在库" FontSize="18" Foreground="White" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Border>
<Border Grid.Column="2" BorderBrush="White" BorderThickness="1">
<TextBlock Text="{Binding spaceStock}" FontSize="18" Foreground="White" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Border>
<Border Grid.Column="3" BorderBrush="White" BorderThickness="1">
<TextBlock Text="在途" FontSize="18" Foreground="White" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Border>
<Border Grid.Column="4" BorderBrush="White" BorderThickness="1">
<TextBlock Text="{Binding onRouteAmount}" FontSize="18" Foreground="White" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Border>
<Border Grid.Column="5" BorderBrush="White" BorderThickness="1">
<TextBlock Text="合计" FontSize="18" Foreground="White" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Border>
<Border Grid.Column="6" BorderBrush="White" BorderThickness="1">
<TextBlock Text="{Binding totalAmount}" FontSize="18" Foreground="White" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Border>
</Grid>
</Border>
<Border Grid.Row="1">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1*"/>
<ColumnDefinition Width="6*"/>
</Grid.ColumnDefinitions>
<Border Grid.Column="0" BorderBrush="White" BorderThickness="1">
<TextBlock Text="型号" FontSize="18" Foreground="White" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Border>
<Border Grid.Column="1" BorderBrush="White" BorderThickness="1">
<TextBlock Text="{Binding materialType}" FontSize="16" Foreground="White" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Border>
</Grid>
</Border>
<Border Grid.Row="2">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition/>
<ColumnDefinition/>
<ColumnDefinition/>
<ColumnDefinition/>
<ColumnDefinition/>
<ColumnDefinition/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<Border Grid.Column="0" BorderBrush="White" BorderThickness="1" >
<TextBlock Text="状态" FontSize="18" Foreground="White" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Border>
<Border Grid.Column="1" BorderBrush="White" BorderThickness="1">
<Button Command="{Binding DataContext.UpdateInStoreFlagCommand, RelativeSource={RelativeSource AncestorType=ItemsControl}}" CommandParameter="{Binding spaceCode}" Style="{StaticResource BUTTON_AGREE}" BorderBrush="Transparent" BorderThickness="0" Background="Transparent">
<TextBlock Text="入库" Foreground="{Binding inStoreFlag,Converter={StaticResource StatusLabelConverter}}" FontSize="18" FontWeight="Bold" VerticalAlignment="Center" HorizontalAlignment="Center" />
</Button>
</Border>
<Border Grid.Column="2" BorderBrush="White" BorderThickness="1">
<Button Command="{Binding DataContext.UpdateOutStoreFlagCommand, RelativeSource={RelativeSource AncestorType=ItemsControl}}" CommandParameter="{Binding spaceCode}" Style="{StaticResource BUTTON_AGREE}" BorderBrush="Transparent" BorderThickness="0" Background="Transparent">
<TextBlock Text="出库" Foreground="{Binding outStoreFlag,Converter={StaticResource StatusLabelConverter}}" FontSize="18" FontWeight="Bold" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Button>
</Border>
<Border Grid.Column="3" BorderBrush="White" BorderThickness="1">
<Button Command="{Binding DataContext.UpdateUnusualFlagCommand, RelativeSource={RelativeSource AncestorType=ItemsControl}}" CommandParameter="{Binding spaceCode}" Style="{StaticResource BUTTON_AGREE}" BorderBrush="Transparent" BorderThickness="0" Background="Transparent">
<TextBlock Text="异常" Foreground="{Binding unusualFlag,Converter={StaticResource StatusLabelConverter}}" FontSize="18" FontWeight="Bold" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Button>
</Border>
<Border Grid.Column="4" BorderBrush="White" BorderThickness="1">
<Button Command="{Binding DataContext.UpdateSpaceStatusCommand, RelativeSource={RelativeSource AncestorType=ItemsControl}}" CommandParameter="{Binding spaceCode}" Style="{StaticResource BUTTON_AGREE}" BorderBrush="Transparent" BorderThickness="0" Background="Transparent">
<TextBlock Text="禁用" Foreground="{Binding spaceStatus,Converter={StaticResource StatusLabelConverter}}" FontSize="18" FontWeight="Bold" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Button>
</Border>
<Border Grid.Column="5" BorderBrush="White" BorderThickness="1">
<Button Command="{Binding DataContext.SpaceDetailCommand, RelativeSource={RelativeSource AncestorType=ItemsControl}}" CommandParameter="{Binding spaceCode}" Style="{StaticResource BUTTON_AGREE}" BorderBrush="Transparent" BorderThickness="0" Background="Transparent">
<TextBlock Text="明细" FontSize="18" Foreground="Green" FontWeight="Bold" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Button>
</Border>
<Border Grid.Column="6" BorderBrush="White" BorderThickness="1">
<Button Command="{Binding DataContext.OutOnlyOneCommand, RelativeSource={RelativeSource AncestorType=ItemsControl}}" CommandParameter="{Binding spaceCode}" Style="{StaticResource BUTTON_AGREE}" BorderBrush="Transparent" BorderThickness="0" Background="Transparent">
<TextBlock Text="出一个" Foreground="Green" FontSize="17" FontWeight="Bold" VerticalAlignment="Center" HorizontalAlignment="Center" />
</Button>
</Border>
</Grid>
</Border>
</Grid>
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
</DataTrigger>
</DataTemplate.Triggers>
</DataTemplate>
</ItemsControl.ItemTemplate>
</ItemsControl>
</Border>
<Border Grid.Column="1" BorderBrush="#0288d1" BorderThickness="1" Margin="5">
<Border.Effect>
<DropShadowEffect Color="#1254AB" ShadowDepth="0" BlurRadius="5" Opacity="0.5" Direction="0"></DropShadowEffect>
</Border.Effect>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="2*"/>
<RowDefinition Height="13*"/>
</Grid.RowDefinitions>
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center">
<TextBlock Text="货道明细" Foreground="#FFFFFF" FontSize="15"/>
</StackPanel>
<DataGrid Grid.Row="1" ItemsSource="{Binding SpaceDetailDataGrid}" Background="Transparent"
FontSize="15" ColumnHeaderHeight="35"
RowHeight="31" AutoGenerateColumns="False" RowHeaderWidth="0"
GridLinesVisibility="None" ScrollViewer.HorizontalScrollBarVisibility="Hidden"
ScrollViewer.VerticalScrollBarVisibility="Hidden" BorderThickness="0" CanUserAddRows="False"
Foreground="#FFFFFF" >
<!--resourceStyle 399行修改选中字体颜色-->
<DataGrid.Columns>
<DataGridTextColumn Binding="{Binding spaceCode}" Header="货道编号" Width="1*" IsReadOnly="True" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}" />
<DataGridTextColumn Binding="{Binding materialCode}" Header="物料编号" Width="*" IsReadOnly="True" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}" />
<DataGridTextColumn Binding="{Binding materialName}" Header="物料名称" Width="*" IsReadOnly="True" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}" />
<!--<DataGridTextColumn Binding="{Binding materialType}" Header="物料类型" Width="1*" IsReadOnly="True"/>-->
</DataGrid.Columns>
</DataGrid>
</Grid>
</Border>
</Grid>
</Border>
</Grid>
</UserControl>

@ -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 Aucma.Core.BoxFoam.Views.UserPage
{
/// <summary>
/// ShellInventory.xaml 的交互逻辑
/// </summary>
public partial class ShellInventory : UserControl
{
public ShellInventory()
{
InitializeComponent();
}
}
}

@ -5,7 +5,7 @@
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:Aucma.Core.BoxFoam.Views.UserPage"
mc:Ignorable="d"
Background="#1152AC"
Background="#1152AC" FontFamily="Microsoft YaHei"
Title="货道明细" Height="450" Width="800">
<Window.Resources>
@ -40,7 +40,7 @@
<Setter Property="HorizontalContentAlignment" Value="Center" />
<Setter Property="BorderBrush" Value="#dddddd" />
<Setter Property="Height" Value="40"/>
<Setter Property="FontSize" Value="14"/>
<Setter Property="FontSize" Value="18"/>
<Setter Property="Background" Value="#4285DE"/>
<Setter Property="Foreground" Value="White"/>
</Style>

@ -31,8 +31,6 @@
<Setter Property="FontWeight" Value="Bold"/>
<Setter Property="FontFamily" Value="Microsoft YaHei"/>
</Style>
</ResourceDictionary>
</Application.Resources>
</Application>

@ -43,8 +43,8 @@
<!--<Setter Property="BorderThickness" Value="1" />-->
<Setter Property="HorizontalContentAlignment" Value="Center" />
<Setter Property="BorderBrush" Value="#dddddd" />
<Setter Property="Height" Value="50"/>
<Setter Property="FontSize" Value="16"/>
<Setter Property="Height" Value="40"/>
<Setter Property="FontSize" Value="18"/>
<Setter Property="Background" Value="#4285DE"/>
<Setter Property="Foreground" Value="White"/>
</Style>

@ -33,18 +33,18 @@
</Grid.RowDefinitions>
<WrapPanel Grid.Row="0" HorizontalAlignment="Center" VerticalAlignment="Center">
<TextBlock Text="产品编号" FontSize="20" Foreground="White" HorizontalAlignment="Center" VerticalAlignment="Center"/>
<TextBox FontSize="20" Text="{Binding ProductCode}" Width="300" Foreground="White" BorderBrush="White" Margin="15 0 0 0" VerticalAlignment="Center" IsReadOnly="True"/>
<TextBlock Text="产品编号" FontSize="18" Foreground="White" HorizontalAlignment="Center" VerticalAlignment="Center"/>
<TextBox FontSize="18" Text="{Binding ProductCode}" Width="300" Foreground="White" BorderBrush="White" Margin="15 0 0 0" VerticalAlignment="Center" IsReadOnly="True"/>
</WrapPanel>
<WrapPanel Grid.Row="1" HorizontalAlignment="Center" VerticalAlignment="Center">
<TextBlock Text="产品型号" FontSize="20" Foreground="White" HorizontalAlignment="Center" VerticalAlignment="Center"/>
<TextBox Text="{Binding MaterialName}" FontSize="20" Width="300" Foreground="White" BorderBrush="White"
<TextBlock Text="产品型号" FontSize="18" Foreground="White" HorizontalAlignment="Center" VerticalAlignment="Center"/>
<TextBox Text="{Binding MaterialName}" FontSize="18" Width="300" Foreground="White" BorderBrush="White"
Margin="15 0 0 0"
HorizontalAlignment="Center" VerticalAlignment="Center" IsReadOnly="True"/>
</WrapPanel>
<WrapPanel Grid.Row="2" HorizontalAlignment="Center" VerticalAlignment="Center">
<TextBlock Text="打印名称" FontSize="20" Foreground="White" HorizontalAlignment="Center" VerticalAlignment="Center"/>
<TextBox Text="{Binding PrintName}" FontSize="20" Width="300" Foreground="White" BorderBrush="White" Margin="15 0 0 0"
<TextBlock Text="打印名称" FontSize="18" Foreground="White" HorizontalAlignment="Center" VerticalAlignment="Center"/>
<TextBox Text="{Binding PrintName}" FontSize="18" Width="300" Foreground="White" BorderBrush="White" Margin="15 0 0 0"
HorizontalAlignment="Center" VerticalAlignment="Center" />
</WrapPanel>
</Grid>
@ -60,26 +60,26 @@
<RowDefinition/>
</Grid.RowDefinitions>
<WrapPanel Grid.Row="0" HorizontalAlignment="Center" VerticalAlignment="Center">
<TextBlock Text="打印进度" FontSize="20" Foreground="White" HorizontalAlignment="Center" VerticalAlignment="Center"/>
<TextBlock Text="打印进度" FontSize="18" Foreground="White" HorizontalAlignment="Center" VerticalAlignment="Center"/>
<ProgressBar Style="{x:Null}" Height="20" Minimum="1" Maximum="{Binding MaxProgress}" Value="{Binding Progress}" Width="300" Margin="6"/>
</WrapPanel>
<WrapPanel Grid.Row="1" HorizontalAlignment="Center" VerticalAlignment="Center">
<TextBlock Text="打印信息" FontSize="20" Foreground="White" HorizontalAlignment="Center" VerticalAlignment="Center"/>
<TextBox Text="{Binding PrintProgress}" FontSize="20" Width="300" Foreground="White" BorderBrush="White"
<TextBlock Text="打印信息" FontSize="18" Foreground="White" HorizontalAlignment="Center" VerticalAlignment="Center"/>
<TextBox Text="{Binding PrintProgress}" FontSize="18" Width="300" Foreground="White" BorderBrush="White"
Margin="10 0 0 0" HorizontalAlignment="Center" VerticalAlignment="Center" IsReadOnly="True"/>
</WrapPanel>
<WrapPanel Grid.Row="2" HorizontalAlignment="Center" VerticalAlignment="Center">
<TextBlock Text="打印状态" FontSize="20" Foreground="White" Margin="5"/>
<TextBlock Text="打印状态" FontSize="18" Foreground="White" Margin="5"/>
<TextBlock FontSize="18" Margin="10 0" Background="{Binding State}" Width="20" Height="20"
HorizontalAlignment="Center" VerticalAlignment="Center"/>
<TextBlock Text="异常条码数量:" Margin="5" FontSize="20" Foreground="White"/>
<TextBlock Text="异常条码数量:" Margin="5" FontSize="18" Foreground="White"/>
<TextBlock Text="{Binding ErrorNum}" FontSize="18" Margin="10 0" Width="130" Foreground="White"
HorizontalAlignment="Center" VerticalAlignment="Center"/>
</WrapPanel>
<WrapPanel Grid.Row="3" HorizontalAlignment="Center" VerticalAlignment="Center">
<Button Content="打印" x:Name="Start" Height="40" FontSize="20" Margin="20 0" Command="{Binding StartOperateCommand}" IsEnabled="{Binding OperateEnabled,Mode=TwoWay}"/>
<Button Content="暂停" x:Name="Suspend" Height="40" FontSize="20" Margin="20 0" Command="{Binding SuspendOperateCommand}" IsEnabled="{Binding SuspendEnabled,Mode=TwoWay}" />
<Button Content="关闭" x:Name="Close" Height="40" FontSize="20" Margin="20 0" Command="{Binding CloseWindowCommand}" CommandParameter="{Binding ElementName=window}" />
<Button Content="打印" x:Name="Start" Height="40" FontSize="18" Margin="20 0" Command="{Binding StartOperateCommand}" IsEnabled="{Binding OperateEnabled,Mode=TwoWay}"/>
<Button Content="暂停" x:Name="Suspend" Height="40" FontSize="18" Margin="20 0" Command="{Binding SuspendOperateCommand}" IsEnabled="{Binding SuspendEnabled,Mode=TwoWay}" />
<Button Content="关闭" x:Name="Close" Height="40" FontSize="18" Margin="20 0" Command="{Binding CloseWindowCommand}" CommandParameter="{Binding ElementName=window}" />
</WrapPanel>
</Grid>
</GroupBox>

@ -73,7 +73,7 @@
<RowDefinition Height="9*"/>
</Grid.RowDefinitions>
<Border Grid.Row="0" BorderBrush="#0288d1" BorderThickness="0,0,0,1" CornerRadius="0" Background="Transparent" Margin="1,1,5,5" >
<TextBlock Text="特殊打印" FontSize="20" FontWeight="Bold" Foreground="White" VerticalAlignment="Center" HorizontalAlignment="Center"/>
<TextBlock Text="特殊打印" FontSize="18" FontWeight="Bold" Foreground="White" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Border>
<Border Grid.Row="1" BorderBrush="#0288d1" BorderThickness="0" CornerRadius="5" Background="Transparent" Margin="1,1,5,5">
@ -85,8 +85,8 @@
<UniformGrid Grid.Row="0">
<GroupBox Margin="16 0" Header="条码类型" >
<WrapPanel VerticalAlignment="Center" HorizontalAlignment="Center" Margin="50 5" >
<RadioButton Content="放行码" Foreground="White" FontSize="20" IsChecked="True" Margin="10 0" />
<TextBox Text="{Binding BarCode,Mode=TwoWay}" PreviewMouseDoubleClick="TextBox_PreviewMouseDown" FontSize="20" Width="300" BorderBrush="White" Foreground="White" Margin="10 0 0 0" HorizontalAlignment="Center" VerticalAlignment="Center" />
<RadioButton Content="放行码" Foreground="White" FontSize="18" IsChecked="True" Margin="10 0" />
<TextBox Text="{Binding BarCode,Mode=TwoWay}" PreviewMouseDoubleClick="TextBox_PreviewMouseDown" FontSize="18" Width="300" BorderBrush="White" Foreground="White" Margin="10 0 0 0" HorizontalAlignment="Center" VerticalAlignment="Center" />
</WrapPanel>
</GroupBox>
</UniformGrid>
@ -94,13 +94,13 @@
<Border Margin="16 5" BorderBrush="#0288d1" BorderThickness="1" CornerRadius="5" >
<StackPanel VerticalAlignment="Center" HorizontalAlignment="Center">
<WrapPanel Margin="5 0">
<TextBlock Text="打印数量" Foreground="white" Margin="10 5" FontSize="20" />
<Slider x:Name="PrintAmount" Minimum="0" Value="{Binding PrintNum,Mode=TwoWay}" Maximum="500" BorderBrush="White" Foreground="White" Height="40" VerticalContentAlignment="Center" HorizontalContentAlignment="Left" VerticalAlignment="Center" HorizontalAlignment="Center" Margin="15 0 0 0" FontSize="20" Width="300"/>
<TextBlock Text="打印数量" Foreground="white" Margin="10 5" FontSize="18" />
<Slider x:Name="PrintAmount" Minimum="0" Value="{Binding PrintNum,Mode=TwoWay}" Maximum="500" BorderBrush="White" Foreground="White" Height="40" VerticalContentAlignment="Center" HorizontalContentAlignment="Left" VerticalAlignment="Center" HorizontalAlignment="Center" Margin="15 0 0 0" FontSize="18" Width="300"/>
</WrapPanel>
<WrapPanel Margin="20" HorizontalAlignment="Center">
<Button Content="打印" Background="#4285DE" Margin="30 0 0 0" FontSize="20"
<Button Content="打印" Background="#4285DE" Margin="30 0 0 0" FontSize="18"
Height="40" Width="100" Command="{Binding PrintCommand}" />
<Button Content="关闭" Background="#4285DE" Margin="20 0" FontSize="20"
<Button Content="关闭" Background="#4285DE" Margin="20 0" FontSize="18"
Height="40" Width="100" Command="{Binding CloseCommand}" CommandParameter="{Binding ElementName=window}"/>
</WrapPanel>
</StackPanel>

@ -44,8 +44,7 @@
<!--<Setter Property="BorderThickness" Value="1" />-->
<Setter Property="HorizontalContentAlignment" Value="Center" />
<Setter Property="BorderBrush" Value="#dddddd" />
<Setter Property="Height" Value="40"/>
<Setter Property="FontSize" Value="18"/>
<Setter Property="Background" Value="#4285DE"/>
<Setter Property="Foreground" Value="White"/>
</Style>
@ -121,22 +120,22 @@
<RowDefinition Height="auto"/>
</Grid.RowDefinitions>
<WrapPanel Grid.Row="0" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0 15">
<TextBlock Text="产品编码" FontSize="20" Foreground="white" HorizontalAlignment="Center" VerticalAlignment="Center" />
<TextBlock Text="产品编码" FontSize="18" Foreground="white" HorizontalAlignment="Center" VerticalAlignment="Center" />
<TextBox x:Name="ProductNo" Foreground="white" Text="{Binding SelectedItem.ProductCode, ElementName=dgvMH}" IsReadOnly="True" Margin="15 0 0 0 " FontSize="18" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" Width="150"
materialDesign:HintAssist.Hint="产品编码" BorderBrush="White" />
</WrapPanel>
<WrapPanel Grid.Row="1" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0 15">
<TextBlock Text="物料编码" FontSize="20" Foreground="white" HorizontalAlignment="Center" VerticalAlignment="Center" />
<TextBlock Text="物料编码" FontSize="18" Foreground="white" HorizontalAlignment="Center" VerticalAlignment="Center" />
<TextBox x:Name="MaterialCode" Foreground="white" Text="{Binding SelectedItem.MaterialCode, ElementName=dgvMH}" IsReadOnly="True" Margin="15 0 0 0 " FontSize="18" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" Width="150"
materialDesign:HintAssist.Hint="物料编码" BorderBrush="White" />
</WrapPanel>
<WrapPanel Grid.Row="2" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0 15">
<TextBlock Text="物料名称" FontSize="20" Foreground="white" HorizontalAlignment="Center" VerticalAlignment="Center" />
<TextBlock Text="物料名称" FontSize="18" Foreground="white" HorizontalAlignment="Center" VerticalAlignment="Center" />
<TextBox x:Name="MaterialName" Foreground="white" Text="{Binding SelectedItem.MaterialName, ElementName=dgvMH}" IsReadOnly="True" Margin="15 0 0 0 " FontSize="18" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" Width="150"
materialDesign:HintAssist.Hint="物料名称" BorderBrush="White" />
</WrapPanel>
<WrapPanel Grid.Row="3" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0 15">
<TextBlock Text="打印条码" FontSize="20" Foreground="white" HorizontalAlignment="Center" VerticalAlignment="Center" />
<TextBlock Text="打印条码" FontSize="18" Foreground="white" HorizontalAlignment="Center" VerticalAlignment="Center" />
<TextBox x:Name="BarCode" Foreground="white" Text="{Binding SelectedItem.BarCode, ElementName=dgvMH}" IsReadOnly="True" Margin="15 0 0 0 " FontSize="18" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" Width="150"
materialDesign:HintAssist.Hint="打印条码" BorderBrush="White" />
</WrapPanel>

@ -48,7 +48,7 @@ namespace Aucma.Core.SheetMetal.ViewModels
{
_taskExecutionPlanInfoServices = App.ServiceProvider.GetService<IExecutePlanInfoServices>();
StationName = Appsettings.app("StoreInfo", "StationName");
//Job_SheetMetalTask_Quartz.SmEverDayDelegateEvent += InitEveryDayMethod;
Job_SheetMetalTask_Quartz.SmEverDayDelegateEvent += InitEveryDayMethod;
Job_SheetMetalTask_Quartz.SmTaskDelegateEvent += UpdatePlanSHow;//计划内容展示
WeakReferenceMessenger.Default.Register<string>(this, Recive);

Loading…
Cancel
Save