📄 workbillform.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>
/// WorkBillForm 的摘要说明。
/// </summary>
public class WorkBillForm : System.Windows.Forms.Form {
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.TextBox tbOpName;
private System.Windows.Forms.Label label11;
private System.Windows.Forms.TextBox tbOpContent;
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.Panel AutoOpContentPanel;
private System.Windows.Forms.ComboBox combWBState;
private System.Windows.Forms.TextBox tbCComment;
private System.Windows.Forms.ComboBox combWBGrade;
private int m_wid=-1;
private string m_opName="";
private string m_opId="";
private bool isNeedSavedOPC=false;
private bool isNeedSavedWBC=false;
private IList satisfyList;
private IList m_spList;
private WBContentInfo m_WBContentInfo=null;
private CustomerInfo m_CustomerInfo=null;
private WorkBillInfo m_WorkBillInfo=null;
private OtherBLL m_OtherBLL=new OtherBLL();
private WorkBillBLL m_WorkBillBLL =new WorkBillBLL();
private WBContentBLL m_WBContentBLL=new WBContentBLL();
private System.Windows.Forms.Label label14;
private System.Windows.Forms.TextBox tbOpDate;
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;
#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
/// <summary>
/// 必需的设计器变量。
/// </summary>
private System.ComponentModel.Container components = null;
public WorkBillForm() {
//
// Windows 窗体设计器支持所必需的
//
InitializeComponent();
InitializeCombCState();
InitializeCmbWBState();
//
// TODO: 在 InitializeComponent 调用后添加任何构造函数代码
//
}
public WorkBillForm(CustomerInfo customerInfo):this(){
if(customerInfo==null){
return ;
}
this.m_CustomerInfo= customerInfo;
//DownLoadCustomerInfo(customerInfo);
}
public WorkBillForm(CustomerInfo customerInfo,WorkBillInfo workBillInfo):this(customerInfo){
if(workBillInfo==null||customerInfo==null){
return ;
}
this.m_opId=ShareClass.Operator;
this.m_opName=ShareClass.OperatorChinese;
this.m_WorkBillInfo = workBillInfo;
this.m_wid = workBillInfo.id;
DownLoadCustomerInfo(customerInfo);
GetWBContent(m_wid);
DownLoadWorkBillInfo(workBillInfo);
}
/// <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.tbOpDate = new System.Windows.Forms.TextBox();
this.label14 = new System.Windows.Forms.Label();
this.AutoOpContentPanel = new System.Windows.Forms.Panel();
this.tbOpContent = new System.Windows.Forms.TextBox();
this.label11 = new System.Windows.Forms.Label();
this.tbOpName = new System.Windows.Forms.TextBox();
this.label10 = 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.ReadOnly = true;
this.tbCAddress.Size = new System.Drawing.Size(328, 21);
this.tbCAddress.TabIndex = 45;
this.tbCAddress.Text = "";
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -