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

📄 frmcarkuselect.cs

📁 c#编写的汽车销售公司erp进销存系统
💻 CS
📖 第 1 页 / 共 3 页
字号:
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 FrmCarkuSelect : System.Windows.Forms.Form
	{
		private DevExpress.XtraEditors.PanelControl panel2;
		private WebMIS.GoldFilter.GridDataFilter gridDataFilter1;
		private DevExpress.XtraEditors.PanelControl panel1;
		private System.Windows.Forms.DataGrid dgPriver;
		private DataSet dsservice=null;
		private System.Windows.Forms.CheckBox checkBox1;
		private System.Windows.Forms.Label label7;
		private System.Windows.Forms.Label label10;
		private System.Windows.Forms.Label label3;
		private System.Windows.Forms.Label label8;
		private System.Windows.Forms.Label label13;
		private System.Windows.Forms.Label label6;
		private System.Windows.Forms.Label label4;
		private System.Windows.Forms.Label label11;
		private System.Windows.Forms.Label label1;
		private System.Windows.Forms.Label label5;
		private System.Windows.Forms.Label label2;
		private DevExpress.XtraEditors.SimpleButton btAdd;
		private DevExpress.XtraEditors.SimpleButton btSave;
		private DevExpress.XtraEditors.SimpleButton btDelete;
		private DevExpress.XtraEditors.SimpleButton btReset;
		private DevExpress.XtraEditors.DateEdit dtxxrq;
		private DevExpress.XtraEditors.TextEdit txtggxh;
		private DevExpress.XtraEditors.TextEdit txtfdjhm;
		private DevExpress.XtraEditors.TextEdit txtfdjxh;
		private DevExpress.XtraEditors.TextEdit txtccbh;
		private DevExpress.XtraEditors.ComboBoxEdit cbys;
		private DevExpress.XtraEditors.ComboBoxEdit cbpp;
		private DevExpress.XtraEditors.ComboBoxEdit cbclxz;
		private DevExpress.XtraEditors.ComboBoxEdit cbscdw;
		private DevExpress.XtraEditors.DateEdit dtrkrq;
		private DevExpress.XtraEditors.MemoEdit txtbz;
		private System.Windows.Forms.Label label9;
		private DevExpress.XtraEditors.ComboBoxEdit cbstate;
		private DevExpress.XtraEditors.SimpleButton simpleButton1;
		private CarkuInfo carku=null;
		private string state="";
		private DevExpress.XtraEditors.SimpleButton simpleButton2;
		private DevExpress.XtraPrinting.PrintingSystem ps = new DevExpress.XtraPrinting.PrintingSystem();
		private DevExpress.XtraPrintingLinks.DataGridLink printLink = new DevExpress.XtraPrintingLinks.DataGridLink();

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

		public FrmCarkuSelect()
		{
			//
			// Windows 窗体设计器支持所必需的
			//
			InitializeComponent();

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

			//
			// 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 DevExpress.XtraEditors.PanelControl();
			this.checkBox1 = new System.Windows.Forms.CheckBox();
			this.dgPriver = new System.Windows.Forms.DataGrid();
			this.gridDataFilter1 = new WebMIS.GoldFilter.GridDataFilter();
			this.panel1 = new DevExpress.XtraEditors.PanelControl();
			this.simpleButton2 = new DevExpress.XtraEditors.SimpleButton();
			this.simpleButton1 = new DevExpress.XtraEditors.SimpleButton();
			this.label9 = new System.Windows.Forms.Label();
			this.cbstate = new DevExpress.XtraEditors.ComboBoxEdit();
			this.txtbz = new DevExpress.XtraEditors.MemoEdit();
			this.dtrkrq = new DevExpress.XtraEditors.DateEdit();
			this.cbscdw = new DevExpress.XtraEditors.ComboBoxEdit();
			this.cbclxz = new DevExpress.XtraEditors.ComboBoxEdit();
			this.cbpp = new DevExpress.XtraEditors.ComboBoxEdit();
			this.cbys = new DevExpress.XtraEditors.ComboBoxEdit();
			this.dtxxrq = new DevExpress.XtraEditors.DateEdit();
			this.btReset = new DevExpress.XtraEditors.SimpleButton();
			this.btDelete = new DevExpress.XtraEditors.SimpleButton();
			this.btSave = new DevExpress.XtraEditors.SimpleButton();
			this.btAdd = new DevExpress.XtraEditors.SimpleButton();
			this.txtggxh = new DevExpress.XtraEditors.TextEdit();
			this.txtfdjhm = new DevExpress.XtraEditors.TextEdit();
			this.txtfdjxh = new DevExpress.XtraEditors.TextEdit();
			this.txtccbh = new DevExpress.XtraEditors.TextEdit();
			this.label7 = new System.Windows.Forms.Label();
			this.label10 = new System.Windows.Forms.Label();
			this.label3 = new System.Windows.Forms.Label();
			this.label8 = new System.Windows.Forms.Label();
			this.label13 = new System.Windows.Forms.Label();
			this.label6 = new System.Windows.Forms.Label();
			this.label4 = new System.Windows.Forms.Label();
			this.label11 = new System.Windows.Forms.Label();
			this.label1 = new System.Windows.Forms.Label();
			this.label5 = new System.Windows.Forms.Label();
			this.label2 = new System.Windows.Forms.Label();
			((System.ComponentModel.ISupportInitialize)(this.panel2)).BeginInit();
			this.panel2.SuspendLayout();
			((System.ComponentModel.ISupportInitialize)(this.dgPriver)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.panel1)).BeginInit();
			this.panel1.SuspendLayout();
			((System.ComponentModel.ISupportInitialize)(this.cbstate.Properties)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.txtbz.Properties)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.dtrkrq.Properties)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.cbscdw.Properties)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.cbclxz.Properties)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.cbpp.Properties)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.cbys.Properties)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.dtxxrq.Properties)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.txtggxh.Properties)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.txtfdjhm.Properties)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.txtfdjxh.Properties)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.txtccbh.Properties)).BeginInit();
			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(840, 314);
			this.panel2.TabIndex = 15;
			// 
			// checkBox1
			// 
			this.checkBox1.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(90)), ((System.Byte)(180)), ((System.Byte)(232)));
			this.checkBox1.Font = new System.Drawing.Font("宋体", 8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
			this.checkBox1.ForeColor = System.Drawing.Color.Black;
			this.checkBox1.Location = new System.Drawing.Point(112, 6);
			this.checkBox1.Name = "checkBox1";
			this.checkBox1.Size = new System.Drawing.Size(48, 16);
			this.checkBox1.TabIndex = 15;
			this.checkBox1.Text = "全选";
			this.checkBox1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
			this.checkBox1.CheckedChanged += new System.EventHandler(this.checkBox1_CheckedChanged);
			// 
			// dgPriver
			// 
			this.dgPriver.AlternatingBackColor = System.Drawing.Color.GhostWhite;
			this.dgPriver.BackColor = System.Drawing.Color.GhostWhite;
			this.dgPriver.BackgroundColor = System.Drawing.Color.Lavender;
			this.dgPriver.CaptionBackColor = System.Drawing.Color.FromArgb(((System.Byte)(90)), ((System.Byte)(180)), ((System.Byte)(232)));
			this.dgPriver.CaptionForeColor = System.Drawing.Color.Black;
			this.dgPriver.CaptionText = "服务车信息列表";
			this.dgPriver.DataMember = "";
			this.dgPriver.Dock = System.Windows.Forms.DockStyle.Fill;
			this.dgPriver.Font = new System.Drawing.Font("Tahoma", 8F);
			this.dgPriver.ForeColor = System.Drawing.Color.MidnightBlue;
			this.dgPriver.GridLineColor = System.Drawing.Color.RoyalBlue;
			this.dgPriver.HeaderBackColor = System.Drawing.Color.DeepSkyBlue;
			this.dgPriver.HeaderFont = new System.Drawing.Font("Tahoma", 8F, System.Drawing.FontStyle.Bold);
			this.dgPriver.HeaderForeColor = System.Drawing.Color.Lavender;
			this.dgPriver.ImeMode = System.Windows.Forms.ImeMode.NoControl;
			this.dgPriver.LinkColor = System.Drawing.Color.Teal;
			this.dgPriver.Location = new System.Drawing.Point(2, 2);
			this.dgPriver.Name = "dgPriver";
			this.dgPriver.ParentRowsBackColor = System.Drawing.Color.Lavender;
			this.dgPriver.ParentRowsForeColor = System.Drawing.Color.MidnightBlue;
			this.dgPriver.SelectionBackColor = System.Drawing.Color.Teal;
			this.dgPriver.SelectionForeColor = System.Drawing.Color.PaleGreen;
			this.dgPriver.Size = new System.Drawing.Size(836, 278);
			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(2, 280);
			this.gridDataFilter1.Name = "gridDataFilter1";
			this.gridDataFilter1.Size = new System.Drawing.Size(836, 32);
			this.gridDataFilter1.TabIndex = 14;
			// 
			// panel1
			// 
			this.panel1.Appearance.BackColor = System.Drawing.Color.Transparent;
			this.panel1.Appearance.Options.UseBackColor = true;
			this.panel1.Controls.Add(this.simpleButton2);
			this.panel1.Controls.Add(this.simpleButton1);
			this.panel1.Controls.Add(this.label9);
			this.panel1.Controls.Add(this.cbstate);
			this.panel1.Controls.Add(this.txtbz);
			this.panel1.Controls.Add(this.dtrkrq);
			this.panel1.Controls.Add(this.cbscdw);
			this.panel1.Controls.Add(this.cbclxz);
			this.panel1.Controls.Add(this.cbpp);
			this.panel1.Controls.Add(this.cbys);
			this.panel1.Controls.Add(this.dtxxrq);
			this.panel1.Controls.Add(this.btReset);
			this.panel1.Controls.Add(this.btDelete);
			this.panel1.Controls.Add(this.btSave);
			this.panel1.Controls.Add(this.btAdd);
			this.panel1.Controls.Add(this.txtggxh);
			this.panel1.Controls.Add(this.txtfdjhm);
			this.panel1.Controls.Add(this.txtfdjxh);
			this.panel1.Controls.Add(this.txtccbh);
			this.panel1.Controls.Add(this.label7);
			this.panel1.Controls.Add(this.label10);
			this.panel1.Controls.Add(this.label3);
			this.panel1.Controls.Add(this.label8);
			this.panel1.Controls.Add(this.label13);
			this.panel1.Controls.Add(this.label6);
			this.panel1.Controls.Add(this.label4);
			this.panel1.Controls.Add(this.label11);
			this.panel1.Controls.Add(this.label1);
			this.panel1.Controls.Add(this.label5);
			this.panel1.Controls.Add(this.label2);
			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(840, 208);
			this.panel1.TabIndex = 14;
			// 
			// simpleButton2
			// 
			this.simpleButton2.Location = new System.Drawing.Point(752, 120);
			this.simpleButton2.Name = "simpleButton2";
			this.simpleButton2.TabIndex = 76;
			this.simpleButton2.Text = "打印";
			this.simpleButton2.Click += new System.EventHandler(this.simpleButton2_Click);
			// 
			// simpleButton1
			// 
			this.simpleButton1.Location = new System.Drawing.Point(752, 144);
			this.simpleButton1.Name = "simpleButton1";
			this.simpleButton1.TabIndex = 75;
			this.simpleButton1.Text = "选择";
			this.simpleButton1.Click += new System.EventHandler(this.simpleButton1_Click);
			// 
			// label9
			// 
			this.label9.Location = new System.Drawing.Point(267, 96);
			this.label9.Name = "label9";
			this.label9.Size = new System.Drawing.Size(72, 23);
			this.label9.TabIndex = 74;
			this.label9.Text = "销售状态";
			this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			// 
			// cbstate
			// 
			this.cbstate.EditValue = "";
			this.cbstate.Enabled = false;
			this.cbstate.Location = new System.Drawing.Point(344, 96);
			this.cbstate.Name = "cbstate";
			// 
			// cbstate.Properties
			// 
			this.cbstate.Properties.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.Default;
			this.cbstate.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
																											new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
			this.cbstate.Properties.Items.AddRange(new object[] {
																	"未售",
																	"已售"});
			this.cbstate.Size = new System.Drawing.Size(152, 21);
			this.cbstate.TabIndex = 73;
			// 
			// txtbz
			// 
			this.txtbz.EditValue = "";
			this.txtbz.Location = new System.Drawing.Point(96, 120);
			this.txtbz.Name = "txtbz";
			// 
			// txtbz.Properties
			// 
			this.txtbz.Properties.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.Default;
			this.txtbz.Size = new System.Drawing.Size(632, 64);
			this.txtbz.TabIndex = 72;
			// 
			// dtrkrq
			// 
			this.dtrkrq.EditValue = new System.DateTime(2006, 8, 23, 19, 10, 22, 515);
			this.dtrkrq.Location = new System.Drawing.Point(576, 72);
			this.dtrkrq.Name = "dtrkrq";
			// 
			// dtrkrq.Properties
			// 
			this.dtrkrq.Properties.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.Default;
			this.dtrkrq.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
																										   new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
			this.dtrkrq.Properties.Mask.UseMaskAsDisplayFormat = true;
			this.dtrkrq.Size = new System.Drawing.Size(152, 21);
			this.dtrkrq.TabIndex = 71;
			// 
			// cbscdw
			// 
			this.cbscdw.EditValue = "";
			this.cbscdw.Location = new System.Drawing.Point(344, 72);
			this.cbscdw.Name = "cbscdw";
			// 
			// cbscdw.Properties
			// 
			this.cbscdw.Properties.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.Default;
			this.cbscdw.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
																										   new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
			this.cbscdw.Size = new System.Drawing.Size(152, 21);
			this.cbscdw.TabIndex = 70;
			// 
			// cbclxz
			// 
			this.cbclxz.EditValue = "";
			this.cbclxz.Location = new System.Drawing.Point(344, 48);
			this.cbclxz.Name = "cbclxz";
			// 
			// cbclxz.Properties
			// 
			this.cbclxz.Properties.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.Default;
			this.cbclxz.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
																										   new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
			this.cbclxz.Size = new System.Drawing.Size(152, 21);
			this.cbclxz.TabIndex = 69;
			// 
			// cbpp
			// 
			this.cbpp.EditValue = "";
			this.cbpp.Location = new System.Drawing.Point(576, 24);
			this.cbpp.Name = "cbpp";
			// 
			// cbpp.Properties
			// 
			this.cbpp.Properties.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.Default;
			this.cbpp.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
																										 new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
			this.cbpp.Size = new System.Drawing.Size(152, 21);
			this.cbpp.TabIndex = 68;
			// 
			// cbys
			// 
			this.cbys.EditValue = "";
			this.cbys.Location = new System.Drawing.Point(344, 24);
			this.cbys.Name = "cbys";
			// 
			// cbys.Properties
			// 
			this.cbys.Properties.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.Default;

⌨️ 快捷键说明

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