📄 frminitial.cs
字号:
using System;
using System.Data;
using System.Data.SqlClient;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
namespace MainPrj_CarShop
{
/// <summary>
/// frmInitial 的摘要说明。
/// </summary>
public class frmInitial : System.Windows.Forms.Form
{
private System.Windows.Forms.GroupBox groupBox1;
private System.Windows.Forms.GroupBox groupBox2;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.Label label5;
private System.Windows.Forms.Label label6;
private System.Windows.Forms.Label label8;
private System.Windows.Forms.Label label11;
private System.Windows.Forms.Label label12;
private System.Windows.Forms.Label label14;
private System.Windows.Forms.Label label15;
private System.Windows.Forms.Label label7;
private System.Windows.Forms.TextBox txtCName;
private System.Windows.Forms.TextBox txtCAdd;
private System.Windows.Forms.TextBox txtCPhone;
private System.Windows.Forms.TextBox txtCWeb;
private System.Windows.Forms.TextBox txtInDepot;
private System.Windows.Forms.TextBox txtMove;
private System.Windows.Forms.TextBox txtStock;
private System.Windows.Forms.TextBox txtGet;
private System.Windows.Forms.TextBox txtSellS;
private System.Windows.Forms.TextBox txtSelling;
private System.Windows.Forms.TextBox txtPay;
private System.Windows.Forms.TextBox txtCommit;
private System.Windows.Forms.Button btnConfirm;
private System.Windows.Forms.Button btnCancel;
/// <summary>
/// 必需的设计器变量。
/// </summary>
private System.ComponentModel.Container components = null;
private System.Data.SqlClient.SqlCommand sqlSelectCommand1;
private System.Data.SqlClient.SqlCommand sqlInsertCommand1;
private System.Data.SqlClient.SqlCommand sqlUpdateCommand1;
private System.Data.SqlClient.SqlCommand sqlDeleteCommand1;
private System.Data.SqlClient.SqlDataAdapter _sqlAdap;
private System.Data.SqlClient.SqlConnection _sqlCon;
private MainPrj_CarShop.dsOsINI _dsOsINI1;
private System.Data.SqlClient.SqlCommand _sqlCom;
private string _userID="";
public frmInitial(string userID)
{
//
// Windows 窗体设计器支持所必需的
//
InitializeComponent();
_userID=userID;
//
// 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.groupBox1 = new System.Windows.Forms.GroupBox();
this.label1 = new System.Windows.Forms.Label();
this.txtCName = new System.Windows.Forms.TextBox();
this._dsOsINI1 = new MainPrj_CarShop.dsOsINI();
this.label2 = new System.Windows.Forms.Label();
this.txtCAdd = new System.Windows.Forms.TextBox();
this.txtCPhone = new System.Windows.Forms.TextBox();
this.txtCWeb = new System.Windows.Forms.TextBox();
this.label3 = new System.Windows.Forms.Label();
this.label4 = new System.Windows.Forms.Label();
this.groupBox2 = new System.Windows.Forms.GroupBox();
this.label7 = new System.Windows.Forms.Label();
this.txtPay = new System.Windows.Forms.TextBox();
this.txtSelling = new System.Windows.Forms.TextBox();
this.label12 = new System.Windows.Forms.Label();
this.txtSellS = new System.Windows.Forms.TextBox();
this.label11 = new System.Windows.Forms.Label();
this.txtGet = new System.Windows.Forms.TextBox();
this.txtStock = new System.Windows.Forms.TextBox();
this.label8 = new System.Windows.Forms.Label();
this.txtMove = new System.Windows.Forms.TextBox();
this.label6 = new System.Windows.Forms.Label();
this.txtInDepot = new System.Windows.Forms.TextBox();
this.label5 = new System.Windows.Forms.Label();
this.label14 = new System.Windows.Forms.Label();
this.label15 = new System.Windows.Forms.Label();
this.txtCommit = new System.Windows.Forms.TextBox();
this.btnConfirm = new System.Windows.Forms.Button();
this.btnCancel = new System.Windows.Forms.Button();
this._sqlAdap = new System.Data.SqlClient.SqlDataAdapter();
this.sqlDeleteCommand1 = new System.Data.SqlClient.SqlCommand();
this._sqlCon = new System.Data.SqlClient.SqlConnection();
this.sqlInsertCommand1 = new System.Data.SqlClient.SqlCommand();
this.sqlSelectCommand1 = new System.Data.SqlClient.SqlCommand();
this.sqlUpdateCommand1 = new System.Data.SqlClient.SqlCommand();
this._sqlCom = new System.Data.SqlClient.SqlCommand();
this.groupBox1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this._dsOsINI1)).BeginInit();
this.groupBox2.SuspendLayout();
this.SuspendLayout();
//
// groupBox1
//
this.groupBox1.Controls.Add(this.label1);
this.groupBox1.Controls.Add(this.txtCName);
this.groupBox1.Controls.Add(this.label2);
this.groupBox1.Controls.Add(this.txtCAdd);
this.groupBox1.Controls.Add(this.txtCPhone);
this.groupBox1.Controls.Add(this.txtCWeb);
this.groupBox1.Controls.Add(this.label3);
this.groupBox1.Controls.Add(this.label4);
this.groupBox1.Dock = System.Windows.Forms.DockStyle.Top;
this.groupBox1.Location = new System.Drawing.Point(0, 0);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(520, 168);
this.groupBox1.TabIndex = 0;
this.groupBox1.TabStop = false;
this.groupBox1.Text = "公司信息";
//
// label1
//
this.label1.AutoSize = true;
this.label1.BackColor = System.Drawing.Color.Transparent;
this.label1.Location = new System.Drawing.Point(40, 66);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(42, 17);
this.label1.TabIndex = 5;
this.label1.Text = "地 址";
//
// txtCName
//
this.txtCName.BackColor = System.Drawing.Color.White;
this.txtCName.DataBindings.Add(new System.Windows.Forms.Binding("Text", this._dsOsINI1, "tblOsInit.osiName"));
this.txtCName.Location = new System.Drawing.Point(88, 32);
this.txtCName.Name = "txtCName";
this.txtCName.ReadOnly = true;
this.txtCName.Size = new System.Drawing.Size(400, 21);
this.txtCName.TabIndex = 4;
this.txtCName.Text = "";
//
// _dsOsINI1
//
this._dsOsINI1.DataSetName = "dsOsINI";
this._dsOsINI1.Locale = new System.Globalization.CultureInfo("zh-CN");
//
// label2
//
this.label2.AutoSize = true;
this.label2.BackColor = System.Drawing.Color.Transparent;
this.label2.Location = new System.Drawing.Point(40, 34);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(42, 17);
this.label2.TabIndex = 3;
this.label2.Text = "名 称";
//
// txtCAdd
//
this.txtCAdd.BackColor = System.Drawing.Color.White;
this.txtCAdd.DataBindings.Add(new System.Windows.Forms.Binding("Text", this._dsOsINI1, "tblOsInit.osiAdd"));
this.txtCAdd.Location = new System.Drawing.Point(88, 64);
this.txtCAdd.Name = "txtCAdd";
this.txtCAdd.ReadOnly = true;
this.txtCAdd.Size = new System.Drawing.Size(400, 21);
this.txtCAdd.TabIndex = 4;
this.txtCAdd.Text = "";
//
// txtCPhone
//
this.txtCPhone.BackColor = System.Drawing.Color.White;
this.txtCPhone.DataBindings.Add(new System.Windows.Forms.Binding("Text", this._dsOsINI1, "tblOsInit.osiTel"));
this.txtCPhone.Location = new System.Drawing.Point(88, 96);
this.txtCPhone.Name = "txtCPhone";
this.txtCPhone.ReadOnly = true;
this.txtCPhone.Size = new System.Drawing.Size(400, 21);
this.txtCPhone.TabIndex = 4;
this.txtCPhone.Text = "";
//
// txtCWeb
//
this.txtCWeb.BackColor = System.Drawing.Color.White;
this.txtCWeb.DataBindings.Add(new System.Windows.Forms.Binding("Text", this._dsOsINI1, "tblOsInit.osiWeb"));
this.txtCWeb.Location = new System.Drawing.Point(88, 128);
this.txtCWeb.Name = "txtCWeb";
this.txtCWeb.ReadOnly = true;
this.txtCWeb.Size = new System.Drawing.Size(400, 21);
this.txtCWeb.TabIndex = 4;
this.txtCWeb.Text = "";
//
// label3
//
this.label3.AutoSize = true;
this.label3.BackColor = System.Drawing.Color.Transparent;
this.label3.Location = new System.Drawing.Point(40, 98);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(42, 17);
this.label3.TabIndex = 5;
this.label3.Text = "电 话";
//
// label4
//
this.label4.AutoSize = true;
this.label4.BackColor = System.Drawing.Color.Transparent;
this.label4.Location = new System.Drawing.Point(40, 130);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(42, 17);
this.label4.TabIndex = 5;
this.label4.Text = "网 址";
//
// groupBox2
//
this.groupBox2.Controls.Add(this.label7);
this.groupBox2.Controls.Add(this.txtPay);
this.groupBox2.Controls.Add(this.txtSelling);
this.groupBox2.Controls.Add(this.label12);
this.groupBox2.Controls.Add(this.txtSellS);
this.groupBox2.Controls.Add(this.label11);
this.groupBox2.Controls.Add(this.txtGet);
this.groupBox2.Controls.Add(this.txtStock);
this.groupBox2.Controls.Add(this.label8);
this.groupBox2.Controls.Add(this.txtMove);
this.groupBox2.Controls.Add(this.label6);
this.groupBox2.Controls.Add(this.txtInDepot);
this.groupBox2.Controls.Add(this.label5);
this.groupBox2.Controls.Add(this.label14);
this.groupBox2.Controls.Add(this.label15);
this.groupBox2.Controls.Add(this.txtCommit);
this.groupBox2.Dock = System.Windows.Forms.DockStyle.Top;
this.groupBox2.Location = new System.Drawing.Point(0, 168);
this.groupBox2.Name = "groupBox2";
this.groupBox2.Size = new System.Drawing.Size(520, 136);
this.groupBox2.TabIndex = 1;
this.groupBox2.TabStop = false;
this.groupBox2.Text = "各种单据的起始单号";
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -