F_PC_0206.cs 113 KB

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