MaterialsForm.cs
资源名称:VCSDB.rar [点击查看]
上传用户:hjieqiu
上传日期:2013-05-11
资源大小:16494k
文件大小:90k
源码类别:
企业管理
开发平台:
C#
- using System;
- using System.Data;
- using System.Drawing;
- using System.Collections;
- using System.ComponentModel;
- using System.Windows.Forms;
- using System.Data.SqlClient;
- namespace 生产管理系统
- {
- /// <summary>
- /// MaterialsForm 的摘要说明。
- /// </summary>
- public class MaterialsForm : System.Windows.Forms.Form
- {
- //设置连接字符串
- private CurrencyManager cmOrders;
- //设置数据链接
- private SqlConnection tempConnection = new SqlConnection("workstation id=localhost;Integrated Security=SSPI;database=mrpbook;") ;
- private System.Data.SqlClient.SqlConnection sqlConnection1;
- private 生产管理系统.DataSet1 dataSet11;
- private System.Windows.Forms.DataGrid dataGrid1;
- private System.Windows.Forms.GroupBox groupBox1;
- private System.Windows.Forms.ToolBar toolBar1;
- private System.Windows.Forms.ImageList imageList1;
- private System.Windows.Forms.Button btnSearch;
- private System.Windows.Forms.Label label1;
- private System.Windows.Forms.TextBox txt2;
- private System.Windows.Forms.TextBox txt1;
- private System.Windows.Forms.Label label2;
- private System.Windows.Forms.TextBox txt3;
- private System.Windows.Forms.Label label3;
- private System.Windows.Forms.GroupBox groupBox2;
- private System.Windows.Forms.Label label4;
- private System.Windows.Forms.Label label5;
- private System.Windows.Forms.Label label6;
- private System.Windows.Forms.Label label7;
- private System.Windows.Forms.Label label8;
- private System.Windows.Forms.Label label9;
- private System.Windows.Forms.Label label10;
- private System.Windows.Forms.ToolBarButton tBtnFirst;
- private System.Windows.Forms.ToolBarButton tBtnPre;
- private System.Windows.Forms.ToolBarButton tBtnNext;
- private System.Windows.Forms.ToolBarButton tBtnLast;
- private System.Windows.Forms.ToolBarButton tBtnNew;
- private System.Windows.Forms.ToolBarButton tBtnDelete;
- private System.Windows.Forms.ToolBarButton tBtnSubmit;
- private System.Windows.Forms.ToolBarButton tBtnEdit;
- private System.Windows.Forms.DataGridTableStyle dataGridTableStyle1;
- private System.Windows.Forms.DataGridTextBoxColumn dataGridTextBoxColumn1;
- private System.Windows.Forms.DataGridTextBoxColumn dataGridTextBoxColumn2;
- private System.Windows.Forms.Label label11;
- private System.Windows.Forms.Label label12;
- private System.Windows.Forms.Label label13;
- private System.Windows.Forms.Label label14;
- private System.Windows.Forms.Label label15;
- private System.Windows.Forms.Label label16;
- private System.Windows.Forms.Label label17;
- private System.Windows.Forms.Label label18;
- private System.Windows.Forms.Label label19;
- private System.Windows.Forms.Label label20;
- private System.Windows.Forms.Label label21;
- private System.Windows.Forms.Label label22;
- private System.Windows.Forms.Label label23;
- private System.Windows.Forms.Label label24;
- private System.Windows.Forms.Label label25;
- private System.Windows.Forms.Label label26;
- private System.Windows.Forms.Label label27;
- private System.Windows.Forms.Label label28;
- private System.Data.SqlClient.SqlDataAdapter da1;
- private System.Data.SqlClient.SqlDataAdapter da2;
- private System.Data.SqlClient.SqlCommand sqlSelectCommand2;
- private System.Windows.Forms.ComboBox cmb1;
- private System.Windows.Forms.TextBox txt4;
- private System.Windows.Forms.TextBox txt5;
- private System.Windows.Forms.TextBox txt6;
- private System.Windows.Forms.TextBox txt7;
- private System.Windows.Forms.ComboBox cmb2;
- private System.Windows.Forms.TextBox txt9;
- private System.Windows.Forms.TextBox txt8;
- private System.Windows.Forms.TextBox txt12;
- private System.Windows.Forms.TextBox txt11;
- private System.Windows.Forms.TextBox txt10;
- private System.Windows.Forms.TextBox txt13;
- private System.Windows.Forms.TextBox txt15;
- private System.Windows.Forms.TextBox txt16;
- private System.Windows.Forms.TextBox txt14;
- private System.Windows.Forms.TextBox txt17;
- private System.Windows.Forms.TextBox txt19;
- private System.Windows.Forms.TextBox txt18;
- private System.Windows.Forms.TextBox txt21;
- private System.Windows.Forms.TextBox txt24;
- private System.Windows.Forms.TextBox txt23;
- private System.Windows.Forms.TextBox txt20;
- private System.Windows.Forms.TextBox txt22;
- private System.Windows.Forms.TextBox txt27;
- private System.Windows.Forms.TextBox txt26;
- private System.Windows.Forms.TextBox txt29;
- private System.Windows.Forms.TextBox txt28;
- private System.Windows.Forms.TextBox txt25;
- 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.ToolBarButton tBtnQuit;
- private System.Windows.Forms.ToolBarButton tBtnCancel;
- private System.ComponentModel.IContainer components;
- public MaterialsForm()
- {
- //
- // 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.components = new System.ComponentModel.Container();
- System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(MaterialsForm));
- this.da1 = 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.dataSet11 = new 生产管理系统.DataSet1();
- this.dataGrid1 = new System.Windows.Forms.DataGrid();
- this.dataGridTableStyle1 = new System.Windows.Forms.DataGridTableStyle();
- this.dataGridTextBoxColumn1 = new System.Windows.Forms.DataGridTextBoxColumn();
- this.dataGridTextBoxColumn2 = new System.Windows.Forms.DataGridTextBoxColumn();
- this.groupBox1 = new System.Windows.Forms.GroupBox();
- this.txt2 = new System.Windows.Forms.TextBox();
- this.label1 = new System.Windows.Forms.Label();
- this.btnSearch = new System.Windows.Forms.Button();
- this.txt1 = new System.Windows.Forms.TextBox();
- this.label2 = new System.Windows.Forms.Label();
- this.txt3 = new System.Windows.Forms.TextBox();
- this.label3 = new System.Windows.Forms.Label();
- this.toolBar1 = new System.Windows.Forms.ToolBar();
- this.tBtnFirst = new System.Windows.Forms.ToolBarButton();
- this.tBtnPre = new System.Windows.Forms.ToolBarButton();
- this.tBtnNext = new System.Windows.Forms.ToolBarButton();
- this.tBtnLast = new System.Windows.Forms.ToolBarButton();
- this.tBtnNew = new System.Windows.Forms.ToolBarButton();
- this.tBtnEdit = new System.Windows.Forms.ToolBarButton();
- this.tBtnDelete = new System.Windows.Forms.ToolBarButton();
- this.tBtnSubmit = new System.Windows.Forms.ToolBarButton();
- this.tBtnCancel = new System.Windows.Forms.ToolBarButton();
- this.tBtnQuit = new System.Windows.Forms.ToolBarButton();
- this.imageList1 = new System.Windows.Forms.ImageList(this.components);
- this.groupBox2 = new System.Windows.Forms.GroupBox();
- this.txt12 = new System.Windows.Forms.TextBox();
- this.txt11 = new System.Windows.Forms.TextBox();
- this.txt10 = new System.Windows.Forms.TextBox();
- this.txt13 = new System.Windows.Forms.TextBox();
- this.txt15 = new System.Windows.Forms.TextBox();
- this.txt16 = new System.Windows.Forms.TextBox();
- this.txt14 = new System.Windows.Forms.TextBox();
- this.txt17 = new System.Windows.Forms.TextBox();
- this.txt19 = new System.Windows.Forms.TextBox();
- this.txt18 = new System.Windows.Forms.TextBox();
- this.txt21 = new System.Windows.Forms.TextBox();
- this.txt24 = new System.Windows.Forms.TextBox();
- this.txt23 = new System.Windows.Forms.TextBox();
- this.txt20 = new System.Windows.Forms.TextBox();
- this.txt22 = new System.Windows.Forms.TextBox();
- this.txt27 = new System.Windows.Forms.TextBox();
- this.txt26 = new System.Windows.Forms.TextBox();
- this.txt29 = new System.Windows.Forms.TextBox();
- this.txt28 = new System.Windows.Forms.TextBox();
- this.txt25 = new System.Windows.Forms.TextBox();
- this.cmb1 = new System.Windows.Forms.ComboBox();
- this.txt4 = new System.Windows.Forms.TextBox();
- this.txt5 = new System.Windows.Forms.TextBox();
- this.txt6 = new System.Windows.Forms.TextBox();
- this.txt7 = new System.Windows.Forms.TextBox();
- this.cmb2 = new System.Windows.Forms.ComboBox();
- this.txt9 = new System.Windows.Forms.TextBox();
- this.txt8 = new System.Windows.Forms.TextBox();
- this.label4 = new System.Windows.Forms.Label();
- this.label5 = new System.Windows.Forms.Label();
- this.label6 = new System.Windows.Forms.Label();
- this.label7 = new System.Windows.Forms.Label();
- this.label8 = new System.Windows.Forms.Label();
- this.label9 = new System.Windows.Forms.Label();
- this.label10 = new System.Windows.Forms.Label();
- this.label11 = new System.Windows.Forms.Label();
- this.label12 = new System.Windows.Forms.Label();
- this.label13 = new System.Windows.Forms.Label();
- this.label14 = new System.Windows.Forms.Label();
- this.label15 = new System.Windows.Forms.Label();
- this.label16 = new System.Windows.Forms.Label();
- this.label17 = new System.Windows.Forms.Label();
- this.label18 = new System.Windows.Forms.Label();
- this.label19 = new System.Windows.Forms.Label();
- this.label20 = new System.Windows.Forms.Label();
- this.label21 = new System.Windows.Forms.Label();
- this.label22 = new System.Windows.Forms.Label();
- this.label23 = new System.Windows.Forms.Label();
- this.label24 = new System.Windows.Forms.Label();
- this.label25 = new System.Windows.Forms.Label();
- this.label26 = new System.Windows.Forms.Label();
- this.label27 = new System.Windows.Forms.Label();
- this.label28 = new System.Windows.Forms.Label();
- this.da2 = new System.Data.SqlClient.SqlDataAdapter();
- this.sqlSelectCommand2 = new System.Data.SqlClient.SqlCommand();
- ((System.ComponentModel.ISupportInitialize)(this.dataSet11)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.dataGrid1)).BeginInit();
- this.groupBox1.SuspendLayout();
- this.groupBox2.SuspendLayout();
- this.SuspendLayout();
- //
- // da1
- //
- this.da1.DeleteCommand = this.sqlDeleteCommand1;
- this.da1.InsertCommand = this.sqlInsertCommand1;
- this.da1.SelectCommand = this.sqlSelectCommand1;
- this.da1.TableMappings.AddRange(new System.Data.Common.DataTableMapping[] {
- new System.Data.Common.DataTableMapping("Table", "物料主文件", 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("拼音编码", "拼音编码"),
- 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("归属类别", "归属类别"),
- new System.Data.Common.DataColumnMapping("价值类别", "价值类别"),
- new System.Data.Common.DataColumnMapping("物料特性a", "物料特性a"),
- new System.Data.Common.DataColumnMapping("物料特性b", "物料特性b"),
- new System.Data.Common.DataColumnMapping("物料特性c", "物料特性c"),
- new System.Data.Common.DataColumnMapping("物料特性d", "物料特性d"),
- 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("品牌", "品牌"),
- 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("生产周期", "生产周期"),
- 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("最低库存", "最低库存"),
- 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("指定供货商", "指定供货商"),
- new System.Data.Common.DataColumnMapping("定货策略", "定货策略"),
- new System.Data.Common.DataColumnMapping("生产车间", "生产车间")})});
- this.da1.UpdateCommand = this.sqlUpdateCommand1;
- //
- // sqlDeleteCommand1
- //
- this.sqlDeleteCommand1.CommandText = "DELETE FROM 物料主文件 WHERE (物料编号 = @Original_物料编号) AND (价值类别 = @Original_价值类别 OR @Or" +
- "iginal_价值类别 IS NULL AND 价值类别 IS NULL) AND (低层码 = @Original_低层码 OR @Original_低层码 " +
- "IS NULL AND 低层码 IS NULL) AND (净重 = @Original_净重 OR @Original_净重 IS NULL AND 净重 I" +
- "S NULL) AND (准备周期 = @Original_准备周期 OR @Original_准备周期 IS NULL AND 准备周期 IS NULL) A" +
- "ND (品牌 = @Original_品牌 OR @Original_品牌 IS NULL AND 品牌 IS NULL) AND (定货策略 = @Origi" +
- "nal_定货策略 OR @Original_定货策略 IS NULL AND 定货策略 IS NULL) AND (宽 = @Original_宽 OR @Or" +
- "iginal_宽 IS NULL AND 宽 IS NULL) AND (库存期限 = @Original_库存期限 OR @Original_库存期限 IS " +
- "NULL AND 库存期限 IS NULL) AND (归属类别 = @Original_归属类别 OR @Original_归属类别 IS NULL AND " +
- "归属类别 IS NULL) AND (录入日期 = @Original_录入日期 OR @Original_录入日期 IS NULL AND 录入日期 IS N" +
- "ULL) AND (录入者 = @Original_录入者 OR @Original_录入者 IS NULL AND 录入者 IS NULL) AND (批量 " +
- "= @Original_批量 OR @Original_批量 IS NULL AND 批量 IS NULL) AND (拼音编码 = @Original_拼音编" +
- "码 OR @Original_拼音编码 IS NULL AND 拼音编码 IS NULL) AND (指定供货商 = @Original_指定供货商 OR @O" +
- "riginal_指定供货商 IS NULL AND 指定供货商 IS NULL) AND (最低库存 = @Original_最低库存 OR @Original" +
- "_最低库存 IS NULL AND 最低库存 IS NULL) AND (最低销售量 = @Original_最低销售量 OR @Original_最低销售量 " +
- "IS NULL AND 最低销售量 IS NULL) AND (最小包装量 = @Original_最小包装量 OR @Original_最小包装量 IS NU" +
- "LL AND 最小包装量 IS NULL) AND (最高库存 = @Original_最高库存 OR @Original_最高库存 IS NULL AND 最" +
- "高库存 IS NULL) AND (条码 = @Original_条码 OR @Original_条码 IS NULL AND 条码 IS NULL) AND " +
- "(物料名称 = @Original_物料名称) AND (物料特性a = @Original_物料特性a OR @Original_物料特性a IS NULL " +
- "AND 物料特性a IS NULL) AND (物料特性b = @Original_物料特性b OR @Original_物料特性b IS NULL AND 物" +
- "料特性b IS NULL) AND (物料特性c = @Original_物料特性c OR @Original_物料特性c IS NULL AND 物料特性c " +
- "IS NULL) AND (物料特性d = @Original_物料特性d OR @Original_物料特性d IS NULL AND 物料特性d IS NU" +
- "LL) AND (状态类别 = @Original_状态类别 OR @Original_状态类别 IS NULL AND 状态类别 IS NULL) AND (" +
- "生产周期 = @Original_生产周期 OR @Original_生产周期 IS NULL AND 生产周期 IS NULL) AND (生产车间 = @O" +
- "riginal_生产车间 OR @Original_生产车间 IS NULL AND 生产车间 IS NULL) AND (等级 = @Original_等级 " +
- "OR @Original_等级 IS NULL AND 等级 IS NULL) AND (规格型号 = @Original_规格型号 OR @Original_" +
- "规格型号 IS NULL AND 规格型号 IS NULL) AND (计划类别 = @Original_计划类别 OR @Original_计划类别 IS N" +
- "ULL AND 计划类别 IS NULL) AND (计量单位 = @Original_计量单位) AND (进货提前期 = @Original_进货提前期 O" +
- "R @Original_进货提前期 IS NULL AND 进货提前期 IS NULL) AND (长 = @Original_长 OR @Original_长" +
- " IS NULL AND 长 IS NULL) AND (颜色 = @Original_颜色 OR @Original_颜色 IS NULL AND 颜色 IS" +
- " NULL) AND (高 = @Original_高 OR @Original_高 IS NULL AND 高 IS NULL)";
- this.sqlDeleteCommand1.Connection = this.sqlConnection1;
- this.sqlDeleteCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_物料编号", System.Data.SqlDbType.VarChar, 14, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "物料编号", System.Data.DataRowVersion.Original, null));
- this.sqlDeleteCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_价值类别", System.Data.SqlDbType.VarChar, 1, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "价值类别", System.Data.DataRowVersion.Original, null));
- this.sqlDeleteCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_低层码", System.Data.SqlDbType.Int, 4, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "低层码", System.Data.DataRowVersion.Original, null));
- this.sqlDeleteCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_净重", System.Data.SqlDbType.Decimal, 9, System.Data.ParameterDirection.Input, false, ((System.Byte)(18)), ((System.Byte)(3)), "净重", System.Data.DataRowVersion.Original, null));
- this.sqlDeleteCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_准备周期", System.Data.SqlDbType.Int, 4, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "准备周期", System.Data.DataRowVersion.Original, null));
- this.sqlDeleteCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_品牌", System.Data.SqlDbType.VarChar, 10, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "品牌", System.Data.DataRowVersion.Original, null));
- this.sqlDeleteCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_定货策略", System.Data.SqlDbType.VarChar, 10, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "定货策略", System.Data.DataRowVersion.Original, null));
- this.sqlDeleteCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_宽", System.Data.SqlDbType.Decimal, 9, System.Data.ParameterDirection.Input, false, ((System.Byte)(18)), ((System.Byte)(3)), "宽", System.Data.DataRowVersion.Original, null));
- this.sqlDeleteCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_库存期限", System.Data.SqlDbType.Int, 4, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "库存期限", System.Data.DataRowVersion.Original, null));
- this.sqlDeleteCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_归属类别", System.Data.SqlDbType.VarChar, 5, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "归属类别", System.Data.DataRowVersion.Original, null));
- this.sqlDeleteCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_录入日期", System.Data.SqlDbType.Int, 4, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "录入日期", System.Data.DataRowVersion.Original, null));
- this.sqlDeleteCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_录入者", System.Data.SqlDbType.VarChar, 8, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "录入者", System.Data.DataRowVersion.Original, null));
- this.sqlDeleteCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_批量", System.Data.SqlDbType.Decimal, 9, System.Data.ParameterDirection.Input, false, ((System.Byte)(18)), ((System.Byte)(4)), "批量", System.Data.DataRowVersion.Original, null));
- this.sqlDeleteCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_拼音编码", System.Data.SqlDbType.VarChar, 10, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "拼音编码", System.Data.DataRowVersion.Original, null));
- this.sqlDeleteCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_指定供货商", System.Data.SqlDbType.VarChar, 10, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "指定供货商", System.Data.DataRowVersion.Original, null));
- this.sqlDeleteCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_最低库存", System.Data.SqlDbType.Decimal, 9, System.Data.ParameterDirection.Input, false, ((System.Byte)(18)), ((System.Byte)(3)), "最低库存", System.Data.DataRowVersion.Original, null));
- this.sqlDeleteCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_最低销售量", System.Data.SqlDbType.Decimal, 9, System.Data.ParameterDirection.Input, false, ((System.Byte)(18)), ((System.Byte)(3)), "最低销售量", System.Data.DataRowVersion.Original, null));
- this.sqlDeleteCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_最小包装量", System.Data.SqlDbType.Decimal, 9, System.Data.ParameterDirection.Input, false, ((System.Byte)(18)), ((System.Byte)(3)), "最小包装量", System.Data.DataRowVersion.Original, null));
- this.sqlDeleteCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_最高库存", System.Data.SqlDbType.Decimal, 9, System.Data.ParameterDirection.Input, false, ((System.Byte)(18)), ((System.Byte)(3)), "最高库存", System.Data.DataRowVersion.Original, null));
- this.sqlDeleteCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_条码", System.Data.SqlDbType.VarChar, 14, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "条码", System.Data.DataRowVersion.Original, null));
- this.sqlDeleteCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_物料名称", System.Data.SqlDbType.VarChar, 50, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "物料名称", System.Data.DataRowVersion.Original, null));
- this.sqlDeleteCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_物料特性a", System.Data.SqlDbType.VarChar, 40, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "物料特性a", System.Data.DataRowVersion.Original, null));
- this.sqlDeleteCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_物料特性b", System.Data.SqlDbType.VarChar, 40, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "物料特性b", System.Data.DataRowVersion.Original, null));
- this.sqlDeleteCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_物料特性c", System.Data.SqlDbType.VarChar, 40, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "物料特性c", System.Data.DataRowVersion.Original, null));
- this.sqlDeleteCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_物料特性d", System.Data.SqlDbType.VarChar, 40, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "物料特性d", System.Data.DataRowVersion.Original, null));
- this.sqlDeleteCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_状态类别", System.Data.SqlDbType.VarChar, 5, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "状态类别", System.Data.DataRowVersion.Original, null));
- this.sqlDeleteCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_生产周期", System.Data.SqlDbType.Int, 4, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "生产周期", System.Data.DataRowVersion.Original, null));
- this.sqlDeleteCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_生产车间", System.Data.SqlDbType.VarChar, 10, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "生产车间", System.Data.DataRowVersion.Original, null));
- this.sqlDeleteCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_等级", System.Data.SqlDbType.VarChar, 10, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "等级", System.Data.DataRowVersion.Original, null));
- this.sqlDeleteCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_规格型号", System.Data.SqlDbType.VarChar, 20, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "规格型号", System.Data.DataRowVersion.Original, null));
- this.sqlDeleteCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_计划类别", System.Data.SqlDbType.VarChar, 5, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "计划类别", System.Data.DataRowVersion.Original, null));
- this.sqlDeleteCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_计量单位", System.Data.SqlDbType.VarChar, 10, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "计量单位", System.Data.DataRowVersion.Original, null));
- this.sqlDeleteCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_进货提前期", System.Data.SqlDbType.Int, 4, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "进货提前期", System.Data.DataRowVersion.Original, null));
- this.sqlDeleteCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_长", System.Data.SqlDbType.Decimal, 9, System.Data.ParameterDirection.Input, false, ((System.Byte)(18)), ((System.Byte)(3)), "长", System.Data.DataRowVersion.Original, null));
- this.sqlDeleteCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_颜色", System.Data.SqlDbType.VarChar, 10, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "颜色", System.Data.DataRowVersion.Original, null));
- this.sqlDeleteCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_高", System.Data.SqlDbType.Decimal, 9, System.Data.ParameterDirection.Input, false, ((System.Byte)(18)), ((System.Byte)(3)), "高", System.Data.DataRowVersion.Original, null));
- //
- // sqlConnection1
- //
- this.sqlConnection1.ConnectionString = "workstation id=localhost;Integrated Security=SSPI;Database=mrpbook;";
- //
- // sqlInsertCommand1
- //
- this.sqlInsertCommand1.CommandText = @"INSERT INTO 物料主文件(物料编号, 条码, 物料名称, 拼音编码, 计量单位, 规格型号, 计划类别, 状态类别, 归属类别, 价值类别, 物料特性a, 物料特性b, 物料特性c, 物料特性d, 长, 宽, 高, 净重, 品牌, 颜色, 等级, 进货提前期, 准备周期, 生产周期, 最小包装量, 最低销售量, 批量, 最高库存, 最低库存, 库存期限, 录入者, 录入日期, 低层码, 指定供货商, 定货策略, 生产车间) VALUES (@物料编号, @条码, @物料名称, @拼音编码, @计量单位, @规格型号, @计划类别, @状态类别, @归属类别, @价值类别, @物料特性a, @物料特性b, @物料特性c, @物料特性d, @长, @宽, @高, @净重, @品牌, @颜色, @等级, @进货提前期, @准备周期, @生产周期, @最小包装量, @最低销售量, @批量, @最高库存, @最低库存, @库存期限, @录入者, @录入日期, @低层码, @指定供货商, @定货策略, @生产车间); SELECT 物料编号, 条码, 物料名称, 拼音编码, 计量单位, 规格型号, 计划类别, 状态类别, 归属类别, 价值类别, 物料特性a, 物料特性b, 物料特性c, 物料特性d, 长, 宽, 高, 净重, 品牌, 颜色, 等级, 进货提前期, 准备周期, 生产周期, 最小包装量, 最低销售量, 批量, 最高库存, 最低库存, 库存期限, 录入者, 录入日期, 低层码, 指定供货商, 定货策略, 生产车间 FROM 物料主文件 WHERE (物料编号 = @物料编号)";
- this.sqlInsertCommand1.Connection = this.sqlConnection1;
- this.sqlInsertCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@物料编号", System.Data.SqlDbType.VarChar, 14, "物料编号"));
- this.sqlInsertCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@条码", System.Data.SqlDbType.VarChar, 14, "条码"));
- this.sqlInsertCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@物料名称", System.Data.SqlDbType.VarChar, 50, "物料名称"));
- this.sqlInsertCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@拼音编码", System.Data.SqlDbType.VarChar, 10, "拼音编码"));
- this.sqlInsertCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@计量单位", System.Data.SqlDbType.VarChar, 10, "计量单位"));
- this.sqlInsertCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@规格型号", System.Data.SqlDbType.VarChar, 20, "规格型号"));
- this.sqlInsertCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@计划类别", System.Data.SqlDbType.VarChar, 5, "计划类别"));
- this.sqlInsertCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@状态类别", System.Data.SqlDbType.VarChar, 5, "状态类别"));
- this.sqlInsertCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@归属类别", System.Data.SqlDbType.VarChar, 5, "归属类别"));
- this.sqlInsertCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@价值类别", System.Data.SqlDbType.VarChar, 1, "价值类别"));
- this.sqlInsertCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@物料特性a", System.Data.SqlDbType.VarChar, 40, "物料特性a"));
- this.sqlInsertCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@物料特性b", System.Data.SqlDbType.VarChar, 40, "物料特性b"));
- this.sqlInsertCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@物料特性c", System.Data.SqlDbType.VarChar, 40, "物料特性c"));
- this.sqlInsertCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@物料特性d", System.Data.SqlDbType.VarChar, 40, "物料特性d"));
- this.sqlInsertCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@长", System.Data.SqlDbType.Decimal, 9, System.Data.ParameterDirection.Input, false, ((System.Byte)(18)), ((System.Byte)(3)), "长", System.Data.DataRowVersion.Current, null));
- this.sqlInsertCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@宽", System.Data.SqlDbType.Decimal, 9, System.Data.ParameterDirection.Input, false, ((System.Byte)(18)), ((System.Byte)(3)), "宽", System.Data.DataRowVersion.Current, null));
- this.sqlInsertCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@高", System.Data.SqlDbType.Decimal, 9, System.Data.ParameterDirection.Input, false, ((System.Byte)(18)), ((System.Byte)(3)), "高", System.Data.DataRowVersion.Current, null));
- this.sqlInsertCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@净重", System.Data.SqlDbType.Decimal, 9, System.Data.ParameterDirection.Input, false, ((System.Byte)(18)), ((System.Byte)(3)), "净重", System.Data.DataRowVersion.Current, null));
- this.sqlInsertCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@品牌", System.Data.SqlDbType.VarChar, 10, "品牌"));
- this.sqlInsertCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@颜色", System.Data.SqlDbType.VarChar, 10, "颜色"));
- this.sqlInsertCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@等级", System.Data.SqlDbType.VarChar, 10, "等级"));
- this.sqlInsertCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@进货提前期", System.Data.SqlDbType.Int, 4, "进货提前期"));
- this.sqlInsertCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@准备周期", System.Data.SqlDbType.Int, 4, "准备周期"));
- this.sqlInsertCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@生产周期", System.Data.SqlDbType.Int, 4, "生产周期"));
- this.sqlInsertCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@最小包装量", System.Data.SqlDbType.Decimal, 9, System.Data.ParameterDirection.Input, false, ((System.Byte)(18)), ((System.Byte)(3)), "最小包装量", System.Data.DataRowVersion.Current, null));
- this.sqlInsertCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@最低销售量", System.Data.SqlDbType.Decimal, 9, System.Data.ParameterDirection.Input, false, ((System.Byte)(18)), ((System.Byte)(3)), "最低销售量", System.Data.DataRowVersion.Current, null));
- this.sqlInsertCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@批量", System.Data.SqlDbType.Decimal, 9, System.Data.ParameterDirection.Input, false, ((System.Byte)(18)), ((System.Byte)(4)), "批量", System.Data.DataRowVersion.Current, null));
- this.sqlInsertCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@最高库存", System.Data.SqlDbType.Decimal, 9, System.Data.ParameterDirection.Input, false, ((System.Byte)(18)), ((System.Byte)(3)), "最高库存", System.Data.DataRowVersion.Current, null));
- this.sqlInsertCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@最低库存", System.Data.SqlDbType.Decimal, 9, System.Data.ParameterDirection.Input, false, ((System.Byte)(18)), ((System.Byte)(3)), "最低库存", System.Data.DataRowVersion.Current, null));
- this.sqlInsertCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@库存期限", System.Data.SqlDbType.Int, 4, "库存期限"));
- this.sqlInsertCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@录入者", System.Data.SqlDbType.VarChar, 8, "录入者"));
- this.sqlInsertCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@录入日期", System.Data.SqlDbType.Int, 4, "录入日期"));
- this.sqlInsertCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@低层码", System.Data.SqlDbType.Int, 4, "低层码"));
- this.sqlInsertCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@指定供货商", System.Data.SqlDbType.VarChar, 10, "指定供货商"));
- this.sqlInsertCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@定货策略", System.Data.SqlDbType.VarChar, 10, "定货策略"));
- this.sqlInsertCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@生产车间", System.Data.SqlDbType.VarChar, 10, "生产车间"));
- //
- // sqlSelectCommand1
- //
- this.sqlSelectCommand1.CommandText = @"SELECT 物料编号, 条码, 物料名称, 拼音编码, 计量单位, 规格型号, 计划类别, 状态类别, 归属类别, 价值类别, 物料特性a, 物料特性b, 物料特性c, 物料特性d, 长, 宽, 高, 净重, 品牌, 颜色, 等级, 进货提前期, 准备周期, 生产周期, 最小包装量, 最低销售量, 批量, 最高库存, 最低库存, 库存期限, 录入者, 录入日期, 低层码, 指定供货商, 定货策略, 生产车间 FROM 物料主文件 WHERE (物料编号 LIKE @Param10) AND (物料名称 LIKE @Param11) AND (拼音编码 LIKE @Param12 OR 拼音编码 IS NULL)";
- this.sqlSelectCommand1.Connection = this.sqlConnection1;
- this.sqlSelectCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Param10", System.Data.SqlDbType.VarChar, 14, "物料编号"));
- this.sqlSelectCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Param11", System.Data.SqlDbType.VarChar, 50, "物料名称"));
- this.sqlSelectCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Param12", System.Data.SqlDbType.VarChar, 10, "拼音编码"));
- //
- // sqlUpdateCommand1
- //
- this.sqlUpdateCommand1.CommandText = "UPDATE 物料主文件 SET 物料编号 = @物料编号, 条码 = @条码, 物料名称 = @物料名称, 拼音编码 = @拼音编码, 计量单位 = @计量单位" +
- ", 规格型号 = @规格型号, 计划类别 = @计划类别, 状态类别 = @状态类别, 归属类别 = @归属类别, 价值类别 = @价值类别, 物料特性a = " +
- "@物料特性a, 物料特性b = @物料特性b, 物料特性c = @物料特性c, 物料特性d = @物料特性d, 长 = @长, 宽 = @宽, 高 = @高, " +
- "净重 = @净重, 品牌 = @品牌, 颜色 = @颜色, 等级 = @等级, 进货提前期 = @进货提前期, 准备周期 = @准备周期, 生产周期 = @生产" +
- "周期, 最小包装量 = @最小包装量, 最低销售量 = @最低销售量, 批量 = @批量, 最高库存 = @最高库存, 最低库存 = @最低库存, 库存期限 =" +
- " @库存期限, 录入者 = @录入者, 录入日期 = @录入日期, 低层码 = @低层码, 指定供货商 = @指定供货商, 定货策略 = @定货策略, 生产车间" +
- " = @生产车间 WHERE (物料编号 = @Original_物料编号) AND (价值类别 = @Original_价值类别 OR @Original_价" +
- "值类别 IS NULL AND 价值类别 IS NULL) AND (低层码 = @Original_低层码 OR @Original_低层码 IS NULL " +
- "AND 低层码 IS NULL) AND (净重 = @Original_净重 OR @Original_净重 IS NULL AND 净重 IS NULL) " +
- "AND (准备周期 = @Original_准备周期 OR @Original_准备周期 IS NULL AND 准备周期 IS NULL) AND (品牌 =" +
- " @Original_品牌 OR @Original_品牌 IS NULL AND 品牌 IS NULL) AND (定货策略 = @Original_定货策略" +
- " OR @Original_定货策略 IS NULL AND 定货策略 IS NULL) AND (宽 = @Original_宽 OR @Original_宽" +
- " IS NULL AND 宽 IS NULL) AND (库存期限 = @Original_库存期限 OR @Original_库存期限 IS NULL AND" +
- " 库存期限 IS NULL) AND (归属类别 = @Original_归属类别 OR @Original_归属类别 IS NULL AND 归属类别 IS " +
- "NULL) AND (录入日期 = @Original_录入日期 OR @Original_录入日期 IS NULL AND 录入日期 IS NULL) AND" +
- " (录入者 = @Original_录入者 OR @Original_录入者 IS NULL AND 录入者 IS NULL) AND (批量 = @Origi" +
- "nal_批量 OR @Original_批量 IS NULL AND 批量 IS NULL) AND (拼音编码 = @Original_拼音编码 OR @Or" +
- "iginal_拼音编码 IS NULL AND 拼音编码 IS NULL) AND (指定供货商 = @Original_指定供货商 OR @Original_" +
- "指定供货商 IS NULL AND 指定供货商 IS NULL) AND (最低库存 = @Original_最低库存 OR @Original_最低库存 IS" +
- " NULL AND 最低库存 IS NULL) AND (最低销售量 = @Original_最低销售量 OR @Original_最低销售量 IS NULL " +
- "AND 最低销售量 IS NULL) AND (最小包装量 = @Original_最小包装量 OR @Original_最小包装量 IS NULL AND 最" +
- "小包装量 IS NULL) AND (最高库存 = @Original_最高库存 OR @Original_最高库存 IS NULL AND 最高库存 IS N" +
- "ULL) AND (条码 = @Original_条码 OR @Original_条码 IS NULL AND 条码 IS NULL) AND (物料名称 = " +
- "@Original_物料名称) AND (物料特性a = @Original_物料特性a OR @Original_物料特性a IS NULL AND 物料特性" +
- "a IS NULL) AND (物料特性b = @Original_物料特性b OR @Original_物料特性b IS NULL AND 物料特性b IS " +
- "NULL) AND (物料特性c = @Original_物料特性c OR @Original_物料特性c IS NULL AND 物料特性c IS NULL)" +
- " AND (物料特性d = @Original_物料特性d OR @Original_物料特性d IS NULL AND 物料特性d IS NULL) AND " +
- "(状态类别 = @Original_状态类别 OR @Original_状态类别 IS NULL AND 状态类别 IS NULL) AND (生产周期 = @" +
- "Original_生产周期 OR @Original_生产周期 IS NULL AND 生产周期 IS NULL) AND (生产车间 = @Original_" +
- "生产车间 OR @Original_生产车间 IS NULL AND 生产车间 IS NULL) AND (等级 = @Original_等级 OR @Orig" +
- "inal_等级 IS NULL AND 等级 IS NULL) AND (规格型号 = @Original_规格型号 OR @Original_规格型号 IS " +
- "NULL AND 规格型号 IS NULL) AND (计划类别 = @Original_计划类别 OR @Original_计划类别 IS NULL AND " +
- "计划类别 IS NULL) AND (计量单位 = @Original_计量单位) AND (进货提前期 = @Original_进货提前期 OR @Origi" +
- "nal_进货提前期 IS NULL AND 进货提前期 IS NULL) AND (长 = @Original_长 OR @Original_长 IS NULL" +
- " AND 长 IS NULL) AND (颜色 = @Original_颜色 OR @Original_颜色 IS NULL AND 颜色 IS NULL) A" +
- "ND (高 = @Original_高 OR @Original_高 IS NULL AND 高 IS NULL); SELECT 物料编号, 条码, 物料名称" +
- ", 拼音编码, 计量单位, 规格型号, 计划类别, 状态类别, 归属类别, 价值类别, 物料特性a, 物料特性b, 物料特性c, 物料特性d, 长, 宽, 高," +
- " 净重, 品牌, 颜色, 等级, 进货提前期, 准备周期, 生产周期, 最小包装量, 最低销售量, 批量, 最高库存, 最低库存, 库存期限, 录入者, 录入日" +
- "期, 低层码, 指定供货商, 定货策略, 生产车间 FROM 物料主文件 WHERE (物料编号 = @物料编号)";
- this.sqlUpdateCommand1.Connection = this.sqlConnection1;
- this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@物料编号", System.Data.SqlDbType.VarChar, 14, "物料编号"));
- this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@条码", System.Data.SqlDbType.VarChar, 14, "条码"));
- this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@物料名称", System.Data.SqlDbType.VarChar, 50, "物料名称"));
- this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@拼音编码", System.Data.SqlDbType.VarChar, 10, "拼音编码"));
- this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@计量单位", System.Data.SqlDbType.VarChar, 10, "计量单位"));
- this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@规格型号", System.Data.SqlDbType.VarChar, 20, "规格型号"));
- this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@计划类别", System.Data.SqlDbType.VarChar, 5, "计划类别"));
- this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@状态类别", System.Data.SqlDbType.VarChar, 5, "状态类别"));
- this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@归属类别", System.Data.SqlDbType.VarChar, 5, "归属类别"));
- this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@价值类别", System.Data.SqlDbType.VarChar, 1, "价值类别"));
- this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@物料特性a", System.Data.SqlDbType.VarChar, 40, "物料特性a"));
- this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@物料特性b", System.Data.SqlDbType.VarChar, 40, "物料特性b"));
- this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@物料特性c", System.Data.SqlDbType.VarChar, 40, "物料特性c"));
- this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@物料特性d", System.Data.SqlDbType.VarChar, 40, "物料特性d"));
- this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@长", System.Data.SqlDbType.Decimal, 9, System.Data.ParameterDirection.Input, false, ((System.Byte)(18)), ((System.Byte)(3)), "长", System.Data.DataRowVersion.Current, null));
- this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@宽", System.Data.SqlDbType.Decimal, 9, System.Data.ParameterDirection.Input, false, ((System.Byte)(18)), ((System.Byte)(3)), "宽", System.Data.DataRowVersion.Current, null));
- this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@高", System.Data.SqlDbType.Decimal, 9, System.Data.ParameterDirection.Input, false, ((System.Byte)(18)), ((System.Byte)(3)), "高", System.Data.DataRowVersion.Current, null));
- this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@净重", System.Data.SqlDbType.Decimal, 9, System.Data.ParameterDirection.Input, false, ((System.Byte)(18)), ((System.Byte)(3)), "净重", System.Data.DataRowVersion.Current, null));
- this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@品牌", System.Data.SqlDbType.VarChar, 10, "品牌"));
- this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@颜色", System.Data.SqlDbType.VarChar, 10, "颜色"));
- this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@等级", System.Data.SqlDbType.VarChar, 10, "等级"));
- this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@进货提前期", System.Data.SqlDbType.Int, 4, "进货提前期"));
- this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@准备周期", System.Data.SqlDbType.Int, 4, "准备周期"));
- this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@生产周期", System.Data.SqlDbType.Int, 4, "生产周期"));
- this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@最小包装量", System.Data.SqlDbType.Decimal, 9, System.Data.ParameterDirection.Input, false, ((System.Byte)(18)), ((System.Byte)(3)), "最小包装量", System.Data.DataRowVersion.Current, null));
- this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@最低销售量", System.Data.SqlDbType.Decimal, 9, System.Data.ParameterDirection.Input, false, ((System.Byte)(18)), ((System.Byte)(3)), "最低销售量", System.Data.DataRowVersion.Current, null));
- this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@批量", System.Data.SqlDbType.Decimal, 9, System.Data.ParameterDirection.Input, false, ((System.Byte)(18)), ((System.Byte)(4)), "批量", System.Data.DataRowVersion.Current, null));
- this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@最高库存", System.Data.SqlDbType.Decimal, 9, System.Data.ParameterDirection.Input, false, ((System.Byte)(18)), ((System.Byte)(3)), "最高库存", System.Data.DataRowVersion.Current, null));
- this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@最低库存", System.Data.SqlDbType.Decimal, 9, System.Data.ParameterDirection.Input, false, ((System.Byte)(18)), ((System.Byte)(3)), "最低库存", System.Data.DataRowVersion.Current, null));
- this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@库存期限", System.Data.SqlDbType.Int, 4, "库存期限"));
- this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@录入者", System.Data.SqlDbType.VarChar, 8, "录入者"));
- this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@录入日期", System.Data.SqlDbType.Int, 4, "录入日期"));
- this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@低层码", System.Data.SqlDbType.Int, 4, "低层码"));
- this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@指定供货商", System.Data.SqlDbType.VarChar, 10, "指定供货商"));
- this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@定货策略", System.Data.SqlDbType.VarChar, 10, "定货策略"));
- this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@生产车间", System.Data.SqlDbType.VarChar, 10, "生产车间"));
- this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_物料编号", System.Data.SqlDbType.VarChar, 14, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "物料编号", System.Data.DataRowVersion.Original, null));
- this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_价值类别", System.Data.SqlDbType.VarChar, 1, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "价值类别", System.Data.DataRowVersion.Original, null));
- this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_低层码", System.Data.SqlDbType.Int, 4, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "低层码", System.Data.DataRowVersion.Original, null));
- this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_净重", System.Data.SqlDbType.Decimal, 9, System.Data.ParameterDirection.Input, false, ((System.Byte)(18)), ((System.Byte)(3)), "净重", System.Data.DataRowVersion.Original, null));
- this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_准备周期", System.Data.SqlDbType.Int, 4, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "准备周期", System.Data.DataRowVersion.Original, null));
- this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_品牌", System.Data.SqlDbType.VarChar, 10, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "品牌", System.Data.DataRowVersion.Original, null));
- this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_定货策略", System.Data.SqlDbType.VarChar, 10, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "定货策略", System.Data.DataRowVersion.Original, null));
- this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_宽", System.Data.SqlDbType.Decimal, 9, System.Data.ParameterDirection.Input, false, ((System.Byte)(18)), ((System.Byte)(3)), "宽", System.Data.DataRowVersion.Original, null));
- this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_库存期限", System.Data.SqlDbType.Int, 4, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "库存期限", System.Data.DataRowVersion.Original, null));
- this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_归属类别", System.Data.SqlDbType.VarChar, 5, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "归属类别", System.Data.DataRowVersion.Original, null));
- this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_录入日期", System.Data.SqlDbType.Int, 4, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "录入日期", System.Data.DataRowVersion.Original, null));
- this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_录入者", System.Data.SqlDbType.VarChar, 8, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "录入者", System.Data.DataRowVersion.Original, null));
- this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_批量", System.Data.SqlDbType.Decimal, 9, System.Data.ParameterDirection.Input, false, ((System.Byte)(18)), ((System.Byte)(4)), "批量", System.Data.DataRowVersion.Original, null));
- this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_拼音编码", System.Data.SqlDbType.VarChar, 10, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "拼音编码", System.Data.DataRowVersion.Original, null));
- this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_指定供货商", System.Data.SqlDbType.VarChar, 10, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "指定供货商", System.Data.DataRowVersion.Original, null));
- this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_最低库存", System.Data.SqlDbType.Decimal, 9, System.Data.ParameterDirection.Input, false, ((System.Byte)(18)), ((System.Byte)(3)), "最低库存", System.Data.DataRowVersion.Original, null));
- this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_最低销售量", System.Data.SqlDbType.Decimal, 9, System.Data.ParameterDirection.Input, false, ((System.Byte)(18)), ((System.Byte)(3)), "最低销售量", System.Data.DataRowVersion.Original, null));
- this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_最小包装量", System.Data.SqlDbType.Decimal, 9, System.Data.ParameterDirection.Input, false, ((System.Byte)(18)), ((System.Byte)(3)), "最小包装量", System.Data.DataRowVersion.Original, null));
- this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_最高库存", System.Data.SqlDbType.Decimal, 9, System.Data.ParameterDirection.Input, false, ((System.Byte)(18)), ((System.Byte)(3)), "最高库存", System.Data.DataRowVersion.Original, null));
- this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_条码", System.Data.SqlDbType.VarChar, 14, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "条码", System.Data.DataRowVersion.Original, null));
- this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_物料名称", System.Data.SqlDbType.VarChar, 50, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "物料名称", System.Data.DataRowVersion.Original, null));
- this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_物料特性a", System.Data.SqlDbType.VarChar, 40, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "物料特性a", System.Data.DataRowVersion.Original, null));
- this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_物料特性b", System.Data.SqlDbType.VarChar, 40, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "物料特性b", System.Data.DataRowVersion.Original, null));
- this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_物料特性c", System.Data.SqlDbType.VarChar, 40, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "物料特性c", System.Data.DataRowVersion.Original, null));
- this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_物料特性d", System.Data.SqlDbType.VarChar, 40, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "物料特性d", System.Data.DataRowVersion.Original, null));
- this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_状态类别", System.Data.SqlDbType.VarChar, 5, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "状态类别", System.Data.DataRowVersion.Original, null));
- this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_生产周期", System.Data.SqlDbType.Int, 4, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "生产周期", System.Data.DataRowVersion.Original, null));
- this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_生产车间", System.Data.SqlDbType.VarChar, 10, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "生产车间", System.Data.DataRowVersion.Original, null));
- this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_等级", System.Data.SqlDbType.VarChar, 10, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "等级", System.Data.DataRowVersion.Original, null));
- this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_规格型号", System.Data.SqlDbType.VarChar, 20, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "规格型号", System.Data.DataRowVersion.Original, null));
- this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_计划类别", System.Data.SqlDbType.VarChar, 5, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "计划类别", System.Data.DataRowVersion.Original, null));
- this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_计量单位", System.Data.SqlDbType.VarChar, 10, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "计量单位", System.Data.DataRowVersion.Original, null));
- this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_进货提前期", System.Data.SqlDbType.Int, 4, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "进货提前期", System.Data.DataRowVersion.Original, null));
- this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_长", System.Data.SqlDbType.Decimal, 9, System.Data.ParameterDirection.Input, false, ((System.Byte)(18)), ((System.Byte)(3)), "长", System.Data.DataRowVersion.Original, null));
- this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_颜色", System.Data.SqlDbType.VarChar, 10, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "颜色", System.Data.DataRowVersion.Original, null));
- this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_高", System.Data.SqlDbType.Decimal, 9, System.Data.ParameterDirection.Input, false, ((System.Byte)(18)), ((System.Byte)(3)), "高", System.Data.DataRowVersion.Original, null));
- //
- // dataSet11
- //
- this.dataSet11.DataSetName = "DataSet1";
- this.dataSet11.Locale = new System.Globalization.CultureInfo("zh-CN");
- //
- // dataGrid1
- //
- this.dataGrid1.CaptionVisible = false;
- this.dataGrid1.DataMember = "物料主文件";
- this.dataGrid1.DataSource = this.dataSet11;
- this.dataGrid1.HeaderForeColor = System.Drawing.SystemColors.ControlText;
- this.dataGrid1.Location = new System.Drawing.Point(8, 96);
- this.dataGrid1.Name = "dataGrid1";
- this.dataGrid1.ReadOnly = true;
- this.dataGrid1.RowHeaderWidth = 20;
- this.dataGrid1.Size = new System.Drawing.Size(192, 392);
- this.dataGrid1.TabIndex = 0;
- this.dataGrid1.TableStyles.AddRange(new System.Windows.Forms.DataGridTableStyle[] {
- this.dataGridTableStyle1});
- //
- // dataGridTableStyle1
- //
- this.dataGridTableStyle1.DataGrid = this.dataGrid1;
- this.dataGridTableStyle1.GridColumnStyles.AddRange(new System.Windows.Forms.DataGridColumnStyle[] {
- this.dataGridTextBoxColumn1,
- this.dataGridTextBoxColumn2});
- this.dataGridTableStyle1.HeaderForeColor = System.Drawing.SystemColors.ControlText;
- this.dataGridTableStyle1.MappingName = "物料主文件";
- this.dataGridTableStyle1.RowHeaderWidth = 20;
- //
- // dataGridTextBoxColumn1
- //
- this.dataGridTextBoxColumn1.Format = "";
- this.dataGridTextBoxColumn1.FormatInfo = null;
- this.dataGridTextBoxColumn1.HeaderText = "物料编号";
- this.dataGridTextBoxColumn1.MappingName = "物料编号";
- this.dataGridTextBoxColumn1.Width = 75;
- //
- // dataGridTextBoxColumn2
- //
- this.dataGridTextBoxColumn2.Format = "";
- this.dataGridTextBoxColumn2.FormatInfo = null;
- this.dataGridTextBoxColumn2.HeaderText = "物料名称";
- this.dataGridTextBoxColumn2.MappingName = "物料名称";
- this.dataGridTextBoxColumn2.Width = 75;
- //
- // groupBox1
- //
- this.groupBox1.Controls.Add(this.txt2);
- this.groupBox1.Controls.Add(this.label1);
- this.groupBox1.Controls.Add(this.btnSearch);
- this.groupBox1.Controls.Add(this.txt1);
- this.groupBox1.Controls.Add(this.label2);
- this.groupBox1.Controls.Add(this.txt3);
- this.groupBox1.Controls.Add(this.label3);
- this.groupBox1.Location = new System.Drawing.Point(8, 40);
- this.groupBox1.Name = "groupBox1";
- this.groupBox1.Size = new System.Drawing.Size(632, 56);
- this.groupBox1.TabIndex = 2;
- this.groupBox1.TabStop = false;
- //
- // txt2
- //
- this.txt2.Location = new System.Drawing.Point(328, 24);
- this.txt2.Name = "txt2";
- this.txt2.TabIndex = 2;
- this.txt2.Text = "";
- //
- // label1
- //
- this.label1.Location = new System.Drawing.Point(272, 28);
- this.label1.Name = "label1";
- this.label1.Size = new System.Drawing.Size(56, 16);
- this.label1.TabIndex = 1;
- this.label1.Text = "物料名称";
- //
- // btnSearch
- //
- this.btnSearch.Image = ((System.Drawing.Image)(resources.GetObject("btnSearch.Image")));
- this.btnSearch.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
- this.btnSearch.Location = new System.Drawing.Point(16, 24);
- this.btnSearch.Name = "btnSearch";
- this.btnSearch.Size = new System.Drawing.Size(72, 23);
- this.btnSearch.TabIndex = 0;
- this.btnSearch.Text = " 搜索";
- this.btnSearch.Click += new System.EventHandler(this.btnSearch_Click);
- //
- // txt1
- //
- this.txt1.Location = new System.Drawing.Point(168, 24);
- this.txt1.Name = "txt1";
- this.txt1.TabIndex = 2;
- this.txt1.Text = "";
- //
- // label2
- //
- this.label2.Location = new System.Drawing.Point(104, 28);
- this.label2.Name = "label2";
- this.label2.Size = new System.Drawing.Size(56, 16);
- this.label2.TabIndex = 1;
- this.label2.Text = "物料编号";
- //
- // txt3
- //
- this.txt3.Location = new System.Drawing.Point(504, 24);
- this.txt3.Name = "txt3";
- this.txt3.TabIndex = 2;
- this.txt3.Text = "";
- //
- // label3
- //
- this.label3.Location = new System.Drawing.Point(448, 28);
- this.label3.Name = "label3";
- this.label3.Size = new System.Drawing.Size(56, 16);
- this.label3.TabIndex = 1;
- this.label3.Text = "物料拼音";
- //
- // toolBar1
- //
- this.toolBar1.Buttons.AddRange(new System.Windows.Forms.ToolBarButton[] {
- this.tBtnFirst,
- this.tBtnPre,
- this.tBtnNext,
- this.tBtnLast,
- this.tBtnNew,
- this.tBtnEdit,
- this.tBtnDelete,
- this.tBtnSubmit,
- this.tBtnCancel,
- this.tBtnQuit});
- this.toolBar1.DropDownArrows = true;
- this.toolBar1.ImageList = this.imageList1;
- this.toolBar1.Location = new System.Drawing.Point(0, 0);
- this.toolBar1.Name = "toolBar1";
- this.toolBar1.ShowToolTips = true;
- this.toolBar1.Size = new System.Drawing.Size(648, 41);
- this.toolBar1.TabIndex = 25;
- this.toolBar1.ButtonClick += new System.Windows.Forms.ToolBarButtonClickEventHandler(this.toolBar1_ButtonClick);
- //
- // tBtnFirst
- //
- this.tBtnFirst.ImageIndex = 0;
- this.tBtnFirst.Text = "首记录";
- this.tBtnFirst.ToolTipText = "首记录";
- //
- // tBtnPre
- //
- this.tBtnPre.ImageIndex = 1;
- this.tBtnPre.Text = "上一记录";
- this.tBtnPre.ToolTipText = "上一记录";
- //
- // tBtnNext
- //
- this.tBtnNext.ImageIndex = 2;
- this.tBtnNext.Text = "下一记录";
- this.tBtnNext.ToolTipText = "下一记录";
- //
- // tBtnLast
- //
- this.tBtnLast.ImageIndex = 3;
- this.tBtnLast.Text = "尾记录";
- this.tBtnLast.ToolTipText = "尾记录";
- //
- // tBtnNew
- //
- this.tBtnNew.ImageIndex = 4;
- this.tBtnNew.Text = "新增";
- this.tBtnNew.ToolTipText = "新增";
- //
- // tBtnEdit
- //
- this.tBtnEdit.ImageIndex = 5;
- this.tBtnEdit.Text = "修改";
- this.tBtnEdit.ToolTipText = "修改";
- //
- // tBtnDelete
- //
- this.tBtnDelete.ImageIndex = 6;
- this.tBtnDelete.Text = "删除";
- this.tBtnDelete.ToolTipText = "删除";
- //
- // tBtnSubmit
- //
- this.tBtnSubmit.ImageIndex = 7;
- this.tBtnSubmit.Text = "提交";
- this.tBtnSubmit.ToolTipText = "提交";
- //
- // tBtnCancel
- //
- this.tBtnCancel.ImageIndex = 8;
- this.tBtnCancel.Text = "取消";
- this.tBtnCancel.ToolTipText = "取消";
- //
- // tBtnQuit
- //
- this.tBtnQuit.ImageIndex = 9;
- this.tBtnQuit.Text = "退出";
- this.tBtnQuit.ToolTipText = "退出";
- //
- // imageList1
- //
- this.imageList1.ImageSize = new System.Drawing.Size(16, 16);
- this.imageList1.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList1.ImageStream")));
- this.imageList1.TransparentColor = System.Drawing.SystemColors.ControlLightLight;
- //
- // groupBox2
- //
- this.groupBox2.Controls.Add(this.txt12);
- this.groupBox2.Controls.Add(this.txt11);
- this.groupBox2.Controls.Add(this.txt10);
- this.groupBox2.Controls.Add(this.txt13);
- this.groupBox2.Controls.Add(this.txt15);
- this.groupBox2.Controls.Add(this.txt16);
- this.groupBox2.Controls.Add(this.txt14);
- this.groupBox2.Controls.Add(this.txt17);
- this.groupBox2.Controls.Add(this.txt19);
- this.groupBox2.Controls.Add(this.txt18);
- this.groupBox2.Controls.Add(this.txt21);
- this.groupBox2.Controls.Add(this.txt24);
- this.groupBox2.Controls.Add(this.txt23);
- this.groupBox2.Controls.Add(this.txt20);
- this.groupBox2.Controls.Add(this.txt22);
- this.groupBox2.Controls.Add(this.txt27);
- this.groupBox2.Controls.Add(this.txt26);
- this.groupBox2.Controls.Add(this.txt29);
- this.groupBox2.Controls.Add(this.txt28);
- this.groupBox2.Controls.Add(this.txt25);
- this.groupBox2.Controls.Add(this.cmb1);
- this.groupBox2.Controls.Add(this.txt4);
- this.groupBox2.Controls.Add(this.txt5);
- this.groupBox2.Controls.Add(this.txt6);
- this.groupBox2.Controls.Add(this.txt7);
- this.groupBox2.Controls.Add(this.cmb2);
- this.groupBox2.Controls.Add(this.txt9);
- this.groupBox2.Controls.Add(this.txt8);
- this.groupBox2.Controls.Add(this.label4);
- this.groupBox2.Controls.Add(this.label5);
- this.groupBox2.Controls.Add(this.label6);
- this.groupBox2.Controls.Add(this.label7);
- this.groupBox2.Controls.Add(this.label8);
- this.groupBox2.Controls.Add(this.label9);
- this.groupBox2.Controls.Add(this.label10);
- this.groupBox2.Controls.Add(this.label11);
- this.groupBox2.Controls.Add(this.label12);
- this.groupBox2.Controls.Add(this.label13);
- this.groupBox2.Controls.Add(this.label14);
- this.groupBox2.Controls.Add(this.label15);
- this.groupBox2.Controls.Add(this.label16);
- this.groupBox2.Controls.Add(this.label17);
- this.groupBox2.Controls.Add(this.label18);
- this.groupBox2.Controls.Add(this.label19);
- this.groupBox2.Controls.Add(this.label20);
- this.groupBox2.Controls.Add(this.label21);
- this.groupBox2.Controls.Add(this.label22);
- this.groupBox2.Controls.Add(this.label23);
- this.groupBox2.Controls.Add(this.label24);
- this.groupBox2.Controls.Add(this.label25);
- this.groupBox2.Controls.Add(this.label26);
- this.groupBox2.Controls.Add(this.label27);
- this.groupBox2.Controls.Add(this.label28);
- this.groupBox2.Location = new System.Drawing.Point(200, 96);
- this.groupBox2.Name = "groupBox2";
- this.groupBox2.Size = new System.Drawing.Size(440, 392);
- this.groupBox2.TabIndex = 26;
- this.groupBox2.TabStop = false;
- this.groupBox2.Text = "物料详细资料";
- //
- // txt12
- //
- this.txt12.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.dataSet11, "物料主文件.物料特性c"));
- this.txt12.Location = new System.Drawing.Point(224, 136);
- this.txt12.Name = "txt12";
- this.txt12.ReadOnly = true;
- this.txt12.Size = new System.Drawing.Size(94, 21);
- this.txt12.TabIndex = 46;
- this.txt12.Text = "";
- //
- // txt11
- //
- this.txt11.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.dataSet11, "物料主文件.物料特性b"));
- this.txt11.Location = new System.Drawing.Point(120, 136);
- this.txt11.Name = "txt11";
- this.txt11.ReadOnly = true;
- this.txt11.Size = new System.Drawing.Size(94, 21);
- this.txt11.TabIndex = 47;
- this.txt11.Text = "";
- //
- // txt10
- //
- this.txt10.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.dataSet11, "物料主文件.物料特性a"));
- this.txt10.Location = new System.Drawing.Point(16, 136);
- this.txt10.Name = "txt10";
- this.txt10.ReadOnly = true;
- this.txt10.Size = new System.Drawing.Size(94, 21);
- this.txt10.TabIndex = 48;
- this.txt10.Text = "";
- //
- // txt13
- //
- this.txt13.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.dataSet11, "物料主文件.物料特性d"));
- this.txt13.Location = new System.Drawing.Point(328, 136);
- this.txt13.Name = "txt13";
- this.txt13.ReadOnly = true;
- this.txt13.Size = new System.Drawing.Size(94, 21);
- this.txt13.TabIndex = 52;
- this.txt13.Text = "";
- //
- // txt15
- //
- this.txt15.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.dataSet11, "物料主文件.宽"));
- this.txt15.Location = new System.Drawing.Point(80, 184);
- this.txt15.Name = "txt15";
- this.txt15.ReadOnly = true;
- this.txt15.Size = new System.Drawing.Size(56, 21);
- this.txt15.TabIndex = 53;
- this.txt15.Text = "";
- //
- // txt16
- //
- this.txt16.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.dataSet11, "物料主文件.高"));
- this.txt16.Location = new System.Drawing.Point(144, 184);
- this.txt16.Name = "txt16";
- this.txt16.ReadOnly = true;
- this.txt16.Size = new System.Drawing.Size(65, 21);
- this.txt16.TabIndex = 49;
- this.txt16.Text = "";
- //
- // txt14
- //
- this.txt14.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.dataSet11, "物料主文件.长"));
- this.txt14.Location = new System.Drawing.Point(16, 184);
- this.txt14.Name = "txt14";
- this.txt14.ReadOnly = true;
- this.txt14.Size = new System.Drawing.Size(56, 21);
- this.txt14.TabIndex = 50;
- this.txt14.Text = "";
- //
- // txt17
- //
- this.txt17.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.dataSet11, "物料主文件.净重"));
- this.txt17.Location = new System.Drawing.Point(216, 184);
- this.txt17.Name = "txt17";
- this.txt17.ReadOnly = true;
- this.txt17.Size = new System.Drawing.Size(65, 21);
- this.txt17.TabIndex = 51;
- this.txt17.Text = "";
- //
- // txt19
- //
- this.txt19.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.dataSet11, "物料主文件.颜色"));
- this.txt19.Location = new System.Drawing.Point(360, 184);
- this.txt19.Name = "txt19";
- this.txt19.ReadOnly = true;
- this.txt19.Size = new System.Drawing.Size(65, 21);
- this.txt19.TabIndex = 38;
- this.txt19.Text = "";
- //
- // txt18
- //
- this.txt18.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.dataSet11, "物料主文件.品牌"));
- this.txt18.Location = new System.Drawing.Point(288, 184);
- this.txt18.Name = "txt18";
- this.txt18.ReadOnly = true;
- this.txt18.Size = new System.Drawing.Size(65, 21);
- this.txt18.TabIndex = 39;
- this.txt18.Text = "";
- //
- // txt21
- //
- this.txt21.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.dataSet11, "物料主文件.进货提前期"));
- this.txt21.Location = new System.Drawing.Point(88, 240);
- this.txt21.Name = "txt21";
- this.txt21.ReadOnly = true;
- this.txt21.Size = new System.Drawing.Size(72, 21);
- this.txt21.TabIndex = 40;
- this.txt21.Text = "";
- //
- // txt24
- //
- this.txt24.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.dataSet11, "物料主文件.最小包装量"));
- this.txt24.Location = new System.Drawing.Point(336, 240);
- this.txt24.Name = "txt24";
- this.txt24.ReadOnly = true;
- this.txt24.Size = new System.Drawing.Size(80, 21);
- this.txt24.TabIndex = 37;
- this.txt24.Text = "";
- //
- // txt23
- //
- this.txt23.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.dataSet11, "物料主文件.生产周期"));
- this.txt23.Location = new System.Drawing.Point(248, 240);
- this.txt23.Name = "txt23";
- this.txt23.ReadOnly = true;
- this.txt23.Size = new System.Drawing.Size(80, 21);
- this.txt23.TabIndex = 34;
- this.txt23.Text = "";
- //
- // txt20
- //
- this.txt20.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.dataSet11, "物料主文件.等级"));
- this.txt20.Location = new System.Drawing.Point(16, 240);
- this.txt20.Name = "txt20";
- this.txt20.ReadOnly = true;
- this.txt20.Size = new System.Drawing.Size(64, 21);
- this.txt20.TabIndex = 35;
- this.txt20.Text = "";
- //
- // txt22
- //
- this.txt22.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.dataSet11, "物料主文件.准备周期"));
- this.txt22.Location = new System.Drawing.Point(168, 240);
- this.txt22.Name = "txt22";
- this.txt22.ReadOnly = true;
- this.txt22.Size = new System.Drawing.Size(72, 21);
- this.txt22.TabIndex = 36;
- this.txt22.Text = "";
- //
- // txt27
- //
- this.txt27.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.dataSet11, "物料主文件.最低库存"));
- this.txt27.Location = new System.Drawing.Point(160, 296);
- this.txt27.Name = "txt27";
- this.txt27.ReadOnly = true;
- this.txt27.Size = new System.Drawing.Size(72, 21);
- this.txt27.TabIndex = 43;
- this.txt27.Text = "";
- //
- // txt26
- //
- this.txt26.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.dataSet11, "物料主文件.最高库存"));
- this.txt26.Location = new System.Drawing.Point(88, 296);
- this.txt26.Name = "txt26";
- this.txt26.ReadOnly = true;
- this.txt26.Size = new System.Drawing.Size(72, 21);
- this.txt26.TabIndex = 44;
- this.txt26.Text = "";
- //
- // txt29
- //
- this.txt29.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.dataSet11, "物料主文件.最低销售量"));
- this.txt29.Location = new System.Drawing.Point(328, 296);
- this.txt29.Name = "txt29";
- this.txt29.ReadOnly = true;
- this.txt29.Size = new System.Drawing.Size(88, 21);
- this.txt29.TabIndex = 45;
- this.txt29.Text = "";
- //
- // txt28
- //
- this.txt28.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.dataSet11, "物料主文件.库存期限"));
- this.txt28.Location = new System.Drawing.Point(240, 296);
- this.txt28.Name = "txt28";
- this.txt28.ReadOnly = true;
- this.txt28.Size = new System.Drawing.Size(80, 21);
- this.txt28.TabIndex = 42;
- this.txt28.Text = "";
- //
- // txt25
- //
- this.txt25.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.dataSet11, "物料主文件.批量"));
- this.txt25.Location = new System.Drawing.Point(16, 296);
- this.txt25.Name = "txt25";
- this.txt25.ReadOnly = true;
- this.txt25.Size = new System.Drawing.Size(64, 21);
- this.txt25.TabIndex = 41;
- this.txt25.Text = "";
- //
- // cmb1
- //
- this.cmb1.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.dataSet11, "物料主文件.计量单位"));
- this.cmb1.Enabled = false;
- this.cmb1.Location = new System.Drawing.Point(336, 40);
- this.cmb1.Name = "cmb1";
- this.cmb1.Size = new System.Drawing.Size(88, 20);
- this.cmb1.TabIndex = 32;
- //
- // txt4
- //
- this.txt4.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.dataSet11, "物料主文件.物料编号"));
- this.txt4.Location = new System.Drawing.Point(16, 40);
- this.txt4.Name = "txt4";
- this.txt4.ReadOnly = true;
- this.txt4.Size = new System.Drawing.Size(80, 21);
- this.txt4.TabIndex = 23;
- this.txt4.Text = "";
- //
- // txt5
- //
- this.txt5.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.dataSet11, "物料主文件.物料名称"));
- this.txt5.Location = new System.Drawing.Point(112, 40);
- this.txt5.Name = "txt5";
- this.txt5.ReadOnly = true;
- this.txt5.Size = new System.Drawing.Size(112, 21);
- this.txt5.TabIndex = 24;
- this.txt5.Text = "";
- //
- // txt6
- //
- this.txt6.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.dataSet11, "物料主文件.拼音编码"));
- this.txt6.Location = new System.Drawing.Point(240, 40);
- this.txt6.Name = "txt6";
- this.txt6.ReadOnly = true;
- this.txt6.Size = new System.Drawing.Size(80, 21);
- this.txt6.TabIndex = 25;
- this.txt6.Text = "";
- //
- // txt7
- //
- this.txt7.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.dataSet11, "物料主文件.规格型号"));
- this.txt7.Location = new System.Drawing.Point(16, 88);
- this.txt7.Name = "txt7";
- this.txt7.ReadOnly = true;
- this.txt7.Size = new System.Drawing.Size(80, 21);
- this.txt7.TabIndex = 21;
- this.txt7.Text = "";
- //
- // cmb2
- //
- this.cmb2.Enabled = false;
- this.cmb2.Location = new System.Drawing.Point(112, 88);
- this.cmb2.Name = "cmb2";
- this.cmb2.Size = new System.Drawing.Size(120, 20);
- this.cmb2.TabIndex = 33;
- //
- // txt9
- //
- this.txt9.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.dataSet11, "物料主文件.录入日期"));
- this.txt9.Location = new System.Drawing.Point(328, 88);
- this.txt9.Name = "txt9";
- this.txt9.ReadOnly = true;
- this.txt9.Size = new System.Drawing.Size(96, 21);
- this.txt9.TabIndex = 14;
- this.txt9.Text = "";
- //
- // txt8
- //
- this.txt8.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.dataSet11, "物料主文件.录入者"));
- this.txt8.Location = new System.Drawing.Point(248, 88);
- this.txt8.Name = "txt8";
- this.txt8.ReadOnly = true;
- this.txt8.Size = new System.Drawing.Size(64, 21);
- this.txt8.TabIndex = 15;
- this.txt8.Text = "";
- //
- // label4
- //
- this.label4.Location = new System.Drawing.Point(16, 24);
- this.label4.Name = "label4";
- this.label4.Size = new System.Drawing.Size(56, 16);
- this.label4.TabIndex = 3;
- this.label4.Text = "物料编号";
- //
- // label5
- //
- this.label5.Location = new System.Drawing.Point(112, 24);
- this.label5.Name = "label5";
- this.label5.Size = new System.Drawing.Size(56, 16);
- this.label5.TabIndex = 3;
- this.label5.Text = "物料名称";
- //
- // label6
- //
- this.label6.Location = new System.Drawing.Point(240, 24);
- this.label6.Name = "label6";
- this.label6.Size = new System.Drawing.Size(56, 16);
- this.label6.TabIndex = 3;
- this.label6.Text = "拼音编码";
- //
- // label7
- //
- this.label7.Location = new System.Drawing.Point(336, 24);
- this.label7.Name = "label7";
- this.label7.Size = new System.Drawing.Size(56, 16);
- this.label7.TabIndex = 3;
- this.label7.Text = "计量单位";
- //
- // label8
- //
- this.label8.Location = new System.Drawing.Point(16, 72);
- this.label8.Name = "label8";
- this.label8.Size = new System.Drawing.Size(56, 16);
- this.label8.TabIndex = 3;
- this.label8.Text = "规格型号";
- //
- // label9
- //
- this.label9.Location = new System.Drawing.Point(112, 72);
- this.label9.Name = "label9";
- this.label9.Size = new System.Drawing.Size(56, 16);
- this.label9.TabIndex = 3;
- this.label9.Text = "计划类别";
- //
- // label10
- //
- this.label10.Location = new System.Drawing.Point(16, 120);
- this.label10.Name = "label10";
- this.label10.Size = new System.Drawing.Size(56, 16);
- this.label10.TabIndex = 3;
- this.label10.Text = "物料特性";
- //
- // label11
- //
- this.label11.Location = new System.Drawing.Point(144, 168);
- this.label11.Name = "label11";
- this.label11.Size = new System.Drawing.Size(24, 16);
- this.label11.TabIndex = 3;
- this.label11.Text = "高";
- //
- // label12
- //
- this.label12.Location = new System.Drawing.Point(16, 168);
- this.label12.Name = "label12";
- this.label12.Size = new System.Drawing.Size(24, 16);
- this.label12.TabIndex = 3;
- this.label12.Text = "长";
- //
- // label13
- //
- this.label13.Location = new System.Drawing.Point(80, 168);
- this.label13.Name = "label13";
- this.label13.Size = new System.Drawing.Size(24, 16);
- this.label13.TabIndex = 3;
- this.label13.Text = "宽";
- //
- // label14
- //
- this.label14.Location = new System.Drawing.Point(288, 168);
- this.label14.Name = "label14";
- this.label14.Size = new System.Drawing.Size(32, 16);
- this.label14.TabIndex = 3;
- this.label14.Text = "品牌";
- //
- // label15
- //
- this.label15.Location = new System.Drawing.Point(216, 168);
- this.label15.Name = "label15";
- this.label15.Size = new System.Drawing.Size(32, 16);
- this.label15.TabIndex = 3;
- this.label15.Text = "净重";
- //
- // label16
- //
- this.label16.Location = new System.Drawing.Point(360, 168);
- this.label16.Name = "label16";
- this.label16.Size = new System.Drawing.Size(32, 16);
- this.label16.TabIndex = 3;
- this.label16.Text = "颜色";
- //
- // label17
- //
- this.label17.Location = new System.Drawing.Point(168, 224);
- this.label17.Name = "label17";
- this.label17.Size = new System.Drawing.Size(72, 16);
- this.label17.TabIndex = 3;
- this.label17.Text = "准备周期";
- //
- // label18
- //
- this.label18.Location = new System.Drawing.Point(248, 224);
- this.label18.Name = "label18";
- this.label18.Size = new System.Drawing.Size(64, 16);
- this.label18.TabIndex = 3;
- this.label18.Text = "生产周期";
- //
- // label19
- //
- this.label19.Location = new System.Drawing.Point(336, 224);
- this.label19.Name = "label19";
- this.label19.Size = new System.Drawing.Size(72, 16);
- this.label19.TabIndex = 3;
- this.label19.Text = "最小包装量";
- //
- // label20
- //
- this.label20.Location = new System.Drawing.Point(88, 224);
- this.label20.Name = "label20";
- this.label20.Size = new System.Drawing.Size(72, 16);
- this.label20.TabIndex = 3;
- this.label20.Text = "进货提前期";
- //
- // label21
- //
- this.label21.Location = new System.Drawing.Point(16, 224);
- this.label21.Name = "label21";
- this.label21.Size = new System.Drawing.Size(32, 16);
- this.label21.TabIndex = 3;
- this.label21.Text = "等级";
- //
- // label22
- //
- this.label22.Location = new System.Drawing.Point(168, 280);
- this.label22.Name = "label22";
- this.label22.Size = new System.Drawing.Size(72, 16);
- this.label22.TabIndex = 3;
- this.label22.Text = "最低库存";
- //
- // label23
- //
- this.label23.Location = new System.Drawing.Point(248, 280);
- this.label23.Name = "label23";
- this.label23.Size = new System.Drawing.Size(64, 16);
- this.label23.TabIndex = 3;
- this.label23.Text = "库存期限";
- //
- // label24
- //
- this.label24.Location = new System.Drawing.Point(16, 280);
- this.label24.Name = "label24";
- this.label24.Size = new System.Drawing.Size(32, 16);
- this.label24.TabIndex = 3;
- this.label24.Text = "批量";
- //
- // label25
- //
- this.label25.Location = new System.Drawing.Point(88, 280);
- this.label25.Name = "label25";
- this.label25.Size = new System.Drawing.Size(72, 16);
- this.label25.TabIndex = 3;
- this.label25.Text = "最高库存";
- //
- // label26
- //
- this.label26.Location = new System.Drawing.Point(336, 280);
- this.label26.Name = "label26";
- this.label26.Size = new System.Drawing.Size(72, 16);
- this.label26.TabIndex = 3;
- this.label26.Text = "最低销售量";
- //
- // label27
- //
- this.label27.Location = new System.Drawing.Point(248, 72);
- this.label27.Name = "label27";
- this.label27.Size = new System.Drawing.Size(56, 16);
- this.label27.TabIndex = 3;
- this.label27.Text = "录入者";
- //
- // label28
- //
- this.label28.Location = new System.Drawing.Point(328, 72);
- this.label28.Name = "label28";
- this.label28.Size = new System.Drawing.Size(72, 16);
- this.label28.TabIndex = 3;
- this.label28.Text = "录入日期";
- //
- // da2
- //
- this.da2.SelectCommand = this.sqlSelectCommand2;
- this.da2.TableMappings.AddRange(new System.Data.Common.DataTableMapping[] {
- new System.Data.Common.DataTableMapping("Table", "物料计划类别", new System.Data.Common.DataColumnMapping[] {
- new System.Data.Common.DataColumnMapping("类别名称", "类别名称"),
- new System.Data.Common.DataColumnMapping("类别代码", "类别代码")})});
- //
- // sqlSelectCommand2
- //
- this.sqlSelectCommand2.CommandText = "SELECT 类别名称, 类别代码 FROM 物料计划类别";
- this.sqlSelectCommand2.Connection = this.sqlConnection1;
- //
- // MaterialsForm
- //
- this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
- this.ClientSize = new System.Drawing.Size(648, 493);
- this.Controls.Add(this.groupBox2);
- this.Controls.Add(this.groupBox1);
- this.Controls.Add(this.dataGrid1);
- this.Controls.Add(this.toolBar1);
- this.Name = "MaterialsForm";
- this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
- this.Text = "【物料主文件】";
- this.Load += new System.EventHandler(this.MaterialsForm_Load);
- ((System.ComponentModel.ISupportInitialize)(this.dataSet11)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.dataGrid1)).EndInit();
- this.groupBox1.ResumeLayout(false);
- this.groupBox2.ResumeLayout(false);
- this.ResumeLayout(false);
- }
- #endregion
- //----------------读入数据,显示在窗体中-------------------
- private void MaterialsForm_Load(object sender, System.EventArgs e)
- {
- //填充【计量单位】下拉列表框的下拉选项
- cmb1.Items.Clear();
- string sql="select distinct 计量单位 from 物料主文件";
- SqlCommand thisCommand=new SqlCommand(sql,tempConnection);
- try
- {
- tempConnection.Open();
- SqlDataReader thisReader=thisCommand.ExecuteReader();
- while(thisReader.Read())
- {
- cmb1.Items.Add(thisReader.GetValue(0).ToString().Trim());
- }
- }
- catch(SqlException ex)
- {
- MessageBox.Show(ex.Message,"错误");
- }
- //为【计划类别】下拉列表框绑定数据并设置类别名称显示
- cmb2.DataSource=dataSet11;
- cmb2.DisplayMember="物料计划类别.类别名称";
- cmb2.ValueMember="物料计划类别.类别代码";
- cmb2.DataBindings.Add("SelectedValue",dataSet11,"物料主文件.计划类别");
- //为数据集添加数据项浏览控制
- cmOrders=(CurrencyManager) BindingContext[dataSet11,"物料主文件"];
- da1.SelectCommand.Parameters[0].Value="%%";
- da1.SelectCommand.Parameters[1].Value="%%";
- da1.SelectCommand.Parameters[2].Value="%%";
- da1.Fill(dataSet11);
- da2.Fill(dataSet11);
- }
- //-----------处理数据导航按钮事务---------------
- private void toolBar1_ButtonClick(object sender, System.Windows.Forms.ToolBarButtonClickEventArgs e)
- {
- if (e.Button.ToolTipText == "首记录")
- {
- this.dataGrid1.UnSelect(cmOrders.Position); //取消原选中的行
- cmOrders.Position = 0;
- this.dataGrid1.Select(cmOrders.Position); //选中当前行
- this.dataGrid1.CurrentRowIndex = cmOrders.Position; //移动表头指示图标
- return;
- }
- if (e.Button.ToolTipText == "上一记录")
- {
- if (cmOrders.Position >= 0)
- {
- this.dataGrid1.UnSelect(cmOrders.Position);
- cmOrders.Position--;
- this.dataGrid1.Select(cmOrders.Position);
- this.dataGrid1.CurrentRowIndex = cmOrders.Position;
- }
- return;
- }
- if (e.Button.ToolTipText == "下一记录")
- {
- if (cmOrders.Position <= cmOrders.Count-1)
- {
- this.dataGrid1.UnSelect(cmOrders.Position);
- cmOrders.Position++;
- this.dataGrid1.Select(cmOrders.Position);
- this.dataGrid1.CurrentRowIndex = cmOrders.Position;
- }
- return;
- }
- if (e.Button.ToolTipText == "尾记录")
- {
- this.dataGrid1.UnSelect(cmOrders.Position);
- cmOrders.Position = cmOrders.Count-1;
- this.dataGrid1.Select(cmOrders.Position);
- this.dataGrid1.CurrentRowIndex = cmOrders.Position;
- return;
- }
- if(e.Button.ToolTipText=="新增")
- {
- cmOrders.AddNew();
- //设置默认值
- txt4.Text="9999";
- txt5.Text="新增物料";
- cmb1.SelectedIndex=0;
- SetModifyMode(true);
- }
- if(e.Button.ToolTipText=="修改")
- {
- SetModifyMode(true);
- }
- if(e.Button.ToolTipText=="删除")
- {
- DialogResult result=MessageBox.Show("确认删除?","删除数据",MessageBoxButtons.OKCancel);
- if(result==DialogResult.OK)
- if(cmOrders.Count>0)
- cmOrders.RemoveAt(cmOrders.Position);
- else
- MessageBox.Show("表中为空,已无可删除数据","提示",MessageBoxButtons.OK,MessageBoxIcon.Error);
- }
- if(e.Button.ToolTipText=="提交")
- {
- if(txt4.Text.Trim()=="")//检查非空字段
- {
- MessageBox.Show("物料编号不能为空","提示",MessageBoxButtons.OK,MessageBoxIcon.Error);
- return;
- }
- if(txt5.Text.Trim()=="")
- {
- MessageBox.Show("物料名称不能为空","提示",MessageBoxButtons.OK,MessageBoxIcon.Error);
- return;
- }
- cmOrders.EndCurrentEdit();
- if(dataSet11.GetChanges()!=null)
- {
- try
- {
- da1.Update(dataSet11);
- SetModifyMode(false);
- }
- catch(Exception express)
- {
- MessageBox.Show(express.ToString(),"提示",MessageBoxButtons.OK,MessageBoxIcon.Error);
- dataSet11.RejectChanges();
- }
- }
- return;
- }
- if (e.Button.ToolTipText == "取消")
- {
- try
- {
- cmOrders.CancelCurrentEdit(); //取消编辑
- SetModifyMode(false);
- }
- catch(Exception express)
- {
- MessageBox.Show(express.ToString(),"提示",MessageBoxButtons.OK,MessageBoxIcon.Error);
- }
- return;
- }
- if(e.Button.ToolTipText=="退出")
- {
- if(dataSet11.HasChanges())
- {
- DialogResult result=MessageBox.Show("数据集有被修改但尚未提交的数据,是否提交?","确认",MessageBoxButtons.OKCancel);
- if(result==DialogResult.OK)
- da1.Update(dataSet11);
- }
- this.Close();
- }
- }
- //--------------对控件的Enable属性做设置---------------
- private void SetModifyMode(bool blnModify)
- {
- //设置文本框
- txt4.ReadOnly=!blnModify;
- txt5.ReadOnly=!blnModify;
- txt6.ReadOnly=!blnModify;
- txt7.ReadOnly=!blnModify;
- txt8.ReadOnly=!blnModify;
- txt9.ReadOnly=!blnModify;
- txt10.ReadOnly=!blnModify;
- txt11.ReadOnly=!blnModify;
- txt12.ReadOnly=!blnModify;
- txt13.ReadOnly=!blnModify;
- txt14.ReadOnly=!blnModify;
- txt15.ReadOnly=!blnModify;
- txt16.ReadOnly=!blnModify;
- txt17.ReadOnly=!blnModify;
- txt18.ReadOnly=!blnModify;
- txt19.ReadOnly=!blnModify;
- txt20.ReadOnly=!blnModify;
- txt21.ReadOnly=!blnModify;
- txt22.ReadOnly=!blnModify;
- txt23.ReadOnly=!blnModify;
- txt24.ReadOnly=!blnModify;
- txt25.ReadOnly=!blnModify;
- txt26.ReadOnly=!blnModify;
- txt27.ReadOnly=!blnModify;
- txt28.ReadOnly=!blnModify;
- txt29.ReadOnly=!blnModify;
- //设置两个下拉列表框
- cmb1.Enabled=blnModify;
- cmb2.Enabled=blnModify;
- //编辑时不允许搜索数据
- btnSearch.Enabled=!blnModify;
- //设置表格的只读模式
- dataGrid1.ReadOnly=!blnModify;
- }
- //----------根据输入搜索数据----------
- private void btnSearch_Click(object sender, System.EventArgs e)
- {
- da1.SelectCommand.Parameters[0].Value="%%";
- da1.SelectCommand.Parameters[1].Value="%%";
- da1.SelectCommand.Parameters[2].Value="%%";
- //根据用户在文本框中的输入来设置SQL查询的参数
- if(txt1.Text.Trim()!="")
- {
- da1.SelectCommand.Parameters[0].Value="%"+txt1.Text.Trim()+"%";
- }
- if(txt2.Text.Trim()!="")
- {
- da1.SelectCommand.Parameters[1].Value="%"+txt2.Text.Trim()+"%";
- }
- if(txt3.Text.Trim()!="")
- {
- da1.SelectCommand.Parameters[2].Value="%"+txt3.Text.Trim()+"%";
- }
- //清空数据表,并根据新设置的查询参数重新填充
- dataSet11.物料主文件.Clear();
- da1.Fill(dataSet11);
- }
- }
- }