gongqiuhong 1 year ago
parent
commit
4b4a92492b
3 changed files with 201 additions and 162 deletions
  1. 143 141
      XdCxRhDW.App/EditForms/TaskEditor.Designer.cs
  2. 21 3
      XdCxRhDW.App/EditForms/TaskEditor.cs
  3. 37 18
      XdCxRhDW.Sender/Form1.cs

+ 143 - 141
XdCxRhDW.App/EditForms/TaskEditor.Designer.cs

@@ -28,60 +28,60 @@
         /// </summary>
         private void InitializeComponent()
         {
+            DevExpress.XtraEditors.Controls.EditorButtonImageOptions editorButtonImageOptions3 = new DevExpress.XtraEditors.Controls.EditorButtonImageOptions();
+            DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject9 = new DevExpress.Utils.SerializableAppearanceObject();
+            DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject10 = new DevExpress.Utils.SerializableAppearanceObject();
+            DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject11 = new DevExpress.Utils.SerializableAppearanceObject();
+            DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject12 = new DevExpress.Utils.SerializableAppearanceObject();
             DevExpress.XtraEditors.Controls.EditorButtonImageOptions editorButtonImageOptions1 = new DevExpress.XtraEditors.Controls.EditorButtonImageOptions();
             DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject1 = new DevExpress.Utils.SerializableAppearanceObject();
             DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject2 = new DevExpress.Utils.SerializableAppearanceObject();
             DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject3 = new DevExpress.Utils.SerializableAppearanceObject();
             DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject4 = new DevExpress.Utils.SerializableAppearanceObject();
-            DevExpress.XtraEditors.Controls.EditorButtonImageOptions editorButtonImageOptions2 = new DevExpress.XtraEditors.Controls.EditorButtonImageOptions();
-            DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject5 = new DevExpress.Utils.SerializableAppearanceObject();
-            DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject6 = new DevExpress.Utils.SerializableAppearanceObject();
-            DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject7 = new DevExpress.Utils.SerializableAppearanceObject();
-            DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject8 = new DevExpress.Utils.SerializableAppearanceObject();
             this.layoutControl1 = new DevExpress.XtraLayout.LayoutControl();
             this.btnSave = new DevExpress.XtraEditors.SimpleButton();
             this.txtTaskName = new DevExpress.XtraEditors.TextEdit();
             this.txtPosType = new DevExpress.XtraEditors.RadioGroup();
-            this.Root = new DevExpress.XtraLayout.LayoutControlGroup();
-            this.layoutControlItem1 = new DevExpress.XtraLayout.LayoutControlItem();
-            this.emptySpaceItem1 = new DevExpress.XtraLayout.EmptySpaceItem();
-            this.layoutControlItem2 = new DevExpress.XtraLayout.LayoutControlItem();
-            this.layoutControlItem3 = new DevExpress.XtraLayout.LayoutControlItem();
-            this.layoutControlItem4 = new DevExpress.XtraLayout.LayoutControlItem();
-            this.layoutControlItem5 = new DevExpress.XtraLayout.LayoutControlItem();
-            this.layoutControlItem6 = new DevExpress.XtraLayout.LayoutControlItem();
             this.txtFreq = new DevExpress.XtraEditors.ButtonEdit();
-            this.layoutControlItem7 = new DevExpress.XtraLayout.LayoutControlItem();
             this.txtBand = new DevExpress.XtraEditors.ButtonEdit();
-            this.layoutControlItem8 = new DevExpress.XtraLayout.LayoutControlItem();
             this.txtMainSat = new DevExpress.XtraEditors.SearchLookUpEdit();
             this.searchLookUpEdit1View = new DevExpress.XtraGrid.Views.Grid.GridView();
             this.txtAdja1Sat = new DevExpress.XtraEditors.SearchLookUpEdit();
             this.gridView1 = new DevExpress.XtraGrid.Views.Grid.GridView();
             this.txtAdja2Sat = new DevExpress.XtraEditors.SearchLookUpEdit();
             this.gridView2 = new DevExpress.XtraGrid.Views.Grid.GridView();
+            this.Root = new DevExpress.XtraLayout.LayoutControlGroup();
+            this.layoutControlItem1 = new DevExpress.XtraLayout.LayoutControlItem();
+            this.emptySpaceItem1 = new DevExpress.XtraLayout.EmptySpaceItem();
+            this.layoutControlItem2 = new DevExpress.XtraLayout.LayoutControlItem();
+            this.layoutControlItem3 = new DevExpress.XtraLayout.LayoutControlItem();
+            this.layoutControlItem4 = new DevExpress.XtraLayout.LayoutControlItem();
+            this.layoutControlItemAdja1 = new DevExpress.XtraLayout.LayoutControlItem();
+            this.layoutControlItemAdja2 = new DevExpress.XtraLayout.LayoutControlItem();
+            this.layoutControlItem7 = new DevExpress.XtraLayout.LayoutControlItem();
+            this.layoutControlItem8 = new DevExpress.XtraLayout.LayoutControlItem();
             ((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).BeginInit();
             this.layoutControl1.SuspendLayout();
             ((System.ComponentModel.ISupportInitialize)(this.txtTaskName.Properties)).BeginInit();
             ((System.ComponentModel.ISupportInitialize)(this.txtPosType.Properties)).BeginInit();
-            ((System.ComponentModel.ISupportInitialize)(this.Root)).BeginInit();
-            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).BeginInit();
-            ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem1)).BeginInit();
-            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).BeginInit();
-            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).BeginInit();
-            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).BeginInit();
-            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem5)).BeginInit();
-            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem6)).BeginInit();
             ((System.ComponentModel.ISupportInitialize)(this.txtFreq.Properties)).BeginInit();
-            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem7)).BeginInit();
             ((System.ComponentModel.ISupportInitialize)(this.txtBand.Properties)).BeginInit();
-            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem8)).BeginInit();
             ((System.ComponentModel.ISupportInitialize)(this.txtMainSat.Properties)).BeginInit();
             ((System.ComponentModel.ISupportInitialize)(this.searchLookUpEdit1View)).BeginInit();
             ((System.ComponentModel.ISupportInitialize)(this.txtAdja1Sat.Properties)).BeginInit();
             ((System.ComponentModel.ISupportInitialize)(this.gridView1)).BeginInit();
             ((System.ComponentModel.ISupportInitialize)(this.txtAdja2Sat.Properties)).BeginInit();
             ((System.ComponentModel.ISupportInitialize)(this.gridView2)).BeginInit();
+            ((System.ComponentModel.ISupportInitialize)(this.Root)).BeginInit();
+            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).BeginInit();
+            ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem1)).BeginInit();
+            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).BeginInit();
+            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).BeginInit();
+            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).BeginInit();
+            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItemAdja1)).BeginInit();
+            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItemAdja2)).BeginInit();
+            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem7)).BeginInit();
+            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem8)).BeginInit();
             this.SuspendLayout();
             // 
             // layoutControl1
@@ -131,6 +131,94 @@
             this.txtPosType.Size = new System.Drawing.Size(393, 170);
             this.txtPosType.StyleController = this.layoutControl1;
             this.txtPosType.TabIndex = 5;
+            this.txtPosType.SelectedIndexChanged += new System.EventHandler(this.txtPosType_SelectedIndexChanged);
+            this.txtPosType.EditValueChanged += new System.EventHandler(this.txtPosType_EditValueChanged);
+            // 
+            // txtFreq
+            // 
+            this.txtFreq.Location = new System.Drawing.Point(22, 418);
+            this.txtFreq.Name = "txtFreq";
+            this.txtFreq.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
+            new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Glyph, "MHz", -1, false, true, false, editorButtonImageOptions3, new DevExpress.Utils.KeyShortcut(System.Windows.Forms.Keys.None), serializableAppearanceObject9, serializableAppearanceObject10, serializableAppearanceObject11, serializableAppearanceObject12, "", null, null, DevExpress.Utils.ToolTipAnchor.Default)});
+            this.txtFreq.Properties.MaskSettings.Set("MaskManagerType", typeof(DevExpress.Data.Mask.NumericMaskManager));
+            this.txtFreq.Properties.MaskSettings.Set("MaskManagerSignature", "allowNull=False");
+            this.txtFreq.Properties.MaskSettings.Set("mask", "f3");
+            this.txtFreq.Size = new System.Drawing.Size(194, 22);
+            this.txtFreq.StyleController = this.layoutControl1;
+            this.txtFreq.TabIndex = 10;
+            // 
+            // txtBand
+            // 
+            this.txtBand.Location = new System.Drawing.Point(220, 418);
+            this.txtBand.Name = "txtBand";
+            this.txtBand.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
+            new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Glyph, "MHz", -1, false, true, false, editorButtonImageOptions1, new DevExpress.Utils.KeyShortcut(System.Windows.Forms.Keys.None), serializableAppearanceObject1, serializableAppearanceObject2, serializableAppearanceObject3, serializableAppearanceObject4, "", null, null, DevExpress.Utils.ToolTipAnchor.Default)});
+            this.txtBand.Properties.MaskSettings.Set("MaskManagerType", typeof(DevExpress.Data.Mask.NumericMaskManager));
+            this.txtBand.Properties.MaskSettings.Set("MaskManagerSignature", "allowNull=False");
+            this.txtBand.Properties.MaskSettings.Set("mask", "f3");
+            this.txtBand.Size = new System.Drawing.Size(195, 22);
+            this.txtBand.StyleController = this.layoutControl1;
+            this.txtBand.TabIndex = 10;
+            // 
+            // txtMainSat
+            // 
+            this.txtMainSat.Location = new System.Drawing.Point(22, 286);
+            this.txtMainSat.Name = "txtMainSat";
+            this.txtMainSat.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
+            new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
+            this.txtMainSat.Properties.NullText = "";
+            this.txtMainSat.Properties.PopupSizeable = false;
+            this.txtMainSat.Properties.PopupView = this.searchLookUpEdit1View;
+            this.txtMainSat.Size = new System.Drawing.Size(393, 22);
+            this.txtMainSat.StyleController = this.layoutControl1;
+            this.txtMainSat.TabIndex = 7;
+            // 
+            // searchLookUpEdit1View
+            // 
+            this.searchLookUpEdit1View.FocusRectStyle = DevExpress.XtraGrid.Views.Grid.DrawFocusRectStyle.RowFocus;
+            this.searchLookUpEdit1View.Name = "searchLookUpEdit1View";
+            this.searchLookUpEdit1View.OptionsSelection.EnableAppearanceFocusedCell = false;
+            this.searchLookUpEdit1View.OptionsView.ShowGroupPanel = false;
+            // 
+            // txtAdja1Sat
+            // 
+            this.txtAdja1Sat.Location = new System.Drawing.Point(22, 330);
+            this.txtAdja1Sat.Name = "txtAdja1Sat";
+            this.txtAdja1Sat.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
+            new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
+            this.txtAdja1Sat.Properties.NullText = "";
+            this.txtAdja1Sat.Properties.PopupSizeable = false;
+            this.txtAdja1Sat.Properties.PopupView = this.gridView1;
+            this.txtAdja1Sat.Size = new System.Drawing.Size(393, 22);
+            this.txtAdja1Sat.StyleController = this.layoutControl1;
+            this.txtAdja1Sat.TabIndex = 8;
+            // 
+            // gridView1
+            // 
+            this.gridView1.FocusRectStyle = DevExpress.XtraGrid.Views.Grid.DrawFocusRectStyle.RowFocus;
+            this.gridView1.Name = "gridView1";
+            this.gridView1.OptionsSelection.EnableAppearanceFocusedCell = false;
+            this.gridView1.OptionsView.ShowGroupPanel = false;
+            // 
+            // txtAdja2Sat
+            // 
+            this.txtAdja2Sat.Location = new System.Drawing.Point(22, 374);
+            this.txtAdja2Sat.Name = "txtAdja2Sat";
+            this.txtAdja2Sat.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
+            new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
+            this.txtAdja2Sat.Properties.NullText = "";
+            this.txtAdja2Sat.Properties.PopupSizeable = false;
+            this.txtAdja2Sat.Properties.PopupView = this.gridView2;
+            this.txtAdja2Sat.Size = new System.Drawing.Size(393, 22);
+            this.txtAdja2Sat.StyleController = this.layoutControl1;
+            this.txtAdja2Sat.TabIndex = 9;
+            // 
+            // gridView2
+            // 
+            this.gridView2.FocusRectStyle = DevExpress.XtraGrid.Views.Grid.DrawFocusRectStyle.RowFocus;
+            this.gridView2.Name = "gridView2";
+            this.gridView2.OptionsSelection.EnableAppearanceFocusedCell = false;
+            this.gridView2.OptionsView.ShowGroupPanel = false;
             // 
             // Root
             // 
@@ -142,8 +230,8 @@
             this.layoutControlItem2,
             this.layoutControlItem3,
             this.layoutControlItem4,
-            this.layoutControlItem5,
-            this.layoutControlItem6,
+            this.layoutControlItemAdja1,
+            this.layoutControlItemAdja2,
             this.layoutControlItem7,
             this.layoutControlItem8});
             this.Root.Name = "Root";
@@ -209,38 +297,25 @@
             this.layoutControlItem4.TextLocation = DevExpress.Utils.Locations.Top;
             this.layoutControlItem4.TextSize = new System.Drawing.Size(48, 14);
             // 
-            // layoutControlItem5
-            // 
-            this.layoutControlItem5.Control = this.txtAdja1Sat;
-            this.layoutControlItem5.Location = new System.Drawing.Point(0, 290);
-            this.layoutControlItem5.Name = "layoutControlItem5";
-            this.layoutControlItem5.Size = new System.Drawing.Size(397, 44);
-            this.layoutControlItem5.Text = "邻星1";
-            this.layoutControlItem5.TextLocation = DevExpress.Utils.Locations.Top;
-            this.layoutControlItem5.TextSize = new System.Drawing.Size(48, 14);
+            // layoutControlItemAdja1
             // 
-            // layoutControlItem6
+            this.layoutControlItemAdja1.Control = this.txtAdja1Sat;
+            this.layoutControlItemAdja1.Location = new System.Drawing.Point(0, 290);
+            this.layoutControlItemAdja1.Name = "layoutControlItemAdja1";
+            this.layoutControlItemAdja1.Size = new System.Drawing.Size(397, 44);
+            this.layoutControlItemAdja1.Text = "邻星1";
+            this.layoutControlItemAdja1.TextLocation = DevExpress.Utils.Locations.Top;
+            this.layoutControlItemAdja1.TextSize = new System.Drawing.Size(48, 14);
             // 
-            this.layoutControlItem6.Control = this.txtAdja2Sat;
-            this.layoutControlItem6.Location = new System.Drawing.Point(0, 334);
-            this.layoutControlItem6.Name = "layoutControlItem6";
-            this.layoutControlItem6.Size = new System.Drawing.Size(397, 44);
-            this.layoutControlItem6.Text = "邻星2";
-            this.layoutControlItem6.TextLocation = DevExpress.Utils.Locations.Top;
-            this.layoutControlItem6.TextSize = new System.Drawing.Size(48, 14);
-            // 
-            // txtFreq
+            // layoutControlItemAdja2
             // 
-            this.txtFreq.Location = new System.Drawing.Point(22, 418);
-            this.txtFreq.Name = "txtFreq";
-            this.txtFreq.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
-            new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Glyph, "MHz", -1, false, true, false, editorButtonImageOptions1, new DevExpress.Utils.KeyShortcut(System.Windows.Forms.Keys.None), serializableAppearanceObject1, serializableAppearanceObject2, serializableAppearanceObject3, serializableAppearanceObject4, "", null, null, DevExpress.Utils.ToolTipAnchor.Default)});
-            this.txtFreq.Properties.MaskSettings.Set("MaskManagerType", typeof(DevExpress.Data.Mask.NumericMaskManager));
-            this.txtFreq.Properties.MaskSettings.Set("MaskManagerSignature", "allowNull=False");
-            this.txtFreq.Properties.MaskSettings.Set("mask", "f3");
-            this.txtFreq.Size = new System.Drawing.Size(194, 22);
-            this.txtFreq.StyleController = this.layoutControl1;
-            this.txtFreq.TabIndex = 10;
+            this.layoutControlItemAdja2.Control = this.txtAdja2Sat;
+            this.layoutControlItemAdja2.Location = new System.Drawing.Point(0, 334);
+            this.layoutControlItemAdja2.Name = "layoutControlItemAdja2";
+            this.layoutControlItemAdja2.Size = new System.Drawing.Size(397, 44);
+            this.layoutControlItemAdja2.Text = "邻星2";
+            this.layoutControlItemAdja2.TextLocation = DevExpress.Utils.Locations.Top;
+            this.layoutControlItemAdja2.TextSize = new System.Drawing.Size(48, 14);
             // 
             // layoutControlItem7
             // 
@@ -252,19 +327,6 @@
             this.layoutControlItem7.TextLocation = DevExpress.Utils.Locations.Top;
             this.layoutControlItem7.TextSize = new System.Drawing.Size(48, 14);
             // 
-            // txtBand
-            // 
-            this.txtBand.Location = new System.Drawing.Point(220, 418);
-            this.txtBand.Name = "txtBand";
-            this.txtBand.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
-            new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Glyph, "MHz", -1, false, true, false, editorButtonImageOptions2, new DevExpress.Utils.KeyShortcut(System.Windows.Forms.Keys.None), serializableAppearanceObject5, serializableAppearanceObject6, serializableAppearanceObject7, serializableAppearanceObject8, "", null, null, DevExpress.Utils.ToolTipAnchor.Default)});
-            this.txtBand.Properties.MaskSettings.Set("MaskManagerType", typeof(DevExpress.Data.Mask.NumericMaskManager));
-            this.txtBand.Properties.MaskSettings.Set("MaskManagerSignature", "allowNull=False");
-            this.txtBand.Properties.MaskSettings.Set("mask", "f3");
-            this.txtBand.Size = new System.Drawing.Size(195, 22);
-            this.txtBand.StyleController = this.layoutControl1;
-            this.txtBand.TabIndex = 10;
-            // 
             // layoutControlItem8
             // 
             this.layoutControlItem8.Control = this.txtBand;
@@ -277,66 +339,6 @@
             this.layoutControlItem8.TextLocation = DevExpress.Utils.Locations.Top;
             this.layoutControlItem8.TextSize = new System.Drawing.Size(48, 14);
             // 
-            // txtMainSat
-            // 
-            this.txtMainSat.Location = new System.Drawing.Point(22, 286);
-            this.txtMainSat.Name = "txtMainSat";
-            this.txtMainSat.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
-            new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
-            this.txtMainSat.Properties.NullText = "";
-            this.txtMainSat.Properties.PopupSizeable = false;
-            this.txtMainSat.Properties.PopupView = this.searchLookUpEdit1View;
-            this.txtMainSat.Size = new System.Drawing.Size(393, 22);
-            this.txtMainSat.StyleController = this.layoutControl1;
-            this.txtMainSat.TabIndex = 7;
-            // 
-            // searchLookUpEdit1View
-            // 
-            this.searchLookUpEdit1View.FocusRectStyle = DevExpress.XtraGrid.Views.Grid.DrawFocusRectStyle.RowFocus;
-            this.searchLookUpEdit1View.Name = "searchLookUpEdit1View";
-            this.searchLookUpEdit1View.OptionsSelection.EnableAppearanceFocusedCell = false;
-            this.searchLookUpEdit1View.OptionsView.ShowGroupPanel = false;
-            // 
-            // txtAdja1Sat
-            // 
-            this.txtAdja1Sat.Location = new System.Drawing.Point(22, 330);
-            this.txtAdja1Sat.Name = "txtAdja1Sat";
-            this.txtAdja1Sat.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
-            new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
-            this.txtAdja1Sat.Properties.NullText = "";
-            this.txtAdja1Sat.Properties.PopupSizeable = false;
-            this.txtAdja1Sat.Properties.PopupView = this.gridView1;
-            this.txtAdja1Sat.Size = new System.Drawing.Size(393, 22);
-            this.txtAdja1Sat.StyleController = this.layoutControl1;
-            this.txtAdja1Sat.TabIndex = 8;
-            // 
-            // gridView1
-            // 
-            this.gridView1.FocusRectStyle = DevExpress.XtraGrid.Views.Grid.DrawFocusRectStyle.RowFocus;
-            this.gridView1.Name = "gridView1";
-            this.gridView1.OptionsSelection.EnableAppearanceFocusedCell = false;
-            this.gridView1.OptionsView.ShowGroupPanel = false;
-            // 
-            // txtAdja2Sat
-            // 
-            this.txtAdja2Sat.Location = new System.Drawing.Point(22, 374);
-            this.txtAdja2Sat.Name = "txtAdja2Sat";
-            this.txtAdja2Sat.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
-            new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
-            this.txtAdja2Sat.Properties.NullText = "";
-            this.txtAdja2Sat.Properties.PopupSizeable = false;
-            this.txtAdja2Sat.Properties.PopupView = this.gridView2;
-            this.txtAdja2Sat.Size = new System.Drawing.Size(393, 22);
-            this.txtAdja2Sat.StyleController = this.layoutControl1;
-            this.txtAdja2Sat.TabIndex = 9;
-            // 
-            // gridView2
-            // 
-            this.gridView2.FocusRectStyle = DevExpress.XtraGrid.Views.Grid.DrawFocusRectStyle.RowFocus;
-            this.gridView2.Name = "gridView2";
-            this.gridView2.OptionsSelection.EnableAppearanceFocusedCell = false;
-            this.gridView2.OptionsView.ShowGroupPanel = false;
-            // 
             // TaskEditor
             // 
             this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F);
@@ -351,24 +353,24 @@
             this.layoutControl1.ResumeLayout(false);
             ((System.ComponentModel.ISupportInitialize)(this.txtTaskName.Properties)).EndInit();
             ((System.ComponentModel.ISupportInitialize)(this.txtPosType.Properties)).EndInit();
-            ((System.ComponentModel.ISupportInitialize)(this.Root)).EndInit();
-            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).EndInit();
-            ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem1)).EndInit();
-            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).EndInit();
-            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).EndInit();
-            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).EndInit();
-            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem5)).EndInit();
-            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem6)).EndInit();
             ((System.ComponentModel.ISupportInitialize)(this.txtFreq.Properties)).EndInit();
-            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem7)).EndInit();
             ((System.ComponentModel.ISupportInitialize)(this.txtBand.Properties)).EndInit();
-            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem8)).EndInit();
             ((System.ComponentModel.ISupportInitialize)(this.txtMainSat.Properties)).EndInit();
             ((System.ComponentModel.ISupportInitialize)(this.searchLookUpEdit1View)).EndInit();
             ((System.ComponentModel.ISupportInitialize)(this.txtAdja1Sat.Properties)).EndInit();
             ((System.ComponentModel.ISupportInitialize)(this.gridView1)).EndInit();
             ((System.ComponentModel.ISupportInitialize)(this.txtAdja2Sat.Properties)).EndInit();
             ((System.ComponentModel.ISupportInitialize)(this.gridView2)).EndInit();
+            ((System.ComponentModel.ISupportInitialize)(this.Root)).EndInit();
+            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).EndInit();
+            ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem1)).EndInit();
+            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).EndInit();
+            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).EndInit();
+            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).EndInit();
+            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItemAdja1)).EndInit();
+            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItemAdja2)).EndInit();
+            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem7)).EndInit();
+            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem8)).EndInit();
             this.ResumeLayout(false);
 
         }
@@ -386,8 +388,8 @@
         private DevExpress.XtraLayout.LayoutControlItem layoutControlItem3;
         private DevExpress.XtraEditors.ButtonEdit txtFreq;
         private DevExpress.XtraLayout.LayoutControlItem layoutControlItem4;
-        private DevExpress.XtraLayout.LayoutControlItem layoutControlItem5;
-        private DevExpress.XtraLayout.LayoutControlItem layoutControlItem6;
+        private DevExpress.XtraLayout.LayoutControlItem layoutControlItemAdja1;
+        private DevExpress.XtraLayout.LayoutControlItem layoutControlItemAdja2;
         private DevExpress.XtraLayout.LayoutControlItem layoutControlItem7;
         private DevExpress.XtraEditors.ButtonEdit txtBand;
         private DevExpress.XtraLayout.LayoutControlItem layoutControlItem8;

+ 21 - 3
XdCxRhDW.App/EditForms/TaskEditor.cs

@@ -52,9 +52,9 @@ namespace XdCxRhDW.App.EditForms
             using (RHDWContext db = new RHDWContext())
             {
                 var sats = await db.SatInfos.ToListAsync();
-                this.txtMainSat.UseDefault().SetData(sats).UseDoubleClickToSelectAll();
-                this.txtAdja1Sat.UseDefault().SetData(sats).UseDoubleClickToSelectAll();
-                this.txtAdja2Sat.UseDefault().SetData(sats).UseDoubleClickToSelectAll();
+                this.txtMainSat.UseDefault().SetData(sats, nameof(SatInfo.Sat)).UseDoubleClickToSelectAll();
+                this.txtAdja1Sat.UseDefault().SetData(sats, nameof(SatInfo.Sat)).UseDoubleClickToSelectAll();
+                this.txtAdja2Sat.UseDefault().SetData(sats, nameof(SatInfo.Sat)).UseDoubleClickToSelectAll();
             }
             if (this.Text == "编辑任务" && info != null)
             {
@@ -83,5 +83,23 @@ namespace XdCxRhDW.App.EditForms
                 DxHelper.MsgBoxHelper.ShowError("编辑任务信息出错");
             }
         }
+
+        private void txtPosType_SelectedIndexChanged(object sender, EventArgs e)
+        {
+            switch (txtPosType.SelectedIndex)
+            {
+                case 0:
+                    break;
+                case 1:
+                    break;
+                default:
+                    break;
+            }
+        }
+
+        private void txtPosType_EditValueChanged(object sender, EventArgs e)
+        {
+
+        }
     }
 }

+ 37 - 18
XdCxRhDW.Sender/Form1.cs

@@ -64,6 +64,7 @@ namespace XdCxRhDW.Sender
                                     X1D1PosDto dto = new X1D1PosDto()
                                     {
                                         SigTime = DateTime.Now,
+                                        MainCode= 23467,
                                         XdDto = Convert.ToDouble(items[1]) * 1e6,
                                         MainYbDto = Convert.ToDouble(items[2]) * 1e6,
                                         CxRes = Convert.ToDouble(items[4]),
@@ -103,6 +104,7 @@ namespace XdCxRhDW.Sender
                                     var items = line.Split(" ".ToCharArray(), StringSplitOptions.RemoveEmptyEntries);
                                     X2D1PosDto X2D1PosDto = new X2D1PosDto();
                                     X2D1PosDto.SigTime = DateTime.Now;
+                                    X2D1PosDto.MainCode = 23467;
                                     X2D1PosDto.SxDto = Convert.ToDouble(items[0]) * 1e6;
                                     X2D1PosDto.XdDto = Convert.ToDouble(items[1]) * 1e6;
                                     X2D1PosDto.MainYbDto = Convert.ToDouble(items[2]) * 1e6;
@@ -145,6 +147,8 @@ namespace XdCxRhDW.Sender
                                     var items = line.Split(" ".ToCharArray(), StringSplitOptions.RemoveEmptyEntries);
                                     RHPosDto RHPosDto = new RHPosDto();
                                     RHPosDto.SigTime = DateTime.Now;
+                                    RHPosDto.MainCode = 23467;
+                                    RHPosDto.AdjaCode = 39206;
                                     RHPosDto.SxDto = Convert.ToDouble(items[0]) * 1e6;
                                     RHPosDto.XdDto = Convert.ToDouble(items[1]) * 1e6;
                                     RHPosDto.MainYbDto = Convert.ToDouble(items[2]) * 1e6;
@@ -220,7 +224,7 @@ namespace XdCxRhDW.Sender
                                     X1D1NoXlPosDto dto = new X1D1NoXlPosDto()
                                     {
                                         SigTime = DateTime.Now,
-                                        MainSatID = 19548,
+                                        MainCode = 23467,
                                         XdDto = Convert.ToDouble(items[1]) * 1e6,
                                         MainYbDto = Convert.ToDouble(items[2]) * 1e6,
                                         CxRes = Convert.ToDouble(items[4]),
@@ -251,8 +255,8 @@ namespace XdCxRhDW.Sender
                                     var items = line.Split(" ".ToCharArray(), StringSplitOptions.RemoveEmptyEntries);
                                     X2D1NoXlPosDto X2D1NoXlPosDto = new X2D1NoXlPosDto();
                                     X2D1NoXlPosDto.SigTime = DateTime.Now;
-                                    X2D1NoXlPosDto.MainSatID = 19548;
-                                    X2D1NoXlPosDto.AdjaSatID = 20253;
+                                    X2D1NoXlPosDto.MainCode = 23467;
+                                    X2D1NoXlPosDto.AdjaCode = 39206;
                                     X2D1NoXlPosDto.SxDto = Convert.ToDouble(items[0]) * 1e6;
                                     X2D1NoXlPosDto.XdDto = Convert.ToDouble(items[1]) * 1e6;
                                     X2D1NoXlPosDto.MainYbDto = Convert.ToDouble(items[2]) * 1e6;
@@ -290,8 +294,8 @@ namespace XdCxRhDW.Sender
                                     var items = line.Split(" ".ToCharArray(), StringSplitOptions.RemoveEmptyEntries);
                                     RHNoXlPosDto RHNoXlPosDto = new RHNoXlPosDto();
                                     RHNoXlPosDto.SigTime = DateTime.Now;
-                                    RHNoXlPosDto.MainSatID = 19548;
-                                    RHNoXlPosDto.AdjaSatID = 20253;
+                                    RHNoXlPosDto.MainCode = 23467;
+                                    RHNoXlPosDto.AdjaCode = 39206;
                                     RHNoXlPosDto.SxDto = Convert.ToDouble(items[0]) * 1e6;
                                     RHNoXlPosDto.XdDto = Convert.ToDouble(items[1]) * 1e6;
                                     RHNoXlPosDto.MainYbDto = Convert.ToDouble(items[2]) * 1e6;
@@ -376,6 +380,8 @@ namespace XdCxRhDW.Sender
         {
             X2D1PosDto X2D1PosDto = new X2D1PosDto();
             X2D1PosDto.SigTime = DateTime.Now;
+            X2D1PosDto.MainCode = 23467;
+            X2D1PosDto.AdjaCode = 39206;
             X2D1PosDto.SxDto = 5507.5653;
             X2D1PosDto.XdDto = 240292.558;
             X2D1PosDto.MainYbDto = 0;
@@ -402,6 +408,8 @@ namespace XdCxRhDW.Sender
         {
             X2D1PosDto X2D1PosDto = new X2D1PosDto();
             X2D1PosDto.SigTime = DateTime.Now;
+            X2D1PosDto.MainCode = 23467;
+            X2D1PosDto.AdjaCode = 39206;
             X2D1PosDto.SxDto = -0.002198485309353 * 1e6;
             X2D1PosDto.XdDto = 0.245961726007262 * 1e6;
             X2D1PosDto.MainX = -38209016;
@@ -424,6 +432,9 @@ namespace XdCxRhDW.Sender
         {
             X3TwoDtoPosDto X3TwoDtoPosDto = new X3TwoDtoPosDto();
             X3TwoDtoPosDto.SigTime = DateTime.Now;
+            X3TwoDtoPosDto.MainCode = 23467;
+            X3TwoDtoPosDto.Adja1Code = 39206;
+            X3TwoDtoPosDto.Adja2Code = 40892;
             X3TwoDtoPosDto.Dto1 = -0.0037683828 * 1e6;
             X3TwoDtoPosDto.Dto2 = 0.00411476 * 1e6;
             X3TwoDtoPosDto.YbMainDto = 0.253339246 * 1e6;
@@ -452,6 +463,9 @@ namespace XdCxRhDW.Sender
         {
             X3TwoDtoNoParPosDto X3TwoDtoNoParPosDto = new X3TwoDtoNoParPosDto();
             X3TwoDtoNoParPosDto.SigTime = DateTime.Now;
+            X3TwoDtoNoParPosDto.MainCode = 23467;
+            X3TwoDtoNoParPosDto.Adja1Code = 39206;
+            X3TwoDtoNoParPosDto.Adja2Code = 40892;
             X3TwoDtoNoParPosDto.Dto1 = -0.008361002956792 * 1e6;
             X3TwoDtoNoParPosDto.Dto2 = 0.004191941221694 * 1e6;
             X3TwoDtoNoParPosDto.MainX = -38214804;
@@ -475,6 +489,9 @@ namespace XdCxRhDW.Sender
         {
             X3TwoDfoPosDto X3TwoDfoPosDto = new X3TwoDfoPosDto();
             X3TwoDfoPosDto.SigTime = DateTime.Now;
+            X3TwoDfoPosDto.MainCode = 23467;
+            X3TwoDfoPosDto.Adja1Code = 39206;
+            X3TwoDfoPosDto.Adja2Code = 40892;
             X3TwoDfoPosDto.Dfo1 = -17.601977254734404;
             X3TwoDfoPosDto.Dfo2 = -36.885840020369514;
             X3TwoDfoPosDto.YbMainDfo = 0;
@@ -516,6 +533,8 @@ namespace XdCxRhDW.Sender
         {
             X2DtoDfoPosDto X2DtoDfoPosDto = new X2DtoDfoPosDto();
             X2DtoDfoPosDto.SigTime = DateTime.Now;
+            X2DtoDfoPosDto.MainCode = 23467;
+            X2DtoDfoPosDto.AdjaCode = 39206;
             X2DtoDfoPosDto.Dto = -3.587980198938979e-06 * 1e6;
             X2DtoDfoPosDto.Dfo = -17.601977254734404;
             X2DtoDfoPosDto.YbMainDto = 0;
@@ -555,8 +574,8 @@ namespace XdCxRhDW.Sender
         {
             X2D1NoXlNoParlPosDto X2D1NoXlNoParlPosDto = new X2D1NoXlNoParlPosDto();
             X2D1NoXlNoParlPosDto.SigTime = DateTime.Now;
-            X2D1NoXlNoParlPosDto.MainSatID = 19548;
-            X2D1NoXlNoParlPosDto.AdjaSatID = 20253;
+            X2D1NoXlNoParlPosDto.MainCode = 23467;
+            X2D1NoXlNoParlPosDto.AdjaCode = 39206;
             X2D1NoXlNoParlPosDto.SxDto = -0.002198485309353 * 1e6;
             X2D1NoXlNoParlPosDto.XdDto = 0.245961726007262 * 1e6;
             X2D1NoXlNoParlPosDto.SatTxLon = 118.8833;
@@ -573,9 +592,9 @@ namespace XdCxRhDW.Sender
         {
             X3TwoDtoNoXlPosDto X3TwoDtoNoXlPosDto = new X3TwoDtoNoXlPosDto();
             X3TwoDtoNoXlPosDto.SigTime = DateTime.Now;
-            X3TwoDtoNoXlPosDto.MainSatID = 19548;
-            X3TwoDtoNoXlPosDto.Adja1SatID = 20253;
-            X3TwoDtoNoXlPosDto.Adja2SatID = 20776;
+            X3TwoDtoNoXlPosDto.MainCode = 23467;
+            X3TwoDtoNoXlPosDto.Adja1Code = 39206;
+            X3TwoDtoNoXlPosDto.Adja2Code = 40892;
             X3TwoDtoNoXlPosDto.Dto1 = -0.0037683828 * 1e6;
             X3TwoDtoNoXlPosDto.Dto2 = 0.00411476 * 1e6;
             X3TwoDtoNoXlPosDto.YbMainDto = 0.253339246 * 1e6;
@@ -595,9 +614,9 @@ namespace XdCxRhDW.Sender
         {
             X3TwoDtoNoXlNoParPosDto X3TwoDtoNoParPosDto = new X3TwoDtoNoXlNoParPosDto();
             X3TwoDtoNoParPosDto.SigTime = DateTime.Now;
-            X3TwoDtoNoParPosDto.MainSatID = 19548;
-            X3TwoDtoNoParPosDto.Adja1SatID = 20253;
-            X3TwoDtoNoParPosDto.Adja2SatID = 20776;
+            X3TwoDtoNoParPosDto.MainCode = 23467;
+            X3TwoDtoNoParPosDto.Adja1Code = 39206;
+            X3TwoDtoNoParPosDto.Adja2Code = 40892;
             X3TwoDtoNoParPosDto.Dto1 = -0.008361002956792 * 1e6;
             X3TwoDtoNoParPosDto.Dto2 = 0.004191941221694 * 1e6;
             X3TwoDtoNoParPosDto.SatTxLon = 121.3555;
@@ -612,9 +631,9 @@ namespace XdCxRhDW.Sender
         {
             X3TwoDfoNoXlPosDto X3TwoDfoNoXlPosDto = new X3TwoDfoNoXlPosDto();
             X3TwoDfoNoXlPosDto.SigTime = DateTime.Now;
-            X3TwoDfoNoXlPosDto.MainSatID = 19548;
-            X3TwoDfoNoXlPosDto.Adja1SatID = 20253;
-            X3TwoDfoNoXlPosDto.Adja2SatID = 20776;
+            X3TwoDfoNoXlPosDto.MainCode = 23467;
+            X3TwoDfoNoXlPosDto.Adja1Code = 39206;
+            X3TwoDfoNoXlPosDto.Adja2Code = 40892;
             X3TwoDfoNoXlPosDto.Dfo1 = -17.601977254734404;
             X3TwoDfoNoXlPosDto.Dfo2 = -36.885840020369514;
             X3TwoDfoNoXlPosDto.YbMainDfo = 0;
@@ -638,8 +657,8 @@ namespace XdCxRhDW.Sender
         {
             X2DtoDfoNoXlPosDto X2DtoDfoNoXlPosDto = new X2DtoDfoNoXlPosDto();
             X2DtoDfoNoXlPosDto.SigTime = DateTime.Now;
-            X2DtoDfoNoXlPosDto.MainSatID = 19548;
-            X2DtoDfoNoXlPosDto.AdjaSatID = 20253;
+            X2DtoDfoNoXlPosDto.MainCode = 23467;
+            X2DtoDfoNoXlPosDto.AdjaCode = 39206;
             X2DtoDfoNoXlPosDto.Dto = -3.587980198938979e-06 * 1e6;
             X2DtoDfoNoXlPosDto.Dfo = -17.601977254734404;
             X2DtoDfoNoXlPosDto.YbMainDto = 0;