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

📄 serviceproviderform.cs

📁 汽车销售公司ERP进销存系统 汽车销售公司ERP进销存系统
💻 CS
📖 第 1 页 / 共 4 页
字号:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;

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

namespace CallCenter.BusinessInterfaces.BaseForms {
	/// <summary>
	/// 通过条件查询服务商,并选择服务商生成工单
	/// author:yanqingxi
	/// SP:ServiceProvider(服务商)
	///	CSP:ChooseSPList(被选服务商)
	/// </summary>
	public class ServiceProviderForm : System.Windows.Forms.UserControl {

		#region fields
		private DevExpress.XtraEditors.PanelControl panel1;
		private DevExpress.XtraEditors.PanelControl panel2;
		private System.Windows.Forms.ComboBox cmbSctype;
		private System.Windows.Forms.Label label5;
		private System.Windows.Forms.Label label4;
		private System.Windows.Forms.Label label3;
		private System.Windows.Forms.Label label2;
		private System.Windows.Forms.Label label1;
		private DevExpress.XtraEditors.GroupControl groupBox1;
		private DevExpress.XtraEditors.GroupControl groupBox2;
		private DevExpress.XtraEditors.GroupControl groupBox3;
		private DevExpress.XtraEditors.PanelControl panel5;
		private System.Windows.Forms.Label label6;
		private System.Windows.Forms.Label label7;
		private System.Windows.Forms.Label label9;
		private System.Windows.Forms.Label label10;
		private System.Windows.Forms.Label label8;
		private System.Windows.Forms.Label label12;
		private System.Windows.Forms.Label label15;
		private System.Windows.Forms.Label label16;
		private System.Windows.Forms.Label label17;
		private System.Windows.Forms.Label label18;
		private System.Windows.Forms.Label label14;
		private System.Windows.Forms.Label label13;
		private System.Windows.Forms.Label label11;
		private System.Windows.Forms.Label label19;
		private DevExpress.XtraEditors.GroupControl groupBox4;
		private Crownwood.Magic.Controls.TabControl tabControl2;
		private Crownwood.Magic.Controls.TabPage tabPage1;
		private Crownwood.Magic.Controls.TabPage tabPage2;

		public static IList SPList;
		private int[] DisplayCol = {3,12};
		private ServiceProviderInfo m_SPInfo = null;
		private ArrayList mapSPList=new ArrayList();
		private OtherBLL m_OtherBLL = new OtherBLL();
		private ArrayList ChooseSPList=new ArrayList();
		private WorkBillBLL m_WorkBillBLL = new WorkBillBLL();	
		private WorkBillInfo m_WorkBillInfo = new WorkBillInfo();
		private ListViewHelper SPListView = new ListViewHelper();
		private ListViewHelper m_CSPListView = new ListViewHelper();
		private ServiceProviderBLL m_SPBLL=new ServiceProviderBLL();
		private SPServiceNoteInfo m_SPNInfo = new SPServiceNoteInfo();
		private ServiceProviderInfo m_RSPInfo = new ServiceProviderInfo();
		private SPServiceNoteBLL m_SPServiceNoteBLL = new SPServiceNoteBLL();
		private ServiceProviderInfoColumn spInfoCol=new ServiceProviderInfoColumn();
		private System.Windows.Forms.Button btn_Map_zoomIn1;
		private System.Windows.Forms.Button btn_Map_zoomOut1;
		private System.Windows.Forms.Button btn_Map_Move1;
		private DevExpress.XtraEditors.TextEdit tbSName;
		private DevExpress.XtraEditors.TextEdit tbSLinkMan;
		private DevExpress.XtraEditors.TextEdit tbKeyWords;
		private DevExpress.XtraEditors.TextEdit tbAddress;
		private DevExpress.XtraEditors.SimpleButton btnRetrieve;
		private DevExpress.XtraEditors.SimpleButton btnReset;
		private DevExpress.XtraEditors.SimpleButton btn_Map_zoomIn;
		private DevExpress.XtraEditors.SimpleButton btn_Map_zoomOut;
		private DevExpress.XtraEditors.SimpleButton btn_Map_Move;
		private DevExpress.XtraEditors.TextEdit txtname;
		private DevExpress.XtraEditors.TextEdit txtRPerson;
		private DevExpress.XtraEditors.TextEdit txtFax;
		private DevExpress.XtraEditors.TextEdit txtWeb;
		private DevExpress.XtraEditors.TextEdit txtGood;
		private DevExpress.XtraEditors.TextEdit txtKeyWords;
		private DevExpress.XtraEditors.TextEdit txtAddr;
		private DevExpress.XtraEditors.TextEdit tbDtailSType;
		private DevExpress.XtraEditors.TextEdit txtTel;
		private DevExpress.XtraEditors.TextEdit txtEmail;
		private DevExpress.XtraEditors.TextEdit tbSDate;
		private DevExpress.XtraEditors.TextEdit txtBad;
		private DevExpress.XtraEditors.MemoEdit txtMemo;
		private DevExpress.XtraEditors.MemoEdit tbWBContent;
		private DevExpress.XtraEditors.SimpleButton btnOk;
		private DevExpress.XtraEditors.SimpleButton btnClear;
		private DevExpress.XtraEditors.SimpleButton btCancel;

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

		#region properties
		public IList MapSPList{
			get{
				return mapSPList;
			}
		}
		#endregion

		#region 构造
		public ServiceProviderForm() {
			//
			// Windows 窗体设计器支持所必需的
			//

			InitializeComponent();
			InitlCmbSctype();
			InitSPListVewCol();

			//
			// TODO: 在 InitializeComponent 调用后添加任何构造函数代码
			//
		}

		/// <summary>
		/// 清理所有正在使用的资源。
		/// </summary>
		protected override void Dispose( bool disposing ) {
			if( disposing ) {
				if(components != null) {
					components.Dispose();
				}
			}
			base.Dispose( disposing );
		}
		#endregion

		#region Windows 窗体设计器生成的代码
		/// <summary>
		/// 设计器支持所需的方法 - 不要使用代码编辑器修改
		/// 此方法的内容。
		/// </summary>
		private void InitializeComponent() {
			System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(ServiceProviderForm));
			this.panel1 = new DevExpress.XtraEditors.PanelControl();
			this.groupBox4 = new DevExpress.XtraEditors.GroupControl();
			this.btnClear = new DevExpress.XtraEditors.SimpleButton();
			this.btnOk = new DevExpress.XtraEditors.SimpleButton();
			this.tbWBContent = new DevExpress.XtraEditors.MemoEdit();
			this.label19 = new System.Windows.Forms.Label();
			this.panel2 = new DevExpress.XtraEditors.PanelControl();
			this.groupBox2 = new DevExpress.XtraEditors.GroupControl();
			this.tabControl2 = new Crownwood.Magic.Controls.TabControl();
			this.tabPage2 = new Crownwood.Magic.Controls.TabPage();
//			this.axMap1 = new AxMapXLib.AxMap();
			this.panel5 = new DevExpress.XtraEditors.PanelControl();
			this.btCancel = new DevExpress.XtraEditors.SimpleButton();
			this.btn_Map_zoomOut = new DevExpress.XtraEditors.SimpleButton();
			this.btn_Map_zoomIn = new DevExpress.XtraEditors.SimpleButton();
			this.btn_Map_Move = new DevExpress.XtraEditors.SimpleButton();
			this.btn_Map_zoomIn1 = new System.Windows.Forms.Button();
			this.btn_Map_zoomOut1 = new System.Windows.Forms.Button();
			this.btn_Map_Move1 = new System.Windows.Forms.Button();
			this.tabPage1 = new Crownwood.Magic.Controls.TabPage();
			this.groupBox1 = new DevExpress.XtraEditors.GroupControl();
			this.btnReset = new DevExpress.XtraEditors.SimpleButton();
			this.btnRetrieve = new DevExpress.XtraEditors.SimpleButton();
			this.tbAddress = new DevExpress.XtraEditors.TextEdit();
			this.tbKeyWords = new DevExpress.XtraEditors.TextEdit();
			this.tbSLinkMan = new DevExpress.XtraEditors.TextEdit();
			this.tbSName = new DevExpress.XtraEditors.TextEdit();
			this.label4 = new System.Windows.Forms.Label();
			this.cmbSctype = new System.Windows.Forms.ComboBox();
			this.label3 = new System.Windows.Forms.Label();
			this.label2 = new System.Windows.Forms.Label();
			this.label1 = new System.Windows.Forms.Label();
			this.label5 = new System.Windows.Forms.Label();
			this.groupBox3 = new DevExpress.XtraEditors.GroupControl();
			this.txtMemo = new DevExpress.XtraEditors.MemoEdit();
			this.txtBad = new DevExpress.XtraEditors.TextEdit();
			this.tbSDate = new DevExpress.XtraEditors.TextEdit();
			this.txtEmail = new DevExpress.XtraEditors.TextEdit();
			this.txtTel = new DevExpress.XtraEditors.TextEdit();
			this.tbDtailSType = new DevExpress.XtraEditors.TextEdit();
			this.txtAddr = new DevExpress.XtraEditors.TextEdit();
			this.txtKeyWords = new DevExpress.XtraEditors.TextEdit();
			this.txtGood = new DevExpress.XtraEditors.TextEdit();
			this.txtWeb = new DevExpress.XtraEditors.TextEdit();
			this.txtFax = new DevExpress.XtraEditors.TextEdit();
			this.txtRPerson = new DevExpress.XtraEditors.TextEdit();
			this.txtname = new DevExpress.XtraEditors.TextEdit();
			this.label10 = new System.Windows.Forms.Label();
			this.label8 = new System.Windows.Forms.Label();
			this.label11 = new System.Windows.Forms.Label();
			this.label6 = new System.Windows.Forms.Label();
			this.label7 = new System.Windows.Forms.Label();
			this.label9 = new System.Windows.Forms.Label();
			this.label14 = new System.Windows.Forms.Label();
			this.label13 = new System.Windows.Forms.Label();
			this.label12 = new System.Windows.Forms.Label();
			this.label15 = new System.Windows.Forms.Label();
			this.label16 = new System.Windows.Forms.Label();
			this.label17 = new System.Windows.Forms.Label();
			this.label18 = new System.Windows.Forms.Label();
			((System.ComponentModel.ISupportInitialize)(this.panel1)).BeginInit();
			this.panel1.SuspendLayout();
			((System.ComponentModel.ISupportInitialize)(this.groupBox4)).BeginInit();
			this.groupBox4.SuspendLayout();
			((System.ComponentModel.ISupportInitialize)(this.tbWBContent.Properties)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.panel2)).BeginInit();
			this.panel2.SuspendLayout();
			((System.ComponentModel.ISupportInitialize)(this.groupBox2)).BeginInit();
			this.groupBox2.SuspendLayout();
			this.tabPage2.SuspendLayout();
//			((System.ComponentModel.ISupportInitialize)(this.axMap1)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.panel5)).BeginInit();
			this.panel5.SuspendLayout();
			((System.ComponentModel.ISupportInitialize)(this.groupBox1)).BeginInit();
			this.groupBox1.SuspendLayout();
			((System.ComponentModel.ISupportInitialize)(this.tbAddress.Properties)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.tbKeyWords.Properties)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.tbSLinkMan.Properties)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.tbSName.Properties)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.groupBox3)).BeginInit();
			this.groupBox3.SuspendLayout();
			((System.ComponentModel.ISupportInitialize)(this.txtMemo.Properties)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.txtBad.Properties)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.tbSDate.Properties)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.txtEmail.Properties)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.txtTel.Properties)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.tbDtailSType.Properties)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.txtAddr.Properties)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.txtKeyWords.Properties)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.txtGood.Properties)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.txtWeb.Properties)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.txtFax.Properties)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.txtRPerson.Properties)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.txtname.Properties)).BeginInit();
			this.SuspendLayout();
			// 
			// panel1
			// 
			this.panel1.Controls.Add(this.groupBox4);
			this.panel1.Controls.Add(this.panel2);
			this.panel1.Controls.Add(this.groupBox3);
			this.panel1.Dock = System.Windows.Forms.DockStyle.Fill;
			this.panel1.Location = new System.Drawing.Point(0, 0);
			this.panel1.Name = "panel1";
			this.panel1.Size = new System.Drawing.Size(864, 429);
			this.panel1.TabIndex = 0;
			// 
			// groupBox4
			// 
			this.groupBox4.Controls.Add(this.btnClear);
			this.groupBox4.Controls.Add(this.btnOk);
			this.groupBox4.Controls.Add(this.tbWBContent);
			this.groupBox4.Controls.Add(this.label19);
			this.groupBox4.Location = new System.Drawing.Point(424, 262);
			this.groupBox4.Name = "groupBox4";
			this.groupBox4.Size = new System.Drawing.Size(432, 160);
			this.groupBox4.TabIndex = 5;
			this.groupBox4.Text = "生成工单";
			// 
			// btnClear
			// 
			this.btnClear.Location = new System.Drawing.Point(304, 120);
			this.btnClear.Name = "btnClear";
			this.btnClear.TabIndex = 13;
			this.btnClear.Text = "清空内容";
//			this.btnClear.Click += new System.EventHandler(this.btnClear_Click);
			// 
			// btnOk
			// 
			this.btnOk.Location = new System.Drawing.Point(152, 120);
			this.btnOk.Name = "btnOk";
			this.btnOk.TabIndex = 12;
			this.btnOk.Text = "确定";
			this.btnOk.Click += new System.EventHandler(this.btnOk_Click);
			// 
			// tbWBContent
			// 
			this.tbWBContent.EditValue = "";
			this.tbWBContent.Location = new System.Drawing.Point(88, 40);
			this.tbWBContent.Name = "tbWBContent";
			// 
			// tbWBContent.Properties
			// 
			this.tbWBContent.Properties.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.Default;
			this.tbWBContent.Size = new System.Drawing.Size(328, 64);
			this.tbWBContent.TabIndex = 11;
			// 
			// label19
			// 
			this.label19.Font = new System.Drawing.Font("宋体", 9F);
			this.label19.Location = new System.Drawing.Point(5, 40);
			this.label19.Name = "label19";
			this.label19.Size = new System.Drawing.Size(104, 23);
			this.label19.TabIndex = 3;
			this.label19.Text = "服务内容描述";
			// 
			// panel2
			// 
			this.panel2.Controls.Add(this.groupBox2);
			this.panel2.Controls.Add(this.groupBox1);
			this.panel2.Dock = System.Windows.Forms.DockStyle.Left;
			this.panel2.Location = new System.Drawing.Point(2, 2);
			this.panel2.Name = "panel2";
			this.panel2.Size = new System.Drawing.Size(421, 425);
			this.panel2.TabIndex = 0;
			// 
			// groupBox2
			// 
			this.groupBox2.Controls.Add(this.tabControl2);
			this.groupBox2.Location = new System.Drawing.Point(6, 133);
			this.groupBox2.Name = "groupBox2";
			this.groupBox2.Size = new System.Drawing.Size(412, 288);
			this.groupBox2.TabIndex = 3;
			this.groupBox2.Text = "挑选服务商";
			// 
			// tabControl2
			// 
			this.tabControl2.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(237)), ((System.Byte)(244)), ((System.Byte)(250)));
			this.tabControl2.Dock = System.Windows.Forms.DockStyle.Bottom;
			this.tabControl2.Font = new System.Drawing.Font("宋体", 9F);
			this.tabControl2.HideTabsMode = Crownwood.Magic.Controls.TabControl.HideTabsModes.ShowAlways;
			this.tabControl2.Location = new System.Drawing.Point(2, 22);
			this.tabControl2.Name = "tabControl2";
			this.tabControl2.PositionTop = true;
			this.tabControl2.SelectedIndex = 1;
			this.tabControl2.SelectedTab = this.tabPage2;
			this.tabControl2.Size = new System.Drawing.Size(408, 264);
			this.tabControl2.TabIndex = 0;
			this.tabControl2.TabPages.AddRange(new Crownwood.Magic.Controls.TabPage[] {
																						  this.tabPage1,
																						  this.tabPage2});
			// 
			// tabPage2

⌨️ 快捷键说明

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