Ver código fonte

feat:导入面板

mux 4 meses atrás
pai
commit
cd66b8cb99

+ 175 - 0
DPTools/components/DWForm/ImportGLdataForm.Designer.cs

@@ -0,0 +1,175 @@
+namespace Uninpho.Tools.components.DWForm
+{
+    partial class ImportGLdataForm
+    {
+        /// <summary>
+        /// Required designer variable.
+        /// </summary>
+        private System.ComponentModel.IContainer components = null;
+
+        /// <summary>
+        /// Clean up any resources being used.
+        /// </summary>
+        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
+        protected override void Dispose(bool disposing)
+        {
+            if (disposing && (components != null))
+            {
+                components.Dispose();
+            }
+            base.Dispose(disposing);
+        }
+
+        #region Windows Form Designer generated code
+
+        /// <summary>
+        /// Required method for Designer support - do not modify
+        /// the contents of this method with the code editor.
+        /// </summary>
+        private void InitializeComponent()
+        {
+            this.labelControl7 = new DevExpress.XtraEditors.LabelControl();
+            this.labelControl1 = new DevExpress.XtraEditors.LabelControl();
+            this.xianlumingText = new DevExpress.XtraEditors.ComboBoxEdit();
+            this.zhanmingText = new DevExpress.XtraEditors.ComboBoxEdit();
+            this.NewcancelBtn = new DevExpress.XtraEditors.SimpleButton();
+            this.newCreateBtnSon = new DevExpress.XtraEditors.SimpleButton();
+            this.simpleButton2 = new DevExpress.XtraEditors.SimpleButton();
+            this.lblShow = new DevExpress.XtraEditors.LabelControl();
+            this.txtindir = new System.Windows.Forms.TextBox();
+            ((System.ComponentModel.ISupportInitialize)(this.xianlumingText.Properties)).BeginInit();
+            ((System.ComponentModel.ISupportInitialize)(this.zhanmingText.Properties)).BeginInit();
+            this.SuspendLayout();
+            // 
+            // labelControl7
+            // 
+            this.labelControl7.Location = new System.Drawing.Point(66, 45);
+            this.labelControl7.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
+            this.labelControl7.Name = "labelControl7";
+            this.labelControl7.Size = new System.Drawing.Size(60, 18);
+            this.labelControl7.TabIndex = 5;
+            this.labelControl7.Text = "线路名:";
+            this.labelControl7.Click += new System.EventHandler(this.labelControl7_Click);
+            // 
+            // labelControl1
+            // 
+            this.labelControl1.Location = new System.Drawing.Point(41, 102);
+            this.labelControl1.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
+            this.labelControl1.Name = "labelControl1";
+            this.labelControl1.Size = new System.Drawing.Size(90, 18);
+            this.labelControl1.TabIndex = 6;
+            this.labelControl1.Text = "站(所)名:";
+            this.labelControl1.Click += new System.EventHandler(this.labelControl1_Click);
+            // 
+            // xianlumingText
+            // 
+            this.xianlumingText.Location = new System.Drawing.Point(135, 41);
+            this.xianlumingText.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
+            this.xianlumingText.Name = "xianlumingText";
+            this.xianlumingText.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
+            new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
+            this.xianlumingText.Size = new System.Drawing.Size(345, 24);
+            this.xianlumingText.TabIndex = 3;
+            this.xianlumingText.SelectedIndexChanged += new System.EventHandler(this.xianlumingText_SelectedIndexChanged);
+            // 
+            // zhanmingText
+            // 
+            this.zhanmingText.Enabled = false;
+            this.zhanmingText.Location = new System.Drawing.Point(134, 98);
+            this.zhanmingText.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
+            this.zhanmingText.Name = "zhanmingText";
+            this.zhanmingText.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
+            new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
+            this.zhanmingText.Size = new System.Drawing.Size(346, 24);
+            this.zhanmingText.TabIndex = 4;
+            this.zhanmingText.SelectedIndexChanged += new System.EventHandler(this.zhanmingText_SelectedIndexChanged);
+            // 
+            // NewcancelBtn
+            // 
+            this.NewcancelBtn.Location = new System.Drawing.Point(407, 223);
+            this.NewcancelBtn.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
+            this.NewcancelBtn.Name = "NewcancelBtn";
+            this.NewcancelBtn.Size = new System.Drawing.Size(73, 28);
+            this.NewcancelBtn.TabIndex = 7;
+            this.NewcancelBtn.Text = "取消";
+            // 
+            // newCreateBtnSon
+            // 
+            this.newCreateBtnSon.Location = new System.Drawing.Point(285, 223);
+            this.newCreateBtnSon.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
+            this.newCreateBtnSon.Name = "newCreateBtnSon";
+            this.newCreateBtnSon.Size = new System.Drawing.Size(73, 28);
+            this.newCreateBtnSon.TabIndex = 8;
+            this.newCreateBtnSon.Text = "新建";
+            this.newCreateBtnSon.Click += new System.EventHandler(this.newCreateBtnSon_Click);
+            // 
+            // simpleButton2
+            // 
+            this.simpleButton2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+            this.simpleButton2.Location = new System.Drawing.Point(394, 152);
+            this.simpleButton2.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
+            this.simpleButton2.Name = "simpleButton2";
+            this.simpleButton2.Size = new System.Drawing.Size(86, 30);
+            this.simpleButton2.TabIndex = 7;
+            this.simpleButton2.Text = "浏览...";
+            this.simpleButton2.Click += new System.EventHandler(this.simpleButton2_Click);
+            // 
+            // lblShow
+            // 
+            this.lblShow.Location = new System.Drawing.Point(51, 160);
+            this.lblShow.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
+            this.lblShow.Name = "lblShow";
+            this.lblShow.Size = new System.Drawing.Size(65, 18);
+            this.lblShow.TabIndex = 10;
+            this.lblShow.Text = "文件目录:";
+            this.lblShow.Click += new System.EventHandler(this.lblShow_Click);
+            // 
+            // txtindir
+            // 
+            this.txtindir.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
+            | System.Windows.Forms.AnchorStyles.Right)));
+            this.txtindir.Location = new System.Drawing.Point(136, 155);
+            this.txtindir.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
+            this.txtindir.Name = "txtindir";
+            this.txtindir.Size = new System.Drawing.Size(252, 26);
+            this.txtindir.TabIndex = 4;
+            this.txtindir.TextChanged += new System.EventHandler(this.txtindir_TextChanged);
+            // 
+            // ImportGLdataForm
+            // 
+            this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 18F);
+            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+            this.ClientSize = new System.Drawing.Size(531, 281);
+            this.Controls.Add(this.simpleButton2);
+            this.Controls.Add(this.lblShow);
+            this.Controls.Add(this.NewcancelBtn);
+            this.Controls.Add(this.newCreateBtnSon);
+            this.Controls.Add(this.labelControl7);
+            this.Controls.Add(this.txtindir);
+            this.Controls.Add(this.labelControl1);
+            this.Controls.Add(this.xianlumingText);
+            this.Controls.Add(this.zhanmingText);
+            this.MaximizeBox = false;
+            this.MinimizeBox = false;
+            this.Name = "ImportGLdataForm";
+            this.Text = "导入功率配置文件";
+            ((System.ComponentModel.ISupportInitialize)(this.xianlumingText.Properties)).EndInit();
+            ((System.ComponentModel.ISupportInitialize)(this.zhanmingText.Properties)).EndInit();
+            this.ResumeLayout(false);
+            this.PerformLayout();
+
+        }
+
+        #endregion
+
+        private DevExpress.XtraEditors.LabelControl labelControl7;
+        private DevExpress.XtraEditors.LabelControl labelControl1;
+        private DevExpress.XtraEditors.ComboBoxEdit xianlumingText;
+        private DevExpress.XtraEditors.ComboBoxEdit zhanmingText;
+        private DevExpress.XtraEditors.SimpleButton NewcancelBtn;
+        private DevExpress.XtraEditors.SimpleButton newCreateBtnSon;
+        private DevExpress.XtraEditors.SimpleButton simpleButton2;
+        private DevExpress.XtraEditors.LabelControl lblShow;
+        private System.Windows.Forms.TextBox txtindir;
+    }
+}

+ 66 - 0
DPTools/components/DWForm/ImportGLdataForm.cs

@@ -0,0 +1,66 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Text;
+using System.Linq;
+using System.Threading.Tasks;
+using System.Windows.Forms;
+using DevExpress.XtraEditors;
+
+namespace Uninpho.Tools.components.DWForm
+{
+    public partial class ImportGLdataForm : DevExpress.XtraEditors.XtraForm
+    {
+        public ImportGLdataForm()
+        {
+            InitializeComponent();
+        }
+
+        private void labelControl7_Click(object sender, EventArgs e)
+        {
+
+        }
+
+        private void labelControl1_Click(object sender, EventArgs e)
+        {
+
+        }
+
+        private void xianlumingText_SelectedIndexChanged(object sender, EventArgs e)
+        {
+
+        }
+
+        private void zhanmingText_SelectedIndexChanged(object sender, EventArgs e)
+        {
+
+        }
+
+        private void groupBox1_Enter(object sender, EventArgs e)
+        {
+
+        }
+
+        private void lblShow_Click(object sender, EventArgs e)
+        {
+
+        }
+
+        private void txtindir_TextChanged(object sender, EventArgs e)
+        {
+
+        }
+
+        private void simpleButton2_Click(object sender, EventArgs e)
+        {
+
+        }
+
+        private void newCreateBtnSon_Click(object sender, EventArgs e)
+        {
+
+        }
+    }
+}

+ 120 - 0
DPTools/components/DWForm/ImportGLdataForm.resx

@@ -0,0 +1,120 @@
+<?xml version="1.0" encoding="utf-8"?>
+<root>
+  <!-- 
+    Microsoft ResX Schema 
+    
+    Version 2.0
+    
+    The primary goals of this format is to allow a simple XML format 
+    that is mostly human readable. The generation and parsing of the 
+    various data types are done through the TypeConverter classes 
+    associated with the data types.
+    
+    Example:
+    
+    ... ado.net/XML headers & schema ...
+    <resheader name="resmimetype">text/microsoft-resx</resheader>
+    <resheader name="version">2.0</resheader>
+    <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
+    <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
+    <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
+    <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
+    <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
+        <value>[base64 mime encoded serialized .NET Framework object]</value>
+    </data>
+    <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+        <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
+        <comment>This is a comment</comment>
+    </data>
+                
+    There are any number of "resheader" rows that contain simple 
+    name/value pairs.
+    
+    Each data row contains a name, and value. The row also contains a 
+    type or mimetype. Type corresponds to a .NET class that support 
+    text/value conversion through the TypeConverter architecture. 
+    Classes that don't support this are serialized and stored with the 
+    mimetype set.
+    
+    The mimetype is used for serialized objects, and tells the 
+    ResXResourceReader how to depersist the object. This is currently not 
+    extensible. For a given mimetype the value must be set accordingly:
+    
+    Note - application/x-microsoft.net.object.binary.base64 is the format 
+    that the ResXResourceWriter will generate, however the reader can 
+    read any of the formats listed below.
+    
+    mimetype: application/x-microsoft.net.object.binary.base64
+    value   : The object must be serialized with 
+            : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
+            : and then encoded with base64 encoding.
+    
+    mimetype: application/x-microsoft.net.object.soap.base64
+    value   : The object must be serialized with 
+            : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
+            : and then encoded with base64 encoding.
+
+    mimetype: application/x-microsoft.net.object.bytearray.base64
+    value   : The object must be serialized into a byte array 
+            : using a System.ComponentModel.TypeConverter
+            : and then encoded with base64 encoding.
+    -->
+  <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
+    <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
+    <xsd:element name="root" msdata:IsDataSet="true">
+      <xsd:complexType>
+        <xsd:choice maxOccurs="unbounded">
+          <xsd:element name="metadata">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" />
+              </xsd:sequence>
+              <xsd:attribute name="name" use="required" type="xsd:string" />
+              <xsd:attribute name="type" type="xsd:string" />
+              <xsd:attribute name="mimetype" type="xsd:string" />
+              <xsd:attribute ref="xml:space" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="assembly">
+            <xsd:complexType>
+              <xsd:attribute name="alias" type="xsd:string" />
+              <xsd:attribute name="name" type="xsd:string" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="data">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+                <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
+              </xsd:sequence>
+              <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
+              <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
+              <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
+              <xsd:attribute ref="xml:space" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="resheader">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+              </xsd:sequence>
+              <xsd:attribute name="name" type="xsd:string" use="required" />
+            </xsd:complexType>
+          </xsd:element>
+        </xsd:choice>
+      </xsd:complexType>
+    </xsd:element>
+  </xsd:schema>
+  <resheader name="resmimetype">
+    <value>text/microsoft-resx</value>
+  </resheader>
+  <resheader name="version">
+    <value>2.0</value>
+  </resheader>
+  <resheader name="reader">
+    <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+  </resheader>
+  <resheader name="writer">
+    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+  </resheader>
+</root>