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

📄 wbcreatucontrol.cs

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

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


namespace CallCenter.BusinessInterfaces.BaseForms {

	/// <summary>
	/// WBCreatUControl 的摘要说明。
	/// </summary>
	public class WBCreatUControl : System.Windows.Forms.UserControl {
		private System.Windows.Forms.TabControl tabControl1;
		private System.Windows.Forms.TabPage tabPCreatWB;
		private System.Windows.Forms.TabPage tabPWBList;
		private System.Windows.Forms.Panel panel_WBList;
		private System.Windows.Forms.Label label1;
		private System.Windows.Forms.Label label2;
		private System.Windows.Forms.Label label3;
		private System.Windows.Forms.Label label4;
		private System.Windows.Forms.TextBox tbTelNo;
		private System.Windows.Forms.TextBox tbCallTime;
		private System.Windows.Forms.ComboBox cmbTCType;
		private System.Windows.Forms.ComboBox cmbOPType;
		private System.Windows.Forms.Button btnCreatWB;

		private DialogResult m_dlg;
		private ListViewHelper m_WBListView;
		private bool isNeddRefreshWBLV = false;
		private bool isNeddRefreshTWBLV=false;
		private bool canSaved=false;
		private int[] WBLV_DisplayCol = {2,3,6,7,10,13};
		private int[] TWBLV_DisplayCol = {2,3,6,7,10,13};
		private WorkBillInfo m_workBillInf=null;
		private CustomerInfo  m_CustomerInfo=null;
		private TelCallingControl tcc=null;
		private WorkBillBLL m_WorkBillBLL = new WorkBillBLL();
		private SPServiceNoteBLL m_SPServiceNoteBLL =new SPServiceNoteBLL();
		private OtherBLL m_OtherBLL = new OtherBLL();
		private System.Windows.Forms.Button btnEdit;
		private System.Windows.Forms.Panel panel_TWBList;
		private System.Windows.Forms.TabControl tabControl2;
		private System.Windows.Forms.Button btnRefreshTWBL;
		private System.Windows.Forms.Button btnRefreshWBL;

		#region properties
		private int WBState{
			get{
				
				if("处理中"== this.cmbOPType.Text) {
					return 10 ;
				}
				else if("已处理"== this.cmbOPType.Text) {
					return 20;
				}
				else if("已办结"== this.cmbOPType.Text) {
					return 30;
				}
				else if("已归档"== this.cmbOPType.Text) {
					return 40;
				}
				else {
					return -1;
				}
			}
		}
		#endregion

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

		public WBCreatUControl(){
			InitializeComponent();
			InitializeListView();
			InitTodayWBListView();
			InitializeCmbOPState();
			InitializeWBType();
			this.tcc = (TelCallingControl)MainWindow.telcall;
			tcc.CustomerInfoChanged+=new CustomerInfoChangedHandler(tcc_CustomerInfoChanged);
		}
		/// <summary> 
		/// 清理所有正在使用的资源。
		/// </summary>
		protected override void Dispose( bool disposing ) {
			if( disposing ) {
				if(components != null) {
					components.Dispose();
				}
			}
			base.Dispose( disposing );
		}

		#region 组件设计器生成的代码
		/// <summary> 
		/// 设计器支持所需的方法 - 不要使用代码编辑器 
		/// 修改此方法的内容。
		/// </summary>
		private void InitializeComponent() {
			this.tabControl1 = new System.Windows.Forms.TabControl();
			this.tabPCreatWB = new System.Windows.Forms.TabPage();
			this.label4 = new System.Windows.Forms.Label();
			this.tbTelNo = new System.Windows.Forms.TextBox();
			this.tbCallTime = new System.Windows.Forms.TextBox();
			this.cmbTCType = new System.Windows.Forms.ComboBox();
			this.cmbOPType = new System.Windows.Forms.ComboBox();
			this.btnCreatWB = new System.Windows.Forms.Button();
			this.label1 = new System.Windows.Forms.Label();
			this.label2 = new System.Windows.Forms.Label();
			this.label3 = new System.Windows.Forms.Label();
			this.panel_WBList = new System.Windows.Forms.Panel();
			this.tabPWBList = new System.Windows.Forms.TabPage();
			this.panel_TWBList = new System.Windows.Forms.Panel();
			this.btnEdit = new System.Windows.Forms.Button();
			this.tabControl2 = new System.Windows.Forms.TabControl();
			this.btnRefreshTWBL = new System.Windows.Forms.Button();
			this.btnRefreshWBL = new System.Windows.Forms.Button();
			this.tabControl1.SuspendLayout();
			this.tabPCreatWB.SuspendLayout();
			this.tabPWBList.SuspendLayout();
			this.SuspendLayout();
			// 
			// tabControl1
			// 
			this.tabControl1.Controls.Add(this.tabPCreatWB);
			this.tabControl1.Controls.Add(this.tabPWBList);
			this.tabControl1.Dock = System.Windows.Forms.DockStyle.Bottom;
			this.tabControl1.Location = new System.Drawing.Point(0, 24);
			this.tabControl1.Name = "tabControl1";
			this.tabControl1.SelectedIndex = 0;
			this.tabControl1.Size = new System.Drawing.Size(872, 416);
			this.tabControl1.TabIndex = 0;
			this.tabControl1.SelectedIndexChanged += new System.EventHandler(this.tabControl1_SelectedIndexChanged);
			// 
			// tabPCreatWB
			// 
			this.tabPCreatWB.Controls.Add(this.btnRefreshWBL);
			this.tabPCreatWB.Controls.Add(this.label4);
			this.tabPCreatWB.Controls.Add(this.tbTelNo);
			this.tabPCreatWB.Controls.Add(this.tbCallTime);
			this.tabPCreatWB.Controls.Add(this.cmbTCType);
			this.tabPCreatWB.Controls.Add(this.cmbOPType);
			this.tabPCreatWB.Controls.Add(this.btnCreatWB);
			this.tabPCreatWB.Controls.Add(this.label1);
			this.tabPCreatWB.Controls.Add(this.label2);
			this.tabPCreatWB.Controls.Add(this.label3);
			this.tabPCreatWB.Controls.Add(this.panel_WBList);
			this.tabPCreatWB.Location = new System.Drawing.Point(4, 21);
			this.tabPCreatWB.Name = "tabPCreatWB";
			this.tabPCreatWB.Size = new System.Drawing.Size(864, 391);
			this.tabPCreatWB.TabIndex = 0;
			this.tabPCreatWB.Text = "生成工单";
			// 
			// label4
			// 
			this.label4.Location = new System.Drawing.Point(24, 208);
			this.label4.Name = "label4";
			this.label4.Size = new System.Drawing.Size(72, 23);
			this.label4.TabIndex = 5;
			this.label4.Text = "处理类型";
			// 
			// tbTelNo
			// 
			this.tbTelNo.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
			this.tbTelNo.Location = new System.Drawing.Point(112, 72);
			this.tbTelNo.Name = "tbTelNo";
			this.tbTelNo.ReadOnly = true;
			this.tbTelNo.Size = new System.Drawing.Size(128, 21);
			this.tbTelNo.TabIndex = 6;
			this.tbTelNo.Text = "";
			// 
			// tbCallTime
			// 
			this.tbCallTime.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
			this.tbCallTime.Location = new System.Drawing.Point(112, 112);
			this.tbCallTime.Name = "tbCallTime";
			this.tbCallTime.ReadOnly = true;
			this.tbCallTime.Size = new System.Drawing.Size(128, 21);
			this.tbCallTime.TabIndex = 7;
			this.tbCallTime.Text = "";
			// 
			// cmbTCType
			// 
			this.cmbTCType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
			this.cmbTCType.Location = new System.Drawing.Point(112, 160);
			this.cmbTCType.Name = "cmbTCType";
			this.cmbTCType.Size = new System.Drawing.Size(128, 20);
			this.cmbTCType.TabIndex = 8;
			// 
			// cmbOPType
			// 
			this.cmbOPType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
			this.cmbOPType.Location = new System.Drawing.Point(112, 208);
			this.cmbOPType.Name = "cmbOPType";
			this.cmbOPType.Size = new System.Drawing.Size(128, 20);
			this.cmbOPType.TabIndex = 9;
			// 
			// btnCreatWB
			// 
			this.btnCreatWB.Enabled = false;
			this.btnCreatWB.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
			this.btnCreatWB.Location = new System.Drawing.Point(96, 288);
			this.btnCreatWB.Name = "btnCreatWB";
			this.btnCreatWB.Size = new System.Drawing.Size(75, 24);
			this.btnCreatWB.TabIndex = 10;
			this.btnCreatWB.Text = "生成工单";
			this.btnCreatWB.Click += new System.EventHandler(this.btnCreatWB_Click);
			// 
			// label1
			// 
			this.label1.Location = new System.Drawing.Point(24, 72);
			this.label1.Name = "label1";
			this.label1.TabIndex = 2;
			this.label1.Text = "来电号码";
			// 
			// label2
			// 
			this.label2.Location = new System.Drawing.Point(24, 112);
			this.label2.Name = "label2";
			this.label2.Size = new System.Drawing.Size(80, 23);
			this.label2.TabIndex = 3;
			this.label2.Text = "来电时间";
			// 
			// label3
			// 
			this.label3.Location = new System.Drawing.Point(24, 160);
			this.label3.Name = "label3";
			this.label3.Size = new System.Drawing.Size(80, 23);
			this.label3.TabIndex = 4;
			this.label3.Text = "来电类型";
			// 
			// panel_WBList
			// 
			this.panel_WBList.BackColor = System.Drawing.SystemColors.Menu;
			this.panel_WBList.Dock = System.Windows.Forms.DockStyle.Right;
			this.panel_WBList.Location = new System.Drawing.Point(353, 0);
			this.panel_WBList.Name = "panel_WBList";
			this.panel_WBList.Size = new System.Drawing.Size(511, 391);
			this.panel_WBList.TabIndex = 1;
			// 
			// tabPWBList
			// 
			this.tabPWBList.Controls.Add(this.btnRefreshTWBL);
			this.tabPWBList.Controls.Add(this.panel_TWBList);
			this.tabPWBList.Controls.Add(this.btnEdit);
			this.tabPWBList.Location = new System.Drawing.Point(4, 21);
			this.tabPWBList.Name = "tabPWBList";
			this.tabPWBList.Size = new System.Drawing.Size(864, 391);
			this.tabPWBList.TabIndex = 1;
			this.tabPWBList.Text = "当天工单列表";
			// 
			// panel_TWBList
			// 
			this.panel_TWBList.Dock = System.Windows.Forms.DockStyle.Left;
			this.panel_TWBList.Location = new System.Drawing.Point(0, 0);
			this.panel_TWBList.Name = "panel_TWBList";
			this.panel_TWBList.Size = new System.Drawing.Size(511, 391);
			this.panel_TWBList.TabIndex = 0;
			// 
			// btnEdit
			// 
			this.btnEdit.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
			this.btnEdit.Location = new System.Drawing.Point(688, 216);
			this.btnEdit.Name = "btnEdit";
			this.btnEdit.Size = new System.Drawing.Size(75, 24);
			this.btnEdit.TabIndex = 0;
			this.btnEdit.Text = "编辑";
			this.btnEdit.Click += new System.EventHandler(this.btnEdit_Click);
			// 
			// tabControl2
			// 
			this.tabControl2.Dock = System.Windows.Forms.DockStyle.Fill;

⌨️ 快捷键说明

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