chenxy 6 gadi atpakaļ
vecāks
revīzija
ff4f4dba9a

+ 8 - 0
DK.Basics/InvoiceLayout/LayoutBox.cs

@@ -138,6 +138,14 @@ namespace Dongke.WinForm.Controls.InvoiceLayout
         #endregion 成员变量
 
         #region 构造函数
+
+        /// <summary>
+        /// 构造函数
+        /// </summary>
+        public LayoutBox()
+            : this(InvoiceLayout.LayoutMode.Preview)
+        {
+        }
         /// <summary>
         /// 构造函数
         /// </summary>

+ 35 - 35
DK.Basics/WFControls/11_Standard/09_SearchBox/ScbSearchBox.Designer.cs

@@ -35,43 +35,43 @@
         /// </summary>
         private void InitializeComponent()
         {
-			this.btnSearch = new System.Windows.Forms.Button();
-			this.txtCondition1 = new Dongke.WinForm.Controls.TxtTextBox();
-			this.SuspendLayout();
-			// 
-			// btnSearch
-			// 
-			this.btnSearch.BackgroundImage = global::Dongke.WinForm.Controls.Properties.Resources.SearchBox_Button_00;
-			this.btnSearch.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom;
-			this.btnSearch.Dock = System.Windows.Forms.DockStyle.Right;
-			this.btnSearch.Location = new System.Drawing.Point(103, 0);
-			this.btnSearch.Name = "btnSearch";
-			this.btnSearch.Size = new System.Drawing.Size(21, 21);
-			this.btnSearch.TabIndex = 1;
-			this.btnSearch.UseVisualStyleBackColor = true;
-			this.btnSearch.Click += new System.EventHandler(this.btnSearch_Click);
-			// 
-			// txtCondition1
-			// 
-			this.txtCondition1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
+            this.btnSearch = new System.Windows.Forms.Button();
+            this.txtCondition1 = new Dongke.WinForm.Controls.TxtTextBox();
+            this.SuspendLayout();
+            // 
+            // btnSearch
+            // 
+            this.btnSearch.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+            this.btnSearch.BackgroundImage = global::Dongke.WinForm.Controls.Properties.Resources.SearchBox_Button_00;
+            this.btnSearch.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom;
+            this.btnSearch.Location = new System.Drawing.Point(103, 0);
+            this.btnSearch.Name = "btnSearch";
+            this.btnSearch.Size = new System.Drawing.Size(21, 21);
+            this.btnSearch.TabIndex = 1;
+            this.btnSearch.UseVisualStyleBackColor = true;
+            this.btnSearch.Click += new System.EventHandler(this.btnSearch_Click);
+            // 
+            // txtCondition1
+            // 
+            this.txtCondition1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
             | System.Windows.Forms.AnchorStyles.Left) 
             | System.Windows.Forms.AnchorStyles.Right)));
-			this.txtCondition1.Location = new System.Drawing.Point(0, 0);
-			this.txtCondition1.Name = "txtCondition1";
-			this.txtCondition1.ReadOnly = true;
-			this.txtCondition1.Size = new System.Drawing.Size(100, 21);
-			this.txtCondition1.TabIndex = 0;
-			this.txtCondition1.TextChanged += new System.EventHandler(this.txtCondition1_TextChanged);
-			// 
-			// ScbSearchBox
-			// 
-			this.BackColor = System.Drawing.Color.Transparent;
-			this.Controls.Add(this.txtCondition1);
-			this.Controls.Add(this.btnSearch);
-			this.Name = "ScbSearchBox";
-			this.Size = new System.Drawing.Size(124, 21);
-			this.ResumeLayout(false);
-			this.PerformLayout();
+            this.txtCondition1.Location = new System.Drawing.Point(0, 0);
+            this.txtCondition1.Name = "txtCondition1";
+            this.txtCondition1.ReadOnly = true;
+            this.txtCondition1.Size = new System.Drawing.Size(100, 21);
+            this.txtCondition1.TabIndex = 0;
+            this.txtCondition1.TextChanged += new System.EventHandler(this.txtCondition1_TextChanged);
+            // 
+            // ScbSearchBox
+            // 
+            this.BackColor = System.Drawing.Color.Transparent;
+            this.Controls.Add(this.txtCondition1);
+            this.Controls.Add(this.btnSearch);
+            this.Name = "ScbSearchBox";
+            this.Size = new System.Drawing.Size(124, 21);
+            this.ResumeLayout(false);
+            this.PerformLayout();
 
         }
 

+ 14 - 7
DK.Basics/WFControls/11_Standard/09_SearchBox/ScbSearchBox.cs

@@ -247,13 +247,20 @@ namespace Dongke.WinForm.Controls
 		protected List<TextBox> _queryControls = new List<TextBox>();
 
 		protected int _searchedPKMember;
-		#endregion
-
-		#region 构造函数
-		/// <summary>
-		/// 查询文本框控件
-		/// </summary>
-		public ScbSearchBox(bool isInitControls = true)
+        #endregion
+
+        #region 构造函数
+        /// <summary>
+        /// 查询文本框控件
+        /// </summary>
+        public ScbSearchBox()
+            :this(true)
+        {
+        }
+        /// <summary>
+        /// 查询文本框控件
+        /// </summary>
+        public ScbSearchBox(bool isInitControls = true)
 		{
 			this.InitializeComponent();
 			CommonSetting.InitControls(this);