change -修改曲线源数据

dep_yangw
frankiecao 11 months ago
commit afa1a62103

@ -1800,7 +1800,6 @@ namespace ProductionSystem.Forms
{
result = 1;
}
middleMyTestResultControls[j].TestResultText = result == 1 ? "OK" : (result == 2 ? "NG" : "");
middleMyTestResultControls[j].TestResultForeColor = Color.White;

@ -0,0 +1,43 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SqlSugar;
namespace ProductionSystem_Model.DbModel
{
/// <summary>
/// 结果表2
/// </summary>
[SugarTable("t_result2")]
public class T_Result2
{
[SugarColumn(ColumnName = "id", IsPrimaryKey = true)]
public string Id { get; set; }
[SugarColumn(ColumnName = "product_type")]
public string ProductType { get; set; }
[SugarColumn(ColumnName = "product_barcode")]
public string ProductBarcode { get; set; }
[SugarColumn(ColumnName = "create_time")]
public DateTime CreateTime { get; set; }
[SugarColumn(ColumnName = "step")]
public string Step { get; set; }
[SugarColumn(ColumnName = "voltage")]
public string Voltage { get; set; }
[SugarColumn(ColumnName = "electricity")]
public string Electricity { get; set; }
[SugarColumn(ColumnName = "xll")]
public string Xll { get; set; }
[SugarColumn(ColumnName = "xllzt")]
public string Xllzt { get; set; }
}
}

@ -115,6 +115,7 @@
<Compile Include="DbModel\T_ProductType.cs" />
<Compile Include="DbModel\T_Product_Step.cs" />
<Compile Include="DbModel\T_Result.cs" />
<Compile Include="DbModel\T_Result2.cs" />
<Compile Include="DbModel\Ux.cs" />
<Compile Include="Enum\ColorEnum.cs" />
<Compile Include="Enum\FrameTypeEnum.cs" />

@ -121,6 +121,7 @@
<Compile Include="ResultService.cs" />
<Compile Include="Singleton.cs" />
<Compile Include="TestStepService.cs" />
<Compile Include="TResult2Service.cs" />
<Compile Include="UserService.cs" />
</ItemGroup>
<ItemGroup>

@ -0,0 +1,32 @@
using ProductionSystem_Log;
using ProductionSystem_Model.DbModel;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ProductionSystem_Service
{
public class TResult2Service : DbContext
{
/// <summary>
/// 新增
/// </summary>
/// <param name="t_Result2"></param>
/// <returns></returns>
public int AddTResult2(T_Result2 t_Result2)
{
try
{
return db.Insertable(t_Result2).ExecuteCommand();
}catch (Exception ex)
{
LogHelper.Error(ex, "执行TResult2Service下AddTResult2时异常");
return -1;
}
}
}
}
Loading…
Cancel
Save