天津投入产出系统后端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

50 lines
1.5 KiB

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using QMAPP.FJC.Entity.ProcessParameter;
using QMAPP.FJC.Entity;
using QMFrameWork.Data;
namespace EQUIPINTERFACETEST
{
public class WeldInserTest
{
public void Test()
{
try
{
HotweldParameter parameter = new HotweldParameter();
parameter.PID = Guid.NewGuid().ToString();
parameter.MOID = Guid.NewGuid().ToString();
parameter.PDID = Guid.NewGuid().ToString();
parameter.PRODUCTTYPE = "9";
parameter.PRODUCTCODE = "15102900732AB2A01";
parameter.MACHINECODDE = "WELDING";
parameter.MACHINENAME = "红外焊接";
parameter.CREATEDATE = System.DateTime.Now;
parameter.WELDINGDISTANCEAIRB = 162;
parameter.WELDINGDISTINCTVERT = 7782;
parameter.WELDINGTIME = 900;
parameter.CHANGEOVERTIME = 8438;
parameter.RESULT = "OK";
parameter.HEATINGTIME = 12500;
parameter.CAMERARESULT = "OFF";
parameter.OPERATETIME = "19:87";
using (IDataSession session = AppDataFactory.CreateMainSession())
{
session.Insert<HotweldParameter>(parameter);
}
}
catch (Exception)
{
throw;
}
}
}
}