private void _helper_DomainObjectToGridRow(object sender, EventArgs e) { if ((e as DomainObjectToGridRowEventArgsNew).DomainObject != null) { QDOKeyparts obj = (e as DomainObjectToGridRowEventArgsNew).DomainObject as QDOKeyparts; DataRow row = DtSource.NewRow(); row["MOCode"] = obj.MoCode; row["ItemCode"] = obj.ItemCode; row["SN"] = obj.SN; row["ComponentLoadingOPCode"] = obj.OperationCode; row["ComponentLoadingStepSequenceCode"] = obj.StepSequenceCode; row["ComponentLoadingResourceCode"] = obj.ResourceCode; row["OBItemCode"] = obj.MItemCode; row["Keyparts"] = obj.INNO; row["EmployeeNo"] = obj.MaintainUser; row["ComponentLoadingDate"] = FormatHelper.ToDateString(obj.MaintainDate); row["ComponentLoadingTime"] = FormatHelper.ToTimeString(obj.MaintainTime); row["KeypartsDetails"] = ""; (e as DomainObjectToGridRowEventArgsNew).GridRow = row; } }
private void _helper_DomainObjectToExportRow(object sender, EventArgs e) { if ((e as DomainObjectToExportRowEventArgsNew).DomainObject != null) { QDOKeyparts obj = (e as DomainObjectToExportRowEventArgsNew).DomainObject as QDOKeyparts; (e as DomainObjectToExportRowEventArgsNew).ExportRow = new string[] { obj.MoCode, obj.ItemCode, obj.SN, obj.OperationCode, obj.StepSequenceCode, obj.ResourceCode, obj.MItemCode, obj.INNO, obj.MaintainUser, FormatHelper.ToDateString(obj.MaintainDate), FormatHelper.ToTimeString(obj.MaintainTime) }; } }
private void _helper_DomainObjectToGridRow(object sender, EventArgs e) { if ((e as DomainObjectToGridRowEventArgs).DomainObject != null) { QDOKeyparts obj = (e as DomainObjectToGridRowEventArgs).DomainObject as QDOKeyparts; (e as DomainObjectToGridRowEventArgs).GridRow = new UltraGridRow(new object[] { obj.MoCode, obj.ItemCode, obj.SN, obj.OperationCode, obj.StepSequenceCode, obj.ResourceCode, obj.MItemCode, obj.MaintainUser, FormatHelper.ToDateString(obj.MaintainDate), FormatHelper.ToTimeString(obj.MaintainTime), obj.INNO, "" } ); } }