| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163 |
- /*******************************************************************************
- * Copyright(c) 2014 DongkeSoft All rights reserved. / Confidential
- * 类的信息:
- * 1.程序名称:F_PC_0206.cs
- * 2.功能描述:生产线配置检验属性
- * 编辑履历:
- * 作者 日期 版本 修改内容
- * 王鑫 2015/03/27 1.00 新建
- *******************************************************************************/
- using System;
- using System.Collections;
- using System.ComponentModel;
- using System.Data;
- using System.Windows.Forms;
- using Dongke.IBOSS.Basics.FlowSetting;
- 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.PRD.WCF.DataModels;
- using Dongke.IBOSS.PRD.WCF.Proxys;
- namespace Dongke.IBOSS.PRD.Client.PCModule
- {
- /// <summary>
- /// 生产线配置检验属性
- /// </summary>
- public partial class F_PC_0206 : FormBase
- {
- #region 成员
- private FlowNode node;//传入的编辑的节点
- private FlowBox control;//主父框架
- //private DateTime dt_TempDateTime;//记录就要被修改的值//流入节点的关系名称//流出节点的关系名称
- private ArrayList arr_InFlowLineList;//连入节点的名称
- private ArrayList arr_OutFlowLineList;//连出节点的名称
- //private string str_NodeTypeSeleBefor;
- private GroupBox groupBox1;
- private GroupBox GetDataOgrp;
- private GroupBox groupBox2;
- private Label label1;
- private GroupBox groupBox3;
- private TabControl tabControl;
- private TabPage tabPage1;
- private TabPage tabPage2;
- private TabPage tabPage3;
- private Dongke.IBOSS.PRD.Basics.BaseControls.C_Label c_Label1;
- private Dongke.IBOSS.PRD.Basics.BaseControls.C_Label c_Label2;
- private Dongke.IBOSS.PRD.Basics.BaseControls.C_Label c_Label3;
- private Dongke.IBOSS.PRD.Basics.BaseControls.C_TextBox txtProcedureCode;
- private Dongke.IBOSS.PRD.Basics.BaseControls.C_TextBox txtProcedureName;
- private Dongke.IBOSS.PRD.Basics.BaseControls.C_RadioButton rbtnOne;
- private Dongke.IBOSS.PRD.Basics.BaseControls.C_RadioButton rbtnMore;
- private Dongke.IBOSS.PRD.Basics.BaseControls.C_RadioButton rBtnNoNeed;
- private Dongke.IBOSS.PRD.Basics.BaseControls.C_RadioButton rBtnNeed;
- private Dongke.IBOSS.PRD.Basics.BaseControls.C_TextBox txtRemarks;
- private Dongke.IBOSS.PRD.Client.Controls.dkOrganizationSearchBox sbOrganizationID;
- private C_DataGridView dgvGoods;
- private C_DataGridView dgvUser;
- private C_DataGridView dgvDefect;
- private IContainer components;
- private string _goodsCodeValue;
- private string _userCodeValue;
- private string _defectCodeValue;
- private string _JobsCodeValue;
- private DataGridViewComboBoxColumn DefectID_NO;
- private DataGridViewTextBoxColumn DefectID;
- private DataGridViewTextBoxColumn DefectCode;
- private DataGridViewTextBoxColumn DefectName;
- private GroupBox groupBox4;
- public RadioButton radioJobsPrice;
- public RadioButton radioNotPrice;
- private TabPage tabPage4;
- private C_DataGridView dgvMissDefect;
- private DataGridViewTextBoxColumn MissDefectID;
- private DataGridViewTextBoxColumn MissDefectCode;
- private DataGridViewTextBoxColumn MissDefectName;
- private DataGridViewTextBoxColumn JobsID;
- private DataGridViewTextBoxColumn JobsCode;
- private DataGridViewTextBoxColumn JobsName;
- private bool _ShowFlag = true;
- private ProcedureEntity _procedureEntity = new ProcedureEntity();
- private bool _IsEdit = false;
- private bool _IsReadonlyCode = false;
- #endregion
- #region 属性
- /// <summary>
- /// 只读工序编码
- /// </summary>
- public bool IsReadOnlyCode
- {
- set
- {
- _IsReadonlyCode = value;
- }
- get
- {
- return _IsReadonlyCode;
- }
- }
- #endregion
- #region 构造函数
- public F_PC_0206(FlowNode node, FlowBox control)
- {
- //
- // Windows 窗体设计器支持所必需的
- //
- InitializeComponent();
- this.btnSave.Text = ButtonText.BTN_SAVE;
- this.btnCancel.Text = ButtonText.BTN_CANCEL;
- this.groupBox4.Visible = false;
-
- // 初始化
- Init(node, control);
- }
- public F_PC_0206(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;
- this.groupBox4.Visible = false;
- // 初始化
- Init(node, control);
- }
- /// <summary>
- /// 初始化
- /// </summary>
- 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();
- }
- /// <summary>
- /// 填充节点信息到窗口中
- /// </summary>
- public void FormContentInit()
- {
- this._procedureEntity = (ProcedureEntity)this.node.TagNonSerialized;
- if (this._procedureEntity != null)
- {
- this.txtProcedureCode.Text = this._procedureEntity.ProcedureCode;
- this.txtProcedureName.Text = this.node.Name; ;
- this.txtRemarks.Text = this._procedureEntity.Remarks;
- this.rbtnOne.Checked = (this._procedureEntity.CollectType == 2);
- this.rbtnMore.Checked = (this._procedureEntity.CollectType == 1);
- this.rBtnNeed.Checked = (this._procedureEntity.MustFlag == 1);
- this.rBtnNoNeed.Checked = (this._procedureEntity.MustFlag == 0);
- this.txtBarCodePrintCopies.DataValue = this._procedureEntity.BarCodePrintCopies;
- this.ddlPrintType.SelectedValue = this._procedureEntity.PrintType;
- //xuwei add 2019-12-11
- if (!string.IsNullOrEmpty(this._procedureEntity.SemiGoodsLevel))
- {
- string[] ids = this._procedureEntity.SemiGoodsLevel.Split(',');
- cklSemiGoodsLevel.SetItemCheckedByValueID(true, ids);
- }
- }
- }
- #endregion
- /// <summary>
- /// 清理所有正在使用的资源。
- /// </summary>
- protected override void Dispose(bool disposing)
- {
- if (disposing)
- {
- if (components != null)
- {
- components.Dispose();
- }
- }
- base.Dispose(disposing);
- }
- #region Windows 窗体设计器生成的代码
- /// <summary>
- /// 设计器支持所需的方法 - 不要使用代码编辑器修改
- /// 此方法的内容。
- /// </summary>
- private void InitializeComponent()
- {
- System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
- System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
- System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
- System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle();
- System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle();
- System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle();
- System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = new System.Windows.Forms.DataGridViewCellStyle();
- System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle();
- System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle9 = new System.Windows.Forms.DataGridViewCellStyle();
- System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle10 = new System.Windows.Forms.DataGridViewCellStyle();
- System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle11 = new System.Windows.Forms.DataGridViewCellStyle();
- System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle12 = new System.Windows.Forms.DataGridViewCellStyle();
- System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle13 = new System.Windows.Forms.DataGridViewCellStyle();
- System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(F_PC_0206));
- this.groupBox1 = new System.Windows.Forms.GroupBox();
- this.ddlProcessModelType = new Dongke.IBOSS.PRD.Basics.BaseControls.DKListBoxComboBox();
- this.groupBoxSemi = new System.Windows.Forms.GroupBox();
- this.ddlPrintType = new Dongke.IBOSS.PRD.Basics.BaseControls.C_ComboBox();
- this.c_Label6 = new Dongke.IBOSS.PRD.Basics.BaseControls.C_Label();
- this.txtBarCodePrintCopies = new Dongke.IBOSS.PRD.Basics.BaseControls.C_DGV_Digital();
- this.groupBox4 = new System.Windows.Forms.GroupBox();
- this.radioJobsPrice = new System.Windows.Forms.RadioButton();
- this.radioNotPrice = new System.Windows.Forms.RadioButton();
- this.c_Label5 = new Dongke.IBOSS.PRD.Basics.BaseControls.C_Label();
- this.c_Label4 = new Dongke.IBOSS.PRD.Basics.BaseControls.C_Label();
- this.txtDisplayNo = new Dongke.IBOSS.PRD.Basics.BaseControls.C_DGV_Digital();
- this.lblDisplayNo = new Dongke.IBOSS.PRD.Basics.BaseControls.C_Label();
- this.txtmisspriority = new Dongke.IBOSS.PRD.Basics.BaseControls.C_DGV_Digital();
- this.lblmisspriority = new Dongke.IBOSS.PRD.Basics.BaseControls.C_Label();
- this.sbOrganizationID = new Dongke.IBOSS.PRD.Client.Controls.dkOrganizationSearchBox();
- this.txtRemarks = new Dongke.IBOSS.PRD.Basics.BaseControls.C_TextBox();
- 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 Dongke.IBOSS.PRD.Basics.BaseControls.C_RadioButton();
- this.rbtnOne = new Dongke.IBOSS.PRD.Basics.BaseControls.C_RadioButton();
- this.groupBox2 = new System.Windows.Forms.GroupBox();
- this.rBtnNoNeed = new Dongke.IBOSS.PRD.Basics.BaseControls.C_RadioButton();
- this.rBtnNeed = new Dongke.IBOSS.PRD.Basics.BaseControls.C_RadioButton();
- this.label1 = new System.Windows.Forms.Label();
- 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.User_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_NO = new System.Windows.Forms.DataGridViewComboBoxColumn();
- this.DefectID = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.DefectCode = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.DefectName = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.tabPage4 = new System.Windows.Forms.TabPage();
- this.dgvMissDefect = new Dongke.IBOSS.PRD.Basics.BaseControls.C_DataGridView();
- this.MissDefectID = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.MissDefectCode = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.MissDefectName = 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.btnCancel = new Dongke.IBOSS.PRD.Basics.BaseControls.C_Button();
- this.btnSave = new Dongke.IBOSS.PRD.Basics.BaseControls.C_Button();
- this.cklSemiGoodsLevel = new Dongke.WinForm.Controls.CklCheckedListBox();
- this.groupBox1.SuspendLayout();
- this.groupBoxSemi.SuspendLayout();
- this.groupBox4.SuspendLayout();
- this.GetDataOgrp.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.dgvMissDefect)).BeginInit();
- this.SuspendLayout();
- //
- // 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.ddlProcessModelType);
- this.groupBox1.Controls.Add(this.groupBoxSemi);
- this.groupBox1.Controls.Add(this.ddlPrintType);
- this.groupBox1.Controls.Add(this.c_Label6);
- this.groupBox1.Controls.Add(this.txtBarCodePrintCopies);
- this.groupBox1.Controls.Add(this.groupBox4);
- this.groupBox1.Controls.Add(this.c_Label5);
- this.groupBox1.Controls.Add(this.c_Label4);
- this.groupBox1.Controls.Add(this.txtDisplayNo);
- this.groupBox1.Controls.Add(this.lblDisplayNo);
- this.groupBox1.Controls.Add(this.txtmisspriority);
- this.groupBox1.Controls.Add(this.lblmisspriority);
- this.groupBox1.Controls.Add(this.sbOrganizationID);
- this.groupBox1.Controls.Add(this.txtRemarks);
- this.groupBox1.Controls.Add(this.txtProcedureName);
- this.groupBox1.Controls.Add(this.txtProcedureCode);
- this.groupBox1.Controls.Add(this.c_Label3);
- this.groupBox1.Controls.Add(this.c_Label2);
- this.groupBox1.Controls.Add(this.c_Label1);
- this.groupBox1.Controls.Add(this.GetDataOgrp);
- this.groupBox1.Controls.Add(this.groupBox2);
- this.groupBox1.Controls.Add(this.label1);
- this.groupBox1.Location = new System.Drawing.Point(16, 15);
- this.groupBox1.Margin = new System.Windows.Forms.Padding(4);
- this.groupBox1.Name = "groupBox1";
- this.groupBox1.Padding = new System.Windows.Forms.Padding(4);
- this.groupBox1.Size = new System.Drawing.Size(984, 218);
- this.groupBox1.TabIndex = 0;
- this.groupBox1.TabStop = false;
- this.groupBox1.Text = "基本属性";
- //
- // ddlProcessModelType
- //
- this.ddlProcessModelType.BackColor = System.Drawing.Color.Yellow;
- this.ddlProcessModelType.BackgroundColor = System.Drawing.SystemColors.Window;
- this.ddlProcessModelType.DataSource = null;
- this.ddlProcessModelType.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- this.ddlProcessModelType.FormattingEnabled = true;
- this.ddlProcessModelType.IsMustInput = true;
- //
- //
- //
- this.ddlProcessModelType.ListBox.Dock = System.Windows.Forms.DockStyle.Fill;
- this.ddlProcessModelType.ListBox.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- this.ddlProcessModelType.ListBox.Location = new System.Drawing.Point(0, 0);
- this.ddlProcessModelType.ListBox.Name = "";
- this.ddlProcessModelType.ListBox.Size = new System.Drawing.Size(141, 136);
- this.ddlProcessModelType.ListBox.TabIndex = 0;
- this.ddlProcessModelType.ListBox.SelectedIndexChanged += new System.EventHandler(this.cobProcessModelType_SelectedIndexChanged);
- this.ddlProcessModelType.Location = new System.Drawing.Point(544, 25);
- this.ddlProcessModelType.Margin = new System.Windows.Forms.Padding(4);
- this.ddlProcessModelType.Name = "ddlProcessModelType";
- this.ddlProcessModelType.Size = new System.Drawing.Size(143, 23);
- this.ddlProcessModelType.TabIndex = 25;
- this.ddlProcessModelType.SelectedIndexChanged += new System.EventHandler(this.cobProcessModelType_SelectedIndexChanged);
- //
- // groupBoxSemi
- //
- this.groupBoxSemi.BackColor = System.Drawing.Color.Transparent;
- this.groupBoxSemi.Controls.Add(this.cklSemiGoodsLevel);
- this.groupBoxSemi.Location = new System.Drawing.Point(472, 61);
- this.groupBoxSemi.Margin = new System.Windows.Forms.Padding(4);
- this.groupBoxSemi.Name = "groupBoxSemi";
- this.groupBoxSemi.Padding = new System.Windows.Forms.Padding(4);
- this.groupBoxSemi.Size = new System.Drawing.Size(220, 149);
- this.groupBoxSemi.TabIndex = 24;
- this.groupBoxSemi.TabStop = false;
- this.groupBoxSemi.Tag = "";
- this.groupBoxSemi.Text = "半检产品等级";
- this.groupBoxSemi.Visible = false;
- //
- // 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(357, 164);
- this.ddlPrintType.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
- this.ddlPrintType.Name = "ddlPrintType";
- this.ddlPrintType.Size = new System.Drawing.Size(103, 23);
- this.ddlPrintType.TabIndex = 23;
- this.ddlPrintType.SelectedIndexChanged += new System.EventHandler(this.ddlPrintType_SelectedIndexChanged);
- //
- // c_Label6
- //
- this.c_Label6.AutoSize = true;
- this.c_Label6.BackColor = System.Drawing.Color.Transparent;
- this.c_Label6.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- this.c_Label6.Location = new System.Drawing.Point(315, 169);
- this.c_Label6.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
- this.c_Label6.Name = "c_Label6";
- this.c_Label6.Size = new System.Drawing.Size(37, 15);
- this.c_Label6.TabIndex = 22;
- this.c_Label6.Text = "类型";
- //
- // 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(267, 164);
- this.txtBarCodePrintCopies.Margin = new System.Windows.Forms.Padding(4);
- this.txtBarCodePrintCopies.MaxLength = 2;
- this.txtBarCodePrintCopies.MaxValue = new decimal(new int[] {
- 10,
- 0,
- 0,
- 0});
- this.txtBarCodePrintCopies.MinValue = new decimal(new int[] {
- 0,
- 0,
- 0,
- 0});
- this.txtBarCodePrintCopies.Name = "txtBarCodePrintCopies";
- this.txtBarCodePrintCopies.Size = new System.Drawing.Size(40, 25);
- this.txtBarCodePrintCopies.TabIndex = 21;
- this.txtBarCodePrintCopies.TextValue = "";
- this.txtBarCodePrintCopies.TextChanged += new System.EventHandler(this.txtBarCodePrintCopies_TextChanged);
- //
- // groupBox4
- //
- this.groupBox4.BackColor = System.Drawing.Color.Transparent;
- this.groupBox4.Controls.Add(this.radioJobsPrice);
- this.groupBox4.Controls.Add(this.radioNotPrice);
- this.groupBox4.Location = new System.Drawing.Point(703, 61);
- this.groupBox4.Margin = new System.Windows.Forms.Padding(4);
- this.groupBox4.Name = "groupBox4";
- this.groupBox4.Padding = new System.Windows.Forms.Padding(4);
- this.groupBox4.Size = new System.Drawing.Size(266, 68);
- this.groupBox4.TabIndex = 9;
- this.groupBox4.TabStop = false;
- this.groupBox4.Tag = "";
- this.groupBox4.Text = "计件模式";
- //
- // radioJobsPrice
- //
- this.radioJobsPrice.AutoSize = true;
- this.radioJobsPrice.Checked = true;
- this.radioJobsPrice.Location = new System.Drawing.Point(99, 30);
- this.radioJobsPrice.Margin = new System.Windows.Forms.Padding(4);
- this.radioJobsPrice.Name = "radioJobsPrice";
- this.radioJobsPrice.Size = new System.Drawing.Size(103, 19);
- this.radioJobsPrice.TabIndex = 1;
- this.radioJobsPrice.TabStop = true;
- this.radioJobsPrice.Text = "同工种策略";
- this.radioJobsPrice.UseVisualStyleBackColor = true;
- //
- // radioNotPrice
- //
- this.radioNotPrice.AutoSize = true;
- this.radioNotPrice.Location = new System.Drawing.Point(12, 30);
- this.radioNotPrice.Margin = new System.Windows.Forms.Padding(4);
- this.radioNotPrice.Name = "radioNotPrice";
- this.radioNotPrice.Size = new System.Drawing.Size(73, 19);
- this.radioNotPrice.TabIndex = 0;
- this.radioNotPrice.Text = "不计件";
- this.radioNotPrice.UseVisualStyleBackColor = true;
- //
- // 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(191, 169);
- this.c_Label5.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
- this.c_Label5.Name = "c_Label5";
- this.c_Label5.Size = new System.Drawing.Size(67, 15);
- this.c_Label5.TabIndex = 20;
- this.c_Label5.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(191, 136);
- this.c_Label4.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
- this.c_Label4.Name = "c_Label4";
- this.c_Label4.Size = new System.Drawing.Size(232, 15);
- this.c_Label4.TabIndex = 19;
- this.c_Label4.Text = "(同级别排序大的优先记录漏扫)";
- //
- // txtDisplayNo
- //
- this.txtDisplayNo.AllowNegative = false;
- this.txtDisplayNo.BackColor = System.Drawing.SystemColors.Window;
- this.txtDisplayNo.BackgroundColor = System.Drawing.SystemColors.Window;
- this.txtDisplayNo.EditingControlFormattedValue = "";
- this.txtDisplayNo.ErrorMessage = "";
- this.txtDisplayNo.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- this.txtDisplayNo.ImeMode = System.Windows.Forms.ImeMode.Off;
- this.txtDisplayNo.Location = new System.Drawing.Point(103, 165);
- this.txtDisplayNo.Margin = new System.Windows.Forms.Padding(4);
- this.txtDisplayNo.MaxLength = 2;
- this.txtDisplayNo.MaxValue = new decimal(new int[] {
- 99,
- 0,
- 0,
- 0});
- this.txtDisplayNo.MinValue = new decimal(new int[] {
- 0,
- 0,
- 0,
- 0});
- this.txtDisplayNo.Name = "txtDisplayNo";
- this.txtDisplayNo.Size = new System.Drawing.Size(79, 25);
- this.txtDisplayNo.TabIndex = 18;
- this.txtDisplayNo.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(23, 169);
- this.lblDisplayNo.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
- this.lblDisplayNo.Name = "lblDisplayNo";
- this.lblDisplayNo.Size = new System.Drawing.Size(67, 15);
- this.lblDisplayNo.TabIndex = 17;
- this.lblDisplayNo.Text = "显示顺序";
- //
- // 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(103, 132);
- this.txtmisspriority.Margin = new System.Windows.Forms.Padding(4);
- this.txtmisspriority.MaxLength = 1;
- this.txtmisspriority.MaxValue = new decimal(new int[] {
- 9,
- 0,
- 0,
- 0});
- this.txtmisspriority.MinValue = new decimal(new int[] {
- 0,
- 0,
- 0,
- 0});
- this.txtmisspriority.Name = "txtmisspriority";
- this.txtmisspriority.Size = new System.Drawing.Size(79, 25);
- this.txtmisspriority.TabIndex = 16;
- this.txtmisspriority.TextValue = "";
- //
- // 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(8, 136);
- this.lblmisspriority.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
- this.lblmisspriority.Name = "lblmisspriority";
- this.lblmisspriority.Size = new System.Drawing.Size(82, 15);
- this.lblmisspriority.TabIndex = 15;
- this.lblmisspriority.Text = "漏扫排序号";
- //
- // sbOrganizationID
- //
- this.sbOrganizationID.BackColor = System.Drawing.Color.Transparent;
- this.sbOrganizationID.CurrentUserOrganizationCode = null;
- this.sbOrganizationID.DataSource = null;
- this.sbOrganizationID.Enabled = true;
- this.sbOrganizationID.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- this.sbOrganizationID.IsMustInput = true;
- this.sbOrganizationID.IsOnlyDisplayEnd = false;
- this.sbOrganizationID.Location = new System.Drawing.Point(700, 24);
- this.sbOrganizationID.Margin = new System.Windows.Forms.Padding(5);
- this.sbOrganizationID.Name = "sbOrganizationID";
- this.sbOrganizationID.OrganizationCode = "";
- this.sbOrganizationID.OrganizationIDS = null;
- this.sbOrganizationID.OrganizationName = "";
- this.sbOrganizationID.PurviewType = ((byte)(0));
- this.sbOrganizationID.Size = new System.Drawing.Size(269, 26);
- this.sbOrganizationID.TabIndex = 6;
- this.sbOrganizationID.TxtOrganizationBackColor = System.Drawing.SystemColors.Control;
- //
- // txtRemarks
- //
- this.txtRemarks.BackColor = System.Drawing.SystemColors.Window;
- this.txtRemarks.BackgroundColor = System.Drawing.SystemColors.Window;
- this.txtRemarks.ErrorMessage = "";
- 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(745, 151);
- this.txtRemarks.Margin = new System.Windows.Forms.Padding(4);
- this.txtRemarks.MaxLength = 500;
- this.txtRemarks.Multiline = true;
- this.txtRemarks.Name = "txtRemarks";
- this.txtRemarks.Size = new System.Drawing.Size(224, 59);
- this.txtRemarks.TabIndex = 11;
- //
- // txtProcedureName
- //
- this.txtProcedureName.BackColor = System.Drawing.Color.Yellow;
- this.txtProcedureName.BackgroundColor = System.Drawing.SystemColors.Window;
- this.txtProcedureName.ErrorMessage = "必须输入项目";
- this.txtProcedureName.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- this.txtProcedureName.HasError = true;
- this.txtProcedureName.IsMustInput = true;
- this.txtProcedureName.Location = new System.Drawing.Point(317, 25);
- this.txtProcedureName.Margin = new System.Windows.Forms.Padding(4);
- this.txtProcedureName.MaxLength = 50;
- this.txtProcedureName.Name = "txtProcedureName";
- this.txtProcedureName.Size = new System.Drawing.Size(143, 25);
- this.txtProcedureName.TabIndex = 3;
- //
- // txtProcedureCode
- //
- this.txtProcedureCode.BackColor = System.Drawing.Color.Yellow;
- this.txtProcedureCode.BackgroundColor = System.Drawing.SystemColors.Window;
- this.txtProcedureCode.ErrorMessage = "必须输入项目";
- this.txtProcedureCode.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- this.txtProcedureCode.HasError = true;
- this.txtProcedureCode.IsMustInput = true;
- this.txtProcedureCode.Location = new System.Drawing.Point(87, 25);
- this.txtProcedureCode.Margin = new System.Windows.Forms.Padding(4);
- this.txtProcedureCode.MaxLength = 20;
- this.txtProcedureCode.Name = "txtProcedureCode";
- this.txtProcedureCode.Size = new System.Drawing.Size(143, 25);
- this.txtProcedureCode.TabIndex = 1;
- //
- // c_Label3
- //
- this.c_Label3.AutoSize = true;
- this.c_Label3.BackColor = System.Drawing.Color.Transparent;
- this.c_Label3.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- this.c_Label3.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(155)))), ((int)(((byte)(39)))), ((int)(((byte)(39)))));
- this.c_Label3.IsMustInput = true;
- this.c_Label3.Location = new System.Drawing.Point(469, 29);
- this.c_Label3.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
- this.c_Label3.Name = "c_Label3";
- this.c_Label3.Size = new System.Drawing.Size(67, 15);
- this.c_Label3.TabIndex = 4;
- this.c_Label3.Text = "工序类型";
- //
- // c_Label2
- //
- this.c_Label2.AutoSize = true;
- this.c_Label2.BackColor = System.Drawing.Color.Transparent;
- this.c_Label2.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- this.c_Label2.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(155)))), ((int)(((byte)(39)))), ((int)(((byte)(39)))));
- this.c_Label2.IsMustInput = true;
- this.c_Label2.Location = new System.Drawing.Point(239, 29);
- this.c_Label2.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
- this.c_Label2.Name = "c_Label2";
- this.c_Label2.Size = new System.Drawing.Size(67, 15);
- this.c_Label2.TabIndex = 2;
- this.c_Label2.Text = "工序名称";
- //
- // c_Label1
- //
- this.c_Label1.AutoSize = true;
- this.c_Label1.BackColor = System.Drawing.Color.Transparent;
- this.c_Label1.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- this.c_Label1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(155)))), ((int)(((byte)(39)))), ((int)(((byte)(39)))));
- this.c_Label1.IsMustInput = true;
- this.c_Label1.Location = new System.Drawing.Point(8, 29);
- this.c_Label1.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
- this.c_Label1.Name = "c_Label1";
- this.c_Label1.Size = new System.Drawing.Size(67, 15);
- this.c_Label1.TabIndex = 0;
- this.c_Label1.Text = "工序编号";
- //
- // GetDataOgrp
- //
- this.GetDataOgrp.BackColor = System.Drawing.Color.Transparent;
- this.GetDataOgrp.Controls.Add(this.rbtnMore);
- this.GetDataOgrp.Controls.Add(this.rbtnOne);
- this.GetDataOgrp.Location = new System.Drawing.Point(11, 61);
- this.GetDataOgrp.Margin = new System.Windows.Forms.Padding(4);
- this.GetDataOgrp.Name = "GetDataOgrp";
- this.GetDataOgrp.Padding = new System.Windows.Forms.Padding(4);
- this.GetDataOgrp.Size = new System.Drawing.Size(220, 68);
- this.GetDataOgrp.TabIndex = 7;
- this.GetDataOgrp.TabStop = false;
- this.GetDataOgrp.Text = "采集方式";
- //
- // rbtnMore
- //
- this.rbtnMore.AutoSize = true;
- this.rbtnMore.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- this.rbtnMore.Location = new System.Drawing.Point(121, 30);
- this.rbtnMore.Margin = new System.Windows.Forms.Padding(4);
- this.rbtnMore.Name = "rbtnMore";
- this.rbtnMore.Size = new System.Drawing.Size(88, 19);
- this.rbtnMore.TabIndex = 1;
- this.rbtnMore.Text = "集中采集";
- this.rbtnMore.UseVisualStyleBackColor = true;
- //
- // rbtnOne
- //
- this.rbtnOne.AutoSize = true;
- this.rbtnOne.Checked = true;
- this.rbtnOne.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- this.rbtnOne.Location = new System.Drawing.Point(8, 30);
- this.rbtnOne.Margin = new System.Windows.Forms.Padding(4);
- this.rbtnOne.Name = "rbtnOne";
- this.rbtnOne.Size = new System.Drawing.Size(88, 19);
- this.rbtnOne.TabIndex = 0;
- this.rbtnOne.TabStop = true;
- this.rbtnOne.Text = "单点采集";
- this.rbtnOne.UseVisualStyleBackColor = true;
- //
- // 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(241, 61);
- this.groupBox2.Margin = new System.Windows.Forms.Padding(4);
- this.groupBox2.Name = "groupBox2";
- this.groupBox2.Padding = new System.Windows.Forms.Padding(4);
- this.groupBox2.Size = new System.Drawing.Size(220, 68);
- this.groupBox2.TabIndex = 8;
- this.groupBox2.TabStop = false;
- this.groupBox2.Tag = "";
- this.groupBox2.Text = "必须工序";
- //
- // rBtnNoNeed
- //
- this.rBtnNoNeed.AutoSize = true;
- this.rBtnNoNeed.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- this.rBtnNoNeed.Location = new System.Drawing.Point(124, 30);
- this.rBtnNoNeed.Margin = new System.Windows.Forms.Padding(4);
- this.rBtnNoNeed.Name = "rBtnNoNeed";
- this.rBtnNoNeed.Size = new System.Drawing.Size(73, 19);
- this.rBtnNoNeed.TabIndex = 1;
- this.rBtnNoNeed.Text = "非必须";
- this.rBtnNoNeed.UseVisualStyleBackColor = true;
- //
- // rBtnNeed
- //
- this.rBtnNeed.AutoSize = true;
- this.rBtnNeed.Checked = true;
- this.rBtnNeed.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- this.rBtnNeed.Location = new System.Drawing.Point(23, 30);
- this.rBtnNeed.Margin = new System.Windows.Forms.Padding(4);
- this.rBtnNeed.Name = "rBtnNeed";
- this.rBtnNeed.Size = new System.Drawing.Size(58, 19);
- this.rBtnNeed.TabIndex = 0;
- this.rBtnNeed.TabStop = true;
- this.rBtnNeed.Text = "必须";
- this.rBtnNeed.UseVisualStyleBackColor = true;
- //
- // label1
- //
- this.label1.AutoSize = true;
- this.label1.Location = new System.Drawing.Point(700, 174);
- this.label1.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
- this.label1.Name = "label1";
- this.label1.Size = new System.Drawing.Size(37, 15);
- this.label1.TabIndex = 10;
- this.label1.Text = "备注";
- //
- // groupBox3
- //
- this.groupBox3.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
- | System.Windows.Forms.AnchorStyles.Left)
- | System.Windows.Forms.AnchorStyles.Right)));
- this.groupBox3.BackColor = System.Drawing.Color.Transparent;
- this.groupBox3.Controls.Add(this.tabControl);
- this.groupBox3.Location = new System.Drawing.Point(16, 228);
- this.groupBox3.Margin = new System.Windows.Forms.Padding(4);
- this.groupBox3.Name = "groupBox3";
- this.groupBox3.Padding = new System.Windows.Forms.Padding(4);
- this.groupBox3.Size = new System.Drawing.Size(984, 365);
- this.groupBox3.TabIndex = 1;
- this.groupBox3.TabStop = false;
- this.groupBox3.Text = "控制属性";
- //
- // tabControl
- //
- this.tabControl.Controls.Add(this.tabPage1);
- this.tabControl.Controls.Add(this.tabPage2);
- this.tabControl.Controls.Add(this.tabPage3);
- this.tabControl.Controls.Add(this.tabPage4);
- this.tabControl.Dock = System.Windows.Forms.DockStyle.Fill;
- this.tabControl.Location = new System.Drawing.Point(4, 22);
- this.tabControl.Margin = new System.Windows.Forms.Padding(4);
- this.tabControl.Name = "tabControl";
- this.tabControl.SelectedIndex = 0;
- this.tabControl.Size = new System.Drawing.Size(976, 339);
- this.tabControl.TabIndex = 0;
- //
- // tabPage1
- //
- this.tabPage1.Controls.Add(this.dgvGoods);
- this.tabPage1.Location = new System.Drawing.Point(4, 25);
- this.tabPage1.Margin = new System.Windows.Forms.Padding(0);
- this.tabPage1.Name = "tabPage1";
- this.tabPage1.Size = new System.Drawing.Size(968, 310);
- this.tabPage1.TabIndex = 0;
- this.tabPage1.Text = "检验产品";
- this.tabPage1.UseVisualStyleBackColor = true;
- //
- // dgvGoods
- //
- this.dgvGoods.AllowUserToModifyRows = true;
- dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235)))));
- this.dgvGoods.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1;
- this.dgvGoods.CellBackColorNochanged = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
- this.dgvGoods.CellBackColorReadOnly = System.Drawing.SystemColors.Control;
- this.dgvGoods.CellHeight = 23;
- this.dgvGoods.ChildNodeColumnName = null;
- this.dgvGoods.ChildNodeColumnText = null;
- this.dgvGoods.ColumnDeep = 1;
- this.dgvGoods.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.Single;
- dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
- dataGridViewCellStyle2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(58)))), ((int)(((byte)(70)))));
- dataGridViewCellStyle2.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- dataGridViewCellStyle2.ForeColor = System.Drawing.Color.White;
- dataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Highlight;
- dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
- dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
- this.dgvGoods.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2;
- this.dgvGoods.ColumnHeadersHeight = 29;
- this.dgvGoods.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
- this.dgvGoods.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
- this.GoodsID,
- this.GoodsCode,
- this.GoodsName,
- this.GoodsTypeName,
- this.GoodsSpecification});
- this.dgvGoods.ColumnTreeView = null;
- this.dgvGoods.ContextMenuVisible = ((Dongke.IBOSS.PRD.Basics.BaseControls.C_DataGridView.ContextMenuVisibleFlags)((Dongke.IBOSS.PRD.Basics.BaseControls.C_DataGridView.ContextMenuVisibleFlags.Refine | Dongke.IBOSS.PRD.Basics.BaseControls.C_DataGridView.ContextMenuVisibleFlags.FileOut)));
- dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
- dataGridViewCellStyle3.BackColor = System.Drawing.SystemColors.Window;
- dataGridViewCellStyle3.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- dataGridViewCellStyle3.ForeColor = System.Drawing.SystemColors.ControlText;
- dataGridViewCellStyle3.SelectionBackColor = System.Drawing.SystemColors.Highlight;
- dataGridViewCellStyle3.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
- dataGridViewCellStyle3.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
- this.dgvGoods.DefaultCellStyle = dataGridViewCellStyle3;
- this.dgvGoods.Dock = System.Windows.Forms.DockStyle.Fill;
- this.dgvGoods.DynamicColumnName = "";
- this.dgvGoods.EnableHeadersVisualStyles = false;
- this.dgvGoods.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- this.dgvGoods.FormatQuantityColumns = null;
- this.dgvGoods.HorizontalMergeColumn = null;
- this.dgvGoods.IsAutoCountSum = true;
- this.dgvGoods.IsAutoResizeColumns = false;
- this.dgvGoods.IsClickF12 = false;
- this.dgvGoods.IsOpenMergeCellFlag = false;
- this.dgvGoods.IsSubTotalFlag = false;
- this.dgvGoods.IsTopDeep = false;
- this.dgvGoods.Location = new System.Drawing.Point(0, 0);
- this.dgvGoods.Margin = new System.Windows.Forms.Padding(4);
- this.dgvGoods.MergeColumnNames = null;
- this.dgvGoods.MergeDetailColumnNames = null;
- this.dgvGoods.MergeDetailOnlyColumn = null;
- this.dgvGoods.MergeOnlyColumn = null;
- this.dgvGoods.Name = "dgvGoods";
- this.dgvGoods.RefreshAtHscroll = false;
- this.dgvGoods.RowHeadersWidth = 50;
- this.dgvGoods.RowHeadersWidthSizeMode = System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode.DisableResizing;
- dataGridViewCellStyle4.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(159)))), ((int)(((byte)(39)))), ((int)(((byte)(39)))));
- this.dgvGoods.RowsDefaultCellStyle = dataGridViewCellStyle4;
- this.dgvGoods.RowTemplate.Height = 21;
- this.dgvGoods.Size = new System.Drawing.Size(968, 310);
- this.dgvGoods.SortOrderColumnName = null;
- this.dgvGoods.TabIndex = 0;
- this.dgvGoods.Tag = true;
- this.dgvGoods.TotalSumColumns = null;
- this.dgvGoods.ViewRowFilter = "";
- this.dgvGoods.CellBeginEdit += new System.Windows.Forms.DataGridViewCellCancelEventHandler(this.dgvGoods_CellBeginEdit);
- this.dgvGoods.CellValueChanged += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvGoods_CellValueChanged);
- //
- // GoodsID
- //
- this.GoodsID.DataPropertyName = "GoodsID";
- this.GoodsID.HeaderText = "GoodsID";
- this.GoodsID.MinimumWidth = 6;
- this.GoodsID.Name = "GoodsID";
- this.GoodsID.Visible = false;
- this.GoodsID.Width = 125;
- //
- // GoodsCode
- //
- this.GoodsCode.DataPropertyName = "GoodsCode";
- this.GoodsCode.HeaderText = "产品编码";
- this.GoodsCode.MinimumWidth = 6;
- this.GoodsCode.Name = "GoodsCode";
- this.GoodsCode.Resizable = System.Windows.Forms.DataGridViewTriState.True;
- this.GoodsCode.Width = 125;
- //
- // GoodsName
- //
- this.GoodsName.DataPropertyName = "GoodsName";
- this.GoodsName.HeaderText = "产品名称";
- this.GoodsName.MinimumWidth = 6;
- this.GoodsName.Name = "GoodsName";
- this.GoodsName.ReadOnly = true;
- this.GoodsName.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
- 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.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
- 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.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
- this.GoodsSpecification.Width = 125;
- //
- // tabPage2
- //
- this.tabPage2.Controls.Add(this.dgvUser);
- this.tabPage2.Location = new System.Drawing.Point(4, 25);
- this.tabPage2.Margin = new System.Windows.Forms.Padding(0);
- this.tabPage2.Name = "tabPage2";
- this.tabPage2.Size = new System.Drawing.Size(968, 310);
- this.tabPage2.TabIndex = 1;
- this.tabPage2.Text = "检验工号";
- this.tabPage2.UseVisualStyleBackColor = true;
- //
- // dgvUser
- //
- this.dgvUser.AllowUserToModifyRows = true;
- dataGridViewCellStyle5.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235)))));
- this.dgvUser.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle5;
- this.dgvUser.CellBackColorNochanged = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
- this.dgvUser.CellBackColorReadOnly = System.Drawing.SystemColors.Control;
- this.dgvUser.CellHeight = 23;
- this.dgvUser.ChildNodeColumnName = null;
- this.dgvUser.ChildNodeColumnText = null;
- this.dgvUser.ColumnDeep = 1;
- this.dgvUser.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.Single;
- dataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
- dataGridViewCellStyle6.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(58)))), ((int)(((byte)(70)))));
- dataGridViewCellStyle6.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- dataGridViewCellStyle6.ForeColor = System.Drawing.Color.White;
- dataGridViewCellStyle6.SelectionBackColor = System.Drawing.SystemColors.Highlight;
- dataGridViewCellStyle6.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
- dataGridViewCellStyle6.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
- this.dgvUser.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle6;
- this.dgvUser.ColumnHeadersHeight = 29;
- this.dgvUser.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
- this.dgvUser.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
- this.User_NO,
- this.UserID,
- this.UserCode,
- this.UserName});
- this.dgvUser.ColumnTreeView = null;
- this.dgvUser.ContextMenuVisible = ((Dongke.IBOSS.PRD.Basics.BaseControls.C_DataGridView.ContextMenuVisibleFlags)((Dongke.IBOSS.PRD.Basics.BaseControls.C_DataGridView.ContextMenuVisibleFlags.Refine | Dongke.IBOSS.PRD.Basics.BaseControls.C_DataGridView.ContextMenuVisibleFlags.FileOut)));
- this.dgvUser.Dock = System.Windows.Forms.DockStyle.Fill;
- this.dgvUser.DynamicColumnName = "";
- this.dgvUser.EnableHeadersVisualStyles = false;
- this.dgvUser.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- this.dgvUser.FormatQuantityColumns = null;
- this.dgvUser.HorizontalMergeColumn = null;
- this.dgvUser.IsAutoCountSum = true;
- this.dgvUser.IsAutoResizeColumns = false;
- this.dgvUser.IsClickF12 = false;
- this.dgvUser.IsOpenMergeCellFlag = false;
- this.dgvUser.IsSubTotalFlag = false;
- this.dgvUser.IsTopDeep = false;
- this.dgvUser.Location = new System.Drawing.Point(0, 0);
- this.dgvUser.Margin = new System.Windows.Forms.Padding(4);
- this.dgvUser.MergeColumnNames = null;
- this.dgvUser.MergeDetailColumnNames = null;
- this.dgvUser.MergeDetailOnlyColumn = null;
- this.dgvUser.MergeOnlyColumn = null;
- this.dgvUser.Name = "dgvUser";
- this.dgvUser.RefreshAtHscroll = false;
- this.dgvUser.RowHeadersWidth = 50;
- this.dgvUser.RowHeadersWidthSizeMode = System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode.DisableResizing;
- dataGridViewCellStyle7.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(159)))), ((int)(((byte)(39)))), ((int)(((byte)(39)))));
- this.dgvUser.RowsDefaultCellStyle = dataGridViewCellStyle7;
- this.dgvUser.RowTemplate.Height = 21;
- this.dgvUser.Size = new System.Drawing.Size(968, 310);
- this.dgvUser.SortOrderColumnName = null;
- this.dgvUser.TabIndex = 55;
- this.dgvUser.Tag = true;
- this.dgvUser.TotalSumColumns = null;
- this.dgvUser.ViewRowFilter = "";
- this.dgvUser.CellBeginEdit += new System.Windows.Forms.DataGridViewCellCancelEventHandler(this.dgvUser_CellBeginEdit);
- this.dgvUser.CellValueChanged += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvUser_CellValueChanged);
- //
- // User_NO
- //
- this.User_NO.DataPropertyName = "UserID";
- this.User_NO.FillWeight = 200F;
- this.User_NO.HeaderText = "工号";
- this.User_NO.MinimumWidth = 6;
- this.User_NO.Name = "User_NO";
- this.User_NO.Resizable = System.Windows.Forms.DataGridViewTriState.True;
- this.User_NO.Visible = false;
- this.User_NO.Width = 200;
- //
- // UserID
- //
- this.UserID.DataPropertyName = "UserID";
- this.UserID.HeaderText = "工号ID";
- this.UserID.MinimumWidth = 6;
- this.UserID.Name = "UserID";
- this.UserID.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
- 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.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
- 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.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
- this.UserName.Width = 125;
- //
- // tabPage3
- //
- this.tabPage3.Controls.Add(this.dgvDefect);
- this.tabPage3.Location = new System.Drawing.Point(4, 25);
- this.tabPage3.Margin = new System.Windows.Forms.Padding(0);
- this.tabPage3.Name = "tabPage3";
- this.tabPage3.Size = new System.Drawing.Size(968, 310);
- this.tabPage3.TabIndex = 2;
- this.tabPage3.Text = "可检缺陷";
- this.tabPage3.UseVisualStyleBackColor = true;
- //
- // dgvDefect
- //
- this.dgvDefect.AllowUserToModifyRows = true;
- dataGridViewCellStyle8.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235)))));
- this.dgvDefect.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle8;
- this.dgvDefect.CellBackColorNochanged = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
- this.dgvDefect.CellBackColorReadOnly = System.Drawing.SystemColors.Control;
- this.dgvDefect.CellHeight = 23;
- this.dgvDefect.ChildNodeColumnName = null;
- this.dgvDefect.ChildNodeColumnText = null;
- this.dgvDefect.ColumnDeep = 1;
- this.dgvDefect.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.Single;
- dataGridViewCellStyle9.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
- dataGridViewCellStyle9.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(58)))), ((int)(((byte)(70)))));
- dataGridViewCellStyle9.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- dataGridViewCellStyle9.ForeColor = System.Drawing.Color.White;
- dataGridViewCellStyle9.SelectionBackColor = System.Drawing.SystemColors.Highlight;
- dataGridViewCellStyle9.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
- dataGridViewCellStyle9.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
- this.dgvDefect.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle9;
- this.dgvDefect.ColumnHeadersHeight = 29;
- this.dgvDefect.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
- this.dgvDefect.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
- this.DefectID_NO,
- this.DefectID,
- this.DefectCode,
- this.DefectName});
- this.dgvDefect.ColumnTreeView = null;
- this.dgvDefect.ContextMenuVisible = ((Dongke.IBOSS.PRD.Basics.BaseControls.C_DataGridView.ContextMenuVisibleFlags)((Dongke.IBOSS.PRD.Basics.BaseControls.C_DataGridView.ContextMenuVisibleFlags.Refine | Dongke.IBOSS.PRD.Basics.BaseControls.C_DataGridView.ContextMenuVisibleFlags.FileOut)));
- this.dgvDefect.Dock = System.Windows.Forms.DockStyle.Fill;
- this.dgvDefect.DynamicColumnName = "";
- this.dgvDefect.EnableHeadersVisualStyles = false;
- this.dgvDefect.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- this.dgvDefect.FormatQuantityColumns = null;
- this.dgvDefect.HorizontalMergeColumn = null;
- this.dgvDefect.IsAutoCountSum = true;
- this.dgvDefect.IsAutoResizeColumns = false;
- this.dgvDefect.IsClickF12 = false;
- this.dgvDefect.IsOpenMergeCellFlag = false;
- this.dgvDefect.IsSubTotalFlag = false;
- this.dgvDefect.IsTopDeep = false;
- this.dgvDefect.Location = new System.Drawing.Point(0, 0);
- this.dgvDefect.Margin = new System.Windows.Forms.Padding(4);
- this.dgvDefect.MergeColumnNames = null;
- this.dgvDefect.MergeDetailColumnNames = null;
- this.dgvDefect.MergeDetailOnlyColumn = null;
- this.dgvDefect.MergeOnlyColumn = null;
- this.dgvDefect.Name = "dgvDefect";
- this.dgvDefect.RefreshAtHscroll = false;
- this.dgvDefect.RowHeadersWidth = 50;
- this.dgvDefect.RowHeadersWidthSizeMode = System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode.DisableResizing;
- dataGridViewCellStyle10.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(159)))), ((int)(((byte)(39)))), ((int)(((byte)(39)))));
- this.dgvDefect.RowsDefaultCellStyle = dataGridViewCellStyle10;
- this.dgvDefect.RowTemplate.Height = 21;
- this.dgvDefect.Size = new System.Drawing.Size(968, 310);
- this.dgvDefect.SortOrderColumnName = null;
- this.dgvDefect.TabIndex = 55;
- this.dgvDefect.Tag = true;
- this.dgvDefect.TotalSumColumns = null;
- this.dgvDefect.ViewRowFilter = "";
- this.dgvDefect.CellBeginEdit += new System.Windows.Forms.DataGridViewCellCancelEventHandler(this.dgvDefect_CellBeginEdit);
- this.dgvDefect.CellValueChanged += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvDefect_CellValueChanged);
- //
- // 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;
- //
- // DefectID
- //
- this.DefectID.DataPropertyName = "DefectID";
- this.DefectID.HeaderText = "DefectID";
- this.DefectID.MinimumWidth = 6;
- this.DefectID.Name = "DefectID";
- this.DefectID.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
- 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.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
- 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.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
- this.DefectName.Width = 125;
- //
- // tabPage4
- //
- this.tabPage4.Controls.Add(this.dgvMissDefect);
- this.tabPage4.Location = new System.Drawing.Point(4, 25);
- this.tabPage4.Margin = new System.Windows.Forms.Padding(4);
- this.tabPage4.Name = "tabPage4";
- this.tabPage4.Size = new System.Drawing.Size(968, 310);
- this.tabPage4.TabIndex = 3;
- this.tabPage4.Text = "漏检缺陷";
- this.tabPage4.UseVisualStyleBackColor = true;
- //
- // dgvMissDefect
- //
- this.dgvMissDefect.AllowUserToModifyRows = true;
- dataGridViewCellStyle11.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235)))));
- this.dgvMissDefect.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle11;
- this.dgvMissDefect.CellBackColorNochanged = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
- this.dgvMissDefect.CellBackColorReadOnly = System.Drawing.SystemColors.Control;
- this.dgvMissDefect.CellHeight = 23;
- this.dgvMissDefect.ChildNodeColumnName = null;
- this.dgvMissDefect.ChildNodeColumnText = null;
- this.dgvMissDefect.ColumnDeep = 1;
- this.dgvMissDefect.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.Single;
- dataGridViewCellStyle12.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
- dataGridViewCellStyle12.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(58)))), ((int)(((byte)(70)))));
- dataGridViewCellStyle12.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- dataGridViewCellStyle12.ForeColor = System.Drawing.Color.White;
- dataGridViewCellStyle12.SelectionBackColor = System.Drawing.SystemColors.Highlight;
- dataGridViewCellStyle12.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
- dataGridViewCellStyle12.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
- this.dgvMissDefect.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle12;
- this.dgvMissDefect.ColumnHeadersHeight = 29;
- this.dgvMissDefect.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
- this.dgvMissDefect.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
- this.MissDefectID,
- this.MissDefectCode,
- this.MissDefectName,
- this.JobsID,
- this.JobsCode,
- this.JobsName});
- this.dgvMissDefect.ColumnTreeView = null;
- this.dgvMissDefect.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.dgvMissDefect.Dock = System.Windows.Forms.DockStyle.Fill;
- this.dgvMissDefect.DynamicColumnName = "";
- this.dgvMissDefect.EnableHeadersVisualStyles = false;
- this.dgvMissDefect.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- this.dgvMissDefect.FormatQuantityColumns = null;
- this.dgvMissDefect.HorizontalMergeColumn = null;
- this.dgvMissDefect.IsAutoCountSum = true;
- this.dgvMissDefect.IsAutoResizeColumns = false;
- this.dgvMissDefect.IsClickF12 = false;
- this.dgvMissDefect.IsOpenMergeCellFlag = false;
- this.dgvMissDefect.IsSubTotalFlag = false;
- this.dgvMissDefect.IsTopDeep = false;
- this.dgvMissDefect.Location = new System.Drawing.Point(0, 0);
- this.dgvMissDefect.Margin = new System.Windows.Forms.Padding(4);
- this.dgvMissDefect.MergeColumnNames = null;
- this.dgvMissDefect.MergeDetailColumnNames = null;
- this.dgvMissDefect.MergeDetailOnlyColumn = null;
- this.dgvMissDefect.MergeOnlyColumn = null;
- this.dgvMissDefect.Name = "dgvMissDefect";
- this.dgvMissDefect.RefreshAtHscroll = false;
- this.dgvMissDefect.RowHeadersWidth = 50;
- this.dgvMissDefect.RowHeadersWidthSizeMode = System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode.DisableResizing;
- dataGridViewCellStyle13.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(159)))), ((int)(((byte)(39)))), ((int)(((byte)(39)))));
- this.dgvMissDefect.RowsDefaultCellStyle = dataGridViewCellStyle13;
- this.dgvMissDefect.RowTemplate.Height = 21;
- this.dgvMissDefect.Size = new System.Drawing.Size(968, 310);
- this.dgvMissDefect.SortOrderColumnName = null;
- this.dgvMissDefect.TabIndex = 55;
- this.dgvMissDefect.Tag = true;
- this.dgvMissDefect.TotalSumColumns = null;
- this.dgvMissDefect.ViewRowFilter = "";
- this.dgvMissDefect.CellBeginEdit += new System.Windows.Forms.DataGridViewCellCancelEventHandler(this.dgvMissDefect_CellBeginEdit);
- this.dgvMissDefect.CellValueChanged += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvMissDefect_CellValueChanged);
- //
- // MissDefectID
- //
- this.MissDefectID.DataPropertyName = "DefectID";
- this.MissDefectID.HeaderText = "DefectID";
- this.MissDefectID.MinimumWidth = 6;
- this.MissDefectID.Name = "MissDefectID";
- this.MissDefectID.ReadOnly = true;
- this.MissDefectID.Visible = false;
- this.MissDefectID.Width = 125;
- //
- // MissDefectCode
- //
- this.MissDefectCode.DataPropertyName = "DefectCode";
- this.MissDefectCode.HeaderText = "缺陷编码";
- this.MissDefectCode.MinimumWidth = 6;
- this.MissDefectCode.Name = "MissDefectCode";
- this.MissDefectCode.Width = 125;
- //
- // MissDefectName
- //
- this.MissDefectName.DataPropertyName = "DefectName";
- this.MissDefectName.HeaderText = "缺陷名称";
- this.MissDefectName.MinimumWidth = 6;
- this.MissDefectName.Name = "MissDefectName";
- this.MissDefectName.ReadOnly = true;
- this.MissDefectName.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;
- //
- // 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(887, 588);
- this.btnCancel.Margin = new System.Windows.Forms.Padding(4);
- this.btnCancel.Name = "btnCancel";
- this.btnCancel.Size = new System.Drawing.Size(113, 38);
- this.btnCancel.TabIndex = 5;
- this.btnCancel.Text = "取消";
- this.btnCancel.UseVisualStyleBackColor = false;
- //
- // 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(765, 588);
- this.btnSave.Margin = new System.Windows.Forms.Padding(4);
- this.btnSave.Name = "btnSave";
- this.btnSave.Size = new System.Drawing.Size(113, 38);
- this.btnSave.TabIndex = 4;
- this.btnSave.Text = "保存";
- this.btnSave.UseVisualStyleBackColor = false;
- this.btnSave.Click += new System.EventHandler(this.btnSave_Click);
- //
- // cklSemiGoodsLevel
- //
- this.cklSemiGoodsLevel.FormattingEnabled = true;
- this.cklSemiGoodsLevel.Location = new System.Drawing.Point(24, 26);
- this.cklSemiGoodsLevel.Name = "cklSemiGoodsLevel";
- this.cklSemiGoodsLevel.Size = new System.Drawing.Size(172, 104);
- this.cklSemiGoodsLevel.TabIndex = 0;
- //
- // F_PC_0206
- //
- this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 15F);
- this.BackColor = System.Drawing.SystemColors.Control;
- this.ClientSize = new System.Drawing.Size(1016, 661);
- this.Controls.Add(this.btnCancel);
- this.Controls.Add(this.btnSave);
- this.Controls.Add(this.groupBox3);
- this.Controls.Add(this.groupBox1);
- this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
- this.IsSaveFormSize = false;
- this.Margin = new System.Windows.Forms.Padding(7, 6, 7, 6);
- this.MaximizeBox = false;
- this.MinimizeBox = false;
- this.Name = "F_PC_0206";
- this.ShowInTaskbar = false;
- this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
- this.StatusSizingGrip = false;
- this.Text = "检验属性";
- this.Load += new System.EventHandler(this.F_PC_0206_Load);
- this.Controls.SetChildIndex(this.groupBox1, 0);
- this.Controls.SetChildIndex(this.groupBox3, 0);
- this.Controls.SetChildIndex(this.btnSave, 0);
- this.Controls.SetChildIndex(this.btnCancel, 0);
- this.groupBox1.ResumeLayout(false);
- this.groupBox1.PerformLayout();
- this.groupBoxSemi.ResumeLayout(false);
- this.groupBox4.ResumeLayout(false);
- this.groupBox4.PerformLayout();
- this.GetDataOgrp.ResumeLayout(false);
- this.GetDataOgrp.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.dgvMissDefect)).EndInit();
- this.ResumeLayout(false);
- this.PerformLayout();
- }
- #endregion
-
- #region 事件
- /// <summary>
- /// 保存按钮事件
- /// </summary>
- /// <param name="sender"></param>
- /// <param name="e"></param>
- 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 (sbOrganizationID.OrganizationID == null)
- {
- MessageBox.Show(string.Format(Messages.MSG_CMN_W005, "组织机构"),
- this.Text,
- MessageBoxButtons.OK,
- MessageBoxIcon.Warning);
- this.sbOrganizationID.Focus();
- return;
- }
- #endregion
- #region 规则检验
- // 查询节点编码在本生产线中不重复
- // string procedureCode = this.node.pr; //此工序的Code
- 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.node.rrNodeList.OfType<FlowNode>().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 可检缺陷
- // 验证明细是否输入完整
- DataTable dtDefect = this.dgvDefect.DataSource as DataTable;
- for (int i = 0; i < dtDefect.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;
- }
- // 2层循环判断是否有重复的工号
- for (int j = i + 1; j < this.dgvDefect.Rows.Count; j++)
- {
- if (this.dgvDefect.Rows[i].Cells["DefectID"].Value + ""
- == this.dgvDefect.Rows[j].Cells["DefectID"].Value + "")
- {
- MessageBox.Show("缺陷在列表中重复出现。",
- this.Text,
- MessageBoxButtons.OK,
- MessageBoxIcon.Warning);
- this.tabControl.SelectedIndex = 2;
- this.dgvDefect.Rows[i].Cells["DefectID"].Selected = true;
- return;
- }
- }
- }
- #endregion
- #region 存在缺陷对应责任工种
- // 验证明细是否输入完整
- for (int i = 0; i < this.dgvMissDefect.Rows.Count; i++)
- {
- if (this.dgvMissDefect.Rows[i].IsNewRow)
- {
- continue;
- }
- // 存在缺陷不能为空
- if (string.IsNullOrEmpty(this.dgvMissDefect.Rows[i].Cells["MissDefectID"].Value + ""))
- {
- MessageBox.Show(string.Format(Messages.MSG_CMN_W005, "缺陷"),
- this.Text,
- MessageBoxButtons.OK,
- MessageBoxIcon.Warning);
- this.tabControl.SelectedIndex = 3;
- this.dgvMissDefect.Rows[i].Cells["MissDefectCode"].Selected = true;
- return;
- }
- // 责任工种不能为空
- if (string.IsNullOrEmpty(this.dgvMissDefect.Rows[i].Cells["JobsID"].Value + ""))
- {
- MessageBox.Show(string.Format(Messages.MSG_CMN_W005, "责任工种"),
- this.Text,
- MessageBoxButtons.OK,
- MessageBoxIcon.Warning);
- this.tabControl.SelectedIndex = 3;
- this.dgvMissDefect.Rows[i].Cells["JobsCode"].Selected = true;
- return;
- }
- // 2层循环判断是否有重复的工号
- for (int j = i + 1; j < dtDefect.Rows.Count; j++)// this.dgvDefect
- {
- if (this.dgvMissDefect.Rows[i].Cells["MissDefectID"].Value + "," + this.dgvMissDefect.Rows[i].Cells["JobsID"].Value
- == this.dgvMissDefect.Rows[j].Cells["MissDefectID"].Value + "," + this.dgvMissDefect.Rows[j].Cells["JobsID"].Value)
- {
- MessageBox.Show("缺陷与责任工种的组合在列表中重复出现。",
- this.Text,
- MessageBoxButtons.OK,
- MessageBoxIcon.Warning);
- this.tabControl.SelectedIndex = 3;
- this.dgvMissDefect.Rows[i].Selected = true;
- this.dgvMissDefect.Rows[j].Selected = true;
- return;
- }
- }
- }
- #endregion
- #endregion
- #region 工序节点赋值
- this._procedureEntity.ProcedureCode = this.txtProcedureCode.Text.Trim();
- this.node.Name = this.txtProcedureName.Text.Trim();
- this._procedureEntity.ProcedureName = this.txtProcedureName.Text.Trim();
- this._procedureEntity.ModelType = Convert.ToInt32(this.ddlProcessModelType.ListBox.SelectedValue);
- this._procedureEntity.OrganizationID = (int)this.sbOrganizationID.OrganizationID;
- this._procedureEntity.CollectType = rbtnMore.Checked ? 1 : 2;
- this._procedureEntity.MustFlag = rBtnNeed.Checked ? 1 : 2;
- if (this._procedureEntity.MustFlag == 1)
- { this.node.CanSkip = false; }
- else { this.node.CanSkip = true; }
- this._procedureEntity.DisplayNo = this.txtDisplayNo.Text.Trim() == "" ? 0 : Convert.ToInt32(this.txtDisplayNo.Text.Trim());
- // 计件模式
- //this.node.PieceType = rbtnMore.Checked ? 1 : 2;
- // 特殊返工工序
- //this.node.IsSpecialRework =
- this._procedureEntity.Remarks = this.txtRemarks.Text.Trim();
- // 生产产品
- 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.ProcedureDefectTable = this.dgvDefect.DataSource as DataTable;
- this._procedureEntity.ProcedureDefectTable.AcceptChanges();
- // 漏检缺陷
- this._procedureEntity.DefectProcedureJobsTable = this.dgvMissDefect.DataSource as DataTable;
- this._procedureEntity.DefectProcedureJobsTable.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;
- //打印类型 xuwei add 2019-11-20
- this._procedureEntity.PrintType = Convert.ToInt32(this.ddlPrintType.SelectedValue.ToString());
- //半检产品等级 xuwei add 2019-12-11
- //string cklStr = "";
- //for(int i=0;i<cklSemiGoodsLevel.CheckedValues.Length;i++)
- //{
- // if (i > 0) cklStr += ",";
- // cklStr += cklSemiGoodsLevel.CheckedValues[i].ToString();
- //}
- this._procedureEntity.SemiGoodsLevel = cklSemiGoodsLevel.CheckedValue;
- #region 计件方式
- this._procedureEntity.PieceType =
- radioJobsPrice.Checked ? Constant.ProcedurePieceType.JobsPiece.GetHashCode() : Constant.ProcedurePieceType.NoPiece.GetHashCode();
- #endregion
- #endregion
- if (this._IsEdit)
- {
- int result = PCModuleProxy.Service.SaveProcedureInfo(this._procedureEntity);
- if (result > Constant.INT_IS_ZERO)
- {
- MessageBox.Show(string.Format(Messages.MSG_CMN_I001, this.txtProcedureName.Text.Trim(), Constant.OPERATE_SAVE),
- this.Text, MessageBoxButtons.OK, MessageBoxIcon.Information);
- this.DialogResult = DialogResult.OK;
- }
- else if (result == Constant.RETURN_IS_DATACHANGED)
- {
- MessageBox.Show(Messages.MSG_CMN_W012,
- this.Text, MessageBoxButtons.OK, MessageBoxIcon.Warning);
- return;
- }
- else
- {
- MessageBox.Show(string.Format(Messages.MSG_CMN_W001, this.txtProcedureName.Text.Trim(), Constant.OPERATE_SAVE),
- this.Text, MessageBoxButtons.OK, MessageBoxIcon.Warning);
- return;
- }
- }
- this.Close();
- }
- catch (Exception ex)
- {
- // 对异常进行共通处理
- ExceptionManager.HandleEventException(this.ToString(),
- System.Reflection.MethodBase.GetCurrentMethod().Name, this.Text, ex);
- }
- }
- /// <summary>
- /// 窗体加载事件-添加控件
- /// </summary>
- /// <param name="sender"></param>
- /// <param name="e"></param>
- private void F_PC_0206_Load(object sender, EventArgs e)
- {
- try
- {
- if (IsReadOnlyCode)
- {
- //this.txtProcedureCode.ReadOnly = true;
- }
- this.tabPage4.Parent = null;//隐藏缺陷漏检选项卡
- #region 数据加载
- this.dgvGoods.AutoGenerateColumns = false;
- this.dgvUser.AutoGenerateColumns = false;
- this.dgvDefect.AutoGenerateColumns = false;
- this.dgvMissDefect.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.ProcedureDefectTable.Copy();
- this.dgvDefect.IsSetInputColumnsColor = true;
- // 加载漏检缺陷
- this.dgvMissDefect.DataSource = this._procedureEntity.DefectProcedureJobsTable.Copy();
- this.dgvMissDefect.IsSetInputColumnsColor = true;
- this.ddlProcessModelType.DisplayMember = "ProcedureModelTypeName";
- this.ddlProcessModelType.ValueMember = "ProcedureModelTypeID";
- DataTable dtModelType = LogInUserInfo.CurrentUser.GetSystemParameterByName(Constant.SysCacheTable.TP_SYS_ProcedureModelType); //SystemModuleProxy.Service.GetSYSProcessModelType();
- this.ddlProcessModelType.DataSource = dtModelType.Select("ProcedureModelTypeID<0 and Valueflag=1").CopyToDataTable();
- //加载 打印类型 xuwei begin 2019-11-20
- this.ddlPrintType.DisplayMember = "PRINTTYPENAME";
- this.ddlPrintType.ValueMember = "PRINTTYPEID";
- ClientRequestEntity cre = new ClientRequestEntity();
- cre.NameSpace = "PrintInfo";
- cre.Name = "GetPrintType";
- DataTable dtPrintType = SystemModuleProxy.Service.DoBarCodePrint(cre).Data.Tables[0];
- DataRow dr = dtPrintType.NewRow();
- dr["PRINTTYPENAME"] = "无";
- dr["PRINTTYPEID"] = "0";
- dtPrintType.Rows.InsertAt(dr, 0);
- this.ddlPrintType.DataSource = dtPrintType;
- this.ddlPrintType.SelectedValue = this._procedureEntity.PrintType;
- //加载 打印类型 xuwei end
- //加载 半检产品等级 xuwei begin 2019-12-5
- this.cklSemiGoodsLevel.DisplayMember = "GOODSLEVELNAME";
- this.cklSemiGoodsLevel.ValueMember = "GOODSLEVELTYPEID";
- cre.NameSpace = "ProcedureSemi";
- cre.Name = "GetGoodsGradeDataSemi";
- cre.Properties["procedureId"] = 0;
- DataTable dtGoodsLevel = PMModuleProxyNew.Service.HandleRequest(cre).Data.Tables[0];
- this.cklSemiGoodsLevel.DataSource = dtGoodsLevel;
- if(!string.IsNullOrEmpty(this._procedureEntity.SemiGoodsLevel))
- {
- string[] ids = this._procedureEntity.SemiGoodsLevel.Split(',');
- cklSemiGoodsLevel.SetItemCheckedByValueID(true, ids);
- }
- //加载 半检产品等级 xuwei end
- #endregion
- #region 窗体赋值
- if (string.IsNullOrEmpty(this._procedureEntity.ProcedureCode))
- {
- this.txtProcedureCode.Text = this._procedureEntity.NodeNo + "";
- this._procedureEntity.ProcedureCode = this._procedureEntity.NodeNo + "";
- }
- else
- {
- this.txtProcedureCode.Text = this._procedureEntity.ProcedureCode;
- }
- this.txtProcedureName.Text = this.node.Name;
- this.txtRemarks.Text = this._procedureEntity.Remarks;
- this.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.radioJobsPrice.Checked = (this._procedureEntity.PieceType == Constant.ProcedurePieceType.JobsPiece.GetHashCode());
- this.radioNotPrice.Checked = (this._procedureEntity.PieceType == Constant.ProcedurePieceType.NoPiece.GetHashCode());
- #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);
- }
- }
- /// <summary>
- /// 值改变事件
- /// </summary>
- /// <param name="sender"></param>
- /// <param name="e"></param>
- 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);
- }
- }
- /// <summary>
- /// 单元格开始编辑事件
- /// </summary>
- /// <param name="sender"></param>
- /// <param name="e"></param>
- private void dgvGoods_CellBeginEdit(object sender, DataGridViewCellCancelEventArgs e)
- {
- try
- {
- if (this.dgvGoods.Rows.Count <= 1 || !_ShowFlag)
- {
- return;
- }
- DataGridViewColumn columnItem = this.dgvGoods.Columns[e.ColumnIndex];
- if ("GoodsCode".Equals(columnItem.Name))
- {
- _ShowFlag = false;
- _goodsCodeValue = this.dgvGoods.Rows[e.RowIndex].Cells[columnItem.Name].Value + "";
- }
- _ShowFlag = true;
- }
- catch (Exception ex)
- {
- _ShowFlag = true;
- // 对异常进行共通处理
- ExceptionManager.HandleEventException(this.ToString(),
- System.Reflection.MethodBase.GetCurrentMethod().Name, this.Text, ex);
- }
- }
- /// <summary>
- /// 可采集工号输入
- /// </summary>
- /// <param name="sender"></param>
- /// <param name="e"></param>
- 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);
- }
- }
- /// <summary>
- /// 选择工号
- /// </summary>
- /// <param name="sender"></param>
- /// <param name="e"></param>
- 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);
- }
- }
- /// <summary>
- /// 缺陷输入
- /// </summary>
- /// <param name="sender"></param>
- /// <param name="e"></param>
- private void dgvDefect_CellBeginEdit(object sender, DataGridViewCellCancelEventArgs e)
- {
- try
- {
- if (this.dgvUser.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 + "";
- }
- }
- catch (Exception ex)
- {
- // 对异常进行共通处理
- ExceptionManager.HandleEventException(this.ToString(),
- System.Reflection.MethodBase.GetCurrentMethod().Name, this.Text, ex);
- }
- }
- /// <summary>
- /// 弹出窗体
- /// </summary>
- /// <param name="sender"></param>
- /// <param name="e"></param>
- 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.BindDefectRowDataSource(this.dgvDefect,
- e.RowIndex, columnItem.Name, _defectCodeValue);
- // 设置可输入单元格的颜色
- this.dgvDefect.IsSetInputColumnsColor = true;
- }
- _ShowFlag = true;
- }
- catch (Exception ex)
- {
- _ShowFlag = true;
- // 对异常进行共通处理
- ExceptionManager.HandleEventException(this.ToString(),
- System.Reflection.MethodBase.GetCurrentMethod().Name, this.Text, ex);
- }
- }
- /// <summary>
- /// 输入缺陷编码和名称
- /// </summary>
- /// <param name="sender"></param>
- /// <param name="e"></param>
- private void dgvMissDefect_CellBeginEdit(object sender, DataGridViewCellCancelEventArgs e)
- {
- try
- {
- if (this.dgvMissDefect.Rows.Count <= 1)
- {
- return;
- }
- DataGridViewColumn columnItem = this.dgvMissDefect.Columns[e.ColumnIndex];
- if ("DefectCode".Equals(columnItem.Name))
- {
- _defectCodeValue = this.dgvMissDefect.Rows[e.RowIndex].Cells[columnItem.Name].Value + "";
- }
- else if ("JobsCode".Equals(columnItem.Name))
- {
- _JobsCodeValue = this.dgvMissDefect.Rows[e.RowIndex].Cells[columnItem.Name].Value + "";
- }
- }
- catch (Exception ex)
- {
- // 对异常进行共通处理
- ExceptionManager.HandleEventException(this.ToString(),
- System.Reflection.MethodBase.GetCurrentMethod().Name, this.Text, ex);
- }
- }
- /// <summary>
- /// 值改变事件
- /// </summary>
- /// <param name="sender"></param>
- /// <param name="e"></param>
- private void dgvMissDefect_CellValueChanged(object sender, DataGridViewCellEventArgs e)
- {
- try
- {
- if (this.dgvMissDefect.Rows.Count <= 1 || !_ShowFlag)
- {
- return;
- }
- DataGridViewRow rowItem = this.dgvMissDefect.Rows[e.RowIndex];
- DataGridViewColumn columnItem = this.dgvMissDefect.Columns[e.ColumnIndex];
- if ("MissDefectCode".Equals(columnItem.Name))
- {
- _ShowFlag = false;
- FormUtility.BindDefectRowRepeatDataSource(this.dgvMissDefect,
- e.RowIndex, columnItem.Name, _defectCodeValue);
- // 设置可输入单元格的颜色
- this.dgvMissDefect.IsSetInputColumnsColor = true;
- }
- if ("JobsCode".Equals(columnItem.Name))
- {
- _ShowFlag = false;
- FormUtility.BindJobsOneRowDataSource(this.dgvMissDefect,
- e.RowIndex, columnItem.Name, _JobsCodeValue);
- // 设置可输入单元格的颜色
- this.dgvMissDefect.IsSetInputColumnsColor = true;
- }
- _ShowFlag = true;
- }
- catch (Exception ex)
- {
- _ShowFlag = true;
- // 对异常进行共通处理
- ExceptionManager.HandleEventException(this.ToString(),
- System.Reflection.MethodBase.GetCurrentMethod().Name, this.Text, ex);
- }
- }
- #endregion
- //xuwei add 2019-11-25
- private void ddlPrintType_SelectedIndexChanged(object sender, EventArgs e)
- {
- if (txtBarCodePrintCopies.Text != "")
- {
- if (ddlPrintType.SelectedIndex > 0 && Convert.ToInt32(txtBarCodePrintCopies.Text) == 0) txtBarCodePrintCopies.Text = "1";
- if (ddlPrintType.SelectedIndex == 0 && Convert.ToInt32(txtBarCodePrintCopies.Text) > 0) txtBarCodePrintCopies.Text = "0";
- }
- else
- {
- if (ddlPrintType.SelectedIndex > 0) txtBarCodePrintCopies.Text = "1";
- if (ddlPrintType.SelectedIndex == 0) txtBarCodePrintCopies.Text = "0";
- }
- }
- //xuwei add 2019-11-25
- private void txtBarCodePrintCopies_TextChanged(object sender, EventArgs e)
- {
- if (txtBarCodePrintCopies.Text != "")
- {
- if (Convert.ToInt32(txtBarCodePrintCopies.Text) == 0 && ddlPrintType.SelectedIndex > 0) ddlPrintType.SelectedIndex = 0;
- if (Convert.ToInt32(txtBarCodePrintCopies.Text) > 0 && ddlPrintType.SelectedIndex == 0) ddlPrintType.SelectedIndex = 1;
- }
- else
- {
- if (ddlPrintType.SelectedIndex > 0) ddlPrintType.SelectedIndex = 0;
- }
- }
- //xuwei add 2019-12-2
- private void cobProcessModelType_SelectedIndexChanged(object sender, EventArgs e)
- {
- //半检登记框组的显示隐藏
- if(ddlProcessModelType.SelectedValue != null)
- {
- string temp = ddlProcessModelType.SelectedValue.ToString();
- groupBoxSemi.Visible = ddlProcessModelType.SelectedValue.ToString() == "-3";
- }
- }
- }
- }
|