private void _helper_DomainObjectToGridRow(object sender, EventArgs e) { MSDWIPExc obj = (e as DomainObjectToGridRowEventArgsNew).DomainObject as MSDWIPExc; DataRow row = this.DtSource.NewRow(); row["Sequence"] = obj.serial.ToString(); row["MaterialLotNo"] = obj.LotNo; row["MCode"] = obj.MCODE; row["Mname"] = obj.MNAME; row["MDesc"] = obj.MDESC; row["Status"] = ChgMSDStatus(obj.Status); row["MaintainUser"] = obj.GetDisplayText("MaintainUser"); row["MaintainDate"] = FormatHelper.ToDateString((obj).MaintainDate); row["MaintainTime"] = FormatHelper.ToTimeString((obj).MaintainTime); (e as DomainObjectToGridRowEventArgsNew).GridRow = row; //new UltraGridRow(new object[]{ // obj.serial.ToString(), // obj.LotNo, // obj.MCODE, // obj.MNAME, // obj.MDESC, // ChgMSDStatus(obj.Status), // obj.GetDisplayText("MaintainUser"), // FormatHelper.ToDateString((obj).MaintainDate), // FormatHelper.ToTimeString((obj).MaintainTime) // } //); }
private void _helper_DomainObjectToExportRow(object sender, EventArgs e) { MSDWIPExc obj = (e as DomainObjectToExportRowEventArgsNew).DomainObject as MSDWIPExc; (e as DomainObjectToExportRowEventArgsNew).ExportRow = new string[] { obj.serial.ToString(), obj.LotNo, obj.MCODE, obj.MNAME, obj.MDESC, ChgMSDStatus(obj.Status), obj.GetDisplayText("MaintainUser"), FormatHelper.ToDateString((obj).MaintainDate), FormatHelper.ToTimeString((obj).MaintainTime) }; }