📄 serviceproviderform.cs
字号:
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>
/// SP:ServiceProvider(服务商)
/// CSP:ChooseSPList(被选服务商)
/// </summary>
public class ServiceProviderForm : System.Windows.Forms.UserControl {
private System.Windows.Forms.Panel panel1;
private System.Windows.Forms.Panel panel2;
private System.Windows.Forms.Splitter splitter1;
private System.Windows.Forms.TabControl tabControl1;
private System.Windows.Forms.TabPage tabPSPL;
private System.Windows.Forms.TabPage tabPMapInfo;
private System.Windows.Forms.Button btnOk;
private System.Windows.Forms.Button btnReset;
private System.Windows.Forms.Button btnRetrieve;
private System.Windows.Forms.ComboBox cmbSctype;
private System.Windows.Forms.TextBox tbAddress;
private System.Windows.Forms.Label label5;
private System.Windows.Forms.TextBox tbKeyWords;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.TextBox tbSLinkMan;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.TextBox tbSName;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.GroupBox groupBox1;
private System.Windows.Forms.GroupBox groupBox2;
private System.Windows.Forms.Button btnClear;
private System.Windows.Forms.GroupBox groupBox3;
private System.Windows.Forms.Button btnTest;
private System.Windows.Forms.Panel panel5;
private System.Windows.Forms.Panel panel6;
private System.Windows.Forms.Button btn_Map_zoomIn;
private System.Windows.Forms.Button btn_Map_zoomOut;
private System.Windows.Forms.Button btn_Map_Move;
private System.Windows.Forms.Label label6;
private System.Windows.Forms.TextBox txtname;
private System.Windows.Forms.Label label7;
private System.Windows.Forms.Label label9;
private System.Windows.Forms.TextBox txtRPerson;
private System.Windows.Forms.Label label10;
private System.Windows.Forms.TextBox txtTel;
private System.Windows.Forms.Label label8;
private System.Windows.Forms.Label label12;
private System.Windows.Forms.TextBox txtBad;
private System.Windows.Forms.TextBox txtGood;
private System.Windows.Forms.Label label15;
private System.Windows.Forms.Label label16;
private System.Windows.Forms.TextBox txtAddr;
private System.Windows.Forms.Label label17;
private System.Windows.Forms.Label label18;
private System.Windows.Forms.TextBox txtMemo;
private System.Windows.Forms.TextBox txtEmail;
private System.Windows.Forms.Label label14;
private System.Windows.Forms.TextBox txtFax;
private System.Windows.Forms.Label label13;
private System.Windows.Forms.TextBox txtWeb;
private System.Windows.Forms.Label label11;
private System.Windows.Forms.TextBox tbDtailSType;
private System.Windows.Forms.TextBox tbSDate;
private System.Windows.Forms.Label label19;
private System.Windows.Forms.TextBox tbWBContent;
private System.Windows.Forms.GroupBox groupBox4;
private int[] DisplayCol = {3,12};
private IList SPList;
private WorkBillBLL m_WorkBillBLL = new WorkBillBLL();
private SPServiceNoteBLL m_SPServiceNoteBLL = new SPServiceNoteBLL();
private OtherBLL m_OtherBLL = new OtherBLL();
private ArrayList mapSPList=new ArrayList();
private ArrayList ChooseSPList=new ArrayList();
private SPServiceNoteInfo m_SPNInfo = new SPServiceNoteInfo();
private WorkBillInfo m_WorkBillInfo = new WorkBillInfo();
private CustomerInfo m_CustomerInfo = new CustomerInfo();
private ServiceProviderBLL m_SPBLL=new ServiceProviderBLL();
private ServiceProviderInfo m_SPInfo = null;
private ServiceProviderInfo m_RSPInfo = new ServiceProviderInfo();
private ServiceProviderInfoColumn spInfoCol=new ServiceProviderInfoColumn();
private ListViewHelper SPListView = new ListViewHelper();
private ListViewHelper m_CSPListView = new ListViewHelper();
private AxMapXLib.AxMap axMap1;
private System.Windows.Forms.TextBox txtKeyWords;
/// <summary>
/// 必需的设计器变量。
/// </summary>
private System.ComponentModel.Container components = null;
public IList MapSPList{
get{
return mapSPList;
}
}
public ServiceProviderForm() {
//
// Windows 窗体设计器支持所必需的
//
if(!ValidateInitData()){
return ;
}
InitializeComponent();
InitlCmbSctype();
InitSPListVewCol();
//InitCSPListViewCol();
//
// 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() {
System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(ServiceProviderForm));
this.panel1 = new System.Windows.Forms.Panel();
this.groupBox4 = new System.Windows.Forms.GroupBox();
this.btnTest = new System.Windows.Forms.Button();
this.tbWBContent = new System.Windows.Forms.TextBox();
this.label19 = new System.Windows.Forms.Label();
this.btnOk = new System.Windows.Forms.Button();
this.btnClear = new System.Windows.Forms.Button();
this.splitter1 = new System.Windows.Forms.Splitter();
this.panel2 = new System.Windows.Forms.Panel();
this.groupBox2 = new System.Windows.Forms.GroupBox();
this.tabControl1 = new System.Windows.Forms.TabControl();
this.tabPSPL = new System.Windows.Forms.TabPage();
this.tabPMapInfo = new System.Windows.Forms.TabPage();
this.panel6 = new System.Windows.Forms.Panel();
this.axMap1 = new AxMapXLib.AxMap();
this.panel5 = new System.Windows.Forms.Panel();
this.btn_Map_zoomIn = new System.Windows.Forms.Button();
this.btn_Map_zoomOut = new System.Windows.Forms.Button();
this.btn_Map_Move = new System.Windows.Forms.Button();
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.tbKeyWords = new System.Windows.Forms.TextBox();
this.tbSName = new System.Windows.Forms.TextBox();
this.label4 = new System.Windows.Forms.Label();
this.btnRetrieve = new System.Windows.Forms.Button();
this.btnReset = new System.Windows.Forms.Button();
this.tbSLinkMan = new System.Windows.Forms.TextBox();
this.cmbSctype = new System.Windows.Forms.ComboBox();
this.label3 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.tbAddress = new System.Windows.Forms.TextBox();
this.label1 = new System.Windows.Forms.Label();
this.label5 = new System.Windows.Forms.Label();
this.groupBox3 = new System.Windows.Forms.GroupBox();
this.tbSDate = new System.Windows.Forms.TextBox();
this.tbDtailSType = new System.Windows.Forms.TextBox();
this.txtMemo = new System.Windows.Forms.TextBox();
this.txtKeyWords = new System.Windows.Forms.TextBox();
this.txtname = new System.Windows.Forms.TextBox();
this.txtEmail = new System.Windows.Forms.TextBox();
this.txtFax = new System.Windows.Forms.TextBox();
this.txtWeb = new System.Windows.Forms.TextBox();
this.txtRPerson = new System.Windows.Forms.TextBox();
this.label10 = new System.Windows.Forms.Label();
this.txtTel = new System.Windows.Forms.TextBox();
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.txtBad = new System.Windows.Forms.TextBox();
this.txtGood = new System.Windows.Forms.TextBox();
this.label15 = new System.Windows.Forms.Label();
this.label16 = new System.Windows.Forms.Label();
this.txtAddr = new System.Windows.Forms.TextBox();
this.label17 = new System.Windows.Forms.Label();
this.label18 = new System.Windows.Forms.Label();
this.panel1.SuspendLayout();
this.groupBox4.SuspendLayout();
this.panel2.SuspendLayout();
this.groupBox2.SuspendLayout();
this.tabControl1.SuspendLayout();
this.tabPMapInfo.SuspendLayout();
this.panel6.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.axMap1)).BeginInit();
this.panel5.SuspendLayout();
this.groupBox1.SuspendLayout();
this.groupBox3.SuspendLayout();
this.SuspendLayout();
//
// panel1
//
this.panel1.Controls.Add(this.groupBox4);
this.panel1.Controls.Add(this.splitter1);
this.panel1.Controls.Add(this.panel2);
this.panel1.Controls.Add(this.groupBox3);
this.panel1.Dock = System.Windows.Forms.DockStyle.Top;
this.panel1.Location = new System.Drawing.Point(0, 0);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(864, 448);
this.panel1.TabIndex = 0;
//
// groupBox4
//
this.groupBox4.Controls.Add(this.btnTest);
this.groupBox4.Controls.Add(this.tbWBContent);
this.groupBox4.Controls.Add(this.label19);
this.groupBox4.Controls.Add(this.btnOk);
this.groupBox4.Controls.Add(this.btnClear);
this.groupBox4.Location = new System.Drawing.Point(424, 280);
this.groupBox4.Name = "groupBox4";
this.groupBox4.Size = new System.Drawing.Size(432, 164);
this.groupBox4.TabIndex = 5;
this.groupBox4.TabStop = false;
this.groupBox4.Text = "生成工单";
//
// btnTest
//
this.btnTest.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnTest.Location = new System.Drawing.Point(16, 72);
this.btnTest.Name = "btnTest";
this.btnTest.Size = new System.Drawing.Size(64, 24);
this.btnTest.TabIndex = 4;
this.btnTest.Text = "测试";
this.btnTest.Click += new System.EventHandler(this.btnTest_Click);
//
// tbWBContent
//
this.tbWBContent.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.tbWBContent.Location = new System.Drawing.Point(88, 40);
this.tbWBContent.Multiline = true;
this.tbWBContent.Name = "tbWBContent";
this.tbWBContent.Size = new System.Drawing.Size(320, 64);
this.tbWBContent.TabIndex = 4;
this.tbWBContent.Text = "";
//
// 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 = "服务内容描述";
//
// btnOk
//
this.btnOk.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnOk.Location = new System.Drawing.Point(200, 128);
this.btnOk.Name = "btnOk";
this.btnOk.Size = new System.Drawing.Size(75, 24);
this.btnOk.TabIndex = 1;
this.btnOk.Text = "确定";
this.btnOk.Click += new System.EventHandler(this.btnOk_Click);
//
// btnClear
//
this.btnClear.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnClear.Location = new System.Drawing.Point(312, 128);
this.btnClear.Name = "btnClear";
this.btnClear.Size = new System.Drawing.Size(75, 24);
this.btnClear.TabIndex = 3;
this.btnClear.Text = "清空内容";
this.btnClear.Click += new System.EventHandler(this.btnClear_Click);
//
// splitter1
//
this.splitter1.Location = new System.Drawing.Point(416, 0);
this.splitter1.Name = "splitter1";
this.splitter1.Size = new System.Drawing.Size(3, 448);
this.splitter1.TabIndex = 2;
this.splitter1.TabStop = false;
//
// 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(0, 0);
this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(416, 448);
this.panel2.TabIndex = 0;
//
// groupBox2
//
this.groupBox2.Controls.Add(this.tabControl1);
this.groupBox2.Location = new System.Drawing.Point(6, 160);
this.groupBox2.Name = "groupBox2";
this.groupBox2.Size = new System.Drawing.Size(400, 288);
this.groupBox2.TabIndex = 3;
this.groupBox2.TabStop = false;
this.groupBox2.Text = "挑选服务商";
//
// tabControl1
//
this.tabControl1.Controls.Add(this.tabPSPL);
this.tabControl1.Controls.Add(this.tabPMapInfo);
this.tabControl1.Dock = System.Windows.Forms.DockStyle.Bottom;
this.tabControl1.Location = new System.Drawing.Point(3, 21);
this.tabControl1.Name = "tabControl1";
this.tabControl1.SelectedIndex = 0;
this.tabControl1.Size = new System.Drawing.Size(394, 264);
this.tabControl1.TabIndex = 0;
//
// tabPSPL
//
this.tabPSPL.BackColor = System.Drawing.Color.LightGray;
this.tabPSPL.Location = new System.Drawing.Point(4, 21);
this.tabPSPL.Name = "tabPSPL";
this.tabPSPL.Size = new System.Drawing.Size(386, 239);
this.tabPSPL.TabIndex = 0;
this.tabPSPL.Text = "服务商列表";
//
// tabPMapInfo
//
this.tabPMapInfo.BackColor = System.Drawing.SystemColors.Info;
this.tabPMapInfo.Controls.Add(this.panel6);
this.tabPMapInfo.Controls.Add(this.panel5);
this.tabPMapInfo.Location = new System.Drawing.Point(4, 21);
this.tabPMapInfo.Name = "tabPMapInfo";
this.tabPMapInfo.Size = new System.Drawing.Size(386, 239);
this.tabPMapInfo.TabIndex = 1;
this.tabPMapInfo.Text = "电子地图";
//
// panel6
//
this.panel6.AutoScroll = true;
this.panel6.Controls.Add(this.axMap1);
this.panel6.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel6.Location = new System.Drawing.Point(0, 24);
this.panel6.Name = "panel6";
this.panel6.Size = new System.Drawing.Size(386, 215);
this.panel6.TabIndex = 1;
//
// axMap1
//
this.axMap1.ContainingControl = this;
this.axMap1.Enabled = true;
this.axMap1.Location = new System.Drawing.Point(0, 8);
this.axMap1.Name = "axMap1";
this.axMap1.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("axMap1.OcxState")));
this.axMap1.Size = new System.Drawing.Size(376, 192);
this.axMap1.TabIndex = 0;
//
// panel5
//
this.panel5.Controls.Add(this.btn_Map_zoomIn);
this.panel5.Controls.Add(this.btn_Map_zoomOut);
this.panel5.Controls.Add(this.btn_Map_Move);
this.panel5.Dock = System.Windows.Forms.DockStyle.Top;
this.panel5.Location = new System.Drawing.Point(0, 0);
this.panel5.Name = "panel5";
this.panel5.Size = new System.Drawing.Size(386, 24);
this.panel5.TabIndex = 0;
//
// btn_Map_zoomIn
//
this.btn_Map_zoomIn.Location = new System.Drawing.Point(120, 0);
this.btn_Map_zoomIn.Name = "btn_Map_zoomIn";
this.btn_Map_zoomIn.Size = new System.Drawing.Size(75, 24);
this.btn_Map_zoomIn.TabIndex = 0;
this.btn_Map_zoomIn.Text = "放大";
this.btn_Map_zoomIn.Click += new System.EventHandler(this.btn_Map_zoomIn_Click);
//
// btn_Map_zoomOut
//
this.btn_Map_zoomOut.Location = new System.Drawing.Point(208, 0);
this.btn_Map_zoomOut.Name = "btn_Map_zoomOut";
this.btn_Map_zoomOut.TabIndex = 1;
this.btn_Map_zoomOut.Text = "缩小";
this.btn_Map_zoomOut.Click += new System.EventHandler(this.btn_Map_zoomOut_Click);
//
// btn_Map_Move
//
this.btn_Map_Move.Location = new System.Drawing.Point(304, 0);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -