wyq 4 months ago
parent
commit
e942ee924a

+ 80 - 44
DW5S.App/UserControl/CtrlSysSettings.Designer.cs

@@ -30,11 +30,11 @@ namespace DW5S.App.UserControl
         private void InitializeComponent()
         {
             this.components = new System.ComponentModel.Container();
-            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.tablePanel1 = new DevExpress.Utils.Layout.TablePanel();
             this.layoutControl1 = new DevExpress.XtraLayout.LayoutControl();
             this.txtTimeZone = new DevExpress.XtraScheduler.UI.TimeZoneEdit();
@@ -57,6 +57,8 @@ namespace DW5S.App.UserControl
             this.itemWmtsSource = new DevExpress.XtraLayout.LayoutControlItem();
             this.itemMapLayer = new DevExpress.XtraLayout.LayoutControlItem();
             this.layoutControlItem6 = new DevExpress.XtraLayout.LayoutControlItem();
+            this.txtSampleDire = new DevExpress.XtraEditors.TextEdit();
+            this.layoutControlItem2 = new DevExpress.XtraLayout.LayoutControlItem();
             ((System.ComponentModel.ISupportInitialize)(this.tablePanel1)).BeginInit();
             this.tablePanel1.SuspendLayout();
             ((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).BeginInit();
@@ -79,13 +81,15 @@ namespace DW5S.App.UserControl
             ((System.ComponentModel.ISupportInitialize)(this.itemWmtsSource)).BeginInit();
             ((System.ComponentModel.ISupportInitialize)(this.itemMapLayer)).BeginInit();
             ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem6)).BeginInit();
+            ((System.ComponentModel.ISupportInitialize)(this.txtSampleDire.Properties)).BeginInit();
+            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).BeginInit();
             this.SuspendLayout();
             // 
             // tablePanel1
             // 
             this.tablePanel1.Columns.AddRange(new DevExpress.Utils.Layout.TablePanelColumn[] {
             new DevExpress.Utils.Layout.TablePanelColumn(DevExpress.Utils.Layout.TablePanelEntityStyle.Relative, 1F),
-            new DevExpress.Utils.Layout.TablePanelColumn(DevExpress.Utils.Layout.TablePanelEntityStyle.Absolute, 400F),
+            new DevExpress.Utils.Layout.TablePanelColumn(DevExpress.Utils.Layout.TablePanelEntityStyle.Absolute, 405F),
             new DevExpress.Utils.Layout.TablePanelColumn(DevExpress.Utils.Layout.TablePanelEntityStyle.Relative, 1F)});
             this.tablePanel1.Controls.Add(this.layoutControl1);
             this.tablePanel1.Dock = System.Windows.Forms.DockStyle.Fill;
@@ -93,9 +97,9 @@ namespace DW5S.App.UserControl
             this.tablePanel1.Name = "tablePanel1";
             this.tablePanel1.Rows.AddRange(new DevExpress.Utils.Layout.TablePanelRow[] {
             new DevExpress.Utils.Layout.TablePanelRow(DevExpress.Utils.Layout.TablePanelEntityStyle.Relative, 1F),
-            new DevExpress.Utils.Layout.TablePanelRow(DevExpress.Utils.Layout.TablePanelEntityStyle.Absolute, 450F),
+            new DevExpress.Utils.Layout.TablePanelRow(DevExpress.Utils.Layout.TablePanelEntityStyle.Absolute, 469F),
             new DevExpress.Utils.Layout.TablePanelRow(DevExpress.Utils.Layout.TablePanelEntityStyle.Relative, 1F)});
-            this.tablePanel1.Size = new System.Drawing.Size(619, 527);
+            this.tablePanel1.Size = new System.Drawing.Size(619, 557);
             this.tablePanel1.TabIndex = 0;
             this.tablePanel1.UseSkinIndents = true;
             // 
@@ -110,13 +114,14 @@ namespace DW5S.App.UserControl
             this.layoutControl1.Controls.Add(this.txtXLDirectory);
             this.layoutControl1.Controls.Add(this.txtYDPZThreshold);
             this.layoutControl1.Controls.Add(this.txtWmtsSource);
+            this.layoutControl1.Controls.Add(this.txtSampleDire);
             this.layoutControl1.Dock = System.Windows.Forms.DockStyle.Fill;
-            this.layoutControl1.Location = new System.Drawing.Point(112, 40);
+            this.layoutControl1.Location = new System.Drawing.Point(109, 46);
             this.layoutControl1.Name = "layoutControl1";
             this.layoutControl1.OptionsCustomizationForm.DesignTimeCustomizationFormPositionAndSize = new System.Drawing.Rectangle(941, 140, 650, 400);
             this.layoutControl1.Root = this.Root;
             this.tablePanel1.SetRow(this.layoutControl1, 1);
-            this.layoutControl1.Size = new System.Drawing.Size(396, 446);
+            this.layoutControl1.Size = new System.Drawing.Size(401, 465);
             this.layoutControl1.TabIndex = 0;
             this.layoutControl1.Text = "layoutControl1";
             // 
@@ -127,7 +132,7 @@ namespace DW5S.App.UserControl
             this.txtTimeZone.Properties.AutoHeight = false;
             this.txtTimeZone.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
             new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
-            this.txtTimeZone.Size = new System.Drawing.Size(372, 22);
+            this.txtTimeZone.Size = new System.Drawing.Size(377, 22);
             this.txtTimeZone.StyleController = this.layoutControl1;
             this.txtTimeZone.TabIndex = 13;
             // 
@@ -135,36 +140,36 @@ namespace DW5S.App.UserControl
             // 
             this.txtLayer.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
             this.txtLayer.CheckOnClick = true;
-            this.txtLayer.Location = new System.Drawing.Point(12, 337);
+            this.txtLayer.Location = new System.Drawing.Point(12, 387);
             this.txtLayer.MultiColumn = true;
             this.txtLayer.Name = "txtLayer";
             this.txtLayer.SelectionMode = System.Windows.Forms.SelectionMode.None;
-            this.txtLayer.Size = new System.Drawing.Size(372, 25);
+            this.txtLayer.Size = new System.Drawing.Size(377, 25);
             this.txtLayer.StyleController = this.layoutControl1;
             this.txtLayer.TabIndex = 12;
             // 
             // txtMapType
             // 
             this.txtMapType.EditValue = 0;
-            this.txtMapType.Location = new System.Drawing.Point(12, 229);
+            this.txtMapType.Location = new System.Drawing.Point(12, 279);
             this.txtMapType.Name = "txtMapType";
             this.txtMapType.Properties.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
             this.txtMapType.Properties.Items.AddRange(new DevExpress.XtraEditors.Controls.RadioGroupItem[] {
             new DevExpress.XtraEditors.Controls.RadioGroupItem(0, "本地地图"),
             new DevExpress.XtraEditors.Controls.RadioGroupItem(1, "WMTS")});
-            this.txtMapType.Size = new System.Drawing.Size(372, 25);
+            this.txtMapType.Size = new System.Drawing.Size(377, 25);
             this.txtMapType.StyleController = this.layoutControl1;
             this.txtMapType.TabIndex = 9;
             this.txtMapType.SelectedIndexChanged += new System.EventHandler(this.txtMapType_SelectedIndexChanged);
             // 
             // btnSave
             // 
-            this.btnSave.Location = new System.Drawing.Point(137, 374);
+            this.btnSave.Location = new System.Drawing.Point(138, 424);
             this.btnSave.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
             this.btnSave.MaximumSize = new System.Drawing.Size(0, 22);
             this.btnSave.MinimumSize = new System.Drawing.Size(0, 22);
             this.btnSave.Name = "btnSave";
-            this.btnSave.Size = new System.Drawing.Size(121, 22);
+            this.btnSave.Size = new System.Drawing.Size(123, 22);
             this.btnSave.StyleController = this.layoutControl1;
             this.btnSave.TabIndex = 4;
             this.btnSave.Text = "保存";
@@ -176,7 +181,7 @@ namespace DW5S.App.UserControl
             this.txtHttpPort.Location = new System.Drawing.Point(12, 79);
             this.txtHttpPort.Name = "txtHttpPort";
             this.txtHttpPort.Properties.AutoHeight = false;
-            this.txtHttpPort.Size = new System.Drawing.Size(372, 22);
+            this.txtHttpPort.Size = new System.Drawing.Size(377, 22);
             this.txtHttpPort.StyleController = this.layoutControl1;
             this.txtHttpPort.TabIndex = 5;
             // 
@@ -186,32 +191,32 @@ namespace DW5S.App.UserControl
             this.txtXLDirectory.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
             this.txtXLDirectory.Name = "txtXLDirectory";
             this.txtXLDirectory.Properties.AutoHeight = false;
-            this.txtXLDirectory.Size = new System.Drawing.Size(372, 22);
+            this.txtXLDirectory.Size = new System.Drawing.Size(377, 22);
             this.txtXLDirectory.StyleController = this.layoutControl1;
             this.txtXLDirectory.TabIndex = 6;
             // 
             // txtYDPZThreshold
             // 
-            this.txtYDPZThreshold.Location = new System.Drawing.Point(12, 179);
+            this.txtYDPZThreshold.Location = new System.Drawing.Point(12, 229);
             this.txtYDPZThreshold.Name = "txtYDPZThreshold";
             this.txtYDPZThreshold.Properties.AllowNullInput = DevExpress.Utils.DefaultBoolean.True;
             this.txtYDPZThreshold.Properties.AutoHeight = false;
             this.txtYDPZThreshold.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
-            new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Glyph, "Hz", -1, false, true, false, editorButtonImageOptions1, new DevExpress.Utils.KeyShortcut(System.Windows.Forms.Keys.None), serializableAppearanceObject1, serializableAppearanceObject2, serializableAppearanceObject3, serializableAppearanceObject4, "", null, null, DevExpress.Utils.ToolTipAnchor.Default)});
+            new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Glyph, "Hz", -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.txtYDPZThreshold.Properties.MaskSettings.Set("MaskManagerType", typeof(DevExpress.Data.Mask.NumericMaskManager));
             this.txtYDPZThreshold.Properties.MaskSettings.Set("MaskManagerSignature", "allowNull=False");
             this.txtYDPZThreshold.Properties.MaskSettings.Set("mask", "f0");
-            this.txtYDPZThreshold.Size = new System.Drawing.Size(372, 22);
+            this.txtYDPZThreshold.Size = new System.Drawing.Size(377, 22);
             this.txtYDPZThreshold.StyleController = this.layoutControl1;
             this.txtYDPZThreshold.TabIndex = 7;
             // 
             // txtWmtsSource
             // 
             this.txtWmtsSource.EditValue = 0;
-            this.txtWmtsSource.Location = new System.Drawing.Point(12, 282);
+            this.txtWmtsSource.Location = new System.Drawing.Point(12, 332);
             this.txtWmtsSource.Name = "txtWmtsSource";
             this.txtWmtsSource.Properties.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
-            this.txtWmtsSource.Size = new System.Drawing.Size(372, 25);
+            this.txtWmtsSource.Size = new System.Drawing.Size(377, 25);
             this.txtWmtsSource.StyleController = this.layoutControl1;
             this.txtWmtsSource.TabIndex = 7;
             this.txtWmtsSource.ToolTipController = this.toolTipController1;
@@ -234,19 +239,20 @@ namespace DW5S.App.UserControl
             this.emptySpaceItem2,
             this.itemWmtsSource,
             this.itemMapLayer,
-            this.layoutControlItem6});
+            this.layoutControlItem6,
+            this.layoutControlItem2});
             this.Root.Name = "Root";
-            this.Root.Size = new System.Drawing.Size(396, 446);
+            this.Root.Size = new System.Drawing.Size(401, 465);
             this.Root.TextVisible = false;
             // 
             // layoutControlItem3
             // 
             this.layoutControlItem3.Control = this.btnSave;
-            this.layoutControlItem3.Location = new System.Drawing.Point(125, 354);
+            this.layoutControlItem3.Location = new System.Drawing.Point(126, 404);
             this.layoutControlItem3.MinSize = new System.Drawing.Size(36, 27);
             this.layoutControlItem3.Name = "layoutControlItem3";
             this.layoutControlItem3.Padding = new DevExpress.XtraLayout.Utils.Padding(2, 2, 10, 2);
-            this.layoutControlItem3.Size = new System.Drawing.Size(125, 72);
+            this.layoutControlItem3.Size = new System.Drawing.Size(127, 41);
             this.layoutControlItem3.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
             this.layoutControlItem3.TextSize = new System.Drawing.Size(0, 0);
             this.layoutControlItem3.TextVisible = false;
@@ -261,7 +267,7 @@ namespace DW5S.App.UserControl
             this.layoutControlItem4.MinSize = new System.Drawing.Size(100, 50);
             this.layoutControlItem4.Name = "layoutControlItem4";
             this.layoutControlItem4.Padding = new DevExpress.XtraLayout.Utils.Padding(2, 2, 9, 2);
-            this.layoutControlItem4.Size = new System.Drawing.Size(376, 50);
+            this.layoutControlItem4.Size = new System.Drawing.Size(381, 50);
             this.layoutControlItem4.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
             this.layoutControlItem4.Text = "HTTP服务端口";
             this.layoutControlItem4.TextLocation = DevExpress.Utils.Locations.Top;
@@ -276,7 +282,7 @@ namespace DW5S.App.UserControl
             this.layoutControlItem5.MinSize = new System.Drawing.Size(100, 50);
             this.layoutControlItem5.Name = "layoutControlItem5";
             this.layoutControlItem5.Padding = new DevExpress.XtraLayout.Utils.Padding(2, 2, 9, 2);
-            this.layoutControlItem5.Size = new System.Drawing.Size(376, 50);
+            this.layoutControlItem5.Size = new System.Drawing.Size(381, 50);
             this.layoutControlItem5.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
             this.layoutControlItem5.Text = "星历自动导入目录";
             this.layoutControlItem5.TextLocation = DevExpress.Utils.Locations.Top;
@@ -287,12 +293,12 @@ namespace DW5S.App.UserControl
             this.layoutControlItem1.Control = this.txtYDPZThreshold;
             this.layoutControlItem1.ControlAlignment = System.Drawing.ContentAlignment.TopLeft;
             this.layoutControlItem1.CustomizationFormText = "运动判证阈值";
-            this.layoutControlItem1.Location = new System.Drawing.Point(0, 143);
+            this.layoutControlItem1.Location = new System.Drawing.Point(0, 193);
             this.layoutControlItem1.MaxSize = new System.Drawing.Size(0, 50);
             this.layoutControlItem1.MinSize = new System.Drawing.Size(100, 50);
             this.layoutControlItem1.Name = "layoutControlItem1";
             this.layoutControlItem1.Padding = new DevExpress.XtraLayout.Utils.Padding(2, 2, 9, 2);
-            this.layoutControlItem1.Size = new System.Drawing.Size(376, 50);
+            this.layoutControlItem1.Size = new System.Drawing.Size(381, 50);
             this.layoutControlItem1.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
             this.layoutControlItem1.Text = "运动判证阈值";
             this.layoutControlItem1.TextLocation = DevExpress.Utils.Locations.Top;
@@ -301,12 +307,12 @@ namespace DW5S.App.UserControl
             // layoutControlItem8
             // 
             this.layoutControlItem8.Control = this.txtMapType;
-            this.layoutControlItem8.Location = new System.Drawing.Point(0, 193);
+            this.layoutControlItem8.Location = new System.Drawing.Point(0, 243);
             this.layoutControlItem8.MaxSize = new System.Drawing.Size(0, 53);
             this.layoutControlItem8.MinSize = new System.Drawing.Size(54, 53);
             this.layoutControlItem8.Name = "layoutControlItem8";
             this.layoutControlItem8.Padding = new DevExpress.XtraLayout.Utils.Padding(2, 2, 9, 2);
-            this.layoutControlItem8.Size = new System.Drawing.Size(376, 53);
+            this.layoutControlItem8.Size = new System.Drawing.Size(381, 53);
             this.layoutControlItem8.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
             this.layoutControlItem8.Text = "地图图源";
             this.layoutControlItem8.TextLocation = DevExpress.Utils.Locations.Top;
@@ -315,28 +321,28 @@ namespace DW5S.App.UserControl
             // emptySpaceItem1
             // 
             this.emptySpaceItem1.AllowHotTrack = false;
-            this.emptySpaceItem1.Location = new System.Drawing.Point(0, 354);
+            this.emptySpaceItem1.Location = new System.Drawing.Point(0, 404);
             this.emptySpaceItem1.Name = "emptySpaceItem1";
-            this.emptySpaceItem1.Size = new System.Drawing.Size(125, 72);
+            this.emptySpaceItem1.Size = new System.Drawing.Size(126, 41);
             this.emptySpaceItem1.TextSize = new System.Drawing.Size(0, 0);
             // 
             // emptySpaceItem2
             // 
             this.emptySpaceItem2.AllowHotTrack = false;
-            this.emptySpaceItem2.Location = new System.Drawing.Point(250, 354);
+            this.emptySpaceItem2.Location = new System.Drawing.Point(253, 404);
             this.emptySpaceItem2.Name = "emptySpaceItem2";
-            this.emptySpaceItem2.Size = new System.Drawing.Size(126, 72);
+            this.emptySpaceItem2.Size = new System.Drawing.Size(128, 41);
             this.emptySpaceItem2.TextSize = new System.Drawing.Size(0, 0);
             // 
             // itemWmtsSource
             // 
             this.itemWmtsSource.Control = this.txtWmtsSource;
-            this.itemWmtsSource.Location = new System.Drawing.Point(0, 246);
+            this.itemWmtsSource.Location = new System.Drawing.Point(0, 296);
             this.itemWmtsSource.MaxSize = new System.Drawing.Size(0, 53);
             this.itemWmtsSource.MinSize = new System.Drawing.Size(50, 53);
             this.itemWmtsSource.Name = "itemWmtsSource";
             this.itemWmtsSource.Padding = new DevExpress.XtraLayout.Utils.Padding(2, 2, 9, 2);
-            this.itemWmtsSource.Size = new System.Drawing.Size(376, 53);
+            this.itemWmtsSource.Size = new System.Drawing.Size(381, 53);
             this.itemWmtsSource.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
             this.itemWmtsSource.Text = "地图来源";
             this.itemWmtsSource.TextLocation = DevExpress.Utils.Locations.Top;
@@ -346,12 +352,12 @@ namespace DW5S.App.UserControl
             // itemMapLayer
             // 
             this.itemMapLayer.Control = this.txtLayer;
-            this.itemMapLayer.Location = new System.Drawing.Point(0, 299);
+            this.itemMapLayer.Location = new System.Drawing.Point(0, 349);
             this.itemMapLayer.MaxSize = new System.Drawing.Size(0, 55);
             this.itemMapLayer.MinSize = new System.Drawing.Size(54, 55);
             this.itemMapLayer.Name = "itemMapLayer";
             this.itemMapLayer.Padding = new DevExpress.XtraLayout.Utils.Padding(2, 2, 9, 2);
-            this.itemMapLayer.Size = new System.Drawing.Size(376, 55);
+            this.itemMapLayer.Size = new System.Drawing.Size(381, 55);
             this.itemMapLayer.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
             this.itemMapLayer.Text = "图层类型";
             this.itemMapLayer.TextAlignMode = DevExpress.XtraLayout.TextAlignModeItem.AutoSize;
@@ -367,19 +373,45 @@ namespace DW5S.App.UserControl
             this.layoutControlItem6.MaxSize = new System.Drawing.Size(0, 43);
             this.layoutControlItem6.MinSize = new System.Drawing.Size(100, 43);
             this.layoutControlItem6.Name = "layoutControlItem6";
-            this.layoutControlItem6.Size = new System.Drawing.Size(376, 43);
+            this.layoutControlItem6.Size = new System.Drawing.Size(381, 43);
             this.layoutControlItem6.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
             this.layoutControlItem6.Text = "系统时区";
             this.layoutControlItem6.TextLocation = DevExpress.Utils.Locations.Top;
             this.layoutControlItem6.TextSize = new System.Drawing.Size(96, 14);
             // 
+            // txtSampleDire
+            // 
+            this.txtSampleDire.Location = new System.Drawing.Point(12, 179);
+            this.txtSampleDire.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
+            this.txtSampleDire.Name = "txtSampleDire";
+            this.txtSampleDire.Properties.AutoHeight = false;
+            this.txtSampleDire.Size = new System.Drawing.Size(377, 22);
+            this.txtSampleDire.StyleController = this.layoutControl1;
+            this.txtSampleDire.TabIndex = 6;
+            // 
+            // layoutControlItem2
+            // 
+            this.layoutControlItem2.Control = this.txtSampleDire;
+            this.layoutControlItem2.ControlAlignment = System.Drawing.ContentAlignment.TopLeft;
+            this.layoutControlItem2.CustomizationFormText = "样本存储目录";
+            this.layoutControlItem2.Location = new System.Drawing.Point(0, 143);
+            this.layoutControlItem2.MaxSize = new System.Drawing.Size(0, 50);
+            this.layoutControlItem2.MinSize = new System.Drawing.Size(100, 50);
+            this.layoutControlItem2.Name = "layoutControlItem2";
+            this.layoutControlItem2.Padding = new DevExpress.XtraLayout.Utils.Padding(2, 2, 9, 2);
+            this.layoutControlItem2.Size = new System.Drawing.Size(381, 50);
+            this.layoutControlItem2.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
+            this.layoutControlItem2.Text = "样本存储目录";
+            this.layoutControlItem2.TextLocation = DevExpress.Utils.Locations.Top;
+            this.layoutControlItem2.TextSize = new System.Drawing.Size(96, 14);
+            // 
             // CtrlSysSettings
             // 
             this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F);
             this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
             this.Controls.Add(this.tablePanel1);
             this.Name = "CtrlSysSettings";
-            this.Size = new System.Drawing.Size(619, 527);
+            this.Size = new System.Drawing.Size(619, 557);
             this.Load += new System.EventHandler(this.CtrlSysSettings_Load);
             ((System.ComponentModel.ISupportInitialize)(this.tablePanel1)).EndInit();
             this.tablePanel1.ResumeLayout(false);
@@ -403,6 +435,8 @@ namespace DW5S.App.UserControl
             ((System.ComponentModel.ISupportInitialize)(this.itemWmtsSource)).EndInit();
             ((System.ComponentModel.ISupportInitialize)(this.itemMapLayer)).EndInit();
             ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem6)).EndInit();
+            ((System.ComponentModel.ISupportInitialize)(this.txtSampleDire.Properties)).EndInit();
+            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).EndInit();
             this.ResumeLayout(false);
 
         }
@@ -431,5 +465,7 @@ namespace DW5S.App.UserControl
         private DevExpress.Utils.ToolTipController toolTipController1;
         private DevExpress.XtraScheduler.UI.TimeZoneEdit txtTimeZone;
         private DevExpress.XtraLayout.LayoutControlItem layoutControlItem6;
+        private DevExpress.XtraEditors.TextEdit txtSampleDire;
+        private DevExpress.XtraLayout.LayoutControlItem layoutControlItem2;
     }
 }

+ 15 - 0
DW5S.App/UserControl/CtrlSysSettings.cs

@@ -105,6 +105,20 @@ namespace DW5S.App.UserControl
                     DxHelper.MsgBoxHelper.ShowError("系统时区错误!");
                     return;
                 }
+                if (string.IsNullOrWhiteSpace(txtSampleDire.Text))
+                {
+                    DxHelper.MsgBoxHelper.ShowError("请输入样本存储目录!");
+                    return;
+                }
+                try
+                {
+                    Directory.CreateDirectory(txtSampleDire.Text);
+                }
+                catch (Exception ex)
+                {
+                    DxHelper.MsgBoxHelper.ShowError($"创建样本存储目录失败,{ex.Message}!");
+                    return;
+                }
                 var unitOfWork = IocContainer.UnitOfWork;
                 var repsSys = unitOfWork.Of<SysSetings>();
                 var res = await repsSys.FirstOrDefaultAsync();
@@ -129,6 +143,7 @@ namespace DW5S.App.UserControl
                 res.ZoneHours = tz.BaseUtcOffset.TotalHours;
                 res.HttpPort = port;
                 res.XLDirectory = txtXLDirectory.Text;
+                res.SampleDirectory = txtSampleDire.Text;
                 bool mapChanged = res.MapType != txtMapType.SelectedIndex;
                 res.MapType = txtMapType.SelectedIndex;
                 if (txtMapType.SelectedIndex != 0)