📄 serviceprovidermanage.cs
字号:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using CallCenter.BusinessLayer;
using CallCenter.DALFactory;
using CallCenter.IDAL;
using CallCenter.Modules;
using CallCenter.OracleDAL;
using System.Data;
namespace CallCenter.BusinessInterfaces.MainForms
{
/// <summary>
/// ServiceProviderManage 的摘要说明。
/// </summary>
public class ServiceProviderManage : System.Windows.Forms.UserControl
{
private System.Windows.Forms.Panel panel2;
private WebMIS.GoldFilter.GridDataFilter gridDataFilter1;
private System.Windows.Forms.Panel panel1;
private System.Windows.Forms.DataGrid dgPriver;
private DataSet dsservice=null;
private System.Windows.Forms.CheckBox checkBox1;
private System.Windows.Forms.TextBox txtEmail;
private System.Windows.Forms.TextBox txtBad;
private System.Windows.Forms.Label label7;
private System.Windows.Forms.TextBox txtGood;
private System.Windows.Forms.ComboBox cbSType;
private System.Windows.Forms.Label label10;
private System.Windows.Forms.TextBox txtMemo;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.Label label12;
private System.Windows.Forms.TextBox txtNeiRong;
private System.Windows.Forms.Label label8;
private System.Windows.Forms.TextBox txtname;
private System.Windows.Forms.Button btReset;
private System.Windows.Forms.TextBox txtFax;
private System.Windows.Forms.Label label14;
private System.Windows.Forms.Label label13;
private System.Windows.Forms.TextBox txtAddr;
private System.Windows.Forms.Label label6;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.Button btService;
private System.Windows.Forms.Label label11;
private System.Windows.Forms.TextBox txtWeb;
private System.Windows.Forms.TextBox txtRPerson;
private System.Windows.Forms.DateTimePicker dateTimePicker1;
private System.Windows.Forms.Label label9;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.TextBox txtTel;
private System.Windows.Forms.TextBox txtPosition;
private System.Windows.Forms.Button btSave;
private System.Windows.Forms.Label label5;
private System.Windows.Forms.Button btDelete;
private System.Windows.Forms.Button btAdd;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.TabControl tabControl1;
/// <summary>
/// 必需的设计器变量。
/// </summary>
private System.ComponentModel.Container components = null;
public ServiceProviderManage()
{
//
// Windows 窗体设计器支持所必需的
//
InitializeComponent();
//
// 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()
{
this.panel2 = new System.Windows.Forms.Panel();
this.checkBox1 = new System.Windows.Forms.CheckBox();
this.dgPriver = new System.Windows.Forms.DataGrid();
this.gridDataFilter1 = new WebMIS.GoldFilter.GridDataFilter();
this.panel1 = new System.Windows.Forms.Panel();
this.txtEmail = new System.Windows.Forms.TextBox();
this.txtBad = new System.Windows.Forms.TextBox();
this.label7 = new System.Windows.Forms.Label();
this.txtGood = new System.Windows.Forms.TextBox();
this.cbSType = new System.Windows.Forms.ComboBox();
this.label10 = new System.Windows.Forms.Label();
this.txtMemo = new System.Windows.Forms.TextBox();
this.label3 = new System.Windows.Forms.Label();
this.label12 = new System.Windows.Forms.Label();
this.txtNeiRong = new System.Windows.Forms.TextBox();
this.label8 = new System.Windows.Forms.Label();
this.txtname = new System.Windows.Forms.TextBox();
this.btReset = new System.Windows.Forms.Button();
this.txtFax = new System.Windows.Forms.TextBox();
this.label14 = new System.Windows.Forms.Label();
this.label13 = new System.Windows.Forms.Label();
this.txtAddr = new System.Windows.Forms.TextBox();
this.label6 = new System.Windows.Forms.Label();
this.label4 = new System.Windows.Forms.Label();
this.btService = new System.Windows.Forms.Button();
this.label11 = new System.Windows.Forms.Label();
this.txtWeb = new System.Windows.Forms.TextBox();
this.txtRPerson = new System.Windows.Forms.TextBox();
this.dateTimePicker1 = new System.Windows.Forms.DateTimePicker();
this.label9 = new System.Windows.Forms.Label();
this.label1 = new System.Windows.Forms.Label();
this.txtTel = new System.Windows.Forms.TextBox();
this.txtPosition = new System.Windows.Forms.TextBox();
this.btSave = new System.Windows.Forms.Button();
this.label5 = new System.Windows.Forms.Label();
this.btDelete = new System.Windows.Forms.Button();
this.btAdd = new System.Windows.Forms.Button();
this.label2 = new System.Windows.Forms.Label();
this.tabControl1 = new System.Windows.Forms.TabControl();
this.panel2.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.dgPriver)).BeginInit();
this.panel1.SuspendLayout();
this.SuspendLayout();
//
// panel2
//
this.panel2.Controls.Add(this.checkBox1);
this.panel2.Controls.Add(this.dgPriver);
this.panel2.Controls.Add(this.gridDataFilter1);
this.panel2.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel2.Location = new System.Drawing.Point(0, 208);
this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(848, 341);
this.panel2.TabIndex = 15;
//
// checkBox1
//
this.checkBox1.BackColor = System.Drawing.SystemColors.ActiveCaption;
this.checkBox1.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
this.checkBox1.ForeColor = System.Drawing.SystemColors.ActiveCaptionText;
this.checkBox1.Location = new System.Drawing.Point(112, -2);
this.checkBox1.Name = "checkBox1";
this.checkBox1.Size = new System.Drawing.Size(48, 24);
this.checkBox1.TabIndex = 15;
this.checkBox1.Text = "全选";
this.checkBox1.CheckedChanged += new System.EventHandler(this.checkBox1_CheckedChanged);
//
// dgPriver
//
this.dgPriver.BackgroundColor = System.Drawing.SystemColors.ActiveCaptionText;
this.dgPriver.CaptionText = "服务商信息列表";
this.dgPriver.DataMember = "";
this.dgPriver.Dock = System.Windows.Forms.DockStyle.Fill;
this.dgPriver.HeaderForeColor = System.Drawing.SystemColors.ControlText;
this.dgPriver.ImeMode = System.Windows.Forms.ImeMode.NoControl;
this.dgPriver.Location = new System.Drawing.Point(0, 0);
this.dgPriver.Name = "dgPriver";
this.dgPriver.Size = new System.Drawing.Size(848, 309);
this.dgPriver.TabIndex = 1;
this.dgPriver.CurrentCellChanged += new System.EventHandler(this.dgPriver_CurrentCellChanged);
//
// gridDataFilter1
//
this.gridDataFilter1.checkbox = null;
this.gridDataFilter1.Dock = System.Windows.Forms.DockStyle.Bottom;
this.gridDataFilter1.Location = new System.Drawing.Point(0, 309);
this.gridDataFilter1.Name = "gridDataFilter1";
this.gridDataFilter1.Size = new System.Drawing.Size(848, 32);
this.gridDataFilter1.TabIndex = 14;
//
// panel1
//
this.panel1.Controls.Add(this.txtEmail);
this.panel1.Controls.Add(this.txtBad);
this.panel1.Controls.Add(this.label7);
this.panel1.Controls.Add(this.txtGood);
this.panel1.Controls.Add(this.cbSType);
this.panel1.Controls.Add(this.label10);
this.panel1.Controls.Add(this.txtMemo);
this.panel1.Controls.Add(this.label3);
this.panel1.Controls.Add(this.label12);
this.panel1.Controls.Add(this.txtNeiRong);
this.panel1.Controls.Add(this.label8);
this.panel1.Controls.Add(this.txtname);
this.panel1.Controls.Add(this.btReset);
this.panel1.Controls.Add(this.txtFax);
this.panel1.Controls.Add(this.label14);
this.panel1.Controls.Add(this.label13);
this.panel1.Controls.Add(this.txtAddr);
this.panel1.Controls.Add(this.label6);
this.panel1.Controls.Add(this.label4);
this.panel1.Controls.Add(this.btService);
this.panel1.Controls.Add(this.label11);
this.panel1.Controls.Add(this.txtWeb);
this.panel1.Controls.Add(this.txtRPerson);
this.panel1.Controls.Add(this.dateTimePicker1);
this.panel1.Controls.Add(this.label9);
this.panel1.Controls.Add(this.label1);
this.panel1.Controls.Add(this.txtTel);
this.panel1.Controls.Add(this.txtPosition);
this.panel1.Controls.Add(this.btSave);
this.panel1.Controls.Add(this.label5);
this.panel1.Controls.Add(this.btDelete);
this.panel1.Controls.Add(this.btAdd);
this.panel1.Controls.Add(this.label2);
this.panel1.Controls.Add(this.tabControl1);
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(848, 208);
this.panel1.TabIndex = 14;
//
// txtEmail
//
this.txtEmail.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.txtEmail.Location = new System.Drawing.Point(339, 72);
this.txtEmail.Name = "txtEmail";
this.txtEmail.Size = new System.Drawing.Size(152, 21);
this.txtEmail.TabIndex = 36;
this.txtEmail.Text = "";
//
// txtBad
//
this.txtBad.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.txtBad.Location = new System.Drawing.Point(579, 96);
this.txtBad.Name = "txtBad";
this.txtBad.Size = new System.Drawing.Size(152, 21);
this.txtBad.TabIndex = 52;
this.txtBad.Text = "";
//
// label7
//
this.label7.Font = new System.Drawing.Font("宋体", 9F);
this.label7.Location = new System.Drawing.Point(267, 24);
this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(72, 23);
this.label7.TabIndex = 40;
this.label7.Text = "服务商类别";
this.label7.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
// txtGood
//
this.txtGood.Location = new System.Drawing.Point(339, 96);
this.txtGood.Name = "txtGood";
this.txtGood.Size = new System.Drawing.Size(152, 21);
this.txtGood.TabIndex = 51;
this.txtGood.Text = "";
//
// cbSType
//
this.cbSType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cbSType.Location = new System.Drawing.Point(339, 24);
this.cbSType.Name = "cbSType";
this.cbSType.Size = new System.Drawing.Size(152, 20);
this.cbSType.TabIndex = 50;
//
// label10
//
this.label10.Font = new System.Drawing.Font("宋体", 9F);
this.label10.Location = new System.Drawing.Point(267, 48);
this.label10.Name = "label10";
this.label10.Size = new System.Drawing.Size(69, 23);
this.label10.TabIndex = 31;
this.label10.Text = "联系人";
this.label10.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
// txtMemo
//
this.txtMemo.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.txtMemo.Location = new System.Drawing.Point(99, 144);
this.txtMemo.Multiline = true;
this.txtMemo.Name = "txtMemo";
this.txtMemo.Size = new System.Drawing.Size(632, 40);
this.txtMemo.TabIndex = 22;
this.txtMemo.Text = "";
//
// label3
//
this.label3.Font = new System.Drawing.Font("宋体", 9F);
this.label3.Location = new System.Drawing.Point(27, 48);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(69, 23);
this.label3.TabIndex = 24;
this.label3.Text = "联系电话";
this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
// label12
//
this.label12.Font = new System.Drawing.Font("宋体", 9F);
this.label12.Location = new System.Drawing.Point(27, 120);
this.label12.Name = "label12";
this.label12.Size = new System.Drawing.Size(69, 23);
this.label12.TabIndex = 41;
this.label12.Text = "办公地址";
this.label12.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
// txtNeiRong
//
this.txtNeiRong.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.txtNeiRong.Location = new System.Drawing.Point(579, 72);
this.txtNeiRong.Name = "txtNeiRong";
this.txtNeiRong.Size = new System.Drawing.Size(152, 21);
this.txtNeiRong.TabIndex = 39;
this.txtNeiRong.Text = "";
//
// label8
//
this.label8.Font = new System.Drawing.Font("宋体", 9F);
this.label8.Location = new System.Drawing.Point(27, 96);
this.label8.Name = "label8";
this.label8.Size = new System.Drawing.Size(64, 23);
this.label8.TabIndex = 43;
this.label8.Text = "地图位置";
this.label8.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
// txtname
//
this.txtname.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.txtname.Location = new System.Drawing.Point(99, 24);
this.txtname.Name = "txtname";
this.txtname.Size = new System.Drawing.Size(152, 21);
this.txtname.TabIndex = 33;
this.txtname.Text = "";
//
// btReset
//
this.btReset.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btReset.Font = new System.Drawing.Font("宋体", 9F);
this.btReset.Location = new System.Drawing.Point(747, 152);
this.btReset.Name = "btReset";
this.btReset.Size = new System.Drawing.Size(75, 24);
this.btReset.TabIndex = 53;
this.btReset.Text = "清 空";
this.btReset.Click +=new EventHandler(btReset_Click);
//
// txtFax
//
this.txtFax.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.txtFax.Location = new System.Drawing.Point(99, 72);
this.txtFax.Name = "txtFax";
this.txtFax.Size = new System.Drawing.Size(152, 21);
this.txtFax.TabIndex = 32;
this.txtFax.Text = "";
//
// label14
//
this.label14.Font = new System.Drawing.Font("宋体", 9F);
this.label14.Location = new System.Drawing.Point(507, 96);
this.label14.Name = "label14";
this.label14.Size = new System.Drawing.Size(56, 23);
this.label14.TabIndex = 47;
this.label14.Text = "差评数";
this.label14.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
// label13
//
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -