private void _helper_DomainObjectToExportRow(object sender, EventArgs e) { if ((e as DomainObjectToExportRowEventArgsNew).DomainObject != null) { TracedMinno obj = (e as DomainObjectToExportRowEventArgsNew).DomainObject as TracedMinno; (e as DomainObjectToExportRowEventArgsNew).ExportRow = new string[] { obj.MOCode, obj.RouteCode, obj.OPCode, obj.INNO, "上料", 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) { TracedMinno obj = (e as DomainObjectToGridRowEventArgsNew).DomainObject as TracedMinno; DataRow row = this.DtSource.NewRow(); row["MOCode"] = obj.MOCode; row["RouteCode"] = obj.RouteCode; row["OPCode"] = obj.OPCode; row["IT_PACKEDNO"] = obj.INNO; 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, // obj.INNO, // (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) // } //); } }