change = 出库逻辑优化

foamRearStore
wenjy 1 year ago
parent ff984d2ab1
commit c14661c8db

Binary file not shown.

@ -32,34 +32,196 @@ namespace Aucma.Scada.Business
private IProductPlanInfoService _productPlanInfoService = new ProductPlanInfoServiceImpl();
private IExecutePlanInfoService _executePlanInfoService = new ExecutePlanInfoServiceImpl();
/// <summary>
/// 刷新执行计划
/// </summary>
/// <param name="taskInfos"></param>
public delegate void RefreshExecutePlanInfo(List<ExecutePlanInfo> executePlanInfos);
public event RefreshExecutePlanInfo RefreshExecutePlanInfoEvent;
/// <summary>
/// 下传执行计划
/// </summary>
/// <param name="planInfo"></param>
public delegate void NextPassExecutePlanInfo(ExecutePlanInfo planInfo);
public event NextPassExecutePlanInfo NextPassExecutePlanInfoEvent;
public AssemblyPlanBusiness()
{
Init();
}
private void Init()
/// <summary>
/// 根据产线工位编号获取生产计划
/// </summary>
/// <param name="productLineCode"></param>
/// <returns></returns>
public List<ProductPlanInfo> GetProductPlanInfosByProductLineCode()
{
var info = _productPlanInfoService.GetProductPlanInfosByProductLineCode(appConfig.stationCode);
List<ProductPlanInfo> productPlanInfos = null;
try
{
productPlanInfos = _productPlanInfoService.GetProductPlanInfosByProductLineCode(appConfig.stationCode);
}
catch (Exception ex)
{
logHelper.Error("根据产线工位编号获取生产计划异常", ex);
}
return productPlanInfos;
}
if(info != null)
/// <summary>
/// 根据产线工位编号获取执行计划
/// </summary>
/// <returns></returns>
public List<ExecutePlanInfo> GetEexecutePlanInfosByProductLineCode()
{
List<ExecutePlanInfo> planInfos = null;
try
{
foreach(var item in info)
planInfos = _executePlanInfoService.GetExecutePlanInfosByProductLineCode(appConfig.stationCode).OrderBy(x=>x.executeOrder).ToList();
if(planInfos != null)
{
//for(int i = 0; i < planInfos.Count; i++)
//{
// planInfos[i].executeOrder = i + 1;
//}
//_executePlanInfoService.UpdateRangeExecutePlanInfo(planInfos);
RefreshExecutePlanInfoEvent?.Invoke(planInfos);
}
}
catch (Exception ex)
{
logHelper.Error("根据产线工位编号获取执行计划异常", ex);
}
return planInfos;
}
/// <summary>
/// 根据生产计划下达执行计划
/// </summary>
/// <param name="productPlanCode"></param>
/// <param name="transmitAmount"></param>
public bool PlanTransmitByProductPlan(string productPlanCode,int transmitAmount)
{
bool result = false;
try
{
var productPlanInfo = _productPlanInfoService.GetProductPlanByPlanCode(productPlanCode);
if (productPlanInfo != null)
{
ExecutePlanInfo executePlanInfo = new ExecutePlanInfo();
executePlanInfo.executePlanCode = System.Guid.NewGuid().ToString("N");
executePlanInfo.productPlanCode = item.planCode;
executePlanInfo.productLineCode = item.productLineCode;
executePlanInfo.orderCode = item.orderCode;
executePlanInfo.materialCode = item.materialCode;
executePlanInfo.materialName = item.materialName;
executePlanInfo.executeOrder = 1;
executePlanInfo.productPlanCode = productPlanInfo.planCode;
executePlanInfo.productLineCode = productPlanInfo.productLineCode;
executePlanInfo.orderCode = productPlanInfo.orderCode;
executePlanInfo.materialCode = productPlanInfo.materialCode;
executePlanInfo.materialName = productPlanInfo.materialName;
executePlanInfo.executeOrder = _executePlanInfoService.GetExecuteOrderByProductLineCode(appConfig.stationCode);
executePlanInfo.executeStatus = 1;
executePlanInfo.planAmount = item.planAmount;
executePlanInfo.completeAmount = item.completeAmount;
executePlanInfo.planAmount = transmitAmount;
executePlanInfo.beginTime = DateTime.Now;
bool result = _executePlanInfoService.InsertExecutePlanInfo(executePlanInfo);
result = _executePlanInfoService.InsertExecutePlanInfo(executePlanInfo);
if (result)
{
GetEexecutePlanInfosByProductLineCode();
}
}
}
catch (Exception ex)
{
logHelper.Error("根据生产计划下达执行计划异常", ex);
}
return result;
}
/// <summary>
/// 执行计划上移
/// </summary>
/// <param name="executePlanCode"></param>
public void ExecutePlanInfo_MoveUp(List<ExecutePlanInfo> executePlanInfos,string executePlanCode)
{
List<ExecutePlanInfo> executePlans = new List<ExecutePlanInfo>();
if(executePlanInfos != null)
{
ExecutePlanInfo planInfo = executePlanInfos.Where(x => x.executePlanCode == executePlanCode).First();
int executeOrder = planInfo.executeOrder;
int planIndex = executePlanInfos.IndexOf(planInfo);
if (planIndex != -1 && planIndex != 0)
{
var lastPlanInfo = executePlanInfos[planIndex - 1];
planInfo.executeOrder = lastPlanInfo.executeOrder;
lastPlanInfo.executeOrder = executeOrder;
executePlans.Add(planInfo);
executePlans.Add(lastPlanInfo);
var result = _executePlanInfoService.UpdateRangeExecutePlanInfo(executePlans);
if (result)
{
GetEexecutePlanInfosByProductLineCode();
}
}
}
}
/// <summary>
/// 执行计划下移
/// </summary>
/// <param name="executePlanCode"></param>
public void ExecutePlanInfo_MoveDown(List<ExecutePlanInfo> executePlanInfos, string executePlanCode)
{
List<ExecutePlanInfo> executePlans = new List<ExecutePlanInfo>();
if (executePlanInfos != null)
{
ExecutePlanInfo planInfo = executePlanInfos.Where(x => x.executePlanCode == executePlanCode).First();
int executeOrder = planInfo.executeOrder;
int planIndex = executePlanInfos.IndexOf(planInfo);
if (planIndex != executePlanInfos.Count - 1)
{
var lastPlanInfo = executePlanInfos[planIndex + 1];
planInfo.executeOrder = lastPlanInfo.executeOrder;
lastPlanInfo.executeOrder = executeOrder;
executePlans.Add(planInfo);
executePlans.Add(lastPlanInfo);
var result = _executePlanInfoService.UpdateRangeExecutePlanInfo(executePlans);
if (result)
{
GetEexecutePlanInfosByProductLineCode();
}
}
}
}
/// <summary>
/// 根据执行计划编号删除执行计划
/// </summary>
/// <param name="planCode"></param>
/// <returns></returns>
public bool ExecutePlanInfo_Delete(string planCode)
{
bool result = _executePlanInfoService.DeleteExecutePlanInfoByPlanCode(planCode);
if (result)
{
GetEexecutePlanInfosByProductLineCode();
}
return result;
}
/// <summary>
/// 下传计划
/// </summary>
/// <param name="planCode"></param>
public void ExecutePlanInfo_NextPass(string planCode)
{
//获取执行计划
ExecutePlanInfo planInfo = _executePlanInfoService.GetExecutePlanInfoByPlanCode(planCode);
if (planInfo != null)
{
//传给出库
NextPassExecutePlanInfoEvent?.Invoke(planInfo);
}
}
}
}

@ -53,9 +53,9 @@ namespace Aucma.Scada.Business
public InStoreBusiness()
{
System.Timers.Timer timer = new System.Timers.Timer(interval: 3000);
timer.Elapsed += (sender, e) => HandleTimer();
timer.Start();
//System.Timers.Timer timer = new System.Timers.Timer(interval: 3000);
//timer.Elapsed += (sender, e) => HandleTimer();
//timer.Start();
}
private void HandleTimer()

@ -1,4 +1,5 @@
using HighWayIot.Log4net;
using HighWayIot.Config;
using HighWayIot.Log4net;
using HighWayIot.Repository.domain;
using HighWayIot.Repository.service;
using HighWayIot.Repository.service.Impl;
@ -6,6 +7,7 @@ using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace Aucma.Scada.Business
@ -23,10 +25,16 @@ namespace Aucma.Scada.Business
private LogHelper logHelper = LogHelper.Instance;
private AppConfig appConfig = AppConfig.Instance;
private IBaseSpaceInfoService _spaceInfoService = new BaseSpaceInfoServiceImpl();
private IRealTaskInfoService _taskInfoService = new RealTaskInfoServiceImpl();
private IBaseBomInfoService _bomInfoService = new BaseBomInfoServiceImpl();
private AssemblyPlanBusiness assemblyPlanBusiness = AssemblyPlanBusiness.Instance;
/// <summary>
/// 初始化出库任务
/// </summary>
@ -53,28 +61,43 @@ namespace Aucma.Scada.Business
public OutStoreBusiness()
{
System.Timers.Timer timer = new System.Timers.Timer(interval: 3000);
timer.Elapsed += (sender, e) => HandleTimer();
timer.Start();
assemblyPlanBusiness.NextPassExecutePlanInfoEvent += PlanHandle;
}
private void HandleTimer()
private void PlanHandle(ExecutePlanInfo planInfo)
{
OutStore("X-001", "SC232");
lock (string.Empty)
{
Task.Run(() =>
{
if (planInfo != null)
{
var shellBomInfo = _bomInfoService.GetChildenBomInfoByMaterialCode(planInfo.materialCode, appConfig.shellMaterialType);
var linerBomInfo = _bomInfoService.GetChildenBomInfoByMaterialCode(planInfo.materialCode, appConfig.linerMaterialType);
for (int i = 0; i < planInfo.planAmount-planInfo.completeAmount; i++)
{
OutStore(appConfig.shellStoreCode, shellBomInfo, planInfo.executePlanCode);
Thread.Sleep(500);
OutStore(appConfig.linerStoreCode, linerBomInfo, planInfo.executePlanCode);
Thread.Sleep(500);
}
}
});
}
}
private void OutStore(string storeCode, string materiaclCode)
private void OutStore(string storeCode, BaseBomInfo bomInfo,string planCode)
{
try
{
PrintLogInfoMessage($"扫码成功,物料码:{materiaclCode}");
string materialType = materiaclCode;
BaseSpaceInfo spaceInfo = _spaceInfoService.OutStoreGetSpaceInfoByMaterialType(storeCode, materialType);
PrintLogInfoMessage($"收到出库计划,物料码:{bomInfo.materialCode}");
BaseSpaceInfo spaceInfo = _spaceInfoService.OutStoreGetSpaceInfoByMaterialCode(storeCode, bomInfo.materialCode);
if (spaceInfo != null)
{
PrintLogInfoMessage($"匹配货道:{spaceInfo.spaceName}");
RefreshScanMateriaCodeEvent?.Invoke(materiaclCode, materialType, spaceInfo.spaceName, storeCode); //刷新界面扫码信息
CreateOutStoreTask(spaceInfo,materiaclCode); //创建出库任务
// RefreshScanMateriaCodeEvent?.Invoke(materiaclCode, materialType, spaceInfo.spaceName, storeCode); //刷新界面扫码信息
CreateOutStoreTask(spaceInfo, bomInfo, planCode); //创建出库任务
}
else
{
@ -91,16 +114,18 @@ namespace Aucma.Scada.Business
/// 创建出库任务
/// </summary>
/// <param name="spaceInfo"></param>
private void CreateOutStoreTask(BaseSpaceInfo spaceInfo, string materialCode)
private void CreateOutStoreTask(BaseSpaceInfo spaceInfo, BaseBomInfo bomInfo, string planCode)
{
//生成库任务依次下发至PLC
//生成库任务依次下发至PLC
RealTaskInfo realTaskInfo = new RealTaskInfo();
realTaskInfo.planCode = planCode;
realTaskInfo.taskType = 2;
realTaskInfo.taskCode = System.Guid.NewGuid().ToString("N").Substring(0, 6);
realTaskInfo.storeCode = spaceInfo.storeCode;
realTaskInfo.spaceCode = spaceInfo.spaceCode;
realTaskInfo.materialType = spaceInfo.materialType;
realTaskInfo.materialCode = System.Guid.NewGuid().ToString("N").Substring(0, 6); ;
realTaskInfo.spaceName = spaceInfo.spaceName;
realTaskInfo.materialType = bomInfo.materialName;
realTaskInfo.materialCode = bomInfo.materialCode;
realTaskInfo.planAmount = 1;
realTaskInfo.taskStatus = 1;
realTaskInfo.createTime = DateTime.Now;
@ -171,5 +196,20 @@ namespace Aucma.Scada.Business
RefreshLogMessageEvent?.Invoke(message);
logHelper.Error(message, ex);
}
/// <summary>
/// 获取出库任务
/// </summary>
/// <returns></returns>
public List<RealTaskInfo> GetOutStoreTask()
{
var taskInfos = _taskInfoService.GetTaskInfosByStoreCode(new string[] { appConfig.shellStoreCode, appConfig.linerStoreCode }, appConfig.outstoreTaskType);
return taskInfos;
}
public bool DeleteTaskInfoByTaskCode(string taskCode)
{
return _taskInfoService.DeleteTaskInfo(taskCode);
}
}
}

@ -208,19 +208,21 @@
Foreground="Gray" >
<!--resourceStyle 399行修改选中字体颜色-->
<DataGrid.Columns>
<DataGridTextColumn Binding="{Binding userId}" Header="序号" Width="1*" IsReadOnly="True"/>
<DataGridTextColumn Binding="{Binding userName}" Header="产品型号" Width="1*" IsReadOnly="True"/>
<DataGridTextColumn Binding="{Binding userName}" Header="计划数量" Width="1*" IsReadOnly="True"/>
<DataGridTextColumn Binding="{Binding userName}" Header="实际完成" Width="1*" IsReadOnly="True"/>
<DataGridTextColumn Binding="{Binding userName}" Header="开始时间" Width="1*" IsReadOnly="True"/>
<!--<DataGridTextColumn Binding="{Binding executeOrder}" Header="编号" Width="1*" IsReadOnly="True"/>-->
<DataGridTextColumn Binding="{Binding executePlanCode}" Header="计划编号" Width="1*" IsReadOnly="True"/>
<DataGridTextColumn Binding="{Binding productPlanCode}" Header="生产计划" Width="1*" IsReadOnly="True"/>
<DataGridTextColumn Binding="{Binding materialName}" Header="产品型号" Width="1*" IsReadOnly="True"/>
<DataGridTextColumn Binding="{Binding planAmount}" Header="计划数量" Width="1*" IsReadOnly="True"/>
<DataGridTextColumn Binding="{Binding completeAmount}" Header="完成数量" Width="1*" IsReadOnly="True"/>
<DataGridTextColumn Binding="{Binding beginTime ,StringFormat=\{0:MM月dd日 HH:mm\}}" Header="开始时间" Width="1*" IsReadOnly="True"/>
<DataGridTemplateColumn Header="操作" Width="2*">
<DataGridTemplateColumn.CellTemplate>
<DataTemplate>
<StackPanel Orientation="Horizontal">
<Button Content="上移" CommandParameter="{Binding userName}" Background="#007DFA" Foreground="White" Margin="10,0,0,0" Height="25" BorderBrush="DeepSkyBlue" BorderThickness="1" Width="45" Command="{Binding DataContext.MoveUpCommand, RelativeSource={RelativeSource Mode=FindAncestor,AncestorType=DataGrid }}"/>
<Button Content="下移" CommandParameter="{Binding userName}" Background="#007DFA" Foreground="White" Margin="10,0,0,0" Height="25" BorderBrush="DeepSkyBlue" BorderThickness="1" Width="45" Command="{Binding DataContext.MoveDownCommand, RelativeSource={RelativeSource Mode=FindAncestor,AncestorType=DataGrid }}" />
<Button Content="删除" CommandParameter="{Binding userName}" Background="#007DFA" Foreground="White" Margin="10,0,0,0" Height="25" BorderBrush="DeepSkyBlue" BorderThickness="1" Width="45" Command="{Binding DataContext.DeletePlanCommand, RelativeSource={RelativeSource Mode=FindAncestor,AncestorType=DataGrid }}" />
<Button Content="下传" CommandParameter="{Binding userName}" Background="#007DFA" Foreground="White" Margin="10,0,0,0" Height="25" BorderBrush="DeepSkyBlue" BorderThickness="1" Width="45" Command="{Binding DataContext.NextPassCommand, RelativeSource={RelativeSource Mode=FindAncestor,AncestorType=DataGrid }}" />
<Button Content="上移" CommandParameter="{Binding executePlanCode}" Background="#007DFA" Foreground="White" Margin="10,0,0,0" Height="25" BorderBrush="DeepSkyBlue" BorderThickness="1" Width="45" Command="{Binding DataContext.MoveUpCommand, RelativeSource={RelativeSource Mode=FindAncestor,AncestorType=DataGrid }}"/>
<Button Content="下移" CommandParameter="{Binding executePlanCode}" Background="#007DFA" Foreground="White" Margin="10,0,0,0" Height="25" BorderBrush="DeepSkyBlue" BorderThickness="1" Width="45" Command="{Binding DataContext.MoveDownCommand, RelativeSource={RelativeSource Mode=FindAncestor,AncestorType=DataGrid }}" />
<Button Content="删除" CommandParameter="{Binding executePlanCode}" Background="#007DFA" Foreground="White" Margin="10,0,0,0" Height="25" BorderBrush="DeepSkyBlue" BorderThickness="1" Width="45" Command="{Binding DataContext.DeletePlanCommand, RelativeSource={RelativeSource Mode=FindAncestor,AncestorType=DataGrid }}" />
<Button Content="下传" CommandParameter="{Binding executePlanCode}" Background="#007DFA" Foreground="White" Margin="10,0,0,0" Height="25" BorderBrush="DeepSkyBlue" BorderThickness="1" Width="45" Command="{Binding DataContext.NextPassCommand, RelativeSource={RelativeSource Mode=FindAncestor,AncestorType=DataGrid }}" />
</StackPanel>
</DataTemplate>
</DataGridTemplateColumn.CellTemplate>

@ -12,12 +12,29 @@
</Border.Effect>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="2*"/>
<RowDefinition Height="7*"/>
<RowDefinition Height="3*"/>
</Grid.RowDefinitions>
<Border Grid.Row="0" BorderBrush="CadetBlue" BorderThickness="0">
<StackPanel Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="20,0,0,0">
<TextBlock Text="工单编号" VerticalAlignment="Center" Foreground="Gray" FontSize="15"/>
<TextBox Width="200" Height="25" Margin="10 0 0 0" Text="{Binding Search}" Foreground="Gray" VerticalAlignment="Center" FontSize="15"/>
<!--resourceStyle 413行修改边框颜色-->
<TextBlock Text="产品型号" VerticalAlignment="Center" Foreground="Gray" FontSize="15" Margin="20,0,0,0"/>
<ComboBox Text="{Binding MaterialTypeCombox}" Width="150" Height="25" Margin="10 0 0 0" Foreground="Black" VerticalAlignment="Center" FontSize="15">
<ComboBoxItem Content="所有" IsSelected="True"/>
<ComboBoxItem Content="SC232" />
<ComboBoxItem Content="SC485" />
</ComboBox>
<Button Content="查询" Command="{Binding QueryCommand}" Background="#007DFA" Foreground="White" Margin="20,0,0,0" Height="30" BorderBrush="DeepSkyBlue" BorderThickness="1" Width="80" />
<Button Content="重置" Command="{Binding ResetCommand}" Background="#007DFA" Foreground="White" Margin="20,0,0,0" Height="30" BorderBrush="DeepSkyBlue" BorderThickness="1" Width="80" />
</StackPanel>
</Border>
<!--计划列表-->
<Border Grid.Row="0" BorderBrush="Green" BorderThickness="2" CornerRadius="5" Background="Transparent" Margin="1,1,5,5">
<Border Grid.Row="1" BorderBrush="Green" BorderThickness="2" CornerRadius="5" Background="Transparent" Margin="1,1,5,5">
<DataGrid Name="dataGrid" ItemsSource="{Binding PlanInfoDataGrid}" Background="Transparent"
FontSize="15" ColumnHeaderHeight="35"
RowHeight="31" AutoGenerateColumns="False" RowHeaderWidth="0"
@ -26,16 +43,17 @@
Foreground="Gray" SelectedItem="{Binding SelectedDataItem}" MouseLeftButtonDown="dataGrid_MouseLeftButtonDown">
<!--resourceStyle 399行修改选中字体颜色-->
<DataGrid.Columns>
<DataGridTextColumn Binding="{Binding userId}" Header="序号" Width="1*" IsReadOnly="True"/>
<DataGridTextColumn Binding="{Binding userName}" Header="产品型号" Width="1*" IsReadOnly="True"/>
<DataGridTextColumn Binding="{Binding userName}" Header="计划数量" Width="1*" IsReadOnly="True"/>
<DataGridTextColumn Binding="{Binding userName}" Header="实际完成" Width="1*" IsReadOnly="True"/>
<DataGridTextColumn Binding="{Binding userName}" Header="开始时间" Width="1*" IsReadOnly="True"/>
<DataGridTextColumn Binding="{Binding planCode}" Header="计划编号" Width="1*" IsReadOnly="True"/>
<DataGridTextColumn Binding="{Binding orderCode}" Header="工单编号" Width="1*" IsReadOnly="True"/>
<DataGridTextColumn Binding="{Binding materialName}" Header="产品型号" Width="1*" IsReadOnly="True"/>
<DataGridTextColumn Binding="{Binding planAmount}" Header="计划数量" Width="1*" IsReadOnly="True"/>
<DataGridTextColumn Binding="{Binding completeAmount}" Header="完成数量" Width="1*" IsReadOnly="True"/>
<DataGridTextColumn Binding="{Binding beginTime,StringFormat=\{0:MM月dd日 HH:mm\}}" Header="开始时间" Width="1*" IsReadOnly="True"/>
</DataGrid.Columns>
</DataGrid>
</Border>
<Border Grid.Row="1" BorderBrush="Green" BorderThickness="2" CornerRadius="5" Background="Transparent" Margin="1,1,5,5">
<Border Grid.Row="2" BorderBrush="Green" BorderThickness="2" CornerRadius="5" Background="Transparent" Margin="1,1,5,5">
<Grid>
<Grid.RowDefinitions>
<RowDefinition/>

@ -163,7 +163,7 @@
<DataGridTextColumn Binding="{Binding materialType}" Header="物料类型" Width="*" IsReadOnly="True"/>
<DataGridTextColumn Binding="{Binding spaceCode}" Header="入库货道" Width="*" IsReadOnly="True"/>
<DataGridTextColumn Binding="{Binding taskStatus}" Header="入库状态" Width="*" IsReadOnly="True"/>
<DataGridTextColumn Binding="{Binding createTime}" Header="任务时间" Width="*" IsReadOnly="True"/>
<DataGridTextColumn Binding="{Binding createTime,StringFormat=\{0:MM月dd日 HH:mm\}}" Header="任务时间" Width="*" IsReadOnly="True"/>
</DataGrid.Columns>
</DataGrid>
</Grid>

@ -123,6 +123,7 @@
<!--<TextBlock Text="任务记录" FontSize="20" FontWeight="Bold" Foreground="#0288d1" VerticalAlignment="Center" HorizontalAlignment="Center"/>-->
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="1*"/>
<RowDefinition Height="1*"/>
<RowDefinition Height="9*"/>
@ -130,7 +131,29 @@
<Border Grid.Row="0" BorderBrush="CadetBlue" BorderThickness="0,0,0,1" CornerRadius="0" Background="Transparent" Margin="1,1,5,5" >
<TextBlock Text="任务记录" FontSize="20" FontWeight="Bold" Foreground="#0288d1" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Border>
<DataGrid Grid.Row="1" Name="DG" ItemsSource="{Binding InstoreTask}" Background="Transparent"
<Border Grid.Row="1" BorderBrush="CadetBlue" BorderThickness="0">
<StackPanel Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="20,0,0,0">
<TextBlock Text="任务编号" VerticalAlignment="Center" Foreground="Gray" FontSize="15"/>
<TextBox Width="200" Height="25" Margin="10 0 0 0" Text="{Binding TaskCodeSearch}" Foreground="Gray" VerticalAlignment="Center" FontSize="15"/>
<TextBlock Text="物料编号" VerticalAlignment="Center" Foreground="Gray" FontSize="15" Margin="20,0,0,0"/>
<TextBox Width="200" Height="25" Margin="10 0 0 0" Text="{Binding MaterialCodeSearch}" Foreground="Gray" VerticalAlignment="Center" FontSize="15"/>
<TextBlock Text="计划编号" VerticalAlignment="Center" Foreground="Gray" FontSize="15" Margin="20,0,0,0"/>
<TextBox Width="200" Height="25" Margin="10 0 0 0" Text="{Binding PlanCodeSearch}" Foreground="Gray" VerticalAlignment="Center" FontSize="15"/>
<!--<TextBlock Text="产品型号" VerticalAlignment="Center" Foreground="Gray" FontSize="15" Margin="20,0,0,0"/>
<ComboBox Text="{Binding MaterialTypeCombox}" Width="150" Height="25" Margin="10 0 0 0" Foreground="Black" VerticalAlignment="Center" FontSize="15">
<ComboBoxItem Content="所有" IsSelected="True"/>
<ComboBoxItem Content="SC232" />
<ComboBoxItem Content="SC485" />
</ComboBox>-->
<Button Content="查询" Command="{Binding QueryCommand}" Background="#007DFA" Foreground="White" Margin="20,0,0,0" Height="30" BorderBrush="DeepSkyBlue" BorderThickness="1" Width="80" />
<Button Content="重置" Command="{Binding ResetCommand}" Background="#007DFA" Foreground="White" Margin="20,0,0,0" Height="30" BorderBrush="DeepSkyBlue" BorderThickness="1" Width="80" />
</StackPanel>
</Border>
<DataGrid Grid.Row="2" Name="DG" ItemsSource="{Binding InstoreTask}" Background="Transparent"
FontSize="15" ColumnHeaderHeight="35"
RowHeight="31" AutoGenerateColumns="False" RowHeaderWidth="0"
GridLinesVisibility="None" ScrollViewer.HorizontalScrollBarVisibility="Hidden"
@ -141,9 +164,19 @@
<DataGridTextColumn Binding="{Binding taskCode}" Header="任务编号" Width="100" IsReadOnly="True"/>
<DataGridTextColumn Binding="{Binding materialCode}" Header="物料编码" Width="*" IsReadOnly="True"/>
<DataGridTextColumn Binding="{Binding materialType}" Header="物料类型" Width="*" IsReadOnly="True"/>
<DataGridTextColumn Binding="{Binding spaceCode}" Header="出库货道" Width="*" IsReadOnly="True"/>
<DataGridTextColumn Binding="{Binding spaceName}" Header="出库货道" Width="*" IsReadOnly="True"/>
<DataGridTextColumn Binding="{Binding taskStatus}" Header="出库状态" Width="*" IsReadOnly="True"/>
<DataGridTextColumn Binding="{Binding createTime}" Header="任务时间" Width="*" IsReadOnly="True"/>
<DataGridTextColumn Binding="{Binding createTime,StringFormat=\{0:MM月dd日 HH:mm\}}" Header="任务时间" Width="*" IsReadOnly="True"/>
<DataGridTemplateColumn Header="操作" Width="*">
<DataGridTemplateColumn.CellTemplate>
<DataTemplate>
<StackPanel Orientation="Horizontal">
<Button Content="删除" CommandParameter="{Binding taskCode}" Background="Red" Foreground="White" Margin="10,0,0,0" Height="25" BorderBrush="Red" BorderThickness="1" Width="55" Command="{Binding DataContext.DeleteTaskInfoCommand, RelativeSource={RelativeSource Mode=FindAncestor,AncestorType=DataGrid }}" />
</StackPanel>
</DataTemplate>
</DataGridTemplateColumn.CellTemplate>
</DataGridTemplateColumn>
</DataGrid.Columns>
</DataGrid>
</Grid>

@ -0,0 +1,251 @@
<HR COLOR=red>
异常时间2023-10-08 11:14:40,882 [4] <BR>
异常级别ERROR <BR>
异 常 类logerror [(null)] <BR>
【附加信息】 : 出库通过物料类型获取货道信息异常<br>【异常类型】SqlSugarException <br>【异常信息】:中文提示 : 连接数据库过程中发生错误检查服务器是否正常连接字符串是否正确错误信息Oracle 通信: 无法连接到服务器, 或者无法对连接字符串进行语法分析DbType="Oracle";ConfigId="mes".<br>English Message : Connection open error . Oracle 通信: 无法连接到服务器, 或者无法对连接字符串进行语法分析DbType="Oracle";ConfigId="mes" <br>【堆栈调用】: at SqlSugar.Check.Exception(Boolean isException, String message, String[] args)<br> at SqlSugar.AdoProvider.CheckConnection()<br> at SqlSugar.OracleProvider.GetCommand(String sql, SugarParameter[] parameters)<br> at SqlSugar.AdoProvider.GetDataReader(String sql, SugarParameter[] parameters)<br> at SqlSugar.QueryableProvider`1.GetData[TResult](KeyValuePair`2 sqlObj)<br> at SqlSugar.QueryableProvider`1._ToList[TResult]()<br> at SqlSugar.QueryableProvider`1.ToList()<br> at SqlSugar.SimpleClient`1.GetList(Expression`1 whereExpression)<br> at HighWayIot.Repository.service.Impl.BaseSpaceInfoServiceImpl.OutStoreGetSpaceInfoByMaterialType(String store, String materialType) in C:\项目代码\澳柯玛MES项目\Aucma.Scada\HighWayIot.Repository\service\Impl\BaseSpaceInfoServiceImpl.cs:line 110 <BR>
<HR Size=1><HR COLOR=red>
异常时间2023-10-08 11:14:40,882 [8] <BR>
异常级别ERROR <BR>
异 常 类logerror [(null)] <BR>
【附加信息】 : 入库通过物料类型获取货道信息异常<br>【异常类型】SqlSugarException <br>【异常信息】:中文提示 : 连接数据库过程中发生错误检查服务器是否正常连接字符串是否正确错误信息Oracle 通信: 无法连接到服务器, 或者无法对连接字符串进行语法分析DbType="Oracle";ConfigId="mes".<br>English Message : Connection open error . Oracle 通信: 无法连接到服务器, 或者无法对连接字符串进行语法分析DbType="Oracle";ConfigId="mes" <br>【堆栈调用】: at SqlSugar.Check.Exception(Boolean isException, String message, String[] args)<br> at SqlSugar.AdoProvider.CheckConnection()<br> at SqlSugar.OracleProvider.GetCommand(String sql, SugarParameter[] parameters)<br> at SqlSugar.AdoProvider.GetDataReader(String sql, SugarParameter[] parameters)<br> at SqlSugar.QueryableProvider`1.GetData[TResult](KeyValuePair`2 sqlObj)<br> at SqlSugar.QueryableProvider`1._ToList[TResult]()<br> at SqlSugar.QueryableProvider`1.ToList()<br> at SqlSugar.SimpleClient`1.GetList(Expression`1 whereExpression)<br> at HighWayIot.Repository.service.Impl.BaseSpaceInfoServiceImpl.InStoreGetSpaceInfoByMaterialType(String store, String materialType) in C:\项目代码\澳柯玛MES项目\Aucma.Scada\HighWayIot.Repository\service\Impl\BaseSpaceInfoServiceImpl.cs:line 37 <BR>
<HR Size=1><HR COLOR=red>
异常时间2023-10-08 11:14:43,042 [11] <BR>
异常级别ERROR <BR>
异 常 类logerror [(null)] <BR>
【附加信息】 : 出库通过物料类型获取货道信息异常<br>【异常类型】SqlSugarException <br>【异常信息】:中文提示 : 连接数据库过程中发生错误检查服务器是否正常连接字符串是否正确错误信息Oracle 通信: 无法连接到服务器, 或者无法对连接字符串进行语法分析DbType="Oracle";ConfigId="mes".<br>English Message : Connection open error . Oracle 通信: 无法连接到服务器, 或者无法对连接字符串进行语法分析DbType="Oracle";ConfigId="mes" <br>【堆栈调用】: at SqlSugar.Check.Exception(Boolean isException, String message, String[] args)<br> at SqlSugar.AdoProvider.CheckConnection()<br> at SqlSugar.OracleProvider.GetCommand(String sql, SugarParameter[] parameters)<br> at SqlSugar.AdoProvider.GetDataReader(String sql, SugarParameter[] parameters)<br> at SqlSugar.QueryableProvider`1.GetData[TResult](KeyValuePair`2 sqlObj)<br> at SqlSugar.QueryableProvider`1._ToList[TResult]()<br> at SqlSugar.QueryableProvider`1.ToList()<br> at SqlSugar.SimpleClient`1.GetList(Expression`1 whereExpression)<br> at HighWayIot.Repository.service.Impl.BaseSpaceInfoServiceImpl.OutStoreGetSpaceInfoByMaterialType(String store, String materialType) in C:\项目代码\澳柯玛MES项目\Aucma.Scada\HighWayIot.Repository\service\Impl\BaseSpaceInfoServiceImpl.cs:line 110 <BR>
<HR Size=1><HR COLOR=red>
异常时间2023-10-08 11:14:43,117 [4] <BR>
异常级别ERROR <BR>
异 常 类logerror [(null)] <BR>
【附加信息】 : 入库通过物料类型获取货道信息异常<br>【异常类型】SqlSugarException <br>【异常信息】:中文提示 : 连接数据库过程中发生错误检查服务器是否正常连接字符串是否正确错误信息Oracle 通信: 无法连接到服务器, 或者无法对连接字符串进行语法分析DbType="Oracle";ConfigId="mes".<br>English Message : Connection open error . Oracle 通信: 无法连接到服务器, 或者无法对连接字符串进行语法分析DbType="Oracle";ConfigId="mes" <br>【堆栈调用】: at SqlSugar.Check.Exception(Boolean isException, String message, String[] args)<br> at SqlSugar.AdoProvider.CheckConnection()<br> at SqlSugar.OracleProvider.GetCommand(String sql, SugarParameter[] parameters)<br> at SqlSugar.AdoProvider.GetDataReader(String sql, SugarParameter[] parameters)<br> at SqlSugar.QueryableProvider`1.GetData[TResult](KeyValuePair`2 sqlObj)<br> at SqlSugar.QueryableProvider`1._ToList[TResult]()<br> at SqlSugar.QueryableProvider`1.ToList()<br> at SqlSugar.SimpleClient`1.GetList(Expression`1 whereExpression)<br> at HighWayIot.Repository.service.Impl.BaseSpaceInfoServiceImpl.InStoreGetSpaceInfoByMaterialType(String store, String materialType) in C:\项目代码\澳柯玛MES项目\Aucma.Scada\HighWayIot.Repository\service\Impl\BaseSpaceInfoServiceImpl.cs:line 37 <BR>
<HR Size=1><HR COLOR=red>
异常时间2023-10-08 11:14:45,905 [4] <BR>
异常级别ERROR <BR>
异 常 类logerror [(null)] <BR>
【附加信息】 : 出库通过物料类型获取货道信息异常<br>【异常类型】SqlSugarException <br>【异常信息】:中文提示 : 连接数据库过程中发生错误检查服务器是否正常连接字符串是否正确错误信息Oracle 通信: 无法连接到服务器, 或者无法对连接字符串进行语法分析DbType="Oracle";ConfigId="mes".<br>English Message : Connection open error . Oracle 通信: 无法连接到服务器, 或者无法对连接字符串进行语法分析DbType="Oracle";ConfigId="mes" <br>【堆栈调用】: at SqlSugar.Check.Exception(Boolean isException, String message, String[] args)<br> at SqlSugar.AdoProvider.CheckConnection()<br> at SqlSugar.OracleProvider.GetCommand(String sql, SugarParameter[] parameters)<br> at SqlSugar.AdoProvider.GetDataReader(String sql, SugarParameter[] parameters)<br> at SqlSugar.QueryableProvider`1.GetData[TResult](KeyValuePair`2 sqlObj)<br> at SqlSugar.QueryableProvider`1._ToList[TResult]()<br> at SqlSugar.QueryableProvider`1.ToList()<br> at SqlSugar.SimpleClient`1.GetList(Expression`1 whereExpression)<br> at HighWayIot.Repository.service.Impl.BaseSpaceInfoServiceImpl.OutStoreGetSpaceInfoByMaterialType(String store, String materialType) in C:\项目代码\澳柯玛MES项目\Aucma.Scada\HighWayIot.Repository\service\Impl\BaseSpaceInfoServiceImpl.cs:line 110 <BR>
<HR Size=1><HR COLOR=red>
异常时间2023-10-08 11:14:45,905 [8] <BR>
异常级别ERROR <BR>
异 常 类logerror [(null)] <BR>
【附加信息】 : 入库通过物料类型获取货道信息异常<br>【异常类型】SqlSugarException <br>【异常信息】:中文提示 : 连接数据库过程中发生错误检查服务器是否正常连接字符串是否正确错误信息Oracle 通信: 无法连接到服务器, 或者无法对连接字符串进行语法分析DbType="Oracle";ConfigId="mes".<br>English Message : Connection open error . Oracle 通信: 无法连接到服务器, 或者无法对连接字符串进行语法分析DbType="Oracle";ConfigId="mes" <br>【堆栈调用】: at SqlSugar.Check.Exception(Boolean isException, String message, String[] args)<br> at SqlSugar.AdoProvider.CheckConnection()<br> at SqlSugar.OracleProvider.GetCommand(String sql, SugarParameter[] parameters)<br> at SqlSugar.AdoProvider.GetDataReader(String sql, SugarParameter[] parameters)<br> at SqlSugar.QueryableProvider`1.GetData[TResult](KeyValuePair`2 sqlObj)<br> at SqlSugar.QueryableProvider`1._ToList[TResult]()<br> at SqlSugar.QueryableProvider`1.ToList()<br> at SqlSugar.SimpleClient`1.GetList(Expression`1 whereExpression)<br> at HighWayIot.Repository.service.Impl.BaseSpaceInfoServiceImpl.InStoreGetSpaceInfoByMaterialType(String store, String materialType) in C:\项目代码\澳柯玛MES项目\Aucma.Scada\HighWayIot.Repository\service\Impl\BaseSpaceInfoServiceImpl.cs:line 37 <BR>
<HR Size=1><HR COLOR=red>
异常时间2023-10-08 11:14:48,888 [4] <BR>
异常级别ERROR <BR>
异 常 类logerror [(null)] <BR>
【附加信息】 : 出库通过物料类型获取货道信息异常<br>【异常类型】SqlSugarException <br>【异常信息】:中文提示 : 连接数据库过程中发生错误检查服务器是否正常连接字符串是否正确错误信息Oracle 通信: 无法连接到服务器, 或者无法对连接字符串进行语法分析DbType="Oracle";ConfigId="mes".<br>English Message : Connection open error . Oracle 通信: 无法连接到服务器, 或者无法对连接字符串进行语法分析DbType="Oracle";ConfigId="mes" <br>【堆栈调用】: at SqlSugar.Check.Exception(Boolean isException, String message, String[] args)<br> at SqlSugar.AdoProvider.CheckConnection()<br> at SqlSugar.OracleProvider.GetCommand(String sql, SugarParameter[] parameters)<br> at SqlSugar.AdoProvider.GetDataReader(String sql, SugarParameter[] parameters)<br> at SqlSugar.QueryableProvider`1.GetData[TResult](KeyValuePair`2 sqlObj)<br> at SqlSugar.QueryableProvider`1._ToList[TResult]()<br> at SqlSugar.QueryableProvider`1.ToList()<br> at SqlSugar.SimpleClient`1.GetList(Expression`1 whereExpression)<br> at HighWayIot.Repository.service.Impl.BaseSpaceInfoServiceImpl.OutStoreGetSpaceInfoByMaterialType(String store, String materialType) in C:\项目代码\澳柯玛MES项目\Aucma.Scada\HighWayIot.Repository\service\Impl\BaseSpaceInfoServiceImpl.cs:line 110 <BR>
<HR Size=1><HR COLOR=red>
异常时间2023-10-08 11:14:48,888 [8] <BR>
异常级别ERROR <BR>
异 常 类logerror [(null)] <BR>
【附加信息】 : 入库通过物料类型获取货道信息异常<br>【异常类型】SqlSugarException <br>【异常信息】:中文提示 : 连接数据库过程中发生错误检查服务器是否正常连接字符串是否正确错误信息Oracle 通信: 无法连接到服务器, 或者无法对连接字符串进行语法分析DbType="Oracle";ConfigId="mes".<br>English Message : Connection open error . Oracle 通信: 无法连接到服务器, 或者无法对连接字符串进行语法分析DbType="Oracle";ConfigId="mes" <br>【堆栈调用】: at SqlSugar.Check.Exception(Boolean isException, String message, String[] args)<br> at SqlSugar.AdoProvider.CheckConnection()<br> at SqlSugar.OracleProvider.GetCommand(String sql, SugarParameter[] parameters)<br> at SqlSugar.AdoProvider.GetDataReader(String sql, SugarParameter[] parameters)<br> at SqlSugar.QueryableProvider`1.GetData[TResult](KeyValuePair`2 sqlObj)<br> at SqlSugar.QueryableProvider`1._ToList[TResult]()<br> at SqlSugar.QueryableProvider`1.ToList()<br> at SqlSugar.SimpleClient`1.GetList(Expression`1 whereExpression)<br> at HighWayIot.Repository.service.Impl.BaseSpaceInfoServiceImpl.InStoreGetSpaceInfoByMaterialType(String store, String materialType) in C:\项目代码\澳柯玛MES项目\Aucma.Scada\HighWayIot.Repository\service\Impl\BaseSpaceInfoServiceImpl.cs:line 37 <BR>
<HR Size=1><HR COLOR=red>
异常时间2023-10-08 11:41:03,514 [1] <BR>
异常级别ERROR <BR>
异 常 类logerror [(null)] <BR>
【附加信息】 : 用户信息获取异常<br>【异常类型】SqlSugarException <br>【异常信息】:中文提示 : 连接数据库过程中发生错误检查服务器是否正常连接字符串是否正确错误信息Oracle 通信: 无法连接到服务器, 或者无法对连接字符串进行语法分析DbType="Oracle";ConfigId="mes".<br>English Message : Connection open error . Oracle 通信: 无法连接到服务器, 或者无法对连接字符串进行语法分析DbType="Oracle";ConfigId="mes" <br>【堆栈调用】: at SqlSugar.Check.Exception(Boolean isException, String message, String[] args)<br> at SqlSugar.AdoProvider.CheckConnection()<br> at SqlSugar.OracleProvider.GetCommand(String sql, SugarParameter[] parameters)<br> at SqlSugar.AdoProvider.GetDataReader(String sql, SugarParameter[] parameters)<br> at SqlSugar.QueryableProvider`1.GetData[TResult](KeyValuePair`2 sqlObj)<br> at SqlSugar.QueryableProvider`1._ToList[TResult]()<br> at SqlSugar.QueryableProvider`1.ToList()<br> at SqlSugar.SimpleClient`1.GetList()<br> at HighWayIot.Repository.service.Impl.SysUserInfoServiceImpl.GetUserInfos() in C:\项目代码\澳柯玛MES项目\Aucma.Scada\HighWayIot.Repository\service\Impl\SysUserInfoServiceImpl.cs:line 21 <BR>
<HR Size=1><HR COLOR=red>
异常时间2023-10-08 11:41:06,374 [5] <BR>
异常级别ERROR <BR>
异 常 类logerror [(null)] <BR>
【附加信息】 : 入库通过物料类型获取货道信息异常<br>【异常类型】SqlSugarException <br>【异常信息】:中文提示 : 连接数据库过程中发生错误检查服务器是否正常连接字符串是否正确错误信息Oracle 通信: 无法连接到服务器, 或者无法对连接字符串进行语法分析DbType="Oracle";ConfigId="mes".<br>English Message : Connection open error . Oracle 通信: 无法连接到服务器, 或者无法对连接字符串进行语法分析DbType="Oracle";ConfigId="mes" <br>【堆栈调用】: at SqlSugar.Check.Exception(Boolean isException, String message, String[] args)<br> at SqlSugar.AdoProvider.CheckConnection()<br> at SqlSugar.OracleProvider.GetCommand(String sql, SugarParameter[] parameters)<br> at SqlSugar.AdoProvider.GetDataReader(String sql, SugarParameter[] parameters)<br> at SqlSugar.QueryableProvider`1.GetData[TResult](KeyValuePair`2 sqlObj)<br> at SqlSugar.QueryableProvider`1._ToList[TResult]()<br> at SqlSugar.QueryableProvider`1.ToList()<br> at SqlSugar.SimpleClient`1.GetList(Expression`1 whereExpression)<br> at HighWayIot.Repository.service.Impl.BaseSpaceInfoServiceImpl.InStoreGetSpaceInfoByMaterialType(String store, String materialType) in C:\项目代码\澳柯玛MES项目\Aucma.Scada\HighWayIot.Repository\service\Impl\BaseSpaceInfoServiceImpl.cs:line 37 <BR>
<HR Size=1><HR COLOR=red>
异常时间2023-10-08 11:41:06,374 [1] <BR>
异常级别ERROR <BR>
异 常 类logerror [(null)] <BR>
【附加信息】 : 通过产线工位获取执行计划异常<br>【异常类型】SqlSugarException <br>【异常信息】:中文提示 : 连接数据库过程中发生错误检查服务器是否正常连接字符串是否正确错误信息Oracle 通信: 无法连接到服务器, 或者无法对连接字符串进行语法分析DbType="Oracle";ConfigId="scada".<br>English Message : Connection open error . Oracle 通信: 无法连接到服务器, 或者无法对连接字符串进行语法分析DbType="Oracle";ConfigId="scada" <br>【堆栈调用】: at SqlSugar.Check.Exception(Boolean isException, String message, String[] args)<br> at SqlSugar.AdoProvider.CheckConnection()<br> at SqlSugar.OracleProvider.GetCommand(String sql, SugarParameter[] parameters)<br> at SqlSugar.AdoProvider.GetDataReader(String sql, SugarParameter[] parameters)<br> at SqlSugar.QueryableProvider`1.GetData[TResult](KeyValuePair`2 sqlObj)<br> at SqlSugar.QueryableProvider`1._ToList[TResult]()<br> at SqlSugar.QueryableProvider`1.ToList()<br> at SqlSugar.SimpleClient`1.GetList(Expression`1 whereExpression)<br> at HighWayIot.Repository.service.Impl.ExecutePlanInfoServiceImpl.GetExecutePlanInfosByProductLineCode(String productLineCode) in C:\项目代码\澳柯玛MES项目\Aucma.Scada\HighWayIot.Repository\service\Impl\ExecutePlanInfoServiceImpl.cs:line 85 <BR>
<HR Size=1><HR COLOR=red>
异常时间2023-10-08 11:41:06,374 [4] <BR>
异常级别ERROR <BR>
异 常 类logerror [(null)] <BR>
【附加信息】 : 出库通过物料类型获取货道信息异常<br>【异常类型】SqlSugarException <br>【异常信息】:中文提示 : 连接数据库过程中发生错误检查服务器是否正常连接字符串是否正确错误信息Oracle 通信: 无法连接到服务器, 或者无法对连接字符串进行语法分析DbType="Oracle";ConfigId="mes".<br>English Message : Connection open error . Oracle 通信: 无法连接到服务器, 或者无法对连接字符串进行语法分析DbType="Oracle";ConfigId="mes" <br>【堆栈调用】: at SqlSugar.Check.Exception(Boolean isException, String message, String[] args)<br> at SqlSugar.AdoProvider.CheckConnection()<br> at SqlSugar.OracleProvider.GetCommand(String sql, SugarParameter[] parameters)<br> at SqlSugar.AdoProvider.GetDataReader(String sql, SugarParameter[] parameters)<br> at SqlSugar.QueryableProvider`1.GetData[TResult](KeyValuePair`2 sqlObj)<br> at SqlSugar.QueryableProvider`1._ToList[TResult]()<br> at SqlSugar.QueryableProvider`1.ToList()<br> at SqlSugar.SimpleClient`1.GetList(Expression`1 whereExpression)<br> at HighWayIot.Repository.service.Impl.BaseSpaceInfoServiceImpl.OutStoreGetSpaceInfoByMaterialType(String store, String materialType) in C:\项目代码\澳柯玛MES项目\Aucma.Scada\HighWayIot.Repository\service\Impl\BaseSpaceInfoServiceImpl.cs:line 110 <BR>
<HR Size=1><HR COLOR=red>
异常时间2023-10-08 11:41:06,405 [1] <BR>
异常级别ERROR <BR>
异 常 类logerror [(null)] <BR>
【附加信息】 : 根据产线工位编号获取执行计划异常<br>【异常类型】ArgumentNullException <br>【异常信息】Value cannot be null.<br>Parameter name: source <br>【堆栈调用】: at System.Linq.OrderedEnumerable`2..ctor(IEnumerable`1 source, Func`2 keySelector, IComparer`1 comparer, Boolean descending)<br> at System.Linq.Enumerable.OrderBy[TSource,TKey](IEnumerable`1 source, Func`2 keySelector)<br> at Aucma.Scada.Business.AssemblyPlanBusiness.GetEexecutePlanInfosByProductLineCode() in C:\项目代码\澳柯玛MES项目\Aucma.Scada\Aucma.Scada.Business\AssemblyPlanBusiness.cs:line 76 <BR>
<HR Size=1><HR COLOR=red>
异常时间2023-10-08 11:41:09,194 [5] <BR>
异常级别ERROR <BR>
异 常 类logerror [(null)] <BR>
【附加信息】 : 入库通过物料类型获取货道信息异常<br>【异常类型】SqlSugarException <br>【异常信息】:中文提示 : 连接数据库过程中发生错误检查服务器是否正常连接字符串是否正确错误信息Oracle 通信: 无法连接到服务器, 或者无法对连接字符串进行语法分析DbType="Oracle";ConfigId="mes".<br>English Message : Connection open error . Oracle 通信: 无法连接到服务器, 或者无法对连接字符串进行语法分析DbType="Oracle";ConfigId="mes" <br>【堆栈调用】: at SqlSugar.Check.Exception(Boolean isException, String message, String[] args)<br> at SqlSugar.AdoProvider.CheckConnection()<br> at SqlSugar.OracleProvider.GetCommand(String sql, SugarParameter[] parameters)<br> at SqlSugar.AdoProvider.GetDataReader(String sql, SugarParameter[] parameters)<br> at SqlSugar.QueryableProvider`1.GetData[TResult](KeyValuePair`2 sqlObj)<br> at SqlSugar.QueryableProvider`1._ToList[TResult]()<br> at SqlSugar.QueryableProvider`1.ToList()<br> at SqlSugar.SimpleClient`1.GetList(Expression`1 whereExpression)<br> at HighWayIot.Repository.service.Impl.BaseSpaceInfoServiceImpl.InStoreGetSpaceInfoByMaterialType(String store, String materialType) in C:\项目代码\澳柯玛MES项目\Aucma.Scada\HighWayIot.Repository\service\Impl\BaseSpaceInfoServiceImpl.cs:line 37 <BR>
<HR Size=1><HR COLOR=red>
异常时间2023-10-08 11:41:09,194 [4] <BR>
异常级别ERROR <BR>
异 常 类logerror [(null)] <BR>
【附加信息】 : 出库通过物料类型获取货道信息异常<br>【异常类型】SqlSugarException <br>【异常信息】:中文提示 : 连接数据库过程中发生错误检查服务器是否正常连接字符串是否正确错误信息Oracle 通信: 无法连接到服务器, 或者无法对连接字符串进行语法分析DbType="Oracle";ConfigId="mes".<br>English Message : Connection open error . Oracle 通信: 无法连接到服务器, 或者无法对连接字符串进行语法分析DbType="Oracle";ConfigId="mes" <br>【堆栈调用】: at SqlSugar.Check.Exception(Boolean isException, String message, String[] args)<br> at SqlSugar.AdoProvider.CheckConnection()<br> at SqlSugar.OracleProvider.GetCommand(String sql, SugarParameter[] parameters)<br> at SqlSugar.AdoProvider.GetDataReader(String sql, SugarParameter[] parameters)<br> at SqlSugar.QueryableProvider`1.GetData[TResult](KeyValuePair`2 sqlObj)<br> at SqlSugar.QueryableProvider`1._ToList[TResult]()<br> at SqlSugar.QueryableProvider`1.ToList()<br> at SqlSugar.SimpleClient`1.GetList(Expression`1 whereExpression)<br> at HighWayIot.Repository.service.Impl.BaseSpaceInfoServiceImpl.OutStoreGetSpaceInfoByMaterialType(String store, String materialType) in C:\项目代码\澳柯玛MES项目\Aucma.Scada\HighWayIot.Repository\service\Impl\BaseSpaceInfoServiceImpl.cs:line 110 <BR>
<HR Size=1><HR COLOR=red>
异常时间2023-10-08 11:41:12,181 [5] <BR>
异常级别ERROR <BR>
异 常 类logerror [(null)] <BR>
【附加信息】 : 入库通过物料类型获取货道信息异常<br>【异常类型】SqlSugarException <br>【异常信息】:中文提示 : 连接数据库过程中发生错误检查服务器是否正常连接字符串是否正确错误信息Oracle 通信: 无法连接到服务器, 或者无法对连接字符串进行语法分析DbType="Oracle";ConfigId="mes".<br>English Message : Connection open error . Oracle 通信: 无法连接到服务器, 或者无法对连接字符串进行语法分析DbType="Oracle";ConfigId="mes" <br>【堆栈调用】: at SqlSugar.Check.Exception(Boolean isException, String message, String[] args)<br> at SqlSugar.AdoProvider.CheckConnection()<br> at SqlSugar.OracleProvider.GetCommand(String sql, SugarParameter[] parameters)<br> at SqlSugar.AdoProvider.GetDataReader(String sql, SugarParameter[] parameters)<br> at SqlSugar.QueryableProvider`1.GetData[TResult](KeyValuePair`2 sqlObj)<br> at SqlSugar.QueryableProvider`1._ToList[TResult]()<br> at SqlSugar.QueryableProvider`1.ToList()<br> at SqlSugar.SimpleClient`1.GetList(Expression`1 whereExpression)<br> at HighWayIot.Repository.service.Impl.BaseSpaceInfoServiceImpl.InStoreGetSpaceInfoByMaterialType(String store, String materialType) in C:\项目代码\澳柯玛MES项目\Aucma.Scada\HighWayIot.Repository\service\Impl\BaseSpaceInfoServiceImpl.cs:line 37 <BR>
<HR Size=1><HR COLOR=red>
异常时间2023-10-08 11:41:12,181 [4] <BR>
异常级别ERROR <BR>
异 常 类logerror [(null)] <BR>
【附加信息】 : 出库通过物料类型获取货道信息异常<br>【异常类型】SqlSugarException <br>【异常信息】:中文提示 : 连接数据库过程中发生错误检查服务器是否正常连接字符串是否正确错误信息Oracle 通信: 无法连接到服务器, 或者无法对连接字符串进行语法分析DbType="Oracle";ConfigId="mes".<br>English Message : Connection open error . Oracle 通信: 无法连接到服务器, 或者无法对连接字符串进行语法分析DbType="Oracle";ConfigId="mes" <br>【堆栈调用】: at SqlSugar.Check.Exception(Boolean isException, String message, String[] args)<br> at SqlSugar.AdoProvider.CheckConnection()<br> at SqlSugar.OracleProvider.GetCommand(String sql, SugarParameter[] parameters)<br> at SqlSugar.AdoProvider.GetDataReader(String sql, SugarParameter[] parameters)<br> at SqlSugar.QueryableProvider`1.GetData[TResult](KeyValuePair`2 sqlObj)<br> at SqlSugar.QueryableProvider`1._ToList[TResult]()<br> at SqlSugar.QueryableProvider`1.ToList()<br> at SqlSugar.SimpleClient`1.GetList(Expression`1 whereExpression)<br> at HighWayIot.Repository.service.Impl.BaseSpaceInfoServiceImpl.OutStoreGetSpaceInfoByMaterialType(String store, String materialType) in C:\项目代码\澳柯玛MES项目\Aucma.Scada\HighWayIot.Repository\service\Impl\BaseSpaceInfoServiceImpl.cs:line 110 <BR>
<HR Size=1><HR COLOR=red>
异常时间2023-10-08 11:41:15,218 [4] <BR>
异常级别ERROR <BR>
异 常 类logerror [(null)] <BR>
【附加信息】 : 出库通过物料类型获取货道信息异常<br>【异常类型】SqlSugarException <br>【异常信息】:中文提示 : 连接数据库过程中发生错误检查服务器是否正常连接字符串是否正确错误信息Oracle 通信: 无法连接到服务器, 或者无法对连接字符串进行语法分析DbType="Oracle";ConfigId="mes".<br>English Message : Connection open error . Oracle 通信: 无法连接到服务器, 或者无法对连接字符串进行语法分析DbType="Oracle";ConfigId="mes" <br>【堆栈调用】: at SqlSugar.Check.Exception(Boolean isException, String message, String[] args)<br> at SqlSugar.AdoProvider.CheckConnection()<br> at SqlSugar.OracleProvider.GetCommand(String sql, SugarParameter[] parameters)<br> at SqlSugar.AdoProvider.GetDataReader(String sql, SugarParameter[] parameters)<br> at SqlSugar.QueryableProvider`1.GetData[TResult](KeyValuePair`2 sqlObj)<br> at SqlSugar.QueryableProvider`1._ToList[TResult]()<br> at SqlSugar.QueryableProvider`1.ToList()<br> at SqlSugar.SimpleClient`1.GetList(Expression`1 whereExpression)<br> at HighWayIot.Repository.service.Impl.BaseSpaceInfoServiceImpl.OutStoreGetSpaceInfoByMaterialType(String store, String materialType) in C:\项目代码\澳柯玛MES项目\Aucma.Scada\HighWayIot.Repository\service\Impl\BaseSpaceInfoServiceImpl.cs:line 110 <BR>
<HR Size=1><HR COLOR=red>
异常时间2023-10-08 11:41:15,218 [5] <BR>
异常级别ERROR <BR>
异 常 类logerror [(null)] <BR>
【附加信息】 : 入库通过物料类型获取货道信息异常<br>【异常类型】SqlSugarException <br>【异常信息】:中文提示 : 连接数据库过程中发生错误检查服务器是否正常连接字符串是否正确错误信息Oracle 通信: 无法连接到服务器, 或者无法对连接字符串进行语法分析DbType="Oracle";ConfigId="mes".<br>English Message : Connection open error . Oracle 通信: 无法连接到服务器, 或者无法对连接字符串进行语法分析DbType="Oracle";ConfigId="mes" <br>【堆栈调用】: at SqlSugar.Check.Exception(Boolean isException, String message, String[] args)<br> at SqlSugar.AdoProvider.CheckConnection()<br> at SqlSugar.OracleProvider.GetCommand(String sql, SugarParameter[] parameters)<br> at SqlSugar.AdoProvider.GetDataReader(String sql, SugarParameter[] parameters)<br> at SqlSugar.QueryableProvider`1.GetData[TResult](KeyValuePair`2 sqlObj)<br> at SqlSugar.QueryableProvider`1._ToList[TResult]()<br> at SqlSugar.QueryableProvider`1.ToList()<br> at SqlSugar.SimpleClient`1.GetList(Expression`1 whereExpression)<br> at HighWayIot.Repository.service.Impl.BaseSpaceInfoServiceImpl.InStoreGetSpaceInfoByMaterialType(String store, String materialType) in C:\项目代码\澳柯玛MES项目\Aucma.Scada\HighWayIot.Repository\service\Impl\BaseSpaceInfoServiceImpl.cs:line 37 <BR>
<HR Size=1><HR COLOR=red>
异常时间2023-10-08 11:41:18,202 [13] <BR>
异常级别ERROR <BR>
异 常 类logerror [(null)] <BR>
【附加信息】 : 出库通过物料类型获取货道信息异常<br>【异常类型】SqlSugarException <br>【异常信息】:中文提示 : 连接数据库过程中发生错误检查服务器是否正常连接字符串是否正确错误信息Oracle 通信: 无法连接到服务器, 或者无法对连接字符串进行语法分析DbType="Oracle";ConfigId="mes".<br>English Message : Connection open error . Oracle 通信: 无法连接到服务器, 或者无法对连接字符串进行语法分析DbType="Oracle";ConfigId="mes" <br>【堆栈调用】: at SqlSugar.Check.Exception(Boolean isException, String message, String[] args)<br> at SqlSugar.AdoProvider.CheckConnection()<br> at SqlSugar.OracleProvider.GetCommand(String sql, SugarParameter[] parameters)<br> at SqlSugar.AdoProvider.GetDataReader(String sql, SugarParameter[] parameters)<br> at SqlSugar.QueryableProvider`1.GetData[TResult](KeyValuePair`2 sqlObj)<br> at SqlSugar.QueryableProvider`1._ToList[TResult]()<br> at SqlSugar.QueryableProvider`1.ToList()<br> at SqlSugar.SimpleClient`1.GetList(Expression`1 whereExpression)<br> at HighWayIot.Repository.service.Impl.BaseSpaceInfoServiceImpl.OutStoreGetSpaceInfoByMaterialType(String store, String materialType) in C:\项目代码\澳柯玛MES项目\Aucma.Scada\HighWayIot.Repository\service\Impl\BaseSpaceInfoServiceImpl.cs:line 110 <BR>
<HR Size=1><HR COLOR=red>
异常时间2023-10-08 11:41:18,202 [4] <BR>
异常级别ERROR <BR>
异 常 类logerror [(null)] <BR>
【附加信息】 : 入库通过物料类型获取货道信息异常<br>【异常类型】SqlSugarException <br>【异常信息】:中文提示 : 连接数据库过程中发生错误检查服务器是否正常连接字符串是否正确错误信息Oracle 通信: 无法连接到服务器, 或者无法对连接字符串进行语法分析DbType="Oracle";ConfigId="mes".<br>English Message : Connection open error . Oracle 通信: 无法连接到服务器, 或者无法对连接字符串进行语法分析DbType="Oracle";ConfigId="mes" <br>【堆栈调用】: at SqlSugar.Check.Exception(Boolean isException, String message, String[] args)<br> at SqlSugar.AdoProvider.CheckConnection()<br> at SqlSugar.OracleProvider.GetCommand(String sql, SugarParameter[] parameters)<br> at SqlSugar.AdoProvider.GetDataReader(String sql, SugarParameter[] parameters)<br> at SqlSugar.QueryableProvider`1.GetData[TResult](KeyValuePair`2 sqlObj)<br> at SqlSugar.QueryableProvider`1._ToList[TResult]()<br> at SqlSugar.QueryableProvider`1.ToList()<br> at SqlSugar.SimpleClient`1.GetList(Expression`1 whereExpression)<br> at HighWayIot.Repository.service.Impl.BaseSpaceInfoServiceImpl.InStoreGetSpaceInfoByMaterialType(String store, String materialType) in C:\项目代码\澳柯玛MES项目\Aucma.Scada\HighWayIot.Repository\service\Impl\BaseSpaceInfoServiceImpl.cs:line 37 <BR>
<HR Size=1><HR COLOR=red>
异常时间2023-10-08 11:41:21,197 [5] <BR>
异常级别ERROR <BR>
异 常 类logerror [(null)] <BR>
【附加信息】 : 入库通过物料类型获取货道信息异常<br>【异常类型】SqlSugarException <br>【异常信息】:中文提示 : 连接数据库过程中发生错误检查服务器是否正常连接字符串是否正确错误信息Oracle 通信: 无法连接到服务器, 或者无法对连接字符串进行语法分析DbType="Oracle";ConfigId="mes".<br>English Message : Connection open error . Oracle 通信: 无法连接到服务器, 或者无法对连接字符串进行语法分析DbType="Oracle";ConfigId="mes" <br>【堆栈调用】: at SqlSugar.Check.Exception(Boolean isException, String message, String[] args)<br> at SqlSugar.AdoProvider.CheckConnection()<br> at SqlSugar.OracleProvider.GetCommand(String sql, SugarParameter[] parameters)<br> at SqlSugar.AdoProvider.GetDataReader(String sql, SugarParameter[] parameters)<br> at SqlSugar.QueryableProvider`1.GetData[TResult](KeyValuePair`2 sqlObj)<br> at SqlSugar.QueryableProvider`1._ToList[TResult]()<br> at SqlSugar.QueryableProvider`1.ToList()<br> at SqlSugar.SimpleClient`1.GetList(Expression`1 whereExpression)<br> at HighWayIot.Repository.service.Impl.BaseSpaceInfoServiceImpl.InStoreGetSpaceInfoByMaterialType(String store, String materialType) in C:\项目代码\澳柯玛MES项目\Aucma.Scada\HighWayIot.Repository\service\Impl\BaseSpaceInfoServiceImpl.cs:line 37 <BR>
<HR Size=1><HR COLOR=red>
异常时间2023-10-08 11:41:21,197 [4] <BR>
异常级别ERROR <BR>
异 常 类logerror [(null)] <BR>
【附加信息】 : 出库通过物料类型获取货道信息异常<br>【异常类型】SqlSugarException <br>【异常信息】:中文提示 : 连接数据库过程中发生错误检查服务器是否正常连接字符串是否正确错误信息Oracle 通信: 无法连接到服务器, 或者无法对连接字符串进行语法分析DbType="Oracle";ConfigId="mes".<br>English Message : Connection open error . Oracle 通信: 无法连接到服务器, 或者无法对连接字符串进行语法分析DbType="Oracle";ConfigId="mes" <br>【堆栈调用】: at SqlSugar.Check.Exception(Boolean isException, String message, String[] args)<br> at SqlSugar.AdoProvider.CheckConnection()<br> at SqlSugar.OracleProvider.GetCommand(String sql, SugarParameter[] parameters)<br> at SqlSugar.AdoProvider.GetDataReader(String sql, SugarParameter[] parameters)<br> at SqlSugar.QueryableProvider`1.GetData[TResult](KeyValuePair`2 sqlObj)<br> at SqlSugar.QueryableProvider`1._ToList[TResult]()<br> at SqlSugar.QueryableProvider`1.ToList()<br> at SqlSugar.SimpleClient`1.GetList(Expression`1 whereExpression)<br> at HighWayIot.Repository.service.Impl.BaseSpaceInfoServiceImpl.OutStoreGetSpaceInfoByMaterialType(String store, String materialType) in C:\项目代码\澳柯玛MES项目\Aucma.Scada\HighWayIot.Repository\service\Impl\BaseSpaceInfoServiceImpl.cs:line 110 <BR>
<HR Size=1><HR COLOR=red>
异常时间2023-10-08 11:41:24,198 [8] <BR>
异常级别ERROR <BR>
异 常 类logerror [(null)] <BR>
【附加信息】 : 入库通过物料类型获取货道信息异常<br>【异常类型】SqlSugarException <br>【异常信息】:中文提示 : 连接数据库过程中发生错误检查服务器是否正常连接字符串是否正确错误信息Oracle 通信: 无法连接到服务器, 或者无法对连接字符串进行语法分析DbType="Oracle";ConfigId="mes".<br>English Message : Connection open error . Oracle 通信: 无法连接到服务器, 或者无法对连接字符串进行语法分析DbType="Oracle";ConfigId="mes" <br>【堆栈调用】: at SqlSugar.Check.Exception(Boolean isException, String message, String[] args)<br> at SqlSugar.AdoProvider.CheckConnection()<br> at SqlSugar.OracleProvider.GetCommand(String sql, SugarParameter[] parameters)<br> at SqlSugar.AdoProvider.GetDataReader(String sql, SugarParameter[] parameters)<br> at SqlSugar.QueryableProvider`1.GetData[TResult](KeyValuePair`2 sqlObj)<br> at SqlSugar.QueryableProvider`1._ToList[TResult]()<br> at SqlSugar.QueryableProvider`1.ToList()<br> at SqlSugar.SimpleClient`1.GetList(Expression`1 whereExpression)<br> at HighWayIot.Repository.service.Impl.BaseSpaceInfoServiceImpl.InStoreGetSpaceInfoByMaterialType(String store, String materialType) in C:\项目代码\澳柯玛MES项目\Aucma.Scada\HighWayIot.Repository\service\Impl\BaseSpaceInfoServiceImpl.cs:line 37 <BR>
<HR Size=1><HR COLOR=red>
异常时间2023-10-08 11:41:24,198 [22] <BR>
异常级别ERROR <BR>
异 常 类logerror [(null)] <BR>
【附加信息】 : 出库通过物料类型获取货道信息异常<br>【异常类型】SqlSugarException <br>【异常信息】:中文提示 : 连接数据库过程中发生错误检查服务器是否正常连接字符串是否正确错误信息Oracle 通信: 无法连接到服务器, 或者无法对连接字符串进行语法分析DbType="Oracle";ConfigId="mes".<br>English Message : Connection open error . Oracle 通信: 无法连接到服务器, 或者无法对连接字符串进行语法分析DbType="Oracle";ConfigId="mes" <br>【堆栈调用】: at SqlSugar.Check.Exception(Boolean isException, String message, String[] args)<br> at SqlSugar.AdoProvider.CheckConnection()<br> at SqlSugar.OracleProvider.GetCommand(String sql, SugarParameter[] parameters)<br> at SqlSugar.AdoProvider.GetDataReader(String sql, SugarParameter[] parameters)<br> at SqlSugar.QueryableProvider`1.GetData[TResult](KeyValuePair`2 sqlObj)<br> at SqlSugar.QueryableProvider`1._ToList[TResult]()<br> at SqlSugar.QueryableProvider`1.ToList()<br> at SqlSugar.SimpleClient`1.GetList(Expression`1 whereExpression)<br> at HighWayIot.Repository.service.Impl.BaseSpaceInfoServiceImpl.OutStoreGetSpaceInfoByMaterialType(String store, String materialType) in C:\项目代码\澳柯玛MES项目\Aucma.Scada\HighWayIot.Repository\service\Impl\BaseSpaceInfoServiceImpl.cs:line 110 <BR>
<HR Size=1><HR COLOR=red>
异常时间2023-10-08 11:41:27,195 [8] <BR>
异常级别ERROR <BR>
异 常 类logerror [(null)] <BR>
【附加信息】 : 入库通过物料类型获取货道信息异常<br>【异常类型】SqlSugarException <br>【异常信息】:中文提示 : 连接数据库过程中发生错误检查服务器是否正常连接字符串是否正确错误信息Oracle 通信: 无法连接到服务器, 或者无法对连接字符串进行语法分析DbType="Oracle";ConfigId="mes".<br>English Message : Connection open error . Oracle 通信: 无法连接到服务器, 或者无法对连接字符串进行语法分析DbType="Oracle";ConfigId="mes" <br>【堆栈调用】: at SqlSugar.Check.Exception(Boolean isException, String message, String[] args)<br> at SqlSugar.AdoProvider.CheckConnection()<br> at SqlSugar.OracleProvider.GetCommand(String sql, SugarParameter[] parameters)<br> at SqlSugar.AdoProvider.GetDataReader(String sql, SugarParameter[] parameters)<br> at SqlSugar.QueryableProvider`1.GetData[TResult](KeyValuePair`2 sqlObj)<br> at SqlSugar.QueryableProvider`1._ToList[TResult]()<br> at SqlSugar.QueryableProvider`1.ToList()<br> at SqlSugar.SimpleClient`1.GetList(Expression`1 whereExpression)<br> at HighWayIot.Repository.service.Impl.BaseSpaceInfoServiceImpl.InStoreGetSpaceInfoByMaterialType(String store, String materialType) in C:\项目代码\澳柯玛MES项目\Aucma.Scada\HighWayIot.Repository\service\Impl\BaseSpaceInfoServiceImpl.cs:line 37 <BR>
<HR Size=1><HR COLOR=red>
异常时间2023-10-08 11:41:27,195 [13] <BR>
异常级别ERROR <BR>
异 常 类logerror [(null)] <BR>
【附加信息】 : 出库通过物料类型获取货道信息异常<br>【异常类型】SqlSugarException <br>【异常信息】:中文提示 : 连接数据库过程中发生错误检查服务器是否正常连接字符串是否正确错误信息Oracle 通信: 无法连接到服务器, 或者无法对连接字符串进行语法分析DbType="Oracle";ConfigId="mes".<br>English Message : Connection open error . Oracle 通信: 无法连接到服务器, 或者无法对连接字符串进行语法分析DbType="Oracle";ConfigId="mes" <br>【堆栈调用】: at SqlSugar.Check.Exception(Boolean isException, String message, String[] args)<br> at SqlSugar.AdoProvider.CheckConnection()<br> at SqlSugar.OracleProvider.GetCommand(String sql, SugarParameter[] parameters)<br> at SqlSugar.AdoProvider.GetDataReader(String sql, SugarParameter[] parameters)<br> at SqlSugar.QueryableProvider`1.GetData[TResult](KeyValuePair`2 sqlObj)<br> at SqlSugar.QueryableProvider`1._ToList[TResult]()<br> at SqlSugar.QueryableProvider`1.ToList()<br> at SqlSugar.SimpleClient`1.GetList(Expression`1 whereExpression)<br> at HighWayIot.Repository.service.Impl.BaseSpaceInfoServiceImpl.OutStoreGetSpaceInfoByMaterialType(String store, String materialType) in C:\项目代码\澳柯玛MES项目\Aucma.Scada\HighWayIot.Repository\service\Impl\BaseSpaceInfoServiceImpl.cs:line 110 <BR>
<HR Size=1><HR COLOR=red>
异常时间2023-10-08 11:41:30,165 [22] <BR>
异常级别ERROR <BR>
异 常 类logerror [(null)] <BR>
【附加信息】 : 出库通过物料类型获取货道信息异常<br>【异常类型】SqlSugarException <br>【异常信息】:中文提示 : 连接数据库过程中发生错误检查服务器是否正常连接字符串是否正确错误信息Oracle 通信: 无法连接到服务器, 或者无法对连接字符串进行语法分析DbType="Oracle";ConfigId="mes".<br>English Message : Connection open error . Oracle 通信: 无法连接到服务器, 或者无法对连接字符串进行语法分析DbType="Oracle";ConfigId="mes" <br>【堆栈调用】: at SqlSugar.Check.Exception(Boolean isException, String message, String[] args)<br> at SqlSugar.AdoProvider.CheckConnection()<br> at SqlSugar.OracleProvider.GetCommand(String sql, SugarParameter[] parameters)<br> at SqlSugar.AdoProvider.GetDataReader(String sql, SugarParameter[] parameters)<br> at SqlSugar.QueryableProvider`1.GetData[TResult](KeyValuePair`2 sqlObj)<br> at SqlSugar.QueryableProvider`1._ToList[TResult]()<br> at SqlSugar.QueryableProvider`1.ToList()<br> at SqlSugar.SimpleClient`1.GetList(Expression`1 whereExpression)<br> at HighWayIot.Repository.service.Impl.BaseSpaceInfoServiceImpl.OutStoreGetSpaceInfoByMaterialType(String store, String materialType) in C:\项目代码\澳柯玛MES项目\Aucma.Scada\HighWayIot.Repository\service\Impl\BaseSpaceInfoServiceImpl.cs:line 110 <BR>
<HR Size=1><HR COLOR=red>
异常时间2023-10-08 11:41:30,165 [4] <BR>
异常级别ERROR <BR>
异 常 类logerror [(null)] <BR>
【附加信息】 : 入库通过物料类型获取货道信息异常<br>【异常类型】SqlSugarException <br>【异常信息】:中文提示 : 连接数据库过程中发生错误检查服务器是否正常连接字符串是否正确错误信息Oracle 通信: 无法连接到服务器, 或者无法对连接字符串进行语法分析DbType="Oracle";ConfigId="mes".<br>English Message : Connection open error . Oracle 通信: 无法连接到服务器, 或者无法对连接字符串进行语法分析DbType="Oracle";ConfigId="mes" <br>【堆栈调用】: at SqlSugar.Check.Exception(Boolean isException, String message, String[] args)<br> at SqlSugar.AdoProvider.CheckConnection()<br> at SqlSugar.OracleProvider.GetCommand(String sql, SugarParameter[] parameters)<br> at SqlSugar.AdoProvider.GetDataReader(String sql, SugarParameter[] parameters)<br> at SqlSugar.QueryableProvider`1.GetData[TResult](KeyValuePair`2 sqlObj)<br> at SqlSugar.QueryableProvider`1._ToList[TResult]()<br> at SqlSugar.QueryableProvider`1.ToList()<br> at SqlSugar.SimpleClient`1.GetList(Expression`1 whereExpression)<br> at HighWayIot.Repository.service.Impl.BaseSpaceInfoServiceImpl.InStoreGetSpaceInfoByMaterialType(String store, String materialType) in C:\项目代码\澳柯玛MES项目\Aucma.Scada\HighWayIot.Repository\service\Impl\BaseSpaceInfoServiceImpl.cs:line 37 <BR>
<HR Size=1><HR COLOR=red>
异常时间2023-10-08 11:41:33,177 [4] <BR>
异常级别ERROR <BR>
异 常 类logerror [(null)] <BR>
【附加信息】 : 出库通过物料类型获取货道信息异常<br>【异常类型】SqlSugarException <br>【异常信息】:中文提示 : 连接数据库过程中发生错误检查服务器是否正常连接字符串是否正确错误信息Oracle 通信: 无法连接到服务器, 或者无法对连接字符串进行语法分析DbType="Oracle";ConfigId="mes".<br>English Message : Connection open error . Oracle 通信: 无法连接到服务器, 或者无法对连接字符串进行语法分析DbType="Oracle";ConfigId="mes" <br>【堆栈调用】: at SqlSugar.Check.Exception(Boolean isException, String message, String[] args)<br> at SqlSugar.AdoProvider.CheckConnection()<br> at SqlSugar.OracleProvider.GetCommand(String sql, SugarParameter[] parameters)<br> at SqlSugar.AdoProvider.GetDataReader(String sql, SugarParameter[] parameters)<br> at SqlSugar.QueryableProvider`1.GetData[TResult](KeyValuePair`2 sqlObj)<br> at SqlSugar.QueryableProvider`1._ToList[TResult]()<br> at SqlSugar.QueryableProvider`1.ToList()<br> at SqlSugar.SimpleClient`1.GetList(Expression`1 whereExpression)<br> at HighWayIot.Repository.service.Impl.BaseSpaceInfoServiceImpl.OutStoreGetSpaceInfoByMaterialType(String store, String materialType) in C:\项目代码\澳柯玛MES项目\Aucma.Scada\HighWayIot.Repository\service\Impl\BaseSpaceInfoServiceImpl.cs:line 110 <BR>
<HR Size=1><HR COLOR=red>
异常时间2023-10-08 11:41:33,195 [5] <BR>
异常级别ERROR <BR>
异 常 类logerror [(null)] <BR>
【附加信息】 : 入库通过物料类型获取货道信息异常<br>【异常类型】SqlSugarException <br>【异常信息】:中文提示 : 连接数据库过程中发生错误检查服务器是否正常连接字符串是否正确错误信息Oracle 通信: 无法连接到服务器, 或者无法对连接字符串进行语法分析DbType="Oracle";ConfigId="mes".<br>English Message : Connection open error . Oracle 通信: 无法连接到服务器, 或者无法对连接字符串进行语法分析DbType="Oracle";ConfigId="mes" <br>【堆栈调用】: at SqlSugar.Check.Exception(Boolean isException, String message, String[] args)<br> at SqlSugar.AdoProvider.CheckConnection()<br> at SqlSugar.OracleProvider.GetCommand(String sql, SugarParameter[] parameters)<br> at SqlSugar.AdoProvider.GetDataReader(String sql, SugarParameter[] parameters)<br> at SqlSugar.QueryableProvider`1.GetData[TResult](KeyValuePair`2 sqlObj)<br> at SqlSugar.QueryableProvider`1._ToList[TResult]()<br> at SqlSugar.QueryableProvider`1.ToList()<br> at SqlSugar.SimpleClient`1.GetList(Expression`1 whereExpression)<br> at HighWayIot.Repository.service.Impl.BaseSpaceInfoServiceImpl.InStoreGetSpaceInfoByMaterialType(String store, String materialType) in C:\项目代码\澳柯玛MES项目\Aucma.Scada\HighWayIot.Repository\service\Impl\BaseSpaceInfoServiceImpl.cs:line 37 <BR>
<HR Size=1><HR COLOR=red>
异常时间2023-10-08 11:41:36,243 [8] <BR>
异常级别ERROR <BR>
异 常 类logerror [(null)] <BR>
【附加信息】 : 出库通过物料类型获取货道信息异常<br>【异常类型】SqlSugarException <br>【异常信息】:中文提示 : 连接数据库过程中发生错误检查服务器是否正常连接字符串是否正确错误信息Oracle 通信: 无法连接到服务器, 或者无法对连接字符串进行语法分析DbType="Oracle";ConfigId="mes".<br>English Message : Connection open error . Oracle 通信: 无法连接到服务器, 或者无法对连接字符串进行语法分析DbType="Oracle";ConfigId="mes" <br>【堆栈调用】: at SqlSugar.Check.Exception(Boolean isException, String message, String[] args)<br> at SqlSugar.AdoProvider.CheckConnection()<br> at SqlSugar.OracleProvider.GetCommand(String sql, SugarParameter[] parameters)<br> at SqlSugar.AdoProvider.GetDataReader(String sql, SugarParameter[] parameters)<br> at SqlSugar.QueryableProvider`1.GetData[TResult](KeyValuePair`2 sqlObj)<br> at SqlSugar.QueryableProvider`1._ToList[TResult]()<br> at SqlSugar.QueryableProvider`1.ToList()<br> at SqlSugar.SimpleClient`1.GetList(Expression`1 whereExpression)<br> at HighWayIot.Repository.service.Impl.BaseSpaceInfoServiceImpl.OutStoreGetSpaceInfoByMaterialType(String store, String materialType) in C:\项目代码\澳柯玛MES项目\Aucma.Scada\HighWayIot.Repository\service\Impl\BaseSpaceInfoServiceImpl.cs:line 110 <BR>
<HR Size=1><HR COLOR=red>
异常时间2023-10-08 11:41:36,243 [13] <BR>
异常级别ERROR <BR>
异 常 类logerror [(null)] <BR>
【附加信息】 : 入库通过物料类型获取货道信息异常<br>【异常类型】SqlSugarException <br>【异常信息】:中文提示 : 连接数据库过程中发生错误检查服务器是否正常连接字符串是否正确错误信息Oracle 通信: 无法连接到服务器, 或者无法对连接字符串进行语法分析DbType="Oracle";ConfigId="mes".<br>English Message : Connection open error . Oracle 通信: 无法连接到服务器, 或者无法对连接字符串进行语法分析DbType="Oracle";ConfigId="mes" <br>【堆栈调用】: at SqlSugar.Check.Exception(Boolean isException, String message, String[] args)<br> at SqlSugar.AdoProvider.CheckConnection()<br> at SqlSugar.OracleProvider.GetCommand(String sql, SugarParameter[] parameters)<br> at SqlSugar.AdoProvider.GetDataReader(String sql, SugarParameter[] parameters)<br> at SqlSugar.QueryableProvider`1.GetData[TResult](KeyValuePair`2 sqlObj)<br> at SqlSugar.QueryableProvider`1._ToList[TResult]()<br> at SqlSugar.QueryableProvider`1.ToList()<br> at SqlSugar.SimpleClient`1.GetList(Expression`1 whereExpression)<br> at HighWayIot.Repository.service.Impl.BaseSpaceInfoServiceImpl.InStoreGetSpaceInfoByMaterialType(String store, String materialType) in C:\项目代码\澳柯玛MES项目\Aucma.Scada\HighWayIot.Repository\service\Impl\BaseSpaceInfoServiceImpl.cs:line 37 <BR>
<HR Size=1><HR COLOR=red>
异常时间2023-10-08 11:41:39,232 [4] <BR>
异常级别ERROR <BR>
异 常 类logerror [(null)] <BR>
【附加信息】 : 出库通过物料类型获取货道信息异常<br>【异常类型】SqlSugarException <br>【异常信息】:中文提示 : 连接数据库过程中发生错误检查服务器是否正常连接字符串是否正确错误信息Oracle 通信: 无法连接到服务器, 或者无法对连接字符串进行语法分析DbType="Oracle";ConfigId="mes".<br>English Message : Connection open error . Oracle 通信: 无法连接到服务器, 或者无法对连接字符串进行语法分析DbType="Oracle";ConfigId="mes" <br>【堆栈调用】: at SqlSugar.Check.Exception(Boolean isException, String message, String[] args)<br> at SqlSugar.AdoProvider.CheckConnection()<br> at SqlSugar.OracleProvider.GetCommand(String sql, SugarParameter[] parameters)<br> at SqlSugar.AdoProvider.GetDataReader(String sql, SugarParameter[] parameters)<br> at SqlSugar.QueryableProvider`1.GetData[TResult](KeyValuePair`2 sqlObj)<br> at SqlSugar.QueryableProvider`1._ToList[TResult]()<br> at SqlSugar.QueryableProvider`1.ToList()<br> at SqlSugar.SimpleClient`1.GetList(Expression`1 whereExpression)<br> at HighWayIot.Repository.service.Impl.BaseSpaceInfoServiceImpl.OutStoreGetSpaceInfoByMaterialType(String store, String materialType) in C:\项目代码\澳柯玛MES项目\Aucma.Scada\HighWayIot.Repository\service\Impl\BaseSpaceInfoServiceImpl.cs:line 110 <BR>
<HR Size=1><HR COLOR=red>
异常时间2023-10-08 11:41:39,232 [5] <BR>
异常级别ERROR <BR>
异 常 类logerror [(null)] <BR>
【附加信息】 : 入库通过物料类型获取货道信息异常<br>【异常类型】SqlSugarException <br>【异常信息】:中文提示 : 连接数据库过程中发生错误检查服务器是否正常连接字符串是否正确错误信息Oracle 通信: 无法连接到服务器, 或者无法对连接字符串进行语法分析DbType="Oracle";ConfigId="mes".<br>English Message : Connection open error . Oracle 通信: 无法连接到服务器, 或者无法对连接字符串进行语法分析DbType="Oracle";ConfigId="mes" <br>【堆栈调用】: at SqlSugar.Check.Exception(Boolean isException, String message, String[] args)<br> at SqlSugar.AdoProvider.CheckConnection()<br> at SqlSugar.OracleProvider.GetCommand(String sql, SugarParameter[] parameters)<br> at SqlSugar.AdoProvider.GetDataReader(String sql, SugarParameter[] parameters)<br> at SqlSugar.QueryableProvider`1.GetData[TResult](KeyValuePair`2 sqlObj)<br> at SqlSugar.QueryableProvider`1._ToList[TResult]()<br> at SqlSugar.QueryableProvider`1.ToList()<br> at SqlSugar.SimpleClient`1.GetList(Expression`1 whereExpression)<br> at HighWayIot.Repository.service.Impl.BaseSpaceInfoServiceImpl.InStoreGetSpaceInfoByMaterialType(String store, String materialType) in C:\项目代码\澳柯玛MES项目\Aucma.Scada\HighWayIot.Repository\service\Impl\BaseSpaceInfoServiceImpl.cs:line 37 <BR>
<HR Size=1><HR COLOR=red>
异常时间2023-10-08 11:41:42,237 [13] <BR>
异常级别ERROR <BR>
异 常 类logerror [(null)] <BR>
【附加信息】 : 出库通过物料类型获取货道信息异常<br>【异常类型】SqlSugarException <br>【异常信息】:中文提示 : 连接数据库过程中发生错误检查服务器是否正常连接字符串是否正确错误信息Oracle 通信: 无法连接到服务器, 或者无法对连接字符串进行语法分析DbType="Oracle";ConfigId="mes".<br>English Message : Connection open error . Oracle 通信: 无法连接到服务器, 或者无法对连接字符串进行语法分析DbType="Oracle";ConfigId="mes" <br>【堆栈调用】: at SqlSugar.Check.Exception(Boolean isException, String message, String[] args)<br> at SqlSugar.AdoProvider.CheckConnection()<br> at SqlSugar.OracleProvider.GetCommand(String sql, SugarParameter[] parameters)<br> at SqlSugar.AdoProvider.GetDataReader(String sql, SugarParameter[] parameters)<br> at SqlSugar.QueryableProvider`1.GetData[TResult](KeyValuePair`2 sqlObj)<br> at SqlSugar.QueryableProvider`1._ToList[TResult]()<br> at SqlSugar.QueryableProvider`1.ToList()<br> at SqlSugar.SimpleClient`1.GetList(Expression`1 whereExpression)<br> at HighWayIot.Repository.service.Impl.BaseSpaceInfoServiceImpl.OutStoreGetSpaceInfoByMaterialType(String store, String materialType) in C:\项目代码\澳柯玛MES项目\Aucma.Scada\HighWayIot.Repository\service\Impl\BaseSpaceInfoServiceImpl.cs:line 110 <BR>
<HR Size=1><HR COLOR=red>
异常时间2023-10-08 11:41:42,237 [22] <BR>
异常级别ERROR <BR>
异 常 类logerror [(null)] <BR>
【附加信息】 : 入库通过物料类型获取货道信息异常<br>【异常类型】SqlSugarException <br>【异常信息】:中文提示 : 连接数据库过程中发生错误检查服务器是否正常连接字符串是否正确错误信息Oracle 通信: 无法连接到服务器, 或者无法对连接字符串进行语法分析DbType="Oracle";ConfigId="mes".<br>English Message : Connection open error . Oracle 通信: 无法连接到服务器, 或者无法对连接字符串进行语法分析DbType="Oracle";ConfigId="mes" <br>【堆栈调用】: at SqlSugar.Check.Exception(Boolean isException, String message, String[] args)<br> at SqlSugar.AdoProvider.CheckConnection()<br> at SqlSugar.OracleProvider.GetCommand(String sql, SugarParameter[] parameters)<br> at SqlSugar.AdoProvider.GetDataReader(String sql, SugarParameter[] parameters)<br> at SqlSugar.QueryableProvider`1.GetData[TResult](KeyValuePair`2 sqlObj)<br> at SqlSugar.QueryableProvider`1._ToList[TResult]()<br> at SqlSugar.QueryableProvider`1.ToList()<br> at SqlSugar.SimpleClient`1.GetList(Expression`1 whereExpression)<br> at HighWayIot.Repository.service.Impl.BaseSpaceInfoServiceImpl.InStoreGetSpaceInfoByMaterialType(String store, String materialType) in C:\项目代码\澳柯玛MES项目\Aucma.Scada\HighWayIot.Repository\service\Impl\BaseSpaceInfoServiceImpl.cs:line 37 <BR>
<HR Size=1><HR COLOR=red>
异常时间2023-10-08 11:41:45,194 [8] <BR>
异常级别ERROR <BR>
异 常 类logerror [(null)] <BR>
【附加信息】 : 出库通过物料类型获取货道信息异常<br>【异常类型】SqlSugarException <br>【异常信息】:中文提示 : 连接数据库过程中发生错误检查服务器是否正常连接字符串是否正确错误信息Oracle 通信: 无法连接到服务器, 或者无法对连接字符串进行语法分析DbType="Oracle";ConfigId="mes".<br>English Message : Connection open error . Oracle 通信: 无法连接到服务器, 或者无法对连接字符串进行语法分析DbType="Oracle";ConfigId="mes" <br>【堆栈调用】: at SqlSugar.Check.Exception(Boolean isException, String message, String[] args)<br> at SqlSugar.AdoProvider.CheckConnection()<br> at SqlSugar.OracleProvider.GetCommand(String sql, SugarParameter[] parameters)<br> at SqlSugar.AdoProvider.GetDataReader(String sql, SugarParameter[] parameters)<br> at SqlSugar.QueryableProvider`1.GetData[TResult](KeyValuePair`2 sqlObj)<br> at SqlSugar.QueryableProvider`1._ToList[TResult]()<br> at SqlSugar.QueryableProvider`1.ToList()<br> at SqlSugar.SimpleClient`1.GetList(Expression`1 whereExpression)<br> at HighWayIot.Repository.service.Impl.BaseSpaceInfoServiceImpl.OutStoreGetSpaceInfoByMaterialType(String store, String materialType) in C:\项目代码\澳柯玛MES项目\Aucma.Scada\HighWayIot.Repository\service\Impl\BaseSpaceInfoServiceImpl.cs:line 110 <BR>
<HR Size=1><HR COLOR=red>
异常时间2023-10-08 11:41:45,210 [13] <BR>
异常级别ERROR <BR>
异 常 类logerror [(null)] <BR>
【附加信息】 : 入库通过物料类型获取货道信息异常<br>【异常类型】SqlSugarException <br>【异常信息】:中文提示 : 连接数据库过程中发生错误检查服务器是否正常连接字符串是否正确错误信息Oracle 通信: 无法连接到服务器, 或者无法对连接字符串进行语法分析DbType="Oracle";ConfigId="mes".<br>English Message : Connection open error . Oracle 通信: 无法连接到服务器, 或者无法对连接字符串进行语法分析DbType="Oracle";ConfigId="mes" <br>【堆栈调用】: at SqlSugar.Check.Exception(Boolean isException, String message, String[] args)<br> at SqlSugar.AdoProvider.CheckConnection()<br> at SqlSugar.OracleProvider.GetCommand(String sql, SugarParameter[] parameters)<br> at SqlSugar.AdoProvider.GetDataReader(String sql, SugarParameter[] parameters)<br> at SqlSugar.QueryableProvider`1.GetData[TResult](KeyValuePair`2 sqlObj)<br> at SqlSugar.QueryableProvider`1._ToList[TResult]()<br> at SqlSugar.QueryableProvider`1.ToList()<br> at SqlSugar.SimpleClient`1.GetList(Expression`1 whereExpression)<br> at HighWayIot.Repository.service.Impl.BaseSpaceInfoServiceImpl.InStoreGetSpaceInfoByMaterialType(String store, String materialType) in C:\项目代码\澳柯玛MES项目\Aucma.Scada\HighWayIot.Repository\service\Impl\BaseSpaceInfoServiceImpl.cs:line 37 <BR>
<HR Size=1><HR COLOR=red>
异常时间2023-10-08 11:41:48,237 [8] <BR>
异常级别ERROR <BR>
异 常 类logerror [(null)] <BR>
【附加信息】 : 出库通过物料类型获取货道信息异常<br>【异常类型】SqlSugarException <br>【异常信息】:中文提示 : 连接数据库过程中发生错误检查服务器是否正常连接字符串是否正确错误信息Oracle 通信: 无法连接到服务器, 或者无法对连接字符串进行语法分析DbType="Oracle";ConfigId="mes".<br>English Message : Connection open error . Oracle 通信: 无法连接到服务器, 或者无法对连接字符串进行语法分析DbType="Oracle";ConfigId="mes" <br>【堆栈调用】: at SqlSugar.Check.Exception(Boolean isException, String message, String[] args)<br> at SqlSugar.AdoProvider.CheckConnection()<br> at SqlSugar.OracleProvider.GetCommand(String sql, SugarParameter[] parameters)<br> at SqlSugar.AdoProvider.GetDataReader(String sql, SugarParameter[] parameters)<br> at SqlSugar.QueryableProvider`1.GetData[TResult](KeyValuePair`2 sqlObj)<br> at SqlSugar.QueryableProvider`1._ToList[TResult]()<br> at SqlSugar.QueryableProvider`1.ToList()<br> at SqlSugar.SimpleClient`1.GetList(Expression`1 whereExpression)<br> at HighWayIot.Repository.service.Impl.BaseSpaceInfoServiceImpl.OutStoreGetSpaceInfoByMaterialType(String store, String materialType) in C:\项目代码\澳柯玛MES项目\Aucma.Scada\HighWayIot.Repository\service\Impl\BaseSpaceInfoServiceImpl.cs:line 110 <BR>
<HR Size=1><HR COLOR=red>
异常时间2023-10-08 11:41:48,237 [13] <BR>
异常级别ERROR <BR>
异 常 类logerror [(null)] <BR>
【附加信息】 : 入库通过物料类型获取货道信息异常<br>【异常类型】SqlSugarException <br>【异常信息】:中文提示 : 连接数据库过程中发生错误检查服务器是否正常连接字符串是否正确错误信息Oracle 通信: 无法连接到服务器, 或者无法对连接字符串进行语法分析DbType="Oracle";ConfigId="mes".<br>English Message : Connection open error . Oracle 通信: 无法连接到服务器, 或者无法对连接字符串进行语法分析DbType="Oracle";ConfigId="mes" <br>【堆栈调用】: at SqlSugar.Check.Exception(Boolean isException, String message, String[] args)<br> at SqlSugar.AdoProvider.CheckConnection()<br> at SqlSugar.OracleProvider.GetCommand(String sql, SugarParameter[] parameters)<br> at SqlSugar.AdoProvider.GetDataReader(String sql, SugarParameter[] parameters)<br> at SqlSugar.QueryableProvider`1.GetData[TResult](KeyValuePair`2 sqlObj)<br> at SqlSugar.QueryableProvider`1._ToList[TResult]()<br> at SqlSugar.QueryableProvider`1.ToList()<br> at SqlSugar.SimpleClient`1.GetList(Expression`1 whereExpression)<br> at HighWayIot.Repository.service.Impl.BaseSpaceInfoServiceImpl.InStoreGetSpaceInfoByMaterialType(String store, String materialType) in C:\项目代码\澳柯玛MES项目\Aucma.Scada\HighWayIot.Repository\service\Impl\BaseSpaceInfoServiceImpl.cs:line 37 <BR>
<HR Size=1><HR COLOR=red>
异常时间2023-10-08 11:41:51,206 [4] <BR>
异常级别ERROR <BR>
异 常 类logerror [(null)] <BR>
【附加信息】 : 出库通过物料类型获取货道信息异常<br>【异常类型】SqlSugarException <br>【异常信息】:中文提示 : 连接数据库过程中发生错误检查服务器是否正常连接字符串是否正确错误信息Oracle 通信: 无法连接到服务器, 或者无法对连接字符串进行语法分析DbType="Oracle";ConfigId="mes".<br>English Message : Connection open error . Oracle 通信: 无法连接到服务器, 或者无法对连接字符串进行语法分析DbType="Oracle";ConfigId="mes" <br>【堆栈调用】: at SqlSugar.Check.Exception(Boolean isException, String message, String[] args)<br> at SqlSugar.AdoProvider.CheckConnection()<br> at SqlSugar.OracleProvider.GetCommand(String sql, SugarParameter[] parameters)<br> at SqlSugar.AdoProvider.GetDataReader(String sql, SugarParameter[] parameters)<br> at SqlSugar.QueryableProvider`1.GetData[TResult](KeyValuePair`2 sqlObj)<br> at SqlSugar.QueryableProvider`1._ToList[TResult]()<br> at SqlSugar.QueryableProvider`1.ToList()<br> at SqlSugar.SimpleClient`1.GetList(Expression`1 whereExpression)<br> at HighWayIot.Repository.service.Impl.BaseSpaceInfoServiceImpl.OutStoreGetSpaceInfoByMaterialType(String store, String materialType) in C:\项目代码\澳柯玛MES项目\Aucma.Scada\HighWayIot.Repository\service\Impl\BaseSpaceInfoServiceImpl.cs:line 110 <BR>
<HR Size=1><HR COLOR=red>
异常时间2023-10-08 11:41:51,206 [8] <BR>
异常级别ERROR <BR>
异 常 类logerror [(null)] <BR>
【附加信息】 : 入库通过物料类型获取货道信息异常<br>【异常类型】SqlSugarException <br>【异常信息】:中文提示 : 连接数据库过程中发生错误检查服务器是否正常连接字符串是否正确错误信息Oracle 通信: 无法连接到服务器, 或者无法对连接字符串进行语法分析DbType="Oracle";ConfigId="mes".<br>English Message : Connection open error . Oracle 通信: 无法连接到服务器, 或者无法对连接字符串进行语法分析DbType="Oracle";ConfigId="mes" <br>【堆栈调用】: at SqlSugar.Check.Exception(Boolean isException, String message, String[] args)<br> at SqlSugar.AdoProvider.CheckConnection()<br> at SqlSugar.OracleProvider.GetCommand(String sql, SugarParameter[] parameters)<br> at SqlSugar.AdoProvider.GetDataReader(String sql, SugarParameter[] parameters)<br> at SqlSugar.QueryableProvider`1.GetData[TResult](KeyValuePair`2 sqlObj)<br> at SqlSugar.QueryableProvider`1._ToList[TResult]()<br> at SqlSugar.QueryableProvider`1.ToList()<br> at SqlSugar.SimpleClient`1.GetList(Expression`1 whereExpression)<br> at HighWayIot.Repository.service.Impl.BaseSpaceInfoServiceImpl.InStoreGetSpaceInfoByMaterialType(String store, String materialType) in C:\项目代码\澳柯玛MES项目\Aucma.Scada\HighWayIot.Repository\service\Impl\BaseSpaceInfoServiceImpl.cs:line 37 <BR>
<HR Size=1><HR COLOR=red>
异常时间2023-10-08 14:13:15,019 [1] <BR>
异常级别ERROR <BR>
异 常 类logerror [(null)] <BR>
【附加信息】 : 通过产线工位获取执行顺异常<br>【异常类型】InvalidOperationException <br>【异常信息】Sequence contains no elements <br>【堆栈调用】: at System.Linq.Enumerable.First[TSource](IEnumerable`1 source)<br> at HighWayIot.Repository.service.Impl.ExecutePlanInfoServiceImpl.GetExecuteOrderByProductLineCode(String productLineCode) in C:\项目代码\澳柯玛MES项目\Aucma.Scada\HighWayIot.Repository\service\Impl\ExecutePlanInfoServiceImpl.cs:line 37 <BR>
<HR Size=1><HR COLOR=red>
异常时间2023-10-08 15:05:25,947 [1] <BR>
异常级别ERROR <BR>
异 常 类logerror [(null)] <BR>
【附加信息】 : 通过产线工位获取执行顺异常<br>【异常类型】InvalidOperationException <br>【异常信息】Sequence contains no elements <br>【堆栈调用】: at System.Linq.Enumerable.First[TSource](IEnumerable`1 source)<br> at HighWayIot.Repository.service.Impl.ExecutePlanInfoServiceImpl.GetExecuteOrderByProductLineCode(String productLineCode) in C:\项目代码\澳柯玛MES项目\Aucma.Scada\HighWayIot.Repository\service\Impl\ExecutePlanInfoServiceImpl.cs:line 37 <BR>
<HR Size=1><HR COLOR=red>
异常时间2023-10-08 15:22:18,581 [4] <BR>
异常级别ERROR <BR>
异 常 类logerror [(null)] <BR>
【附加信息】 : 获取BOM集合异常<br>【异常类型】SqlSugarException <br>【异常信息】ConfigId was not found aucma_mes <br>【堆栈调用】: at SqlSugar.Check.Exception(Boolean isException, String message, String[] args)<br> at CallSite.Target(Closure , CallSite , Type , Boolean , String , Object )<br> at System.Dynamic.UpdateDelegates.UpdateAndExecuteVoid4[T0,T1,T2,T3](CallSite site, T0 arg0, T1 arg1, T2 arg2, T3 arg3)<br> at SqlSugar.SqlSugarClient.GetConnection(Object configId)<br> at SqlSugar.SqlSugarClient.GetConnectionScope(Object configId)<br> at SqlSugar.SqlSugarScope.GetConnectionScope(Object configId)<br> at System.Dynamic.UpdateDelegates.UpdateAndExecute2[T0,T1,TRet](CallSite site, T0 arg0, T1 arg1)<br> at HighWayIot.Repository.Repository`1..ctor(Object configId) in C:\项目代码\澳柯玛MES项目\Aucma.Scada\HighWayIot.Repository\Repository.cs:line 18<br> at HighWayIot.Repository.service.Impl.BaseBomInfoServiceImpl.get__bomInfoRepository() in C:\项目代码\澳柯玛MES项目\Aucma.Scada\HighWayIot.Repository\service\Impl\BaseBomInfoServiceImpl.cs:line 13<br> at HighWayIot.Repository.service.Impl.BaseBomInfoServiceImpl.GetChildenByParentId(String parentId) in C:\项目代码\澳柯玛MES项目\Aucma.Scada\HighWayIot.Repository\service\Impl\BaseBomInfoServiceImpl.cs:line 51 <BR>
<HR Size=1><HR COLOR=red>
异常时间2023-10-08 15:56:33,458 [4] <BR>
异常级别ERROR <BR>
异 常 类logerror [(null)] <BR>
【附加信息】 : 获取BOM集合异常<br>【异常类型】InvalidOperationException <br>【异常信息】Sequence contains no elements <br>【堆栈调用】: at System.Linq.Enumerable.First[TSource](IEnumerable`1 source)<br> at HighWayIot.Repository.service.Impl.BaseBomInfoServiceImpl.GetChildenBomInfoByMaterialCode(String materialCode, String materialType) in C:\项目代码\澳柯玛MES项目\Aucma.Scada\HighWayIot.Repository\service\Impl\BaseBomInfoServiceImpl.cs:line 38 <BR>
<HR Size=1><HR COLOR=red>
异常时间2023-10-08 15:57:55,954 [4] <BR>
异常级别ERROR <BR>
异 常 类logerror [(null)] <BR>
【附加信息】 : 获取BOM集合异常<br>【异常类型】InvalidOperationException <br>【异常信息】Sequence contains no elements <br>【堆栈调用】: at System.Linq.Enumerable.First[TSource](IEnumerable`1 source)<br> at HighWayIot.Repository.service.Impl.BaseBomInfoServiceImpl.GetChildenBomInfoByMaterialCode(String materialCode, String materialType) in C:\项目代码\澳柯玛MES项目\Aucma.Scada\HighWayIot.Repository\service\Impl\BaseBomInfoServiceImpl.cs:line 38 <BR>
<HR Size=1><HR COLOR=red>
异常时间2023-10-08 17:37:11,279 [1] <BR>
异常级别ERROR <BR>
异 常 类logerror [(null)] <BR>
【附加信息】 : 通过产线工位获取执行顺异常<br>【异常类型】InvalidOperationException <br>【异常信息】Sequence contains no elements <br>【堆栈调用】: at System.Linq.Enumerable.First[TSource](IEnumerable`1 source)<br> at HighWayIot.Repository.service.Impl.ExecutePlanInfoServiceImpl.GetExecuteOrderByProductLineCode(String productLineCode) in C:\项目代码\澳柯玛MES项目\Aucma.Scada\HighWayIot.Repository\service\Impl\ExecutePlanInfoServiceImpl.cs:line 37 <BR>
<HR Size=1><HR COLOR=red>
异常时间2023-10-08 17:39:06,956 [1] <BR>
异常级别ERROR <BR>
异 常 类logerror [(null)] <BR>
【附加信息】 : 通过产线工位获取执行顺异常<br>【异常类型】InvalidOperationException <br>【异常信息】Sequence contains no elements <br>【堆栈调用】: at System.Linq.Enumerable.First[TSource](IEnumerable`1 source)<br> at HighWayIot.Repository.service.Impl.ExecutePlanInfoServiceImpl.GetExecuteOrderByProductLineCode(String productLineCode) in C:\项目代码\澳柯玛MES项目\Aucma.Scada\HighWayIot.Repository\service\Impl\ExecutePlanInfoServiceImpl.cs:line 37 <BR>
<HR Size=1>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -1,5 +1,17 @@
[system]
mesConnStr=Data Source=175.27.215.92/helowin;User ID=aucma_mes;Password=aucma
scadaConnStr=Data Source=175.27.215.92/helowin;User ID=aucma_scada;Password=aucma
shellStoreCode=X-001
stationCode=HN001
#组装工位编号
stationCode=ZZ-01
#箱壳库编号
shellStoreCode=XKJCK-001
#内胆库编号
linerStoreCode=NDJCK-001
#箱壳物料类型编号查询BOM
shellMaterialType=3
#内胆物料类型编号查询BOM
linerMaterialType=4
#入库任务类型编号
instoreTaskType=1
#出库任务类型编号
outstoreTaskType=2

@ -1,4 +1,4 @@

C:\项目代码\澳柯玛MES项目\Aucma.Scada\Aucma.Scada.UI\obj\Debug\GeneratedInternalTypeHelper.g.cs
FC:\项目代码\澳柯玛MES项目\Aucma.Scada\Aucma.Scada.UI\App.xaml;;
FC:\项目代码\澳柯玛MES项目\Aucma.Scada\Aucma.Scada.UI\Page\AssemblyPlan\AssemblyPlanControl.xaml;;
FC:\项目代码\澳柯玛MES项目\Aucma.Scada\Aucma.Scada.UI\Page\AssemblyPlan\PlanInfoEditWindow.xaml;;

@ -1,62 +1,2 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace XamlGeneratedNamespace {
/// <summary>
/// GeneratedInternalTypeHelper
/// </summary>
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public sealed class GeneratedInternalTypeHelper : System.Windows.Markup.InternalTypeHelper {
/// <summary>
/// CreateInstance
/// </summary>
protected override object CreateInstance(System.Type type, System.Globalization.CultureInfo culture) {
return System.Activator.CreateInstance(type, ((System.Reflection.BindingFlags.Public | System.Reflection.BindingFlags.NonPublic)
| (System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.CreateInstance)), null, null, culture);
}
/// <summary>
/// GetPropertyValue
/// </summary>
protected override object GetPropertyValue(System.Reflection.PropertyInfo propertyInfo, object target, System.Globalization.CultureInfo culture) {
return propertyInfo.GetValue(target, System.Reflection.BindingFlags.Default, null, null, culture);
}
/// <summary>
/// SetPropertyValue
/// </summary>
protected override void SetPropertyValue(System.Reflection.PropertyInfo propertyInfo, object target, object value, System.Globalization.CultureInfo culture) {
propertyInfo.SetValue(target, value, System.Reflection.BindingFlags.Default, null, null, culture);
}
/// <summary>
/// CreateDelegate
/// </summary>
protected override System.Delegate CreateDelegate(System.Type delegateType, object target, string handler) {
return ((System.Delegate)(target.GetType().InvokeMember("_CreateDelegate", (System.Reflection.BindingFlags.InvokeMethod
| (System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance)), null, target, new object[] {
delegateType,
handler}, null)));
}
/// <summary>
/// AddEventHandler
/// </summary>
protected override void AddEventHandler(System.Reflection.EventInfo eventInfo, object target, System.Delegate handler) {
eventInfo.AddEventHandler(target, handler);
}
}
}


@ -1,4 +1,4 @@
#pragma checksum "..\..\..\..\Page\AssemblyPlan\AssemblyPlanControl.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "508B2129AE6DEF2AF92CE7A0DFF47A7014F9C2BB8B0B2CB41F645E5E3D9F4011"
#pragma checksum "..\..\..\..\Page\AssemblyPlan\AssemblyPlanControl.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "CB424BB5A432D0CD7DB5A57BB1F8F035C55B21DD87C2F724DCAF77FD7153744E"
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.

@ -1,4 +1,4 @@
#pragma checksum "..\..\..\..\Page\AssemblyPlan\AssemblyPlanControl.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "508B2129AE6DEF2AF92CE7A0DFF47A7014F9C2BB8B0B2CB41F645E5E3D9F4011"
#pragma checksum "..\..\..\..\Page\AssemblyPlan\AssemblyPlanControl.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "CB424BB5A432D0CD7DB5A57BB1F8F035C55B21DD87C2F724DCAF77FD7153744E"
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.

@ -1,4 +1,4 @@
#pragma checksum "..\..\..\..\Page\AssemblyPlan\PlanInfoEditWindow.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "1A10F52682C62F8D07BB40A03553E908EE5020D192D3D0965B06D521534C06F7"
#pragma checksum "..\..\..\..\Page\AssemblyPlan\PlanInfoEditWindow.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "479BD801257556B8B8B923709C49923E176269540CBC6E8A5FD72600F0AF08EB"
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
@ -41,7 +41,7 @@ namespace Aucma.Scada.UI.Page.AssemblyPlan {
public partial class PlanInfoEditWindow : System.Windows.Window, System.Windows.Markup.IComponentConnector {
#line 21 "..\..\..\..\Page\AssemblyPlan\PlanInfoEditWindow.xaml"
#line 38 "..\..\..\..\Page\AssemblyPlan\PlanInfoEditWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.DataGrid dataGrid;
@ -81,7 +81,7 @@ namespace Aucma.Scada.UI.Page.AssemblyPlan {
case 1:
this.dataGrid = ((System.Windows.Controls.DataGrid)(target));
#line 26 "..\..\..\..\Page\AssemblyPlan\PlanInfoEditWindow.xaml"
#line 43 "..\..\..\..\Page\AssemblyPlan\PlanInfoEditWindow.xaml"
this.dataGrid.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.dataGrid_MouseLeftButtonDown);
#line default

@ -1,4 +1,4 @@
#pragma checksum "..\..\..\..\Page\AssemblyPlan\PlanInfoEditWindow.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "1A10F52682C62F8D07BB40A03553E908EE5020D192D3D0965B06D521534C06F7"
#pragma checksum "..\..\..\..\Page\AssemblyPlan\PlanInfoEditWindow.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "479BD801257556B8B8B923709C49923E176269540CBC6E8A5FD72600F0AF08EB"
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
@ -41,7 +41,7 @@ namespace Aucma.Scada.UI.Page.AssemblyPlan {
public partial class PlanInfoEditWindow : System.Windows.Window, System.Windows.Markup.IComponentConnector {
#line 21 "..\..\..\..\Page\AssemblyPlan\PlanInfoEditWindow.xaml"
#line 38 "..\..\..\..\Page\AssemblyPlan\PlanInfoEditWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.DataGrid dataGrid;
@ -81,7 +81,7 @@ namespace Aucma.Scada.UI.Page.AssemblyPlan {
case 1:
this.dataGrid = ((System.Windows.Controls.DataGrid)(target));
#line 26 "..\..\..\..\Page\AssemblyPlan\PlanInfoEditWindow.xaml"
#line 43 "..\..\..\..\Page\AssemblyPlan\PlanInfoEditWindow.xaml"
this.dataGrid.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.dataGrid_MouseLeftButtonDown);
#line default

@ -1,4 +1,4 @@
#pragma checksum "..\..\..\..\Page\InStoreInfo\InStoreInfoControl.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "C4AF904824B44F8E81F61C7C32F2174C8EEA065992AD36C97A0ADCFD57EDA636"
#pragma checksum "..\..\..\..\Page\InStoreInfo\InStoreInfoControl.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "3E8DCF182051F470D929AE86EB7AFB158BEEAD510E26D08E064F9503D8A5264A"
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.

@ -1,4 +1,4 @@
#pragma checksum "..\..\..\..\Page\InStoreInfo\InStoreInfoControl.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "C4AF904824B44F8E81F61C7C32F2174C8EEA065992AD36C97A0ADCFD57EDA636"
#pragma checksum "..\..\..\..\Page\InStoreInfo\InStoreInfoControl.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "3E8DCF182051F470D929AE86EB7AFB158BEEAD510E26D08E064F9503D8A5264A"
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.

@ -1,4 +1,4 @@
#pragma checksum "..\..\..\..\Page\OutStoreInfo\OutStoreInfoControl.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "8E5A5E25D32C215E225442DF8783AA2D951B5D404CEF9714C58ED9357091B25B"
#pragma checksum "..\..\..\..\Page\OutStoreInfo\OutStoreInfoControl.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "5FB9446BF266699C482F4CB29F1DD1EFAEF960A12D9CD35EEED9A6A7F54C5669"
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
@ -49,7 +49,7 @@ namespace Aucma.Scada.UI.Page.OutStoreInfo {
#line hidden
#line 133 "..\..\..\..\Page\OutStoreInfo\OutStoreInfoControl.xaml"
#line 156 "..\..\..\..\Page\OutStoreInfo\OutStoreInfoControl.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.DataGrid DG;

@ -1,4 +1,4 @@
#pragma checksum "..\..\..\..\Page\OutStoreInfo\OutStoreInfoControl.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "8E5A5E25D32C215E225442DF8783AA2D951B5D404CEF9714C58ED9357091B25B"
#pragma checksum "..\..\..\..\Page\OutStoreInfo\OutStoreInfoControl.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "5FB9446BF266699C482F4CB29F1DD1EFAEF960A12D9CD35EEED9A6A7F54C5669"
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
@ -49,7 +49,7 @@ namespace Aucma.Scada.UI.Page.OutStoreInfo {
#line hidden
#line 133 "..\..\..\..\Page\OutStoreInfo\OutStoreInfoControl.xaml"
#line 156 "..\..\..\..\Page\OutStoreInfo\OutStoreInfoControl.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.DataGrid DG;

@ -39,7 +39,7 @@ namespace Aucma.Scada.UI.viewModel.AssemblyPlan
productModel = "SC232";
beginTime = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
Query();
assemblyPlanBusiness.RefreshExecutePlanInfoEvent += RefreshDataGrid;
Init();
}
@ -98,9 +98,9 @@ namespace Aucma.Scada.UI.viewModel.AssemblyPlan
/// <summary>
/// 计划列表DataGrid
/// </summary>
private ObservableCollection<SysUserInfo> planInfoDataGrid;
private ObservableCollection<ExecutePlanInfo> planInfoDataGrid;
public ObservableCollection<SysUserInfo> PlanInfoDataGrid
public ObservableCollection<ExecutePlanInfo> PlanInfoDataGrid
{
get { return planInfoDataGrid; }
set { planInfoDataGrid = value; RaisePropertyChanged(() => PlanInfoDataGrid); }
@ -179,15 +179,12 @@ namespace Aucma.Scada.UI.viewModel.AssemblyPlan
/// <summary>
/// 箱壳入库任务列表查询
/// </summary>
public void Query()
public void RefreshDataGrid(List<ExecutePlanInfo> executePlanInfos)
{
var models = sysUserInfoService.GetUserInfos();
PlanInfoDataGrid = new ObservableCollection<SysUserInfo>();
if (models != null)
PlanInfoDataGrid = new ObservableCollection<ExecutePlanInfo>();
if (executePlanInfos != null)
{
models.ForEach(
executePlanInfos.ForEach(
arg =>
{
PlanInfoDataGrid.Add(arg);
@ -195,28 +192,54 @@ namespace Aucma.Scada.UI.viewModel.AssemblyPlan
}
}
/// <summary>
/// 计划上移
/// </summary>
/// <param name="obj"></param>
public void MoveUp(object obj)
{
string info = obj as string;
MessageBox.Show("上移:" + info);
assemblyPlanBusiness.ExecutePlanInfo_MoveUp(planInfoDataGrid.ToList(), info);
}
/// <summary>
/// 计划下移
/// </summary>
/// <param name="obj"></param>
public void MoveDown(object obj)
{
string info = obj as string;
MessageBox.Show("下移:" + info);
assemblyPlanBusiness.ExecutePlanInfo_MoveDown(planInfoDataGrid.ToList(), info);
}
/// <summary>
/// 删除计划
/// </summary>
/// <param name="obj"></param>
public void DeletePlan(object obj)
{
string info = obj as string;
MessageBox.Show("删除:" + info);
bool result = assemblyPlanBusiness.ExecutePlanInfo_Delete(info);
if (result)
{
MessageBox.Show("执行计划删除成功");
}
else
{
MessageBox.Show("执行计划删除失败");
}
}
/// <summary>
/// 下传计划
/// </summary>
/// <param name="obj"></param>
public void NextPass(object obj)
{
string info = obj as string;
MessageBox.Show("下传:" + info);
assemblyPlanBusiness.ExecutePlanInfo_NextPass(info);
MessageBox.Show("执行计划已下达");
}
/// <summary>
@ -224,6 +247,9 @@ namespace Aucma.Scada.UI.viewModel.AssemblyPlan
/// </summary>
public void Init()
{
RefreshDataGrid(assemblyPlanBusiness.GetEexecutePlanInfosByProductLineCode());
MaterialNameList = new List<string>()
{
"SC232",

@ -1,4 +1,5 @@
using GalaSoft.MvvmLight;
using Aucma.Scada.Business;
using GalaSoft.MvvmLight;
using GalaSoft.MvvmLight.Command;
using HighWayIot.Repository.domain;
using HighWayIot.Repository.service;
@ -20,6 +21,7 @@ namespace Aucma.Scada.UI.viewModel.AssemblyPlan
private ISysUserInfoService sysUserInfoService = new SysUserInfoServiceImpl();
private AssemblyPlanBusiness assemblyPlanBusiness = AssemblyPlanBusiness.Instance;
public PlanInfoEditViewModel()
{
@ -59,8 +61,8 @@ namespace Aucma.Scada.UI.viewModel.AssemblyPlan
set { _TransmitAmount = value; RaisePropertyChanged(nameof(TransmitAmount)); }
}
private SysUserInfo selectedDataItem;
public SysUserInfo SelectedDataItem
private ProductPlanInfo selectedDataItem;
public ProductPlanInfo SelectedDataItem
{
get { return selectedDataItem; }
set
@ -75,9 +77,9 @@ namespace Aucma.Scada.UI.viewModel.AssemblyPlan
/// <summary>
/// 计划列表DataGrid
/// </summary>
private ObservableCollection<SysUserInfo> planInfoDataGrid;
private ObservableCollection<ProductPlanInfo> planInfoDataGrid;
public ObservableCollection<SysUserInfo> PlanInfoDataGrid
public ObservableCollection<ProductPlanInfo> PlanInfoDataGrid
{
get { return planInfoDataGrid; }
set { planInfoDataGrid = value; RaisePropertyChanged(() => PlanInfoDataGrid); }
@ -99,9 +101,9 @@ namespace Aucma.Scada.UI.viewModel.AssemblyPlan
public void Query()
{
var models = sysUserInfoService.GetUserInfos();
var models = assemblyPlanBusiness.GetProductPlanInfosByProductLineCode();
PlanInfoDataGrid = new ObservableCollection<SysUserInfo>();
PlanInfoDataGrid = new ObservableCollection<ProductPlanInfo>();
if (models != null)
{
models.ForEach(
@ -114,16 +116,19 @@ namespace Aucma.Scada.UI.viewModel.AssemblyPlan
private void PlanInfoTransmit()
{
MessageBox.Show($"生产计划编号{_ProductPlanCode}物料编号{_MaterialCode}下达数量{_TransmitAmount}");
bool result = assemblyPlanBusiness.PlanTransmitByProductPlan(_ProductPlanCode, _TransmitAmount);
if (result)
{
MessageBox.Show("执行计划维护成功");
}
}
public void MouseClick(object obj)
{
TransmitAmount = 0;
var info = SelectedDataItem as SysUserInfo;
ProductPlanCode = info.userId.ToString();
MaterialCode = info.userName;
var info = SelectedDataItem as ProductPlanInfo;
ProductPlanCode = info.planCode;
MaterialCode = info.materialName;
}
}
}

@ -11,6 +11,7 @@ using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
namespace Aucma.Scada.UI.viewModel.OutStoreInfo
{
@ -28,6 +29,12 @@ namespace Aucma.Scada.UI.viewModel.OutStoreInfo
outStoreBusiness.RefreshOutStoreTaskEvent += RefreshOutStoreTask;
outStoreBusiness.RefreshScanMateriaCodeEvent += RefreshScanInfo;
outStoreBusiness.RefreshLogMessageEvent += PrintMessageToListBox;
QueryCommand = new RelayCommand(Query);
ResetCommand = new RelayCommand(Reset);
DeleteTaskInfoCommand = new RelayCommand<object>(obj => DeleteTaskInfo(obj));
this.Query();
}
@ -114,10 +121,59 @@ namespace Aucma.Scada.UI.viewModel.OutStoreInfo
set { instoreTask = value; RaisePropertyChanged(() => InstoreTask); }
}
/// <summary>
/// 查询条件-任务编号
/// </summary>
private string taskCodeSearch = string.Empty;
public string TaskCodeSearch
{
get { return taskCodeSearch; }
set { taskCodeSearch = value; RaisePropertyChanged(nameof(TaskCodeSearch)); }
}
private string materialCodeSearch = string.Empty;
/// <summary>
/// 查询条件-物料编号
/// </summary>
public string MaterialCodeSearch
{
get { return materialCodeSearch; }
set { materialCodeSearch = value; RaisePropertyChanged(nameof(MaterialCodeSearch)); }
}
/// <summary>
/// 查询条件-计划编号
/// </summary>
private string planCodeSearch = string.Empty;
public string PlanCodeSearch
{
get { return planCodeSearch; }
set { planCodeSearch = value; RaisePropertyChanged(nameof(PlanCodeSearch)); }
}
#endregion
#region 事件定义
/// <summary>
/// 查询事件
/// </summary>
public RelayCommand QueryCommand { get; set; }
/// <summary>
/// 重置
/// </summary>
public RelayCommand ResetCommand { get; set; }
/// <summary>
/// 删除
/// </summary>
public RelayCommand<object> DeleteTaskInfoCommand { get; set; }
#endregion
/// <summary>
@ -181,5 +237,80 @@ namespace Aucma.Scada.UI.viewModel.OutStoreInfo
LinerSpaceName = spaceName;
}
}
/// <summary>
/// 初始化
/// </summary>
private void Query()
{
try
{
var info = outStoreBusiness.GetOutStoreTask();
if(info != null)
{
if (!string.IsNullOrEmpty(taskCodeSearch))
{
info = info.Where(x => x.taskCode.Contains(taskCodeSearch)).ToList();
}
else if (!string.IsNullOrEmpty(materialCodeSearch))
{
info = info.Where(x => x.materialCode.Contains(materialCodeSearch)).ToList();
}
else if (!string.IsNullOrEmpty(planCodeSearch))
{
info = info.Where(x => x.planCode.Contains(planCodeSearch)).ToList();
}
App.Current.Dispatcher.Invoke((Action)(() =>
{
taskItems = new ObservableCollection<RealTaskInfo>();
foreach (var item in info)
{
taskItems.Add(item);
}
InstoreTask = taskItems.OrderBy(x=>x.createTime);
}));
}
}
catch (Exception ex)
{
logHelper.Error("OutStoreViewModel初始化异常", ex);
}
}
/// <summary>
/// 重置
/// </summary>
private void Reset()
{
this.TaskCodeSearch = string.Empty;
this.MaterialCodeSearch = string.Empty;
this.PlanCodeSearch = string.Empty;
this.Query();
}
/// <summary>
/// 删除任务
/// </summary>
/// <param name="obj"></param>
private void DeleteTaskInfo(object obj)
{
string taskCode = obj as string;
if (outStoreBusiness.DeleteTaskInfoByTaskCode(taskCode))
{
MessageBox.Show("任务删除成功");
Query();
}
else
{
MessageBox.Show("任务删除失败");
}
}
}
}

@ -25,11 +25,7 @@ namespace HighWayIot.Config
private AppConfig()
{
mesConnStr = "Data Source=175.27.215.92/helowin;User ID=aucma_mes;Password=aucma";
scadaConnStr = "Data Source=175.27.215.92/helowin;User ID=aucma_scada;Password=aucma";
shellStoreCode = "X-001";
}
public string mesConnStr
@ -70,5 +66,41 @@ namespace HighWayIot.Config
get { return iniHelper.IniReadValue("system", "linerStoreCode"); }
set { iniHelper.IniWriteValue("system", "linerStoreCode", value); }
}
/// <summary>
/// 箱壳物料类型编号
/// </summary>
public string shellMaterialType
{
get { return iniHelper.IniReadValue("system", "shellMaterialType"); }
set { iniHelper.IniWriteValue("system", "shellMaterialType", value); }
}
/// <summary>
/// 内胆物料类型编号
/// </summary>
public string linerMaterialType
{
get { return iniHelper.IniReadValue("system", "linerMaterialType"); }
set { iniHelper.IniWriteValue("system", "linerMaterialType", value); }
}
/// <summary>
/// 入库任务类型编号
/// </summary>
public int instoreTaskType
{
get { return Convert.ToInt32(iniHelper.IniReadValue("system", "instoreTaskType")); }
set { iniHelper.IniWriteValue("system", "instoreTaskType", value.ToString()); }
}
/// <summary>
/// 出库任务类型编号
/// </summary>
public int outstoreTaskType
{
get { return Convert.ToInt32(iniHelper.IniReadValue("system", "outstoreTaskType")); }
set { iniHelper.IniWriteValue("system", "outstoreTaskType", value.ToString()); }
}
}
}

@ -50,7 +50,7 @@ namespace HighWayIot.Repository.domain
/// 父级编号
/// </summary>
[SugarColumn(ColumnName = "PARENT_ID")]
public int parentId { get; set; }
public string parentId { get; set; }
/// <summary>
/// 工厂编号
@ -61,7 +61,7 @@ namespace HighWayIot.Repository.domain
/// <summary>
/// 产线/工位
/// </summary>
[SugarColumn(ColumnName = "PRODUCTLINE_CODE")]
[SugarColumn(ColumnName = "PRODUCT_LINE_CODE")]
public string productLineCode { get; set; }
/// <summary>

@ -58,6 +58,12 @@ namespace HighWayIot.Repository.domain
[SugarColumn(ColumnName = "SPACE_CODE")]
public string spaceCode { get; set; }
/// <summary>
/// 货道名称
/// </summary>
[SugarColumn(ColumnName = "SPACE_NAME")]
public string spaceName { get; set; }
/// <summary>
/// 计划数量
/// </summary>

@ -10,5 +10,13 @@ namespace HighWayIot.Repository.service
public interface IBaseBomInfoService
{
List<BaseBomInfo> GetBomInfos();
/// <summary>
/// 根据成品物料码获取自己BOM信息
/// </summary>
/// <param name="materialCode"></param>
/// <param name="materialType"></param>
/// <returns></returns>
BaseBomInfo GetChildenBomInfoByMaterialCode(string materialCode, string materialType);
}
}

@ -27,7 +27,7 @@ namespace HighWayIot.Repository.service
/// <param name="store"></param>
/// <param name="materialType"></param>
/// <returns></returns>
BaseSpaceInfo OutStoreGetSpaceInfoByMaterialType(string store, string materialType);
BaseSpaceInfo OutStoreGetSpaceInfoByMaterialCode(string store, string materialCode);
/// <summary>
/// 通过货道编号获取货道信息

@ -30,6 +30,13 @@ namespace HighWayIot.Repository.service
/// <returns></returns>
ExecutePlanInfo GetExecutePlanInfoByPlanCode(string executePlanCode);
/// <summary>
/// 通过产线工位获取执行顺序(默认+1
/// </summary>
/// <param name="productLineCode"></param>
/// <returns></returns>
int GetExecuteOrderByProductLineCode(string productLineCode);
/// <summary>
/// 新增执行计划
/// </summary>
@ -43,5 +50,19 @@ namespace HighWayIot.Repository.service
/// <param name="executePlanInfo"></param>
/// <returns></returns>
bool UpdateExecutePlanInfo(ExecutePlanInfo executePlanInfo);
/// <summary>
/// 批量修改执行计划
/// </summary>
/// <param name="executePlanInfos"></param>
/// <returns></returns>
bool UpdateRangeExecutePlanInfo(List<ExecutePlanInfo> executePlanInfos);
/// <summary>
/// 根据执行计划编号删除执行计划
/// </summary>
/// <param name="executePlanCode"></param>
/// <returns></returns>
bool DeleteExecutePlanInfoByPlanCode(string executePlanCode);
}
}

@ -27,7 +27,7 @@ namespace HighWayIot.Repository.service
/// 删除任务信息
/// </summary>
/// <param name="taskInfo"></param>
void DeleteTaskInfo(string taskCode);
bool DeleteTaskInfo(string taskCode);
/// <summary>
/// 通过任务编号更新任务状态
@ -42,7 +42,7 @@ namespace HighWayIot.Repository.service
/// </summary>
/// <param name="storeCode"></param>
/// <returns></returns>
RealTaskInfo GetTaskInfoByStoreCode(string storeCode);
RealTaskInfo GetTaskInfoByStoreCode(string storeCode, int taskType);
/// <summary>
/// 通过任务号获取任务信息
@ -50,5 +50,14 @@ namespace HighWayIot.Repository.service
/// <param name="taskCode"></param>
/// <returns></returns>
RealTaskInfo GetTaskInfoByTaskCode(string taskCode);
/// <summary>
/// 通过仓库编号获取任务
/// </summary>
/// <param name="storeCode"></param>
/// <param name="taskType"></param>
/// <returns></returns>
List<RealTaskInfo> GetTaskInfosByStoreCode(string[] storeCode,int taskType);
}
}

@ -10,7 +10,7 @@ namespace HighWayIot.Repository.service.Impl
{
public class BaseBomInfoServiceImpl:IBaseBomInfoService
{
Repository<BaseBomInfo> _bomInfoRepository => new Repository<BaseBomInfo>("aucma_mes");
Repository<BaseBomInfo> _bomInfoRepository => new Repository<BaseBomInfo>("mes");
private LogHelper logHelper = LogHelper.Instance;
@ -26,5 +26,49 @@ namespace HighWayIot.Repository.service.Impl
return null;
}
}
public BaseBomInfo GetChildenBomInfoByMaterialCode(string materialCode, string materialType)
{
BaseBomInfo bomInfo = null;
try
{
var info = GetChildenByParentId(materialCode);
if(info.Count > 0)
{
bomInfo = info.Where(x => x.materialType == materialType).First();
}
}
catch (Exception ex)
{
logHelper.Error("获取BOM集合异常", ex);
}
return bomInfo;
}
private List<BaseBomInfo> GetChildenByParentId(string parentId, List<BaseBomInfo> result = null)
{
if(result == null)
{
result = new List<BaseBomInfo>();
}
try
{
var info = _bomInfoRepository.GetList(x => x.parentId == parentId);
if (info.Count > 0)
{
foreach (var item in info)
{
result.Add(item);
var childInfos = GetChildenByParentId(item.materialCode,result);
}
}
}
catch (Exception ex)
{
logHelper.Error("获取BOM集合异常", ex);
}
return result;
}
}
}

@ -98,7 +98,7 @@ namespace HighWayIot.Repository.service.Impl
/// <param name="store"></param>
/// <param name="materialType"></param>
/// <returns></returns>
public BaseSpaceInfo OutStoreGetSpaceInfoByMaterialType(string store, string materialType)
public BaseSpaceInfo OutStoreGetSpaceInfoByMaterialCode(string store, string materialType)
{
BaseSpaceInfo spaceInfo = null;
List<BaseSpaceInfo> spaceInfos;

@ -19,6 +19,32 @@ namespace HighWayIot.Repository.service.Impl
private JsonChange jsonChange = JsonChange.Instance;
/// <summary>
/// 通过产线工位获取执行顺序(默认+1
/// </summary>
/// <param name="productLineCode"></param>
/// <returns></returns>
public int GetExecuteOrderByProductLineCode(string productLineCode)
{
int result = 0;
try
{
Expression<Func<ExecutePlanInfo, bool>> exp = s1 => true;
exp = exp.And(x => x.productLineCode == productLineCode);
List<ExecutePlanInfo> planInfos = _mesRepository.GetList(exp);
int order = planInfos.OrderByDescending(x => x.executeOrder).First().executeOrder;
result = order + 1;
}
catch (Exception ex)
{
logHelper.Error("通过产线工位获取执行顺异常", ex);
}
return result;
}
/// <summary>
/// 通过执行计划编号获取执行计划
/// </summary>
@ -121,6 +147,7 @@ namespace HighWayIot.Repository.service.Impl
try
{
result = _mesRepository.Update(executePlanInfo);
}
catch (Exception ex)
{
@ -128,5 +155,47 @@ namespace HighWayIot.Repository.service.Impl
}
return result;
}
/// <summary>
/// 批量修改执行计划
/// </summary>
/// <param name="executePlanInfos"></param>
/// <returns></returns>
public bool UpdateRangeExecutePlanInfo(List<ExecutePlanInfo> executePlanInfos)
{
bool result = false;
try
{
result = _mesRepository.UpdateRange(executePlanInfos);
}
catch (Exception ex)
{
logHelper.Error("修改执行计划异常", ex);
}
return result;
}
/// <summary>
/// 根据执行计划编号删除执行计划
/// </summary>
/// <param name="executePlanCode"></param>
/// <returns></returns>
public bool DeleteExecutePlanInfoByPlanCode(string executePlanCode)
{
bool result = false;
try
{
ExecutePlanInfo planInfo = this.GetExecutePlanInfoByPlanCode(executePlanCode);
result = _mesRepository.Delete(planInfo);
}
catch (Exception ex)
{
logHelper.Error("根据执行计划编号删除执行计划异常", ex);
}
return result;
}
}
}

@ -39,20 +39,22 @@ namespace HighWayIot.Repository.service.Impl
/// 删除任务信息
/// </summary>
/// <param name="taskInfo"></param>
public void DeleteTaskInfo(string taskCode)
public bool DeleteTaskInfo(string taskCode)
{
bool result = false;
try
{
RealTaskInfo taskInfo = GetTaskInfoByTaskCode(taskCode);
if(taskInfo != null)
{
_mesRepository.Delete(taskInfo);
result = _mesRepository.Delete(taskInfo);
}
}
catch (Exception ex)
{
logHelper.Error("删除任务信息异常", ex);
}
return result;
}
/// <summary>
@ -105,12 +107,12 @@ namespace HighWayIot.Repository.service.Impl
/// </summary>
/// <param name="storeCode"></param>
/// <returns></returns>
public RealTaskInfo GetTaskInfoByStoreCode(string storeCode)
public RealTaskInfo GetTaskInfoByStoreCode(string storeCode,int taskType)
{
RealTaskInfo taskInfo = null;
try
{
taskInfo = _mesRepository.GetList(x => x.storeCode == storeCode && x.taskStatus == 1).OrderBy(x=>x.createTime).FirstOrDefault();
taskInfo = _mesRepository.GetList(x => x.storeCode == storeCode && x.taskStatus == 1 && x.taskType == taskType).OrderBy(x=>x.createTime).FirstOrDefault();
}
catch (Exception ex)
{
@ -129,7 +131,7 @@ namespace HighWayIot.Repository.service.Impl
RealTaskInfo taskInfo = null;
try
{
taskInfo = _mesRepository.GetFirst(x => x.storeCode == taskCode);
taskInfo = _mesRepository.GetFirst(x => x.taskCode == taskCode);
}
catch (Exception ex)
{
@ -138,5 +140,25 @@ namespace HighWayIot.Repository.service.Impl
return taskInfo;
}
/// <summary>
/// 通过仓库编号获取任务
/// </summary>
/// <param name="storeCode"></param>
/// <param name="taskType"></param>
/// <returns></returns>
public List<RealTaskInfo> GetTaskInfosByStoreCode(string[] storeCode, int taskType)
{
List<RealTaskInfo> taskInfos = null;
try
{
taskInfos = _mesRepository.GetList(x => storeCode.Contains(x.storeCode) && x.taskType == x.taskType && x.taskStatus != 3 );
}
catch (Exception ex)
{
logHelper.Error("根据任务号获取任务信息异常", ex);
}
return taskInfos;
}
}
}

@ -29,3 +29,4 @@ C:\项目代码\澳柯玛MES项目\Aucma.Scada\HighWayIot.TouchSocket\obj\Debug\
C:\项目代码\澳柯玛MES项目\Aucma.Scada\HighWayIot.TouchSocket\obj\Debug\HighWayIot.TouchSocket.csproj.CopyComplete
C:\项目代码\澳柯玛MES项目\Aucma.Scada\HighWayIot.TouchSocket\obj\Debug\HighWayIot.TouchSocket.dll
C:\项目代码\澳柯玛MES项目\Aucma.Scada\HighWayIot.TouchSocket\obj\Debug\HighWayIot.TouchSocket.pdb
C:\项目代码\澳柯玛MES项目\Aucma.Scada\HighWayIot.TouchSocket\obj\Debug\HighWayIot.TouchSocket.csproj.AssemblyReference.cache

Loading…
Cancel
Save