F_PC_0206.cs 106 KB

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