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.
 
 
 
 

62 lines
1.9 KiB

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Data;
using Stone.Entity;
using Gm_WMS.DataAccess.DataService;
using Stone.Common;
namespace Stone.WinBiz.BasicData
{
public class F_ErrLog : F_Base
{
public F_ErrLog()
{
this.type = "ErrLog";
this.name = "系统设置_预警错误处理";
this.entity = new Entity_t_ErrLog();
}
public override void GetView(DataGridView dgv)
{
base.GetView(dgv);
dgv.Columns["ID"].HeaderText = "ID";
dgv.Columns["OperCode"].HeaderText = "操作者";
dgv.Columns["Msg"].HeaderText = "预警信息";
dgv.Columns["CreateTime"].HeaderText = "创建时间";
dgv.Columns["IsClose"].HeaderText = "是否处理";
}
public override void Checking(DataRow drData, bool isNew)
{
base.Checking(drData, isNew);
}
public override void InputData(DataSet dsData, LocalDBService db)
{
Entity_t_ErrLog t_Input = new Entity_t_ErrLog(db);
DataRow drInput = null;
foreach (DataRow drData in dsData.Tables[0].Rows)
{
drInput = t_Input.Table.NewRow();
drInput["ID"] = drData["ID"].ToString().Trim();
drInput["OperCode"] = drData["操作者"].ToString().Trim();
drInput["Msg"] = drData["预警信息"].ToString().Trim();
drInput["CreateTime"] = drData["创建时间"].ToString().Trim();
drInput["IsClose"] = drData["是否处理"].ToString().Trim();
if (drInput["OperCode"].ToString().Trim() == "")
throw new Exception("代码不能为空!");
t_Input.Add(drInput);
}
}
}
}