天津投入产出系统后端
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.
 
 
 
 
 
 

42 lines
1.3 KiB

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using QMAPP.FJC.BLL.Process;
using QMAPP.FJC.Entity.Basic;
using QMAPP.FJC.Entity.Operation;
using QMAPP.FJC.DAL.Basic;
namespace EQUIPINTERFACETEST
{
public class MesInsertParameterTest
{
public void Test()
{
MachineInfo mi = new MachineInfo();
MainOperation mo = new MainOperation();
List<ParameterConfig> paraList = new List<ParameterConfig>();
paraList = new ParameterConfigDAL().GetList(new ParameterConfig() { MACHINECODDE = "4CA-WB0003"
,MOLDNUMBER = "WR_REAR" ,COLUMNTYPE = "0"});
//paraList = paraList.Where(o => o.MACHINECODDE == "4A-WD0001" && o.MOLDNUMBER == "SWP1M1" && o.OPERATETYPE == "0").ToList<ParameterConfig>();
foreach (var o in paraList)
{
o.PARAVALUE = "1";
}
mo.PID = Guid.NewGuid().ToString();
mo.PDID = Guid.NewGuid().ToString();
mo.PRODUCTCODE = "xxxxx";
mo.PRODUCTTYPE = "1";
mo.PRODUCTTYPE = "1";
mo.MACHINECODDE = paraList[0].MACHINECODDE;
mo.MACHINENAME = "xxxx";
ParameterDeal deal = new ParameterDeal();
deal.InsertParameter(mo, paraList);
}
}
}