⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 knowledgeform.cs

📁 c#编写的汽车销售公司erp进销存系统
💻 CS
📖 第 1 页 / 共 2 页
字号:
using System;
using System.Data;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;

using DevExpress.Utils;
using DevExpress.XtraTreeList;
using DevExpress.XtraTreeList.Columns;
using DevExpress.XtraTreeList.Nodes;

using CallCenter.BusinessInterfaces.BaseForms.Models;
using CallCenter.BusinessInterfaces.MainForms;
using CallCenter.BusinessInterfaces;
using CallCenter.BusinessLayer;
using CallCenter.Modules;

namespace CallCenter.BusinessInterfaces.BaseForms {
	/// <summary>
	/// KnowledgeForm 的摘要说明。
	/// </summary>
	public class KnowledgeForm : System.Windows.Forms.UserControl {
		private System.Windows.Forms.Panel panel1;
		private DevExpress.XtraTreeList.TreeList treeList1;
		private DevExpress.XtraTreeList.Columns.TreeListColumn colTNAME;
		private DevExpress.XtraTreeList.Columns.TreeListColumn colOAMARK;
		private DevExpress.XtraTreeList.Columns.TreeListColumn colID;
		private DevExpress.XtraTreeList.Columns.TreeListColumn colPARENTID;
		private System.Data.DataSet ds;
		private KnowledgeTypeBLL bll = new KnowledgeTypeBLL();
		private System.Windows.Forms.Panel RightPanel;
		private System.Windows.Forms.GroupBox groupBox1;
		private System.Windows.Forms.Label label1;
		private System.Windows.Forms.Label label2;
		private System.Windows.Forms.Label label3;
		private System.Windows.Forms.TextBox tbTitle;
		private System.Windows.Forms.TextBox tbKeyWords;
		private System.Windows.Forms.TextBox tbType;
		private System.Windows.Forms.Button btnRetrieve;
		private System.Windows.Forms.Button btnReset;
		private System.Windows.Forms.Panel KLVPanel;

		private string m_kType=string.Empty;
		private ListViewHelper knowledageLV = new  ListViewHelper();
		int[] DisPlayCol ={1,3};
		private KnowledgeInfo m_KnowledgeInfo=new KnowledgeInfo();
		private KnowledgeInfoColumn m_KLVColName = new KnowledgeInfoColumn();
		private KnowledgeBLL m_KnowledgeBLL = new KnowledgeBLL();
		private IList m_KList;
		private System.Windows.Forms.Splitter splitter1;
		private System.Windows.Forms.Panel panel2;
		private System.Windows.Forms.ContextMenu ctMenu_Edit;

		/// <summary>
		/// 必需的设计器变量。
		/// </summary>
		private System.ComponentModel.Container components = null;

		public KnowledgeForm() {
			//
			// Windows 窗体设计器支持所必需的
			//
			InitializeComponent();
			InitKListView();
			//
			// TODO: 在 InitializeComponent 调用后添加任何构造函数代码
			//
		}

		/// <summary>
		/// 清理所有正在使用的资源。
		/// </summary>
		protected override void Dispose( bool disposing ) {
			if( disposing ) {
				if(components != null) {
					components.Dispose();
				}
			}
			base.Dispose( disposing );
		}

		#region Windows 窗体设计器生成的代码
		/// <summary>
		/// 设计器支持所需的方法 - 不要使用代码编辑器修改
		/// 此方法的内容。
		/// </summary>
		private void InitializeComponent() {
			this.panel1 = new System.Windows.Forms.Panel();
			this.treeList1 = new DevExpress.XtraTreeList.TreeList();
			this.RightPanel = new System.Windows.Forms.Panel();
			this.panel2 = new System.Windows.Forms.Panel();
			this.groupBox1 = new System.Windows.Forms.GroupBox();
			this.btnReset = new System.Windows.Forms.Button();
			this.btnRetrieve = new System.Windows.Forms.Button();
			this.tbType = new System.Windows.Forms.TextBox();
			this.tbKeyWords = new System.Windows.Forms.TextBox();
			this.tbTitle = new System.Windows.Forms.TextBox();
			this.label3 = new System.Windows.Forms.Label();
			this.label2 = new System.Windows.Forms.Label();
			this.label1 = new System.Windows.Forms.Label();
			this.KLVPanel = new System.Windows.Forms.Panel();
			this.splitter1 = new System.Windows.Forms.Splitter();
			this.ctMenu_Edit = new System.Windows.Forms.ContextMenu();
			this.panel1.SuspendLayout();
			((System.ComponentModel.ISupportInitialize)(this.treeList1)).BeginInit();
			this.RightPanel.SuspendLayout();
			this.panel2.SuspendLayout();
			this.groupBox1.SuspendLayout();
			this.SuspendLayout();
			// 
			// panel1
			// 
			this.panel1.Controls.Add(this.treeList1);
			this.panel1.Dock = System.Windows.Forms.DockStyle.Left;
			this.panel1.Location = new System.Drawing.Point(0, 0);
			this.panel1.Name = "panel1";
			this.panel1.Size = new System.Drawing.Size(240, 504);
			this.panel1.TabIndex = 0;
			// 
			// treeList1
			// 
			this.treeList1.Dock = System.Windows.Forms.DockStyle.Fill;
			this.treeList1.Location = new System.Drawing.Point(0, 0);
			this.treeList1.Name = "treeList1";
			this.treeList1.Size = new System.Drawing.Size(240, 504);
			this.treeList1.TabIndex = 0;
			// 
			// RightPanel
			// 
			this.RightPanel.BackColor = System.Drawing.Color.Gainsboro;
			this.RightPanel.Controls.Add(this.panel2);
			this.RightPanel.Controls.Add(this.KLVPanel);
			this.RightPanel.Dock = System.Windows.Forms.DockStyle.Fill;
			this.RightPanel.Location = new System.Drawing.Point(240, 0);
			this.RightPanel.Name = "RightPanel";
			this.RightPanel.Size = new System.Drawing.Size(616, 504);
			this.RightPanel.TabIndex = 1;
			// 
			// panel2
			// 
			this.panel2.Controls.Add(this.groupBox1);
			this.panel2.Dock = System.Windows.Forms.DockStyle.Top;
			this.panel2.Location = new System.Drawing.Point(0, 0);
			this.panel2.Name = "panel2";
			this.panel2.Size = new System.Drawing.Size(616, 112);
			this.panel2.TabIndex = 2;
			// 
			// groupBox1
			// 
			this.groupBox1.Controls.Add(this.btnReset);
			this.groupBox1.Controls.Add(this.btnRetrieve);
			this.groupBox1.Controls.Add(this.tbType);
			this.groupBox1.Controls.Add(this.tbKeyWords);
			this.groupBox1.Controls.Add(this.tbTitle);
			this.groupBox1.Controls.Add(this.label3);
			this.groupBox1.Controls.Add(this.label2);
			this.groupBox1.Controls.Add(this.label1);
			this.groupBox1.Location = new System.Drawing.Point(24, 8);
			this.groupBox1.Name = "groupBox1";
			this.groupBox1.Size = new System.Drawing.Size(568, 96);
			this.groupBox1.TabIndex = 0;
			this.groupBox1.TabStop = false;
			this.groupBox1.Text = "查询";
			// 
			// btnReset
			// 
			this.btnReset.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
			this.btnReset.Location = new System.Drawing.Point(448, 56);
			this.btnReset.Name = "btnReset";
			this.btnReset.Size = new System.Drawing.Size(75, 24);
			this.btnReset.TabIndex = 7;
			this.btnReset.Text = "重置";
			this.btnReset.Click += new System.EventHandler(this.btnReset_Click);
			// 
			// btnRetrieve
			// 
			this.btnRetrieve.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
			this.btnRetrieve.Location = new System.Drawing.Point(448, 16);
			this.btnRetrieve.Name = "btnRetrieve";
			this.btnRetrieve.Size = new System.Drawing.Size(75, 24);
			this.btnRetrieve.TabIndex = 6;
			this.btnRetrieve.Text = "检索";
			this.btnRetrieve.Click += new System.EventHandler(this.btnRetrieve_Click);
			// 
			// tbType
			// 
			this.tbType.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
			this.tbType.Location = new System.Drawing.Point(112, 64);
			this.tbType.Name = "tbType";
			this.tbType.Size = new System.Drawing.Size(264, 21);
			this.tbType.TabIndex = 5;
			this.tbType.Text = "";
			// 
			// tbKeyWords
			// 
			this.tbKeyWords.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
			this.tbKeyWords.Location = new System.Drawing.Point(112, 40);
			this.tbKeyWords.Name = "tbKeyWords";
			this.tbKeyWords.Size = new System.Drawing.Size(264, 21);
			this.tbKeyWords.TabIndex = 4;
			this.tbKeyWords.Text = "";
			this.tbKeyWords.TextChanged += new System.EventHandler(this.tbKeyWords_TextChanged);
			// 
			// tbTitle
			// 
			this.tbTitle.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
			this.tbTitle.Location = new System.Drawing.Point(112, 16);
			this.tbTitle.Name = "tbTitle";
			this.tbTitle.Size = new System.Drawing.Size(264, 21);
			this.tbTitle.TabIndex = 3;
			this.tbTitle.Text = "";
			this.tbTitle.TextChanged += new System.EventHandler(this.tbTitle_TextChanged);
			// 
			// label3
			// 
			this.label3.Location = new System.Drawing.Point(48, 64);
			this.label3.Name = "label3";
			this.label3.Size = new System.Drawing.Size(64, 23);
			this.label3.TabIndex = 2;
			this.label3.Text = "分  类";
			// 
			// label2
			// 
			this.label2.Location = new System.Drawing.Point(48, 40);
			this.label2.Name = "label2";
			this.label2.TabIndex = 1;
			this.label2.Text = "关键字";
			// 
			// label1

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -