F_PC_0206.cs 112 KB

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