📄 main.cs
字号:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
namespace test007
{
/// <summary>
/// main 的摘要说明。
/// </summary>
public class main : System.Windows.Forms.Form
{
private DataSet ds = new DataSet();
private LinkDataBase link = new LinkDataBase();
private string sendTableName = "popedom";
private string sendStrSQL;
private System.Windows.Forms.MainMenu mainMenu1;
private System.Windows.Forms.MenuItem menuItem3;
private System.Windows.Forms.MenuItem menuItem4;
private System.Windows.Forms.MenuItem menuItem5;
private System.Windows.Forms.MenuItem menuItem6;
private System.Windows.Forms.MenuItem menuItem7;
private System.Windows.Forms.MenuItem menuItem8;
private System.Windows.Forms.MenuItem menuItem9;
private System.Windows.Forms.MenuItem menuItem11;
private System.Windows.Forms.MenuItem menuItem12;
private System.Windows.Forms.StatusBar statusBar1;
private System.Windows.Forms.StatusBarPanel statusBarPanel1;
private System.Windows.Forms.StatusBarPanel statusBarPanel2;
private System.Windows.Forms.MenuItem menuItem1;
private System.Windows.Forms.MenuItem menuItem2;
private System.Windows.Forms.MenuItem menuItem15;
private System.Windows.Forms.MenuItem menuItem10;
private System.Windows.Forms.MenuItem menuItem16;
private System.Windows.Forms.MenuItem menuItem14;
private System.Windows.Forms.MenuItem menuItem20;
private System.Data.SqlClient.SqlDataAdapter sqlDataAdapter1;
private System.Data.SqlClient.SqlConnection sqlConnection1;
private test007.popedomDataset popedomDataset1;
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.Windows.Forms.MenuItem menuItem21;
private System.Windows.Forms.MenuItem menuItem23;
private System.Windows.Forms.MenuItem menuItem13;
/// <summary>
/// 必需的设计器变量。
/// </summary>
private System.ComponentModel.Container components = null;
public main()
{
//
// Windows 窗体设计器支持所必需的
//
InitializeComponent();
//
// TODO: 在 InitializeComponent 调用后添加任何构造函数代码
//
}
/// <summary>
/// 清理所有正在使用的资源。
/// </summary>
protected override void Dispose( bool disposing )
{
if( disposing )
{
if(components != null)
{
components.Dispose();
}
}
base.Dispose( disposing );
}
#region Windows Form Designer generated code
/// <summary>
/// 设计器支持所需的方法 - 不要使用代码编辑器修改
/// 此方法的内容。
/// </summary>
private void InitializeComponent()
{
System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(main));
this.mainMenu1 = new System.Windows.Forms.MainMenu();
this.menuItem1 = new System.Windows.Forms.MenuItem();
this.menuItem2 = new System.Windows.Forms.MenuItem();
this.menuItem3 = new System.Windows.Forms.MenuItem();
this.menuItem4 = new System.Windows.Forms.MenuItem();
this.menuItem20 = new System.Windows.Forms.MenuItem();
this.menuItem5 = new System.Windows.Forms.MenuItem();
this.menuItem11 = new System.Windows.Forms.MenuItem();
this.menuItem12 = new System.Windows.Forms.MenuItem();
this.menuItem14 = new System.Windows.Forms.MenuItem();
this.menuItem16 = new System.Windows.Forms.MenuItem();
this.menuItem13 = new System.Windows.Forms.MenuItem();
this.menuItem6 = new System.Windows.Forms.MenuItem();
this.menuItem7 = new System.Windows.Forms.MenuItem();
this.menuItem8 = new System.Windows.Forms.MenuItem();
this.menuItem9 = new System.Windows.Forms.MenuItem();
this.menuItem23 = new System.Windows.Forms.MenuItem();
this.menuItem10 = new System.Windows.Forms.MenuItem();
this.menuItem21 = new System.Windows.Forms.MenuItem();
this.menuItem15 = new System.Windows.Forms.MenuItem();
this.statusBar1 = new System.Windows.Forms.StatusBar();
this.statusBarPanel1 = new System.Windows.Forms.StatusBarPanel();
this.statusBarPanel2 = new System.Windows.Forms.StatusBarPanel();
this.sqlDataAdapter1 = new System.Data.SqlClient.SqlDataAdapter();
this.sqlDeleteCommand1 = new System.Data.SqlClient.SqlCommand();
this.sqlConnection1 = 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.popedomDataset1 = new test007.popedomDataset();
((System.ComponentModel.ISupportInitialize)(this.statusBarPanel1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.statusBarPanel2)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.popedomDataset1)).BeginInit();
this.SuspendLayout();
//
// mainMenu1
//
this.mainMenu1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
this.menuItem1,
this.menuItem5,
this.menuItem6,
this.menuItem9,
this.menuItem10,
this.menuItem15});
//
// menuItem1
//
this.menuItem1.Index = 0;
this.menuItem1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
this.menuItem2,
this.menuItem3,
this.menuItem4,
this.menuItem20});
this.menuItem1.Text = "用户管理";
//
// menuItem2
//
this.menuItem2.Enabled = false;
this.menuItem2.Index = 0;
this.menuItem2.MdiList = true;
this.menuItem2.Text = "客户信息维护";
this.menuItem2.Click += new System.EventHandler(this.menuItem2_Click);
//
// menuItem3
//
this.menuItem3.Enabled = false;
this.menuItem3.Index = 1;
this.menuItem3.MdiList = true;
this.menuItem3.Text = "配送员管理";
this.menuItem3.Click += new System.EventHandler(this.menuItem3_Click);
//
// menuItem4
//
this.menuItem4.Enabled = false;
this.menuItem4.Index = 2;
this.menuItem4.MdiList = true;
this.menuItem4.Text = "管理员维护";
this.menuItem4.Click += new System.EventHandler(this.menuItem4_Click);
//
// menuItem20
//
this.menuItem20.Enabled = false;
this.menuItem20.Index = 3;
this.menuItem20.Text = "权限管理";
this.menuItem20.Click += new System.EventHandler(this.menuItem20_Click);
//
// menuItem5
//
this.menuItem5.Index = 1;
this.menuItem5.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
this.menuItem11,
this.menuItem12,
this.menuItem14,
this.menuItem16,
this.menuItem13});
this.menuItem5.Text = "订单管理";
//
// menuItem11
//
this.menuItem11.Enabled = false;
this.menuItem11.Index = 0;
this.menuItem11.MdiList = true;
this.menuItem11.Text = "订单总汇";
this.menuItem11.Click += new System.EventHandler(this.menuItem11_Click);
//
// menuItem12
//
this.menuItem12.Enabled = false;
this.menuItem12.Index = 1;
this.menuItem12.MdiList = true;
this.menuItem12.Text = "待处理订单";
this.menuItem12.Click += new System.EventHandler(this.menuItem12_Click);
//
// menuItem14
//
this.menuItem14.Enabled = false;
this.menuItem14.Index = 2;
this.menuItem14.MdiList = true;
this.menuItem14.Text = "未完成订单";
this.menuItem14.Click += new System.EventHandler(this.menuItem14_Click);
//
// menuItem16
//
this.menuItem16.Enabled = false;
this.menuItem16.Index = 3;
this.menuItem16.MdiList = true;
this.menuItem16.Text = "已完成订单";
this.menuItem16.Click += new System.EventHandler(this.menuItem16_Click);
//
// menuItem13
//
this.menuItem13.Enabled = false;
this.menuItem13.Index = 4;
this.menuItem13.Text = "未实施订单";
this.menuItem13.Click += new System.EventHandler(this.menuItem13_Click);
//
// menuItem6
//
this.menuItem6.Index = 2;
this.menuItem6.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
this.menuItem7,
this.menuItem8});
this.menuItem6.Text = "运输管理";
//
// menuItem7
//
this.menuItem7.Enabled = false;
this.menuItem7.Index = 0;
this.menuItem7.MdiList = true;
this.menuItem7.Text = "运输路线设计";
this.menuItem7.Click += new System.EventHandler(this.menuItem7_Click);
//
// menuItem8
//
this.menuItem8.Enabled = false;
this.menuItem8.Index = 1;
this.menuItem8.MdiList = true;
this.menuItem8.Text = "运输路线查询";
this.menuItem8.Click += new System.EventHandler(this.menuItem8_Click);
//
// menuItem9
//
this.menuItem9.Index = 3;
this.menuItem9.MdiList = true;
this.menuItem9.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
this.menuItem23});
this.menuItem9.Text = "运输跟踪";
//
// menuItem23
//
this.menuItem23.Enabled = false;
this.menuItem23.Index = 0;
this.menuItem23.Text = "货物跟踪";
this.menuItem23.Click += new System.EventHandler(this.menuItem23_Click);
//
// menuItem10
//
this.menuItem10.Index = 4;
this.menuItem10.MdiList = true;
this.menuItem10.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
this.menuItem21});
this.menuItem10.Text = "回执管理";
//
// menuItem21
//
this.menuItem21.Enabled = false;
this.menuItem21.Index = 0;
this.menuItem21.Text = "回执单维护";
this.menuItem21.Click += new System.EventHandler(this.menuItem21_Click);
//
// menuItem15
//
this.menuItem15.Index = 5;
this.menuItem15.Text = "退出系统";
this.menuItem15.Click += new System.EventHandler(this.menuItem15_Click);
//
// statusBar1
//
this.statusBar1.Location = new System.Drawing.Point(0, 611);
this.statusBar1.Name = "statusBar1";
this.statusBar1.Panels.AddRange(new System.Windows.Forms.StatusBarPanel[] {
this.statusBarPanel1,
this.statusBarPanel2});
this.statusBar1.ShowPanels = true;
this.statusBar1.Size = new System.Drawing.Size(972, 22);
this.statusBar1.TabIndex = 1;
//
// statusBarPanel1
//
this.statusBarPanel1.Alignment = System.Windows.Forms.HorizontalAlignment.Center;
this.statusBarPanel1.MinWidth = 200;
this.statusBarPanel1.Text = "慧思奇创物流信息服务平台";
this.statusBarPanel1.Width = 300;
//
// statusBarPanel2
//
this.statusBarPanel2.MinWidth = 200;
this.statusBarPanel2.Width = 500;
//
// sqlDataAdapter1
//
this.sqlDataAdapter1.DeleteCommand = this.sqlDeleteCommand1;
this.sqlDataAdapter1.InsertCommand = this.sqlInsertCommand1;
this.sqlDataAdapter1.SelectCommand = this.sqlSelectCommand1;
this.sqlDataAdapter1.TableMappings.AddRange(new System.Data.Common.DataTableMapping[] {
new System.Data.Common.DataTableMapping("Table", "popedom", new System.Data.Common.DataColumnMapping[] {
new System.Data.Common.DataColumnMapping("权限序号", "权限序号"),
new System.Data.Common.DataColumnMapping("管理员帐号", "管理员帐号"),
new System.Data.Common.DataColumnMapping("所属部门", "所属部门"),
new System.Data.Common.DataColumnMapping("权限名称", "权限名称")})});
this.sqlDataAdapter1.UpdateCommand = this.sqlUpdateCommand1;
//
// sqlDeleteCommand1
//
this.sqlDeleteCommand1.CommandText = "DELETE FROM popedom WHERE (权限序号 = @Original_权限序号) AND (所属部门 = @Original_所属部门 OR @" +
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -