F_PC_0206.cs 108 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075
  1. /*******************************************************************************
  2. * Copyright(c) 2014 DongkeSoft All rights reserved. / Confidential
  3. * 类的信息:
  4. * 1.程序名称:F_PC_0206.cs
  5. * 2.功能描述:生产线配置检验属性
  6. * 编辑履历:
  7. * 作者 日期 版本 修改内容
  8. * 王鑫 2015/03/27 1.00 新建
  9. *******************************************************************************/
  10. using System;
  11. using System.Collections;
  12. using System.ComponentModel;
  13. using System.Data;
  14. using System.Linq;
  15. using System.Windows.Forms;
  16. using Dongke.IBOSS.PRD.Basics.BaseControls;
  17. using Dongke.IBOSS.PRD.Basics.BaseResources;
  18. using Dongke.IBOSS.PRD.Client.CommonModule;
  19. using Dongke.IBOSS.PRD.Client.Controls;
  20. using Dongke.IBOSS.PRD.Client.DataModels;
  21. using Dongke.IBOSS.PRD.WCF.Proxys;
  22. using Dongke.IBOSS.Basics.FlowSetting;
  23. using Dongke.IBOSS.PRD.WCF.Proxys.PCModuleService;
  24. using Dongke.IBOSS.PRD.WCF.DataModels;
  25. using Dongke.IBOSS.PRD.WCF.Services;
  26. using Dongke.IBOSS.PRD.Service.BarcodePrintService;
  27. using Dongke.IBOSS.PRD.Service.DataModels;
  28. using Dongke.IBOSS.PRD.WCF.Contracts;
  29. namespace Dongke.IBOSS.PRD.Client.PCModule
  30. {
  31. /// <summary>
  32. /// 生产线配置检验属性
  33. /// </summary>
  34. public partial class F_PC_0206 : FormBase
  35. {
  36. #region 成员
  37. private FlowNode node;//传入的编辑的节点
  38. private FlowBox control;//主父框架
  39. //private DateTime dt_TempDateTime;//记录就要被修改的值//流入节点的关系名称//流出节点的关系名称
  40. private ArrayList arr_InFlowLineList;//连入节点的名称
  41. private ArrayList arr_OutFlowLineList;//连出节点的名称
  42. //private string str_NodeTypeSeleBefor;
  43. private GroupBox groupBox1;
  44. private GroupBox GetDataOgrp;
  45. private GroupBox groupBox2;
  46. private Label label1;
  47. private GroupBox groupBox3;
  48. private TabControl tabControl;
  49. private TabPage tabPage1;
  50. private TabPage tabPage2;
  51. private TabPage tabPage3;
  52. private Dongke.IBOSS.PRD.Basics.BaseControls.C_Label c_Label1;
  53. private Dongke.IBOSS.PRD.Basics.BaseControls.C_Label c_Label2;
  54. private Dongke.IBOSS.PRD.Basics.BaseControls.C_Label c_Label3;
  55. private Dongke.IBOSS.PRD.Basics.BaseControls.C_TextBox txtProcedureCode;
  56. private Dongke.IBOSS.PRD.Basics.BaseControls.C_TextBox txtProcedureName;
  57. private Dongke.IBOSS.PRD.Basics.BaseControls.C_RadioButton rbtnOne;
  58. private Dongke.IBOSS.PRD.Basics.BaseControls.C_RadioButton rbtnMore;
  59. private Dongke.IBOSS.PRD.Basics.BaseControls.C_RadioButton rBtnNoNeed;
  60. private Dongke.IBOSS.PRD.Basics.BaseControls.C_RadioButton rBtnNeed;
  61. private Dongke.IBOSS.PRD.Basics.BaseControls.C_TextBox txtRemarks;
  62. private Dongke.IBOSS.PRD.Client.Controls.dkOrganizationSearchBox sbOrganizationID;
  63. private C_DataGridView dgvGoods;
  64. private C_DataGridView dgvUser;
  65. private C_DataGridView dgvDefect;
  66. private IContainer components;
  67. private DKListBoxComboBox ddlProcessModelType;//之前选择定的节点类型
  68. private string _goodsCodeValue;
  69. private string _userCodeValue;
  70. private string _defectCodeValue;
  71. private string _JobsCodeValue;
  72. private DataGridViewComboBoxColumn DefectID_NO;
  73. private DataGridViewTextBoxColumn DefectID;
  74. private DataGridViewTextBoxColumn DefectCode;
  75. private DataGridViewTextBoxColumn DefectName;
  76. private GroupBox groupBox4;
  77. public RadioButton radioJobsPrice;
  78. public RadioButton radioNotPrice;
  79. private TabPage tabPage4;
  80. private C_DataGridView dgvMissDefect;
  81. private DataGridViewTextBoxColumn MissDefectID;
  82. private DataGridViewTextBoxColumn MissDefectCode;
  83. private DataGridViewTextBoxColumn MissDefectName;
  84. private DataGridViewTextBoxColumn JobsID;
  85. private DataGridViewTextBoxColumn JobsCode;
  86. private DataGridViewTextBoxColumn JobsName;
  87. private bool _ShowFlag = true;
  88. private ProcedureEntity _procedureEntity = new ProcedureEntity();
  89. private bool _IsEdit = false;
  90. private bool _IsReadonlyCode = false;
  91. #endregion
  92. #region 属性
  93. /// <summary>
  94. /// 只读工序编码
  95. /// </summary>
  96. public bool IsReadOnlyCode
  97. {
  98. set
  99. {
  100. _IsReadonlyCode = value;
  101. }
  102. get
  103. {
  104. return _IsReadonlyCode;
  105. }
  106. }
  107. #endregion
  108. #region 构造函数
  109. public F_PC_0206(FlowNode node, FlowBox control)
  110. {
  111. //
  112. // Windows 窗体设计器支持所必需的
  113. //
  114. InitializeComponent();
  115. this.btnSave.Text = ButtonText.BTN_SAVE;
  116. this.btnCancel.Text = ButtonText.BTN_CANCEL;
  117. this.groupBox4.Visible = false;
  118. // 初始化
  119. Init(node, control);
  120. }
  121. public F_PC_0206(FlowNode node, FlowBox control,bool isedit)
  122. {
  123. //
  124. // Windows 窗体设计器支持所必需的
  125. //
  126. InitializeComponent();
  127. this.btnSave.Text = ButtonText.BTN_SAVE;
  128. this.btnCancel.Text = ButtonText.BTN_CANCEL;
  129. this._IsEdit = isedit;
  130. // this.txtProcedureCode.ReadOnly = true;
  131. this.ddlProcessModelType.Enabled = false;
  132. //xuwei fix 2019-10-17
  133. //this.rBtnNeed.Enabled = false;
  134. //this.rBtnNoNeed.Enabled = false;
  135. this.groupBox4.Visible = false;
  136. // 初始化
  137. Init(node, control);
  138. }
  139. /// <summary>
  140. /// 初始化
  141. /// </summary>
  142. private void Init(FlowNode node, FlowBox control)
  143. {
  144. this.node = node;
  145. this.control = control;
  146. this.arr_InFlowLineList = new ArrayList();
  147. this.arr_OutFlowLineList = new ArrayList();
  148. this.FormContentInit();
  149. }
  150. /// <summary>
  151. /// 填充节点信息到窗口中
  152. /// </summary>
  153. public void FormContentInit()
  154. {
  155. this._procedureEntity = (ProcedureEntity)this.node.TagNonSerialized;
  156. if (this._procedureEntity != null)
  157. {
  158. this.txtProcedureCode.Text = this._procedureEntity.ProcedureCode;
  159. this.txtProcedureName.Text = this.node.Name; ;
  160. this.txtRemarks.Text = this._procedureEntity.Remarks;
  161. this.rbtnOne.Checked = (this._procedureEntity.CollectType == 2);
  162. this.rbtnMore.Checked = (this._procedureEntity.CollectType == 1);
  163. this.rBtnNeed.Checked = (this._procedureEntity.MustFlag == 1);
  164. this.rBtnNoNeed.Checked = (this._procedureEntity.MustFlag == 0);
  165. this.txtBarCodePrintCopies.DataValue = this._procedureEntity.BarCodePrintCopies;
  166. this.ddlPrintType.SelectedValue = this._procedureEntity.PrintType;
  167. }
  168. }
  169. #endregion
  170. /// <summary>
  171. /// 清理所有正在使用的资源。
  172. /// </summary>
  173. protected override void Dispose(bool disposing)
  174. {
  175. if (disposing)
  176. {
  177. if (components != null)
  178. {
  179. components.Dispose();
  180. }
  181. }
  182. base.Dispose(disposing);
  183. }
  184. #region Windows 窗体设计器生成的代码
  185. /// <summary>
  186. /// 设计器支持所需的方法 - 不要使用代码编辑器修改
  187. /// 此方法的内容。
  188. /// </summary>
  189. private void InitializeComponent()
  190. {
  191. System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle53 = new System.Windows.Forms.DataGridViewCellStyle();
  192. System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle54 = new System.Windows.Forms.DataGridViewCellStyle();
  193. System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle55 = new System.Windows.Forms.DataGridViewCellStyle();
  194. System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle56 = new System.Windows.Forms.DataGridViewCellStyle();
  195. System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle57 = new System.Windows.Forms.DataGridViewCellStyle();
  196. System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle58 = new System.Windows.Forms.DataGridViewCellStyle();
  197. System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle59 = new System.Windows.Forms.DataGridViewCellStyle();
  198. System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle60 = new System.Windows.Forms.DataGridViewCellStyle();
  199. System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle61 = new System.Windows.Forms.DataGridViewCellStyle();
  200. System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle62 = new System.Windows.Forms.DataGridViewCellStyle();
  201. System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle63 = new System.Windows.Forms.DataGridViewCellStyle();
  202. System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle64 = new System.Windows.Forms.DataGridViewCellStyle();
  203. System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle65 = new System.Windows.Forms.DataGridViewCellStyle();
  204. System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(F_PC_0206));
  205. this.groupBox1 = new System.Windows.Forms.GroupBox();
  206. this.txtBarCodePrintCopies = new Dongke.IBOSS.PRD.Basics.BaseControls.C_DGV_Digital();
  207. this.c_Label5 = new Dongke.IBOSS.PRD.Basics.BaseControls.C_Label();
  208. this.c_Label4 = new Dongke.IBOSS.PRD.Basics.BaseControls.C_Label();
  209. this.txtDisplayNo = new Dongke.IBOSS.PRD.Basics.BaseControls.C_DGV_Digital();
  210. this.lblDisplayNo = new Dongke.IBOSS.PRD.Basics.BaseControls.C_Label();
  211. this.txtmisspriority = new Dongke.IBOSS.PRD.Basics.BaseControls.C_DGV_Digital();
  212. this.lblmisspriority = new Dongke.IBOSS.PRD.Basics.BaseControls.C_Label();
  213. this.groupBox4 = new System.Windows.Forms.GroupBox();
  214. this.radioJobsPrice = new System.Windows.Forms.RadioButton();
  215. this.radioNotPrice = new System.Windows.Forms.RadioButton();
  216. this.ddlProcessModelType = new Dongke.IBOSS.PRD.Basics.BaseControls.DKListBoxComboBox();
  217. this.txtRemarks = new Dongke.IBOSS.PRD.Basics.BaseControls.C_TextBox();
  218. this.txtProcedureName = new Dongke.IBOSS.PRD.Basics.BaseControls.C_TextBox();
  219. this.txtProcedureCode = new Dongke.IBOSS.PRD.Basics.BaseControls.C_TextBox();
  220. this.c_Label3 = new Dongke.IBOSS.PRD.Basics.BaseControls.C_Label();
  221. this.c_Label2 = new Dongke.IBOSS.PRD.Basics.BaseControls.C_Label();
  222. this.c_Label1 = new Dongke.IBOSS.PRD.Basics.BaseControls.C_Label();
  223. this.GetDataOgrp = new System.Windows.Forms.GroupBox();
  224. this.rbtnMore = new Dongke.IBOSS.PRD.Basics.BaseControls.C_RadioButton();
  225. this.rbtnOne = new Dongke.IBOSS.PRD.Basics.BaseControls.C_RadioButton();
  226. this.groupBox2 = new System.Windows.Forms.GroupBox();
  227. this.rBtnNoNeed = new Dongke.IBOSS.PRD.Basics.BaseControls.C_RadioButton();
  228. this.rBtnNeed = new Dongke.IBOSS.PRD.Basics.BaseControls.C_RadioButton();
  229. this.label1 = new System.Windows.Forms.Label();
  230. this.groupBox3 = new System.Windows.Forms.GroupBox();
  231. this.tabControl = new System.Windows.Forms.TabControl();
  232. this.tabPage1 = new System.Windows.Forms.TabPage();
  233. this.dgvGoods = new Dongke.IBOSS.PRD.Basics.BaseControls.C_DataGridView();
  234. this.GoodsID = new System.Windows.Forms.DataGridViewTextBoxColumn();
  235. this.GoodsCode = new System.Windows.Forms.DataGridViewTextBoxColumn();
  236. this.GoodsName = new System.Windows.Forms.DataGridViewTextBoxColumn();
  237. this.GoodsTypeName = new System.Windows.Forms.DataGridViewTextBoxColumn();
  238. this.GoodsSpecification = new System.Windows.Forms.DataGridViewTextBoxColumn();
  239. this.tabPage2 = new System.Windows.Forms.TabPage();
  240. this.dgvUser = new Dongke.IBOSS.PRD.Basics.BaseControls.C_DataGridView();
  241. this.User_NO = new System.Windows.Forms.DataGridViewComboBoxColumn();
  242. this.UserID = new System.Windows.Forms.DataGridViewTextBoxColumn();
  243. this.UserCode = new System.Windows.Forms.DataGridViewTextBoxColumn();
  244. this.UserName = new System.Windows.Forms.DataGridViewTextBoxColumn();
  245. this.tabPage3 = new System.Windows.Forms.TabPage();
  246. this.dgvDefect = new Dongke.IBOSS.PRD.Basics.BaseControls.C_DataGridView();
  247. this.DefectID_NO = new System.Windows.Forms.DataGridViewComboBoxColumn();
  248. this.DefectID = new System.Windows.Forms.DataGridViewTextBoxColumn();
  249. this.DefectCode = new System.Windows.Forms.DataGridViewTextBoxColumn();
  250. this.DefectName = new System.Windows.Forms.DataGridViewTextBoxColumn();
  251. this.tabPage4 = new System.Windows.Forms.TabPage();
  252. this.dgvMissDefect = new Dongke.IBOSS.PRD.Basics.BaseControls.C_DataGridView();
  253. this.MissDefectID = new System.Windows.Forms.DataGridViewTextBoxColumn();
  254. this.MissDefectCode = new System.Windows.Forms.DataGridViewTextBoxColumn();
  255. this.MissDefectName = new System.Windows.Forms.DataGridViewTextBoxColumn();
  256. this.JobsID = new System.Windows.Forms.DataGridViewTextBoxColumn();
  257. this.JobsCode = new System.Windows.Forms.DataGridViewTextBoxColumn();
  258. this.JobsName = new System.Windows.Forms.DataGridViewTextBoxColumn();
  259. this.btnCancel = new Dongke.IBOSS.PRD.Basics.BaseControls.C_Button();
  260. this.btnSave = new Dongke.IBOSS.PRD.Basics.BaseControls.C_Button();
  261. this.c_Label6 = new Dongke.IBOSS.PRD.Basics.BaseControls.C_Label();
  262. this.ddlPrintType = new Dongke.IBOSS.PRD.Basics.BaseControls.C_ComboBox();
  263. this.sbOrganizationID = new Dongke.IBOSS.PRD.Client.Controls.dkOrganizationSearchBox();
  264. this.groupBox1.SuspendLayout();
  265. this.groupBox4.SuspendLayout();
  266. this.GetDataOgrp.SuspendLayout();
  267. this.groupBox2.SuspendLayout();
  268. this.groupBox3.SuspendLayout();
  269. this.tabControl.SuspendLayout();
  270. this.tabPage1.SuspendLayout();
  271. ((System.ComponentModel.ISupportInitialize)(this.dgvGoods)).BeginInit();
  272. this.tabPage2.SuspendLayout();
  273. ((System.ComponentModel.ISupportInitialize)(this.dgvUser)).BeginInit();
  274. this.tabPage3.SuspendLayout();
  275. ((System.ComponentModel.ISupportInitialize)(this.dgvDefect)).BeginInit();
  276. this.tabPage4.SuspendLayout();
  277. ((System.ComponentModel.ISupportInitialize)(this.dgvMissDefect)).BeginInit();
  278. this.SuspendLayout();
  279. //
  280. // groupBox1
  281. //
  282. this.groupBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
  283. | System.Windows.Forms.AnchorStyles.Right)));
  284. this.groupBox1.BackColor = System.Drawing.Color.Transparent;
  285. this.groupBox1.Controls.Add(this.ddlPrintType);
  286. this.groupBox1.Controls.Add(this.c_Label6);
  287. this.groupBox1.Controls.Add(this.txtBarCodePrintCopies);
  288. this.groupBox1.Controls.Add(this.c_Label5);
  289. this.groupBox1.Controls.Add(this.c_Label4);
  290. this.groupBox1.Controls.Add(this.txtDisplayNo);
  291. this.groupBox1.Controls.Add(this.lblDisplayNo);
  292. this.groupBox1.Controls.Add(this.txtmisspriority);
  293. this.groupBox1.Controls.Add(this.lblmisspriority);
  294. this.groupBox1.Controls.Add(this.groupBox4);
  295. this.groupBox1.Controls.Add(this.ddlProcessModelType);
  296. this.groupBox1.Controls.Add(this.sbOrganizationID);
  297. this.groupBox1.Controls.Add(this.txtRemarks);
  298. this.groupBox1.Controls.Add(this.txtProcedureName);
  299. this.groupBox1.Controls.Add(this.txtProcedureCode);
  300. this.groupBox1.Controls.Add(this.c_Label3);
  301. this.groupBox1.Controls.Add(this.c_Label2);
  302. this.groupBox1.Controls.Add(this.c_Label1);
  303. this.groupBox1.Controls.Add(this.GetDataOgrp);
  304. this.groupBox1.Controls.Add(this.groupBox2);
  305. this.groupBox1.Controls.Add(this.label1);
  306. this.groupBox1.Location = new System.Drawing.Point(16, 15);
  307. this.groupBox1.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
  308. this.groupBox1.Name = "groupBox1";
  309. this.groupBox1.Padding = new System.Windows.Forms.Padding(4, 4, 4, 4);
  310. this.groupBox1.Size = new System.Drawing.Size(984, 196);
  311. this.groupBox1.TabIndex = 0;
  312. this.groupBox1.TabStop = false;
  313. this.groupBox1.Text = "基本属性";
  314. //
  315. // txtBarCodePrintCopies
  316. //
  317. this.txtBarCodePrintCopies.AllowNegative = false;
  318. this.txtBarCodePrintCopies.BackColor = System.Drawing.SystemColors.Window;
  319. this.txtBarCodePrintCopies.BackgroundColor = System.Drawing.SystemColors.Window;
  320. this.txtBarCodePrintCopies.EditingControlFormattedValue = "";
  321. this.txtBarCodePrintCopies.ErrorMessage = "";
  322. this.txtBarCodePrintCopies.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
  323. this.txtBarCodePrintCopies.ImeMode = System.Windows.Forms.ImeMode.Off;
  324. this.txtBarCodePrintCopies.Location = new System.Drawing.Point(266, 164);
  325. this.txtBarCodePrintCopies.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
  326. this.txtBarCodePrintCopies.MaxLength = 2;
  327. this.txtBarCodePrintCopies.MaxValue = new decimal(new int[] {
  328. 10,
  329. 0,
  330. 0,
  331. 0});
  332. this.txtBarCodePrintCopies.MinValue = new decimal(new int[] {
  333. 0,
  334. 0,
  335. 0,
  336. 0});
  337. this.txtBarCodePrintCopies.Name = "txtBarCodePrintCopies";
  338. this.txtBarCodePrintCopies.Size = new System.Drawing.Size(40, 25);
  339. this.txtBarCodePrintCopies.TabIndex = 21;
  340. this.txtBarCodePrintCopies.TextValue = "";
  341. //
  342. // c_Label5
  343. //
  344. this.c_Label5.AutoSize = true;
  345. this.c_Label5.BackColor = System.Drawing.Color.Transparent;
  346. this.c_Label5.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
  347. this.c_Label5.Location = new System.Drawing.Point(191, 169);
  348. this.c_Label5.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
  349. this.c_Label5.Name = "c_Label5";
  350. this.c_Label5.Size = new System.Drawing.Size(67, 15);
  351. this.c_Label5.TabIndex = 20;
  352. this.c_Label5.Text = "打印份数";
  353. //
  354. // c_Label4
  355. //
  356. this.c_Label4.AutoSize = true;
  357. this.c_Label4.BackColor = System.Drawing.Color.Transparent;
  358. this.c_Label4.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
  359. this.c_Label4.ForeColor = System.Drawing.Color.Blue;
  360. this.c_Label4.Location = new System.Drawing.Point(191, 136);
  361. this.c_Label4.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
  362. this.c_Label4.Name = "c_Label4";
  363. this.c_Label4.Size = new System.Drawing.Size(232, 15);
  364. this.c_Label4.TabIndex = 19;
  365. this.c_Label4.Text = "(同级别排序大的优先记录漏扫)";
  366. //
  367. // txtDisplayNo
  368. //
  369. this.txtDisplayNo.AllowNegative = false;
  370. this.txtDisplayNo.BackColor = System.Drawing.SystemColors.Window;
  371. this.txtDisplayNo.BackgroundColor = System.Drawing.SystemColors.Window;
  372. this.txtDisplayNo.EditingControlFormattedValue = "";
  373. this.txtDisplayNo.ErrorMessage = "";
  374. this.txtDisplayNo.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
  375. this.txtDisplayNo.ImeMode = System.Windows.Forms.ImeMode.Off;
  376. this.txtDisplayNo.Location = new System.Drawing.Point(103, 165);
  377. this.txtDisplayNo.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
  378. this.txtDisplayNo.MaxLength = 2;
  379. this.txtDisplayNo.MaxValue = new decimal(new int[] {
  380. 99,
  381. 0,
  382. 0,
  383. 0});
  384. this.txtDisplayNo.MinValue = new decimal(new int[] {
  385. 0,
  386. 0,
  387. 0,
  388. 0});
  389. this.txtDisplayNo.Name = "txtDisplayNo";
  390. this.txtDisplayNo.Size = new System.Drawing.Size(79, 25);
  391. this.txtDisplayNo.TabIndex = 18;
  392. this.txtDisplayNo.TextValue = "";
  393. //
  394. // lblDisplayNo
  395. //
  396. this.lblDisplayNo.AutoSize = true;
  397. this.lblDisplayNo.BackColor = System.Drawing.Color.Transparent;
  398. this.lblDisplayNo.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
  399. this.lblDisplayNo.Location = new System.Drawing.Point(23, 169);
  400. this.lblDisplayNo.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
  401. this.lblDisplayNo.Name = "lblDisplayNo";
  402. this.lblDisplayNo.Size = new System.Drawing.Size(67, 15);
  403. this.lblDisplayNo.TabIndex = 17;
  404. this.lblDisplayNo.Text = "显示顺序";
  405. //
  406. // txtmisspriority
  407. //
  408. this.txtmisspriority.AllowNegative = false;
  409. this.txtmisspriority.BackColor = System.Drawing.SystemColors.Window;
  410. this.txtmisspriority.BackgroundColor = System.Drawing.SystemColors.Window;
  411. this.txtmisspriority.EditingControlFormattedValue = "";
  412. this.txtmisspriority.ErrorMessage = "";
  413. this.txtmisspriority.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
  414. this.txtmisspriority.ImeMode = System.Windows.Forms.ImeMode.Off;
  415. this.txtmisspriority.Location = new System.Drawing.Point(103, 132);
  416. this.txtmisspriority.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
  417. this.txtmisspriority.MaxLength = 1;
  418. this.txtmisspriority.MaxValue = new decimal(new int[] {
  419. 9,
  420. 0,
  421. 0,
  422. 0});
  423. this.txtmisspriority.MinValue = new decimal(new int[] {
  424. 0,
  425. 0,
  426. 0,
  427. 0});
  428. this.txtmisspriority.Name = "txtmisspriority";
  429. this.txtmisspriority.Size = new System.Drawing.Size(79, 25);
  430. this.txtmisspriority.TabIndex = 16;
  431. this.txtmisspriority.TextValue = "";
  432. //
  433. // lblmisspriority
  434. //
  435. this.lblmisspriority.AutoSize = true;
  436. this.lblmisspriority.BackColor = System.Drawing.Color.Transparent;
  437. this.lblmisspriority.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
  438. this.lblmisspriority.Location = new System.Drawing.Point(8, 136);
  439. this.lblmisspriority.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
  440. this.lblmisspriority.Name = "lblmisspriority";
  441. this.lblmisspriority.Size = new System.Drawing.Size(82, 15);
  442. this.lblmisspriority.TabIndex = 15;
  443. this.lblmisspriority.Text = "漏扫排序号";
  444. //
  445. // groupBox4
  446. //
  447. this.groupBox4.BackColor = System.Drawing.Color.Transparent;
  448. this.groupBox4.Controls.Add(this.radioJobsPrice);
  449. this.groupBox4.Controls.Add(this.radioNotPrice);
  450. this.groupBox4.Location = new System.Drawing.Point(472, 61);
  451. this.groupBox4.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
  452. this.groupBox4.Name = "groupBox4";
  453. this.groupBox4.Padding = new System.Windows.Forms.Padding(4, 4, 4, 4);
  454. this.groupBox4.Size = new System.Drawing.Size(220, 68);
  455. this.groupBox4.TabIndex = 9;
  456. this.groupBox4.TabStop = false;
  457. this.groupBox4.Tag = "";
  458. this.groupBox4.Text = "计件模式";
  459. //
  460. // radioJobsPrice
  461. //
  462. this.radioJobsPrice.AutoSize = true;
  463. this.radioJobsPrice.Checked = true;
  464. this.radioJobsPrice.Location = new System.Drawing.Point(95, 30);
  465. this.radioJobsPrice.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
  466. this.radioJobsPrice.Name = "radioJobsPrice";
  467. this.radioJobsPrice.Size = new System.Drawing.Size(103, 19);
  468. this.radioJobsPrice.TabIndex = 1;
  469. this.radioJobsPrice.TabStop = true;
  470. this.radioJobsPrice.Text = "同工种策略";
  471. this.radioJobsPrice.UseVisualStyleBackColor = true;
  472. //
  473. // radioNotPrice
  474. //
  475. this.radioNotPrice.AutoSize = true;
  476. this.radioNotPrice.Location = new System.Drawing.Point(8, 30);
  477. this.radioNotPrice.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
  478. this.radioNotPrice.Name = "radioNotPrice";
  479. this.radioNotPrice.Size = new System.Drawing.Size(73, 19);
  480. this.radioNotPrice.TabIndex = 0;
  481. this.radioNotPrice.Text = "不计件";
  482. this.radioNotPrice.UseVisualStyleBackColor = true;
  483. //
  484. // ddlProcessModelType
  485. //
  486. this.ddlProcessModelType.BackColor = System.Drawing.Color.Yellow;
  487. this.ddlProcessModelType.BackgroundColor = System.Drawing.SystemColors.Window;
  488. this.ddlProcessModelType.DataSource = null;
  489. this.ddlProcessModelType.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
  490. this.ddlProcessModelType.FormattingEnabled = true;
  491. this.ddlProcessModelType.IsMustInput = true;
  492. //
  493. //
  494. //
  495. this.ddlProcessModelType.ListBox.Dock = System.Windows.Forms.DockStyle.Fill;
  496. this.ddlProcessModelType.ListBox.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
  497. this.ddlProcessModelType.ListBox.Location = new System.Drawing.Point(0, 0);
  498. this.ddlProcessModelType.ListBox.Name = "";
  499. this.ddlProcessModelType.ListBox.Size = new System.Drawing.Size(141, 136);
  500. this.ddlProcessModelType.ListBox.TabIndex = 0;
  501. this.ddlProcessModelType.Location = new System.Drawing.Point(548, 24);
  502. this.ddlProcessModelType.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
  503. this.ddlProcessModelType.Name = "ddlProcessModelType";
  504. this.ddlProcessModelType.Size = new System.Drawing.Size(143, 23);
  505. this.ddlProcessModelType.TabIndex = 5;
  506. //
  507. // txtRemarks
  508. //
  509. this.txtRemarks.BackColor = System.Drawing.SystemColors.Window;
  510. this.txtRemarks.BackgroundColor = System.Drawing.SystemColors.Window;
  511. this.txtRemarks.ErrorMessage = "";
  512. this.txtRemarks.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
  513. this.txtRemarks.Location = new System.Drawing.Point(688, 132);
  514. this.txtRemarks.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
  515. this.txtRemarks.MaxLength = 500;
  516. this.txtRemarks.Multiline = true;
  517. this.txtRemarks.Name = "txtRemarks";
  518. this.txtRemarks.Size = new System.Drawing.Size(280, 55);
  519. this.txtRemarks.TabIndex = 11;
  520. //
  521. // txtProcedureName
  522. //
  523. this.txtProcedureName.BackColor = System.Drawing.Color.Yellow;
  524. this.txtProcedureName.BackgroundColor = System.Drawing.SystemColors.Window;
  525. this.txtProcedureName.ErrorMessage = "必须输入项目";
  526. this.txtProcedureName.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
  527. this.txtProcedureName.HasError = true;
  528. this.txtProcedureName.IsMustInput = true;
  529. this.txtProcedureName.Location = new System.Drawing.Point(317, 25);
  530. this.txtProcedureName.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
  531. this.txtProcedureName.MaxLength = 50;
  532. this.txtProcedureName.Name = "txtProcedureName";
  533. this.txtProcedureName.Size = new System.Drawing.Size(143, 25);
  534. this.txtProcedureName.TabIndex = 3;
  535. //
  536. // txtProcedureCode
  537. //
  538. this.txtProcedureCode.BackColor = System.Drawing.Color.Yellow;
  539. this.txtProcedureCode.BackgroundColor = System.Drawing.SystemColors.Window;
  540. this.txtProcedureCode.ErrorMessage = "必须输入项目";
  541. this.txtProcedureCode.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
  542. this.txtProcedureCode.HasError = true;
  543. this.txtProcedureCode.IsMustInput = true;
  544. this.txtProcedureCode.Location = new System.Drawing.Point(87, 25);
  545. this.txtProcedureCode.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
  546. this.txtProcedureCode.MaxLength = 20;
  547. this.txtProcedureCode.Name = "txtProcedureCode";
  548. this.txtProcedureCode.RejectCharsPattern = "[^a-zA-Z0-9]";
  549. this.txtProcedureCode.Size = new System.Drawing.Size(143, 25);
  550. this.txtProcedureCode.TabIndex = 1;
  551. //
  552. // c_Label3
  553. //
  554. this.c_Label3.AutoSize = true;
  555. this.c_Label3.BackColor = System.Drawing.Color.Transparent;
  556. this.c_Label3.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
  557. this.c_Label3.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(155)))), ((int)(((byte)(39)))), ((int)(((byte)(39)))));
  558. this.c_Label3.IsMustInput = true;
  559. this.c_Label3.Location = new System.Drawing.Point(469, 29);
  560. this.c_Label3.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
  561. this.c_Label3.Name = "c_Label3";
  562. this.c_Label3.Size = new System.Drawing.Size(67, 15);
  563. this.c_Label3.TabIndex = 4;
  564. this.c_Label3.Text = "工序类型";
  565. //
  566. // c_Label2
  567. //
  568. this.c_Label2.AutoSize = true;
  569. this.c_Label2.BackColor = System.Drawing.Color.Transparent;
  570. this.c_Label2.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
  571. this.c_Label2.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(155)))), ((int)(((byte)(39)))), ((int)(((byte)(39)))));
  572. this.c_Label2.IsMustInput = true;
  573. this.c_Label2.Location = new System.Drawing.Point(239, 29);
  574. this.c_Label2.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
  575. this.c_Label2.Name = "c_Label2";
  576. this.c_Label2.Size = new System.Drawing.Size(67, 15);
  577. this.c_Label2.TabIndex = 2;
  578. this.c_Label2.Text = "工序名称";
  579. //
  580. // c_Label1
  581. //
  582. this.c_Label1.AutoSize = true;
  583. this.c_Label1.BackColor = System.Drawing.Color.Transparent;
  584. this.c_Label1.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
  585. this.c_Label1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(155)))), ((int)(((byte)(39)))), ((int)(((byte)(39)))));
  586. this.c_Label1.IsMustInput = true;
  587. this.c_Label1.Location = new System.Drawing.Point(8, 29);
  588. this.c_Label1.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
  589. this.c_Label1.Name = "c_Label1";
  590. this.c_Label1.Size = new System.Drawing.Size(67, 15);
  591. this.c_Label1.TabIndex = 0;
  592. this.c_Label1.Text = "工序编号";
  593. //
  594. // GetDataOgrp
  595. //
  596. this.GetDataOgrp.BackColor = System.Drawing.Color.Transparent;
  597. this.GetDataOgrp.Controls.Add(this.rbtnMore);
  598. this.GetDataOgrp.Controls.Add(this.rbtnOne);
  599. this.GetDataOgrp.Location = new System.Drawing.Point(11, 61);
  600. this.GetDataOgrp.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
  601. this.GetDataOgrp.Name = "GetDataOgrp";
  602. this.GetDataOgrp.Padding = new System.Windows.Forms.Padding(4, 4, 4, 4);
  603. this.GetDataOgrp.Size = new System.Drawing.Size(220, 68);
  604. this.GetDataOgrp.TabIndex = 7;
  605. this.GetDataOgrp.TabStop = false;
  606. this.GetDataOgrp.Text = "采集方式";
  607. //
  608. // rbtnMore
  609. //
  610. this.rbtnMore.AutoSize = true;
  611. this.rbtnMore.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
  612. this.rbtnMore.Location = new System.Drawing.Point(121, 30);
  613. this.rbtnMore.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
  614. this.rbtnMore.Name = "rbtnMore";
  615. this.rbtnMore.Size = new System.Drawing.Size(88, 19);
  616. this.rbtnMore.TabIndex = 1;
  617. this.rbtnMore.Text = "集中采集";
  618. this.rbtnMore.UseVisualStyleBackColor = true;
  619. //
  620. // rbtnOne
  621. //
  622. this.rbtnOne.AutoSize = true;
  623. this.rbtnOne.Checked = true;
  624. this.rbtnOne.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
  625. this.rbtnOne.Location = new System.Drawing.Point(8, 30);
  626. this.rbtnOne.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
  627. this.rbtnOne.Name = "rbtnOne";
  628. this.rbtnOne.Size = new System.Drawing.Size(88, 19);
  629. this.rbtnOne.TabIndex = 0;
  630. this.rbtnOne.TabStop = true;
  631. this.rbtnOne.Text = "单点采集";
  632. this.rbtnOne.UseVisualStyleBackColor = true;
  633. //
  634. // groupBox2
  635. //
  636. this.groupBox2.BackColor = System.Drawing.Color.Transparent;
  637. this.groupBox2.Controls.Add(this.rBtnNoNeed);
  638. this.groupBox2.Controls.Add(this.rBtnNeed);
  639. this.groupBox2.Location = new System.Drawing.Point(241, 61);
  640. this.groupBox2.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
  641. this.groupBox2.Name = "groupBox2";
  642. this.groupBox2.Padding = new System.Windows.Forms.Padding(4, 4, 4, 4);
  643. this.groupBox2.Size = new System.Drawing.Size(220, 68);
  644. this.groupBox2.TabIndex = 8;
  645. this.groupBox2.TabStop = false;
  646. this.groupBox2.Tag = "";
  647. this.groupBox2.Text = "必须工序";
  648. //
  649. // rBtnNoNeed
  650. //
  651. this.rBtnNoNeed.AutoSize = true;
  652. this.rBtnNoNeed.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
  653. this.rBtnNoNeed.Location = new System.Drawing.Point(124, 30);
  654. this.rBtnNoNeed.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
  655. this.rBtnNoNeed.Name = "rBtnNoNeed";
  656. this.rBtnNoNeed.Size = new System.Drawing.Size(73, 19);
  657. this.rBtnNoNeed.TabIndex = 1;
  658. this.rBtnNoNeed.Text = "非必须";
  659. this.rBtnNoNeed.UseVisualStyleBackColor = true;
  660. //
  661. // rBtnNeed
  662. //
  663. this.rBtnNeed.AutoSize = true;
  664. this.rBtnNeed.Checked = true;
  665. this.rBtnNeed.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
  666. this.rBtnNeed.Location = new System.Drawing.Point(23, 30);
  667. this.rBtnNeed.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
  668. this.rBtnNeed.Name = "rBtnNeed";
  669. this.rBtnNeed.Size = new System.Drawing.Size(58, 19);
  670. this.rBtnNeed.TabIndex = 0;
  671. this.rBtnNeed.TabStop = true;
  672. this.rBtnNeed.Text = "必须";
  673. this.rBtnNeed.UseVisualStyleBackColor = true;
  674. //
  675. // label1
  676. //
  677. this.label1.AutoSize = true;
  678. this.label1.Location = new System.Drawing.Point(639, 132);
  679. this.label1.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
  680. this.label1.Name = "label1";
  681. this.label1.Size = new System.Drawing.Size(37, 15);
  682. this.label1.TabIndex = 10;
  683. this.label1.Text = "备注";
  684. //
  685. // groupBox3
  686. //
  687. this.groupBox3.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
  688. | System.Windows.Forms.AnchorStyles.Left)
  689. | System.Windows.Forms.AnchorStyles.Right)));
  690. this.groupBox3.BackColor = System.Drawing.Color.Transparent;
  691. this.groupBox3.Controls.Add(this.tabControl);
  692. this.groupBox3.Location = new System.Drawing.Point(16, 219);
  693. this.groupBox3.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
  694. this.groupBox3.Name = "groupBox3";
  695. this.groupBox3.Padding = new System.Windows.Forms.Padding(4, 4, 4, 4);
  696. this.groupBox3.Size = new System.Drawing.Size(984, 352);
  697. this.groupBox3.TabIndex = 1;
  698. this.groupBox3.TabStop = false;
  699. this.groupBox3.Text = "控制属性";
  700. //
  701. // tabControl
  702. //
  703. this.tabControl.Controls.Add(this.tabPage1);
  704. this.tabControl.Controls.Add(this.tabPage2);
  705. this.tabControl.Controls.Add(this.tabPage3);
  706. this.tabControl.Controls.Add(this.tabPage4);
  707. this.tabControl.Dock = System.Windows.Forms.DockStyle.Fill;
  708. this.tabControl.Location = new System.Drawing.Point(4, 22);
  709. this.tabControl.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
  710. this.tabControl.Name = "tabControl";
  711. this.tabControl.SelectedIndex = 0;
  712. this.tabControl.Size = new System.Drawing.Size(976, 326);
  713. this.tabControl.TabIndex = 0;
  714. //
  715. // tabPage1
  716. //
  717. this.tabPage1.Controls.Add(this.dgvGoods);
  718. this.tabPage1.Location = new System.Drawing.Point(4, 25);
  719. this.tabPage1.Margin = new System.Windows.Forms.Padding(0);
  720. this.tabPage1.Name = "tabPage1";
  721. this.tabPage1.Size = new System.Drawing.Size(968, 297);
  722. this.tabPage1.TabIndex = 0;
  723. this.tabPage1.Text = "检验产品";
  724. this.tabPage1.UseVisualStyleBackColor = true;
  725. //
  726. // dgvGoods
  727. //
  728. this.dgvGoods.AllowUserToModifyRows = true;
  729. dataGridViewCellStyle53.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235)))));
  730. this.dgvGoods.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle53;
  731. this.dgvGoods.CellBackColorNochanged = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
  732. this.dgvGoods.CellBackColorReadOnly = System.Drawing.SystemColors.Control;
  733. this.dgvGoods.CellHeight = 23;
  734. this.dgvGoods.ChildNodeColumnName = null;
  735. this.dgvGoods.ChildNodeColumnText = null;
  736. this.dgvGoods.ColumnDeep = 1;
  737. this.dgvGoods.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.Single;
  738. dataGridViewCellStyle54.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
  739. dataGridViewCellStyle54.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(58)))), ((int)(((byte)(70)))));
  740. dataGridViewCellStyle54.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
  741. dataGridViewCellStyle54.ForeColor = System.Drawing.Color.White;
  742. dataGridViewCellStyle54.SelectionBackColor = System.Drawing.SystemColors.Highlight;
  743. dataGridViewCellStyle54.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
  744. dataGridViewCellStyle54.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
  745. this.dgvGoods.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle54;
  746. this.dgvGoods.ColumnHeadersHeight = 29;
  747. this.dgvGoods.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
  748. this.dgvGoods.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
  749. this.GoodsID,
  750. this.GoodsCode,
  751. this.GoodsName,
  752. this.GoodsTypeName,
  753. this.GoodsSpecification});
  754. this.dgvGoods.ColumnTreeView = null;
  755. 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)));
  756. dataGridViewCellStyle55.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
  757. dataGridViewCellStyle55.BackColor = System.Drawing.SystemColors.Window;
  758. dataGridViewCellStyle55.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
  759. dataGridViewCellStyle55.ForeColor = System.Drawing.SystemColors.ControlText;
  760. dataGridViewCellStyle55.SelectionBackColor = System.Drawing.SystemColors.Highlight;
  761. dataGridViewCellStyle55.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
  762. dataGridViewCellStyle55.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
  763. this.dgvGoods.DefaultCellStyle = dataGridViewCellStyle55;
  764. this.dgvGoods.Dock = System.Windows.Forms.DockStyle.Fill;
  765. this.dgvGoods.DynamicColumnName = "";
  766. this.dgvGoods.EnableHeadersVisualStyles = false;
  767. this.dgvGoods.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
  768. this.dgvGoods.FormatQuantityColumns = null;
  769. this.dgvGoods.HorizontalMergeColumn = null;
  770. this.dgvGoods.IsAutoCountSum = true;
  771. this.dgvGoods.IsAutoResizeColumns = false;
  772. this.dgvGoods.IsClickF12 = false;
  773. this.dgvGoods.IsOpenMergeCellFlag = false;
  774. this.dgvGoods.IsSubTotalFlag = false;
  775. this.dgvGoods.IsTopDeep = false;
  776. this.dgvGoods.Location = new System.Drawing.Point(0, 0);
  777. this.dgvGoods.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
  778. this.dgvGoods.MergeColumnNames = null;
  779. this.dgvGoods.MergeDetailColumnNames = null;
  780. this.dgvGoods.MergeDetailOnlyColumn = null;
  781. this.dgvGoods.MergeOnlyColumn = null;
  782. this.dgvGoods.Name = "dgvGoods";
  783. this.dgvGoods.RefreshAtHscroll = false;
  784. this.dgvGoods.RowHeadersWidth = 50;
  785. this.dgvGoods.RowHeadersWidthSizeMode = System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode.DisableResizing;
  786. dataGridViewCellStyle56.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(159)))), ((int)(((byte)(39)))), ((int)(((byte)(39)))));
  787. this.dgvGoods.RowsDefaultCellStyle = dataGridViewCellStyle56;
  788. this.dgvGoods.RowTemplate.Height = 21;
  789. this.dgvGoods.Size = new System.Drawing.Size(968, 297);
  790. this.dgvGoods.SortOrderColumnName = null;
  791. this.dgvGoods.TabIndex = 0;
  792. this.dgvGoods.Tag = true;
  793. this.dgvGoods.TotalSumColumns = null;
  794. this.dgvGoods.ViewRowFilter = "";
  795. this.dgvGoods.CellBeginEdit += new System.Windows.Forms.DataGridViewCellCancelEventHandler(this.dgvGoods_CellBeginEdit);
  796. this.dgvGoods.CellValueChanged += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvGoods_CellValueChanged);
  797. //
  798. // GoodsID
  799. //
  800. this.GoodsID.DataPropertyName = "GoodsID";
  801. this.GoodsID.HeaderText = "GoodsID";
  802. this.GoodsID.MinimumWidth = 6;
  803. this.GoodsID.Name = "GoodsID";
  804. this.GoodsID.Visible = false;
  805. this.GoodsID.Width = 125;
  806. //
  807. // GoodsCode
  808. //
  809. this.GoodsCode.DataPropertyName = "GoodsCode";
  810. this.GoodsCode.HeaderText = "产品编码";
  811. this.GoodsCode.MinimumWidth = 6;
  812. this.GoodsCode.Name = "GoodsCode";
  813. this.GoodsCode.Resizable = System.Windows.Forms.DataGridViewTriState.True;
  814. this.GoodsCode.Width = 125;
  815. //
  816. // GoodsName
  817. //
  818. this.GoodsName.DataPropertyName = "GoodsName";
  819. this.GoodsName.HeaderText = "产品名称";
  820. this.GoodsName.MinimumWidth = 6;
  821. this.GoodsName.Name = "GoodsName";
  822. this.GoodsName.ReadOnly = true;
  823. this.GoodsName.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
  824. this.GoodsName.Width = 125;
  825. //
  826. // GoodsTypeName
  827. //
  828. this.GoodsTypeName.DataPropertyName = "GoodsTypeName";
  829. this.GoodsTypeName.HeaderText = "产品类别";
  830. this.GoodsTypeName.MinimumWidth = 6;
  831. this.GoodsTypeName.Name = "GoodsTypeName";
  832. this.GoodsTypeName.ReadOnly = true;
  833. this.GoodsTypeName.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
  834. this.GoodsTypeName.Width = 125;
  835. //
  836. // GoodsSpecification
  837. //
  838. this.GoodsSpecification.DataPropertyName = "GoodsSpecification";
  839. this.GoodsSpecification.HeaderText = "产品规格";
  840. this.GoodsSpecification.MinimumWidth = 6;
  841. this.GoodsSpecification.Name = "GoodsSpecification";
  842. this.GoodsSpecification.ReadOnly = true;
  843. this.GoodsSpecification.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
  844. this.GoodsSpecification.Width = 125;
  845. //
  846. // tabPage2
  847. //
  848. this.tabPage2.Controls.Add(this.dgvUser);
  849. this.tabPage2.Location = new System.Drawing.Point(4, 25);
  850. this.tabPage2.Margin = new System.Windows.Forms.Padding(0);
  851. this.tabPage2.Name = "tabPage2";
  852. this.tabPage2.Size = new System.Drawing.Size(968, 297);
  853. this.tabPage2.TabIndex = 1;
  854. this.tabPage2.Text = "检验工号";
  855. this.tabPage2.UseVisualStyleBackColor = true;
  856. //
  857. // dgvUser
  858. //
  859. this.dgvUser.AllowUserToModifyRows = true;
  860. dataGridViewCellStyle57.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235)))));
  861. this.dgvUser.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle57;
  862. this.dgvUser.CellBackColorNochanged = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
  863. this.dgvUser.CellBackColorReadOnly = System.Drawing.SystemColors.Control;
  864. this.dgvUser.CellHeight = 23;
  865. this.dgvUser.ChildNodeColumnName = null;
  866. this.dgvUser.ChildNodeColumnText = null;
  867. this.dgvUser.ColumnDeep = 1;
  868. this.dgvUser.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.Single;
  869. dataGridViewCellStyle58.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
  870. dataGridViewCellStyle58.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(58)))), ((int)(((byte)(70)))));
  871. dataGridViewCellStyle58.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
  872. dataGridViewCellStyle58.ForeColor = System.Drawing.Color.White;
  873. dataGridViewCellStyle58.SelectionBackColor = System.Drawing.SystemColors.Highlight;
  874. dataGridViewCellStyle58.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
  875. dataGridViewCellStyle58.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
  876. this.dgvUser.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle58;
  877. this.dgvUser.ColumnHeadersHeight = 29;
  878. this.dgvUser.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
  879. this.dgvUser.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
  880. this.User_NO,
  881. this.UserID,
  882. this.UserCode,
  883. this.UserName});
  884. this.dgvUser.ColumnTreeView = null;
  885. 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)));
  886. this.dgvUser.Dock = System.Windows.Forms.DockStyle.Fill;
  887. this.dgvUser.DynamicColumnName = "";
  888. this.dgvUser.EnableHeadersVisualStyles = false;
  889. this.dgvUser.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
  890. this.dgvUser.FormatQuantityColumns = null;
  891. this.dgvUser.HorizontalMergeColumn = null;
  892. this.dgvUser.IsAutoCountSum = true;
  893. this.dgvUser.IsAutoResizeColumns = false;
  894. this.dgvUser.IsClickF12 = false;
  895. this.dgvUser.IsOpenMergeCellFlag = false;
  896. this.dgvUser.IsSubTotalFlag = false;
  897. this.dgvUser.IsTopDeep = false;
  898. this.dgvUser.Location = new System.Drawing.Point(0, 0);
  899. this.dgvUser.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
  900. this.dgvUser.MergeColumnNames = null;
  901. this.dgvUser.MergeDetailColumnNames = null;
  902. this.dgvUser.MergeDetailOnlyColumn = null;
  903. this.dgvUser.MergeOnlyColumn = null;
  904. this.dgvUser.Name = "dgvUser";
  905. this.dgvUser.RefreshAtHscroll = false;
  906. this.dgvUser.RowHeadersWidth = 50;
  907. this.dgvUser.RowHeadersWidthSizeMode = System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode.DisableResizing;
  908. dataGridViewCellStyle59.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(159)))), ((int)(((byte)(39)))), ((int)(((byte)(39)))));
  909. this.dgvUser.RowsDefaultCellStyle = dataGridViewCellStyle59;
  910. this.dgvUser.RowTemplate.Height = 21;
  911. this.dgvUser.Size = new System.Drawing.Size(968, 297);
  912. this.dgvUser.SortOrderColumnName = null;
  913. this.dgvUser.TabIndex = 55;
  914. this.dgvUser.Tag = true;
  915. this.dgvUser.TotalSumColumns = null;
  916. this.dgvUser.ViewRowFilter = "";
  917. this.dgvUser.CellBeginEdit += new System.Windows.Forms.DataGridViewCellCancelEventHandler(this.dgvUser_CellBeginEdit);
  918. this.dgvUser.CellValueChanged += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvUser_CellValueChanged);
  919. //
  920. // User_NO
  921. //
  922. this.User_NO.DataPropertyName = "UserID";
  923. this.User_NO.FillWeight = 200F;
  924. this.User_NO.HeaderText = "工号";
  925. this.User_NO.MinimumWidth = 6;
  926. this.User_NO.Name = "User_NO";
  927. this.User_NO.Resizable = System.Windows.Forms.DataGridViewTriState.True;
  928. this.User_NO.Visible = false;
  929. this.User_NO.Width = 200;
  930. //
  931. // UserID
  932. //
  933. this.UserID.DataPropertyName = "UserID";
  934. this.UserID.HeaderText = "工号ID";
  935. this.UserID.MinimumWidth = 6;
  936. this.UserID.Name = "UserID";
  937. this.UserID.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
  938. this.UserID.Visible = false;
  939. this.UserID.Width = 125;
  940. //
  941. // UserCode
  942. //
  943. this.UserCode.DataPropertyName = "UserCode";
  944. this.UserCode.HeaderText = "工号";
  945. this.UserCode.MinimumWidth = 6;
  946. this.UserCode.Name = "UserCode";
  947. this.UserCode.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
  948. this.UserCode.Width = 125;
  949. //
  950. // UserName
  951. //
  952. this.UserName.DataPropertyName = "UserName";
  953. this.UserName.HeaderText = "工号名称";
  954. this.UserName.MinimumWidth = 6;
  955. this.UserName.Name = "UserName";
  956. this.UserName.ReadOnly = true;
  957. this.UserName.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
  958. this.UserName.Width = 125;
  959. //
  960. // tabPage3
  961. //
  962. this.tabPage3.Controls.Add(this.dgvDefect);
  963. this.tabPage3.Location = new System.Drawing.Point(4, 25);
  964. this.tabPage3.Margin = new System.Windows.Forms.Padding(0);
  965. this.tabPage3.Name = "tabPage3";
  966. this.tabPage3.Size = new System.Drawing.Size(968, 297);
  967. this.tabPage3.TabIndex = 2;
  968. this.tabPage3.Text = "可检缺陷";
  969. this.tabPage3.UseVisualStyleBackColor = true;
  970. //
  971. // dgvDefect
  972. //
  973. this.dgvDefect.AllowUserToModifyRows = true;
  974. dataGridViewCellStyle60.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235)))));
  975. this.dgvDefect.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle60;
  976. this.dgvDefect.CellBackColorNochanged = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
  977. this.dgvDefect.CellBackColorReadOnly = System.Drawing.SystemColors.Control;
  978. this.dgvDefect.CellHeight = 23;
  979. this.dgvDefect.ChildNodeColumnName = null;
  980. this.dgvDefect.ChildNodeColumnText = null;
  981. this.dgvDefect.ColumnDeep = 1;
  982. this.dgvDefect.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.Single;
  983. dataGridViewCellStyle61.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
  984. dataGridViewCellStyle61.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(58)))), ((int)(((byte)(70)))));
  985. dataGridViewCellStyle61.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
  986. dataGridViewCellStyle61.ForeColor = System.Drawing.Color.White;
  987. dataGridViewCellStyle61.SelectionBackColor = System.Drawing.SystemColors.Highlight;
  988. dataGridViewCellStyle61.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
  989. dataGridViewCellStyle61.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
  990. this.dgvDefect.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle61;
  991. this.dgvDefect.ColumnHeadersHeight = 29;
  992. this.dgvDefect.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
  993. this.dgvDefect.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
  994. this.DefectID_NO,
  995. this.DefectID,
  996. this.DefectCode,
  997. this.DefectName});
  998. this.dgvDefect.ColumnTreeView = null;
  999. 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)));
  1000. this.dgvDefect.Dock = System.Windows.Forms.DockStyle.Fill;
  1001. this.dgvDefect.DynamicColumnName = "";
  1002. this.dgvDefect.EnableHeadersVisualStyles = false;
  1003. this.dgvDefect.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
  1004. this.dgvDefect.FormatQuantityColumns = null;
  1005. this.dgvDefect.HorizontalMergeColumn = null;
  1006. this.dgvDefect.IsAutoCountSum = true;
  1007. this.dgvDefect.IsAutoResizeColumns = false;
  1008. this.dgvDefect.IsClickF12 = false;
  1009. this.dgvDefect.IsOpenMergeCellFlag = false;
  1010. this.dgvDefect.IsSubTotalFlag = false;
  1011. this.dgvDefect.IsTopDeep = false;
  1012. this.dgvDefect.Location = new System.Drawing.Point(0, 0);
  1013. this.dgvDefect.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
  1014. this.dgvDefect.MergeColumnNames = null;
  1015. this.dgvDefect.MergeDetailColumnNames = null;
  1016. this.dgvDefect.MergeDetailOnlyColumn = null;
  1017. this.dgvDefect.MergeOnlyColumn = null;
  1018. this.dgvDefect.Name = "dgvDefect";
  1019. this.dgvDefect.RefreshAtHscroll = false;
  1020. this.dgvDefect.RowHeadersWidth = 50;
  1021. this.dgvDefect.RowHeadersWidthSizeMode = System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode.DisableResizing;
  1022. dataGridViewCellStyle62.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(159)))), ((int)(((byte)(39)))), ((int)(((byte)(39)))));
  1023. this.dgvDefect.RowsDefaultCellStyle = dataGridViewCellStyle62;
  1024. this.dgvDefect.RowTemplate.Height = 21;
  1025. this.dgvDefect.Size = new System.Drawing.Size(968, 297);
  1026. this.dgvDefect.SortOrderColumnName = null;
  1027. this.dgvDefect.TabIndex = 55;
  1028. this.dgvDefect.Tag = true;
  1029. this.dgvDefect.TotalSumColumns = null;
  1030. this.dgvDefect.ViewRowFilter = "";
  1031. this.dgvDefect.CellBeginEdit += new System.Windows.Forms.DataGridViewCellCancelEventHandler(this.dgvDefect_CellBeginEdit);
  1032. this.dgvDefect.CellValueChanged += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvDefect_CellValueChanged);
  1033. //
  1034. // DefectID_NO
  1035. //
  1036. this.DefectID_NO.FillWeight = 200F;
  1037. this.DefectID_NO.HeaderText = "缺陷";
  1038. this.DefectID_NO.MinimumWidth = 6;
  1039. this.DefectID_NO.Name = "DefectID_NO";
  1040. this.DefectID_NO.Resizable = System.Windows.Forms.DataGridViewTriState.True;
  1041. this.DefectID_NO.Visible = false;
  1042. this.DefectID_NO.Width = 200;
  1043. //
  1044. // DefectID
  1045. //
  1046. this.DefectID.DataPropertyName = "DefectID";
  1047. this.DefectID.HeaderText = "DefectID";
  1048. this.DefectID.MinimumWidth = 6;
  1049. this.DefectID.Name = "DefectID";
  1050. this.DefectID.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
  1051. this.DefectID.Visible = false;
  1052. this.DefectID.Width = 125;
  1053. //
  1054. // DefectCode
  1055. //
  1056. this.DefectCode.DataPropertyName = "DefectCode";
  1057. this.DefectCode.HeaderText = "缺陷编码";
  1058. this.DefectCode.MinimumWidth = 6;
  1059. this.DefectCode.Name = "DefectCode";
  1060. this.DefectCode.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
  1061. this.DefectCode.Width = 125;
  1062. //
  1063. // DefectName
  1064. //
  1065. this.DefectName.DataPropertyName = "DefectName";
  1066. this.DefectName.HeaderText = "缺陷名称";
  1067. this.DefectName.MinimumWidth = 6;
  1068. this.DefectName.Name = "DefectName";
  1069. this.DefectName.ReadOnly = true;
  1070. this.DefectName.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
  1071. this.DefectName.Width = 125;
  1072. //
  1073. // tabPage4
  1074. //
  1075. this.tabPage4.Controls.Add(this.dgvMissDefect);
  1076. this.tabPage4.Location = new System.Drawing.Point(4, 25);
  1077. this.tabPage4.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
  1078. this.tabPage4.Name = "tabPage4";
  1079. this.tabPage4.Size = new System.Drawing.Size(968, 297);
  1080. this.tabPage4.TabIndex = 3;
  1081. this.tabPage4.Text = "漏检缺陷";
  1082. this.tabPage4.UseVisualStyleBackColor = true;
  1083. //
  1084. // dgvMissDefect
  1085. //
  1086. this.dgvMissDefect.AllowUserToModifyRows = true;
  1087. dataGridViewCellStyle63.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235)))));
  1088. this.dgvMissDefect.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle63;
  1089. this.dgvMissDefect.CellBackColorNochanged = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
  1090. this.dgvMissDefect.CellBackColorReadOnly = System.Drawing.SystemColors.Control;
  1091. this.dgvMissDefect.CellHeight = 23;
  1092. this.dgvMissDefect.ChildNodeColumnName = null;
  1093. this.dgvMissDefect.ChildNodeColumnText = null;
  1094. this.dgvMissDefect.ColumnDeep = 1;
  1095. this.dgvMissDefect.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.Single;
  1096. dataGridViewCellStyle64.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
  1097. dataGridViewCellStyle64.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(58)))), ((int)(((byte)(70)))));
  1098. dataGridViewCellStyle64.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
  1099. dataGridViewCellStyle64.ForeColor = System.Drawing.Color.White;
  1100. dataGridViewCellStyle64.SelectionBackColor = System.Drawing.SystemColors.Highlight;
  1101. dataGridViewCellStyle64.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
  1102. dataGridViewCellStyle64.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
  1103. this.dgvMissDefect.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle64;
  1104. this.dgvMissDefect.ColumnHeadersHeight = 29;
  1105. this.dgvMissDefect.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
  1106. this.dgvMissDefect.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
  1107. this.MissDefectID,
  1108. this.MissDefectCode,
  1109. this.MissDefectName,
  1110. this.JobsID,
  1111. this.JobsCode,
  1112. this.JobsName});
  1113. this.dgvMissDefect.ColumnTreeView = null;
  1114. this.dgvMissDefect.ContextMenuVisible = ((Dongke.IBOSS.PRD.Basics.BaseControls.C_DataGridView.ContextMenuVisibleFlags)((Dongke.IBOSS.PRD.Basics.BaseControls.C_DataGridView.ContextMenuVisibleFlags.Refine | Dongke.IBOSS.PRD.Basics.BaseControls.C_DataGridView.ContextMenuVisibleFlags.FileOut)));
  1115. this.dgvMissDefect.Dock = System.Windows.Forms.DockStyle.Fill;
  1116. this.dgvMissDefect.DynamicColumnName = "";
  1117. this.dgvMissDefect.EnableHeadersVisualStyles = false;
  1118. this.dgvMissDefect.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
  1119. this.dgvMissDefect.FormatQuantityColumns = null;
  1120. this.dgvMissDefect.HorizontalMergeColumn = null;
  1121. this.dgvMissDefect.IsAutoCountSum = true;
  1122. this.dgvMissDefect.IsAutoResizeColumns = false;
  1123. this.dgvMissDefect.IsClickF12 = false;
  1124. this.dgvMissDefect.IsOpenMergeCellFlag = false;
  1125. this.dgvMissDefect.IsSubTotalFlag = false;
  1126. this.dgvMissDefect.IsTopDeep = false;
  1127. this.dgvMissDefect.Location = new System.Drawing.Point(0, 0);
  1128. this.dgvMissDefect.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
  1129. this.dgvMissDefect.MergeColumnNames = null;
  1130. this.dgvMissDefect.MergeDetailColumnNames = null;
  1131. this.dgvMissDefect.MergeDetailOnlyColumn = null;
  1132. this.dgvMissDefect.MergeOnlyColumn = null;
  1133. this.dgvMissDefect.Name = "dgvMissDefect";
  1134. this.dgvMissDefect.RefreshAtHscroll = false;
  1135. this.dgvMissDefect.RowHeadersWidth = 50;
  1136. this.dgvMissDefect.RowHeadersWidthSizeMode = System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode.DisableResizing;
  1137. dataGridViewCellStyle65.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(159)))), ((int)(((byte)(39)))), ((int)(((byte)(39)))));
  1138. this.dgvMissDefect.RowsDefaultCellStyle = dataGridViewCellStyle65;
  1139. this.dgvMissDefect.RowTemplate.Height = 21;
  1140. this.dgvMissDefect.Size = new System.Drawing.Size(968, 297);
  1141. this.dgvMissDefect.SortOrderColumnName = null;
  1142. this.dgvMissDefect.TabIndex = 55;
  1143. this.dgvMissDefect.Tag = true;
  1144. this.dgvMissDefect.TotalSumColumns = null;
  1145. this.dgvMissDefect.ViewRowFilter = "";
  1146. this.dgvMissDefect.CellBeginEdit += new System.Windows.Forms.DataGridViewCellCancelEventHandler(this.dgvMissDefect_CellBeginEdit);
  1147. this.dgvMissDefect.CellValueChanged += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvMissDefect_CellValueChanged);
  1148. //
  1149. // MissDefectID
  1150. //
  1151. this.MissDefectID.DataPropertyName = "DefectID";
  1152. this.MissDefectID.HeaderText = "DefectID";
  1153. this.MissDefectID.MinimumWidth = 6;
  1154. this.MissDefectID.Name = "MissDefectID";
  1155. this.MissDefectID.ReadOnly = true;
  1156. this.MissDefectID.Visible = false;
  1157. this.MissDefectID.Width = 125;
  1158. //
  1159. // MissDefectCode
  1160. //
  1161. this.MissDefectCode.DataPropertyName = "DefectCode";
  1162. this.MissDefectCode.HeaderText = "缺陷编码";
  1163. this.MissDefectCode.MinimumWidth = 6;
  1164. this.MissDefectCode.Name = "MissDefectCode";
  1165. this.MissDefectCode.Width = 125;
  1166. //
  1167. // MissDefectName
  1168. //
  1169. this.MissDefectName.DataPropertyName = "DefectName";
  1170. this.MissDefectName.HeaderText = "缺陷名称";
  1171. this.MissDefectName.MinimumWidth = 6;
  1172. this.MissDefectName.Name = "MissDefectName";
  1173. this.MissDefectName.ReadOnly = true;
  1174. this.MissDefectName.Width = 125;
  1175. //
  1176. // JobsID
  1177. //
  1178. this.JobsID.DataPropertyName = "JobsID";
  1179. this.JobsID.HeaderText = "JobsID";
  1180. this.JobsID.MinimumWidth = 6;
  1181. this.JobsID.Name = "JobsID";
  1182. this.JobsID.ReadOnly = true;
  1183. this.JobsID.Visible = false;
  1184. this.JobsID.Width = 125;
  1185. //
  1186. // JobsCode
  1187. //
  1188. this.JobsCode.DataPropertyName = "JobsCode";
  1189. this.JobsCode.HeaderText = "责任工种编码";
  1190. this.JobsCode.MinimumWidth = 6;
  1191. this.JobsCode.Name = "JobsCode";
  1192. this.JobsCode.Width = 125;
  1193. //
  1194. // JobsName
  1195. //
  1196. this.JobsName.DataPropertyName = "JobsName";
  1197. this.JobsName.HeaderText = "责任工种名称";
  1198. this.JobsName.MinimumWidth = 6;
  1199. this.JobsName.Name = "JobsName";
  1200. this.JobsName.ReadOnly = true;
  1201. this.JobsName.Width = 125;
  1202. //
  1203. // btnCancel
  1204. //
  1205. this.btnCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
  1206. this.btnCancel.BackColor = System.Drawing.Color.Transparent;
  1207. this.btnCancel.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnCancel.BackgroundImage")));
  1208. this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
  1209. this.btnCancel.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
  1210. this.btnCancel.ForeColor = System.Drawing.Color.White;
  1211. this.btnCancel.Location = new System.Drawing.Point(887, 575);
  1212. this.btnCancel.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
  1213. this.btnCancel.Name = "btnCancel";
  1214. this.btnCancel.Size = new System.Drawing.Size(113, 38);
  1215. this.btnCancel.TabIndex = 5;
  1216. this.btnCancel.Text = "取消";
  1217. this.btnCancel.UseVisualStyleBackColor = false;
  1218. //
  1219. // btnSave
  1220. //
  1221. this.btnSave.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
  1222. this.btnSave.BackColor = System.Drawing.Color.Transparent;
  1223. this.btnSave.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnSave.BackgroundImage")));
  1224. this.btnSave.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
  1225. this.btnSave.ForeColor = System.Drawing.Color.White;
  1226. this.btnSave.Location = new System.Drawing.Point(765, 575);
  1227. this.btnSave.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
  1228. this.btnSave.Name = "btnSave";
  1229. this.btnSave.Size = new System.Drawing.Size(113, 38);
  1230. this.btnSave.TabIndex = 4;
  1231. this.btnSave.Text = "保存";
  1232. this.btnSave.UseVisualStyleBackColor = false;
  1233. this.btnSave.Click += new System.EventHandler(this.btnSave_Click);
  1234. //
  1235. // c_Label6
  1236. //
  1237. this.c_Label6.AutoSize = true;
  1238. this.c_Label6.BackColor = System.Drawing.Color.Transparent;
  1239. this.c_Label6.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
  1240. this.c_Label6.Location = new System.Drawing.Point(314, 169);
  1241. this.c_Label6.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
  1242. this.c_Label6.Name = "c_Label6";
  1243. this.c_Label6.Size = new System.Drawing.Size(37, 15);
  1244. this.c_Label6.TabIndex = 22;
  1245. this.c_Label6.Text = "类型";
  1246. //
  1247. // ddlPrintType
  1248. //
  1249. this.ddlPrintType.BackColor = System.Drawing.SystemColors.Window;
  1250. this.ddlPrintType.BackgroundColor = System.Drawing.SystemColors.Window;
  1251. this.ddlPrintType.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
  1252. this.ddlPrintType.FormattingEnabled = true;
  1253. this.ddlPrintType.Location = new System.Drawing.Point(358, 164);
  1254. this.ddlPrintType.Name = "ddlPrintType";
  1255. this.ddlPrintType.Size = new System.Drawing.Size(102, 23);
  1256. this.ddlPrintType.TabIndex = 23;
  1257. this.ddlPrintType.SelectedIndexChanged += new System.EventHandler(this.ddlPrintType_SelectedIndexChanged);
  1258. //
  1259. // sbOrganizationID
  1260. //
  1261. this.sbOrganizationID.BackColor = System.Drawing.Color.Transparent;
  1262. this.sbOrganizationID.CurrentUserOrganizationCode = null;
  1263. this.sbOrganizationID.DataSource = null;
  1264. this.sbOrganizationID.Enabled = true;
  1265. this.sbOrganizationID.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
  1266. this.sbOrganizationID.IsMustInput = true;
  1267. this.sbOrganizationID.IsOnlyDisplayEnd = false;
  1268. this.sbOrganizationID.Location = new System.Drawing.Point(700, 24);
  1269. this.sbOrganizationID.Margin = new System.Windows.Forms.Padding(5);
  1270. this.sbOrganizationID.Name = "sbOrganizationID";
  1271. this.sbOrganizationID.OrganizationCode = "";
  1272. this.sbOrganizationID.OrganizationIDS = null;
  1273. this.sbOrganizationID.OrganizationName = "";
  1274. this.sbOrganizationID.PurviewType = ((byte)(0));
  1275. this.sbOrganizationID.Size = new System.Drawing.Size(269, 26);
  1276. this.sbOrganizationID.TabIndex = 6;
  1277. this.sbOrganizationID.TxtOrganizationBackColor = System.Drawing.SystemColors.Control;
  1278. //
  1279. // F_PC_0206
  1280. //
  1281. this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 15F);
  1282. this.BackColor = System.Drawing.SystemColors.Control;
  1283. this.ClientSize = new System.Drawing.Size(1016, 648);
  1284. this.Controls.Add(this.btnCancel);
  1285. this.Controls.Add(this.btnSave);
  1286. this.Controls.Add(this.groupBox3);
  1287. this.Controls.Add(this.groupBox1);
  1288. this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
  1289. this.IsSaveFormSize = false;
  1290. this.Margin = new System.Windows.Forms.Padding(7, 6, 7, 6);
  1291. this.MaximizeBox = false;
  1292. this.MinimizeBox = false;
  1293. this.Name = "F_PC_0206";
  1294. this.ShowInTaskbar = false;
  1295. this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
  1296. this.StatusSizingGrip = false;
  1297. this.Text = "检验属性";
  1298. this.Load += new System.EventHandler(this.F_PC_0206_Load);
  1299. this.Controls.SetChildIndex(this.groupBox1, 0);
  1300. this.Controls.SetChildIndex(this.groupBox3, 0);
  1301. this.Controls.SetChildIndex(this.btnSave, 0);
  1302. this.Controls.SetChildIndex(this.btnCancel, 0);
  1303. this.groupBox1.ResumeLayout(false);
  1304. this.groupBox1.PerformLayout();
  1305. this.groupBox4.ResumeLayout(false);
  1306. this.groupBox4.PerformLayout();
  1307. this.GetDataOgrp.ResumeLayout(false);
  1308. this.GetDataOgrp.PerformLayout();
  1309. this.groupBox2.ResumeLayout(false);
  1310. this.groupBox2.PerformLayout();
  1311. this.groupBox3.ResumeLayout(false);
  1312. this.tabControl.ResumeLayout(false);
  1313. this.tabPage1.ResumeLayout(false);
  1314. ((System.ComponentModel.ISupportInitialize)(this.dgvGoods)).EndInit();
  1315. this.tabPage2.ResumeLayout(false);
  1316. ((System.ComponentModel.ISupportInitialize)(this.dgvUser)).EndInit();
  1317. this.tabPage3.ResumeLayout(false);
  1318. ((System.ComponentModel.ISupportInitialize)(this.dgvDefect)).EndInit();
  1319. this.tabPage4.ResumeLayout(false);
  1320. ((System.ComponentModel.ISupportInitialize)(this.dgvMissDefect)).EndInit();
  1321. this.ResumeLayout(false);
  1322. this.PerformLayout();
  1323. }
  1324. #endregion
  1325. #region 事件
  1326. /// <summary>
  1327. /// 保存按钮事件
  1328. /// </summary>
  1329. /// <param name="sender"></param>
  1330. /// <param name="e"></param>
  1331. private void btnSave_Click(object sender, EventArgs e)
  1332. {
  1333. try
  1334. {
  1335. #region 校验
  1336. #region 非空校验
  1337. if (string.IsNullOrEmpty(this.txtProcedureCode.Text.Trim()))
  1338. {
  1339. MessageBox.Show(string.Format(Messages.MSG_CMN_W005, "工序编码"),
  1340. this.Text,
  1341. MessageBoxButtons.OK,
  1342. MessageBoxIcon.Warning);
  1343. this.txtProcedureCode.Focus();
  1344. return;
  1345. }
  1346. if (string.IsNullOrEmpty(this.txtProcedureName.Text.Trim()))
  1347. {
  1348. MessageBox.Show(string.Format(Messages.MSG_CMN_W005, "工序名称"),
  1349. this.Text,
  1350. MessageBoxButtons.OK,
  1351. MessageBoxIcon.Warning);
  1352. this.txtProcedureName.Focus();
  1353. return;
  1354. }
  1355. if (string.IsNullOrEmpty(this.ddlProcessModelType.Text.Trim()))
  1356. {
  1357. MessageBox.Show(string.Format(Messages.MSG_CMN_W005, "工序类型"),
  1358. this.Text,
  1359. MessageBoxButtons.OK,
  1360. MessageBoxIcon.Warning);
  1361. this.ddlProcessModelType.Focus();
  1362. return;
  1363. }
  1364. if (sbOrganizationID.OrganizationID == null)
  1365. {
  1366. MessageBox.Show(string.Format(Messages.MSG_CMN_W005, "组织机构"),
  1367. this.Text,
  1368. MessageBoxButtons.OK,
  1369. MessageBoxIcon.Warning);
  1370. this.sbOrganizationID.Focus();
  1371. return;
  1372. }
  1373. #endregion
  1374. #region 规则检验
  1375. // 查询节点编码在本生产线中不重复
  1376. // string procedureCode = this.node.pr; //此工序的Code
  1377. int itemID = this.node.ItemID;
  1378. bool isError = false;
  1379. foreach (FlowNode flownode in this.control.AllNodes)
  1380. {
  1381. if (flownode.ItemID != itemID && flownode.Code == this.txtProcedureCode.Text.Trim())
  1382. {
  1383. isError = true;
  1384. break;
  1385. }
  1386. }
  1387. if (isError)
  1388. {
  1389. MessageBox.Show("工序编码在本生产线中已经存在!",
  1390. this.Text,
  1391. MessageBoxButtons.OK,
  1392. MessageBoxIcon.Warning);
  1393. this.txtProcedureCode.Focus();
  1394. return;
  1395. }
  1396. //// 查询节点编码在本生产线中不重复
  1397. //int count = this.control.node.rrNodeList.OfType<FlowNode>().Where(
  1398. // p => p.ProcedureEntity.ProcedureCode == this.txtProcedureCode.Text.Trim()
  1399. // && p.NodeListIndex != this.node.NodeListIndex
  1400. // ).Count();
  1401. //if (count > 0)
  1402. //{
  1403. // MessageBox.Show("工序编码在本生产线中已经存在!",
  1404. // this.Text,
  1405. // MessageBoxButtons.OK,
  1406. // MessageBoxIcon.Warning);
  1407. // this.txtProcedureCode.Focus();
  1408. // return;
  1409. //}
  1410. #endregion
  1411. #region 产品校验
  1412. if (this.dgvGoods.Rows.Count <= 1)
  1413. {
  1414. MessageBox.Show(string.Format(Messages.MSG_CMN_W005, "生产产品"),
  1415. this.Text,
  1416. MessageBoxButtons.OK,
  1417. MessageBoxIcon.Warning);
  1418. this.tabControl.SelectedIndex = 0;
  1419. this.dgvGoods.Focus();
  1420. return;
  1421. }
  1422. // 验证明细是否输入完整
  1423. foreach (DataGridViewRow row in this.dgvGoods.Rows)
  1424. {
  1425. if (row.IsNewRow)
  1426. {
  1427. continue;
  1428. }
  1429. // 产品编码
  1430. if (string.IsNullOrEmpty(row.Cells["GoodsID"].Value + ""))
  1431. {
  1432. MessageBox.Show(string.Format(Messages.MSG_CMN_W005, "产品编码"),
  1433. this.Text,
  1434. MessageBoxButtons.OK,
  1435. MessageBoxIcon.Warning);
  1436. this.tabControl.SelectedIndex = 0;
  1437. row.Cells["GoodsCode"].Selected = true;
  1438. return;
  1439. }
  1440. }
  1441. #endregion
  1442. #region 生产工号
  1443. if (this.dgvUser.Rows.Count <= 1)
  1444. {
  1445. MessageBox.Show(string.Format(Messages.MSG_CMN_W005, "操作工号"),
  1446. this.Text,
  1447. MessageBoxButtons.OK,
  1448. MessageBoxIcon.Warning);
  1449. this.tabControl.SelectedIndex = 1;
  1450. this.dgvUser.Focus();
  1451. return;
  1452. }
  1453. // 验证明细是否输入完整
  1454. for (int i = 0; i < this.dgvUser.Rows.Count; i++)
  1455. {
  1456. if (this.dgvUser.Rows[i].IsNewRow)
  1457. {
  1458. continue;
  1459. }
  1460. // 生产工号
  1461. if (string.IsNullOrEmpty(this.dgvUser.Rows[i].Cells["UserID"].Value + ""))
  1462. {
  1463. MessageBox.Show(string.Format(Messages.MSG_CMN_W005, "生产工号"),
  1464. this.Text,
  1465. MessageBoxButtons.OK,
  1466. MessageBoxIcon.Warning);
  1467. this.tabControl.SelectedIndex = 1;
  1468. this.dgvUser.Rows[i].Cells["UserID"].Selected = true;
  1469. return;
  1470. }
  1471. // 2层循环判断是否有重复的工号
  1472. for (int j = i + 1; j < this.dgvUser.Rows.Count; j++)
  1473. {
  1474. if (this.dgvUser.Rows[i].Cells["UserID"].Value + ""
  1475. == this.dgvUser.Rows[j].Cells["UserID"].Value + "")
  1476. {
  1477. MessageBox.Show("生产工号在列表中重复出现。",
  1478. this.Text,
  1479. MessageBoxButtons.OK,
  1480. MessageBoxIcon.Warning);
  1481. this.tabControl.SelectedIndex = 1;
  1482. this.dgvUser.Rows[i].Cells["UserID"].Selected = true;
  1483. return;
  1484. }
  1485. }
  1486. }
  1487. #endregion
  1488. #region 可检缺陷
  1489. // 验证明细是否输入完整
  1490. DataTable dtDefect = this.dgvDefect.DataSource as DataTable;
  1491. for (int i = 0; i < dtDefect.Rows.Count; i++)
  1492. {
  1493. if (this.dgvDefect.Rows[i].IsNewRow)
  1494. {
  1495. continue;
  1496. }
  1497. // 存在缺陷不能为空
  1498. if (string.IsNullOrEmpty(this.dgvDefect.Rows[i].Cells["DefectID"].Value + ""))
  1499. {
  1500. MessageBox.Show(string.Format(Messages.MSG_CMN_W005, "缺陷"),
  1501. this.Text,
  1502. MessageBoxButtons.OK,
  1503. MessageBoxIcon.Warning);
  1504. this.tabControl.SelectedIndex = 2;
  1505. this.dgvDefect.Rows[i].Cells["DefectID"].Selected = true;
  1506. return;
  1507. }
  1508. // 2层循环判断是否有重复的工号
  1509. for (int j = i + 1; j < this.dgvDefect.Rows.Count; j++)
  1510. {
  1511. if (this.dgvDefect.Rows[i].Cells["DefectID"].Value + ""
  1512. == this.dgvDefect.Rows[j].Cells["DefectID"].Value + "")
  1513. {
  1514. MessageBox.Show("缺陷在列表中重复出现。",
  1515. this.Text,
  1516. MessageBoxButtons.OK,
  1517. MessageBoxIcon.Warning);
  1518. this.tabControl.SelectedIndex = 2;
  1519. this.dgvDefect.Rows[i].Cells["DefectID"].Selected = true;
  1520. return;
  1521. }
  1522. }
  1523. }
  1524. #endregion
  1525. #region 存在缺陷对应责任工种
  1526. // 验证明细是否输入完整
  1527. for (int i = 0; i < this.dgvMissDefect.Rows.Count; i++)
  1528. {
  1529. if (this.dgvMissDefect.Rows[i].IsNewRow)
  1530. {
  1531. continue;
  1532. }
  1533. // 存在缺陷不能为空
  1534. if (string.IsNullOrEmpty(this.dgvMissDefect.Rows[i].Cells["MissDefectID"].Value + ""))
  1535. {
  1536. MessageBox.Show(string.Format(Messages.MSG_CMN_W005, "缺陷"),
  1537. this.Text,
  1538. MessageBoxButtons.OK,
  1539. MessageBoxIcon.Warning);
  1540. this.tabControl.SelectedIndex = 3;
  1541. this.dgvMissDefect.Rows[i].Cells["MissDefectCode"].Selected = true;
  1542. return;
  1543. }
  1544. // 责任工种不能为空
  1545. if (string.IsNullOrEmpty(this.dgvMissDefect.Rows[i].Cells["JobsID"].Value + ""))
  1546. {
  1547. MessageBox.Show(string.Format(Messages.MSG_CMN_W005, "责任工种"),
  1548. this.Text,
  1549. MessageBoxButtons.OK,
  1550. MessageBoxIcon.Warning);
  1551. this.tabControl.SelectedIndex = 3;
  1552. this.dgvMissDefect.Rows[i].Cells["JobsCode"].Selected = true;
  1553. return;
  1554. }
  1555. // 2层循环判断是否有重复的工号
  1556. for (int j = i + 1; j < dtDefect.Rows.Count; j++)// this.dgvDefect
  1557. {
  1558. if (this.dgvMissDefect.Rows[i].Cells["MissDefectID"].Value + "," + this.dgvMissDefect.Rows[i].Cells["JobsID"].Value
  1559. == this.dgvMissDefect.Rows[j].Cells["MissDefectID"].Value + "," + this.dgvMissDefect.Rows[j].Cells["JobsID"].Value)
  1560. {
  1561. MessageBox.Show("缺陷与责任工种的组合在列表中重复出现。",
  1562. this.Text,
  1563. MessageBoxButtons.OK,
  1564. MessageBoxIcon.Warning);
  1565. this.tabControl.SelectedIndex = 3;
  1566. this.dgvMissDefect.Rows[i].Selected = true;
  1567. this.dgvMissDefect.Rows[j].Selected = true;
  1568. return;
  1569. }
  1570. }
  1571. }
  1572. #endregion
  1573. #endregion
  1574. #region 工序节点赋值
  1575. this._procedureEntity.ProcedureCode = this.txtProcedureCode.Text.Trim();
  1576. this.node.Name = this.txtProcedureName.Text.Trim();
  1577. this._procedureEntity.ProcedureName = this.txtProcedureName.Text.Trim();
  1578. this._procedureEntity.ModelType = Convert.ToInt32(this.ddlProcessModelType.ListBox.SelectedValue);
  1579. this._procedureEntity.OrganizationID = (int)this.sbOrganizationID.OrganizationID;
  1580. this._procedureEntity.CollectType = rbtnMore.Checked ? 1 : 2;
  1581. this._procedureEntity.MustFlag = rBtnNeed.Checked ? 1 : 2;
  1582. if (this._procedureEntity.MustFlag == 1)
  1583. { this.node.CanSkip = false; }
  1584. else { this.node.CanSkip = true; }
  1585. this._procedureEntity.DisplayNo = this.txtDisplayNo.Text.Trim() == "" ? 0 : Convert.ToInt32(this.txtDisplayNo.Text.Trim());
  1586. // 计件模式
  1587. //this.node.PieceType = rbtnMore.Checked ? 1 : 2;
  1588. // 特殊返工工序
  1589. //this.node.IsSpecialRework =
  1590. this._procedureEntity.Remarks = this.txtRemarks.Text.Trim();
  1591. // 生产产品
  1592. this._procedureEntity.ProcedureGoodsTable = this.dgvGoods.DataSource as DataTable;
  1593. this._procedureEntity.ProcedureGoodsTable.AcceptChanges();
  1594. // 操作工号表
  1595. this._procedureEntity.ProcedureUserTable = this.dgvUser.DataSource as DataTable;
  1596. this._procedureEntity.ProcedureUserTable.AcceptChanges();
  1597. // 缺陷
  1598. this._procedureEntity.ProcedureDefectTable = this.dgvDefect.DataSource as DataTable;
  1599. this._procedureEntity.ProcedureDefectTable.AcceptChanges();
  1600. // 漏检缺陷
  1601. this._procedureEntity.DefectProcedureJobsTable = this.dgvMissDefect.DataSource as DataTable;
  1602. this._procedureEntity.DefectProcedureJobsTable.AcceptChanges();
  1603. //漏扫排序号
  1604. this._procedureEntity.MissPriority = this.txtmisspriority.Text.Trim() == "" ? 0 : Convert.ToInt32(this.txtmisspriority.Text);
  1605. this._procedureEntity.BarCodePrintCopies = this.txtBarCodePrintCopies.DataValue.HasValue ? Convert.ToInt32(this.txtBarCodePrintCopies.DataValue) : 0;
  1606. //打印类型 xuwei add 2019-11-20
  1607. this._procedureEntity.PrintType = Convert.ToInt32(this.ddlPrintType.SelectedValue.ToString());
  1608. #region 计件方式
  1609. this._procedureEntity.PieceType =
  1610. radioJobsPrice.Checked ? Constant.ProcedurePieceType.JobsPiece.GetHashCode() : Constant.ProcedurePieceType.NoPiece.GetHashCode();
  1611. #endregion
  1612. #endregion
  1613. if (this._IsEdit)
  1614. {
  1615. int result = PCModuleProxy.Service.SaveProcedureInfo(this._procedureEntity);
  1616. if (result > Constant.INT_IS_ZERO)
  1617. {
  1618. MessageBox.Show(string.Format(Messages.MSG_CMN_I001, this.txtProcedureName.Text.Trim(), Constant.OPERATE_SAVE),
  1619. this.Text, MessageBoxButtons.OK, MessageBoxIcon.Information);
  1620. this.DialogResult = DialogResult.OK;
  1621. }
  1622. else if (result == Constant.RETURN_IS_DATACHANGED)
  1623. {
  1624. MessageBox.Show(Messages.MSG_CMN_W012,
  1625. this.Text, MessageBoxButtons.OK, MessageBoxIcon.Warning);
  1626. return;
  1627. }
  1628. else
  1629. {
  1630. MessageBox.Show(string.Format(Messages.MSG_CMN_W001, this.txtProcedureName.Text.Trim(), Constant.OPERATE_SAVE),
  1631. this.Text, MessageBoxButtons.OK, MessageBoxIcon.Warning);
  1632. return;
  1633. }
  1634. }
  1635. this.Close();
  1636. }
  1637. catch (Exception ex)
  1638. {
  1639. // 对异常进行共通处理
  1640. ExceptionManager.HandleEventException(this.ToString(),
  1641. System.Reflection.MethodBase.GetCurrentMethod().Name, this.Text, ex);
  1642. }
  1643. }
  1644. /// <summary>
  1645. /// 窗体加载事件-添加控件
  1646. /// </summary>
  1647. /// <param name="sender"></param>
  1648. /// <param name="e"></param>
  1649. private void F_PC_0206_Load(object sender, EventArgs e)
  1650. {
  1651. try
  1652. {
  1653. if (IsReadOnlyCode)
  1654. {
  1655. //this.txtProcedureCode.ReadOnly = true;
  1656. }
  1657. this.tabPage4.Parent = null;//隐藏缺陷漏检选项卡
  1658. #region 数据加载
  1659. this.dgvGoods.AutoGenerateColumns = false;
  1660. this.dgvUser.AutoGenerateColumns = false;
  1661. this.dgvDefect.AutoGenerateColumns = false;
  1662. this.dgvMissDefect.AutoGenerateColumns = false;
  1663. // 加载产品列表的结构
  1664. this.dgvGoods.DataSource = this._procedureEntity.ProcedureGoodsTable.Copy();
  1665. this.dgvGoods.IsSetInputColumnsColor = true;
  1666. // 加载操作工号表
  1667. this.dgvUser.DataSource = this._procedureEntity.ProcedureUserTable.Copy();
  1668. this.dgvUser.IsSetInputColumnsColor = true;
  1669. // 加载缺陷
  1670. this.dgvDefect.DataSource = this._procedureEntity.ProcedureDefectTable.Copy();
  1671. this.dgvDefect.IsSetInputColumnsColor = true;
  1672. // 加载漏检缺陷
  1673. this.dgvMissDefect.DataSource = this._procedureEntity.DefectProcedureJobsTable.Copy();
  1674. this.dgvMissDefect.IsSetInputColumnsColor = true;
  1675. this.ddlProcessModelType.DisplayMember = "ProcedureModelTypeName";
  1676. this.ddlProcessModelType.ValueMember = "ProcedureModelTypeID";
  1677. DataTable dtModelType = LogInUserInfo.CurrentUser.GetSystemParameterByName(Constant.SysCacheTable.TP_SYS_ProcedureModelType); //SystemModuleProxy.Service.GetSYSProcessModelType();
  1678. this.ddlProcessModelType.DataSource = dtModelType.Select("ProcedureModelTypeID<=0 and Valueflag=1").CopyToDataTable();
  1679. //加载 打印类型 xuwei begin 2019-11-20
  1680. this.ddlPrintType.DisplayMember = "PRINTTYPENAME";
  1681. this.ddlPrintType.ValueMember = "PRINTTYPEID";
  1682. ClientRequestEntity cre = new ClientRequestEntity();
  1683. cre.NameSpace = "PrintInfo";
  1684. cre.Name = "GetPrintType";
  1685. DataTable dtPrintType = SystemModuleProxy.Service.DoBarCodePrint(cre).Data.Tables[0];
  1686. DataRow dr = dtPrintType.NewRow();
  1687. dr["PRINTTYPENAME"] = "请选择...";
  1688. dr["PRINTTYPEID"] = "0";
  1689. dtPrintType.Rows.InsertAt(dr, 0);
  1690. this.ddlPrintType.DataSource = dtPrintType;
  1691. this.ddlPrintType.SelectedValue = this._procedureEntity.PrintType;
  1692. //加载 打印类型 xuwei end
  1693. #endregion
  1694. #region 窗体赋值
  1695. if (string.IsNullOrEmpty(this._procedureEntity.ProcedureCode))
  1696. {
  1697. this.txtProcedureCode.Text = this._procedureEntity.NodeNo + "";
  1698. this._procedureEntity.ProcedureCode = this._procedureEntity.NodeNo + "";
  1699. }
  1700. else
  1701. {
  1702. this.txtProcedureCode.Text = this._procedureEntity.ProcedureCode;
  1703. }
  1704. this.txtProcedureName.Text = this.node.Name;
  1705. this.txtRemarks.Text = this._procedureEntity.Remarks;
  1706. this.ddlProcessModelType.ListBox.SelectedValue = this._procedureEntity.ModelType;
  1707. // 不是重复代码。必须要赋值2行
  1708. this.ddlProcessModelType.ListBox.SelectedValue = this._procedureEntity.ModelType;
  1709. this.sbOrganizationID.OrganizationID = this._procedureEntity.OrganizationID;
  1710. this.rbtnOne.Checked = (this._procedureEntity.CollectType == Constant.ProcedureCollectType.SinglePoint.GetHashCode());
  1711. this.rbtnMore.Checked = (this._procedureEntity.CollectType == Constant.ProcedureCollectType.Togather.GetHashCode());
  1712. this.rBtnNeed.Checked = (this._procedureEntity.MustFlag == Constant.ProcedureMustFlag.Yes.GetHashCode());
  1713. this.rBtnNoNeed.Checked = (this._procedureEntity.MustFlag == Constant.ProcedureMustFlag.NonMust.GetHashCode());
  1714. this.radioJobsPrice.Checked = (this._procedureEntity.PieceType == Constant.ProcedurePieceType.JobsPiece.GetHashCode());
  1715. this.radioNotPrice.Checked = (this._procedureEntity.PieceType == Constant.ProcedurePieceType.NoPiece.GetHashCode());
  1716. #endregion
  1717. this.txtmisspriority.Text = this._procedureEntity.MissPriority.ToString();
  1718. this.txtDisplayNo.Text = this._procedureEntity.DisplayNo.ToString();
  1719. }
  1720. catch (Exception ex)
  1721. {
  1722. // 对异常进行共通处理
  1723. ExceptionManager.HandleEventException(this.ToString(),
  1724. System.Reflection.MethodBase.GetCurrentMethod().Name, this.Text, ex);
  1725. }
  1726. }
  1727. /// <summary>
  1728. /// 值改变事件
  1729. /// </summary>
  1730. /// <param name="sender"></param>
  1731. /// <param name="e"></param>
  1732. private void dgvGoods_CellValueChanged(object sender, DataGridViewCellEventArgs e)
  1733. {
  1734. try
  1735. {
  1736. if (this.dgvGoods.Rows.Count <= 1)
  1737. {
  1738. return;
  1739. }
  1740. DataGridViewRow rowItem = this.dgvGoods.Rows[e.RowIndex];
  1741. DataGridViewColumn columnItem = this.dgvGoods.Columns[e.ColumnIndex];
  1742. // 用编号获取产品信息
  1743. if ("GoodsCode".Equals(columnItem.Name))
  1744. {
  1745. FormUtility.BindGoodsRowDataSource(this.dgvGoods,
  1746. e.RowIndex, columnItem.Name, _goodsCodeValue);
  1747. // 设置可输入单元格的颜色
  1748. this.dgvGoods.IsSetInputColumnsColor = true;
  1749. }
  1750. }
  1751. catch (Exception ex)
  1752. {
  1753. // 对异常进行共通处理
  1754. ExceptionManager.HandleEventException(this.ToString(),
  1755. System.Reflection.MethodBase.GetCurrentMethod().Name, this.Text, ex);
  1756. }
  1757. }
  1758. /// <summary>
  1759. /// 单元格开始编辑事件
  1760. /// </summary>
  1761. /// <param name="sender"></param>
  1762. /// <param name="e"></param>
  1763. private void dgvGoods_CellBeginEdit(object sender, DataGridViewCellCancelEventArgs e)
  1764. {
  1765. try
  1766. {
  1767. if (this.dgvGoods.Rows.Count <= 1 || !_ShowFlag)
  1768. {
  1769. return;
  1770. }
  1771. DataGridViewColumn columnItem = this.dgvGoods.Columns[e.ColumnIndex];
  1772. if ("GoodsCode".Equals(columnItem.Name))
  1773. {
  1774. _ShowFlag = false;
  1775. _goodsCodeValue = this.dgvGoods.Rows[e.RowIndex].Cells[columnItem.Name].Value + "";
  1776. }
  1777. _ShowFlag = true;
  1778. }
  1779. catch (Exception ex)
  1780. {
  1781. _ShowFlag = true;
  1782. // 对异常进行共通处理
  1783. ExceptionManager.HandleEventException(this.ToString(),
  1784. System.Reflection.MethodBase.GetCurrentMethod().Name, this.Text, ex);
  1785. }
  1786. }
  1787. /// <summary>
  1788. /// 可采集工号输入
  1789. /// </summary>
  1790. /// <param name="sender"></param>
  1791. /// <param name="e"></param>
  1792. private void dgvUser_CellBeginEdit(object sender, DataGridViewCellCancelEventArgs e)
  1793. {
  1794. try
  1795. {
  1796. if (this.dgvUser.Rows.Count <= 1)
  1797. {
  1798. return;
  1799. }
  1800. DataGridViewColumn columnItem = this.dgvUser.Columns[e.ColumnIndex];
  1801. if ("UserCode".Equals(columnItem.Name))
  1802. {
  1803. _userCodeValue = this.dgvUser.Rows[e.RowIndex].Cells[columnItem.Name].Value + "";
  1804. }
  1805. }
  1806. catch (Exception ex)
  1807. {
  1808. // 对异常进行共通处理
  1809. ExceptionManager.HandleEventException(this.ToString(),
  1810. System.Reflection.MethodBase.GetCurrentMethod().Name, this.Text, ex);
  1811. }
  1812. }
  1813. /// <summary>
  1814. /// 选择工号
  1815. /// </summary>
  1816. /// <param name="sender"></param>
  1817. /// <param name="e"></param>
  1818. private void dgvUser_CellValueChanged(object sender, DataGridViewCellEventArgs e)
  1819. {
  1820. try
  1821. {
  1822. if (this.dgvUser.Rows.Count <= 1 || !_ShowFlag)
  1823. {
  1824. return;
  1825. }
  1826. DataGridViewRow rowItem = this.dgvUser.Rows[e.RowIndex];
  1827. DataGridViewColumn columnItem = this.dgvUser.Columns[e.ColumnIndex];
  1828. // 用编号获取产品信息
  1829. if ("UserCode".Equals(columnItem.Name))
  1830. {
  1831. _ShowFlag = false;
  1832. FormUtility.BindUserRowDataSource(this.dgvUser,
  1833. e.RowIndex, columnItem.Name, _userCodeValue);
  1834. // 设置可输入单元格的颜色
  1835. this.dgvUser.IsSetInputColumnsColor = true;
  1836. }
  1837. _ShowFlag = true;
  1838. }
  1839. catch (Exception ex)
  1840. {
  1841. _ShowFlag = true;
  1842. // 对异常进行共通处理
  1843. ExceptionManager.HandleEventException(this.ToString(),
  1844. System.Reflection.MethodBase.GetCurrentMethod().Name, this.Text, ex);
  1845. }
  1846. }
  1847. /// <summary>
  1848. /// 缺陷输入
  1849. /// </summary>
  1850. /// <param name="sender"></param>
  1851. /// <param name="e"></param>
  1852. private void dgvDefect_CellBeginEdit(object sender, DataGridViewCellCancelEventArgs e)
  1853. {
  1854. try
  1855. {
  1856. if (this.dgvUser.Rows.Count <= 1)
  1857. {
  1858. return;
  1859. }
  1860. DataGridViewColumn columnItem = this.dgvDefect.Columns[e.ColumnIndex];
  1861. if ("DefectCode".Equals(columnItem.Name))
  1862. {
  1863. _defectCodeValue = this.dgvDefect.Rows[e.RowIndex].Cells[columnItem.Name].Value + "";
  1864. }
  1865. }
  1866. catch (Exception ex)
  1867. {
  1868. // 对异常进行共通处理
  1869. ExceptionManager.HandleEventException(this.ToString(),
  1870. System.Reflection.MethodBase.GetCurrentMethod().Name, this.Text, ex);
  1871. }
  1872. }
  1873. /// <summary>
  1874. /// 弹出窗体
  1875. /// </summary>
  1876. /// <param name="sender"></param>
  1877. /// <param name="e"></param>
  1878. private void dgvDefect_CellValueChanged(object sender, DataGridViewCellEventArgs e)
  1879. {
  1880. try
  1881. {
  1882. if (this.dgvDefect.Rows.Count <= 1 || !_ShowFlag)
  1883. {
  1884. return;
  1885. }
  1886. DataGridViewRow rowItem = this.dgvDefect.Rows[e.RowIndex];
  1887. DataGridViewColumn columnItem = this.dgvDefect.Columns[e.ColumnIndex];
  1888. // 用编号获取产品信息
  1889. if ("DefectCode".Equals(columnItem.Name))
  1890. {
  1891. _ShowFlag = false;
  1892. FormUtility.BindDefectRowDataSource(this.dgvDefect,
  1893. e.RowIndex, columnItem.Name, _defectCodeValue);
  1894. // 设置可输入单元格的颜色
  1895. this.dgvDefect.IsSetInputColumnsColor = true;
  1896. }
  1897. _ShowFlag = true;
  1898. }
  1899. catch (Exception ex)
  1900. {
  1901. _ShowFlag = true;
  1902. // 对异常进行共通处理
  1903. ExceptionManager.HandleEventException(this.ToString(),
  1904. System.Reflection.MethodBase.GetCurrentMethod().Name, this.Text, ex);
  1905. }
  1906. }
  1907. /// <summary>
  1908. /// 输入缺陷编码和名称
  1909. /// </summary>
  1910. /// <param name="sender"></param>
  1911. /// <param name="e"></param>
  1912. private void dgvMissDefect_CellBeginEdit(object sender, DataGridViewCellCancelEventArgs e)
  1913. {
  1914. try
  1915. {
  1916. if (this.dgvMissDefect.Rows.Count <= 1)
  1917. {
  1918. return;
  1919. }
  1920. DataGridViewColumn columnItem = this.dgvMissDefect.Columns[e.ColumnIndex];
  1921. if ("DefectCode".Equals(columnItem.Name))
  1922. {
  1923. _defectCodeValue = this.dgvMissDefect.Rows[e.RowIndex].Cells[columnItem.Name].Value + "";
  1924. }
  1925. else if ("JobsCode".Equals(columnItem.Name))
  1926. {
  1927. _JobsCodeValue = this.dgvMissDefect.Rows[e.RowIndex].Cells[columnItem.Name].Value + "";
  1928. }
  1929. }
  1930. catch (Exception ex)
  1931. {
  1932. // 对异常进行共通处理
  1933. ExceptionManager.HandleEventException(this.ToString(),
  1934. System.Reflection.MethodBase.GetCurrentMethod().Name, this.Text, ex);
  1935. }
  1936. }
  1937. /// <summary>
  1938. /// 值改变事件
  1939. /// </summary>
  1940. /// <param name="sender"></param>
  1941. /// <param name="e"></param>
  1942. private void dgvMissDefect_CellValueChanged(object sender, DataGridViewCellEventArgs e)
  1943. {
  1944. try
  1945. {
  1946. if (this.dgvMissDefect.Rows.Count <= 1 || !_ShowFlag)
  1947. {
  1948. return;
  1949. }
  1950. DataGridViewRow rowItem = this.dgvMissDefect.Rows[e.RowIndex];
  1951. DataGridViewColumn columnItem = this.dgvMissDefect.Columns[e.ColumnIndex];
  1952. if ("MissDefectCode".Equals(columnItem.Name))
  1953. {
  1954. _ShowFlag = false;
  1955. FormUtility.BindDefectRowRepeatDataSource(this.dgvMissDefect,
  1956. e.RowIndex, columnItem.Name, _defectCodeValue);
  1957. // 设置可输入单元格的颜色
  1958. this.dgvMissDefect.IsSetInputColumnsColor = true;
  1959. }
  1960. if ("JobsCode".Equals(columnItem.Name))
  1961. {
  1962. _ShowFlag = false;
  1963. FormUtility.BindJobsOneRowDataSource(this.dgvMissDefect,
  1964. e.RowIndex, columnItem.Name, _JobsCodeValue);
  1965. // 设置可输入单元格的颜色
  1966. this.dgvMissDefect.IsSetInputColumnsColor = true;
  1967. }
  1968. _ShowFlag = true;
  1969. }
  1970. catch (Exception ex)
  1971. {
  1972. _ShowFlag = true;
  1973. // 对异常进行共通处理
  1974. ExceptionManager.HandleEventException(this.ToString(),
  1975. System.Reflection.MethodBase.GetCurrentMethod().Name, this.Text, ex);
  1976. }
  1977. }
  1978. #endregion
  1979. //xuwei add 2019-11-20
  1980. private void ddlPrintType_SelectedIndexChanged(object sender, EventArgs e)
  1981. {
  1982. if (ddlPrintType.SelectedIndex > 0 && txtBarCodePrintCopies.Text == "0")
  1983. txtBarCodePrintCopies.Text = "1";
  1984. }
  1985. }
  1986. }