/******************************************************************************* * Copyright(c) 2014 DongkeSoft All rights reserved. / Confidential * 类的信息: * 1.程序名称:F_PC_0207.cs * 2.功能描述:生产线配置计件属性 * 编辑履历: * 作者 日期 版本 修改内容 * 王鑫 2015/03/25 1.00 新建 *******************************************************************************/ using System; using System.Collections; using System.ComponentModel; using System.Data; using System.Linq; using System.Windows.Forms; using Dongke.IBOSS.PRD.Basics.BaseControls; using Dongke.IBOSS.PRD.Basics.BaseResources; using Dongke.IBOSS.PRD.Client.CommonModule; using Dongke.IBOSS.PRD.Client.Controls; using Dongke.IBOSS.PRD.Client.DataModels; using Dongke.IBOSS.Basics.FlowSetting; using Dongke.IBOSS.PRD.WCF.Proxys.PCModuleService; using Dongke.IBOSS.PRD.WCF.DataModels; using Dongke.IBOSS.PRD.WCF.Proxys; namespace Dongke.IBOSS.PRD.Client.PCModule { /// /// 生产线配置计件属性 /// public partial class F_PC_0207 : FormBase { #region 成员变量 private string _kilnCodeValue; private string _userCodeValue; private string _defectCodeValue; private string _JobsCodeValue; private bool _ShowFlag = true; private FlowNode node;//传入的编辑的节点 private FlowBox control;//主父框架 //private DateTime dt_TempDateTime;//记录就要被修改的值//流入节点的关系名称//流出节点的关系名称 private ArrayList arr_InFlowLineList;//连入节点的名称 private ArrayList arr_OutFlowLineList;//连出节点的名称 //private string str_NodeTypeSeleBefor; private GroupBox GetDataOgrp; public RadioButton rbtnMore; public RadioButton rbtnOne; private GroupBox groupBox2; public RadioButton rBtnNoNeed; public RadioButton rBtnNeed; private Label label1; private GroupBox groupBox3; private TabControl tabControl; private TabPage tabPage1; private TabPage tabPage2; private TabPage tabPage3; private GroupBox groupBox5; private Dongke.IBOSS.PRD.Client.Controls.dkOrganizationSearchBox sbOrganizationID; private DataGridViewTextBoxColumn dataGridViewTextBoxColumn3; private DataGridViewTextBoxColumn dataGridViewTextBoxColumn4; private DataGridViewTextBoxColumn dataGridViewTextBoxColumn5; private DataGridViewTextBoxColumn dataGridViewTextBoxColumn6; private DataGridViewTextBoxColumn dataGridViewTextBoxColumn7; private DataGridViewTextBoxColumn dataGridViewTextBoxColumn8; private DataGridViewTextBoxColumn dataGridViewTextBoxColumn9; private Dongke.IBOSS.PRD.Basics.BaseControls.C_TextBox txtProcedureName; private Dongke.IBOSS.PRD.Basics.BaseControls.C_TextBox txtProcedureCode; private Dongke.IBOSS.PRD.Basics.BaseControls.C_Label c_Label3; private Dongke.IBOSS.PRD.Basics.BaseControls.C_Label c_Label2; private Dongke.IBOSS.PRD.Basics.BaseControls.C_Label c_Label1; private C_DataGridView dgvGoods; private C_Button btnSave; private C_Button btnCancel; private IContainer components; private C_DataGridView dgvUser;//之前选择定的节点类型 private string _goodsCodeValue; private C_DataGridView dgvDefect; // 暂存产品编码 //private System.Data.DataTable _userDt;//用户信息 //private System.Data.DataTable _defectDt; private GroupBox groupBox1; private DKListBoxComboBox ddlProcessModelType; private DataGridViewComboBoxColumn UserID_NO; private DataGridViewTextBoxColumn UserID; private DataGridViewTextBoxColumn UserCode; private DataGridViewTextBoxColumn UserName; private DataGridViewTextBoxColumn DefectID; private DataGridViewTextBoxColumn DefectCode; private DataGridViewTextBoxColumn DefectName; private DataGridViewTextBoxColumn JobsID; private DataGridViewTextBoxColumn JobsCode; private DataGridViewTextBoxColumn JobsName; private DataGridViewComboBoxColumn DefectID_NO; private DataGridViewComboBoxColumn JobsID_NO; private GroupBox groupBox4; public RadioButton radioJobsPrice; public RadioButton radioNotPrice; //private System.Data.DataTable _JobsDt; private ProcedureEntity _procedureEntity = new ProcedureEntity(); private bool _IsEdit = false; private bool _IsReadonlyCode = false; #endregion #region 属性 /// /// 只读工序编码 /// public bool IsReadOnlyCode { set { _IsReadonlyCode = value; } get { return _IsReadonlyCode; } } #endregion #region 构造 public F_PC_0207(FlowNode node, FlowBox control) { // // Windows 窗体设计器支持所必需的 // InitializeComponent(); this.btnSave.Text = ButtonText.BTN_SAVE; this.btnCancel.Text = ButtonText.BTN_CANCEL; // 初始化 Init(node, control); } public F_PC_0207(FlowNode node, FlowBox control, bool isedit) { // // Windows 窗体设计器支持所必需的 // InitializeComponent(); this.btnSave.Text = ButtonText.BTN_SAVE; this.btnCancel.Text = ButtonText.BTN_CANCEL; this._IsEdit = isedit; //this.txtProcedureCode.ReadOnly = true; this.ddlProcessModelType.Enabled = false; //xuwei fix 2019-10-17 //this.rBtnNeed.Enabled = false; //this.rBtnNoNeed.Enabled = false; // 初始化 Init(node, control); } /// /// 初始化 /// private void Init(FlowNode node, FlowBox control) { this.node = node; this.control = control; this.arr_InFlowLineList = new ArrayList(); this.arr_OutFlowLineList = new ArrayList(); this.FormContentInit(); //this.BackgroundImage = new Bitmap(GetType(), "images.attribute.png"); } /// /// 清理所有正在使用的资源。 /// protected override void Dispose(bool disposing) { if (disposing) { if (components != null) { components.Dispose(); } } base.Dispose(disposing); } #endregion #region Windows 窗体设计器生成的代码 /// /// 设计器支持所需的方法 - 不要使用代码编辑器修改 /// 此方法的内容。 /// private void InitializeComponent() { System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle9 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle10 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle11 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle12 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle13 = new System.Windows.Forms.DataGridViewCellStyle(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(F_PC_0207)); this.txtProcedureName = new Dongke.IBOSS.PRD.Basics.BaseControls.C_TextBox(); this.txtProcedureCode = new Dongke.IBOSS.PRD.Basics.BaseControls.C_TextBox(); this.c_Label3 = new Dongke.IBOSS.PRD.Basics.BaseControls.C_Label(); this.c_Label2 = new Dongke.IBOSS.PRD.Basics.BaseControls.C_Label(); this.c_Label1 = new Dongke.IBOSS.PRD.Basics.BaseControls.C_Label(); this.GetDataOgrp = new System.Windows.Forms.GroupBox(); this.rbtnMore = new System.Windows.Forms.RadioButton(); this.rbtnOne = new System.Windows.Forms.RadioButton(); this.groupBox5 = new System.Windows.Forms.GroupBox(); this.rbtnSpecialSemireProcess = new Dongke.WinForm.Controls.ChkCheckBox(); this.rbtnSpecialReworkProcess = new Dongke.WinForm.Controls.ChkCheckBox(); this.groupBox2 = new System.Windows.Forms.GroupBox(); this.rBtnNoNeed = new System.Windows.Forms.RadioButton(); this.rBtnNeed = new System.Windows.Forms.RadioButton(); this.label1 = new System.Windows.Forms.Label(); this.txtRemarks = new Dongke.IBOSS.PRD.Basics.BaseControls.C_TextBox(); this.groupBox3 = new System.Windows.Forms.GroupBox(); this.tabControl = new System.Windows.Forms.TabControl(); this.tabPage1 = new System.Windows.Forms.TabPage(); this.dgvGoods = new Dongke.IBOSS.PRD.Basics.BaseControls.C_DataGridView(); this.GoodsID = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.GoodsCode = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.GoodsName = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.GoodsTypeName = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.GoodsSpecification = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.tabPage2 = new System.Windows.Forms.TabPage(); this.dgvUser = new Dongke.IBOSS.PRD.Basics.BaseControls.C_DataGridView(); this.UserID_NO = new System.Windows.Forms.DataGridViewComboBoxColumn(); this.UserID = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.UserCode = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.UserName = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.tabPage3 = new System.Windows.Forms.TabPage(); this.dgvDefect = new Dongke.IBOSS.PRD.Basics.BaseControls.C_DataGridView(); this.DefectID = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.DefectCode = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.DefectName = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.JobsID = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.JobsCode = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.JobsName = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.DefectID_NO = new System.Windows.Forms.DataGridViewComboBoxColumn(); this.JobsID_NO = new System.Windows.Forms.DataGridViewComboBoxColumn(); this.tabPage4 = new System.Windows.Forms.TabPage(); this.dgvKiln = new Dongke.IBOSS.PRD.Basics.BaseControls.C_DataGridView(); this.dataGridViewTextBoxColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.kilnCode = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.kilnName = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.dataGridViewTextBoxColumn3 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.dataGridViewTextBoxColumn4 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.dataGridViewTextBoxColumn5 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.dataGridViewTextBoxColumn6 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.dataGridViewTextBoxColumn7 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.dataGridViewTextBoxColumn8 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.dataGridViewTextBoxColumn9 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.btnSave = new Dongke.IBOSS.PRD.Basics.BaseControls.C_Button(); this.btnCancel = new Dongke.IBOSS.PRD.Basics.BaseControls.C_Button(); this.groupBox1 = new System.Windows.Forms.GroupBox(); this.groupBox8 = new System.Windows.Forms.GroupBox(); this.rbtnGlazeNoChange = new System.Windows.Forms.RadioButton(); this.rbtnGlazeChange = new System.Windows.Forms.RadioButton(); this.ddlPrintType = new Dongke.IBOSS.PRD.Basics.BaseControls.C_ComboBox(); this.c_Label6 = new Dongke.IBOSS.PRD.Basics.BaseControls.C_Label(); this.groupBox7 = new System.Windows.Forms.GroupBox(); this.rbtnOutBarCode = new System.Windows.Forms.RadioButton(); this.rbtnGBarcode = new System.Windows.Forms.RadioButton(); this.txtBarCodePrintCopies = new Dongke.IBOSS.PRD.Basics.BaseControls.C_DGV_Digital(); this.c_Label5 = new Dongke.IBOSS.PRD.Basics.BaseControls.C_Label(); this.txtDisplayNo = new Dongke.IBOSS.PRD.Basics.BaseControls.C_DGV_Digital(); this.txtmisspriority = new Dongke.IBOSS.PRD.Basics.BaseControls.C_DGV_Digital(); this.lblDisplayNo = new Dongke.IBOSS.PRD.Basics.BaseControls.C_Label(); this.c_Label4 = new Dongke.IBOSS.PRD.Basics.BaseControls.C_Label(); this.lblmisspriority = new Dongke.IBOSS.PRD.Basics.BaseControls.C_Label(); this.groupBox4 = new System.Windows.Forms.GroupBox(); this.radioJobsPrice = new System.Windows.Forms.RadioButton(); this.radioNotPrice = new System.Windows.Forms.RadioButton(); this.ddlProcessModelType = new Dongke.IBOSS.PRD.Basics.BaseControls.DKListBoxComboBox(); this.groupBox6 = new System.Windows.Forms.GroupBox(); this.rbtnAuto = new System.Windows.Forms.RadioButton(); this.rbtnHand = new System.Windows.Forms.RadioButton(); this.sbOrganizationID = new Dongke.IBOSS.PRD.Client.Controls.dkOrganizationSearchBox(); this.GetDataOgrp.SuspendLayout(); this.groupBox5.SuspendLayout(); this.groupBox2.SuspendLayout(); this.groupBox3.SuspendLayout(); this.tabControl.SuspendLayout(); this.tabPage1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.dgvGoods)).BeginInit(); this.tabPage2.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.dgvUser)).BeginInit(); this.tabPage3.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.dgvDefect)).BeginInit(); this.tabPage4.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.dgvKiln)).BeginInit(); this.groupBox1.SuspendLayout(); this.groupBox8.SuspendLayout(); this.groupBox7.SuspendLayout(); this.groupBox4.SuspendLayout(); this.groupBox6.SuspendLayout(); this.SuspendLayout(); // // txtProcedureName // this.txtProcedureName.BackColor = System.Drawing.Color.Yellow; this.txtProcedureName.BackgroundColor = System.Drawing.SystemColors.Window; this.txtProcedureName.ErrorMessage = "必须输入项目"; this.txtProcedureName.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.txtProcedureName.HasError = true; this.txtProcedureName.IsMustInput = true; this.txtProcedureName.Location = new System.Drawing.Point(317, 25); this.txtProcedureName.Margin = new System.Windows.Forms.Padding(4); this.txtProcedureName.MaxLength = 50; this.txtProcedureName.Name = "txtProcedureName"; this.txtProcedureName.Size = new System.Drawing.Size(143, 25); this.txtProcedureName.TabIndex = 3; // // txtProcedureCode // this.txtProcedureCode.BackColor = System.Drawing.Color.Yellow; this.txtProcedureCode.BackgroundColor = System.Drawing.SystemColors.Window; this.txtProcedureCode.ErrorMessage = "必须输入项目"; this.txtProcedureCode.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.txtProcedureCode.HasError = true; this.txtProcedureCode.IsMustInput = true; this.txtProcedureCode.Location = new System.Drawing.Point(87, 25); this.txtProcedureCode.Margin = new System.Windows.Forms.Padding(4); this.txtProcedureCode.MaxLength = 20; this.txtProcedureCode.Name = "txtProcedureCode"; this.txtProcedureCode.Size = new System.Drawing.Size(143, 25); this.txtProcedureCode.TabIndex = 1; // // c_Label3 // this.c_Label3.AutoSize = true; this.c_Label3.BackColor = System.Drawing.Color.Transparent; this.c_Label3.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.c_Label3.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(155)))), ((int)(((byte)(39)))), ((int)(((byte)(39))))); this.c_Label3.IsMustInput = true; this.c_Label3.Location = new System.Drawing.Point(469, 29); this.c_Label3.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.c_Label3.Name = "c_Label3"; this.c_Label3.Size = new System.Drawing.Size(67, 15); this.c_Label3.TabIndex = 4; this.c_Label3.Text = "工序类型"; // // c_Label2 // this.c_Label2.AutoSize = true; this.c_Label2.BackColor = System.Drawing.Color.Transparent; this.c_Label2.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.c_Label2.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(155)))), ((int)(((byte)(39)))), ((int)(((byte)(39))))); this.c_Label2.IsMustInput = true; this.c_Label2.Location = new System.Drawing.Point(239, 29); this.c_Label2.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.c_Label2.Name = "c_Label2"; this.c_Label2.Size = new System.Drawing.Size(67, 15); this.c_Label2.TabIndex = 2; this.c_Label2.Text = "工序名称"; // // c_Label1 // this.c_Label1.AutoSize = true; this.c_Label1.BackColor = System.Drawing.Color.Transparent; this.c_Label1.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.c_Label1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(155)))), ((int)(((byte)(39)))), ((int)(((byte)(39))))); this.c_Label1.IsMustInput = true; this.c_Label1.Location = new System.Drawing.Point(8, 29); this.c_Label1.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.c_Label1.Name = "c_Label1"; this.c_Label1.Size = new System.Drawing.Size(67, 15); this.c_Label1.TabIndex = 0; this.c_Label1.Text = "工序编码"; // // GetDataOgrp // this.GetDataOgrp.BackColor = System.Drawing.Color.Transparent; this.GetDataOgrp.Controls.Add(this.rbtnMore); this.GetDataOgrp.Controls.Add(this.rbtnOne); this.GetDataOgrp.Location = new System.Drawing.Point(8, 58); this.GetDataOgrp.Margin = new System.Windows.Forms.Padding(4); this.GetDataOgrp.Name = "GetDataOgrp"; this.GetDataOgrp.Padding = new System.Windows.Forms.Padding(4); this.GetDataOgrp.Size = new System.Drawing.Size(198, 68); this.GetDataOgrp.TabIndex = 9; this.GetDataOgrp.TabStop = false; this.GetDataOgrp.Text = "采集方式"; // // rbtnMore // this.rbtnMore.AutoSize = true; this.rbtnMore.Location = new System.Drawing.Point(104, 30); this.rbtnMore.Margin = new System.Windows.Forms.Padding(4); this.rbtnMore.Name = "rbtnMore"; this.rbtnMore.Size = new System.Drawing.Size(88, 19); this.rbtnMore.TabIndex = 1; this.rbtnMore.TabStop = true; this.rbtnMore.Text = "集中采集"; this.rbtnMore.UseVisualStyleBackColor = true; this.rbtnMore.CheckedChanged += new System.EventHandler(this.rbtnMore_CheckedChanged); // // rbtnOne // this.rbtnOne.AutoSize = true; this.rbtnOne.Checked = true; this.rbtnOne.Location = new System.Drawing.Point(8, 30); this.rbtnOne.Margin = new System.Windows.Forms.Padding(4); this.rbtnOne.Name = "rbtnOne"; this.rbtnOne.Size = new System.Drawing.Size(88, 19); this.rbtnOne.TabIndex = 0; this.rbtnOne.TabStop = true; this.rbtnOne.Text = "单点采集"; this.rbtnOne.UseVisualStyleBackColor = true; // // groupBox5 // this.groupBox5.BackColor = System.Drawing.Color.Transparent; this.groupBox5.Controls.Add(this.rbtnSpecialSemireProcess); this.groupBox5.Controls.Add(this.rbtnSpecialReworkProcess); this.groupBox5.Location = new System.Drawing.Point(569, 58); this.groupBox5.Margin = new System.Windows.Forms.Padding(4); this.groupBox5.Name = "groupBox5"; this.groupBox5.Padding = new System.Windows.Forms.Padding(4); this.groupBox5.Size = new System.Drawing.Size(218, 68); this.groupBox5.TabIndex = 11; this.groupBox5.TabStop = false; this.groupBox5.Tag = ""; this.groupBox5.Text = "重烧返工/半检返修"; // // rbtnSpecialSemireProcess // this.rbtnSpecialSemireProcess.Location = new System.Drawing.Point(124, 31); this.rbtnSpecialSemireProcess.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); this.rbtnSpecialSemireProcess.Name = "rbtnSpecialSemireProcess"; this.rbtnSpecialSemireProcess.Size = new System.Drawing.Size(89, 19); this.rbtnSpecialSemireProcess.TabIndex = 1; this.rbtnSpecialSemireProcess.Text = "半检返修"; this.rbtnSpecialSemireProcess.UseVisualStyleBackColor = false; this.rbtnSpecialSemireProcess.CheckedChanged += new System.EventHandler(this.rbtnSpecialSemireProcess_CheckedChanged); // // rbtnSpecialReworkProcess // this.rbtnSpecialReworkProcess.Location = new System.Drawing.Point(19, 30); this.rbtnSpecialReworkProcess.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); this.rbtnSpecialReworkProcess.Name = "rbtnSpecialReworkProcess"; this.rbtnSpecialReworkProcess.Size = new System.Drawing.Size(89, 19); this.rbtnSpecialReworkProcess.TabIndex = 0; this.rbtnSpecialReworkProcess.Text = "重烧返工"; this.rbtnSpecialReworkProcess.UseVisualStyleBackColor = false; this.rbtnSpecialReworkProcess.CheckedChanged += new System.EventHandler(this.rbtnSpecialReworkProcess_CheckedChanged); // // groupBox2 // this.groupBox2.BackColor = System.Drawing.Color.Transparent; this.groupBox2.Controls.Add(this.rBtnNoNeed); this.groupBox2.Controls.Add(this.rBtnNeed); this.groupBox2.Location = new System.Drawing.Point(214, 58); this.groupBox2.Margin = new System.Windows.Forms.Padding(4); this.groupBox2.Name = "groupBox2"; this.groupBox2.Padding = new System.Windows.Forms.Padding(4); this.groupBox2.Size = new System.Drawing.Size(154, 68); this.groupBox2.TabIndex = 10; this.groupBox2.TabStop = false; this.groupBox2.Tag = ""; this.groupBox2.Text = "必须工序"; // // rBtnNoNeed // this.rBtnNoNeed.AutoSize = true; this.rBtnNoNeed.Location = new System.Drawing.Point(74, 30); this.rBtnNoNeed.Margin = new System.Windows.Forms.Padding(4); this.rBtnNoNeed.Name = "rBtnNoNeed"; this.rBtnNoNeed.Size = new System.Drawing.Size(73, 19); this.rBtnNoNeed.TabIndex = 1; this.rBtnNoNeed.Text = "非必须"; this.rBtnNoNeed.UseVisualStyleBackColor = true; // // rBtnNeed // this.rBtnNeed.AutoSize = true; this.rBtnNeed.Checked = true; this.rBtnNeed.Location = new System.Drawing.Point(8, 30); this.rBtnNeed.Margin = new System.Windows.Forms.Padding(4); this.rBtnNeed.Name = "rBtnNeed"; this.rBtnNeed.Size = new System.Drawing.Size(58, 19); this.rBtnNeed.TabIndex = 0; this.rBtnNeed.TabStop = true; this.rBtnNeed.Text = "必须"; this.rBtnNeed.UseVisualStyleBackColor = true; // // label1 // this.label1.AutoSize = true; this.label1.Location = new System.Drawing.Point(53, 201); this.label1.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(37, 15); this.label1.TabIndex = 7; this.label1.Text = "备注"; // // txtRemarks // this.txtRemarks.BackgroundColor = System.Drawing.SystemColors.Window; this.txtRemarks.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.txtRemarks.Location = new System.Drawing.Point(100, 200); this.txtRemarks.Margin = new System.Windows.Forms.Padding(4); this.txtRemarks.MaxLength = 500; this.txtRemarks.Name = "txtRemarks"; this.txtRemarks.Size = new System.Drawing.Size(897, 25); this.txtRemarks.TabIndex = 8; // // groupBox3 // this.groupBox3.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.groupBox3.BackColor = System.Drawing.Color.Transparent; this.groupBox3.Controls.Add(this.tabControl); this.groupBox3.Location = new System.Drawing.Point(16, 254); this.groupBox3.Margin = new System.Windows.Forms.Padding(4); this.groupBox3.Name = "groupBox3"; this.groupBox3.Padding = new System.Windows.Forms.Padding(4); this.groupBox3.Size = new System.Drawing.Size(1005, 318); this.groupBox3.TabIndex = 1; this.groupBox3.TabStop = false; this.groupBox3.Text = "控制属性"; // // tabControl // this.tabControl.Controls.Add(this.tabPage1); this.tabControl.Controls.Add(this.tabPage2); this.tabControl.Controls.Add(this.tabPage3); this.tabControl.Controls.Add(this.tabPage4); this.tabControl.Dock = System.Windows.Forms.DockStyle.Fill; this.tabControl.Location = new System.Drawing.Point(4, 22); this.tabControl.Margin = new System.Windows.Forms.Padding(4); this.tabControl.Name = "tabControl"; this.tabControl.SelectedIndex = 0; this.tabControl.Size = new System.Drawing.Size(997, 292); this.tabControl.TabIndex = 0; // // tabPage1 // this.tabPage1.Controls.Add(this.dgvGoods); this.tabPage1.Location = new System.Drawing.Point(4, 25); this.tabPage1.Margin = new System.Windows.Forms.Padding(0); this.tabPage1.Name = "tabPage1"; this.tabPage1.Size = new System.Drawing.Size(989, 263); this.tabPage1.TabIndex = 0; this.tabPage1.Text = "生产产品"; this.tabPage1.UseVisualStyleBackColor = true; // // dgvGoods // this.dgvGoods.AllowUserToModifyRows = true; dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235))))); this.dgvGoods.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1; this.dgvGoods.CellBackColorNochanged = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); this.dgvGoods.CellBackColorReadOnly = System.Drawing.SystemColors.Control; this.dgvGoods.CellHeight = 23; this.dgvGoods.ChildNodeColumnName = null; this.dgvGoods.ChildNodeColumnText = null; this.dgvGoods.ColumnDeep = 1; this.dgvGoods.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.Single; dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; dataGridViewCellStyle2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(58)))), ((int)(((byte)(70))))); dataGridViewCellStyle2.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); dataGridViewCellStyle2.ForeColor = System.Drawing.Color.White; dataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Highlight; dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText; dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.True; this.dgvGoods.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2; this.dgvGoods.ColumnHeadersHeight = 29; this.dgvGoods.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing; this.dgvGoods.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { this.GoodsID, this.GoodsCode, this.GoodsName, this.GoodsTypeName, this.GoodsSpecification}); this.dgvGoods.ColumnTreeView = null; this.dgvGoods.ContextMenuVisible = ((Dongke.IBOSS.PRD.Basics.BaseControls.C_DataGridView.ContextMenuVisibleFlags)((Dongke.IBOSS.PRD.Basics.BaseControls.C_DataGridView.ContextMenuVisibleFlags.Refine | Dongke.IBOSS.PRD.Basics.BaseControls.C_DataGridView.ContextMenuVisibleFlags.FileOut))); dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; dataGridViewCellStyle3.BackColor = System.Drawing.SystemColors.Window; dataGridViewCellStyle3.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); dataGridViewCellStyle3.ForeColor = System.Drawing.SystemColors.ControlText; dataGridViewCellStyle3.SelectionBackColor = System.Drawing.SystemColors.Highlight; dataGridViewCellStyle3.SelectionForeColor = System.Drawing.SystemColors.HighlightText; dataGridViewCellStyle3.WrapMode = System.Windows.Forms.DataGridViewTriState.False; this.dgvGoods.DefaultCellStyle = dataGridViewCellStyle3; this.dgvGoods.Dock = System.Windows.Forms.DockStyle.Fill; this.dgvGoods.DynamicColumnName = ""; this.dgvGoods.EnableHeadersVisualStyles = false; this.dgvGoods.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.dgvGoods.FormatQuantityColumns = null; this.dgvGoods.HorizontalMergeColumn = null; this.dgvGoods.IsAutoCountSum = true; this.dgvGoods.IsAutoResizeColumns = false; this.dgvGoods.IsClickF12 = false; this.dgvGoods.IsOpenMergeCellFlag = false; this.dgvGoods.IsSubTotalFlag = false; this.dgvGoods.IsTopDeep = false; this.dgvGoods.Location = new System.Drawing.Point(0, 0); this.dgvGoods.Margin = new System.Windows.Forms.Padding(4); this.dgvGoods.MergeColumnNames = null; this.dgvGoods.MergeDetailColumnNames = null; this.dgvGoods.MergeDetailOnlyColumn = null; this.dgvGoods.MergeOnlyColumn = null; this.dgvGoods.Name = "dgvGoods"; this.dgvGoods.RefreshAtHscroll = false; this.dgvGoods.RowHeadersWidth = 50; this.dgvGoods.RowHeadersWidthSizeMode = System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode.DisableResizing; dataGridViewCellStyle4.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(159)))), ((int)(((byte)(39)))), ((int)(((byte)(39))))); this.dgvGoods.RowsDefaultCellStyle = dataGridViewCellStyle4; this.dgvGoods.RowTemplate.Height = 21; this.dgvGoods.Size = new System.Drawing.Size(989, 263); this.dgvGoods.SortOrderColumnName = null; this.dgvGoods.TabIndex = 0; this.dgvGoods.Tag = true; this.dgvGoods.TotalSumColumns = null; this.dgvGoods.ViewRowFilter = ""; this.dgvGoods.CellBeginEdit += new System.Windows.Forms.DataGridViewCellCancelEventHandler(this.dgvGoods_CellBeginEdit); this.dgvGoods.CellValueChanged += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvGoods_CellValueChanged); // // GoodsID // this.GoodsID.DataPropertyName = "GoodsID"; this.GoodsID.HeaderText = "GoodsID"; this.GoodsID.MinimumWidth = 6; this.GoodsID.Name = "GoodsID"; this.GoodsID.Visible = false; this.GoodsID.Width = 125; // // GoodsCode // this.GoodsCode.DataPropertyName = "GoodsCode"; this.GoodsCode.HeaderText = "产品编码"; this.GoodsCode.MinimumWidth = 6; this.GoodsCode.Name = "GoodsCode"; this.GoodsCode.Resizable = System.Windows.Forms.DataGridViewTriState.True; this.GoodsCode.Width = 125; // // GoodsName // this.GoodsName.DataPropertyName = "GoodsName"; this.GoodsName.HeaderText = "产品名称"; this.GoodsName.MinimumWidth = 6; this.GoodsName.Name = "GoodsName"; this.GoodsName.ReadOnly = true; this.GoodsName.Width = 125; // // GoodsTypeName // this.GoodsTypeName.DataPropertyName = "GoodsTypeName"; this.GoodsTypeName.HeaderText = "产品类别"; this.GoodsTypeName.MinimumWidth = 6; this.GoodsTypeName.Name = "GoodsTypeName"; this.GoodsTypeName.ReadOnly = true; this.GoodsTypeName.Width = 125; // // GoodsSpecification // this.GoodsSpecification.DataPropertyName = "GoodsSpecification"; this.GoodsSpecification.HeaderText = "产品规格"; this.GoodsSpecification.MinimumWidth = 6; this.GoodsSpecification.Name = "GoodsSpecification"; this.GoodsSpecification.ReadOnly = true; this.GoodsSpecification.Width = 125; // // tabPage2 // this.tabPage2.Controls.Add(this.dgvUser); this.tabPage2.Location = new System.Drawing.Point(4, 25); this.tabPage2.Margin = new System.Windows.Forms.Padding(4); this.tabPage2.Name = "tabPage2"; this.tabPage2.Size = new System.Drawing.Size(989, 263); this.tabPage2.TabIndex = 1; this.tabPage2.Text = "生产工号"; this.tabPage2.UseVisualStyleBackColor = true; // // dgvUser // this.dgvUser.AllowUserToModifyRows = true; dataGridViewCellStyle5.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235))))); this.dgvUser.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle5; this.dgvUser.CellBackColorNochanged = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); this.dgvUser.CellBackColorReadOnly = System.Drawing.SystemColors.Control; this.dgvUser.CellHeight = 23; this.dgvUser.ChildNodeColumnName = null; this.dgvUser.ChildNodeColumnText = null; this.dgvUser.ColumnDeep = 1; this.dgvUser.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.Single; dataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; dataGridViewCellStyle6.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(58)))), ((int)(((byte)(70))))); dataGridViewCellStyle6.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); dataGridViewCellStyle6.ForeColor = System.Drawing.Color.White; dataGridViewCellStyle6.SelectionBackColor = System.Drawing.SystemColors.Highlight; dataGridViewCellStyle6.SelectionForeColor = System.Drawing.SystemColors.HighlightText; dataGridViewCellStyle6.WrapMode = System.Windows.Forms.DataGridViewTriState.True; this.dgvUser.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle6; this.dgvUser.ColumnHeadersHeight = 29; this.dgvUser.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing; this.dgvUser.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { this.UserID_NO, this.UserID, this.UserCode, this.UserName}); this.dgvUser.ColumnTreeView = null; this.dgvUser.ContextMenuVisible = ((Dongke.IBOSS.PRD.Basics.BaseControls.C_DataGridView.ContextMenuVisibleFlags)((Dongke.IBOSS.PRD.Basics.BaseControls.C_DataGridView.ContextMenuVisibleFlags.Refine | Dongke.IBOSS.PRD.Basics.BaseControls.C_DataGridView.ContextMenuVisibleFlags.FileOut))); this.dgvUser.Dock = System.Windows.Forms.DockStyle.Fill; this.dgvUser.DynamicColumnName = ""; this.dgvUser.EnableHeadersVisualStyles = false; this.dgvUser.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.dgvUser.FormatQuantityColumns = null; this.dgvUser.HorizontalMergeColumn = null; this.dgvUser.IsAutoCountSum = true; this.dgvUser.IsAutoResizeColumns = false; this.dgvUser.IsClickF12 = false; this.dgvUser.IsOpenMergeCellFlag = false; this.dgvUser.IsSubTotalFlag = false; this.dgvUser.IsTopDeep = false; this.dgvUser.Location = new System.Drawing.Point(0, 0); this.dgvUser.Margin = new System.Windows.Forms.Padding(4); this.dgvUser.MergeColumnNames = null; this.dgvUser.MergeDetailColumnNames = null; this.dgvUser.MergeDetailOnlyColumn = null; this.dgvUser.MergeOnlyColumn = null; this.dgvUser.Name = "dgvUser"; this.dgvUser.RefreshAtHscroll = false; this.dgvUser.RowHeadersWidth = 50; this.dgvUser.RowHeadersWidthSizeMode = System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode.DisableResizing; dataGridViewCellStyle7.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(159)))), ((int)(((byte)(39)))), ((int)(((byte)(39))))); this.dgvUser.RowsDefaultCellStyle = dataGridViewCellStyle7; this.dgvUser.RowTemplate.Height = 21; this.dgvUser.Size = new System.Drawing.Size(989, 263); this.dgvUser.SortOrderColumnName = null; this.dgvUser.TabIndex = 54; this.dgvUser.Tag = true; this.dgvUser.TotalSumColumns = null; this.dgvUser.ViewRowFilter = ""; this.dgvUser.CellBeginEdit += new System.Windows.Forms.DataGridViewCellCancelEventHandler(this.dgvUser_CellBeginEdit); this.dgvUser.CellValueChanged += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvUser_CellValueChanged); this.dgvUser.EditingControlShowing += new System.Windows.Forms.DataGridViewEditingControlShowingEventHandler(this.dgvUser_EditingControlShowing); // // UserID_NO // this.UserID_NO.FillWeight = 200F; this.UserID_NO.HeaderText = "工号"; this.UserID_NO.MinimumWidth = 6; this.UserID_NO.Name = "UserID_NO"; this.UserID_NO.Resizable = System.Windows.Forms.DataGridViewTriState.True; this.UserID_NO.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; this.UserID_NO.Visible = false; this.UserID_NO.Width = 200; // // UserID // this.UserID.DataPropertyName = "UserID"; this.UserID.HeaderText = "UserID"; this.UserID.MinimumWidth = 6; this.UserID.Name = "UserID"; this.UserID.ReadOnly = true; this.UserID.Visible = false; this.UserID.Width = 125; // // UserCode // this.UserCode.DataPropertyName = "UserCode"; this.UserCode.HeaderText = "工号"; this.UserCode.MinimumWidth = 6; this.UserCode.Name = "UserCode"; this.UserCode.Width = 125; // // UserName // this.UserName.DataPropertyName = "UserName"; this.UserName.HeaderText = "工号名称"; this.UserName.MinimumWidth = 6; this.UserName.Name = "UserName"; this.UserName.ReadOnly = true; this.UserName.Width = 125; // // tabPage3 // this.tabPage3.Controls.Add(this.dgvDefect); this.tabPage3.Location = new System.Drawing.Point(4, 25); this.tabPage3.Margin = new System.Windows.Forms.Padding(0); this.tabPage3.Name = "tabPage3"; this.tabPage3.Size = new System.Drawing.Size(989, 263); this.tabPage3.TabIndex = 2; this.tabPage3.Text = "存在缺陷"; this.tabPage3.UseVisualStyleBackColor = true; // // dgvDefect // this.dgvDefect.AllowUserToModifyRows = true; dataGridViewCellStyle8.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235))))); this.dgvDefect.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle8; this.dgvDefect.CellBackColorNochanged = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); this.dgvDefect.CellBackColorReadOnly = System.Drawing.SystemColors.Control; this.dgvDefect.CellHeight = 23; this.dgvDefect.ChildNodeColumnName = null; this.dgvDefect.ChildNodeColumnText = null; this.dgvDefect.ColumnDeep = 1; this.dgvDefect.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.Single; dataGridViewCellStyle9.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; dataGridViewCellStyle9.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(58)))), ((int)(((byte)(70))))); dataGridViewCellStyle9.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); dataGridViewCellStyle9.ForeColor = System.Drawing.Color.White; dataGridViewCellStyle9.SelectionBackColor = System.Drawing.SystemColors.Highlight; dataGridViewCellStyle9.SelectionForeColor = System.Drawing.SystemColors.HighlightText; dataGridViewCellStyle9.WrapMode = System.Windows.Forms.DataGridViewTriState.True; this.dgvDefect.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle9; this.dgvDefect.ColumnHeadersHeight = 29; this.dgvDefect.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing; this.dgvDefect.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { this.DefectID, this.DefectCode, this.DefectName, this.JobsID, this.JobsCode, this.JobsName, this.DefectID_NO, this.JobsID_NO}); this.dgvDefect.ColumnTreeView = null; this.dgvDefect.ContextMenuVisible = ((Dongke.IBOSS.PRD.Basics.BaseControls.C_DataGridView.ContextMenuVisibleFlags)((Dongke.IBOSS.PRD.Basics.BaseControls.C_DataGridView.ContextMenuVisibleFlags.Refine | Dongke.IBOSS.PRD.Basics.BaseControls.C_DataGridView.ContextMenuVisibleFlags.FileOut))); this.dgvDefect.Dock = System.Windows.Forms.DockStyle.Fill; this.dgvDefect.DynamicColumnName = ""; this.dgvDefect.EnableHeadersVisualStyles = false; this.dgvDefect.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.dgvDefect.FormatQuantityColumns = null; this.dgvDefect.HorizontalMergeColumn = null; this.dgvDefect.IsAutoCountSum = true; this.dgvDefect.IsAutoResizeColumns = false; this.dgvDefect.IsClickF12 = false; this.dgvDefect.IsOpenMergeCellFlag = false; this.dgvDefect.IsSubTotalFlag = false; this.dgvDefect.IsTopDeep = false; this.dgvDefect.Location = new System.Drawing.Point(0, 0); this.dgvDefect.Margin = new System.Windows.Forms.Padding(4); this.dgvDefect.MergeColumnNames = null; this.dgvDefect.MergeDetailColumnNames = null; this.dgvDefect.MergeDetailOnlyColumn = null; this.dgvDefect.MergeOnlyColumn = null; this.dgvDefect.Name = "dgvDefect"; this.dgvDefect.RefreshAtHscroll = false; this.dgvDefect.RowHeadersWidth = 50; this.dgvDefect.RowHeadersWidthSizeMode = System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode.DisableResizing; dataGridViewCellStyle10.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(159)))), ((int)(((byte)(39)))), ((int)(((byte)(39))))); this.dgvDefect.RowsDefaultCellStyle = dataGridViewCellStyle10; this.dgvDefect.RowTemplate.Height = 21; this.dgvDefect.Size = new System.Drawing.Size(989, 263); this.dgvDefect.SortOrderColumnName = null; this.dgvDefect.TabIndex = 54; this.dgvDefect.Tag = true; this.dgvDefect.TotalSumColumns = null; this.dgvDefect.ViewRowFilter = ""; this.dgvDefect.CellBeginEdit += new System.Windows.Forms.DataGridViewCellCancelEventHandler(this.dgvDefect_CellBeginEdit); this.dgvDefect.CellValueChanged += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvDefect_CellValueChanged); this.dgvDefect.EditingControlShowing += new System.Windows.Forms.DataGridViewEditingControlShowingEventHandler(this.dgvDefect_EditingControlShowing); // // DefectID // this.DefectID.DataPropertyName = "DefectID"; this.DefectID.HeaderText = "DefectID"; this.DefectID.MinimumWidth = 6; this.DefectID.Name = "DefectID"; this.DefectID.ReadOnly = true; this.DefectID.Visible = false; this.DefectID.Width = 125; // // DefectCode // this.DefectCode.DataPropertyName = "DefectCode"; this.DefectCode.HeaderText = "缺陷编码"; this.DefectCode.MinimumWidth = 6; this.DefectCode.Name = "DefectCode"; this.DefectCode.Width = 125; // // DefectName // this.DefectName.DataPropertyName = "DefectName"; this.DefectName.HeaderText = "缺陷名称"; this.DefectName.MinimumWidth = 6; this.DefectName.Name = "DefectName"; this.DefectName.ReadOnly = true; this.DefectName.Width = 125; // // JobsID // this.JobsID.DataPropertyName = "JobsID"; this.JobsID.HeaderText = "JobsID"; this.JobsID.MinimumWidth = 6; this.JobsID.Name = "JobsID"; this.JobsID.ReadOnly = true; this.JobsID.Visible = false; this.JobsID.Width = 125; // // JobsCode // this.JobsCode.DataPropertyName = "JobsCode"; this.JobsCode.HeaderText = "责任工种编码"; this.JobsCode.MinimumWidth = 6; this.JobsCode.Name = "JobsCode"; this.JobsCode.Width = 125; // // JobsName // this.JobsName.DataPropertyName = "JobsName"; this.JobsName.HeaderText = "责任工种名称"; this.JobsName.MinimumWidth = 6; this.JobsName.Name = "JobsName"; this.JobsName.ReadOnly = true; this.JobsName.Width = 125; // // DefectID_NO // this.DefectID_NO.FillWeight = 200F; this.DefectID_NO.HeaderText = "缺陷(不要了)"; this.DefectID_NO.MinimumWidth = 6; this.DefectID_NO.Name = "DefectID_NO"; this.DefectID_NO.Resizable = System.Windows.Forms.DataGridViewTriState.True; this.DefectID_NO.Visible = false; this.DefectID_NO.Width = 200; // // JobsID_NO // this.JobsID_NO.FillWeight = 200F; this.JobsID_NO.HeaderText = "责任工种(不要了)"; this.JobsID_NO.MinimumWidth = 6; this.JobsID_NO.Name = "JobsID_NO"; this.JobsID_NO.Resizable = System.Windows.Forms.DataGridViewTriState.True; this.JobsID_NO.Visible = false; this.JobsID_NO.Width = 200; // // tabPage4 // this.tabPage4.Controls.Add(this.dgvKiln); this.tabPage4.Location = new System.Drawing.Point(4, 25); this.tabPage4.Margin = new System.Windows.Forms.Padding(4); this.tabPage4.Name = "tabPage4"; this.tabPage4.Size = new System.Drawing.Size(989, 263); this.tabPage4.TabIndex = 3; this.tabPage4.Text = "可用窑炉"; this.tabPage4.UseVisualStyleBackColor = true; // // dgvKiln // this.dgvKiln.AllowUserToModifyRows = true; dataGridViewCellStyle11.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235))))); this.dgvKiln.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle11; this.dgvKiln.CellBackColorNochanged = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); this.dgvKiln.CellBackColorReadOnly = System.Drawing.SystemColors.Control; this.dgvKiln.CellHeight = 23; this.dgvKiln.ChildNodeColumnName = null; this.dgvKiln.ChildNodeColumnText = null; this.dgvKiln.ColumnDeep = 1; this.dgvKiln.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.Single; dataGridViewCellStyle12.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; dataGridViewCellStyle12.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(58)))), ((int)(((byte)(70))))); dataGridViewCellStyle12.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); dataGridViewCellStyle12.ForeColor = System.Drawing.Color.White; dataGridViewCellStyle12.SelectionBackColor = System.Drawing.SystemColors.Highlight; dataGridViewCellStyle12.SelectionForeColor = System.Drawing.SystemColors.HighlightText; dataGridViewCellStyle12.WrapMode = System.Windows.Forms.DataGridViewTriState.True; this.dgvKiln.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle12; this.dgvKiln.ColumnHeadersHeight = 29; this.dgvKiln.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing; this.dgvKiln.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { this.dataGridViewTextBoxColumn1, this.kilnCode, this.kilnName}); this.dgvKiln.ColumnTreeView = null; this.dgvKiln.ContextMenuVisible = ((Dongke.IBOSS.PRD.Basics.BaseControls.C_DataGridView.ContextMenuVisibleFlags)((Dongke.IBOSS.PRD.Basics.BaseControls.C_DataGridView.ContextMenuVisibleFlags.Refine | Dongke.IBOSS.PRD.Basics.BaseControls.C_DataGridView.ContextMenuVisibleFlags.FileOut))); this.dgvKiln.Dock = System.Windows.Forms.DockStyle.Fill; this.dgvKiln.DynamicColumnName = ""; this.dgvKiln.EnableHeadersVisualStyles = false; this.dgvKiln.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.dgvKiln.FormatQuantityColumns = null; this.dgvKiln.HorizontalMergeColumn = null; this.dgvKiln.IsAutoCountSum = true; this.dgvKiln.IsAutoResizeColumns = false; this.dgvKiln.IsClickF12 = false; this.dgvKiln.IsOpenMergeCellFlag = false; this.dgvKiln.IsSubTotalFlag = false; this.dgvKiln.IsTopDeep = false; this.dgvKiln.Location = new System.Drawing.Point(0, 0); this.dgvKiln.Margin = new System.Windows.Forms.Padding(4); this.dgvKiln.MergeColumnNames = null; this.dgvKiln.MergeDetailColumnNames = null; this.dgvKiln.MergeDetailOnlyColumn = null; this.dgvKiln.MergeOnlyColumn = null; this.dgvKiln.Name = "dgvKiln"; this.dgvKiln.RefreshAtHscroll = false; this.dgvKiln.RowHeadersWidth = 50; this.dgvKiln.RowHeadersWidthSizeMode = System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode.DisableResizing; dataGridViewCellStyle13.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(159)))), ((int)(((byte)(39)))), ((int)(((byte)(39))))); this.dgvKiln.RowsDefaultCellStyle = dataGridViewCellStyle13; this.dgvKiln.RowTemplate.Height = 21; this.dgvKiln.Size = new System.Drawing.Size(989, 263); this.dgvKiln.SortOrderColumnName = null; this.dgvKiln.TabIndex = 55; this.dgvKiln.Tag = true; this.dgvKiln.TotalSumColumns = null; this.dgvKiln.ViewRowFilter = ""; this.dgvKiln.CellBeginEdit += new System.Windows.Forms.DataGridViewCellCancelEventHandler(this.dgvKiln_CellBeginEdit); this.dgvKiln.CellValueChanged += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvKiln_CellValueChanged); // // dataGridViewTextBoxColumn1 // this.dataGridViewTextBoxColumn1.DataPropertyName = "kilnID"; this.dataGridViewTextBoxColumn1.HeaderText = "kilnID"; this.dataGridViewTextBoxColumn1.MinimumWidth = 6; this.dataGridViewTextBoxColumn1.Name = "dataGridViewTextBoxColumn1"; this.dataGridViewTextBoxColumn1.ReadOnly = true; this.dataGridViewTextBoxColumn1.Visible = false; this.dataGridViewTextBoxColumn1.Width = 125; // // kilnCode // this.kilnCode.DataPropertyName = "kilnCode"; this.kilnCode.HeaderText = "窑炉"; this.kilnCode.MinimumWidth = 6; this.kilnCode.Name = "kilnCode"; this.kilnCode.Width = 125; // // kilnName // this.kilnName.DataPropertyName = "kilnName"; this.kilnName.HeaderText = "窑炉名称"; this.kilnName.MinimumWidth = 6; this.kilnName.Name = "kilnName"; this.kilnName.ReadOnly = true; this.kilnName.Width = 125; // // dataGridViewTextBoxColumn3 // this.dataGridViewTextBoxColumn3.HeaderText = "产品类别"; this.dataGridViewTextBoxColumn3.MinimumWidth = 6; this.dataGridViewTextBoxColumn3.Name = "dataGridViewTextBoxColumn3"; this.dataGridViewTextBoxColumn3.Width = 125; // // dataGridViewTextBoxColumn4 // this.dataGridViewTextBoxColumn4.HeaderText = "规格"; this.dataGridViewTextBoxColumn4.MinimumWidth = 6; this.dataGridViewTextBoxColumn4.Name = "dataGridViewTextBoxColumn4"; this.dataGridViewTextBoxColumn4.Width = 125; // // dataGridViewTextBoxColumn5 // this.dataGridViewTextBoxColumn5.HeaderText = "工号"; this.dataGridViewTextBoxColumn5.MinimumWidth = 6; this.dataGridViewTextBoxColumn5.Name = "dataGridViewTextBoxColumn5"; this.dataGridViewTextBoxColumn5.Width = 125; // // dataGridViewTextBoxColumn6 // this.dataGridViewTextBoxColumn6.HeaderText = "工号名称"; this.dataGridViewTextBoxColumn6.MinimumWidth = 6; this.dataGridViewTextBoxColumn6.Name = "dataGridViewTextBoxColumn6"; this.dataGridViewTextBoxColumn6.Width = 125; // // dataGridViewTextBoxColumn7 // this.dataGridViewTextBoxColumn7.HeaderText = "缺陷编码"; this.dataGridViewTextBoxColumn7.MinimumWidth = 6; this.dataGridViewTextBoxColumn7.Name = "dataGridViewTextBoxColumn7"; this.dataGridViewTextBoxColumn7.Width = 125; // // dataGridViewTextBoxColumn8 // this.dataGridViewTextBoxColumn8.HeaderText = "缺陷名称"; this.dataGridViewTextBoxColumn8.MinimumWidth = 6; this.dataGridViewTextBoxColumn8.Name = "dataGridViewTextBoxColumn8"; this.dataGridViewTextBoxColumn8.Width = 125; // // dataGridViewTextBoxColumn9 // this.dataGridViewTextBoxColumn9.HeaderText = "工种编码"; this.dataGridViewTextBoxColumn9.MinimumWidth = 6; this.dataGridViewTextBoxColumn9.Name = "dataGridViewTextBoxColumn9"; this.dataGridViewTextBoxColumn9.Width = 125; // // btnSave // this.btnSave.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.btnSave.BackColor = System.Drawing.Color.Transparent; this.btnSave.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnSave.BackgroundImage"))); this.btnSave.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.btnSave.ForeColor = System.Drawing.Color.White; this.btnSave.Location = new System.Drawing.Point(787, 579); this.btnSave.Margin = new System.Windows.Forms.Padding(4); this.btnSave.Name = "btnSave"; this.btnSave.Size = new System.Drawing.Size(113, 38); this.btnSave.TabIndex = 2; this.btnSave.Text = "保存"; this.btnSave.UseVisualStyleBackColor = false; this.btnSave.Click += new System.EventHandler(this.btnSave_Click); // // btnCancel // this.btnCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.btnCancel.BackColor = System.Drawing.Color.Transparent; this.btnCancel.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnCancel.BackgroundImage"))); this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; this.btnCancel.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.btnCancel.ForeColor = System.Drawing.Color.White; this.btnCancel.Location = new System.Drawing.Point(908, 579); this.btnCancel.Margin = new System.Windows.Forms.Padding(4); this.btnCancel.Name = "btnCancel"; this.btnCancel.Size = new System.Drawing.Size(113, 38); this.btnCancel.TabIndex = 3; this.btnCancel.Text = "取消"; this.btnCancel.UseVisualStyleBackColor = false; this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click); // // groupBox1 // this.groupBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.groupBox1.BackColor = System.Drawing.Color.Transparent; this.groupBox1.Controls.Add(this.groupBox8); this.groupBox1.Controls.Add(this.ddlPrintType); this.groupBox1.Controls.Add(this.c_Label6); this.groupBox1.Controls.Add(this.groupBox7); this.groupBox1.Controls.Add(this.txtBarCodePrintCopies); this.groupBox1.Controls.Add(this.c_Label5); this.groupBox1.Controls.Add(this.txtDisplayNo); this.groupBox1.Controls.Add(this.txtmisspriority); this.groupBox1.Controls.Add(this.lblDisplayNo); this.groupBox1.Controls.Add(this.c_Label4); this.groupBox1.Controls.Add(this.lblmisspriority); this.groupBox1.Controls.Add(this.groupBox4); this.groupBox1.Controls.Add(this.ddlProcessModelType); this.groupBox1.Controls.Add(this.txtProcedureName); this.groupBox1.Controls.Add(this.txtProcedureCode); this.groupBox1.Controls.Add(this.c_Label3); this.groupBox1.Controls.Add(this.c_Label2); this.groupBox1.Controls.Add(this.c_Label1); this.groupBox1.Controls.Add(this.GetDataOgrp); this.groupBox1.Controls.Add(this.groupBox6); this.groupBox1.Controls.Add(this.groupBox5); this.groupBox1.Controls.Add(this.groupBox2); this.groupBox1.Controls.Add(this.label1); this.groupBox1.Controls.Add(this.txtRemarks); this.groupBox1.Controls.Add(this.sbOrganizationID); this.groupBox1.Location = new System.Drawing.Point(16, 15); this.groupBox1.Margin = new System.Windows.Forms.Padding(4); this.groupBox1.Name = "groupBox1"; this.groupBox1.Padding = new System.Windows.Forms.Padding(4); this.groupBox1.Size = new System.Drawing.Size(1005, 231); this.groupBox1.TabIndex = 0; this.groupBox1.TabStop = false; this.groupBox1.Text = "基本属性"; // // groupBox8 // this.groupBox8.BackColor = System.Drawing.Color.Transparent; this.groupBox8.Controls.Add(this.rbtnGlazeNoChange); this.groupBox8.Controls.Add(this.rbtnGlazeChange); this.groupBox8.Location = new System.Drawing.Point(376, 58); this.groupBox8.Margin = new System.Windows.Forms.Padding(4); this.groupBox8.Name = "groupBox8"; this.groupBox8.Padding = new System.Windows.Forms.Padding(4); this.groupBox8.Size = new System.Drawing.Size(185, 68); this.groupBox8.TabIndex = 26; this.groupBox8.TabStop = false; this.groupBox8.Tag = ""; this.groupBox8.Text = "商标釉料"; // // rbtnGlazeNoChange // this.rbtnGlazeNoChange.AutoSize = true; this.rbtnGlazeNoChange.Location = new System.Drawing.Point(89, 29); this.rbtnGlazeNoChange.Margin = new System.Windows.Forms.Padding(4); this.rbtnGlazeNoChange.Name = "rbtnGlazeNoChange"; this.rbtnGlazeNoChange.Size = new System.Drawing.Size(88, 19); this.rbtnGlazeNoChange.TabIndex = 1; this.rbtnGlazeNoChange.Text = "不可变更"; this.rbtnGlazeNoChange.UseVisualStyleBackColor = true; // // rbtnGlazeChange // this.rbtnGlazeChange.AutoSize = true; this.rbtnGlazeChange.Checked = true; this.rbtnGlazeChange.Location = new System.Drawing.Point(8, 30); this.rbtnGlazeChange.Margin = new System.Windows.Forms.Padding(4); this.rbtnGlazeChange.Name = "rbtnGlazeChange"; this.rbtnGlazeChange.Size = new System.Drawing.Size(73, 19); this.rbtnGlazeChange.TabIndex = 0; this.rbtnGlazeChange.TabStop = true; this.rbtnGlazeChange.Text = "可变更"; this.rbtnGlazeChange.UseVisualStyleBackColor = true; // // ddlPrintType // this.ddlPrintType.BackColor = System.Drawing.SystemColors.Window; this.ddlPrintType.BackgroundColor = System.Drawing.SystemColors.Window; this.ddlPrintType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.ddlPrintType.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.ddlPrintType.FormattingEnabled = true; this.ddlPrintType.Location = new System.Drawing.Point(419, 167); this.ddlPrintType.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); this.ddlPrintType.Name = "ddlPrintType"; this.ddlPrintType.Size = new System.Drawing.Size(134, 23); this.ddlPrintType.TabIndex = 25; this.ddlPrintType.SelectedIndexChanged += new System.EventHandler(this.ddlPrintType_SelectedIndexChanged); // // c_Label6 // this.c_Label6.AutoSize = true; this.c_Label6.BackColor = System.Drawing.Color.Transparent; this.c_Label6.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.c_Label6.Location = new System.Drawing.Point(377, 172); this.c_Label6.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.c_Label6.Name = "c_Label6"; this.c_Label6.Size = new System.Drawing.Size(37, 15); this.c_Label6.TabIndex = 24; this.c_Label6.Text = "类型"; // // groupBox7 // this.groupBox7.BackColor = System.Drawing.Color.Transparent; this.groupBox7.Controls.Add(this.rbtnOutBarCode); this.groupBox7.Controls.Add(this.rbtnGBarcode); this.groupBox7.Location = new System.Drawing.Point(795, 129); this.groupBox7.Margin = new System.Windows.Forms.Padding(4); this.groupBox7.Name = "groupBox7"; this.groupBox7.Padding = new System.Windows.Forms.Padding(4); this.groupBox7.Size = new System.Drawing.Size(202, 68); this.groupBox7.TabIndex = 13; this.groupBox7.TabStop = false; this.groupBox7.Tag = ""; this.groupBox7.Text = "扫描条码类型"; // // rbtnOutBarCode // this.rbtnOutBarCode.AutoSize = true; this.rbtnOutBarCode.Location = new System.Drawing.Point(104, 30); this.rbtnOutBarCode.Margin = new System.Windows.Forms.Padding(4); this.rbtnOutBarCode.Name = "rbtnOutBarCode"; this.rbtnOutBarCode.Size = new System.Drawing.Size(88, 19); this.rbtnOutBarCode.TabIndex = 1; this.rbtnOutBarCode.Text = "包装条码"; this.rbtnOutBarCode.UseVisualStyleBackColor = true; // // rbtnGBarcode // this.rbtnGBarcode.AutoSize = true; this.rbtnGBarcode.Checked = true; this.rbtnGBarcode.Location = new System.Drawing.Point(8, 30); this.rbtnGBarcode.Margin = new System.Windows.Forms.Padding(4); this.rbtnGBarcode.Name = "rbtnGBarcode"; this.rbtnGBarcode.Size = new System.Drawing.Size(88, 19); this.rbtnGBarcode.TabIndex = 0; this.rbtnGBarcode.TabStop = true; this.rbtnGBarcode.Text = "注浆条码"; this.rbtnGBarcode.UseVisualStyleBackColor = true; // // txtBarCodePrintCopies // this.txtBarCodePrintCopies.AllowNegative = false; this.txtBarCodePrintCopies.BackColor = System.Drawing.SystemColors.Window; this.txtBarCodePrintCopies.BackgroundColor = System.Drawing.SystemColors.Window; this.txtBarCodePrintCopies.EditingControlFormattedValue = ""; this.txtBarCodePrintCopies.ErrorMessage = ""; this.txtBarCodePrintCopies.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.txtBarCodePrintCopies.ImeMode = System.Windows.Forms.ImeMode.Off; this.txtBarCodePrintCopies.Location = new System.Drawing.Point(271, 166); this.txtBarCodePrintCopies.Margin = new System.Windows.Forms.Padding(4); this.txtBarCodePrintCopies.MaxLength = 2; this.txtBarCodePrintCopies.MaxValue = new decimal(new int[] { 10, 0, 0, 0}); this.txtBarCodePrintCopies.MinValue = new decimal(new int[] { 0, 0, 0, 0}); this.txtBarCodePrintCopies.Name = "txtBarCodePrintCopies"; this.txtBarCodePrintCopies.Size = new System.Drawing.Size(90, 25); this.txtBarCodePrintCopies.TabIndex = 16; this.txtBarCodePrintCopies.TextValue = ""; this.txtBarCodePrintCopies.TextChanged += new System.EventHandler(this.txtBarCodePrintCopies_TextChanged); // // c_Label5 // this.c_Label5.AutoSize = true; this.c_Label5.BackColor = System.Drawing.Color.Transparent; this.c_Label5.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.c_Label5.Location = new System.Drawing.Point(196, 171); this.c_Label5.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.c_Label5.Name = "c_Label5"; this.c_Label5.Size = new System.Drawing.Size(67, 15); this.c_Label5.TabIndex = 15; this.c_Label5.Text = "打印份数"; // // txtDisplayNo // this.txtDisplayNo.AllowNegative = false; this.txtDisplayNo.BackColor = System.Drawing.SystemColors.Window; this.txtDisplayNo.BackgroundColor = System.Drawing.SystemColors.Window; this.txtDisplayNo.EditingControlFormattedValue = ""; this.txtDisplayNo.ErrorMessage = ""; this.txtDisplayNo.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.txtDisplayNo.ImeMode = System.Windows.Forms.ImeMode.Off; this.txtDisplayNo.Location = new System.Drawing.Point(100, 166); this.txtDisplayNo.Margin = new System.Windows.Forms.Padding(4); this.txtDisplayNo.MaxLength = 2; this.txtDisplayNo.MaxValue = new decimal(new int[] { 99, 0, 0, 0}); this.txtDisplayNo.MinValue = new decimal(new int[] { 0, 0, 0, 0}); this.txtDisplayNo.Name = "txtDisplayNo"; this.txtDisplayNo.Size = new System.Drawing.Size(87, 25); this.txtDisplayNo.TabIndex = 14; this.txtDisplayNo.TextValue = ""; // // txtmisspriority // this.txtmisspriority.AllowNegative = false; this.txtmisspriority.BackColor = System.Drawing.SystemColors.Window; this.txtmisspriority.BackgroundColor = System.Drawing.SystemColors.Window; this.txtmisspriority.EditingControlFormattedValue = ""; this.txtmisspriority.ErrorMessage = ""; this.txtmisspriority.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.txtmisspriority.ImeMode = System.Windows.Forms.ImeMode.Off; this.txtmisspriority.Location = new System.Drawing.Point(100, 132); this.txtmisspriority.Margin = new System.Windows.Forms.Padding(4); this.txtmisspriority.MaxLength = 1; this.txtmisspriority.MaxValue = new decimal(new int[] { 9, 0, 0, 0}); this.txtmisspriority.MinValue = new decimal(new int[] { 0, 0, 0, 0}); this.txtmisspriority.Name = "txtmisspriority"; this.txtmisspriority.Size = new System.Drawing.Size(87, 25); this.txtmisspriority.TabIndex = 14; this.txtmisspriority.TextValue = ""; // // lblDisplayNo // this.lblDisplayNo.AutoSize = true; this.lblDisplayNo.BackColor = System.Drawing.Color.Transparent; this.lblDisplayNo.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.lblDisplayNo.Location = new System.Drawing.Point(21, 170); this.lblDisplayNo.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.lblDisplayNo.Name = "lblDisplayNo"; this.lblDisplayNo.Size = new System.Drawing.Size(67, 15); this.lblDisplayNo.TabIndex = 13; this.lblDisplayNo.Text = "显示顺序"; // // c_Label4 // this.c_Label4.AutoSize = true; this.c_Label4.BackColor = System.Drawing.Color.Transparent; this.c_Label4.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.c_Label4.ForeColor = System.Drawing.Color.Blue; this.c_Label4.Location = new System.Drawing.Point(192, 138); this.c_Label4.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.c_Label4.Name = "c_Label4"; this.c_Label4.Size = new System.Drawing.Size(232, 15); this.c_Label4.TabIndex = 13; this.c_Label4.Text = "(同级别排序大的优先记录漏扫)"; // // lblmisspriority // this.lblmisspriority.AutoSize = true; this.lblmisspriority.BackColor = System.Drawing.Color.Transparent; this.lblmisspriority.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.lblmisspriority.Location = new System.Drawing.Point(5, 138); this.lblmisspriority.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.lblmisspriority.Name = "lblmisspriority"; this.lblmisspriority.Size = new System.Drawing.Size(82, 15); this.lblmisspriority.TabIndex = 13; this.lblmisspriority.Text = "漏扫排序号"; // // groupBox4 // this.groupBox4.BackColor = System.Drawing.Color.Transparent; this.groupBox4.Controls.Add(this.radioJobsPrice); this.groupBox4.Controls.Add(this.radioNotPrice); this.groupBox4.Enabled = false; this.groupBox4.Location = new System.Drawing.Point(795, 58); this.groupBox4.Margin = new System.Windows.Forms.Padding(4); this.groupBox4.Name = "groupBox4"; this.groupBox4.Padding = new System.Windows.Forms.Padding(4); this.groupBox4.Size = new System.Drawing.Size(202, 68); this.groupBox4.TabIndex = 12; this.groupBox4.TabStop = false; this.groupBox4.Tag = ""; this.groupBox4.Text = "撤销计件"; this.groupBox4.Visible = false; // // radioJobsPrice // this.radioJobsPrice.AutoSize = true; this.radioJobsPrice.Checked = true; this.radioJobsPrice.Location = new System.Drawing.Point(89, 31); this.radioJobsPrice.Margin = new System.Windows.Forms.Padding(4); this.radioJobsPrice.Name = "radioJobsPrice"; this.radioJobsPrice.Size = new System.Drawing.Size(88, 19); this.radioJobsPrice.TabIndex = 1; this.radioJobsPrice.TabStop = true; this.radioJobsPrice.Text = "不能撤销"; this.radioJobsPrice.UseVisualStyleBackColor = true; // // radioNotPrice // this.radioNotPrice.AutoSize = true; this.radioNotPrice.Location = new System.Drawing.Point(8, 31); this.radioNotPrice.Margin = new System.Windows.Forms.Padding(4); this.radioNotPrice.Name = "radioNotPrice"; this.radioNotPrice.Size = new System.Drawing.Size(73, 19); this.radioNotPrice.TabIndex = 0; this.radioNotPrice.Text = "能撤销"; this.radioNotPrice.UseVisualStyleBackColor = true; // // ddlProcessModelType // this.ddlProcessModelType.BackColor = System.Drawing.Color.Yellow; this.ddlProcessModelType.BackgroundColor = System.Drawing.SystemColors.Window; this.ddlProcessModelType.DataSource = null; this.ddlProcessModelType.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.ddlProcessModelType.FormattingEnabled = true; this.ddlProcessModelType.IsMustInput = true; // // // this.ddlProcessModelType.ListBox.Dock = System.Windows.Forms.DockStyle.Fill; this.ddlProcessModelType.ListBox.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.ddlProcessModelType.ListBox.Location = new System.Drawing.Point(0, 0); this.ddlProcessModelType.ListBox.Name = ""; this.ddlProcessModelType.ListBox.Size = new System.Drawing.Size(141, 136); this.ddlProcessModelType.ListBox.TabIndex = 0; this.ddlProcessModelType.ListBox.SelectedIndexChanged += new System.EventHandler(this.cobProcessModelType_SelectedIndexChanged); this.ddlProcessModelType.Location = new System.Drawing.Point(548, 25); this.ddlProcessModelType.Margin = new System.Windows.Forms.Padding(4); this.ddlProcessModelType.Name = "ddlProcessModelType"; this.ddlProcessModelType.Size = new System.Drawing.Size(143, 23); this.ddlProcessModelType.TabIndex = 5; this.ddlProcessModelType.SelectedIndexChanged += new System.EventHandler(this.ddlProcessModelType_SelectedIndexChanged); // // groupBox6 // this.groupBox6.BackColor = System.Drawing.Color.Transparent; this.groupBox6.Controls.Add(this.rbtnAuto); this.groupBox6.Controls.Add(this.rbtnHand); this.groupBox6.Location = new System.Drawing.Point(569, 129); this.groupBox6.Margin = new System.Windows.Forms.Padding(4); this.groupBox6.Name = "groupBox6"; this.groupBox6.Padding = new System.Windows.Forms.Padding(4); this.groupBox6.Size = new System.Drawing.Size(218, 68); this.groupBox6.TabIndex = 11; this.groupBox6.TabStop = false; this.groupBox6.Tag = ""; this.groupBox6.Text = "交坯模式"; // // rbtnAuto // this.rbtnAuto.AutoSize = true; this.rbtnAuto.Checked = true; this.rbtnAuto.Location = new System.Drawing.Point(141, 30); this.rbtnAuto.Margin = new System.Windows.Forms.Padding(4); this.rbtnAuto.Name = "rbtnAuto"; this.rbtnAuto.Size = new System.Drawing.Size(58, 19); this.rbtnAuto.TabIndex = 1; this.rbtnAuto.TabStop = true; this.rbtnAuto.Text = "自动"; this.rbtnAuto.UseVisualStyleBackColor = true; // // rbtnHand // this.rbtnHand.AutoSize = true; this.rbtnHand.Location = new System.Drawing.Point(36, 30); this.rbtnHand.Margin = new System.Windows.Forms.Padding(4); this.rbtnHand.Name = "rbtnHand"; this.rbtnHand.Size = new System.Drawing.Size(58, 19); this.rbtnHand.TabIndex = 0; this.rbtnHand.Text = "手动"; this.rbtnHand.UseVisualStyleBackColor = true; // // sbOrganizationID // this.sbOrganizationID.BackColor = System.Drawing.Color.Transparent; this.sbOrganizationID.CurrentUserOrganizationCode = null; this.sbOrganizationID.DataSource = null; this.sbOrganizationID.Enabled = true; this.sbOrganizationID.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.sbOrganizationID.IsMustInput = true; this.sbOrganizationID.IsOnlyDisplayEnd = false; this.sbOrganizationID.Location = new System.Drawing.Point(700, 25); this.sbOrganizationID.Margin = new System.Windows.Forms.Padding(5); this.sbOrganizationID.Name = "sbOrganizationID"; this.sbOrganizationID.OrganizationCode = ""; this.sbOrganizationID.OrganizationIDS = null; this.sbOrganizationID.OrganizationName = ""; this.sbOrganizationID.PurviewType = ((byte)(0)); this.sbOrganizationID.Size = new System.Drawing.Size(288, 26); this.sbOrganizationID.TabIndex = 6; this.sbOrganizationID.TxtOrganizationBackColor = System.Drawing.SystemColors.Control; // // F_PC_0207 // this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 15F); this.BackColor = System.Drawing.SystemColors.Control; this.CancelButton = this.btnCancel; this.ClientSize = new System.Drawing.Size(1037, 648); this.Controls.Add(this.btnCancel); this.Controls.Add(this.btnSave); this.Controls.Add(this.groupBox3); this.Controls.Add(this.groupBox1); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; this.IsSaveFormSize = false; this.Margin = new System.Windows.Forms.Padding(7, 6, 7, 6); this.MaximizeBox = false; this.MinimizeBox = false; this.Name = "F_PC_0207"; this.ShowInTaskbar = false; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.StatusSizingGrip = false; this.Text = "计件属性"; this.Load += new System.EventHandler(this.F_PC_0207_Load); this.Controls.SetChildIndex(this.groupBox1, 0); this.Controls.SetChildIndex(this.groupBox3, 0); this.Controls.SetChildIndex(this.btnSave, 0); this.Controls.SetChildIndex(this.btnCancel, 0); this.GetDataOgrp.ResumeLayout(false); this.GetDataOgrp.PerformLayout(); this.groupBox5.ResumeLayout(false); this.groupBox5.PerformLayout(); this.groupBox2.ResumeLayout(false); this.groupBox2.PerformLayout(); this.groupBox3.ResumeLayout(false); this.tabControl.ResumeLayout(false); this.tabPage1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.dgvGoods)).EndInit(); this.tabPage2.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.dgvUser)).EndInit(); this.tabPage3.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.dgvDefect)).EndInit(); this.tabPage4.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.dgvKiln)).EndInit(); this.groupBox1.ResumeLayout(false); this.groupBox1.PerformLayout(); this.groupBox8.ResumeLayout(false); this.groupBox8.PerformLayout(); this.groupBox7.ResumeLayout(false); this.groupBox7.PerformLayout(); this.groupBox4.ResumeLayout(false); this.groupBox4.PerformLayout(); this.groupBox6.ResumeLayout(false); this.groupBox6.PerformLayout(); this.ResumeLayout(false); this.PerformLayout(); } #endregion #region 共有方法 /// /// 填充节点信息到窗口中 /// public void FormContentInit() { this._procedureEntity = (ProcedureEntity)this.node.TagNonSerialized; } #endregion #region 事件 /// /// 画面加载 /// /// /// private void F_PC_0207_Load(object sender, EventArgs e) { try { if (IsReadOnlyCode) { //this.txtProcedureCode.ReadOnly = true; } #region 数据加载 this.dgvGoods.AutoGenerateColumns = false; this.dgvUser.AutoGenerateColumns = false; this.dgvDefect.AutoGenerateColumns = false; this.dgvKiln.AutoGenerateColumns = false; // 加载产品列表的结构 this.dgvGoods.DataSource = this._procedureEntity.ProcedureGoodsTable.Copy(); this.dgvGoods.IsSetInputColumnsColor = true; // 加载操作工号表 this.dgvUser.DataSource = this._procedureEntity.ProcedureUserTable.Copy(); this.dgvUser.IsSetInputColumnsColor = true; // 加载缺陷 this.dgvDefect.DataSource = this._procedureEntity.DefectProcedureJobsTable.Copy(); this.dgvDefect.IsSetInputColumnsColor = true; // 加载操作窑炉表 this.dgvKiln.DataSource = this._procedureEntity.ProcedureKilnTable.Copy(); this.dgvKiln.IsSetInputColumnsColor = true; // 加载缺陷下拉用的数据 //_defectDt = SystemModuleProxy.Service.GetDefect().Tables[0]; //this.DefectID.DisplayMember = "CodeName"; //this.DefectID.ValueMember = "DefectID"; //this.DefectID.DataSource = _defectDt; // 加载工种下拉用的数据 //_JobsDt = SystemModuleProxy.Service.GetJobs().Tables[0]; //this.JobsID.DisplayMember = "CodeName"; //this.JobsID.ValueMember = "JobsID"; //this.JobsID.DataSource = _JobsDt; this.ddlProcessModelType.DisplayMember = "ProcedureModelTypeName"; this.ddlProcessModelType.ValueMember = "ProcedureModelTypeID"; DataTable dtModelType = LogInUserInfo.CurrentUser.GetSystemParameterByName(Constant.SysCacheTable.TP_SYS_ProcedureModelType);//SystemModuleProxy.Service.GetSYSProcessModelType(); this.ddlProcessModelType.DataSource = dtModelType.Select("ProcedureModelTypeID>=0 and Valueflag=1").CopyToDataTable(); //加载 打印类型 xuwei begin 2019-11-20 this.ddlPrintType.DisplayMember = "PRINTTYPENAME"; this.ddlPrintType.ValueMember = "PRINTTYPEID"; ClientRequestEntity cre = new ClientRequestEntity(); cre.NameSpace = "PrintInfo"; cre.Name = "GetPrintType"; DataTable dtPrintType = SystemModuleProxy.Service.DoBarCodePrint(cre).Data.Tables[0]; DataRow dr = dtPrintType.NewRow(); dr["PRINTTYPENAME"] = "无"; dr["PRINTTYPEID"] = "0"; dtPrintType.Rows.InsertAt(dr, 0); this.ddlPrintType.DataSource = dtPrintType; //加载 打印类型 xuwei end #endregion #region 窗体赋值 if (string.IsNullOrEmpty(this._procedureEntity.ProcedureCode)) { this.txtProcedureCode.Text = this._procedureEntity.NodeNo + ""; this._procedureEntity.ProcedureCode = this._procedureEntity.NodeNo + ""; } else { this.txtProcedureCode.Text = this._procedureEntity.ProcedureCode; } this.txtProcedureName.Text = this.node.Name; this.txtRemarks.Text = this._procedureEntity.Remarks; this.txtBarCodePrintCopies.DataValue = this._procedureEntity.BarCodePrintCopies; this.ddlProcessModelType.ListBox.SelectedValue = this._procedureEntity.ModelType; // 不是重复代码。必须要赋值2行 this.ddlProcessModelType.ListBox.SelectedValue = this._procedureEntity.ModelType; this.sbOrganizationID.OrganizationID = this._procedureEntity.OrganizationID; this.rbtnOne.Checked = (this._procedureEntity.CollectType == Constant.ProcedureCollectType.SinglePoint.GetHashCode()); this.rbtnMore.Checked = (this._procedureEntity.CollectType == Constant.ProcedureCollectType.Togather.GetHashCode()); this.rBtnNeed.Checked = (this._procedureEntity.MustFlag == Constant.ProcedureMustFlag.Yes.GetHashCode()); this.rBtnNoNeed.Checked = (this._procedureEntity.MustFlag == Constant.ProcedureMustFlag.NonMust.GetHashCode()); this.rbtnSpecialReworkProcess.Checked = (this._procedureEntity.IsSpecialRework == Constant.SpecialReworkFlag.Yes.GetHashCode()); //xuwei add 2019-10-14 this.rbtnSpecialSemireProcess.Checked = (this._procedureEntity.IsSemireWork == Constant.SpecialReworkFlag.Yes.GetHashCode()); //xuwei add 2019-11-20 this.ddlPrintType.SelectedValue = this._procedureEntity.PrintType; //xuwei add 2020-01-02 this.rbtnGlazeChange.Checked = (this._procedureEntity.IsGlazeChange == 1); this.rbtnGlazeNoChange.Checked = (this._procedureEntity.IsGlazeChange == 0); if (this._procedureEntity.ModelType == Convert.ToInt32(Constant.ProcedureModelType.Normal) && rbtnMore.Checked ) { groupBox8.Visible = true; } else { groupBox8.Visible = false; } //this.radioJobsPrice.Checked = (this._procedureEntity.PieceType == Constant.ProcedurePieceType.JobsPiece.GetHashCode()); //this.radioNotPrice.Checked = (this._procedureEntity.PieceType == Constant.ProcedurePieceType.NoPiece.GetHashCode()); if (this._procedureEntity.UnDo == 0) { this.radioJobsPrice.Checked = true; } else { this.radioNotPrice.Checked = true; } if (this._procedureEntity.DeliverType == 0) { this.rbtnHand.Checked = true; } else { this.rbtnAuto.Checked = true; } if (this._procedureEntity.BarCodeFlag == 0) { this.rbtnGBarcode.Checked = true; } else { this.rbtnOutBarCode.Checked = true; } #endregion this.txtmisspriority.Text = this._procedureEntity.MissPriority.ToString(); this.txtDisplayNo.Text = this._procedureEntity.DisplayNo.ToString(); } catch (Exception ex) { // 对异常进行共通处理 ExceptionManager.HandleEventException(this.ToString(), System.Reflection.MethodBase.GetCurrentMethod().Name, this.Text, ex); } } /// /// 点击取消 关闭窗口 /// /// /// private void btn_Save_Click(object sender, System.EventArgs e) { } private void button1_Click(object sender, EventArgs e) { if (string.IsNullOrEmpty(this.txtProcedureCode.Text.Trim())) { MessageBox.Show("工序编码为必填项!", "Error"); this.txtProcedureCode.Focus(); return; } if (string.IsNullOrEmpty(this.txtProcedureName.Text.Trim())) { MessageBox.Show("工序名称为必填项!", "Error"); this.txtProcedureName.Focus(); return; } if ((int)this.ddlProcessModelType.SelectedValue == 5 && this.rbtnSpecialReworkProcess.Checked) { MessageBox.Show("工序类别为交坯工序时,不能为特殊返工工序!", "Error"); this.ddlProcessModelType.Focus(); return; } if ((int)this.ddlProcessModelType.SelectedValue == 0) { MessageBox.Show("组织机构为必填项!", "Error"); this.ddlProcessModelType.Focus(); return; } this._procedureEntity.ProcedureCode = this.txtProcedureCode.Text.Trim(); this.node.Name = this.txtProcedureName.Text.Trim(); this._procedureEntity.Remarks = this.txtRemarks.Text.Trim(); this._procedureEntity.ModelType = (int)ddlProcessModelType.SelectedValue; //this.node.OrganizationID = this.cobOrganizationID.SelectedIndex; this._procedureEntity.CollectType = this.rbtnOne.Checked ? 2 : 1; this._procedureEntity.MustFlag = this.rBtnNeed.Checked ? 1 : 0; this._procedureEntity.IsSpecialRework = this.rbtnSpecialReworkProcess.Checked ? 1 : 0; //xuwei add 2019-10-17 this._procedureEntity.IsSemireWork = this.rbtnSpecialSemireProcess.Checked ? 1 : 0; //xuwei add 2019-11-20 this._procedureEntity.PrintType = Convert.ToInt32(this.ddlPrintType.SelectedValue); //xuwei add 2020-01-02 this._procedureEntity.IsGlazeChange = Convert.ToInt32(this.rbtnGlazeChange.Checked ? 1 : 0); this.Close(); } /// /// 改变工序类型后控制输入属性 /// /// /// private void cobProcessModelType_SelectedIndexChanged(object sender, EventArgs e) { int selectValue = Convert.ToInt32(ddlProcessModelType.SelectedValue); if (Convert.ToInt32(ddlProcessModelType.SelectedValue) == Convert.ToInt32(Dongke.IBOSS.PRD.Basics.BaseResources.Constant.ProcedureModelType.LoadCar) || Convert.ToInt32(ddlProcessModelType.SelectedValue) == Convert.ToInt32(Dongke.IBOSS.PRD.Basics.BaseResources.Constant.ProcedureModelType.IntoKiln) || Convert.ToInt32(ddlProcessModelType.SelectedValue) == Convert.ToInt32(Dongke.IBOSS.PRD.Basics.BaseResources.Constant.ProcedureModelType.OutKiln) || Convert.ToInt32(ddlProcessModelType.SelectedValue) == Convert.ToInt32(Dongke.IBOSS.PRD.Basics.BaseResources.Constant.ProcedureModelType.UnloadCar) || Convert.ToInt32(ddlProcessModelType.SelectedValue) == Convert.ToInt32(Dongke.IBOSS.PRD.Basics.BaseResources.Constant.ProcedureModelType.CarAdd)) { this.tabPage4.Parent = this.tabControl; } else { this.tabPage4.Parent = null; } if (this.ddlProcessModelType.SelectedValue.ToString() == "0" && (this._procedureEntity.NodeType != (int)Constant.ProcedureNodeType.End)) { groupBox4.Enabled = true; groupBox4.Visible = true; } else { groupBox4.Enabled = false; groupBox4.Visible = false; radioJobsPrice.Checked = true; } // 只有交坯才显示 if (Convert.ToInt32(ddlProcessModelType.SelectedValue) == Convert.ToInt32(Dongke.IBOSS.PRD.Basics.BaseResources.Constant.ProcedureModelType.DeliverMud)) { groupBox6.Enabled = true; groupBox6.Visible = true; } else { groupBox6.Enabled = false; groupBox6.Visible = false; rbtnAuto.Checked = true; } if (Convert.ToInt32(ddlProcessModelType.SelectedValue) == Convert.ToInt32(Dongke.IBOSS.PRD.Basics.BaseResources.Constant.ProcedureModelType.Normal)) { this.groupBox7.Visible = true; //xuwei add 2020-01-02 groupBox8.Visible = rbtnMore.Checked; } else { this.groupBox7.Visible = false; rbtnGBarcode.Checked = true; //xuwei add 2020-01-02 groupBox8.Visible = false; } //干补 if (selectValue == Convert.ToInt32(Dongke.IBOSS.PRD.Basics.BaseResources.Constant.ProcedureModelType.SpecialRepair)) { groupBox2.Visible = false; groupBox5.Visible = false; rBtnNeed.Checked = true; //xuwei fix 2019-10-14 //rbtnNoSpecialReworkProcess.Checked = true; rbtnSpecialReworkProcess.Checked = false; } else { groupBox2.Visible = true; groupBox5.Visible = true; } // 回收 if (selectValue == Convert.ToInt32(Dongke.IBOSS.PRD.Basics.BaseResources.Constant.ProcedureModelType.Recovery)) { //groupBox2.Visible = false; groupBox5.Visible = false; rBtnNeed.Checked = true; //xuwei fix 2019-10-15 //rbtnNoSpecialReworkProcess.Checked = true; rbtnSpecialReworkProcess.Checked = false; rBtnNeed.Enabled = false; rBtnNoNeed.Enabled = false; } else { groupBox2.Visible = true; if (this.ddlProcessModelType.SelectedValue.ToString() == "0" && (this._procedureEntity.NodeType != (int)Constant.ProcedureNodeType.End)) { groupBox5.Visible = true; } else { groupBox5.Visible = false; //xuwei fix 2019-10-14 //rbtnNoSpecialReworkProcess.Checked = true; //rbtnSpecialReworkProcess.Checked = true; } rBtnNeed.Enabled = true; rBtnNoNeed.Enabled = true; if (Convert.ToInt32(ddlProcessModelType.SelectedValue) == Convert.ToInt32(Dongke.IBOSS.PRD.Basics.BaseResources.Constant.ProcedureModelType.LoadCar) || Convert.ToInt32(ddlProcessModelType.SelectedValue) == Convert.ToInt32(Dongke.IBOSS.PRD.Basics.BaseResources.Constant.ProcedureModelType.IntoKiln) || Convert.ToInt32(ddlProcessModelType.SelectedValue) == Convert.ToInt32(Dongke.IBOSS.PRD.Basics.BaseResources.Constant.ProcedureModelType.OutKiln) || Convert.ToInt32(ddlProcessModelType.SelectedValue) == Convert.ToInt32(Dongke.IBOSS.PRD.Basics.BaseResources.Constant.ProcedureModelType.UnloadCar) || Convert.ToInt32(ddlProcessModelType.SelectedValue) == Convert.ToInt32(Dongke.IBOSS.PRD.Basics.BaseResources.Constant.ProcedureModelType.DeliverMud) || Convert.ToInt32(ddlProcessModelType.SelectedValue) == Convert.ToInt32(Dongke.IBOSS.PRD.Basics.BaseResources.Constant.ProcedureModelType.SpecialRepair)) { rBtnNeed.Checked = true; rBtnNeed.Enabled = false; rBtnNoNeed.Enabled = false; } } //// 标准计件、交坯 //if ((int)ddlProcessModelType.SelectedValue == (int)ProcedureModelType.Normal // || (int)ddlProcessModelType.SelectedValue == (int)ProcedureModelType.DeliverAdobe) //{ // this.chkBarcode.Checked = true; // this.chkBarcode.Enabled = false; // this.chkCarCode.Checked = false; // this.chkCarCode.Enabled = false; // this.chkCarLocation.Checked = false; // this.chkCarLocation.Enabled = false; //} //// 装窑车 //else if ((int)ddlProcessModelType.SelectedValue == (int)ProcedureModelType.LoadCar) //{ // this.chkBarcode.Checked = true; // this.chkBarcode.Enabled = false; // this.chkCarCode.Checked = true; // this.chkCarCode.Enabled = false; // this.chkCarLocation.Checked = true; // this.chkCarLocation.Enabled = false; //} //// 入窑、出窑、卸窑车 //else if ((int)ddlProcessModelType.SelectedValue == (int)ProcedureModelType.IntoKiln // || (int)ddlProcessModelType.SelectedValue == (int)ProcedureModelType.OutKiln // || (int)ddlProcessModelType.SelectedValue == (int)ProcedureModelType.UnloadCar) //{ // this.chkBarcode.Checked = false; // this.chkBarcode.Enabled = false; // this.chkCarCode.Checked = true; // this.chkCarCode.Enabled = false; // this.chkCarLocation.Checked = false; // this.chkCarLocation.Enabled = false; //} } /// /// 产品编码值改变事件 /// /// /// private void dgvGoods_CellValueChanged(object sender, DataGridViewCellEventArgs e) { try { if (this.dgvGoods.Rows.Count <= 1 || !_ShowFlag) { return; } DataGridViewRow rowItem = this.dgvGoods.Rows[e.RowIndex]; DataGridViewColumn columnItem = this.dgvGoods.Columns[e.ColumnIndex]; // 用编号获取产品信息 if ("GoodsCode".Equals(columnItem.Name)) { _ShowFlag = false; FormUtility.BindGoodsRowDataSource(this.dgvGoods, e.RowIndex, columnItem.Name, _goodsCodeValue); // 设置可输入单元格的颜色 this.dgvGoods.IsSetInputColumnsColor = true; } _ShowFlag = true; } catch (Exception ex) { // 对异常进行共通处理 ExceptionManager.HandleEventException(this.ToString(), System.Reflection.MethodBase.GetCurrentMethod().Name, this.Text, ex); } } /// /// 单元格编辑时 /// /// /// private void dgvGoods_CellBeginEdit(object sender, DataGridViewCellCancelEventArgs e) { try { if (this.dgvGoods.Rows.Count <= 1) { return; } DataGridViewColumn columnItem = this.dgvGoods.Columns[e.ColumnIndex]; if ("GoodsCode".Equals(columnItem.Name)) { _goodsCodeValue = this.dgvGoods.Rows[e.RowIndex].Cells[columnItem.Name].Value + ""; } } catch (Exception ex) { // 对异常进行共通处理 ExceptionManager.HandleEventException(this.ToString(), System.Reflection.MethodBase.GetCurrentMethod().Name, this.Text, ex); } } /// /// 加载控件 /// /// /// private void dgvUser_EditingControlShowing(object sender, DataGridViewEditingControlShowingEventArgs e) { //C_DGV_DropDownList ddl = e.Control as C_DGV_DropDownList; //if (ddl != null) //{ // ddl.DisplayMember = "CodeName"; // ddl.ValueMember = "UserID"; // ddl.DataSource = _userDt; // ListBox listbox = ddl.lstPrompt; // Rectangle rect = this.dgvUser.GetCellDisplayRectangle(dgvUser.CurrentCell.ColumnIndex, dgvUser.CurrentCell.RowIndex, true); // listbox.Left = rect.Left; // listbox.Top = rect.Top + dgvUser.CurrentCell.Size.Height; // listbox.Width = listbox.Width; // listbox.Height = listbox.Height; // listbox.Visible = true; // this.dgvUser.Controls.Add(listbox); //} } /// /// 加载控件 /// /// /// private void dgvDefect_EditingControlShowing(object sender, DataGridViewEditingControlShowingEventArgs e) { //C_DGV_DropDownList ddl = e.Control as C_DGV_DropDownList; //if (ddl != null) //{ // string columnName = this.dgvDefect.Columns[this.dgvDefect.CurrentCell.ColumnIndex].Name; // if (columnName == "DutyJobsID") // { // ddl.DisplayMember = "CodeName"; // ddl.ValueMember = "JobsID"; // ddl.DataSource = _JobsDt; // } // else // { // ddl.DisplayMember = "CodeName"; // ddl.ValueMember = "DefectID"; // ddl.DataSource = _defectDt; // } // ListBox listbox = ddl.lstPrompt; // Rectangle rect = this.dgvDefect.GetCellDisplayRectangle(dgvDefect.CurrentCell.ColumnIndex, dgvDefect.CurrentCell.RowIndex, true); // listbox.Left = rect.Left; // listbox.Top = rect.Top + dgvDefect.CurrentCell.Size.Height; // listbox.Width = listbox.Width; // listbox.Height = listbox.Height; // listbox.Visible = true; // this.Controls.Add(listbox); //} } /// /// 保存 /// /// /// private void btnSave_Click(object sender, EventArgs e) { try { #region 校验 #region 非空校验 if (string.IsNullOrEmpty(this.txtProcedureCode.Text.Trim())) { MessageBox.Show(string.Format(Messages.MSG_CMN_W005, "工序编码"), this.Text, MessageBoxButtons.OK, MessageBoxIcon.Warning); this.txtProcedureCode.Focus(); return; } if (string.IsNullOrEmpty(this.txtProcedureName.Text.Trim())) { MessageBox.Show(string.Format(Messages.MSG_CMN_W005, "工序名称"), this.Text, MessageBoxButtons.OK, MessageBoxIcon.Warning); this.txtProcedureName.Focus(); return; } if (string.IsNullOrEmpty(this.ddlProcessModelType.Text.Trim())) { MessageBox.Show(string.Format(Messages.MSG_CMN_W005, "工序类型"), this.Text, MessageBoxButtons.OK, MessageBoxIcon.Warning); this.ddlProcessModelType.Focus(); return; } if (this.ddlProcessModelType.SelectedValue.ToString() == "8" && rbtnSpecialReworkProcess.Checked) { MessageBox.Show(string.Format("干补不能成为返工工序", "特定返工工序"), this.Text, MessageBoxButtons.OK, MessageBoxIcon.Warning); this.rbtnSpecialReworkProcess.Focus(); return; } if (sbOrganizationID.OrganizationID == null) { MessageBox.Show(string.Format(Messages.MSG_CMN_W005, "组织机构"), this.Text, MessageBoxButtons.OK, MessageBoxIcon.Warning); this.sbOrganizationID.Focus(); return; } #endregion #region 规则检验 // 查询节点编码在本生产线中不重复 int itemID = this.node.ItemID; bool isError = false; foreach (FlowNode flownode in this.control.AllNodes) { if (flownode.ItemID != itemID && flownode.Code == this.txtProcedureCode.Text.Trim()) { isError = true; break; } } if (isError) { MessageBox.Show("工序编码在本生产线中已经存在!", this.Text, MessageBoxButtons.OK, MessageBoxIcon.Warning); this.txtProcedureCode.Focus(); return; } //int count = this.control.drawObject.arrNodeList.OfType().Where( // p => p.ProcedureEntity.ProcedureCode == this.txtProcedureCode.Text.Trim() // && p.NodeListIndex != this.node.NodeListIndex // ).Count(); //if (count > 0) //{ // MessageBox.Show("工序编码在本生产线中已经存在!", // this.Text, // MessageBoxButtons.OK, // MessageBoxIcon.Warning); // this.txtProcedureCode.Focus(); // return; //} #endregion #region 产品校验 if (this.dgvGoods.Rows.Count <= 1) { MessageBox.Show(string.Format(Messages.MSG_CMN_W005, "生产产品"), this.Text, MessageBoxButtons.OK, MessageBoxIcon.Warning); this.tabControl.SelectedIndex = 0; this.dgvGoods.Focus(); return; } // 验证明细是否输入完整 foreach (DataGridViewRow row in this.dgvGoods.Rows) { if (row.IsNewRow) { continue; } // 产品编码 if (string.IsNullOrEmpty(row.Cells["GoodsID"].Value + "")) { MessageBox.Show(string.Format(Messages.MSG_CMN_W005, "产品编码"), this.Text, MessageBoxButtons.OK, MessageBoxIcon.Warning); this.tabControl.SelectedIndex = 0; row.Cells["GoodsCode"].Selected = true; return; } } #endregion #region 生产工号 if (this.dgvUser.Rows.Count <= 1) { MessageBox.Show(string.Format(Messages.MSG_CMN_W005, "操作工号"), this.Text, MessageBoxButtons.OK, MessageBoxIcon.Warning); this.tabControl.SelectedIndex = 1; this.dgvUser.Focus(); return; } // 验证明细是否输入完整 for (int i = 0; i < this.dgvUser.Rows.Count; i++) { if (this.dgvUser.Rows[i].IsNewRow) { continue; } // 生产工号 if (string.IsNullOrEmpty(this.dgvUser.Rows[i].Cells["UserID"].Value + "")) { MessageBox.Show(string.Format(Messages.MSG_CMN_W005, "生产工号"), this.Text, MessageBoxButtons.OK, MessageBoxIcon.Warning); this.tabControl.SelectedIndex = 1; this.dgvUser.Rows[i].Cells["UserID"].Selected = true; return; } // 2层循环判断是否有重复的工号 for (int j = i + 1; j < this.dgvUser.Rows.Count; j++) { if (this.dgvUser.Rows[i].Cells["UserID"].Value + "" == this.dgvUser.Rows[j].Cells["UserID"].Value + "") { MessageBox.Show("生产工号在列表中重复出现。", this.Text, MessageBoxButtons.OK, MessageBoxIcon.Warning); this.tabControl.SelectedIndex = 1; this.dgvUser.Rows[i].Cells["UserID"].Selected = true; return; } } } #endregion #region 存在缺陷对应责任工种 // 验证明细是否输入完整 for (int i = 0; i < this.dgvDefect.Rows.Count; i++) { if (this.dgvDefect.Rows[i].IsNewRow) { continue; } // 存在缺陷不能为空 if (string.IsNullOrEmpty(this.dgvDefect.Rows[i].Cells["DefectID"].Value + "")) { MessageBox.Show(string.Format(Messages.MSG_CMN_W005, "缺陷"), this.Text, MessageBoxButtons.OK, MessageBoxIcon.Warning); this.tabControl.SelectedIndex = 2; this.dgvDefect.Rows[i].Cells["DefectID"].Selected = true; return; } // 责任工种不能为空 if (string.IsNullOrEmpty(this.dgvDefect.Rows[i].Cells["JobsID"].Value + "")) { MessageBox.Show(string.Format(Messages.MSG_CMN_W005, "责任工种"), this.Text, MessageBoxButtons.OK, MessageBoxIcon.Warning); this.tabControl.SelectedIndex = 2; this.dgvDefect.Rows[i].Cells["JobsID"].Selected = true; return; } // 2层循环判断是否有重复的工号 for (int j = i + 1; j < this.dgvDefect.Rows.Count; j++) { if (this.dgvDefect.Rows[i].Cells["DefectID"].Value + "," + this.dgvDefect.Rows[i].Cells["JobsID"].Value == this.dgvDefect.Rows[j].Cells["DefectID"].Value + "," + this.dgvDefect.Rows[j].Cells["JobsID"].Value) { MessageBox.Show("缺陷与责任工种的组合在列表中重复出现。", this.Text, MessageBoxButtons.OK, MessageBoxIcon.Warning); this.tabControl.SelectedIndex = 2; this.dgvDefect.Rows[i].Cells["DefectID"].Selected = true; return; } } } #endregion #endregion #region 工序节点赋值 this._procedureEntity.ProcedureCode = this.txtProcedureCode.Text.Trim(); this.node.Name = this.txtProcedureName.Text.Trim(); this._procedureEntity.ProcedureName = this.txtProcedureName.Text.Trim(); this._procedureEntity.ModelType = Convert.ToInt32(this.ddlProcessModelType.ListBox.SelectedValue); this._procedureEntity.OrganizationID = (int)this.sbOrganizationID.OrganizationID; this._procedureEntity.CollectType = rbtnMore.Checked ? 1 : 2; this._procedureEntity.MustFlag = rBtnNeed.Checked ? 1 : 2; if (this._procedureEntity.MustFlag == 1) { this.node.CanSkip = false; } else { this.node.CanSkip = true; } this._procedureEntity.DisplayNo = this.txtDisplayNo.Text.Trim() == "" ? 0 : Convert.ToInt32(this.txtDisplayNo.Text.Trim()); // 计件模式 //this.node.PieceType = rbtnMore.Checked ? 1 : 2; // 特殊返工工序 this._procedureEntity.IsSpecialRework = rbtnSpecialReworkProcess.Checked ? 1 : 0; //xuwei add 2019-10-14 //半检返修工序 this._procedureEntity.IsSemireWork = rbtnSpecialSemireProcess.Checked ? 1 : 0; //打印类型 xuwei add 2019-11-20 this._procedureEntity.PrintType = Convert.ToInt32(this.ddlPrintType.SelectedValue.ToString()); //xuwei add 2020-01-02 //商标釉料 this._procedureEntity.IsGlazeChange = rbtnGlazeChange.Checked ? 1 : 0; this._procedureEntity.Remarks = this.txtRemarks.Text.Trim(); this._procedureEntity.BarCodeFlag = rbtnGBarcode.Checked ? 0 : 1; // 生产产品 this._procedureEntity.ProcedureGoodsTable = this.dgvGoods.DataSource as DataTable; this._procedureEntity.ProcedureGoodsTable.AcceptChanges(); // 操作工号表 this._procedureEntity.ProcedureUserTable = this.dgvUser.DataSource as DataTable; this._procedureEntity.ProcedureUserTable.AcceptChanges(); // 缺陷 this._procedureEntity.DefectProcedureJobsTable = this.dgvDefect.DataSource as DataTable; this._procedureEntity.DefectProcedureJobsTable.AcceptChanges(); // 操作窑炉 this._procedureEntity.ProcedureKilnTable = this.dgvKiln.DataSource as DataTable; this._procedureEntity.ProcedureKilnTable.AcceptChanges(); //漏扫排序号 this._procedureEntity.MissPriority = this.txtmisspriority.Text.Trim() == "" ? 0 : Convert.ToInt32(this.txtmisspriority.Text); this._procedureEntity.BarCodePrintCopies = this.txtBarCodePrintCopies.DataValue.HasValue ? Convert.ToInt32(this.txtBarCodePrintCopies.DataValue) : 0; this._procedureEntity.UnDo = radioJobsPrice.Checked ? 0 : 1; this._procedureEntity.DeliverType = rbtnHand.Checked ? 0 : 1; #region 计件方式 this._procedureEntity.PieceType = radioJobsPrice.Checked ? Constant.ProcedurePieceType.JobsPiece.GetHashCode() : Constant.ProcedurePieceType.NoPiece.GetHashCode(); #endregion #endregion if (this._IsEdit) { int result = PCModuleProxy.Service.SaveProcedureInfo(this._procedureEntity); if (result > Constant.INT_IS_ZERO) { MessageBox.Show(string.Format(Messages.MSG_CMN_I001, this.txtProcedureName.Text.Trim(), Constant.OPERATE_SAVE), this.Text, MessageBoxButtons.OK, MessageBoxIcon.Information); this.DialogResult = DialogResult.OK; } else if (result == Constant.RETURN_IS_DATACHANGED) { MessageBox.Show(Messages.MSG_CMN_W012, this.Text, MessageBoxButtons.OK, MessageBoxIcon.Warning); return; } else { MessageBox.Show(string.Format(Messages.MSG_CMN_W001, this.txtProcedureName.Text.Trim(), Constant.OPERATE_SAVE), this.Text, MessageBoxButtons.OK, MessageBoxIcon.Warning); return; } } this.Close(); } catch (Exception ex) { // 对异常进行共通处理 ExceptionManager.HandleEventException(this.ToString(), System.Reflection.MethodBase.GetCurrentMethod().Name, this.Text, ex); } } /// /// 关闭窗体 /// /// /// private void btnCancel_Click(object sender, EventArgs e) { this.Close(); } /// /// 输入工号 /// /// /// private void dgvUser_CellBeginEdit(object sender, DataGridViewCellCancelEventArgs e) { try { if (this.dgvUser.Rows.Count <= 1) { return; } DataGridViewColumn columnItem = this.dgvUser.Columns[e.ColumnIndex]; if ("UserCode".Equals(columnItem.Name)) { _userCodeValue = this.dgvUser.Rows[e.RowIndex].Cells[columnItem.Name].Value + ""; } } catch (Exception ex) { // 对异常进行共通处理 ExceptionManager.HandleEventException(this.ToString(), System.Reflection.MethodBase.GetCurrentMethod().Name, this.Text, ex); } } /// /// 弹出窗体 /// /// /// private void dgvUser_CellValueChanged(object sender, DataGridViewCellEventArgs e) { try { if (this.dgvUser.Rows.Count <= 1 || !_ShowFlag) { return; } DataGridViewRow rowItem = this.dgvUser.Rows[e.RowIndex]; DataGridViewColumn columnItem = this.dgvUser.Columns[e.ColumnIndex]; // 用编号获取产品信息 if ("UserCode".Equals(columnItem.Name)) { _ShowFlag = false; FormUtility.BindUserRowDataSource(this.dgvUser, e.RowIndex, columnItem.Name, _userCodeValue); // 设置可输入单元格的颜色 this.dgvUser.IsSetInputColumnsColor = true; } _ShowFlag = true; } catch (Exception ex) { _ShowFlag = true; // 对异常进行共通处理 ExceptionManager.HandleEventException(this.ToString(), System.Reflection.MethodBase.GetCurrentMethod().Name, this.Text, ex); } } /// /// 输入缺陷号 责任工种编号 /// /// /// private void dgvDefect_CellBeginEdit(object sender, DataGridViewCellCancelEventArgs e) { try { if (this.dgvDefect.Rows.Count <= 1) { return; } DataGridViewColumn columnItem = this.dgvDefect.Columns[e.ColumnIndex]; if ("DefectCode".Equals(columnItem.Name)) { _defectCodeValue = this.dgvDefect.Rows[e.RowIndex].Cells[columnItem.Name].Value + ""; } else if ("JobsCode".Equals(columnItem.Name)) { _JobsCodeValue = this.dgvDefect.Rows[e.RowIndex].Cells[columnItem.Name].Value + ""; } } catch (Exception ex) { // 对异常进行共通处理 ExceptionManager.HandleEventException(this.ToString(), System.Reflection.MethodBase.GetCurrentMethod().Name, this.Text, ex); } } /// /// 弹出窗体 /// /// /// private void dgvDefect_CellValueChanged(object sender, DataGridViewCellEventArgs e) { try { if (this.dgvDefect.Rows.Count <= 1 || !_ShowFlag) { return; } DataGridViewRow rowItem = this.dgvDefect.Rows[e.RowIndex]; DataGridViewColumn columnItem = this.dgvDefect.Columns[e.ColumnIndex]; if ("DefectCode".Equals(columnItem.Name)) { _ShowFlag = false; FormUtility.BindDefectRowRepeatDataSource(this.dgvDefect, e.RowIndex, columnItem.Name, _defectCodeValue); // 设置可输入单元格的颜色 this.dgvDefect.IsSetInputColumnsColor = true; } if ("JobsCode".Equals(columnItem.Name)) { _ShowFlag = false; FormUtility.BindJobsOneRowDataSource(this.dgvDefect, e.RowIndex, columnItem.Name, _JobsCodeValue); // 设置可输入单元格的颜色 this.dgvDefect.IsSetInputColumnsColor = true; } _ShowFlag = true; } catch (Exception ex) { _ShowFlag = true; // 对异常进行共通处理 ExceptionManager.HandleEventException(this.ToString(), System.Reflection.MethodBase.GetCurrentMethod().Name, this.Text, ex); } } /// /// 窑炉编码 /// /// /// private void dgvKiln_CellBeginEdit(object sender, DataGridViewCellCancelEventArgs e) { try { if (this.dgvKiln.Rows.Count <= 1) { return; } DataGridViewColumn columnItem = this.dgvKiln.Columns[e.ColumnIndex]; if ("kilnCode".Equals(columnItem.Name)) { _kilnCodeValue = this.dgvKiln.Rows[e.RowIndex].Cells[columnItem.Name].Value + ""; } } catch (Exception ex) { // 对异常进行共通处理 ExceptionManager.HandleEventException(this.ToString(), System.Reflection.MethodBase.GetCurrentMethod().Name, this.Text, ex); } } /// /// 窑炉单元格改变事件 /// /// /// private void dgvKiln_CellValueChanged(object sender, DataGridViewCellEventArgs e) { try { if (this.dgvKiln.Rows.Count <= 1 || !_ShowFlag) { return; } DataGridViewRow rowItem = this.dgvKiln.Rows[e.RowIndex]; DataGridViewColumn columnItem = this.dgvKiln.Columns[e.ColumnIndex]; // if ("kilnCode".Equals(columnItem.Name)) { _ShowFlag = false; FormUtility.BindKilnRowDataSource(this.dgvKiln, e.RowIndex, columnItem.Name, _kilnCodeValue); // 设置可输入单元格的颜色 this.dgvKiln.IsSetInputColumnsColor = true; } _ShowFlag = true; } catch (Exception ex) { _ShowFlag = true; // 对异常进行共通处理 ExceptionManager.HandleEventException(this.ToString(), System.Reflection.MethodBase.GetCurrentMethod().Name, this.Text, ex); } } private void ddlProcessModelType_SelectedIndexChanged(object sender, EventArgs e) { if (this.ddlProcessModelType.SelectedValue.ToString() == "0") { groupBox4.Enabled = true; } else { groupBox4.Enabled = false; radioJobsPrice.Checked = true; } //xuwei add 2020-01-02 if (Convert.ToInt32(this.ddlProcessModelType.SelectedValue) == Convert.ToInt32(Constant.ProcedureModelType.Normal)) { groupBox8.Visible = rbtnMore.Checked; } else { groupBox8.Visible = false; } } /// /// 返工工序复选框改变 /// /// /// private void rbtnSpecialReworkProcess_CheckedChanged(object sender, EventArgs e) { //xuwei fix 2019-10-14 单选框改为复选框 合并判断 if(rbtnSpecialReworkProcess.Checked) { this.rBtnNeed.Enabled = false; this.rBtnNoNeed.Enabled = false; this.rBtnNeed.Checked = true; } else { this.rBtnNeed.Enabled = true; this.rBtnNoNeed.Enabled = true; } } //xuwei add 2019-10-14 /// /// 半检返修复选框改变 /// /// /// private void rbtnSpecialSemireProcess_CheckedChanged(object sender, EventArgs e) { } //xuwei end #endregion //xuwei add 2019-11-25 private void ddlPrintType_SelectedIndexChanged(object sender, EventArgs e) { if(txtBarCodePrintCopies.Text!="") { if (ddlPrintType.SelectedIndex > 0 && Convert.ToInt32(txtBarCodePrintCopies.Text) == 0) txtBarCodePrintCopies.Text = "1"; if (ddlPrintType.SelectedIndex == 0 && Convert.ToInt32(txtBarCodePrintCopies.Text) > 0 ) txtBarCodePrintCopies.Text = "0"; } else { if (ddlPrintType.SelectedIndex > 0 ) txtBarCodePrintCopies.Text = "1"; if (ddlPrintType.SelectedIndex == 0 ) txtBarCodePrintCopies.Text = "0"; } } //xuwei add 2019-11-25 private void txtBarCodePrintCopies_TextChanged(object sender, EventArgs e) { if (txtBarCodePrintCopies.Text != "") { if (Convert.ToInt32(txtBarCodePrintCopies.Text) == 0 && ddlPrintType.SelectedIndex >0 ) ddlPrintType.SelectedIndex = 0; if (Convert.ToInt32(txtBarCodePrintCopies.Text) > 0 && ddlPrintType.SelectedIndex == 0 ) ddlPrintType.SelectedIndex = 1; } else { if (ddlPrintType.SelectedIndex > 0) ddlPrintType.SelectedIndex = 0; } } private void rbtnMore_CheckedChanged(object sender, EventArgs e) { //xuwei add 2020-01-02 groupBox8.Visible = rbtnMore.Checked; } } }