F_PC_0206.cs 113 KB

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