F_PC_0206.cs 109 KB

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