private void _helper_DomainObjectToExportRow(object sender, EventArgs e) { if ((e as DomainObjectToExportRowEventArgsNew).DomainObject != null) { TracedKeyParts obj = (e as DomainObjectToExportRowEventArgsNew).DomainObject as TracedKeyParts; (e as DomainObjectToExportRowEventArgsNew).ExportRow = new string[] { obj.MOCode, obj.RouteCode, obj.OPCode, obj.MCARD, (obj.ActionType == 0)? "上料":"下料", obj.MItemCode, obj.MItemName, obj.VendorCode, obj.VendorItemCode, obj.LotNO, obj.DateCode, obj.Version, obj.PCBA, obj.BIOS, obj.MaintainUser, FormatHelper.ToDateString(obj.MaintainDate), FormatHelper.ToTimeString(obj.MaintainTime) }; } }
private void _helper_DomainObjectToGridRow(object sender, EventArgs e) { if ((e as DomainObjectToGridRowEventArgsNew).DomainObject != null) { TracedKeyParts obj = (e as DomainObjectToGridRowEventArgsNew).DomainObject as TracedKeyParts; DataRow row = this.DtSource.NewRow(); row["MOCode"] = obj.MOCode; row["RouteCode"] = obj.RouteCode; row["OPCode"] = obj.OPCode; row["Keyparts"] = WebQueryHelper.GetItemTracingHtml(obj.MCARD, obj.CanTrace); row["ActionType"] = (obj.ActionType == 0) ? "上料" : "下料"; row["InsideItemCode"] = obj.MItemCode; row["MItemName"] = obj.MItemName; row["VendorCode"] = obj.VendorCode; row["VendorItemCode"] = obj.VendorItemCode; row["LotNo"] = obj.LotNO; row["DateCode"] = obj.DateCode; row["Version"] = obj.Version; row["PCBAVersion"] = obj.PCBA; row["BIOSVersion"] = obj.BIOS; row["IT_MaintainUser1"] = obj.MaintainUser; row["IT_MaintainDate1"] = FormatHelper.ToDateString(obj.MaintainDate); row["IT_MaintainTime1"] = FormatHelper.ToTimeString(obj.MaintainTime); (e as DomainObjectToGridRowEventArgsNew).GridRow = row; // new UltraGridRow( new object[]{ // obj.MOCode, // obj.RouteCode, // obj.OPCode, // WebQueryHelper.GetItemTracingHtml(obj.MCARD,obj.CanTrace), // (obj.ActionType == 0)? "上料":"下料", //// FormatHelper.DisplayBoolean(obj.CanTrace, this.languageComponent1), //// "", // obj.MItemCode, // obj.MItemName, // obj.VendorCode, // obj.VendorItemCode, // obj.LotNO, // obj.DateCode, // obj.Version, // obj.PCBA, // obj.BIOS, // obj.MaintainUser, // FormatHelper.ToDateString(obj.MaintainDate), // FormatHelper.ToTimeString(obj.MaintainTime) // } // ); } }