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

📄 ktypemanage.cs

📁 c#编写的汽车销售公司erp进销存系统
💻 CS
📖 第 1 页 / 共 2 页
字号:
using System;
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.BusinessLayer;
using CallCenter.Modules;
using System.Data;

namespace CallCenter.BusinessInterfaces.MainForms
{
	/// <summary>
	/// KTypeManage 的摘要说明。
	/// </summary>
	public class KTypeManage : System.Windows.Forms.UserControl
	{
		private System.Data.DataSet ds;
		private bool flag = true;

		
		/// <summary>
		/// 知识分类数据操作类
		/// </summary>
		private KnowledgeTypeBLL bll = new KnowledgeTypeBLL();
		private TreeListNode overNode;
		private System.Windows.Forms.MenuItem menuItem2;
		private DevExpress.XtraTreeList.Columns.TreeListColumn colTNAME;
		private DevExpress.XtraTreeList.Columns.TreeListColumn colOAMARK;
		private System.Windows.Forms.ContextMenu contextMenu1;
		private System.Windows.Forms.MenuItem menuItem3;
		private DevExpress.XtraTreeList.Columns.TreeListColumn colID;
		private DevExpress.XtraTreeList.Columns.TreeListColumn colPARENTID;
		private DevExpress.XtraEditors.PanelControl panel2;
		private System.Windows.Forms.Label labTitle;
		private DevExpress.XtraTreeList.TreeList treeList1;
		private DevExpress.XtraEditors.Repository.RepositoryItemCheckEdit repositoryItemCheckEdit1;
		private DevExpress.XtraEditors.Repository.RepositoryItemTextEdit repositoryItemTextEdit1;
	
		/// <summary>
		/// 必需的设计器变量。
		/// </summary>
		private System.ComponentModel.Container components = null;

		public KTypeManage()
		{
			//
			// Windows 窗体设计器支持所必需的
			//
			InitializeComponent();

			//
			// 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.menuItem2 = new System.Windows.Forms.MenuItem();
			this.colTNAME = new DevExpress.XtraTreeList.Columns.TreeListColumn();
			this.colOAMARK = new DevExpress.XtraTreeList.Columns.TreeListColumn();
			this.contextMenu1 = new System.Windows.Forms.ContextMenu();
			this.menuItem3 = new System.Windows.Forms.MenuItem();
			this.colID = new DevExpress.XtraTreeList.Columns.TreeListColumn();
			this.colPARENTID = new DevExpress.XtraTreeList.Columns.TreeListColumn();
			this.panel2 = new DevExpress.XtraEditors.PanelControl();
			this.treeList1 = new DevExpress.XtraTreeList.TreeList();
			this.repositoryItemTextEdit1 = new DevExpress.XtraEditors.Repository.RepositoryItemTextEdit();
			this.labTitle = new System.Windows.Forms.Label();
			this.repositoryItemCheckEdit1 = new DevExpress.XtraEditors.Repository.RepositoryItemCheckEdit();
			((System.ComponentModel.ISupportInitialize)(this.panel2)).BeginInit();
			this.panel2.SuspendLayout();
			((System.ComponentModel.ISupportInitialize)(this.treeList1)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.repositoryItemTextEdit1)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.repositoryItemCheckEdit1)).BeginInit();
			this.SuspendLayout();
			// 
			// menuItem2
			// 
			this.menuItem2.Index = 1;
			this.menuItem2.Text = "删除";
			this.menuItem2.Click += new System.EventHandler(this.menuItem2_Click);
			// 
			// colTNAME
			// 
			this.colTNAME.Caption = "分类名称";
			this.colTNAME.FieldName = "TNAME";
			this.colTNAME.Name = "colTNAME";
			this.colTNAME.OptionsColumn.AllowSize = false;
			this.colTNAME.OptionsColumn.AllowSort = false;
			this.colTNAME.OptionsColumn.ShowInCustomizationForm = false;
			this.colTNAME.VisibleIndex = 0;
			this.colTNAME.Width = 160;
			// 
			// colOAMARK
			// 
			this.colOAMARK.Caption = "OAMARK";
			this.colOAMARK.FieldName = "OAMARK";
			this.colOAMARK.Name = "colOAMARK";
			// 
			// contextMenu1
			// 
			this.contextMenu1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
																						 this.menuItem3,
																						 this.menuItem2});
			// 
			// menuItem3
			// 
			this.menuItem3.Index = 0;
			this.menuItem3.Text = "添加";
			this.menuItem3.Click += new System.EventHandler(this.menuItem3_Click);
			// 
			// colID
			// 
			this.colID.Caption = "ID";
			this.colID.FieldName = "ID";
			this.colID.Name = "colID";
			// 
			// colPARENTID
			// 
			this.colPARENTID.Caption = "PARENTID";
			this.colPARENTID.FieldName = "PARENTID";
			this.colPARENTID.Name = "colPARENTID";
			// 
			// panel2
			// 
			this.panel2.Appearance.BackColor = System.Drawing.Color.Transparent;
			this.panel2.Appearance.Options.UseBackColor = true;
			this.panel2.Controls.Add(this.treeList1);
			this.panel2.Dock = System.Windows.Forms.DockStyle.Fill;
			this.panel2.Location = new System.Drawing.Point(0, 0);
			this.panel2.Name = "panel2";
			this.panel2.Size = new System.Drawing.Size(656, 565);
			this.panel2.TabIndex = 13;
			// 
			// treeList1
			// 
			this.treeList1.AllowDrop = true;
			this.treeList1.Appearance.Empty.BackColor = System.Drawing.Color.White;
			this.treeList1.Appearance.Empty.Options.UseBackColor = true;
			this.treeList1.Appearance.GroupButton.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(128)), ((System.Byte)(128)), ((System.Byte)(255)));
			this.treeList1.Appearance.GroupButton.Options.UseBackColor = true;
			this.treeList1.Appearance.GroupFooter.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(128)), ((System.Byte)(128)), ((System.Byte)(255)));
			this.treeList1.Appearance.GroupFooter.Options.UseBackColor = true;
			this.treeList1.Appearance.HeaderPanel.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(219)), ((System.Byte)(233)), ((System.Byte)(244)));
			this.treeList1.Appearance.HeaderPanel.Options.UseBackColor = true;
			this.treeList1.Appearance.Row.BackColor = System.Drawing.Color.White;
			this.treeList1.Appearance.Row.Options.UseBackColor = true;
			this.treeList1.Appearance.TreeLine.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(90)), ((System.Byte)(180)), ((System.Byte)(232)));
			this.treeList1.Appearance.TreeLine.Options.UseBackColor = true;
			this.treeList1.Columns.AddRange(new DevExpress.XtraTreeList.Columns.TreeListColumn[] {
																									 this.colTNAME,
																									 this.colOAMARK,
																									 this.colID,
																									 this.colPARENTID});
			this.treeList1.Dock = System.Windows.Forms.DockStyle.Fill;
			this.treeList1.Location = new System.Drawing.Point(3, 3);
			this.treeList1.Name = "treeList1";
			this.treeList1.OptionsBehavior.AutoFocusNewNode = true;
			this.treeList1.OptionsBehavior.AutoMoveRowFocus = true;
			this.treeList1.OptionsBehavior.AutoPopulateColumns = false;
			this.treeList1.OptionsBehavior.DragNodes = true;
			this.treeList1.OptionsBehavior.ShowEditorOnMouseUp = true;
			this.treeList1.OptionsBehavior.ShowToolTips = false;
			this.treeList1.OptionsMenu.EnableColumnMenu = false;
			this.treeList1.RepositoryItems.AddRange(new DevExpress.XtraEditors.Repository.RepositoryItem[] {
																											   this.repositoryItemTextEdit1});
			this.treeList1.Size = new System.Drawing.Size(650, 559);
			this.treeList1.TabIndex = 4;
			this.treeList1.CellValueChanged += new DevExpress.XtraTreeList.CellValueChangedEventHandler(this.treeList1_CellValueChanged);
			this.treeList1.MouseDown += new System.Windows.Forms.MouseEventHandler(this.treeList1_MouseDown);
			this.treeList1.DragDrop += new System.Windows.Forms.DragEventHandler(this.treeList1_DragDrop);
			this.treeList1.DragOver += new System.Windows.Forms.DragEventHandler(this.treeList1_DragOver);
			// 
			// repositoryItemTextEdit1
			// 
			this.repositoryItemTextEdit1.AutoHeight = false;
			this.repositoryItemTextEdit1.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.Default;
			this.repositoryItemTextEdit1.Name = "repositoryItemTextEdit1";
			// 
			// labTitle
			// 
			this.labTitle.BackColor = System.Drawing.Color.Transparent;
			this.labTitle.Location = new System.Drawing.Point(112, 8);
			this.labTitle.Name = "labTitle";
			this.labTitle.Size = new System.Drawing.Size(136, 16);
			this.labTitle.TabIndex = 3;
			this.labTitle.Text = "知识分类列表";
			// 
			// repositoryItemCheckEdit1
			// 
			this.repositoryItemCheckEdit1.AllowFocused = false;
			this.repositoryItemCheckEdit1.AutoHeight = false;
			this.repositoryItemCheckEdit1.Name = "repositoryItemCheckEdit1";
			// 
			// KTypeManage

⌨️ 快捷键说明

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