aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/PPC/Tango.PPC.Common/Web/UploadMachineDataRequest.cs
blob: d7475819c0ea4a5c79614e6754e43f491e79c932 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;
using Tango.BL.DTO;
using Tango.Transport.Web;

namespace Tango.PPC.Common.Web
{
    public class UploadMachineDataRequest : WebRequestMessage
    {
        public List<JobDTO> Jobs { get; set; }
        public List<JobRunDTO> JobRuns { get; set; }
        public List<MachinesEventDTO> MachineEvents { get; set; }
        public List<TangoUpdateDTO> OfflineUpdates { get; set; }
        public String ApplicationVersion { get; set; }
        public String FirmwareVersion { get; set; }

        public UploadMachineDataRequest()
        {
            Jobs = new List<JobDTO>();
            JobRuns = new List<JobRunDTO>();
            MachineEvents = new List<MachinesEventDTO>();
            OfflineUpdates = new List<TangoUpdateDTO>();
        }
    }
}
iew you can see the group as the part of a menu contained between two lines. The parent of a group must be a menu. --> <Groups> <Group guid="guidTangoBuildCommandPackageCmdSet" id="MyMenuGroup" priority="0x0600"> <Parent guid="guidSHLMainMenu" id="IDM_VS_MENU_TOOLS" /> </Group> <Group guid="guidTangoBuildCommandPackageCmdSet" id="DebugGroup" priority="0x0600"> <Parent guid="guidVSDebugGroup" id="IDM_DEBUG_MENU"/> </Group> </Groups> <!--Buttons section. --> <!--This section defines the elements the user can interact with, like a menu command or a button or combo box in a toolbar. --> <Buttons> <!--To define a menu group you have to specify its ID, the parent menu and its display priority. The command is visible and enabled by default. If you need to change the visibility, status, etc, you can use the CommandFlag node. You can add more than one CommandFlag node e.g.: <CommandFlag>DefaultInvisible</CommandFlag> <CommandFlag>DynamicVisibility</CommandFlag> If you do not want an image next to your command, remove the Icon node /> --> <Button guid="guidTangoBuildCommandPackageCmdSet" id="TangoBuildCommandId" priority="0x0100" type="Button"> <Parent guid="guidTangoBuildCommandPackageCmdSet" id="MyMenuGroup" /> <Icon guid="guidMyImages" id="machine" /> <Strings> <ButtonText>Tango Build Engine</ButtonText> </Strings> </Button> <Button guid="guidTangoBuildCommandPackageCmdSet" id="cmdidRemoteDebugCommand" priority="0x0100" type="Button"> <Parent guid="guidTangoBuildCommandPackageCmdSet" id="DebugGroup" /> <Icon guid="play_image_guid" id="play" /> <CommandFlag>DefaultInvisible</CommandFlag> <CommandFlag>DynamicVisibility</CommandFlag> <Strings> <ButtonText>Remote Debug</ButtonText> </Strings> </Button> </Buttons> <!--The bitmaps section is used to define the bitmaps that are used for the commands.--> <Bitmaps> <!-- The bitmap id is defined in a way that is a little bit different from the others: the declaration starts with a guid for the bitmap strip, then there is the resource id of the bitmap strip containing the bitmaps and then there are the numeric ids of the elements used inside a button definition. An important aspect of this declaration is that the element id must be the actual index (1-based) of the bitmap inside the bitmap strip. --> <Bitmap guid="guidImages" href="Resources\TangoBuildCommand.png" usedList="bmpPic1, bmpPic2, bmpPicSearch, bmpPicX, bmpPicArrows, bmpPicStrikethrough" /> <Bitmap guid="guidMyImages" href="Resources\machine-trans-16x16.png" usedList="machine" /> <Bitmap guid="play_image_guid" href="Resources\play-blue.png" usedList="play" /> <Bitmap guid="guidImages1" href="Resources\RemoteDebugCommand.png" usedList="bmpPic1, bmpPic2, bmpPicSearch, bmpPicX, bmpPicArrows, bmpPicStrikethrough" /> </Bitmaps> </Commands> <CommandPlacements> <CommandPlacement guid="guidTangoBuildCommandPackageCmdSet" id="DebugGroup" priority="0x600"> <Parent guid="guidSHLMainMenu" id="IDM_VS_MENU_DEBUG"/> </CommandPlacement> <CommandPlacement guid="guidTangoBuildCommandPackageCmdSet" id="cmdidRemoteDebugCommand" priority="0x600"> <Parent guid="guidSHLMainMenu" id="IDM_VS_MENU_DEBUG"/> </CommandPlacement> </CommandPlacements> <Symbols> <!-- This is the package guid. --> <GuidSymbol name="guidTangoBuildCommandPackage" value="{f911efc8-1a59-4b5f-953d-d715ddd70710}" /> <!-- This is the guid used to group the menu commands together --> <GuidSymbol name="guidTangoBuildCommandPackageCmdSet" value="{c03a7b01-8109-4ec5-8f90-858bed027e5d}"> <IDSymbol name="MyMenuGroup" value="0x1020" /> <IDSymbol name="TangoBuildCommandId" value="0x0100" /> <IDSymbol name="DebugGroup" value="0x2020" /> <IDSymbol name="cmdidRemoteDebugCommand" value="4129" /> </GuidSymbol> <GuidSymbol name="guidMyImages" value="{d52f5c81-cc63-4c7c-8513-231caf50db11}"> <IDSymbol name="machine" value="1" /> </GuidSymbol> <GuidSymbol name="play_image_guid" value="{d52f5c81-cc63-4c7c-8513-231caf50d101}"> <IDSymbol name="play" value="1" /> </GuidSymbol> <GuidSymbol name="guidImages" value="{735a16c4-95ad-41f9-9342-ac321265d383}"> <IDSymbol name="bmpPic1" value="1" /> <IDSymbol name="bmpPic2" value="2" /> <IDSymbol name="bmpPicSearch" value="3" /> <IDSymbol name="bmpPicX" value="4" /> <IDSymbol name="bmpPicArrows" value="5" /> <IDSymbol name="bmpPicStrikethrough" value="6" /> </GuidSymbol> <GuidSymbol value="{aac52784-fa61-4a71-8649-e9b1d5f25c07}" name="guidImages1"> <IDSymbol name="bmpPic1" value="1" /> <IDSymbol name="bmpPic2" value="2" /> <IDSymbol name="bmpPicSearch" value="3" /> <IDSymbol name="bmpPicX" value="4" /> <IDSymbol name="bmpPicArrows" value="5" /> <IDSymbol name="bmpPicStrikethrough" value="6" /> </GuidSymbol> </Symbols> </CommandTable>