F_PC_0206.cs 116 KB

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