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

📄 workbillspnform.cs

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

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

namespace CallCenter.BusinessInterfaces.BaseForms {
	/// <summary>
	/// WorkBillSPNForm 的摘要说明。
	/// </summary>
	public class WorkBillSPNForm : System.Windows.Forms.Form {

		#region fields
		private System.Windows.Forms.TextBox textBox1;
		private System.Windows.Forms.Panel panel1;
		private System.Windows.Forms.Panel panel2;
		private System.Windows.Forms.GroupBox groupBox1;
		private System.Windows.Forms.GroupBox groupBox2;
		private System.Windows.Forms.ComboBox cmbCustmType;
		private System.Windows.Forms.Label label3;
		private System.Windows.Forms.TextBox tbCName;
		private System.Windows.Forms.Label label6;
		private System.Windows.Forms.TextBox tbCcontact;
		private System.Windows.Forms.Label label9;
		private System.Windows.Forms.Label label2;
		private System.Windows.Forms.Label label10;
		private System.Windows.Forms.Label label11;
		private System.Windows.Forms.GroupBox groupBox3;
		private System.Windows.Forms.Label label12;
		private System.Windows.Forms.Label label13;
		private System.Windows.Forms.Button button1;
		private System.Windows.Forms.ComboBox combWBState;
		private System.Windows.Forms.TextBox tbCComment;
		private System.Windows.Forms.ComboBox combWBGrade;
		private System.Windows.Forms.Label label14;
		private System.Windows.Forms.Label label15;
		private System.Windows.Forms.TextBox tbWBBrief;
		private System.Windows.Forms.Button btnClose;
		private System.Windows.Forms.Label label1;
		private System.Windows.Forms.TextBox tbTelNo;
		private System.Windows.Forms.Label label4;
		private System.Windows.Forms.ComboBox cmbCSex;
		private System.Windows.Forms.TextBox tbCAddress;
		private System.Windows.Forms.Label label5;
		private System.Windows.Forms.TextBox tbCallingTime;
		private System.Windows.Forms.Label label7;
		private System.Windows.Forms.TextBox tbSPName;
		private System.Windows.Forms.ComboBox cmbSPGrade;
		private System.Windows.Forms.Label label8;
		private System.Windows.Forms.Label label16;
		private System.Windows.Forms.TextBox tbSPDate;
		private System.Windows.Forms.TextBox tbSPContent;
		private System.Windows.Forms.TextBox tbSPComment;
		/// <summary>
		/// 必需的设计器变量。
		/// </summary>
		private System.ComponentModel.Container components = null;	

		private int m_wid=-1;
		private string m_opName="";
		private string m_opId="";

		private bool isNeedSavedWBC=false;
		private bool isNeedSavedSPN=false;
		private IList satisfyList;
		private IList m_spList;

		private SPServiceNoteInfo m_SPNInfo=null; 
		private WBContentInfo m_WBContentInfo=null;
		private CustomerInfo m_CustomerInfo=null;
		private WorkBillInfo m_WorkBillInfo=null;
		private OtherBLL m_OtherBLL=new OtherBLL();
		private SPServiceNoteBLL m_SPNBLL = new SPServiceNoteBLL();
		private WorkBillBLL m_WorkBillBLL =new WorkBillBLL();
		#endregion

		#region properites
		public IList SPList{
			get{
				if(m_spList==null){
					m_spList= new ArrayList();
				}
				return m_spList;
			}
			set{
				m_spList = value;
			}
		}
		private int WBState{
			get{
				if("处理中"== this.combWBState.Text) {
					return 10 ;
				}
				else if("已处理"== this.combWBState.Text) {
					return 20;
				}
				else if("已办结"== this.combWBState.Text) {
					return 30;
				}
				else if("已归档"== this.combWBState.Text) {
					return 40;
				}
				else {
					return -1;
				}
			}
		}
		#endregion

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

		public WorkBillSPNForm(CustomerInfo customerInfo,WorkBillInfo workBillInfo):this(){

			if(workBillInfo==null||customerInfo==null){
				return ;
			}
			this.m_CustomerInfo= customerInfo;
			this.m_opId=ShareClass.Operator;
			this.m_opName=ShareClass.OperatorChinese;
			this.m_WorkBillInfo = workBillInfo;
			this.m_wid = workBillInfo.id;
			DownLoadCustomerInfo(customerInfo);
			DownLoadWorkBillInfo(workBillInfo);
			InitializeSPNInfo();
		}

		/// <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.textBox1 = new System.Windows.Forms.TextBox();
			this.panel1 = new System.Windows.Forms.Panel();
			this.combWBState = new System.Windows.Forms.ComboBox();
			this.tbWBBrief = new System.Windows.Forms.TextBox();
			this.label15 = new System.Windows.Forms.Label();
			this.groupBox1 = new System.Windows.Forms.GroupBox();
			this.tbCallingTime = new System.Windows.Forms.TextBox();
			this.label7 = new System.Windows.Forms.Label();
			this.tbCAddress = new System.Windows.Forms.TextBox();
			this.label5 = new System.Windows.Forms.Label();
			this.tbTelNo = new System.Windows.Forms.TextBox();
			this.label1 = new System.Windows.Forms.Label();
			this.cmbCustmType = new System.Windows.Forms.ComboBox();
			this.label3 = new System.Windows.Forms.Label();
			this.tbCName = new System.Windows.Forms.TextBox();
			this.label4 = new System.Windows.Forms.Label();
			this.cmbCSex = new System.Windows.Forms.ComboBox();
			this.label6 = new System.Windows.Forms.Label();
			this.tbCcontact = new System.Windows.Forms.TextBox();
			this.label9 = new System.Windows.Forms.Label();
			this.groupBox3 = new System.Windows.Forms.GroupBox();
			this.combWBGrade = new System.Windows.Forms.ComboBox();
			this.tbCComment = new System.Windows.Forms.TextBox();
			this.label13 = new System.Windows.Forms.Label();
			this.label12 = new System.Windows.Forms.Label();
			this.label2 = new System.Windows.Forms.Label();
			this.groupBox2 = new System.Windows.Forms.GroupBox();
			this.cmbSPGrade = new System.Windows.Forms.ComboBox();
			this.tbSPComment = new System.Windows.Forms.TextBox();
			this.label16 = new System.Windows.Forms.Label();
			this.tbSPDate = new System.Windows.Forms.TextBox();
			this.label14 = new System.Windows.Forms.Label();
			this.tbSPContent = new System.Windows.Forms.TextBox();
			this.label11 = new System.Windows.Forms.Label();
			this.tbSPName = new System.Windows.Forms.TextBox();
			this.label10 = new System.Windows.Forms.Label();
			this.label8 = new System.Windows.Forms.Label();
			this.panel2 = new System.Windows.Forms.Panel();
			this.btnClose = new System.Windows.Forms.Button();
			this.button1 = new System.Windows.Forms.Button();
			this.panel1.SuspendLayout();
			this.groupBox1.SuspendLayout();
			this.groupBox3.SuspendLayout();
			this.groupBox2.SuspendLayout();
			this.panel2.SuspendLayout();
			this.SuspendLayout();
			// 
			// textBox1
			// 
			this.textBox1.Location = new System.Drawing.Point(0, 0);
			this.textBox1.Name = "textBox1";
			this.textBox1.TabIndex = 0;
			this.textBox1.Text = "";
			// 
			// panel1
			// 
			this.panel1.Controls.Add(this.combWBState);
			this.panel1.Controls.Add(this.tbWBBrief);
			this.panel1.Controls.Add(this.label15);
			this.panel1.Controls.Add(this.groupBox1);
			this.panel1.Controls.Add(this.groupBox3);
			this.panel1.Controls.Add(this.label2);
			this.panel1.Location = new System.Drawing.Point(0, 0);
			this.panel1.Name = "panel1";
			this.panel1.Size = new System.Drawing.Size(448, 344);
			this.panel1.TabIndex = 0;
			// 
			// combWBState
			// 
			this.combWBState.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
			this.combWBState.Location = new System.Drawing.Point(96, 160);
			this.combWBState.Name = "combWBState";
			this.combWBState.Size = new System.Drawing.Size(120, 20);
			this.combWBState.TabIndex = 3;
			// 
			// tbWBBrief
			// 
			this.tbWBBrief.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
			this.tbWBBrief.Location = new System.Drawing.Point(96, 192);
			this.tbWBBrief.Multiline = true;
			this.tbWBBrief.Name = "tbWBBrief";
			this.tbWBBrief.Size = new System.Drawing.Size(328, 40);
			this.tbWBBrief.TabIndex = 3;
			this.tbWBBrief.Text = "";
			// 
			// label15
			// 
			this.label15.Location = new System.Drawing.Point(24, 192);
			this.label15.Name = "label15";
			this.label15.TabIndex = 2;
			this.label15.Text = "工单简介";
			// 
			// groupBox1
			// 
			this.groupBox1.Controls.Add(this.tbCallingTime);
			this.groupBox1.Controls.Add(this.label7);
			this.groupBox1.Controls.Add(this.tbCAddress);
			this.groupBox1.Controls.Add(this.label5);
			this.groupBox1.Controls.Add(this.tbTelNo);
			this.groupBox1.Controls.Add(this.label1);
			this.groupBox1.Controls.Add(this.cmbCustmType);
			this.groupBox1.Controls.Add(this.label3);
			this.groupBox1.Controls.Add(this.tbCName);
			this.groupBox1.Controls.Add(this.label4);
			this.groupBox1.Controls.Add(this.cmbCSex);
			this.groupBox1.Controls.Add(this.label6);
			this.groupBox1.Controls.Add(this.tbCcontact);
			this.groupBox1.Controls.Add(this.label9);
			this.groupBox1.Location = new System.Drawing.Point(8, 16);
			this.groupBox1.Name = "groupBox1";
			this.groupBox1.Size = new System.Drawing.Size(440, 128);
			this.groupBox1.TabIndex = 0;
			this.groupBox1.TabStop = false;
			this.groupBox1.Text = "客户信息";
			// 
			// tbCallingTime
			// 
			this.tbCallingTime.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
			this.tbCallingTime.Location = new System.Drawing.Point(296, 24);
			this.tbCallingTime.Name = "tbCallingTime";
			this.tbCallingTime.ReadOnly = true;
			this.tbCallingTime.Size = new System.Drawing.Size(120, 21);
			this.tbCallingTime.TabIndex = 47;
			this.tbCallingTime.Text = "";
			// 
			// label7
			// 
			this.label7.Location = new System.Drawing.Point(224, 24);
			this.label7.Name = "label7";
			this.label7.TabIndex = 46;
			this.label7.Text = "来电时间";
			// 
			// tbCAddress
			// 
			this.tbCAddress.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
			this.tbCAddress.Location = new System.Drawing.Point(88, 96);
			this.tbCAddress.Name = "tbCAddress";
			this.tbCAddress.Size = new System.Drawing.Size(328, 21);
			this.tbCAddress.TabIndex = 45;
			this.tbCAddress.Text = "";
			// 
			// label5
			// 
			this.label5.Location = new System.Drawing.Point(16, 96);
			this.label5.Name = "label5";
			this.label5.Size = new System.Drawing.Size(72, 23);
			this.label5.TabIndex = 44;

⌨️ 快捷键说明

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