private void _helper_DomainObjectToGridRow(object sender, EventArgs e) { if ((e as DomainObjectToGridRowEventArgsNew).DomainObject != null) { OQCLot2CardCheckQuery obj = (e as DomainObjectToGridRowEventArgsNew).DomainObject as OQCLot2CardCheckQuery; DataRow row = this.DtSource.NewRow(); row["RCARD"] = obj.RunningCard; row["LOTNO"] = obj.LOTNO; row["CHECKSEQ"] = obj.CheckSequence; row["OQCResult"] = obj.Status; row["ITEMCODE"] = obj.ItemCode; row["MOCODE"] = obj.MOCode; row["BigLine"] = obj.BigStepSequenceCode; row["MaterialModelCode"] = obj.MmodelCode; row["ReworkCode"] = obj.ReworkCode; row["OQCLotType"] = this.languageComponent1.GetString(obj.OQCLotType.ToString()); row["ProductType"] = this.languageComponent1.GetString(obj.ProductionType.ToString()); row["CrewCode"] = obj.CrewCode; row["OQCMUSER"] = obj.OQCUser; row["MaintainDate1"] = FormatHelper.ToDateString(obj.MaintainDate); row["MaintainTime1"] = FormatHelper.ToTimeString(obj.MaintainTime); row["LOTNOSEQ"] = obj.LotSequence; row["RCARDSEQ"] = obj.RunningCardSequence; (e as DomainObjectToGridRowEventArgsNew).GridRow = row; //new UltraGridRow(new object[]{ // obj.RunningCard, // obj.LOTNO, // obj.CheckSequence, // obj.Status, // obj.ItemCode, // obj.MOCode, // obj.BigStepSequenceCode, // obj.MmodelCode, // obj.ReworkCode, // this.languageComponent1.GetString(obj.OQCLotType.ToString()), // this.languageComponent1.GetString(obj.ProductionType.ToString()), // obj.CrewCode, // obj.OQCUser, // FormatHelper.ToDateString(obj.MaintainDate), // FormatHelper.ToTimeString(obj.MaintainTime), // obj.LotSequence, // obj.RunningCardSequence, // "", // "" // } //); } }
private void _helper_DomainObjectToExportRow(object sender, EventArgs e) { if ((e as DomainObjectToExportRowEventArgsNew).DomainObject != null) { OQCLot2CardCheckQuery obj = (OQCLot2CardCheckQuery)((DomainObjectToExportRowEventArgsNew)e).DomainObject; (e as DomainObjectToExportRowEventArgsNew).ExportRow = new string[] { obj.RunningCard, obj.LOTNO, obj.Status, obj.ItemCode, obj.MOCode, obj.BigStepSequenceCode, obj.MmodelCode, obj.ReworkCode, this.languageComponent1.GetString(obj.OQCLotType.ToString()), this.languageComponent1.GetString(obj.ProductionType.ToString()), obj.CrewCode, obj.OQCUser, FormatHelper.ToDateString(obj.MaintainDate), FormatHelper.ToTimeString(obj.MaintainTime) }; } }