private void _helper_DomainObjectToGridRow(object sender, EventArgs e) { if ((e as DomainObjectToGridRowEventArgsNew).DomainObject != null) { QDOTSDetails1 obj = (e as DomainObjectToGridRowEventArgsNew).DomainObject as QDOTSDetails1; TSFacade tsFacade = new TSFacade(this.DataProvider); string errorCauseGroupDescription = obj.ErrorCauseGroupCode; object errorCauseGroup = tsFacade.GetErrorCauseGroup(obj.ErrorCauseGroupCode); if (errorCauseGroup != null) { errorCauseGroupDescription = ((ErrorCauseGroup)errorCauseGroup).ErrorCauseGroupDescription; } DataRow row = DtSource.NewRow(); row["ErrorCodeGroup"] = obj.ErrorCodeGroupDescription; row["ErrorCode"] = obj.ErrorCodeDescription; row["ErrorCauseGroupCode"] = errorCauseGroupDescription; row["ErrorCause"] = obj.ErrorCauseDescription; row["ErrorLocation"] = obj.ErrorLocation; row["ErrorComponent"] = obj.ErrorComponent; row["ErrorParts"] = obj.ErrorParts; row["Solution"] = obj.SolutionDescription; row["Duty"] = obj.DutyDescription; row["SolutionMemo"] = obj.Solution; row["Memo"] = obj.Memo; row["TsOperator"] = obj.TSOperator; row["MaintainDate"] = FormatHelper.ToDateString(obj.TSDate); row["MaintainTime"] = FormatHelper.ToTimeString(obj.TSTime); (e as DomainObjectToGridRowEventArgsNew).GridRow = row; } }
protected override DataRow GetGridRow2(object obj) { QDOTSDetails1 tsInfo = obj as QDOTSDetails1; //return new Infragistics.WebUI.UltraWebGrid.UltraGridRow( // new object[]{ // tsInfo.ErrorCodeGroupDescription , // tsInfo.ErrorCodeDescription , // tsInfo.ErrorCauseDescription , // tsInfo.ErrorLocation , // tsInfo.ErrorParts , // tsInfo.SolutionDescription , // tsInfo.DutyDescription , // tsInfo.Memo , // tsInfo.GetDisplayText("TSOperator") , // FormatHelper.ToDateString( tsInfo.TSDate ), // FormatHelper.ToTimeString( tsInfo.TSTime ) // } // ); DataRow row = this.DtSource2.NewRow(); row["IT_ErrorGroup"] = tsInfo.ErrorCodeGroupDescription; row["IT_ErrorCode"] = tsInfo.ErrorCodeDescription; row["IT_ErrorCause"] = tsInfo.ErrorCauseDescription; row["IT_ErrorLocation"] = tsInfo.ErrorLocation; row["IT_ErrorPart"] = tsInfo.ErrorParts; row["IT_Solution"] = tsInfo.SolutionDescription; row["IT_Duty"] = tsInfo.DutyDescription; row["IT_MEMO"] = tsInfo.Memo; row["IT_TSUser"] = tsInfo.GetDisplayText("TSOperator"); row["IT_TSDate"] = FormatHelper.ToDateString(tsInfo.TSDate); row["IT_TSTime"] = FormatHelper.ToTimeString(tsInfo.TSTime); return(row); }
private void _helper_DomainObjectToExportRow(object sender, EventArgs e) { if ((e as DomainObjectToExportRowEventArgsNew).DomainObject != null) { QDOTSDetails1 obj = (e as DomainObjectToExportRowEventArgsNew).DomainObject as QDOTSDetails1; (e as DomainObjectToExportRowEventArgsNew).ExportRow = new string[] { this.lotno, obj.RunningCard, obj.ErrorCodeGroupDescription, obj.ErrorCodeDescription, obj.ErrorCauseGroupCode, obj.ErrorCauseDescription, obj.ErrorLocation, obj.ErrorComponent, obj.ErrorParts, obj.SolutionDescription, obj.DutyDescription, obj.Solution, obj.Memo, obj.TSOperator, FormatHelper.ToDateString(obj.TSDate), FormatHelper.ToTimeString(obj.TSTime) }; } }
private void _helper_DomainObjectToGridRow(object sender, EventArgs e) { if ((e as DomainObjectToGridRowEventArgsNew).DomainObject != null) { QDOTSDetails1 obj = (e as DomainObjectToGridRowEventArgsNew).DomainObject as QDOTSDetails1; DataRow row = DtSource.NewRow(); row["ErrorCodeGroup"] = obj.ErrorCodeGroupDescription; row["ErrorCode"] = obj.ErrorCodeDescription; row["ErrorCause"] = obj.ErrorCauseDescription; row["ErrorLocation"] = obj.ErrorLocation; row["ErrorParts"] = obj.ErrorParts; row["Solution"] = obj.SolutionDescription; row["Duty"] = obj.DutyDescription; row["Memo"] = obj.Memo; row["TsOperator"] = obj.TSOperator; row["MaintainDate"] = FormatHelper.ToDateString(obj.TSDate); row["MaintainTime"] = FormatHelper.ToTimeString(obj.TSTime); (e as DomainObjectToGridRowEventArgsNew).GridRow = row; } }
private void _helper_DomainObjectToExportRow(object sender, EventArgs e) { if ((e as DomainObjectToExportRowEventArgs).DomainObject != null) { QDOTSDetails1 obj = (e as DomainObjectToExportRowEventArgs).DomainObject as QDOTSDetails1; (e as DomainObjectToExportRowEventArgs).ExportRow = new string[] { obj.ErrorCodeGroup, obj.ErrorCode, obj.ErrorCause, obj.Duty, obj.Solution, obj.ErrorLocation, obj.ErrorParts + "-->" + obj.ChangedParts, obj.Memo, obj.TsOperator, FormatHelper.ToDateString(obj.TsDate), FormatHelper.ToTimeString(obj.TsTime) }; } }
private void _helper_DomainObjectToGridRow(object sender, EventArgs e) { if ((e as DomainObjectToGridRowEventArgs).DomainObject != null) { QDOTSDetails1 obj = (e as DomainObjectToGridRowEventArgs).DomainObject as QDOTSDetails1; (e as DomainObjectToGridRowEventArgs).GridRow = new UltraGridRow(new object[] { obj.ErrorCodeGroupDescription, obj.ErrorCodeDescription, obj.ErrorCauseDescription, obj.ErrorLocation, obj.ErrorParts, obj.SolutionDescription, obj.DutyDescription, obj.Memo, obj.TSOperator, FormatHelper.ToDateString(obj.TSDate), FormatHelper.ToTimeString(obj.TSTime) } ); } }
protected override DataRow GetGridRow2(object obj) { QDOTSDetails1 returnObj = obj as QDOTSDetails1; if (returnObj != null) { DataRow row = this.DtSource2.NewRow(); row["ErrorCodeGroup"] = returnObj.ErrorCodeGroupDescription; row["ErrorCode"] = returnObj.ErrorCodeDescription; row["ErrorCause"] = returnObj.ErrorCauseDescription; row["ErrorLocation"] = returnObj.ErrorLocation; row["ErrorParts"] = returnObj.ErrorParts; row["Solution"] = returnObj.SolutionDescription; row["Duty"] = returnObj.DutyDescription; row["Memo"] = returnObj.Memo; row["TsOperator"] = returnObj.TSOperator; row["MaintainDate"] = FormatHelper.ToDateString(returnObj.TSDate); row["MaintainTime"] = FormatHelper.ToTimeString(returnObj.TSTime); return(row); } else { DataRow row = this.DtSource.NewRow(); row["ErrorCodeGroup"] = ""; row["ErrorCode"] = ""; row["ErrorCause"] = ""; row["ErrorLocation"] = ""; row["ErrorParts"] = ""; row["Solution"] = ""; row["Duty"] = ""; row["Memo"] = ""; row["TsOperator"] = ""; row["MaintainDate"] = ""; row["MaintainTime"] = ""; return(row); } }