F_PC_0206.cs 108 KB

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