F_PC_0206.cs 109 KB

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