示例#1
0
        private string[] FormatExportRecord(object obj)
        {
            AlertItem model = (AlertItem)obj;

            return(new string[] {
                model.ItemSequence,
                model.Description.ToString(),
                this.languageComponent1.GetString(model.AlertType),
                model.GetDisplayText("MaintainUser"),
                FormatHelper.ToDateString(model.MaintainDate),
                FormatHelper.ToTimeString(model.MaintainTime)
            });
        }
示例#2
0
        protected DataRow GetGridRow(object obj)
        {
            AlertItem model = (AlertItem)obj;


            DataRow row = this.DtSource.NewRow();

            row["AlertItemSequence"] = model.ItemSequence;
            row["AlertItemDesc"]     = model.Description;
            row["AlertItemType"]     = this.languageComponent1.GetString(model.AlertType);
            row["AlertMaintainUser"] = model.GetDisplayText("MaintainUser");
            row["AlertMaintainDate"] = FormatHelper.ToDateString(model.MaintainDate);
            row["AlertMaintainTime"] = FormatHelper.ToTimeString(model.MaintainTime);
            return(row);
        }