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

31 lines
937 B

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using QMAPP.FJC.Entity.Equipment;
namespace QMAPP.FJC.BLL.Equipment
{
public class AlarmTableBLL
{
public List<AlarmTable> GetAlarmTable()
{
return new DAL.Equipment.AlarmTableDAL().GetAlarmTable();
}
public void SaveAlarm(AlarmTable alarm, DateTime dateTime)
{
AlarmEntity model = new AlarmEntity
{
id = Guid.NewGuid().ToString(),
ALARMCLRTIME = dateTime,
CREATEDATE = dateTime,
ipaddr = "",
alarmdescription = string.Format("{0}\t{1}\t{2}", alarm.ALARM_CODE, alarm.ALARM_TYPE, alarm.ALARM_TEXT),
ALARMGENTIME = dateTime,
MACHINECODE = alarm.EQPT_CODE
};
new DAL.Equipment.AlarmTableDAL().SaveAlarm(model);
}
}
}