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

📄 favoriteform.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.DALFactory;
using CallCenter.IDAL;
using CallCenter.Modules;
using CallCenter.OracleDAL;
using System.Data;


namespace  CallCenter.BusinessInterfaces.MainForms
{
	/// <summary>
	/// FavoriteForm 的摘要说明。
	/// </summary>
	public class FavoriteForm : 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.Splitter splitter1;
		private System.Windows.Forms.DataGrid dgFavor;
		private DataSet dsf=null;
		private System.Windows.Forms.ContextMenu contextMenu1;
		private System.Windows.Forms.MenuItem menuItem1;
		private System.Windows.Forms.MenuItem menuItem2;
		private int i=0;
		
		private string node;
		private DevExpress.XtraEditors.PanelControl panelControl1;
		private WebMIS.GoldFilter.GridDataFilter gridDataFilter1;
		/// <summary>
		/// 必需的设计器变量。
		/// </summary>
		private System.ComponentModel.Container components = null;

		public FavoriteForm()
		{
			//
			// 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.panel1 = new System.Windows.Forms.Panel();
			this.treeList1 = new DevExpress.XtraTreeList.TreeList();
			this.splitter1 = new System.Windows.Forms.Splitter();
			this.dgFavor = new System.Windows.Forms.DataGrid();
			this.contextMenu1 = new System.Windows.Forms.ContextMenu();
			this.menuItem1 = new System.Windows.Forms.MenuItem();
			this.menuItem2 = new System.Windows.Forms.MenuItem();
			this.panelControl1 = new DevExpress.XtraEditors.PanelControl();
			this.gridDataFilter1 = new WebMIS.GoldFilter.GridDataFilter();
			this.panel1.SuspendLayout();
			((System.ComponentModel.ISupportInitialize)(this.treeList1)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.dgFavor)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.panelControl1)).BeginInit();
			this.panelControl1.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(208, 541);
			this.panel1.TabIndex = 0;
			// 
			// treeList1
			// 
			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.Dock = System.Windows.Forms.DockStyle.Fill;
			this.treeList1.Location = new System.Drawing.Point(0, 0);
			this.treeList1.LookAndFeel.SkinName = "Liquid Sky";
			this.treeList1.LookAndFeel.Style = DevExpress.LookAndFeel.LookAndFeelStyle.Skin;
			this.treeList1.Name = "treeList1";
			this.treeList1.OptionsMenu.EnableColumnMenu = false;
			this.treeList1.Size = new System.Drawing.Size(208, 541);
			this.treeList1.TabIndex = 0;
			// 
			// splitter1
			// 
			this.splitter1.Location = new System.Drawing.Point(208, 0);
			this.splitter1.Name = "splitter1";
			this.splitter1.Size = new System.Drawing.Size(3, 541);
			this.splitter1.TabIndex = 1;
			this.splitter1.TabStop = false;
			// 
			// dgFavor
			// 
			this.dgFavor.AlternatingBackColor = System.Drawing.Color.GhostWhite;
			this.dgFavor.BackColor = System.Drawing.Color.GhostWhite;
			this.dgFavor.BackgroundColor = System.Drawing.Color.White;
			this.dgFavor.CaptionBackColor = System.Drawing.Color.FromArgb(((System.Byte)(90)), ((System.Byte)(180)), ((System.Byte)(232)));
			this.dgFavor.CaptionForeColor = System.Drawing.Color.Black;
			this.dgFavor.CaptionText = "收藏夹列表";
			this.dgFavor.ContextMenu = this.contextMenu1;
			this.dgFavor.DataMember = "";
			this.dgFavor.Dock = System.Windows.Forms.DockStyle.Fill;
			this.dgFavor.HeaderForeColor = System.Drawing.SystemColors.ControlText;
			this.dgFavor.Location = new System.Drawing.Point(211, 0);
			this.dgFavor.Name = "dgFavor";
			this.dgFavor.ReadOnly = true;
			this.dgFavor.Size = new System.Drawing.Size(533, 509);
			this.dgFavor.TabIndex = 2;
			// 
			// contextMenu1
			// 
			this.contextMenu1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
																						 this.menuItem1,
																						 this.menuItem2});
			// 
			// menuItem1
			// 
			this.menuItem1.Index = 0;
			this.menuItem1.Text = "取消收藏";
			this.menuItem1.Click += new System.EventHandler(this.menuItem1_Click);
			// 
			// menuItem2
			// 
			this.menuItem2.Index = 1;
			this.menuItem2.Text = "查看详细";
			this.menuItem2.Click += new System.EventHandler(this.menuItem2_Click);
			// 
			// panelControl1
			// 
			this.panelControl1.Controls.Add(this.gridDataFilter1);
			this.panelControl1.Dock = System.Windows.Forms.DockStyle.Bottom;
			this.panelControl1.Location = new System.Drawing.Point(211, 509);
			this.panelControl1.Name = "panelControl1";
			this.panelControl1.Size = new System.Drawing.Size(533, 32);
			this.panelControl1.TabIndex = 3;
			this.panelControl1.Text = "panelControl1";
			// 
			// gridDataFilter1
			// 
			this.gridDataFilter1.Dock = System.Windows.Forms.DockStyle.Fill;
			this.gridDataFilter1.Location = new System.Drawing.Point(2, 2);
			this.gridDataFilter1.Name = "gridDataFilter1";
			this.gridDataFilter1.Size = new System.Drawing.Size(529, 28);
			this.gridDataFilter1.TabIndex = 0;
			// 
			// FavoriteForm
			// 
			this.AutoScroll = true;
			this.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(141)), ((System.Byte)(193)), ((System.Byte)(230)));
			this.Controls.Add(this.dgFavor);
			this.Controls.Add(this.panelControl1);
			this.Controls.Add(this.splitter1);
			this.Controls.Add(this.panel1);
			this.Name = "FavoriteForm";
			this.Size = new System.Drawing.Size(744, 541);
			this.Load += new System.EventHandler(this.FavoriteForm_Load);
			this.panel1.ResumeLayout(false);
			((System.ComponentModel.ISupportInitialize)(this.treeList1)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.dgFavor)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.panelControl1)).EndInit();
			this.panelControl1.ResumeLayout(false);
			this.ResumeLayout(false);

		}
		#endregion

		private void FavoriteForm_Load(object sender, System.EventArgs e)
		{
			ds = bll.getKnowledgeType("KNOWLEDGETYPE");
			initTreeList();
			paintTreeList();
			getFavor();
		}

		private void getFavor()
		{
			this.dgFavor.CaptionBackColor=Color.FromArgb(ShareClass.Rcolor,ShareClass.Gcolor,ShareClass.Bcolor);
			this.dgFavor.BackgroundColor=Color.FromArgb(ShareClass.Rcolor,ShareClass.Gcolor,ShareClass.Bcolor);

⌨️ 快捷键说明

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