/*******************************************************************************
* 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_OK;
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 dataGridViewCellStyle27 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle28 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle29 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle30 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle31 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle32 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle33 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle34 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle35 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle36 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle37 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle38 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle39 = 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.cboFinishedCheckProcedure = new Dongke.IBOSS.PRD.Basics.BaseControls.C_ComboBox();
this.lblFinishedCheckProcedure = new Dongke.WinForm.Controls.LblLabel();
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.txtPName = new Dongke.IBOSS.PRD.Basics.BaseControls.C_TextBox();
this.c_Label7 = new Dongke.IBOSS.PRD.Basics.BaseControls.C_Label();
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.rbtnLengBuSpecialReworkProcess = new Dongke.WinForm.Controls.ChkCheckBox();
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(77, 468);
this.txtProcedureName.MaxLength = 50;
this.txtProcedureName.Name = "txtProcedureName";
this.txtProcedureName.Size = new System.Drawing.Size(454, 21);
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(65, 19);
this.txtProcedureCode.MaxLength = 20;
this.txtProcedureCode.Name = "txtProcedureCode";
this.txtProcedureCode.Size = new System.Drawing.Size(108, 21);
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(352, 23);
this.c_Label3.Name = "c_Label3";
this.c_Label3.Size = new System.Drawing.Size(53, 12);
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(18, 472);
this.c_Label2.Name = "c_Label2";
this.c_Label2.Size = new System.Drawing.Size(53, 12);
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(6, 23);
this.c_Label1.Name = "c_Label1";
this.c_Label1.Size = new System.Drawing.Size(53, 12);
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(6, 46);
this.GetDataOgrp.Name = "GetDataOgrp";
this.GetDataOgrp.Size = new System.Drawing.Size(148, 54);
this.GetDataOgrp.TabIndex = 9;
this.GetDataOgrp.TabStop = false;
this.GetDataOgrp.Text = "采集方式";
//
// rbtnMore
//
this.rbtnMore.AutoSize = true;
this.rbtnMore.Location = new System.Drawing.Point(78, 24);
this.rbtnMore.Name = "rbtnMore";
this.rbtnMore.Size = new System.Drawing.Size(71, 16);
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(6, 24);
this.rbtnOne.Name = "rbtnOne";
this.rbtnOne.Size = new System.Drawing.Size(71, 16);
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.rbtnLengBuSpecialReworkProcess);
this.groupBox5.Controls.Add(this.rbtnSpecialSemireProcess);
this.groupBox5.Controls.Add(this.rbtnSpecialReworkProcess);
this.groupBox5.Location = new System.Drawing.Point(427, 46);
this.groupBox5.Name = "groupBox5";
this.groupBox5.Size = new System.Drawing.Size(164, 75);
this.groupBox5.TabIndex = 11;
this.groupBox5.TabStop = false;
this.groupBox5.Tag = "";
this.groupBox5.Text = "重烧返工/半检返修";
//
// rbtnSpecialSemireProcess
//
this.rbtnSpecialSemireProcess.Location = new System.Drawing.Point(93, 25);
this.rbtnSpecialSemireProcess.Margin = new System.Windows.Forms.Padding(2);
this.rbtnSpecialSemireProcess.Name = "rbtnSpecialSemireProcess";
this.rbtnSpecialSemireProcess.Size = new System.Drawing.Size(72, 16);
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(14, 24);
this.rbtnSpecialReworkProcess.Margin = new System.Windows.Forms.Padding(2);
this.rbtnSpecialReworkProcess.Name = "rbtnSpecialReworkProcess";
this.rbtnSpecialReworkProcess.Size = new System.Drawing.Size(72, 16);
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(160, 46);
this.groupBox2.Name = "groupBox2";
this.groupBox2.Size = new System.Drawing.Size(116, 54);
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(56, 24);
this.rBtnNoNeed.Name = "rBtnNoNeed";
this.rBtnNoNeed.Size = new System.Drawing.Size(59, 16);
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(6, 24);
this.rBtnNeed.Name = "rBtnNeed";
this.rBtnNeed.Size = new System.Drawing.Size(47, 16);
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(40, 161);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(29, 12);
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(75, 160);
this.txtRemarks.MaxLength = 500;
this.txtRemarks.Name = "txtRemarks";
this.txtRemarks.Size = new System.Drawing.Size(346, 21);
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(12, 203);
this.groupBox3.Name = "groupBox3";
this.groupBox3.Size = new System.Drawing.Size(760, 257);
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(3, 17);
this.tabControl.Name = "tabControl";
this.tabControl.SelectedIndex = 0;
this.tabControl.Size = new System.Drawing.Size(754, 237);
this.tabControl.TabIndex = 0;
//
// tabPage1
//
this.tabPage1.Controls.Add(this.dgvGoods);
this.tabPage1.Location = new System.Drawing.Point(4, 22);
this.tabPage1.Margin = new System.Windows.Forms.Padding(0);
this.tabPage1.Name = "tabPage1";
this.tabPage1.Size = new System.Drawing.Size(746, 211);
this.tabPage1.TabIndex = 0;
this.tabPage1.Text = "生产产品";
this.tabPage1.UseVisualStyleBackColor = true;
//
// dgvGoods
//
this.dgvGoods.AllowUserToModifyRows = true;
dataGridViewCellStyle27.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235)))));
this.dgvGoods.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle27;
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;
dataGridViewCellStyle28.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle28.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(58)))), ((int)(((byte)(70)))));
dataGridViewCellStyle28.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
dataGridViewCellStyle28.ForeColor = System.Drawing.Color.White;
dataGridViewCellStyle28.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle28.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle28.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.dgvGoods.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle28;
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)));
dataGridViewCellStyle29.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle29.BackColor = System.Drawing.SystemColors.Window;
dataGridViewCellStyle29.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
dataGridViewCellStyle29.ForeColor = System.Drawing.SystemColors.ControlText;
dataGridViewCellStyle29.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle29.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle29.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
this.dgvGoods.DefaultCellStyle = dataGridViewCellStyle29;
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.HasNode = false;
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.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;
dataGridViewCellStyle30.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(159)))), ((int)(((byte)(39)))), ((int)(((byte)(39)))));
this.dgvGoods.RowsDefaultCellStyle = dataGridViewCellStyle30;
this.dgvGoods.RowTemplate.Height = 21;
this.dgvGoods.Size = new System.Drawing.Size(746, 211);
this.dgvGoods.SortOrderColumnName = null;
this.dgvGoods.TabIndex = 0;
this.dgvGoods.Tag = true;
this.dgvGoods.TotalSumColumns = null;
this.dgvGoods.ViewRowFilter = "";
this.dgvGoods.VirtualNodes = false;
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, 22);
this.tabPage2.Name = "tabPage2";
this.tabPage2.Size = new System.Drawing.Size(740, 208);
this.tabPage2.TabIndex = 1;
this.tabPage2.Text = "生产工号";
this.tabPage2.UseVisualStyleBackColor = true;
//
// dgvUser
//
this.dgvUser.AllowUserToModifyRows = true;
dataGridViewCellStyle31.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235)))));
this.dgvUser.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle31;
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;
dataGridViewCellStyle32.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle32.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(58)))), ((int)(((byte)(70)))));
dataGridViewCellStyle32.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
dataGridViewCellStyle32.ForeColor = System.Drawing.Color.White;
dataGridViewCellStyle32.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle32.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle32.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.dgvUser.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle32;
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.HasNode = false;
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.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;
dataGridViewCellStyle33.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(159)))), ((int)(((byte)(39)))), ((int)(((byte)(39)))));
this.dgvUser.RowsDefaultCellStyle = dataGridViewCellStyle33;
this.dgvUser.RowTemplate.Height = 21;
this.dgvUser.Size = new System.Drawing.Size(740, 208);
this.dgvUser.SortOrderColumnName = null;
this.dgvUser.TabIndex = 54;
this.dgvUser.Tag = true;
this.dgvUser.TotalSumColumns = null;
this.dgvUser.ViewRowFilter = "";
this.dgvUser.VirtualNodes = false;
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, 22);
this.tabPage3.Margin = new System.Windows.Forms.Padding(0);
this.tabPage3.Name = "tabPage3";
this.tabPage3.Size = new System.Drawing.Size(740, 208);
this.tabPage3.TabIndex = 2;
this.tabPage3.Text = "存在缺陷";
this.tabPage3.UseVisualStyleBackColor = true;
//
// dgvDefect
//
this.dgvDefect.AllowUserToModifyRows = true;
dataGridViewCellStyle34.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235)))));
this.dgvDefect.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle34;
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;
dataGridViewCellStyle35.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle35.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(58)))), ((int)(((byte)(70)))));
dataGridViewCellStyle35.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
dataGridViewCellStyle35.ForeColor = System.Drawing.Color.White;
dataGridViewCellStyle35.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle35.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle35.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.dgvDefect.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle35;
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.HasNode = false;
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.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;
dataGridViewCellStyle36.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(159)))), ((int)(((byte)(39)))), ((int)(((byte)(39)))));
this.dgvDefect.RowsDefaultCellStyle = dataGridViewCellStyle36;
this.dgvDefect.RowTemplate.Height = 21;
this.dgvDefect.Size = new System.Drawing.Size(740, 208);
this.dgvDefect.SortOrderColumnName = null;
this.dgvDefect.TabIndex = 54;
this.dgvDefect.Tag = true;
this.dgvDefect.TotalSumColumns = null;
this.dgvDefect.ViewRowFilter = "";
this.dgvDefect.VirtualNodes = false;
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, 22);
this.tabPage4.Name = "tabPage4";
this.tabPage4.Size = new System.Drawing.Size(740, 208);
this.tabPage4.TabIndex = 3;
this.tabPage4.Text = "可用窑炉";
this.tabPage4.UseVisualStyleBackColor = true;
//
// dgvKiln
//
this.dgvKiln.AllowUserToModifyRows = true;
dataGridViewCellStyle37.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235)))));
this.dgvKiln.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle37;
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;
dataGridViewCellStyle38.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle38.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(58)))), ((int)(((byte)(70)))));
dataGridViewCellStyle38.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
dataGridViewCellStyle38.ForeColor = System.Drawing.Color.White;
dataGridViewCellStyle38.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle38.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle38.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.dgvKiln.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle38;
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.HasNode = false;
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.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;
dataGridViewCellStyle39.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(159)))), ((int)(((byte)(39)))), ((int)(((byte)(39)))));
this.dgvKiln.RowsDefaultCellStyle = dataGridViewCellStyle39;
this.dgvKiln.RowTemplate.Height = 21;
this.dgvKiln.Size = new System.Drawing.Size(740, 208);
this.dgvKiln.SortOrderColumnName = null;
this.dgvKiln.TabIndex = 55;
this.dgvKiln.Tag = true;
this.dgvKiln.TotalSumColumns = null;
this.dgvKiln.ViewRowFilter = "";
this.dgvKiln.VirtualNodes = false;
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(596, 466);
this.btnSave.Name = "btnSave";
this.btnSave.Size = new System.Drawing.Size(85, 30);
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(687, 466);
this.btnCancel.Name = "btnCancel";
this.btnCancel.Size = new System.Drawing.Size(85, 30);
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.cboFinishedCheckProcedure);
this.groupBox1.Controls.Add(this.lblFinishedCheckProcedure);
this.groupBox1.Controls.Add(this.groupBox8);
this.groupBox1.Controls.Add(this.ddlPrintType);
this.groupBox1.Controls.Add(this.txtPName);
this.groupBox1.Controls.Add(this.c_Label7);
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.txtProcedureCode);
this.groupBox1.Controls.Add(this.c_Label3);
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(12, 12);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(760, 185);
this.groupBox1.TabIndex = 0;
this.groupBox1.TabStop = false;
this.groupBox1.Text = "基本属性";
//
// cboFinishedCheckProcedure
//
this.cboFinishedCheckProcedure.BackColor = System.Drawing.SystemColors.Window;
this.cboFinishedCheckProcedure.BackgroundColor = System.Drawing.SystemColors.Window;
this.cboFinishedCheckProcedure.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.cboFinishedCheckProcedure.FormattingEnabled = true;
this.cboFinishedCheckProcedure.Location = new System.Drawing.Point(655, 160);
this.cboFinishedCheckProcedure.Name = "cboFinishedCheckProcedure";
this.cboFinishedCheckProcedure.Size = new System.Drawing.Size(93, 20);
this.cboFinishedCheckProcedure.TabIndex = 28;
//
// lblFinishedCheckProcedure
//
this.lblFinishedCheckProcedure.Location = new System.Drawing.Point(596, 163);
this.lblFinishedCheckProcedure.Name = "lblFinishedCheckProcedure";
this.lblFinishedCheckProcedure.Size = new System.Drawing.Size(53, 12);
this.lblFinishedCheckProcedure.TabIndex = 27;
this.lblFinishedCheckProcedure.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(282, 46);
this.groupBox8.Name = "groupBox8";
this.groupBox8.Size = new System.Drawing.Size(139, 54);
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(67, 23);
this.rbtnGlazeNoChange.Name = "rbtnGlazeNoChange";
this.rbtnGlazeNoChange.Size = new System.Drawing.Size(71, 16);
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(6, 24);
this.rbtnGlazeChange.Name = "rbtnGlazeChange";
this.rbtnGlazeChange.Size = new System.Drawing.Size(59, 16);
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(314, 134);
this.ddlPrintType.Margin = new System.Windows.Forms.Padding(2);
this.ddlPrintType.Name = "ddlPrintType";
this.ddlPrintType.Size = new System.Drawing.Size(102, 20);
this.ddlPrintType.TabIndex = 25;
this.ddlPrintType.SelectedIndexChanged += new System.EventHandler(this.ddlPrintType_SelectedIndexChanged);
//
// txtPName
//
this.txtPName.BackColor = System.Drawing.Color.Yellow;
this.txtPName.BackgroundColor = System.Drawing.SystemColors.Window;
this.txtPName.ErrorMessage = "必须输入项目";
this.txtPName.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.txtPName.HasError = true;
this.txtPName.IsMustInput = true;
this.txtPName.Location = new System.Drawing.Point(238, 19);
this.txtPName.MaxLength = 50;
this.txtPName.Name = "txtPName";
this.txtPName.Size = new System.Drawing.Size(108, 21);
this.txtPName.TabIndex = 3;
//
// c_Label7
//
this.c_Label7.AutoSize = true;
this.c_Label7.BackColor = System.Drawing.Color.Transparent;
this.c_Label7.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.c_Label7.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(155)))), ((int)(((byte)(39)))), ((int)(((byte)(39)))));
this.c_Label7.IsMustInput = true;
this.c_Label7.Location = new System.Drawing.Point(179, 23);
this.c_Label7.Name = "c_Label7";
this.c_Label7.Size = new System.Drawing.Size(53, 12);
this.c_Label7.TabIndex = 2;
this.c_Label7.Text = "工序简称";
//
// 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(283, 138);
this.c_Label6.Name = "c_Label6";
this.c_Label6.Size = new System.Drawing.Size(29, 12);
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(596, 103);
this.groupBox7.Name = "groupBox7";
this.groupBox7.Size = new System.Drawing.Size(152, 54);
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(78, 24);
this.rbtnOutBarCode.Name = "rbtnOutBarCode";
this.rbtnOutBarCode.Size = new System.Drawing.Size(71, 16);
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(6, 24);
this.rbtnGBarcode.Name = "rbtnGBarcode";
this.rbtnGBarcode.Size = new System.Drawing.Size(71, 16);
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(203, 133);
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(68, 21);
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(147, 137);
this.c_Label5.Name = "c_Label5";
this.c_Label5.Size = new System.Drawing.Size(53, 12);
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.HasComma = false;
this.txtDisplayNo.ImeMode = System.Windows.Forms.ImeMode.Off;
this.txtDisplayNo.Location = new System.Drawing.Point(75, 133);
this.txtDisplayNo.MaxLength = 10;
this.txtDisplayNo.MaxValue = new decimal(new int[] {
1410065407,
2,
0,
0});
this.txtDisplayNo.MinValue = new decimal(new int[] {
0,
0,
0,
0});
this.txtDisplayNo.Name = "txtDisplayNo";
this.txtDisplayNo.ShowDecimal = false;
this.txtDisplayNo.Size = new System.Drawing.Size(66, 21);
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(75, 106);
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(66, 21);
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(16, 136);
this.lblDisplayNo.Name = "lblDisplayNo";
this.lblDisplayNo.Size = new System.Drawing.Size(53, 12);
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(147, 110);
this.c_Label4.Name = "c_Label4";
this.c_Label4.Size = new System.Drawing.Size(185, 12);
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(4, 110);
this.lblmisspriority.Name = "lblmisspriority";
this.lblmisspriority.Size = new System.Drawing.Size(65, 12);
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(596, 46);
this.groupBox4.Name = "groupBox4";
this.groupBox4.Size = new System.Drawing.Size(152, 54);
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(67, 25);
this.radioJobsPrice.Name = "radioJobsPrice";
this.radioJobsPrice.Size = new System.Drawing.Size(71, 16);
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(6, 25);
this.radioNotPrice.Name = "radioNotPrice";
this.radioNotPrice.Size = new System.Drawing.Size(59, 16);
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(106, 136);
this.ddlProcessModelType.ListBox.TabIndex = 0;
this.ddlProcessModelType.ListBox.SelectedIndexChanged += new System.EventHandler(this.cobProcessModelType_SelectedIndexChanged);
this.ddlProcessModelType.Location = new System.Drawing.Point(411, 19);
this.ddlProcessModelType.Name = "ddlProcessModelType";
this.ddlProcessModelType.Size = new System.Drawing.Size(108, 20);
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(426, 128);
this.groupBox6.Name = "groupBox6";
this.groupBox6.Size = new System.Drawing.Size(164, 51);
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(106, 24);
this.rbtnAuto.Name = "rbtnAuto";
this.rbtnAuto.Size = new System.Drawing.Size(47, 16);
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(27, 24);
this.rbtnHand.Name = "rbtnHand";
this.rbtnHand.Size = new System.Drawing.Size(47, 16);
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(531, 19);
this.sbOrganizationID.Margin = new System.Windows.Forms.Padding(4);
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(216, 21);
this.sbOrganizationID.TabIndex = 6;
this.sbOrganizationID.TxtOrganizationBackColor = System.Drawing.SystemColors.Control;
//
// rbtnLengBuSpecialReworkProcess
//
this.rbtnLengBuSpecialReworkProcess.Location = new System.Drawing.Point(14, 44);
this.rbtnLengBuSpecialReworkProcess.Margin = new System.Windows.Forms.Padding(2);
this.rbtnLengBuSpecialReworkProcess.Name = "rbtnLengBuSpecialReworkProcess";
this.rbtnLengBuSpecialReworkProcess.Size = new System.Drawing.Size(72, 16);
this.rbtnLengBuSpecialReworkProcess.TabIndex = 2;
this.rbtnLengBuSpecialReworkProcess.Text = "冷补返工";
this.rbtnLengBuSpecialReworkProcess.UseVisualStyleBackColor = false;
this.rbtnLengBuSpecialReworkProcess.CheckedChanged += new System.EventHandler(this.rbtnLengBuSpecialReworkProcess_CheckedChanged);
//
// F_PC_0207
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.BackColor = System.Drawing.SystemColors.Control;
this.CancelButton = this.btnCancel;
this.ClientSize = new System.Drawing.Size(784, 521);
this.Controls.Add(this.btnCancel);
this.Controls.Add(this.btnSave);
this.Controls.Add(this.groupBox3);
this.Controls.Add(this.groupBox1);
this.Controls.Add(this.txtProcedureName);
this.Controls.Add(this.c_Label2);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
this.IsSaveFormSize = false;
this.Margin = new System.Windows.Forms.Padding(5);
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.c_Label2, 0);
this.Controls.SetChildIndex(this.txtProcedureName, 0);
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();
this.ddlPrintType.Tag = 1;
//加载 打印类型 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.txtPName.Text = this.node.ShortName;
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);
//qinqi add 2022-04-20 冷补标识
if (this._procedureEntity.IsSpecialRework.ToString() == "2")
{
this.rbtnLengBuSpecialReworkProcess.Checked = true;
}
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;
}
//成检工序数据绑定 夏常明 2022-10-12 start
if (_procedureEntity.FinishedCheckProcedureTable!= null)
{
DataTable DataPdDt = this._procedureEntity.FinishedCheckProcedureTable.Copy();
DataRow Pddr = DataPdDt.NewRow();
Pddr["PROCEDURENAME"] = "";
Pddr["PROCEDUREID"] = -1;
DataPdDt.Rows.InsertAt(Pddr, 0);
this.cboFinishedCheckProcedure.DisplayMember = "PROCEDURENAME";
this.cboFinishedCheckProcedure.ValueMember = "PROCEDUREID";
this.cboFinishedCheckProcedure.DataSource = DataPdDt;
this.cboFinishedCheckProcedure.SelectedValue = this._procedureEntity.FinishedCheckProcedureID;
}
else
{
DataTable DataPdDt = new DataTable();
DataPdDt.Columns.Add("PROCEDUREID",typeof(int));
DataPdDt.Columns.Add("PROCEDURENAME", typeof(string));
DataRow Pddr = DataPdDt.NewRow();
Pddr["PROCEDURENAME"] = "";
Pddr["PROCEDUREID"] = -1;
DataPdDt.Rows.InsertAt(Pddr, 0);
Pddr = DataPdDt.NewRow();
Pddr["ProcedureName"] = "8-1质量登记";
Pddr["Procedureid"] = "12";
DataPdDt.Rows.InsertAt(Pddr, 1);
Pddr = DataPdDt.NewRow();
Pddr["ProcedureName"] = "8-2重烧质量登记";
Pddr["Procedureid"] = "59";
DataPdDt.Rows.InsertAt(Pddr, 2);
Pddr = DataPdDt.NewRow();
Pddr["ProcedureName"] = "3#质量登记";
Pddr["Procedureid"] = "105";
DataPdDt.Rows.InsertAt(Pddr, 3);
this.cboFinishedCheckProcedure.DisplayMember = "PROCEDURENAME";
this.cboFinishedCheckProcedure.ValueMember = "PROCEDUREID";
this.cboFinishedCheckProcedure.DataSource = DataPdDt;
this.cboFinishedCheckProcedure.SelectedValue = this._procedureEntity.FinishedCheckProcedureID;
}
//成检工序数据绑定 夏常明 2022-10-12 end
#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);
}
finally
{
this.ddlPrintType.Tag = null;
}
}
///
/// 点击取消 关闭窗口
///
///
///
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;
}
//qinqi add 2023-04-20
if ((int)this.ddlProcessModelType.SelectedValue == 5 && this.rbtnLengBuSpecialReworkProcess.Checked)
{
MessageBox.Show("工序类别为交坯工序时,不能为特殊返工工序!", "Error");
this.ddlProcessModelType.Focus();
return;
}
if (this.rbtnSpecialReworkProcess.Checked && this.rbtnLengBuSpecialReworkProcess.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.node.ShortName = this.txtPName.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);
//qinqi add 2023-04-20
if (this.rbtnLengBuSpecialReworkProcess.Checked)
{
this._procedureEntity.IsSpecialRework = 2;
}
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;
rbtnLengBuSpecialReworkProcess.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;
rbtnLengBuSpecialReworkProcess.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_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 (this.ddlProcessModelType.SelectedValue.ToString() == "8" && rbtnLengBuSpecialReworkProcess.Checked)
{
MessageBox.Show(string.Format("干补不能成为返工工序", "特定返工工序"),
this.Text,
MessageBoxButtons.OK,
MessageBoxIcon.Warning);
this.rbtnSpecialReworkProcess.Focus();
return;
}
if (this.rbtnSpecialReworkProcess.Checked && this.rbtnLengBuSpecialReworkProcess.Checked)
{
MessageBox.Show("不能同时选择两个返工工序!", "Error");
this.ddlProcessModelType.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.node.ShortName = this.txtPName.Text.Trim();
this._procedureEntity.ProcedureName = this.txtProcedureName.Text.Trim();
this._procedureEntity.PName = this.txtPName.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;
//qinqi add 2023-04-20
if (rbtnLengBuSpecialReworkProcess.Checked)
{
this._procedureEntity.IsSpecialRework = 2;
}
//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
//成检工序 夏常明 2022-10-12
this._procedureEntity.FinishedCheckProcedureID = Convert.ToInt32(this.cboFinishedCheckProcedure.SelectedValue);
#endregion
if (this._IsEdit)
{
int result = (int)DoAsync(new BaseAsyncMethod(() =>
{
return 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;
}
}
///
/// 返工工序复选框改变
///
///
///
private void rbtnLengBuSpecialReworkProcess_CheckedChanged(object sender, EventArgs e)
{
if (rbtnLengBuSpecialReworkProcess.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 (this.ddlPrintType.Tag != null)
{
return;
}
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 (this.ddlPrintType.Tag != null)
{
return;
}
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;
}
private void dgvGoods_CellValueChanged(object sender, DataGridViewCellEventArgs e)
{
try
{
if (this.dgvGoods.Rows.Count <= 1)
{
return;
}
DataGridViewRow rowItem = this.dgvGoods.Rows[e.RowIndex];
DataGridViewColumn columnItem = this.dgvGoods.Columns[e.ColumnIndex];
// 用编号获取产品信息
if ("GoodsCode".Equals(columnItem.Name))
{
FormUtility.BindGoodsRowDataSource(this.dgvGoods,
e.RowIndex, columnItem.Name, _goodsCodeValue);
// 设置可输入单元格的颜色
this.dgvGoods.IsSetInputColumnsColor = true;
}
}
catch (Exception ex)
{
// 对异常进行共通处理
ExceptionManager.HandleEventException(this.ToString(),
System.Reflection.MethodBase.GetCurrentMethod().Name, this.Text, ex);
}
}
}
}