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