F_PC_0206.cs 98 KB

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