00001 #ifndef NewSubmittedJobFormUnitH
00002 #define NewSubmittedJobFormUnitH
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00027
00028
00029 #include <Classes.hpp>
00030 #include <Controls.hpp>
00031 #include <StdCtrls.hpp>
00032 #include <Forms.hpp>
00033 #include <Buttons.hpp>
00034 #include <ExtCtrls.hpp>
00035 #include <Graphics.hpp>
00036 #include <vector>
00037
00038 #include "SmallString.h"
00039 #include "XMLNetFile.h"
00040
00041 class CJob;
00042 class CXMLElement;
00043
00044
00045
00047
00050 class TNewSubmittedJobForm : public TForm
00051 {
00052 __published:
00053 TBitBtn *SubmitBitBtn;
00054 TBitBtn *PostponeBitBtn;
00055 TBitBtn *DismissBitBtn;
00056 TImage *Image1;
00057 TLabel *Label1;
00058 TLabel *JobNameLabel;
00059 TComboBox *ComputersCB;
00060 TComboBox *QueuesCB;
00061 TLabel *Label5;
00062 TLabel *Label6;
00063 TLabel *Label7;
00064 TLabel *ProjectNameLabel;
00065 TCheckBox *CheckBox1;
00066 void __fastcall FormCreate(TObject *Sender);
00067 void __fastcall SubmitBitBtnClick(TObject *Sender);
00068 void __fastcall PostponeBitBtnClick(TObject *Sender);
00069 void __fastcall ComputersCBChange(TObject *Sender);
00070
00071 public:
00072 __fastcall TNewSubmittedJobForm(CJob* p_job,CXMLElement* p_ele);
00073
00074 int ComputerID;
00075 int QueueID;
00076 bool Paused;
00077
00078 private:
00079 CJob* Job;
00080 CXMLElement* XMLElement;
00081 vector<int> ComputerIDs;
00082 vector<int> QueueIDs;
00083
00084 void __fastcall UpdateQueues(void);
00085 };
00086
00087
00088
00089
00090 #endif