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 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); } } }