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

📄 knowledgedetailform.cs

📁 c#编写的汽车销售公司erp进销存系统
💻 CS
字号:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;

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

namespace CallCenter.BusinessInterfaces.BaseForms {
	/// <summary>
	/// KnowledgeDetailForm 的摘要说明。
	/// </summary>
	public class KnowledgeDetailForm : System.Windows.Forms.Form {
		private System.Windows.Forms.TextBox txtcamount;
		private System.Windows.Forms.TextBox txtiamount;
		private System.Windows.Forms.TextBox txtoamount;
		private System.Windows.Forms.TextBox txtkkeywords;
		private System.Windows.Forms.TextBox txtktitle;
		private System.Windows.Forms.Label label12;
		private System.Windows.Forms.Label label11;
		private System.Windows.Forms.Label label10;
		private System.Windows.Forms.Label label7;
		private System.Windows.Forms.Label label3;
		private System.Windows.Forms.Label label1;
		private System.Windows.Forms.Label label13;
		private System.Windows.Forms.TextBox tbOamark;
		private System.Windows.Forms.Button btnClose;

		private KnowledgeInfo m_KnowledgeInfo =null;
		private string m_ktype = string.Empty;
		private System.Windows.Forms.RichTextBox tbKcontent;
		/// <summary>
		/// 必需的设计器变量。
		/// </summary>
		private System.ComponentModel.Container components = null;

		#region properties
				
		private int Cboamark{
			set{
				if(value==0) {
					this.tbOamark.Text="不可访问";
				}
				else {
					this.tbOamark.Text="可访问";
				}
			}
		}
		public string KType{
			set{
				this.m_ktype = value;
//				this.txtktype.Text=m_ktype;
			}
			get{
				return this.m_ktype;
			}
		}
		#endregion

		public KnowledgeDetailForm() {
			//
			// Windows 窗体设计器支持所必需的
			//
			InitializeComponent();
			//
			// TODO: 在 InitializeComponent 调用后添加任何构造函数代码
			//
		}
		public KnowledgeDetailForm(KnowledgeInfo KInfo):this(){
			this.m_KnowledgeInfo = KInfo;
			DownLoadKnowledgeInfo();
		}

		/// <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.txtcamount = new System.Windows.Forms.TextBox();
			this.txtiamount = new System.Windows.Forms.TextBox();
			this.txtoamount = new System.Windows.Forms.TextBox();
			this.txtkkeywords = new System.Windows.Forms.TextBox();
			this.txtktitle = new System.Windows.Forms.TextBox();
			this.label12 = new System.Windows.Forms.Label();
			this.label11 = new System.Windows.Forms.Label();
			this.label10 = new System.Windows.Forms.Label();
			this.label7 = new System.Windows.Forms.Label();
			this.label3 = new System.Windows.Forms.Label();
			this.label1 = new System.Windows.Forms.Label();
			this.label13 = new System.Windows.Forms.Label();
			this.tbOamark = new System.Windows.Forms.TextBox();
			this.btnClose = new System.Windows.Forms.Button();
			this.tbKcontent = new System.Windows.Forms.RichTextBox();
			this.SuspendLayout();
			// 
			// txtcamount
			// 
			this.txtcamount.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
			this.txtcamount.Location = new System.Drawing.Point(680, 80);
			this.txtcamount.Name = "txtcamount";
			this.txtcamount.ReadOnly = true;
			this.txtcamount.Size = new System.Drawing.Size(56, 21);
			this.txtcamount.TabIndex = 52;
			this.txtcamount.Text = "";
			// 
			// txtiamount
			// 
			this.txtiamount.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
			this.txtiamount.Location = new System.Drawing.Point(496, 80);
			this.txtiamount.Name = "txtiamount";
			this.txtiamount.ReadOnly = true;
			this.txtiamount.Size = new System.Drawing.Size(64, 21);
			this.txtiamount.TabIndex = 51;
			this.txtiamount.Text = "";
			// 
			// txtoamount
			// 
			this.txtoamount.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
			this.txtoamount.Location = new System.Drawing.Point(336, 80);
			this.txtoamount.Name = "txtoamount";
			this.txtoamount.ReadOnly = true;
			this.txtoamount.Size = new System.Drawing.Size(64, 21);
			this.txtoamount.TabIndex = 50;
			this.txtoamount.Text = "";
			// 
			// txtkkeywords
			// 
			this.txtkkeywords.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
			this.txtkkeywords.Enabled = false;
			this.txtkkeywords.Location = new System.Drawing.Point(176, 48);
			this.txtkkeywords.Name = "txtkkeywords";
			this.txtkkeywords.ReadOnly = true;
			this.txtkkeywords.Size = new System.Drawing.Size(560, 21);
			this.txtkkeywords.TabIndex = 44;
			this.txtkkeywords.Text = "";
			// 
			// txtktitle
			// 
			this.txtktitle.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
			this.txtktitle.Enabled = false;
			this.txtktitle.Location = new System.Drawing.Point(176, 16);
			this.txtktitle.Name = "txtktitle";
			this.txtktitle.ReadOnly = true;
			this.txtktitle.Size = new System.Drawing.Size(560, 21);
			this.txtktitle.TabIndex = 42;
			this.txtktitle.Text = "";
			// 
			// label12
			// 
			this.label12.Location = new System.Drawing.Point(592, 80);
			this.label12.Name = "label12";
			this.label12.Size = new System.Drawing.Size(80, 23);
			this.label12.TabIndex = 41;
			this.label12.Text = "坐席访问量";
			this.label12.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			// 
			// label11
			// 
			this.label11.Location = new System.Drawing.Point(416, 80);
			this.label11.Name = "label11";
			this.label11.Size = new System.Drawing.Size(80, 23);
			this.label11.TabIndex = 40;
			this.label11.Text = "IVR访问量 ";
			this.label11.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			// 
			// label10
			// 
			this.label10.Location = new System.Drawing.Point(256, 80);
			this.label10.Name = "label10";
			this.label10.Size = new System.Drawing.Size(80, 23);
			this.label10.TabIndex = 39;
			this.label10.Text = "外网访问量";
			this.label10.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			// 
			// label7
			// 
			this.label7.Location = new System.Drawing.Point(88, 80);
			this.label7.Name = "label7";
			this.label7.Size = new System.Drawing.Size(96, 23);
			this.label7.TabIndex = 36;
			this.label7.Text = "外网访问标识";
			this.label7.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			// 
			// label3
			// 
			this.label3.Location = new System.Drawing.Point(88, 48);
			this.label3.Name = "label3";
			this.label3.Size = new System.Drawing.Size(80, 23);
			this.label3.TabIndex = 32;
			this.label3.Text = "关 键 字";
			this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			// 
			// label1
			// 
			this.label1.Location = new System.Drawing.Point(88, 16);
			this.label1.Name = "label1";
			this.label1.Size = new System.Drawing.Size(80, 23);
			this.label1.TabIndex = 30;
			this.label1.Text = "知识标题";
			this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			// 
			// label13
			// 
			this.label13.Location = new System.Drawing.Point(16, 224);
			this.label13.Name = "label13";
			this.label13.TabIndex = 55;
			this.label13.Text = "知识内容";
			// 
			// tbOamark
			// 
			this.tbOamark.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
			this.tbOamark.Location = new System.Drawing.Point(176, 80);
			this.tbOamark.Name = "tbOamark";
			this.tbOamark.ReadOnly = true;
			this.tbOamark.Size = new System.Drawing.Size(64, 21);
			this.tbOamark.TabIndex = 56;
			this.tbOamark.Text = "";
			// 
			// btnClose
			// 
			this.btnClose.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
			this.btnClose.Location = new System.Drawing.Point(704, 600);
			this.btnClose.Name = "btnClose";
			this.btnClose.Size = new System.Drawing.Size(75, 24);
			this.btnClose.TabIndex = 57;
			this.btnClose.Text = "关闭";
			this.btnClose.Click += new System.EventHandler(this.btnClose_Click);
			// 
			// tbKcontent
			// 
			this.tbKcontent.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
			this.tbKcontent.Location = new System.Drawing.Point(104, 120);
			this.tbKcontent.Name = "tbKcontent";
			this.tbKcontent.Size = new System.Drawing.Size(688, 472);
			this.tbKcontent.TabIndex = 58;
			this.tbKcontent.Text = "";
			// 
			// KnowledgeDetailForm
			// 
			this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
			this.BackColor = System.Drawing.Color.Gainsboro;
			this.ClientSize = new System.Drawing.Size(806, 635);
			this.Controls.Add(this.tbKcontent);
			this.Controls.Add(this.btnClose);
			this.Controls.Add(this.tbOamark);
			this.Controls.Add(this.txtoamount);
			this.Controls.Add(this.txtiamount);
			this.Controls.Add(this.txtcamount);
			this.Controls.Add(this.txtktitle);
			this.Controls.Add(this.txtkkeywords);
			this.Controls.Add(this.label3);
			this.Controls.Add(this.label1);
			this.Controls.Add(this.label10);
			this.Controls.Add(this.label7);
			this.Controls.Add(this.label11);
			this.Controls.Add(this.label12);
			this.Controls.Add(this.label13);
			this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Fixed3D;
			this.MaximizeBox = false;
			this.MinimizeBox = false;
			this.Name = "KnowledgeDetailForm";
			this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
			this.Text = "知识信息明细";
			this.ResumeLayout(false);

		}
		#endregion

		private void DownLoadKnowledgeInfo(){
			if(m_KnowledgeInfo!=null){
				//this.txtktype.Text=KType;
				this.txtktitle.Text = m_KnowledgeInfo.ktitle;
				this.txtkkeywords.Text=m_KnowledgeInfo.kkeywords;
//				this.txtkwid.Text=m_KnowledgeInfo.kwid;
//				this.txtkwname.Text=m_KnowledgeInfo.kwname;
//				this.txtkwdate.Text=m_KnowledgeInfo.kwdate;
				this.Cboamark = m_KnowledgeInfo.oamark;
//				this.txtkaid.Text=m_KnowledgeInfo.kaid;
//				this.txtkaname.Text=m_KnowledgeInfo.kaname;
				this.txtoamount.Text=m_KnowledgeInfo.oamount.ToString();
				this.txtiamount.Text=m_KnowledgeInfo.iamount.ToString();
				this.txtcamount.Text=m_KnowledgeInfo.camount.ToString();			
				this.tbKcontent.Rtf=m_KnowledgeInfo.kcontent;
			}
		}

		private void btnClose_Click(object sender, System.EventArgs e) {
			this.Close();
		}

	}
}

⌨️ 快捷键说明

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