F_PC_0207.cs 131 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617
  1. /*******************************************************************************
  2. * Copyright(c) 2014 DongkeSoft All rights reserved. / Confidential
  3. * 类的信息:
  4. * 1.程序名称:F_PC_0207.cs
  5. * 2.功能描述:生产线配置计件属性
  6. * 编辑履历:
  7. * 作者 日期 版本 修改内容
  8. * 王鑫 2015/03/25 1.00 新建
  9. *******************************************************************************/
  10. using System;
  11. using System.Collections;
  12. using System.ComponentModel;
  13. using System.Data;
  14. using System.Linq;
  15. using System.Windows.Forms;
  16. using Dongke.IBOSS.PRD.Basics.BaseControls;
  17. using Dongke.IBOSS.PRD.Basics.BaseResources;
  18. using Dongke.IBOSS.PRD.Client.CommonModule;
  19. using Dongke.IBOSS.PRD.Client.Controls;
  20. using Dongke.IBOSS.PRD.Client.DataModels;
  21. using Dongke.IBOSS.Basics.FlowSetting;
  22. using Dongke.IBOSS.PRD.WCF.Proxys.PCModuleService;
  23. using Dongke.IBOSS.PRD.WCF.DataModels;
  24. using Dongke.IBOSS.PRD.WCF.Proxys;
  25. namespace Dongke.IBOSS.PRD.Client.PCModule
  26. {
  27. /// <summary>
  28. /// 生产线配置计件属性
  29. /// </summary>
  30. public partial class F_PC_0207 : FormBase
  31. {
  32. #region 成员变量
  33. private string _kilnCodeValue;
  34. private string _userCodeValue;
  35. private string _defectCodeValue;
  36. private string _JobsCodeValue;
  37. private bool _ShowFlag = true;
  38. private FlowNode node;//传入的编辑的节点
  39. private FlowBox control;//主父框架
  40. //private DateTime dt_TempDateTime;//记录就要被修改的值//流入节点的关系名称//流出节点的关系名称
  41. private ArrayList arr_InFlowLineList;//连入节点的名称
  42. private ArrayList arr_OutFlowLineList;//连出节点的名称
  43. //private string str_NodeTypeSeleBefor;
  44. private GroupBox GetDataOgrp;
  45. public RadioButton rbtnMore;
  46. public RadioButton rbtnOne;
  47. private GroupBox groupBox2;
  48. public RadioButton rBtnNoNeed;
  49. public RadioButton rBtnNeed;
  50. private Label label1;
  51. private GroupBox groupBox3;
  52. private TabControl tabControl;
  53. private TabPage tabPage1;
  54. private TabPage tabPage2;
  55. private TabPage tabPage3;
  56. private GroupBox groupBox5;
  57. private Dongke.IBOSS.PRD.Client.Controls.dkOrganizationSearchBox sbOrganizationID;
  58. private DataGridViewTextBoxColumn dataGridViewTextBoxColumn3;
  59. private DataGridViewTextBoxColumn dataGridViewTextBoxColumn4;
  60. private DataGridViewTextBoxColumn dataGridViewTextBoxColumn5;
  61. private DataGridViewTextBoxColumn dataGridViewTextBoxColumn6;
  62. private DataGridViewTextBoxColumn dataGridViewTextBoxColumn7;
  63. private DataGridViewTextBoxColumn dataGridViewTextBoxColumn8;
  64. private DataGridViewTextBoxColumn dataGridViewTextBoxColumn9;
  65. private Dongke.IBOSS.PRD.Basics.BaseControls.C_TextBox txtProcedureName;
  66. private Dongke.IBOSS.PRD.Basics.BaseControls.C_TextBox txtProcedureCode;
  67. private Dongke.IBOSS.PRD.Basics.BaseControls.C_Label c_Label3;
  68. private Dongke.IBOSS.PRD.Basics.BaseControls.C_Label c_Label2;
  69. private Dongke.IBOSS.PRD.Basics.BaseControls.C_Label c_Label1;
  70. private C_DataGridView dgvGoods;
  71. private C_Button btnSave;
  72. private C_Button btnCancel;
  73. private IContainer components;
  74. private C_DataGridView dgvUser;//之前选择定的节点类型
  75. private string _goodsCodeValue;
  76. private C_DataGridView dgvDefect; // 暂存产品编码
  77. //private System.Data.DataTable _userDt;//用户信息
  78. //private System.Data.DataTable _defectDt;
  79. private GroupBox groupBox1;
  80. private DKListBoxComboBox ddlProcessModelType;
  81. private DataGridViewComboBoxColumn UserID_NO;
  82. private DataGridViewTextBoxColumn UserID;
  83. private DataGridViewTextBoxColumn UserCode;
  84. private DataGridViewTextBoxColumn UserName;
  85. private DataGridViewTextBoxColumn DefectID;
  86. private DataGridViewTextBoxColumn DefectCode;
  87. private DataGridViewTextBoxColumn DefectName;
  88. private DataGridViewTextBoxColumn JobsID;
  89. private DataGridViewTextBoxColumn JobsCode;
  90. private DataGridViewTextBoxColumn JobsName;
  91. private DataGridViewComboBoxColumn DefectID_NO;
  92. private DataGridViewComboBoxColumn JobsID_NO;
  93. private GroupBox groupBox4;
  94. public RadioButton radioJobsPrice;
  95. public RadioButton radioNotPrice;
  96. //private System.Data.DataTable _JobsDt;
  97. private ProcedureEntity _procedureEntity = new ProcedureEntity();
  98. private bool _IsEdit = false;
  99. private bool _IsReadonlyCode = false;
  100. #endregion
  101. #region 属性
  102. /// <summary>
  103. /// 只读工序编码
  104. /// </summary>
  105. public bool IsReadOnlyCode
  106. {
  107. set
  108. {
  109. _IsReadonlyCode = value;
  110. }
  111. get
  112. {
  113. return _IsReadonlyCode;
  114. }
  115. }
  116. #endregion
  117. #region 构造
  118. public F_PC_0207(FlowNode node, FlowBox control)
  119. {
  120. //
  121. // Windows 窗体设计器支持所必需的
  122. //
  123. InitializeComponent();
  124. this.btnSave.Text = ButtonText.BTN_SAVE;
  125. this.btnCancel.Text = ButtonText.BTN_CANCEL;
  126. // 初始化
  127. Init(node, control);
  128. }
  129. public F_PC_0207(FlowNode node, FlowBox control, bool isedit)
  130. {
  131. //
  132. // Windows 窗体设计器支持所必需的
  133. //
  134. InitializeComponent();
  135. this.btnSave.Text = ButtonText.BTN_SAVE;
  136. this.btnCancel.Text = ButtonText.BTN_CANCEL;
  137. this._IsEdit = isedit;
  138. //this.txtProcedureCode.ReadOnly = true;
  139. this.ddlProcessModelType.Enabled = false;
  140. //xuwei fix 2019-10-17
  141. //this.rBtnNeed.Enabled = false;
  142. //this.rBtnNoNeed.Enabled = false;
  143. // 初始化
  144. Init(node, control);
  145. }
  146. /// <summary>
  147. /// 初始化
  148. /// </summary>
  149. private void Init(FlowNode node, FlowBox control)
  150. {
  151. this.node = node;
  152. this.control = control;
  153. this.arr_InFlowLineList = new ArrayList();
  154. this.arr_OutFlowLineList = new ArrayList();
  155. this.FormContentInit();
  156. //this.BackgroundImage = new Bitmap(GetType(), "images.attribute.png");
  157. }
  158. /// <summary>
  159. /// 清理所有正在使用的资源。
  160. /// </summary>
  161. protected override void Dispose(bool disposing)
  162. {
  163. if (disposing)
  164. {
  165. if (components != null)
  166. {
  167. components.Dispose();
  168. }
  169. }
  170. base.Dispose(disposing);
  171. }
  172. #endregion
  173. #region Windows 窗体设计器生成的代码
  174. /// <summary>
  175. /// 设计器支持所需的方法 - 不要使用代码编辑器修改
  176. /// 此方法的内容。
  177. /// </summary>
  178. private void InitializeComponent()
  179. {
  180. System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle53 = new System.Windows.Forms.DataGridViewCellStyle();
  181. System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle54 = new System.Windows.Forms.DataGridViewCellStyle();
  182. System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle55 = new System.Windows.Forms.DataGridViewCellStyle();
  183. System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle56 = new System.Windows.Forms.DataGridViewCellStyle();
  184. System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle57 = new System.Windows.Forms.DataGridViewCellStyle();
  185. System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle58 = new System.Windows.Forms.DataGridViewCellStyle();
  186. System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle59 = new System.Windows.Forms.DataGridViewCellStyle();
  187. System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle60 = new System.Windows.Forms.DataGridViewCellStyle();
  188. System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle61 = new System.Windows.Forms.DataGridViewCellStyle();
  189. System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle62 = new System.Windows.Forms.DataGridViewCellStyle();
  190. System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle63 = new System.Windows.Forms.DataGridViewCellStyle();
  191. System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle64 = new System.Windows.Forms.DataGridViewCellStyle();
  192. System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle65 = new System.Windows.Forms.DataGridViewCellStyle();
  193. System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(F_PC_0207));
  194. this.txtProcedureName = new Dongke.IBOSS.PRD.Basics.BaseControls.C_TextBox();
  195. this.txtProcedureCode = new Dongke.IBOSS.PRD.Basics.BaseControls.C_TextBox();
  196. this.c_Label3 = new Dongke.IBOSS.PRD.Basics.BaseControls.C_Label();
  197. this.c_Label2 = new Dongke.IBOSS.PRD.Basics.BaseControls.C_Label();
  198. this.c_Label1 = new Dongke.IBOSS.PRD.Basics.BaseControls.C_Label();
  199. this.GetDataOgrp = new System.Windows.Forms.GroupBox();
  200. this.rbtnMore = new System.Windows.Forms.RadioButton();
  201. this.rbtnOne = new System.Windows.Forms.RadioButton();
  202. this.groupBox5 = new System.Windows.Forms.GroupBox();
  203. this.rbtnSpecialSemireProcess = new Dongke.WinForm.Controls.ChkCheckBox();
  204. this.rbtnSpecialReworkProcess = new Dongke.WinForm.Controls.ChkCheckBox();
  205. this.groupBox2 = new System.Windows.Forms.GroupBox();
  206. this.rBtnNoNeed = new System.Windows.Forms.RadioButton();
  207. this.rBtnNeed = new System.Windows.Forms.RadioButton();
  208. this.label1 = new System.Windows.Forms.Label();
  209. this.txtRemarks = new Dongke.IBOSS.PRD.Basics.BaseControls.C_TextBox();
  210. this.groupBox3 = new System.Windows.Forms.GroupBox();
  211. this.tabControl = new System.Windows.Forms.TabControl();
  212. this.tabPage1 = new System.Windows.Forms.TabPage();
  213. this.dgvGoods = new Dongke.IBOSS.PRD.Basics.BaseControls.C_DataGridView();
  214. this.GoodsID = new System.Windows.Forms.DataGridViewTextBoxColumn();
  215. this.GoodsCode = new System.Windows.Forms.DataGridViewTextBoxColumn();
  216. this.GoodsName = new System.Windows.Forms.DataGridViewTextBoxColumn();
  217. this.GoodsTypeName = new System.Windows.Forms.DataGridViewTextBoxColumn();
  218. this.GoodsSpecification = new System.Windows.Forms.DataGridViewTextBoxColumn();
  219. this.tabPage2 = new System.Windows.Forms.TabPage();
  220. this.dgvUser = new Dongke.IBOSS.PRD.Basics.BaseControls.C_DataGridView();
  221. this.UserID_NO = new System.Windows.Forms.DataGridViewComboBoxColumn();
  222. this.UserID = new System.Windows.Forms.DataGridViewTextBoxColumn();
  223. this.UserCode = new System.Windows.Forms.DataGridViewTextBoxColumn();
  224. this.UserName = new System.Windows.Forms.DataGridViewTextBoxColumn();
  225. this.tabPage3 = new System.Windows.Forms.TabPage();
  226. this.dgvDefect = new Dongke.IBOSS.PRD.Basics.BaseControls.C_DataGridView();
  227. this.DefectID = new System.Windows.Forms.DataGridViewTextBoxColumn();
  228. this.DefectCode = new System.Windows.Forms.DataGridViewTextBoxColumn();
  229. this.DefectName = new System.Windows.Forms.DataGridViewTextBoxColumn();
  230. this.JobsID = new System.Windows.Forms.DataGridViewTextBoxColumn();
  231. this.JobsCode = new System.Windows.Forms.DataGridViewTextBoxColumn();
  232. this.JobsName = new System.Windows.Forms.DataGridViewTextBoxColumn();
  233. this.DefectID_NO = new System.Windows.Forms.DataGridViewComboBoxColumn();
  234. this.JobsID_NO = new System.Windows.Forms.DataGridViewComboBoxColumn();
  235. this.tabPage4 = new System.Windows.Forms.TabPage();
  236. this.dgvKiln = new Dongke.IBOSS.PRD.Basics.BaseControls.C_DataGridView();
  237. this.dataGridViewTextBoxColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
  238. this.kilnCode = new System.Windows.Forms.DataGridViewTextBoxColumn();
  239. this.kilnName = new System.Windows.Forms.DataGridViewTextBoxColumn();
  240. this.dataGridViewTextBoxColumn3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
  241. this.dataGridViewTextBoxColumn4 = new System.Windows.Forms.DataGridViewTextBoxColumn();
  242. this.dataGridViewTextBoxColumn5 = new System.Windows.Forms.DataGridViewTextBoxColumn();
  243. this.dataGridViewTextBoxColumn6 = new System.Windows.Forms.DataGridViewTextBoxColumn();
  244. this.dataGridViewTextBoxColumn7 = new System.Windows.Forms.DataGridViewTextBoxColumn();
  245. this.dataGridViewTextBoxColumn8 = new System.Windows.Forms.DataGridViewTextBoxColumn();
  246. this.dataGridViewTextBoxColumn9 = new System.Windows.Forms.DataGridViewTextBoxColumn();
  247. this.btnSave = new Dongke.IBOSS.PRD.Basics.BaseControls.C_Button();
  248. this.btnCancel = new Dongke.IBOSS.PRD.Basics.BaseControls.C_Button();
  249. this.groupBox1 = new System.Windows.Forms.GroupBox();
  250. this.groupBox7 = new System.Windows.Forms.GroupBox();
  251. this.rbtnOutBarCode = new System.Windows.Forms.RadioButton();
  252. this.rbtnGBarcode = new System.Windows.Forms.RadioButton();
  253. this.txtBarCodePrintCopies = new Dongke.IBOSS.PRD.Basics.BaseControls.C_DGV_Digital();
  254. this.c_Label5 = new Dongke.IBOSS.PRD.Basics.BaseControls.C_Label();
  255. this.txtDisplayNo = new Dongke.IBOSS.PRD.Basics.BaseControls.C_DGV_Digital();
  256. this.txtmisspriority = new Dongke.IBOSS.PRD.Basics.BaseControls.C_DGV_Digital();
  257. this.lblDisplayNo = new Dongke.IBOSS.PRD.Basics.BaseControls.C_Label();
  258. this.c_Label4 = new Dongke.IBOSS.PRD.Basics.BaseControls.C_Label();
  259. this.lblmisspriority = new Dongke.IBOSS.PRD.Basics.BaseControls.C_Label();
  260. this.groupBox4 = new System.Windows.Forms.GroupBox();
  261. this.radioJobsPrice = new System.Windows.Forms.RadioButton();
  262. this.radioNotPrice = new System.Windows.Forms.RadioButton();
  263. this.ddlProcessModelType = new Dongke.IBOSS.PRD.Basics.BaseControls.DKListBoxComboBox();
  264. this.groupBox6 = new System.Windows.Forms.GroupBox();
  265. this.rbtnAuto = new System.Windows.Forms.RadioButton();
  266. this.rbtnHand = new System.Windows.Forms.RadioButton();
  267. this.sbOrganizationID = new Dongke.IBOSS.PRD.Client.Controls.dkOrganizationSearchBox();
  268. this.ddlPrintType = new Dongke.IBOSS.PRD.Basics.BaseControls.C_ComboBox();
  269. this.c_Label6 = new Dongke.IBOSS.PRD.Basics.BaseControls.C_Label();
  270. this.GetDataOgrp.SuspendLayout();
  271. this.groupBox5.SuspendLayout();
  272. this.groupBox2.SuspendLayout();
  273. this.groupBox3.SuspendLayout();
  274. this.tabControl.SuspendLayout();
  275. this.tabPage1.SuspendLayout();
  276. ((System.ComponentModel.ISupportInitialize)(this.dgvGoods)).BeginInit();
  277. this.tabPage2.SuspendLayout();
  278. ((System.ComponentModel.ISupportInitialize)(this.dgvUser)).BeginInit();
  279. this.tabPage3.SuspendLayout();
  280. ((System.ComponentModel.ISupportInitialize)(this.dgvDefect)).BeginInit();
  281. this.tabPage4.SuspendLayout();
  282. ((System.ComponentModel.ISupportInitialize)(this.dgvKiln)).BeginInit();
  283. this.groupBox1.SuspendLayout();
  284. this.groupBox7.SuspendLayout();
  285. this.groupBox4.SuspendLayout();
  286. this.groupBox6.SuspendLayout();
  287. this.SuspendLayout();
  288. //
  289. // txtProcedureName
  290. //
  291. this.txtProcedureName.BackColor = System.Drawing.Color.Yellow;
  292. this.txtProcedureName.BackgroundColor = System.Drawing.SystemColors.Window;
  293. this.txtProcedureName.ErrorMessage = "必须输入项目";
  294. this.txtProcedureName.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
  295. this.txtProcedureName.HasError = true;
  296. this.txtProcedureName.IsMustInput = true;
  297. this.txtProcedureName.Location = new System.Drawing.Point(317, 25);
  298. this.txtProcedureName.Margin = new System.Windows.Forms.Padding(4);
  299. this.txtProcedureName.MaxLength = 50;
  300. this.txtProcedureName.Name = "txtProcedureName";
  301. this.txtProcedureName.Size = new System.Drawing.Size(143, 25);
  302. this.txtProcedureName.TabIndex = 3;
  303. //
  304. // txtProcedureCode
  305. //
  306. this.txtProcedureCode.BackColor = System.Drawing.Color.Yellow;
  307. this.txtProcedureCode.BackgroundColor = System.Drawing.SystemColors.Window;
  308. this.txtProcedureCode.ErrorMessage = "必须输入项目";
  309. this.txtProcedureCode.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
  310. this.txtProcedureCode.HasError = true;
  311. this.txtProcedureCode.IsMustInput = true;
  312. this.txtProcedureCode.Location = new System.Drawing.Point(87, 25);
  313. this.txtProcedureCode.Margin = new System.Windows.Forms.Padding(4);
  314. this.txtProcedureCode.MaxLength = 20;
  315. this.txtProcedureCode.Name = "txtProcedureCode";
  316. this.txtProcedureCode.RejectCharsPattern = "[^a-zA-Z0-9]";
  317. this.txtProcedureCode.Size = new System.Drawing.Size(143, 25);
  318. this.txtProcedureCode.TabIndex = 1;
  319. //
  320. // c_Label3
  321. //
  322. this.c_Label3.AutoSize = true;
  323. this.c_Label3.BackColor = System.Drawing.Color.Transparent;
  324. this.c_Label3.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
  325. this.c_Label3.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(155)))), ((int)(((byte)(39)))), ((int)(((byte)(39)))));
  326. this.c_Label3.IsMustInput = true;
  327. this.c_Label3.Location = new System.Drawing.Point(469, 29);
  328. this.c_Label3.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
  329. this.c_Label3.Name = "c_Label3";
  330. this.c_Label3.Size = new System.Drawing.Size(67, 15);
  331. this.c_Label3.TabIndex = 4;
  332. this.c_Label3.Text = "工序类型";
  333. //
  334. // c_Label2
  335. //
  336. this.c_Label2.AutoSize = true;
  337. this.c_Label2.BackColor = System.Drawing.Color.Transparent;
  338. this.c_Label2.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
  339. this.c_Label2.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(155)))), ((int)(((byte)(39)))), ((int)(((byte)(39)))));
  340. this.c_Label2.IsMustInput = true;
  341. this.c_Label2.Location = new System.Drawing.Point(239, 29);
  342. this.c_Label2.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
  343. this.c_Label2.Name = "c_Label2";
  344. this.c_Label2.Size = new System.Drawing.Size(67, 15);
  345. this.c_Label2.TabIndex = 2;
  346. this.c_Label2.Text = "工序名称";
  347. //
  348. // c_Label1
  349. //
  350. this.c_Label1.AutoSize = true;
  351. this.c_Label1.BackColor = System.Drawing.Color.Transparent;
  352. this.c_Label1.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
  353. this.c_Label1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(155)))), ((int)(((byte)(39)))), ((int)(((byte)(39)))));
  354. this.c_Label1.IsMustInput = true;
  355. this.c_Label1.Location = new System.Drawing.Point(8, 29);
  356. this.c_Label1.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
  357. this.c_Label1.Name = "c_Label1";
  358. this.c_Label1.Size = new System.Drawing.Size(67, 15);
  359. this.c_Label1.TabIndex = 0;
  360. this.c_Label1.Text = "工序编码";
  361. //
  362. // GetDataOgrp
  363. //
  364. this.GetDataOgrp.BackColor = System.Drawing.Color.Transparent;
  365. this.GetDataOgrp.Controls.Add(this.rbtnMore);
  366. this.GetDataOgrp.Controls.Add(this.rbtnOne);
  367. this.GetDataOgrp.Location = new System.Drawing.Point(8, 58);
  368. this.GetDataOgrp.Margin = new System.Windows.Forms.Padding(4);
  369. this.GetDataOgrp.Name = "GetDataOgrp";
  370. this.GetDataOgrp.Padding = new System.Windows.Forms.Padding(4);
  371. this.GetDataOgrp.Size = new System.Drawing.Size(223, 68);
  372. this.GetDataOgrp.TabIndex = 9;
  373. this.GetDataOgrp.TabStop = false;
  374. this.GetDataOgrp.Text = "采集方式";
  375. //
  376. // rbtnMore
  377. //
  378. this.rbtnMore.AutoSize = true;
  379. this.rbtnMore.Location = new System.Drawing.Point(113, 30);
  380. this.rbtnMore.Margin = new System.Windows.Forms.Padding(4);
  381. this.rbtnMore.Name = "rbtnMore";
  382. this.rbtnMore.Size = new System.Drawing.Size(88, 19);
  383. this.rbtnMore.TabIndex = 1;
  384. this.rbtnMore.TabStop = true;
  385. this.rbtnMore.Text = "集中采集";
  386. this.rbtnMore.UseVisualStyleBackColor = true;
  387. //
  388. // rbtnOne
  389. //
  390. this.rbtnOne.AutoSize = true;
  391. this.rbtnOne.Checked = true;
  392. this.rbtnOne.Location = new System.Drawing.Point(8, 30);
  393. this.rbtnOne.Margin = new System.Windows.Forms.Padding(4);
  394. this.rbtnOne.Name = "rbtnOne";
  395. this.rbtnOne.Size = new System.Drawing.Size(88, 19);
  396. this.rbtnOne.TabIndex = 0;
  397. this.rbtnOne.TabStop = true;
  398. this.rbtnOne.Text = "单点采集";
  399. this.rbtnOne.UseVisualStyleBackColor = true;
  400. //
  401. // groupBox5
  402. //
  403. this.groupBox5.BackColor = System.Drawing.Color.Transparent;
  404. this.groupBox5.Controls.Add(this.rbtnSpecialSemireProcess);
  405. this.groupBox5.Controls.Add(this.rbtnSpecialReworkProcess);
  406. this.groupBox5.Location = new System.Drawing.Point(472, 58);
  407. this.groupBox5.Margin = new System.Windows.Forms.Padding(4);
  408. this.groupBox5.Name = "groupBox5";
  409. this.groupBox5.Padding = new System.Windows.Forms.Padding(4);
  410. this.groupBox5.Size = new System.Drawing.Size(220, 68);
  411. this.groupBox5.TabIndex = 11;
  412. this.groupBox5.TabStop = false;
  413. this.groupBox5.Tag = "";
  414. this.groupBox5.Text = "重烧返工/半检返修";
  415. //
  416. // rbtnSpecialSemireProcess
  417. //
  418. this.rbtnSpecialSemireProcess.Location = new System.Drawing.Point(124, 31);
  419. this.rbtnSpecialSemireProcess.Name = "rbtnSpecialSemireProcess";
  420. this.rbtnSpecialSemireProcess.Size = new System.Drawing.Size(89, 19);
  421. this.rbtnSpecialSemireProcess.TabIndex = 1;
  422. this.rbtnSpecialSemireProcess.Text = "半检返修";
  423. this.rbtnSpecialSemireProcess.UseVisualStyleBackColor = false;
  424. this.rbtnSpecialSemireProcess.CheckedChanged += new System.EventHandler(this.rbtnSpecialSemireProcess_CheckedChanged);
  425. //
  426. // rbtnSpecialReworkProcess
  427. //
  428. this.rbtnSpecialReworkProcess.Location = new System.Drawing.Point(18, 30);
  429. this.rbtnSpecialReworkProcess.Name = "rbtnSpecialReworkProcess";
  430. this.rbtnSpecialReworkProcess.Size = new System.Drawing.Size(89, 19);
  431. this.rbtnSpecialReworkProcess.TabIndex = 0;
  432. this.rbtnSpecialReworkProcess.Text = "重烧返工";
  433. this.rbtnSpecialReworkProcess.UseVisualStyleBackColor = false;
  434. this.rbtnSpecialReworkProcess.CheckedChanged += new System.EventHandler(this.rbtnSpecialReworkProcess_CheckedChanged);
  435. //
  436. // groupBox2
  437. //
  438. this.groupBox2.BackColor = System.Drawing.Color.Transparent;
  439. this.groupBox2.Controls.Add(this.rBtnNoNeed);
  440. this.groupBox2.Controls.Add(this.rBtnNeed);
  441. this.groupBox2.Location = new System.Drawing.Point(239, 58);
  442. this.groupBox2.Margin = new System.Windows.Forms.Padding(4);
  443. this.groupBox2.Name = "groupBox2";
  444. this.groupBox2.Padding = new System.Windows.Forms.Padding(4);
  445. this.groupBox2.Size = new System.Drawing.Size(220, 68);
  446. this.groupBox2.TabIndex = 10;
  447. this.groupBox2.TabStop = false;
  448. this.groupBox2.Tag = "";
  449. this.groupBox2.Text = "必须工序";
  450. //
  451. // rBtnNoNeed
  452. //
  453. this.rBtnNoNeed.AutoSize = true;
  454. this.rBtnNoNeed.Location = new System.Drawing.Point(121, 30);
  455. this.rBtnNoNeed.Margin = new System.Windows.Forms.Padding(4);
  456. this.rBtnNoNeed.Name = "rBtnNoNeed";
  457. this.rBtnNoNeed.Size = new System.Drawing.Size(73, 19);
  458. this.rBtnNoNeed.TabIndex = 1;
  459. this.rBtnNoNeed.Text = "非必须";
  460. this.rBtnNoNeed.UseVisualStyleBackColor = true;
  461. //
  462. // rBtnNeed
  463. //
  464. this.rBtnNeed.AutoSize = true;
  465. this.rBtnNeed.Checked = true;
  466. this.rBtnNeed.Location = new System.Drawing.Point(25, 30);
  467. this.rBtnNeed.Margin = new System.Windows.Forms.Padding(4);
  468. this.rBtnNeed.Name = "rBtnNeed";
  469. this.rBtnNeed.Size = new System.Drawing.Size(58, 19);
  470. this.rBtnNeed.TabIndex = 0;
  471. this.rBtnNeed.TabStop = true;
  472. this.rBtnNeed.Text = "必须";
  473. this.rBtnNeed.UseVisualStyleBackColor = true;
  474. //
  475. // label1
  476. //
  477. this.label1.AutoSize = true;
  478. this.label1.Location = new System.Drawing.Point(53, 201);
  479. this.label1.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
  480. this.label1.Name = "label1";
  481. this.label1.Size = new System.Drawing.Size(37, 15);
  482. this.label1.TabIndex = 7;
  483. this.label1.Text = "备注";
  484. //
  485. // txtRemarks
  486. //
  487. this.txtRemarks.BackgroundColor = System.Drawing.SystemColors.Window;
  488. this.txtRemarks.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
  489. this.txtRemarks.Location = new System.Drawing.Point(100, 200);
  490. this.txtRemarks.Margin = new System.Windows.Forms.Padding(4);
  491. this.txtRemarks.MaxLength = 500;
  492. this.txtRemarks.Name = "txtRemarks";
  493. this.txtRemarks.Size = new System.Drawing.Size(887, 25);
  494. this.txtRemarks.TabIndex = 8;
  495. //
  496. // groupBox3
  497. //
  498. this.groupBox3.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
  499. | System.Windows.Forms.AnchorStyles.Left)
  500. | System.Windows.Forms.AnchorStyles.Right)));
  501. this.groupBox3.BackColor = System.Drawing.Color.Transparent;
  502. this.groupBox3.Controls.Add(this.tabControl);
  503. this.groupBox3.Location = new System.Drawing.Point(16, 254);
  504. this.groupBox3.Margin = new System.Windows.Forms.Padding(4);
  505. this.groupBox3.Name = "groupBox3";
  506. this.groupBox3.Padding = new System.Windows.Forms.Padding(4);
  507. this.groupBox3.Size = new System.Drawing.Size(1005, 318);
  508. this.groupBox3.TabIndex = 1;
  509. this.groupBox3.TabStop = false;
  510. this.groupBox3.Text = "控制属性";
  511. //
  512. // tabControl
  513. //
  514. this.tabControl.Controls.Add(this.tabPage1);
  515. this.tabControl.Controls.Add(this.tabPage2);
  516. this.tabControl.Controls.Add(this.tabPage3);
  517. this.tabControl.Controls.Add(this.tabPage4);
  518. this.tabControl.Dock = System.Windows.Forms.DockStyle.Fill;
  519. this.tabControl.Location = new System.Drawing.Point(4, 22);
  520. this.tabControl.Margin = new System.Windows.Forms.Padding(4);
  521. this.tabControl.Name = "tabControl";
  522. this.tabControl.SelectedIndex = 0;
  523. this.tabControl.Size = new System.Drawing.Size(997, 292);
  524. this.tabControl.TabIndex = 0;
  525. //
  526. // tabPage1
  527. //
  528. this.tabPage1.Controls.Add(this.dgvGoods);
  529. this.tabPage1.Location = new System.Drawing.Point(4, 25);
  530. this.tabPage1.Margin = new System.Windows.Forms.Padding(0);
  531. this.tabPage1.Name = "tabPage1";
  532. this.tabPage1.Size = new System.Drawing.Size(989, 263);
  533. this.tabPage1.TabIndex = 0;
  534. this.tabPage1.Text = "生产产品";
  535. this.tabPage1.UseVisualStyleBackColor = true;
  536. //
  537. // dgvGoods
  538. //
  539. this.dgvGoods.AllowUserToModifyRows = true;
  540. dataGridViewCellStyle53.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235)))));
  541. this.dgvGoods.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle53;
  542. this.dgvGoods.CellBackColorNochanged = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
  543. this.dgvGoods.CellBackColorReadOnly = System.Drawing.SystemColors.Control;
  544. this.dgvGoods.CellHeight = 23;
  545. this.dgvGoods.ChildNodeColumnName = null;
  546. this.dgvGoods.ChildNodeColumnText = null;
  547. this.dgvGoods.ColumnDeep = 1;
  548. this.dgvGoods.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.Single;
  549. dataGridViewCellStyle54.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
  550. dataGridViewCellStyle54.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(58)))), ((int)(((byte)(70)))));
  551. dataGridViewCellStyle54.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
  552. dataGridViewCellStyle54.ForeColor = System.Drawing.Color.White;
  553. dataGridViewCellStyle54.SelectionBackColor = System.Drawing.SystemColors.Highlight;
  554. dataGridViewCellStyle54.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
  555. dataGridViewCellStyle54.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
  556. this.dgvGoods.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle54;
  557. this.dgvGoods.ColumnHeadersHeight = 29;
  558. this.dgvGoods.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
  559. this.dgvGoods.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
  560. this.GoodsID,
  561. this.GoodsCode,
  562. this.GoodsName,
  563. this.GoodsTypeName,
  564. this.GoodsSpecification});
  565. this.dgvGoods.ColumnTreeView = null;
  566. 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)));
  567. dataGridViewCellStyle55.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
  568. dataGridViewCellStyle55.BackColor = System.Drawing.SystemColors.Window;
  569. dataGridViewCellStyle55.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
  570. dataGridViewCellStyle55.ForeColor = System.Drawing.SystemColors.ControlText;
  571. dataGridViewCellStyle55.SelectionBackColor = System.Drawing.SystemColors.Highlight;
  572. dataGridViewCellStyle55.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
  573. dataGridViewCellStyle55.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
  574. this.dgvGoods.DefaultCellStyle = dataGridViewCellStyle55;
  575. this.dgvGoods.Dock = System.Windows.Forms.DockStyle.Fill;
  576. this.dgvGoods.DynamicColumnName = "";
  577. this.dgvGoods.EnableHeadersVisualStyles = false;
  578. this.dgvGoods.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
  579. this.dgvGoods.FormatQuantityColumns = null;
  580. this.dgvGoods.HorizontalMergeColumn = null;
  581. this.dgvGoods.IsAutoCountSum = true;
  582. this.dgvGoods.IsAutoResizeColumns = false;
  583. this.dgvGoods.IsClickF12 = false;
  584. this.dgvGoods.IsOpenMergeCellFlag = false;
  585. this.dgvGoods.IsSubTotalFlag = false;
  586. this.dgvGoods.IsTopDeep = false;
  587. this.dgvGoods.Location = new System.Drawing.Point(0, 0);
  588. this.dgvGoods.Margin = new System.Windows.Forms.Padding(4);
  589. this.dgvGoods.MergeColumnNames = null;
  590. this.dgvGoods.MergeDetailColumnNames = null;
  591. this.dgvGoods.MergeDetailOnlyColumn = null;
  592. this.dgvGoods.MergeOnlyColumn = null;
  593. this.dgvGoods.Name = "dgvGoods";
  594. this.dgvGoods.RefreshAtHscroll = false;
  595. this.dgvGoods.RowHeadersWidth = 50;
  596. this.dgvGoods.RowHeadersWidthSizeMode = System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode.DisableResizing;
  597. dataGridViewCellStyle56.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(159)))), ((int)(((byte)(39)))), ((int)(((byte)(39)))));
  598. this.dgvGoods.RowsDefaultCellStyle = dataGridViewCellStyle56;
  599. this.dgvGoods.RowTemplate.Height = 21;
  600. this.dgvGoods.Size = new System.Drawing.Size(989, 263);
  601. this.dgvGoods.SortOrderColumnName = null;
  602. this.dgvGoods.TabIndex = 0;
  603. this.dgvGoods.Tag = true;
  604. this.dgvGoods.TotalSumColumns = null;
  605. this.dgvGoods.ViewRowFilter = "";
  606. this.dgvGoods.CellBeginEdit += new System.Windows.Forms.DataGridViewCellCancelEventHandler(this.dgvGoods_CellBeginEdit);
  607. this.dgvGoods.CellValueChanged += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvGoods_CellValueChanged);
  608. //
  609. // GoodsID
  610. //
  611. this.GoodsID.DataPropertyName = "GoodsID";
  612. this.GoodsID.HeaderText = "GoodsID";
  613. this.GoodsID.MinimumWidth = 6;
  614. this.GoodsID.Name = "GoodsID";
  615. this.GoodsID.Visible = false;
  616. this.GoodsID.Width = 125;
  617. //
  618. // GoodsCode
  619. //
  620. this.GoodsCode.DataPropertyName = "GoodsCode";
  621. this.GoodsCode.HeaderText = "产品编码";
  622. this.GoodsCode.MinimumWidth = 6;
  623. this.GoodsCode.Name = "GoodsCode";
  624. this.GoodsCode.Resizable = System.Windows.Forms.DataGridViewTriState.True;
  625. this.GoodsCode.Width = 125;
  626. //
  627. // GoodsName
  628. //
  629. this.GoodsName.DataPropertyName = "GoodsName";
  630. this.GoodsName.HeaderText = "产品名称";
  631. this.GoodsName.MinimumWidth = 6;
  632. this.GoodsName.Name = "GoodsName";
  633. this.GoodsName.ReadOnly = true;
  634. this.GoodsName.Width = 125;
  635. //
  636. // GoodsTypeName
  637. //
  638. this.GoodsTypeName.DataPropertyName = "GoodsTypeName";
  639. this.GoodsTypeName.HeaderText = "产品类别";
  640. this.GoodsTypeName.MinimumWidth = 6;
  641. this.GoodsTypeName.Name = "GoodsTypeName";
  642. this.GoodsTypeName.ReadOnly = true;
  643. this.GoodsTypeName.Width = 125;
  644. //
  645. // GoodsSpecification
  646. //
  647. this.GoodsSpecification.DataPropertyName = "GoodsSpecification";
  648. this.GoodsSpecification.HeaderText = "产品规格";
  649. this.GoodsSpecification.MinimumWidth = 6;
  650. this.GoodsSpecification.Name = "GoodsSpecification";
  651. this.GoodsSpecification.ReadOnly = true;
  652. this.GoodsSpecification.Width = 125;
  653. //
  654. // tabPage2
  655. //
  656. this.tabPage2.Controls.Add(this.dgvUser);
  657. this.tabPage2.Location = new System.Drawing.Point(4, 25);
  658. this.tabPage2.Margin = new System.Windows.Forms.Padding(4);
  659. this.tabPage2.Name = "tabPage2";
  660. this.tabPage2.Size = new System.Drawing.Size(989, 263);
  661. this.tabPage2.TabIndex = 1;
  662. this.tabPage2.Text = "生产工号";
  663. this.tabPage2.UseVisualStyleBackColor = true;
  664. //
  665. // dgvUser
  666. //
  667. this.dgvUser.AllowUserToModifyRows = true;
  668. dataGridViewCellStyle57.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235)))));
  669. this.dgvUser.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle57;
  670. this.dgvUser.CellBackColorNochanged = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
  671. this.dgvUser.CellBackColorReadOnly = System.Drawing.SystemColors.Control;
  672. this.dgvUser.CellHeight = 23;
  673. this.dgvUser.ChildNodeColumnName = null;
  674. this.dgvUser.ChildNodeColumnText = null;
  675. this.dgvUser.ColumnDeep = 1;
  676. this.dgvUser.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.Single;
  677. dataGridViewCellStyle58.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
  678. dataGridViewCellStyle58.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(58)))), ((int)(((byte)(70)))));
  679. dataGridViewCellStyle58.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
  680. dataGridViewCellStyle58.ForeColor = System.Drawing.Color.White;
  681. dataGridViewCellStyle58.SelectionBackColor = System.Drawing.SystemColors.Highlight;
  682. dataGridViewCellStyle58.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
  683. dataGridViewCellStyle58.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
  684. this.dgvUser.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle58;
  685. this.dgvUser.ColumnHeadersHeight = 29;
  686. this.dgvUser.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
  687. this.dgvUser.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
  688. this.UserID_NO,
  689. this.UserID,
  690. this.UserCode,
  691. this.UserName});
  692. this.dgvUser.ColumnTreeView = null;
  693. 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)));
  694. this.dgvUser.Dock = System.Windows.Forms.DockStyle.Fill;
  695. this.dgvUser.DynamicColumnName = "";
  696. this.dgvUser.EnableHeadersVisualStyles = false;
  697. this.dgvUser.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
  698. this.dgvUser.FormatQuantityColumns = null;
  699. this.dgvUser.HorizontalMergeColumn = null;
  700. this.dgvUser.IsAutoCountSum = true;
  701. this.dgvUser.IsAutoResizeColumns = false;
  702. this.dgvUser.IsClickF12 = false;
  703. this.dgvUser.IsOpenMergeCellFlag = false;
  704. this.dgvUser.IsSubTotalFlag = false;
  705. this.dgvUser.IsTopDeep = false;
  706. this.dgvUser.Location = new System.Drawing.Point(0, 0);
  707. this.dgvUser.Margin = new System.Windows.Forms.Padding(4);
  708. this.dgvUser.MergeColumnNames = null;
  709. this.dgvUser.MergeDetailColumnNames = null;
  710. this.dgvUser.MergeDetailOnlyColumn = null;
  711. this.dgvUser.MergeOnlyColumn = null;
  712. this.dgvUser.Name = "dgvUser";
  713. this.dgvUser.RefreshAtHscroll = false;
  714. this.dgvUser.RowHeadersWidth = 50;
  715. this.dgvUser.RowHeadersWidthSizeMode = System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode.DisableResizing;
  716. dataGridViewCellStyle59.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(159)))), ((int)(((byte)(39)))), ((int)(((byte)(39)))));
  717. this.dgvUser.RowsDefaultCellStyle = dataGridViewCellStyle59;
  718. this.dgvUser.RowTemplate.Height = 21;
  719. this.dgvUser.Size = new System.Drawing.Size(989, 263);
  720. this.dgvUser.SortOrderColumnName = null;
  721. this.dgvUser.TabIndex = 54;
  722. this.dgvUser.Tag = true;
  723. this.dgvUser.TotalSumColumns = null;
  724. this.dgvUser.ViewRowFilter = "";
  725. this.dgvUser.CellBeginEdit += new System.Windows.Forms.DataGridViewCellCancelEventHandler(this.dgvUser_CellBeginEdit);
  726. this.dgvUser.CellValueChanged += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvUser_CellValueChanged);
  727. this.dgvUser.EditingControlShowing += new System.Windows.Forms.DataGridViewEditingControlShowingEventHandler(this.dgvUser_EditingControlShowing);
  728. //
  729. // UserID_NO
  730. //
  731. this.UserID_NO.FillWeight = 200F;
  732. this.UserID_NO.HeaderText = "工号";
  733. this.UserID_NO.MinimumWidth = 6;
  734. this.UserID_NO.Name = "UserID_NO";
  735. this.UserID_NO.Resizable = System.Windows.Forms.DataGridViewTriState.True;
  736. this.UserID_NO.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
  737. this.UserID_NO.Visible = false;
  738. this.UserID_NO.Width = 200;
  739. //
  740. // UserID
  741. //
  742. this.UserID.DataPropertyName = "UserID";
  743. this.UserID.HeaderText = "UserID";
  744. this.UserID.MinimumWidth = 6;
  745. this.UserID.Name = "UserID";
  746. this.UserID.ReadOnly = true;
  747. this.UserID.Visible = false;
  748. this.UserID.Width = 125;
  749. //
  750. // UserCode
  751. //
  752. this.UserCode.DataPropertyName = "UserCode";
  753. this.UserCode.HeaderText = "工号";
  754. this.UserCode.MinimumWidth = 6;
  755. this.UserCode.Name = "UserCode";
  756. this.UserCode.Width = 125;
  757. //
  758. // UserName
  759. //
  760. this.UserName.DataPropertyName = "UserName";
  761. this.UserName.HeaderText = "工号名称";
  762. this.UserName.MinimumWidth = 6;
  763. this.UserName.Name = "UserName";
  764. this.UserName.ReadOnly = true;
  765. this.UserName.Width = 125;
  766. //
  767. // tabPage3
  768. //
  769. this.tabPage3.Controls.Add(this.dgvDefect);
  770. this.tabPage3.Location = new System.Drawing.Point(4, 25);
  771. this.tabPage3.Margin = new System.Windows.Forms.Padding(0);
  772. this.tabPage3.Name = "tabPage3";
  773. this.tabPage3.Size = new System.Drawing.Size(989, 263);
  774. this.tabPage3.TabIndex = 2;
  775. this.tabPage3.Text = "存在缺陷";
  776. this.tabPage3.UseVisualStyleBackColor = true;
  777. //
  778. // dgvDefect
  779. //
  780. this.dgvDefect.AllowUserToModifyRows = true;
  781. dataGridViewCellStyle60.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235)))));
  782. this.dgvDefect.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle60;
  783. this.dgvDefect.CellBackColorNochanged = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
  784. this.dgvDefect.CellBackColorReadOnly = System.Drawing.SystemColors.Control;
  785. this.dgvDefect.CellHeight = 23;
  786. this.dgvDefect.ChildNodeColumnName = null;
  787. this.dgvDefect.ChildNodeColumnText = null;
  788. this.dgvDefect.ColumnDeep = 1;
  789. this.dgvDefect.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.Single;
  790. dataGridViewCellStyle61.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
  791. dataGridViewCellStyle61.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(58)))), ((int)(((byte)(70)))));
  792. dataGridViewCellStyle61.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
  793. dataGridViewCellStyle61.ForeColor = System.Drawing.Color.White;
  794. dataGridViewCellStyle61.SelectionBackColor = System.Drawing.SystemColors.Highlight;
  795. dataGridViewCellStyle61.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
  796. dataGridViewCellStyle61.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
  797. this.dgvDefect.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle61;
  798. this.dgvDefect.ColumnHeadersHeight = 29;
  799. this.dgvDefect.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
  800. this.dgvDefect.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
  801. this.DefectID,
  802. this.DefectCode,
  803. this.DefectName,
  804. this.JobsID,
  805. this.JobsCode,
  806. this.JobsName,
  807. this.DefectID_NO,
  808. this.JobsID_NO});
  809. this.dgvDefect.ColumnTreeView = null;
  810. 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)));
  811. this.dgvDefect.Dock = System.Windows.Forms.DockStyle.Fill;
  812. this.dgvDefect.DynamicColumnName = "";
  813. this.dgvDefect.EnableHeadersVisualStyles = false;
  814. this.dgvDefect.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
  815. this.dgvDefect.FormatQuantityColumns = null;
  816. this.dgvDefect.HorizontalMergeColumn = null;
  817. this.dgvDefect.IsAutoCountSum = true;
  818. this.dgvDefect.IsAutoResizeColumns = false;
  819. this.dgvDefect.IsClickF12 = false;
  820. this.dgvDefect.IsOpenMergeCellFlag = false;
  821. this.dgvDefect.IsSubTotalFlag = false;
  822. this.dgvDefect.IsTopDeep = false;
  823. this.dgvDefect.Location = new System.Drawing.Point(0, 0);
  824. this.dgvDefect.Margin = new System.Windows.Forms.Padding(4);
  825. this.dgvDefect.MergeColumnNames = null;
  826. this.dgvDefect.MergeDetailColumnNames = null;
  827. this.dgvDefect.MergeDetailOnlyColumn = null;
  828. this.dgvDefect.MergeOnlyColumn = null;
  829. this.dgvDefect.Name = "dgvDefect";
  830. this.dgvDefect.RefreshAtHscroll = false;
  831. this.dgvDefect.RowHeadersWidth = 50;
  832. this.dgvDefect.RowHeadersWidthSizeMode = System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode.DisableResizing;
  833. dataGridViewCellStyle62.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(159)))), ((int)(((byte)(39)))), ((int)(((byte)(39)))));
  834. this.dgvDefect.RowsDefaultCellStyle = dataGridViewCellStyle62;
  835. this.dgvDefect.RowTemplate.Height = 21;
  836. this.dgvDefect.Size = new System.Drawing.Size(989, 263);
  837. this.dgvDefect.SortOrderColumnName = null;
  838. this.dgvDefect.TabIndex = 54;
  839. this.dgvDefect.Tag = true;
  840. this.dgvDefect.TotalSumColumns = null;
  841. this.dgvDefect.ViewRowFilter = "";
  842. this.dgvDefect.CellBeginEdit += new System.Windows.Forms.DataGridViewCellCancelEventHandler(this.dgvDefect_CellBeginEdit);
  843. this.dgvDefect.CellValueChanged += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvDefect_CellValueChanged);
  844. this.dgvDefect.EditingControlShowing += new System.Windows.Forms.DataGridViewEditingControlShowingEventHandler(this.dgvDefect_EditingControlShowing);
  845. //
  846. // DefectID
  847. //
  848. this.DefectID.DataPropertyName = "DefectID";
  849. this.DefectID.HeaderText = "DefectID";
  850. this.DefectID.MinimumWidth = 6;
  851. this.DefectID.Name = "DefectID";
  852. this.DefectID.ReadOnly = true;
  853. this.DefectID.Visible = false;
  854. this.DefectID.Width = 125;
  855. //
  856. // DefectCode
  857. //
  858. this.DefectCode.DataPropertyName = "DefectCode";
  859. this.DefectCode.HeaderText = "缺陷编码";
  860. this.DefectCode.MinimumWidth = 6;
  861. this.DefectCode.Name = "DefectCode";
  862. this.DefectCode.Width = 125;
  863. //
  864. // DefectName
  865. //
  866. this.DefectName.DataPropertyName = "DefectName";
  867. this.DefectName.HeaderText = "缺陷名称";
  868. this.DefectName.MinimumWidth = 6;
  869. this.DefectName.Name = "DefectName";
  870. this.DefectName.ReadOnly = true;
  871. this.DefectName.Width = 125;
  872. //
  873. // JobsID
  874. //
  875. this.JobsID.DataPropertyName = "JobsID";
  876. this.JobsID.HeaderText = "JobsID";
  877. this.JobsID.MinimumWidth = 6;
  878. this.JobsID.Name = "JobsID";
  879. this.JobsID.ReadOnly = true;
  880. this.JobsID.Visible = false;
  881. this.JobsID.Width = 125;
  882. //
  883. // JobsCode
  884. //
  885. this.JobsCode.DataPropertyName = "JobsCode";
  886. this.JobsCode.HeaderText = "责任工种编码";
  887. this.JobsCode.MinimumWidth = 6;
  888. this.JobsCode.Name = "JobsCode";
  889. this.JobsCode.Width = 125;
  890. //
  891. // JobsName
  892. //
  893. this.JobsName.DataPropertyName = "JobsName";
  894. this.JobsName.HeaderText = "责任工种名称";
  895. this.JobsName.MinimumWidth = 6;
  896. this.JobsName.Name = "JobsName";
  897. this.JobsName.ReadOnly = true;
  898. this.JobsName.Width = 125;
  899. //
  900. // DefectID_NO
  901. //
  902. this.DefectID_NO.FillWeight = 200F;
  903. this.DefectID_NO.HeaderText = "缺陷(不要了)";
  904. this.DefectID_NO.MinimumWidth = 6;
  905. this.DefectID_NO.Name = "DefectID_NO";
  906. this.DefectID_NO.Resizable = System.Windows.Forms.DataGridViewTriState.True;
  907. this.DefectID_NO.Visible = false;
  908. this.DefectID_NO.Width = 200;
  909. //
  910. // JobsID_NO
  911. //
  912. this.JobsID_NO.FillWeight = 200F;
  913. this.JobsID_NO.HeaderText = "责任工种(不要了)";
  914. this.JobsID_NO.MinimumWidth = 6;
  915. this.JobsID_NO.Name = "JobsID_NO";
  916. this.JobsID_NO.Resizable = System.Windows.Forms.DataGridViewTriState.True;
  917. this.JobsID_NO.Visible = false;
  918. this.JobsID_NO.Width = 200;
  919. //
  920. // tabPage4
  921. //
  922. this.tabPage4.Controls.Add(this.dgvKiln);
  923. this.tabPage4.Location = new System.Drawing.Point(4, 25);
  924. this.tabPage4.Margin = new System.Windows.Forms.Padding(4);
  925. this.tabPage4.Name = "tabPage4";
  926. this.tabPage4.Size = new System.Drawing.Size(989, 263);
  927. this.tabPage4.TabIndex = 3;
  928. this.tabPage4.Text = "可用窑炉";
  929. this.tabPage4.UseVisualStyleBackColor = true;
  930. //
  931. // dgvKiln
  932. //
  933. this.dgvKiln.AllowUserToModifyRows = true;
  934. dataGridViewCellStyle63.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235)))));
  935. this.dgvKiln.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle63;
  936. this.dgvKiln.CellBackColorNochanged = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
  937. this.dgvKiln.CellBackColorReadOnly = System.Drawing.SystemColors.Control;
  938. this.dgvKiln.CellHeight = 23;
  939. this.dgvKiln.ChildNodeColumnName = null;
  940. this.dgvKiln.ChildNodeColumnText = null;
  941. this.dgvKiln.ColumnDeep = 1;
  942. this.dgvKiln.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.Single;
  943. dataGridViewCellStyle64.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
  944. dataGridViewCellStyle64.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(58)))), ((int)(((byte)(70)))));
  945. dataGridViewCellStyle64.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
  946. dataGridViewCellStyle64.ForeColor = System.Drawing.Color.White;
  947. dataGridViewCellStyle64.SelectionBackColor = System.Drawing.SystemColors.Highlight;
  948. dataGridViewCellStyle64.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
  949. dataGridViewCellStyle64.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
  950. this.dgvKiln.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle64;
  951. this.dgvKiln.ColumnHeadersHeight = 29;
  952. this.dgvKiln.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
  953. this.dgvKiln.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
  954. this.dataGridViewTextBoxColumn1,
  955. this.kilnCode,
  956. this.kilnName});
  957. this.dgvKiln.ColumnTreeView = null;
  958. this.dgvKiln.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)));
  959. this.dgvKiln.Dock = System.Windows.Forms.DockStyle.Fill;
  960. this.dgvKiln.DynamicColumnName = "";
  961. this.dgvKiln.EnableHeadersVisualStyles = false;
  962. this.dgvKiln.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
  963. this.dgvKiln.FormatQuantityColumns = null;
  964. this.dgvKiln.HorizontalMergeColumn = null;
  965. this.dgvKiln.IsAutoCountSum = true;
  966. this.dgvKiln.IsAutoResizeColumns = false;
  967. this.dgvKiln.IsClickF12 = false;
  968. this.dgvKiln.IsOpenMergeCellFlag = false;
  969. this.dgvKiln.IsSubTotalFlag = false;
  970. this.dgvKiln.IsTopDeep = false;
  971. this.dgvKiln.Location = new System.Drawing.Point(0, 0);
  972. this.dgvKiln.Margin = new System.Windows.Forms.Padding(4);
  973. this.dgvKiln.MergeColumnNames = null;
  974. this.dgvKiln.MergeDetailColumnNames = null;
  975. this.dgvKiln.MergeDetailOnlyColumn = null;
  976. this.dgvKiln.MergeOnlyColumn = null;
  977. this.dgvKiln.Name = "dgvKiln";
  978. this.dgvKiln.RefreshAtHscroll = false;
  979. this.dgvKiln.RowHeadersWidth = 50;
  980. this.dgvKiln.RowHeadersWidthSizeMode = System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode.DisableResizing;
  981. dataGridViewCellStyle65.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(159)))), ((int)(((byte)(39)))), ((int)(((byte)(39)))));
  982. this.dgvKiln.RowsDefaultCellStyle = dataGridViewCellStyle65;
  983. this.dgvKiln.RowTemplate.Height = 21;
  984. this.dgvKiln.Size = new System.Drawing.Size(989, 263);
  985. this.dgvKiln.SortOrderColumnName = null;
  986. this.dgvKiln.TabIndex = 55;
  987. this.dgvKiln.Tag = true;
  988. this.dgvKiln.TotalSumColumns = null;
  989. this.dgvKiln.ViewRowFilter = "";
  990. this.dgvKiln.CellBeginEdit += new System.Windows.Forms.DataGridViewCellCancelEventHandler(this.dgvKiln_CellBeginEdit);
  991. this.dgvKiln.CellValueChanged += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvKiln_CellValueChanged);
  992. //
  993. // dataGridViewTextBoxColumn1
  994. //
  995. this.dataGridViewTextBoxColumn1.DataPropertyName = "kilnID";
  996. this.dataGridViewTextBoxColumn1.HeaderText = "kilnID";
  997. this.dataGridViewTextBoxColumn1.MinimumWidth = 6;
  998. this.dataGridViewTextBoxColumn1.Name = "dataGridViewTextBoxColumn1";
  999. this.dataGridViewTextBoxColumn1.ReadOnly = true;
  1000. this.dataGridViewTextBoxColumn1.Visible = false;
  1001. this.dataGridViewTextBoxColumn1.Width = 125;
  1002. //
  1003. // kilnCode
  1004. //
  1005. this.kilnCode.DataPropertyName = "kilnCode";
  1006. this.kilnCode.HeaderText = "窑炉";
  1007. this.kilnCode.MinimumWidth = 6;
  1008. this.kilnCode.Name = "kilnCode";
  1009. this.kilnCode.Width = 125;
  1010. //
  1011. // kilnName
  1012. //
  1013. this.kilnName.DataPropertyName = "kilnName";
  1014. this.kilnName.HeaderText = "窑炉名称";
  1015. this.kilnName.MinimumWidth = 6;
  1016. this.kilnName.Name = "kilnName";
  1017. this.kilnName.ReadOnly = true;
  1018. this.kilnName.Width = 125;
  1019. //
  1020. // dataGridViewTextBoxColumn3
  1021. //
  1022. this.dataGridViewTextBoxColumn3.HeaderText = "产品类别";
  1023. this.dataGridViewTextBoxColumn3.MinimumWidth = 6;
  1024. this.dataGridViewTextBoxColumn3.Name = "dataGridViewTextBoxColumn3";
  1025. this.dataGridViewTextBoxColumn3.Width = 125;
  1026. //
  1027. // dataGridViewTextBoxColumn4
  1028. //
  1029. this.dataGridViewTextBoxColumn4.HeaderText = "规格";
  1030. this.dataGridViewTextBoxColumn4.MinimumWidth = 6;
  1031. this.dataGridViewTextBoxColumn4.Name = "dataGridViewTextBoxColumn4";
  1032. this.dataGridViewTextBoxColumn4.Width = 125;
  1033. //
  1034. // dataGridViewTextBoxColumn5
  1035. //
  1036. this.dataGridViewTextBoxColumn5.HeaderText = "工号";
  1037. this.dataGridViewTextBoxColumn5.MinimumWidth = 6;
  1038. this.dataGridViewTextBoxColumn5.Name = "dataGridViewTextBoxColumn5";
  1039. this.dataGridViewTextBoxColumn5.Width = 125;
  1040. //
  1041. // dataGridViewTextBoxColumn6
  1042. //
  1043. this.dataGridViewTextBoxColumn6.HeaderText = "工号名称";
  1044. this.dataGridViewTextBoxColumn6.MinimumWidth = 6;
  1045. this.dataGridViewTextBoxColumn6.Name = "dataGridViewTextBoxColumn6";
  1046. this.dataGridViewTextBoxColumn6.Width = 125;
  1047. //
  1048. // dataGridViewTextBoxColumn7
  1049. //
  1050. this.dataGridViewTextBoxColumn7.HeaderText = "缺陷编码";
  1051. this.dataGridViewTextBoxColumn7.MinimumWidth = 6;
  1052. this.dataGridViewTextBoxColumn7.Name = "dataGridViewTextBoxColumn7";
  1053. this.dataGridViewTextBoxColumn7.Width = 125;
  1054. //
  1055. // dataGridViewTextBoxColumn8
  1056. //
  1057. this.dataGridViewTextBoxColumn8.HeaderText = "缺陷名称";
  1058. this.dataGridViewTextBoxColumn8.MinimumWidth = 6;
  1059. this.dataGridViewTextBoxColumn8.Name = "dataGridViewTextBoxColumn8";
  1060. this.dataGridViewTextBoxColumn8.Width = 125;
  1061. //
  1062. // dataGridViewTextBoxColumn9
  1063. //
  1064. this.dataGridViewTextBoxColumn9.HeaderText = "工种编码";
  1065. this.dataGridViewTextBoxColumn9.MinimumWidth = 6;
  1066. this.dataGridViewTextBoxColumn9.Name = "dataGridViewTextBoxColumn9";
  1067. this.dataGridViewTextBoxColumn9.Width = 125;
  1068. //
  1069. // btnSave
  1070. //
  1071. this.btnSave.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
  1072. this.btnSave.BackColor = System.Drawing.Color.Transparent;
  1073. this.btnSave.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnSave.BackgroundImage")));
  1074. this.btnSave.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
  1075. this.btnSave.ForeColor = System.Drawing.Color.White;
  1076. this.btnSave.Location = new System.Drawing.Point(787, 579);
  1077. this.btnSave.Margin = new System.Windows.Forms.Padding(4);
  1078. this.btnSave.Name = "btnSave";
  1079. this.btnSave.Size = new System.Drawing.Size(113, 38);
  1080. this.btnSave.TabIndex = 2;
  1081. this.btnSave.Text = "保存";
  1082. this.btnSave.UseVisualStyleBackColor = false;
  1083. this.btnSave.Click += new System.EventHandler(this.btnSave_Click);
  1084. //
  1085. // btnCancel
  1086. //
  1087. this.btnCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
  1088. this.btnCancel.BackColor = System.Drawing.Color.Transparent;
  1089. this.btnCancel.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnCancel.BackgroundImage")));
  1090. this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
  1091. this.btnCancel.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
  1092. this.btnCancel.ForeColor = System.Drawing.Color.White;
  1093. this.btnCancel.Location = new System.Drawing.Point(908, 579);
  1094. this.btnCancel.Margin = new System.Windows.Forms.Padding(4);
  1095. this.btnCancel.Name = "btnCancel";
  1096. this.btnCancel.Size = new System.Drawing.Size(113, 38);
  1097. this.btnCancel.TabIndex = 3;
  1098. this.btnCancel.Text = "取消";
  1099. this.btnCancel.UseVisualStyleBackColor = false;
  1100. this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click);
  1101. //
  1102. // groupBox1
  1103. //
  1104. this.groupBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
  1105. | System.Windows.Forms.AnchorStyles.Right)));
  1106. this.groupBox1.BackColor = System.Drawing.Color.Transparent;
  1107. this.groupBox1.Controls.Add(this.ddlPrintType);
  1108. this.groupBox1.Controls.Add(this.c_Label6);
  1109. this.groupBox1.Controls.Add(this.groupBox7);
  1110. this.groupBox1.Controls.Add(this.txtBarCodePrintCopies);
  1111. this.groupBox1.Controls.Add(this.c_Label5);
  1112. this.groupBox1.Controls.Add(this.txtDisplayNo);
  1113. this.groupBox1.Controls.Add(this.txtmisspriority);
  1114. this.groupBox1.Controls.Add(this.lblDisplayNo);
  1115. this.groupBox1.Controls.Add(this.c_Label4);
  1116. this.groupBox1.Controls.Add(this.lblmisspriority);
  1117. this.groupBox1.Controls.Add(this.groupBox4);
  1118. this.groupBox1.Controls.Add(this.ddlProcessModelType);
  1119. this.groupBox1.Controls.Add(this.txtProcedureName);
  1120. this.groupBox1.Controls.Add(this.txtProcedureCode);
  1121. this.groupBox1.Controls.Add(this.c_Label3);
  1122. this.groupBox1.Controls.Add(this.c_Label2);
  1123. this.groupBox1.Controls.Add(this.c_Label1);
  1124. this.groupBox1.Controls.Add(this.GetDataOgrp);
  1125. this.groupBox1.Controls.Add(this.groupBox6);
  1126. this.groupBox1.Controls.Add(this.groupBox5);
  1127. this.groupBox1.Controls.Add(this.groupBox2);
  1128. this.groupBox1.Controls.Add(this.label1);
  1129. this.groupBox1.Controls.Add(this.txtRemarks);
  1130. this.groupBox1.Controls.Add(this.sbOrganizationID);
  1131. this.groupBox1.Location = new System.Drawing.Point(16, 15);
  1132. this.groupBox1.Margin = new System.Windows.Forms.Padding(4);
  1133. this.groupBox1.Name = "groupBox1";
  1134. this.groupBox1.Padding = new System.Windows.Forms.Padding(4);
  1135. this.groupBox1.Size = new System.Drawing.Size(1005, 231);
  1136. this.groupBox1.TabIndex = 0;
  1137. this.groupBox1.TabStop = false;
  1138. this.groupBox1.Text = "基本属性";
  1139. //
  1140. // groupBox7
  1141. //
  1142. this.groupBox7.BackColor = System.Drawing.Color.Transparent;
  1143. this.groupBox7.Controls.Add(this.rbtnOutBarCode);
  1144. this.groupBox7.Controls.Add(this.rbtnGBarcode);
  1145. this.groupBox7.Location = new System.Drawing.Point(700, 129);
  1146. this.groupBox7.Margin = new System.Windows.Forms.Padding(4);
  1147. this.groupBox7.Name = "groupBox7";
  1148. this.groupBox7.Padding = new System.Windows.Forms.Padding(4);
  1149. this.groupBox7.Size = new System.Drawing.Size(288, 68);
  1150. this.groupBox7.TabIndex = 13;
  1151. this.groupBox7.TabStop = false;
  1152. this.groupBox7.Tag = "";
  1153. this.groupBox7.Text = "扫描条码类型";
  1154. //
  1155. // rbtnOutBarCode
  1156. //
  1157. this.rbtnOutBarCode.AutoSize = true;
  1158. this.rbtnOutBarCode.Location = new System.Drawing.Point(141, 30);
  1159. this.rbtnOutBarCode.Margin = new System.Windows.Forms.Padding(4);
  1160. this.rbtnOutBarCode.Name = "rbtnOutBarCode";
  1161. this.rbtnOutBarCode.Size = new System.Drawing.Size(88, 19);
  1162. this.rbtnOutBarCode.TabIndex = 1;
  1163. this.rbtnOutBarCode.Text = "包装条码";
  1164. this.rbtnOutBarCode.UseVisualStyleBackColor = true;
  1165. //
  1166. // rbtnGBarcode
  1167. //
  1168. this.rbtnGBarcode.AutoSize = true;
  1169. this.rbtnGBarcode.Checked = true;
  1170. this.rbtnGBarcode.Location = new System.Drawing.Point(36, 30);
  1171. this.rbtnGBarcode.Margin = new System.Windows.Forms.Padding(4);
  1172. this.rbtnGBarcode.Name = "rbtnGBarcode";
  1173. this.rbtnGBarcode.Size = new System.Drawing.Size(88, 19);
  1174. this.rbtnGBarcode.TabIndex = 0;
  1175. this.rbtnGBarcode.TabStop = true;
  1176. this.rbtnGBarcode.Text = "注浆条码";
  1177. this.rbtnGBarcode.UseVisualStyleBackColor = true;
  1178. //
  1179. // txtBarCodePrintCopies
  1180. //
  1181. this.txtBarCodePrintCopies.AllowNegative = false;
  1182. this.txtBarCodePrintCopies.BackColor = System.Drawing.SystemColors.Window;
  1183. this.txtBarCodePrintCopies.BackgroundColor = System.Drawing.SystemColors.Window;
  1184. this.txtBarCodePrintCopies.EditingControlFormattedValue = "";
  1185. this.txtBarCodePrintCopies.ErrorMessage = "";
  1186. this.txtBarCodePrintCopies.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
  1187. this.txtBarCodePrintCopies.ImeMode = System.Windows.Forms.ImeMode.Off;
  1188. this.txtBarCodePrintCopies.Location = new System.Drawing.Point(271, 166);
  1189. this.txtBarCodePrintCopies.Margin = new System.Windows.Forms.Padding(4);
  1190. this.txtBarCodePrintCopies.MaxLength = 2;
  1191. this.txtBarCodePrintCopies.MaxValue = new decimal(new int[] {
  1192. 10,
  1193. 0,
  1194. 0,
  1195. 0});
  1196. this.txtBarCodePrintCopies.MinValue = new decimal(new int[] {
  1197. 0,
  1198. 0,
  1199. 0,
  1200. 0});
  1201. this.txtBarCodePrintCopies.Name = "txtBarCodePrintCopies";
  1202. this.txtBarCodePrintCopies.Size = new System.Drawing.Size(35, 25);
  1203. this.txtBarCodePrintCopies.TabIndex = 16;
  1204. this.txtBarCodePrintCopies.TextValue = "";
  1205. //
  1206. // c_Label5
  1207. //
  1208. this.c_Label5.AutoSize = true;
  1209. this.c_Label5.BackColor = System.Drawing.Color.Transparent;
  1210. this.c_Label5.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
  1211. this.c_Label5.Location = new System.Drawing.Point(196, 171);
  1212. this.c_Label5.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
  1213. this.c_Label5.Name = "c_Label5";
  1214. this.c_Label5.Size = new System.Drawing.Size(67, 15);
  1215. this.c_Label5.TabIndex = 15;
  1216. this.c_Label5.Text = "打印份数";
  1217. //
  1218. // txtDisplayNo
  1219. //
  1220. this.txtDisplayNo.AllowNegative = false;
  1221. this.txtDisplayNo.BackColor = System.Drawing.SystemColors.Window;
  1222. this.txtDisplayNo.BackgroundColor = System.Drawing.SystemColors.Window;
  1223. this.txtDisplayNo.EditingControlFormattedValue = "";
  1224. this.txtDisplayNo.ErrorMessage = "";
  1225. this.txtDisplayNo.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
  1226. this.txtDisplayNo.ImeMode = System.Windows.Forms.ImeMode.Off;
  1227. this.txtDisplayNo.Location = new System.Drawing.Point(100, 166);
  1228. this.txtDisplayNo.Margin = new System.Windows.Forms.Padding(4);
  1229. this.txtDisplayNo.MaxLength = 2;
  1230. this.txtDisplayNo.MaxValue = new decimal(new int[] {
  1231. 99,
  1232. 0,
  1233. 0,
  1234. 0});
  1235. this.txtDisplayNo.MinValue = new decimal(new int[] {
  1236. 0,
  1237. 0,
  1238. 0,
  1239. 0});
  1240. this.txtDisplayNo.Name = "txtDisplayNo";
  1241. this.txtDisplayNo.Size = new System.Drawing.Size(87, 25);
  1242. this.txtDisplayNo.TabIndex = 14;
  1243. this.txtDisplayNo.TextValue = "";
  1244. //
  1245. // txtmisspriority
  1246. //
  1247. this.txtmisspriority.AllowNegative = false;
  1248. this.txtmisspriority.BackColor = System.Drawing.SystemColors.Window;
  1249. this.txtmisspriority.BackgroundColor = System.Drawing.SystemColors.Window;
  1250. this.txtmisspriority.EditingControlFormattedValue = "";
  1251. this.txtmisspriority.ErrorMessage = "";
  1252. this.txtmisspriority.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
  1253. this.txtmisspriority.ImeMode = System.Windows.Forms.ImeMode.Off;
  1254. this.txtmisspriority.Location = new System.Drawing.Point(100, 132);
  1255. this.txtmisspriority.Margin = new System.Windows.Forms.Padding(4);
  1256. this.txtmisspriority.MaxLength = 1;
  1257. this.txtmisspriority.MaxValue = new decimal(new int[] {
  1258. 9,
  1259. 0,
  1260. 0,
  1261. 0});
  1262. this.txtmisspriority.MinValue = new decimal(new int[] {
  1263. 0,
  1264. 0,
  1265. 0,
  1266. 0});
  1267. this.txtmisspriority.Name = "txtmisspriority";
  1268. this.txtmisspriority.Size = new System.Drawing.Size(87, 25);
  1269. this.txtmisspriority.TabIndex = 14;
  1270. this.txtmisspriority.TextValue = "";
  1271. //
  1272. // lblDisplayNo
  1273. //
  1274. this.lblDisplayNo.AutoSize = true;
  1275. this.lblDisplayNo.BackColor = System.Drawing.Color.Transparent;
  1276. this.lblDisplayNo.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
  1277. this.lblDisplayNo.Location = new System.Drawing.Point(21, 170);
  1278. this.lblDisplayNo.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
  1279. this.lblDisplayNo.Name = "lblDisplayNo";
  1280. this.lblDisplayNo.Size = new System.Drawing.Size(67, 15);
  1281. this.lblDisplayNo.TabIndex = 13;
  1282. this.lblDisplayNo.Text = "显示顺序";
  1283. //
  1284. // c_Label4
  1285. //
  1286. this.c_Label4.AutoSize = true;
  1287. this.c_Label4.BackColor = System.Drawing.Color.Transparent;
  1288. this.c_Label4.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
  1289. this.c_Label4.ForeColor = System.Drawing.Color.Blue;
  1290. this.c_Label4.Location = new System.Drawing.Point(192, 138);
  1291. this.c_Label4.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
  1292. this.c_Label4.Name = "c_Label4";
  1293. this.c_Label4.Size = new System.Drawing.Size(232, 15);
  1294. this.c_Label4.TabIndex = 13;
  1295. this.c_Label4.Text = "(同级别排序大的优先记录漏扫)";
  1296. //
  1297. // lblmisspriority
  1298. //
  1299. this.lblmisspriority.AutoSize = true;
  1300. this.lblmisspriority.BackColor = System.Drawing.Color.Transparent;
  1301. this.lblmisspriority.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
  1302. this.lblmisspriority.Location = new System.Drawing.Point(5, 138);
  1303. this.lblmisspriority.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
  1304. this.lblmisspriority.Name = "lblmisspriority";
  1305. this.lblmisspriority.Size = new System.Drawing.Size(82, 15);
  1306. this.lblmisspriority.TabIndex = 13;
  1307. this.lblmisspriority.Text = "漏扫排序号";
  1308. //
  1309. // groupBox4
  1310. //
  1311. this.groupBox4.BackColor = System.Drawing.Color.Transparent;
  1312. this.groupBox4.Controls.Add(this.radioJobsPrice);
  1313. this.groupBox4.Controls.Add(this.radioNotPrice);
  1314. this.groupBox4.Enabled = false;
  1315. this.groupBox4.Location = new System.Drawing.Point(700, 58);
  1316. this.groupBox4.Margin = new System.Windows.Forms.Padding(4);
  1317. this.groupBox4.Name = "groupBox4";
  1318. this.groupBox4.Padding = new System.Windows.Forms.Padding(4);
  1319. this.groupBox4.Size = new System.Drawing.Size(288, 68);
  1320. this.groupBox4.TabIndex = 12;
  1321. this.groupBox4.TabStop = false;
  1322. this.groupBox4.Tag = "";
  1323. this.groupBox4.Text = "撤销计件";
  1324. this.groupBox4.Visible = false;
  1325. //
  1326. // radioJobsPrice
  1327. //
  1328. this.radioJobsPrice.AutoSize = true;
  1329. this.radioJobsPrice.Checked = true;
  1330. this.radioJobsPrice.Location = new System.Drawing.Point(141, 30);
  1331. this.radioJobsPrice.Margin = new System.Windows.Forms.Padding(4);
  1332. this.radioJobsPrice.Name = "radioJobsPrice";
  1333. this.radioJobsPrice.Size = new System.Drawing.Size(88, 19);
  1334. this.radioJobsPrice.TabIndex = 1;
  1335. this.radioJobsPrice.TabStop = true;
  1336. this.radioJobsPrice.Text = "不能撤销";
  1337. this.radioJobsPrice.UseVisualStyleBackColor = true;
  1338. //
  1339. // radioNotPrice
  1340. //
  1341. this.radioNotPrice.AutoSize = true;
  1342. this.radioNotPrice.Location = new System.Drawing.Point(36, 30);
  1343. this.radioNotPrice.Margin = new System.Windows.Forms.Padding(4);
  1344. this.radioNotPrice.Name = "radioNotPrice";
  1345. this.radioNotPrice.Size = new System.Drawing.Size(73, 19);
  1346. this.radioNotPrice.TabIndex = 0;
  1347. this.radioNotPrice.Text = "能撤销";
  1348. this.radioNotPrice.UseVisualStyleBackColor = true;
  1349. //
  1350. // ddlProcessModelType
  1351. //
  1352. this.ddlProcessModelType.BackColor = System.Drawing.Color.Yellow;
  1353. this.ddlProcessModelType.BackgroundColor = System.Drawing.SystemColors.Window;
  1354. this.ddlProcessModelType.DataSource = null;
  1355. this.ddlProcessModelType.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
  1356. this.ddlProcessModelType.FormattingEnabled = true;
  1357. this.ddlProcessModelType.IsMustInput = true;
  1358. //
  1359. //
  1360. //
  1361. this.ddlProcessModelType.ListBox.Dock = System.Windows.Forms.DockStyle.Fill;
  1362. this.ddlProcessModelType.ListBox.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
  1363. this.ddlProcessModelType.ListBox.Location = new System.Drawing.Point(0, 0);
  1364. this.ddlProcessModelType.ListBox.Name = "";
  1365. this.ddlProcessModelType.ListBox.Size = new System.Drawing.Size(141, 136);
  1366. this.ddlProcessModelType.ListBox.TabIndex = 0;
  1367. this.ddlProcessModelType.ListBox.SelectedIndexChanged += new System.EventHandler(this.cobProcessModelType_SelectedIndexChanged);
  1368. this.ddlProcessModelType.Location = new System.Drawing.Point(548, 25);
  1369. this.ddlProcessModelType.Margin = new System.Windows.Forms.Padding(4);
  1370. this.ddlProcessModelType.Name = "ddlProcessModelType";
  1371. this.ddlProcessModelType.Size = new System.Drawing.Size(143, 23);
  1372. this.ddlProcessModelType.TabIndex = 5;
  1373. this.ddlProcessModelType.SelectedIndexChanged += new System.EventHandler(this.ddlProcessModelType_SelectedIndexChanged);
  1374. //
  1375. // groupBox6
  1376. //
  1377. this.groupBox6.BackColor = System.Drawing.Color.Transparent;
  1378. this.groupBox6.Controls.Add(this.rbtnAuto);
  1379. this.groupBox6.Controls.Add(this.rbtnHand);
  1380. this.groupBox6.Location = new System.Drawing.Point(472, 129);
  1381. this.groupBox6.Margin = new System.Windows.Forms.Padding(4);
  1382. this.groupBox6.Name = "groupBox6";
  1383. this.groupBox6.Padding = new System.Windows.Forms.Padding(4);
  1384. this.groupBox6.Size = new System.Drawing.Size(220, 68);
  1385. this.groupBox6.TabIndex = 11;
  1386. this.groupBox6.TabStop = false;
  1387. this.groupBox6.Tag = "";
  1388. this.groupBox6.Text = "交坯模式";
  1389. //
  1390. // rbtnAuto
  1391. //
  1392. this.rbtnAuto.AutoSize = true;
  1393. this.rbtnAuto.Checked = true;
  1394. this.rbtnAuto.Location = new System.Drawing.Point(141, 30);
  1395. this.rbtnAuto.Margin = new System.Windows.Forms.Padding(4);
  1396. this.rbtnAuto.Name = "rbtnAuto";
  1397. this.rbtnAuto.Size = new System.Drawing.Size(58, 19);
  1398. this.rbtnAuto.TabIndex = 1;
  1399. this.rbtnAuto.TabStop = true;
  1400. this.rbtnAuto.Text = "自动";
  1401. this.rbtnAuto.UseVisualStyleBackColor = true;
  1402. //
  1403. // rbtnHand
  1404. //
  1405. this.rbtnHand.AutoSize = true;
  1406. this.rbtnHand.Location = new System.Drawing.Point(36, 30);
  1407. this.rbtnHand.Margin = new System.Windows.Forms.Padding(4);
  1408. this.rbtnHand.Name = "rbtnHand";
  1409. this.rbtnHand.Size = new System.Drawing.Size(58, 19);
  1410. this.rbtnHand.TabIndex = 0;
  1411. this.rbtnHand.Text = "手动";
  1412. this.rbtnHand.UseVisualStyleBackColor = true;
  1413. //
  1414. // sbOrganizationID
  1415. //
  1416. this.sbOrganizationID.BackColor = System.Drawing.Color.Transparent;
  1417. this.sbOrganizationID.CurrentUserOrganizationCode = null;
  1418. this.sbOrganizationID.DataSource = null;
  1419. this.sbOrganizationID.Enabled = true;
  1420. this.sbOrganizationID.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
  1421. this.sbOrganizationID.IsMustInput = true;
  1422. this.sbOrganizationID.IsOnlyDisplayEnd = false;
  1423. this.sbOrganizationID.Location = new System.Drawing.Point(700, 25);
  1424. this.sbOrganizationID.Margin = new System.Windows.Forms.Padding(5);
  1425. this.sbOrganizationID.Name = "sbOrganizationID";
  1426. this.sbOrganizationID.OrganizationCode = "";
  1427. this.sbOrganizationID.OrganizationIDS = null;
  1428. this.sbOrganizationID.OrganizationName = "";
  1429. this.sbOrganizationID.PurviewType = ((byte)(0));
  1430. this.sbOrganizationID.Size = new System.Drawing.Size(288, 26);
  1431. this.sbOrganizationID.TabIndex = 6;
  1432. this.sbOrganizationID.TxtOrganizationBackColor = System.Drawing.SystemColors.Control;
  1433. //
  1434. // ddlPrintType
  1435. //
  1436. this.ddlPrintType.BackColor = System.Drawing.SystemColors.Window;
  1437. this.ddlPrintType.BackgroundColor = System.Drawing.SystemColors.Window;
  1438. this.ddlPrintType.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
  1439. this.ddlPrintType.FormattingEnabled = true;
  1440. this.ddlPrintType.Location = new System.Drawing.Point(358, 166);
  1441. this.ddlPrintType.Name = "ddlPrintType";
  1442. this.ddlPrintType.Size = new System.Drawing.Size(102, 23);
  1443. this.ddlPrintType.TabIndex = 25;
  1444. this.ddlPrintType.SelectedIndexChanged += new System.EventHandler(this.ddlPrintType_SelectedIndexChanged);
  1445. //
  1446. // c_Label6
  1447. //
  1448. this.c_Label6.AutoSize = true;
  1449. this.c_Label6.BackColor = System.Drawing.Color.Transparent;
  1450. this.c_Label6.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
  1451. this.c_Label6.Location = new System.Drawing.Point(314, 171);
  1452. this.c_Label6.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
  1453. this.c_Label6.Name = "c_Label6";
  1454. this.c_Label6.Size = new System.Drawing.Size(37, 15);
  1455. this.c_Label6.TabIndex = 24;
  1456. this.c_Label6.Text = "类型";
  1457. //
  1458. // F_PC_0207
  1459. //
  1460. this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 15F);
  1461. this.BackColor = System.Drawing.SystemColors.Control;
  1462. this.CancelButton = this.btnCancel;
  1463. this.ClientSize = new System.Drawing.Size(1037, 648);
  1464. this.Controls.Add(this.btnCancel);
  1465. this.Controls.Add(this.btnSave);
  1466. this.Controls.Add(this.groupBox3);
  1467. this.Controls.Add(this.groupBox1);
  1468. this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
  1469. this.IsSaveFormSize = false;
  1470. this.Margin = new System.Windows.Forms.Padding(7, 6, 7, 6);
  1471. this.MaximizeBox = false;
  1472. this.MinimizeBox = false;
  1473. this.Name = "F_PC_0207";
  1474. this.ShowInTaskbar = false;
  1475. this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
  1476. this.StatusSizingGrip = false;
  1477. this.Text = "计件属性";
  1478. this.Load += new System.EventHandler(this.F_PC_0207_Load);
  1479. this.Controls.SetChildIndex(this.groupBox1, 0);
  1480. this.Controls.SetChildIndex(this.groupBox3, 0);
  1481. this.Controls.SetChildIndex(this.btnSave, 0);
  1482. this.Controls.SetChildIndex(this.btnCancel, 0);
  1483. this.GetDataOgrp.ResumeLayout(false);
  1484. this.GetDataOgrp.PerformLayout();
  1485. this.groupBox5.ResumeLayout(false);
  1486. this.groupBox5.PerformLayout();
  1487. this.groupBox2.ResumeLayout(false);
  1488. this.groupBox2.PerformLayout();
  1489. this.groupBox3.ResumeLayout(false);
  1490. this.tabControl.ResumeLayout(false);
  1491. this.tabPage1.ResumeLayout(false);
  1492. ((System.ComponentModel.ISupportInitialize)(this.dgvGoods)).EndInit();
  1493. this.tabPage2.ResumeLayout(false);
  1494. ((System.ComponentModel.ISupportInitialize)(this.dgvUser)).EndInit();
  1495. this.tabPage3.ResumeLayout(false);
  1496. ((System.ComponentModel.ISupportInitialize)(this.dgvDefect)).EndInit();
  1497. this.tabPage4.ResumeLayout(false);
  1498. ((System.ComponentModel.ISupportInitialize)(this.dgvKiln)).EndInit();
  1499. this.groupBox1.ResumeLayout(false);
  1500. this.groupBox1.PerformLayout();
  1501. this.groupBox7.ResumeLayout(false);
  1502. this.groupBox7.PerformLayout();
  1503. this.groupBox4.ResumeLayout(false);
  1504. this.groupBox4.PerformLayout();
  1505. this.groupBox6.ResumeLayout(false);
  1506. this.groupBox6.PerformLayout();
  1507. this.ResumeLayout(false);
  1508. this.PerformLayout();
  1509. }
  1510. #endregion
  1511. #region 共有方法
  1512. /// <summary>
  1513. /// 填充节点信息到窗口中
  1514. /// </summary>
  1515. public void FormContentInit()
  1516. {
  1517. this._procedureEntity = (ProcedureEntity)this.node.TagNonSerialized;
  1518. }
  1519. #endregion
  1520. #region 事件
  1521. /// <summary>
  1522. /// 画面加载
  1523. /// </summary>
  1524. /// <param name="sender"></param>
  1525. /// <param name="e"></param>
  1526. private void F_PC_0207_Load(object sender, EventArgs e)
  1527. {
  1528. try
  1529. {
  1530. if (IsReadOnlyCode)
  1531. {
  1532. //this.txtProcedureCode.ReadOnly = true;
  1533. }
  1534. #region 数据加载
  1535. this.dgvGoods.AutoGenerateColumns = false;
  1536. this.dgvUser.AutoGenerateColumns = false;
  1537. this.dgvDefect.AutoGenerateColumns = false;
  1538. this.dgvKiln.AutoGenerateColumns = false;
  1539. // 加载产品列表的结构
  1540. this.dgvGoods.DataSource = this._procedureEntity.ProcedureGoodsTable.Copy();
  1541. this.dgvGoods.IsSetInputColumnsColor = true;
  1542. // 加载操作工号表
  1543. this.dgvUser.DataSource = this._procedureEntity.ProcedureUserTable.Copy();
  1544. this.dgvUser.IsSetInputColumnsColor = true;
  1545. // 加载缺陷
  1546. this.dgvDefect.DataSource = this._procedureEntity.DefectProcedureJobsTable.Copy();
  1547. this.dgvDefect.IsSetInputColumnsColor = true;
  1548. // 加载操作窑炉表
  1549. this.dgvKiln.DataSource = this._procedureEntity.ProcedureKilnTable.Copy();
  1550. this.dgvKiln.IsSetInputColumnsColor = true;
  1551. // 加载缺陷下拉用的数据
  1552. //_defectDt = SystemModuleProxy.Service.GetDefect().Tables[0];
  1553. //this.DefectID.DisplayMember = "CodeName";
  1554. //this.DefectID.ValueMember = "DefectID";
  1555. //this.DefectID.DataSource = _defectDt;
  1556. // 加载工种下拉用的数据
  1557. //_JobsDt = SystemModuleProxy.Service.GetJobs().Tables[0];
  1558. //this.JobsID.DisplayMember = "CodeName";
  1559. //this.JobsID.ValueMember = "JobsID";
  1560. //this.JobsID.DataSource = _JobsDt;
  1561. this.ddlProcessModelType.DisplayMember = "ProcedureModelTypeName";
  1562. this.ddlProcessModelType.ValueMember = "ProcedureModelTypeID";
  1563. DataTable dtModelType = LogInUserInfo.CurrentUser.GetSystemParameterByName(Constant.SysCacheTable.TP_SYS_ProcedureModelType);//SystemModuleProxy.Service.GetSYSProcessModelType();
  1564. this.ddlProcessModelType.DataSource = dtModelType.Select("ProcedureModelTypeID>=0 and Valueflag=1").CopyToDataTable();
  1565. //加载 打印类型 xuwei begin 2019-11-20
  1566. this.ddlPrintType.DisplayMember = "PRINTTYPENAME";
  1567. this.ddlPrintType.ValueMember = "PRINTTYPEID";
  1568. ClientRequestEntity cre = new ClientRequestEntity();
  1569. cre.NameSpace = "PrintInfo";
  1570. cre.Name = "GetPrintType";
  1571. DataTable dtPrintType = SystemModuleProxy.Service.DoBarCodePrint(cre).Data.Tables[0];
  1572. DataRow dr = dtPrintType.NewRow();
  1573. dr["PRINTTYPENAME"] = "请选择...";
  1574. dr["PRINTTYPEID"] = "0";
  1575. dtPrintType.Rows.InsertAt(dr, 0);
  1576. this.ddlPrintType.DataSource = dtPrintType;
  1577. //加载 打印类型 xuwei end
  1578. #endregion
  1579. #region 窗体赋值
  1580. if (string.IsNullOrEmpty(this._procedureEntity.ProcedureCode))
  1581. {
  1582. this.txtProcedureCode.Text = this._procedureEntity.NodeNo + "";
  1583. this._procedureEntity.ProcedureCode = this._procedureEntity.NodeNo + "";
  1584. }
  1585. else
  1586. {
  1587. this.txtProcedureCode.Text = this._procedureEntity.ProcedureCode;
  1588. }
  1589. this.txtProcedureName.Text = this.node.Name;
  1590. this.txtRemarks.Text = this._procedureEntity.Remarks;
  1591. this.txtBarCodePrintCopies.DataValue = this._procedureEntity.BarCodePrintCopies;
  1592. this.ddlProcessModelType.ListBox.SelectedValue = this._procedureEntity.ModelType;
  1593. // 不是重复代码。必须要赋值2行
  1594. this.ddlProcessModelType.ListBox.SelectedValue = this._procedureEntity.ModelType;
  1595. this.sbOrganizationID.OrganizationID = this._procedureEntity.OrganizationID;
  1596. this.rbtnOne.Checked = (this._procedureEntity.CollectType == Constant.ProcedureCollectType.SinglePoint.GetHashCode());
  1597. this.rbtnMore.Checked = (this._procedureEntity.CollectType == Constant.ProcedureCollectType.Togather.GetHashCode());
  1598. this.rBtnNeed.Checked = (this._procedureEntity.MustFlag == Constant.ProcedureMustFlag.Yes.GetHashCode());
  1599. this.rBtnNoNeed.Checked = (this._procedureEntity.MustFlag == Constant.ProcedureMustFlag.NonMust.GetHashCode());
  1600. this.rbtnSpecialReworkProcess.Checked = (this._procedureEntity.IsSpecialRework == Constant.SpecialReworkFlag.Yes.GetHashCode());
  1601. //xuwei add 2019-10-14
  1602. this.rbtnSpecialSemireProcess.Checked = (this._procedureEntity.IsSemireWork == Constant.SpecialReworkFlag.Yes.GetHashCode());
  1603. //xuwei add 2019-11-20
  1604. this.ddlPrintType.SelectedValue = this._procedureEntity.PrintType;
  1605. //this.radioJobsPrice.Checked = (this._procedureEntity.PieceType == Constant.ProcedurePieceType.JobsPiece.GetHashCode());
  1606. //this.radioNotPrice.Checked = (this._procedureEntity.PieceType == Constant.ProcedurePieceType.NoPiece.GetHashCode());
  1607. if (this._procedureEntity.UnDo == 0)
  1608. {
  1609. this.radioJobsPrice.Checked = true;
  1610. }
  1611. else
  1612. {
  1613. this.radioNotPrice.Checked = true;
  1614. }
  1615. if (this._procedureEntity.DeliverType == 0)
  1616. {
  1617. this.rbtnHand.Checked = true;
  1618. }
  1619. else
  1620. {
  1621. this.rbtnAuto.Checked = true;
  1622. }
  1623. if (this._procedureEntity.BarCodeFlag == 0)
  1624. {
  1625. this.rbtnGBarcode.Checked = true;
  1626. }
  1627. else
  1628. {
  1629. this.rbtnOutBarCode.Checked = true;
  1630. }
  1631. #endregion
  1632. this.txtmisspriority.Text = this._procedureEntity.MissPriority.ToString();
  1633. this.txtDisplayNo.Text = this._procedureEntity.DisplayNo.ToString();
  1634. }
  1635. catch (Exception ex)
  1636. {
  1637. // 对异常进行共通处理
  1638. ExceptionManager.HandleEventException(this.ToString(),
  1639. System.Reflection.MethodBase.GetCurrentMethod().Name, this.Text, ex);
  1640. }
  1641. }
  1642. /// <summary>
  1643. /// 点击取消 关闭窗口
  1644. /// </summary>
  1645. /// <param name="sender"></param>
  1646. /// <param name="e"></param>
  1647. private void btn_Save_Click(object sender, System.EventArgs e)
  1648. {
  1649. }
  1650. private void button1_Click(object sender, EventArgs e)
  1651. {
  1652. if (string.IsNullOrEmpty(this.txtProcedureCode.Text.Trim()))
  1653. {
  1654. MessageBox.Show("工序编码为必填项!", "Error");
  1655. this.txtProcedureCode.Focus();
  1656. return;
  1657. }
  1658. if (string.IsNullOrEmpty(this.txtProcedureName.Text.Trim()))
  1659. {
  1660. MessageBox.Show("工序名称为必填项!", "Error");
  1661. this.txtProcedureName.Focus();
  1662. return;
  1663. }
  1664. if ((int)this.ddlProcessModelType.SelectedValue == 5 && this.rbtnSpecialReworkProcess.Checked)
  1665. {
  1666. MessageBox.Show("工序类别为交坯工序时,不能为特殊返工工序!", "Error");
  1667. this.ddlProcessModelType.Focus();
  1668. return;
  1669. }
  1670. if ((int)this.ddlProcessModelType.SelectedValue == 0)
  1671. {
  1672. MessageBox.Show("组织机构为必填项!", "Error");
  1673. this.ddlProcessModelType.Focus();
  1674. return;
  1675. }
  1676. this._procedureEntity.ProcedureCode = this.txtProcedureCode.Text.Trim();
  1677. this.node.Name = this.txtProcedureName.Text.Trim();
  1678. this._procedureEntity.Remarks = this.txtRemarks.Text.Trim();
  1679. this._procedureEntity.ModelType = (int)ddlProcessModelType.SelectedValue;
  1680. //this.node.OrganizationID = this.cobOrganizationID.SelectedIndex;
  1681. this._procedureEntity.CollectType = this.rbtnOne.Checked ? 2 : 1;
  1682. this._procedureEntity.MustFlag = this.rBtnNeed.Checked ? 1 : 0;
  1683. this._procedureEntity.IsSpecialRework = this.rbtnSpecialReworkProcess.Checked ? 1 : 0;
  1684. //xuwei add 2019-10-17
  1685. this._procedureEntity.IsSemireWork = this.rbtnSpecialSemireProcess.Checked ? 1 : 0;
  1686. //xuwei add 2019-11-20
  1687. this._procedureEntity.PrintType = Convert.ToInt32(this.ddlPrintType.SelectedValue);
  1688. this.Close();
  1689. }
  1690. /// <summary>
  1691. /// 改变工序类型后控制输入属性
  1692. /// </summary>
  1693. /// <param name="sender"></param>
  1694. /// <param name="e"></param>
  1695. private void cobProcessModelType_SelectedIndexChanged(object sender, EventArgs e)
  1696. {
  1697. int selectValue = Convert.ToInt32(ddlProcessModelType.SelectedValue);
  1698. if (Convert.ToInt32(ddlProcessModelType.SelectedValue) == Convert.ToInt32(Dongke.IBOSS.PRD.Basics.BaseResources.Constant.ProcedureModelType.LoadCar)
  1699. || Convert.ToInt32(ddlProcessModelType.SelectedValue) == Convert.ToInt32(Dongke.IBOSS.PRD.Basics.BaseResources.Constant.ProcedureModelType.IntoKiln)
  1700. || Convert.ToInt32(ddlProcessModelType.SelectedValue) == Convert.ToInt32(Dongke.IBOSS.PRD.Basics.BaseResources.Constant.ProcedureModelType.OutKiln)
  1701. || Convert.ToInt32(ddlProcessModelType.SelectedValue) == Convert.ToInt32(Dongke.IBOSS.PRD.Basics.BaseResources.Constant.ProcedureModelType.UnloadCar)
  1702. || Convert.ToInt32(ddlProcessModelType.SelectedValue) == Convert.ToInt32(Dongke.IBOSS.PRD.Basics.BaseResources.Constant.ProcedureModelType.CarAdd))
  1703. {
  1704. this.tabPage4.Parent = this.tabControl;
  1705. }
  1706. else
  1707. {
  1708. this.tabPage4.Parent = null;
  1709. }
  1710. if (this.ddlProcessModelType.SelectedValue.ToString() == "0" && (this._procedureEntity.NodeType != (int)Constant.ProcedureNodeType.End))
  1711. {
  1712. groupBox4.Enabled = true;
  1713. groupBox4.Visible = true;
  1714. }
  1715. else
  1716. {
  1717. groupBox4.Enabled = false;
  1718. groupBox4.Visible = false;
  1719. radioJobsPrice.Checked = true;
  1720. }
  1721. // 只有交坯才显示
  1722. if (Convert.ToInt32(ddlProcessModelType.SelectedValue) == Convert.ToInt32(Dongke.IBOSS.PRD.Basics.BaseResources.Constant.ProcedureModelType.DeliverMud))
  1723. {
  1724. groupBox6.Enabled = true;
  1725. groupBox6.Visible = true;
  1726. }
  1727. else
  1728. {
  1729. groupBox6.Enabled = false;
  1730. groupBox6.Visible = false;
  1731. rbtnAuto.Checked = true;
  1732. }
  1733. if (Convert.ToInt32(ddlProcessModelType.SelectedValue) == Convert.ToInt32(Dongke.IBOSS.PRD.Basics.BaseResources.Constant.ProcedureModelType.Normal))
  1734. {
  1735. this.groupBox7.Visible = true;
  1736. }
  1737. else
  1738. {
  1739. this.groupBox7.Visible = false;
  1740. rbtnGBarcode.Checked = true;
  1741. }
  1742. //干补
  1743. if (selectValue == Convert.ToInt32(Dongke.IBOSS.PRD.Basics.BaseResources.Constant.ProcedureModelType.SpecialRepair))
  1744. {
  1745. groupBox2.Visible = false;
  1746. groupBox5.Visible = false;
  1747. rBtnNeed.Checked = true;
  1748. //xuwei fix 2019-10-14
  1749. //rbtnNoSpecialReworkProcess.Checked = true;
  1750. rbtnSpecialReworkProcess.Checked = false;
  1751. }
  1752. else
  1753. {
  1754. groupBox2.Visible = true;
  1755. groupBox5.Visible = true;
  1756. }
  1757. // 回收
  1758. if (selectValue == Convert.ToInt32(Dongke.IBOSS.PRD.Basics.BaseResources.Constant.ProcedureModelType.Recovery))
  1759. {
  1760. //groupBox2.Visible = false;
  1761. groupBox5.Visible = false;
  1762. rBtnNeed.Checked = true;
  1763. //xuwei fix 2019-10-15
  1764. //rbtnNoSpecialReworkProcess.Checked = true;
  1765. rbtnSpecialReworkProcess.Checked = false;
  1766. rBtnNeed.Enabled = false;
  1767. rBtnNoNeed.Enabled = false;
  1768. }
  1769. else
  1770. {
  1771. groupBox2.Visible = true;
  1772. if (this.ddlProcessModelType.SelectedValue.ToString() == "0" && (this._procedureEntity.NodeType != (int)Constant.ProcedureNodeType.End))
  1773. {
  1774. groupBox5.Visible = true;
  1775. }
  1776. else
  1777. {
  1778. groupBox5.Visible = false;
  1779. //xuwei fix 2019-10-14
  1780. //rbtnNoSpecialReworkProcess.Checked = true;
  1781. //rbtnSpecialReworkProcess.Checked = true;
  1782. }
  1783. rBtnNeed.Enabled = true;
  1784. rBtnNoNeed.Enabled = true;
  1785. if (Convert.ToInt32(ddlProcessModelType.SelectedValue) == Convert.ToInt32(Dongke.IBOSS.PRD.Basics.BaseResources.Constant.ProcedureModelType.LoadCar)
  1786. || Convert.ToInt32(ddlProcessModelType.SelectedValue) == Convert.ToInt32(Dongke.IBOSS.PRD.Basics.BaseResources.Constant.ProcedureModelType.IntoKiln)
  1787. || Convert.ToInt32(ddlProcessModelType.SelectedValue) == Convert.ToInt32(Dongke.IBOSS.PRD.Basics.BaseResources.Constant.ProcedureModelType.OutKiln)
  1788. || Convert.ToInt32(ddlProcessModelType.SelectedValue) == Convert.ToInt32(Dongke.IBOSS.PRD.Basics.BaseResources.Constant.ProcedureModelType.UnloadCar)
  1789. || Convert.ToInt32(ddlProcessModelType.SelectedValue) == Convert.ToInt32(Dongke.IBOSS.PRD.Basics.BaseResources.Constant.ProcedureModelType.DeliverMud)
  1790. || Convert.ToInt32(ddlProcessModelType.SelectedValue) == Convert.ToInt32(Dongke.IBOSS.PRD.Basics.BaseResources.Constant.ProcedureModelType.SpecialRepair))
  1791. {
  1792. rBtnNeed.Checked = true;
  1793. rBtnNeed.Enabled = false;
  1794. rBtnNoNeed.Enabled = false;
  1795. }
  1796. }
  1797. //// 标准计件、交坯
  1798. //if ((int)ddlProcessModelType.SelectedValue == (int)ProcedureModelType.Normal
  1799. // || (int)ddlProcessModelType.SelectedValue == (int)ProcedureModelType.DeliverAdobe)
  1800. //{
  1801. // this.chkBarcode.Checked = true;
  1802. // this.chkBarcode.Enabled = false;
  1803. // this.chkCarCode.Checked = false;
  1804. // this.chkCarCode.Enabled = false;
  1805. // this.chkCarLocation.Checked = false;
  1806. // this.chkCarLocation.Enabled = false;
  1807. //}
  1808. //// 装窑车
  1809. //else if ((int)ddlProcessModelType.SelectedValue == (int)ProcedureModelType.LoadCar)
  1810. //{
  1811. // this.chkBarcode.Checked = true;
  1812. // this.chkBarcode.Enabled = false;
  1813. // this.chkCarCode.Checked = true;
  1814. // this.chkCarCode.Enabled = false;
  1815. // this.chkCarLocation.Checked = true;
  1816. // this.chkCarLocation.Enabled = false;
  1817. //}
  1818. //// 入窑、出窑、卸窑车
  1819. //else if ((int)ddlProcessModelType.SelectedValue == (int)ProcedureModelType.IntoKiln
  1820. // || (int)ddlProcessModelType.SelectedValue == (int)ProcedureModelType.OutKiln
  1821. // || (int)ddlProcessModelType.SelectedValue == (int)ProcedureModelType.UnloadCar)
  1822. //{
  1823. // this.chkBarcode.Checked = false;
  1824. // this.chkBarcode.Enabled = false;
  1825. // this.chkCarCode.Checked = true;
  1826. // this.chkCarCode.Enabled = false;
  1827. // this.chkCarLocation.Checked = false;
  1828. // this.chkCarLocation.Enabled = false;
  1829. //}
  1830. }
  1831. /// <summary>
  1832. /// 产品编码值改变事件
  1833. /// </summary>
  1834. /// <param name="sender"></param>
  1835. /// <param name="e"></param>
  1836. private void dgvGoods_CellValueChanged(object sender, DataGridViewCellEventArgs e)
  1837. {
  1838. try
  1839. {
  1840. if (this.dgvGoods.Rows.Count <= 1 || !_ShowFlag)
  1841. {
  1842. return;
  1843. }
  1844. DataGridViewRow rowItem = this.dgvGoods.Rows[e.RowIndex];
  1845. DataGridViewColumn columnItem = this.dgvGoods.Columns[e.ColumnIndex];
  1846. // 用编号获取产品信息
  1847. if ("GoodsCode".Equals(columnItem.Name))
  1848. {
  1849. _ShowFlag = false;
  1850. FormUtility.BindGoodsRowDataSource(this.dgvGoods,
  1851. e.RowIndex, columnItem.Name, _goodsCodeValue);
  1852. // 设置可输入单元格的颜色
  1853. this.dgvGoods.IsSetInputColumnsColor = true;
  1854. }
  1855. _ShowFlag = true;
  1856. }
  1857. catch (Exception ex)
  1858. {
  1859. // 对异常进行共通处理
  1860. ExceptionManager.HandleEventException(this.ToString(),
  1861. System.Reflection.MethodBase.GetCurrentMethod().Name, this.Text, ex);
  1862. }
  1863. }
  1864. /// <summary>
  1865. /// 单元格编辑时
  1866. /// </summary>
  1867. /// <param name="sender"></param>
  1868. /// <param name="e"></param>
  1869. private void dgvGoods_CellBeginEdit(object sender, DataGridViewCellCancelEventArgs e)
  1870. {
  1871. try
  1872. {
  1873. if (this.dgvGoods.Rows.Count <= 1)
  1874. {
  1875. return;
  1876. }
  1877. DataGridViewColumn columnItem = this.dgvGoods.Columns[e.ColumnIndex];
  1878. if ("GoodsCode".Equals(columnItem.Name))
  1879. {
  1880. _goodsCodeValue = this.dgvGoods.Rows[e.RowIndex].Cells[columnItem.Name].Value + "";
  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 dgvUser_EditingControlShowing(object sender, DataGridViewEditingControlShowingEventArgs e)
  1896. {
  1897. //C_DGV_DropDownList ddl = e.Control as C_DGV_DropDownList;
  1898. //if (ddl != null)
  1899. //{
  1900. // ddl.DisplayMember = "CodeName";
  1901. // ddl.ValueMember = "UserID";
  1902. // ddl.DataSource = _userDt;
  1903. // ListBox listbox = ddl.lstPrompt;
  1904. // Rectangle rect = this.dgvUser.GetCellDisplayRectangle(dgvUser.CurrentCell.ColumnIndex, dgvUser.CurrentCell.RowIndex, true);
  1905. // listbox.Left = rect.Left;
  1906. // listbox.Top = rect.Top + dgvUser.CurrentCell.Size.Height;
  1907. // listbox.Width = listbox.Width;
  1908. // listbox.Height = listbox.Height;
  1909. // listbox.Visible = true;
  1910. // this.dgvUser.Controls.Add(listbox);
  1911. //}
  1912. }
  1913. /// <summary>
  1914. /// 加载控件
  1915. /// </summary>
  1916. /// <param name="sender"></param>
  1917. /// <param name="e"></param>
  1918. private void dgvDefect_EditingControlShowing(object sender, DataGridViewEditingControlShowingEventArgs e)
  1919. {
  1920. //C_DGV_DropDownList ddl = e.Control as C_DGV_DropDownList;
  1921. //if (ddl != null)
  1922. //{
  1923. // string columnName = this.dgvDefect.Columns[this.dgvDefect.CurrentCell.ColumnIndex].Name;
  1924. // if (columnName == "DutyJobsID")
  1925. // {
  1926. // ddl.DisplayMember = "CodeName";
  1927. // ddl.ValueMember = "JobsID";
  1928. // ddl.DataSource = _JobsDt;
  1929. // }
  1930. // else
  1931. // {
  1932. // ddl.DisplayMember = "CodeName";
  1933. // ddl.ValueMember = "DefectID";
  1934. // ddl.DataSource = _defectDt;
  1935. // }
  1936. // ListBox listbox = ddl.lstPrompt;
  1937. // Rectangle rect = this.dgvDefect.GetCellDisplayRectangle(dgvDefect.CurrentCell.ColumnIndex, dgvDefect.CurrentCell.RowIndex, true);
  1938. // listbox.Left = rect.Left;
  1939. // listbox.Top = rect.Top + dgvDefect.CurrentCell.Size.Height;
  1940. // listbox.Width = listbox.Width;
  1941. // listbox.Height = listbox.Height;
  1942. // listbox.Visible = true;
  1943. // this.Controls.Add(listbox);
  1944. //}
  1945. }
  1946. /// <summary>
  1947. /// 保存
  1948. /// </summary>
  1949. /// <param name="sender"></param>
  1950. /// <param name="e"></param>
  1951. private void btnSave_Click(object sender, EventArgs e)
  1952. {
  1953. try
  1954. {
  1955. #region 校验
  1956. #region 非空校验
  1957. if (string.IsNullOrEmpty(this.txtProcedureCode.Text.Trim()))
  1958. {
  1959. MessageBox.Show(string.Format(Messages.MSG_CMN_W005, "工序编码"),
  1960. this.Text,
  1961. MessageBoxButtons.OK,
  1962. MessageBoxIcon.Warning);
  1963. this.txtProcedureCode.Focus();
  1964. return;
  1965. }
  1966. if (string.IsNullOrEmpty(this.txtProcedureName.Text.Trim()))
  1967. {
  1968. MessageBox.Show(string.Format(Messages.MSG_CMN_W005, "工序名称"),
  1969. this.Text,
  1970. MessageBoxButtons.OK,
  1971. MessageBoxIcon.Warning);
  1972. this.txtProcedureName.Focus();
  1973. return;
  1974. }
  1975. if (string.IsNullOrEmpty(this.ddlProcessModelType.Text.Trim()))
  1976. {
  1977. MessageBox.Show(string.Format(Messages.MSG_CMN_W005, "工序类型"),
  1978. this.Text,
  1979. MessageBoxButtons.OK,
  1980. MessageBoxIcon.Warning);
  1981. this.ddlProcessModelType.Focus();
  1982. return;
  1983. }
  1984. if (this.ddlProcessModelType.SelectedValue.ToString() == "8" && rbtnSpecialReworkProcess.Checked)
  1985. {
  1986. MessageBox.Show(string.Format("干补不能成为返工工序", "特定返工工序"),
  1987. this.Text,
  1988. MessageBoxButtons.OK,
  1989. MessageBoxIcon.Warning);
  1990. this.rbtnSpecialReworkProcess.Focus();
  1991. return;
  1992. }
  1993. if (sbOrganizationID.OrganizationID == null)
  1994. {
  1995. MessageBox.Show(string.Format(Messages.MSG_CMN_W005, "组织机构"),
  1996. this.Text,
  1997. MessageBoxButtons.OK,
  1998. MessageBoxIcon.Warning);
  1999. this.sbOrganizationID.Focus();
  2000. return;
  2001. }
  2002. #endregion
  2003. #region 规则检验
  2004. // 查询节点编码在本生产线中不重复
  2005. int itemID = this.node.ItemID;
  2006. bool isError = false;
  2007. foreach (FlowNode flownode in this.control.AllNodes)
  2008. {
  2009. if (flownode.ItemID != itemID && flownode.Code == this.txtProcedureCode.Text.Trim())
  2010. {
  2011. isError = true;
  2012. break;
  2013. }
  2014. }
  2015. if (isError)
  2016. {
  2017. MessageBox.Show("工序编码在本生产线中已经存在!",
  2018. this.Text,
  2019. MessageBoxButtons.OK,
  2020. MessageBoxIcon.Warning);
  2021. this.txtProcedureCode.Focus();
  2022. return;
  2023. }
  2024. //int count = this.control.drawObject.arrNodeList.OfType<Node>().Where(
  2025. // p => p.ProcedureEntity.ProcedureCode == this.txtProcedureCode.Text.Trim()
  2026. // && p.NodeListIndex != this.node.NodeListIndex
  2027. // ).Count();
  2028. //if (count > 0)
  2029. //{
  2030. // MessageBox.Show("工序编码在本生产线中已经存在!",
  2031. // this.Text,
  2032. // MessageBoxButtons.OK,
  2033. // MessageBoxIcon.Warning);
  2034. // this.txtProcedureCode.Focus();
  2035. // return;
  2036. //}
  2037. #endregion
  2038. #region 产品校验
  2039. if (this.dgvGoods.Rows.Count <= 1)
  2040. {
  2041. MessageBox.Show(string.Format(Messages.MSG_CMN_W005, "生产产品"),
  2042. this.Text,
  2043. MessageBoxButtons.OK,
  2044. MessageBoxIcon.Warning);
  2045. this.tabControl.SelectedIndex = 0;
  2046. this.dgvGoods.Focus();
  2047. return;
  2048. }
  2049. // 验证明细是否输入完整
  2050. foreach (DataGridViewRow row in this.dgvGoods.Rows)
  2051. {
  2052. if (row.IsNewRow)
  2053. {
  2054. continue;
  2055. }
  2056. // 产品编码
  2057. if (string.IsNullOrEmpty(row.Cells["GoodsID"].Value + ""))
  2058. {
  2059. MessageBox.Show(string.Format(Messages.MSG_CMN_W005, "产品编码"),
  2060. this.Text,
  2061. MessageBoxButtons.OK,
  2062. MessageBoxIcon.Warning);
  2063. this.tabControl.SelectedIndex = 0;
  2064. row.Cells["GoodsCode"].Selected = true;
  2065. return;
  2066. }
  2067. }
  2068. #endregion
  2069. #region 生产工号
  2070. if (this.dgvUser.Rows.Count <= 1)
  2071. {
  2072. MessageBox.Show(string.Format(Messages.MSG_CMN_W005, "操作工号"),
  2073. this.Text,
  2074. MessageBoxButtons.OK,
  2075. MessageBoxIcon.Warning);
  2076. this.tabControl.SelectedIndex = 1;
  2077. this.dgvUser.Focus();
  2078. return;
  2079. }
  2080. // 验证明细是否输入完整
  2081. for (int i = 0; i < this.dgvUser.Rows.Count; i++)
  2082. {
  2083. if (this.dgvUser.Rows[i].IsNewRow)
  2084. {
  2085. continue;
  2086. }
  2087. // 生产工号
  2088. if (string.IsNullOrEmpty(this.dgvUser.Rows[i].Cells["UserID"].Value + ""))
  2089. {
  2090. MessageBox.Show(string.Format(Messages.MSG_CMN_W005, "生产工号"),
  2091. this.Text,
  2092. MessageBoxButtons.OK,
  2093. MessageBoxIcon.Warning);
  2094. this.tabControl.SelectedIndex = 1;
  2095. this.dgvUser.Rows[i].Cells["UserID"].Selected = true;
  2096. return;
  2097. }
  2098. // 2层循环判断是否有重复的工号
  2099. for (int j = i + 1; j < this.dgvUser.Rows.Count; j++)
  2100. {
  2101. if (this.dgvUser.Rows[i].Cells["UserID"].Value + ""
  2102. == this.dgvUser.Rows[j].Cells["UserID"].Value + "")
  2103. {
  2104. MessageBox.Show("生产工号在列表中重复出现。",
  2105. this.Text,
  2106. MessageBoxButtons.OK,
  2107. MessageBoxIcon.Warning);
  2108. this.tabControl.SelectedIndex = 1;
  2109. this.dgvUser.Rows[i].Cells["UserID"].Selected = true;
  2110. return;
  2111. }
  2112. }
  2113. }
  2114. #endregion
  2115. #region 存在缺陷对应责任工种
  2116. // 验证明细是否输入完整
  2117. for (int i = 0; i < this.dgvDefect.Rows.Count; i++)
  2118. {
  2119. if (this.dgvDefect.Rows[i].IsNewRow)
  2120. {
  2121. continue;
  2122. }
  2123. // 存在缺陷不能为空
  2124. if (string.IsNullOrEmpty(this.dgvDefect.Rows[i].Cells["DefectID"].Value + ""))
  2125. {
  2126. MessageBox.Show(string.Format(Messages.MSG_CMN_W005, "缺陷"),
  2127. this.Text,
  2128. MessageBoxButtons.OK,
  2129. MessageBoxIcon.Warning);
  2130. this.tabControl.SelectedIndex = 2;
  2131. this.dgvDefect.Rows[i].Cells["DefectID"].Selected = true;
  2132. return;
  2133. }
  2134. // 责任工种不能为空
  2135. if (string.IsNullOrEmpty(this.dgvDefect.Rows[i].Cells["JobsID"].Value + ""))
  2136. {
  2137. MessageBox.Show(string.Format(Messages.MSG_CMN_W005, "责任工种"),
  2138. this.Text,
  2139. MessageBoxButtons.OK,
  2140. MessageBoxIcon.Warning);
  2141. this.tabControl.SelectedIndex = 2;
  2142. this.dgvDefect.Rows[i].Cells["JobsID"].Selected = true;
  2143. return;
  2144. }
  2145. // 2层循环判断是否有重复的工号
  2146. for (int j = i + 1; j < this.dgvDefect.Rows.Count; j++)
  2147. {
  2148. if (this.dgvDefect.Rows[i].Cells["DefectID"].Value + "," + this.dgvDefect.Rows[i].Cells["JobsID"].Value
  2149. == this.dgvDefect.Rows[j].Cells["DefectID"].Value + "," + this.dgvDefect.Rows[j].Cells["JobsID"].Value)
  2150. {
  2151. MessageBox.Show("缺陷与责任工种的组合在列表中重复出现。",
  2152. this.Text,
  2153. MessageBoxButtons.OK,
  2154. MessageBoxIcon.Warning);
  2155. this.tabControl.SelectedIndex = 2;
  2156. this.dgvDefect.Rows[i].Cells["DefectID"].Selected = true;
  2157. return;
  2158. }
  2159. }
  2160. }
  2161. #endregion
  2162. #endregion
  2163. #region 工序节点赋值
  2164. this._procedureEntity.ProcedureCode = this.txtProcedureCode.Text.Trim();
  2165. this.node.Name = this.txtProcedureName.Text.Trim();
  2166. this._procedureEntity.ProcedureName = this.txtProcedureName.Text.Trim();
  2167. this._procedureEntity.ModelType = Convert.ToInt32(this.ddlProcessModelType.ListBox.SelectedValue);
  2168. this._procedureEntity.OrganizationID = (int)this.sbOrganizationID.OrganizationID;
  2169. this._procedureEntity.CollectType = rbtnMore.Checked ? 1 : 2;
  2170. this._procedureEntity.MustFlag = rBtnNeed.Checked ? 1 : 2;
  2171. if (this._procedureEntity.MustFlag == 1)
  2172. { this.node.CanSkip = false; }
  2173. else { this.node.CanSkip = true; }
  2174. this._procedureEntity.DisplayNo = this.txtDisplayNo.Text.Trim() == "" ? 0 : Convert.ToInt32(this.txtDisplayNo.Text.Trim());
  2175. // 计件模式
  2176. //this.node.PieceType = rbtnMore.Checked ? 1 : 2;
  2177. // 特殊返工工序
  2178. this._procedureEntity.IsSpecialRework = rbtnSpecialReworkProcess.Checked ? 1 : 0;
  2179. //xuwei add 2019-10-14
  2180. //半检返修工序
  2181. this._procedureEntity.IsSemireWork = rbtnSpecialSemireProcess.Checked ? 1 : 0;
  2182. //打印类型 xuwei add 2019-11-20
  2183. this._procedureEntity.PrintType = Convert.ToInt32(this.ddlPrintType.SelectedValue.ToString());
  2184. this._procedureEntity.Remarks = this.txtRemarks.Text.Trim();
  2185. this._procedureEntity.BarCodeFlag = rbtnGBarcode.Checked ? 0 : 1;
  2186. // 生产产品
  2187. this._procedureEntity.ProcedureGoodsTable = this.dgvGoods.DataSource as DataTable;
  2188. this._procedureEntity.ProcedureGoodsTable.AcceptChanges();
  2189. // 操作工号表
  2190. this._procedureEntity.ProcedureUserTable = this.dgvUser.DataSource as DataTable;
  2191. this._procedureEntity.ProcedureUserTable.AcceptChanges();
  2192. // 缺陷
  2193. this._procedureEntity.DefectProcedureJobsTable = this.dgvDefect.DataSource as DataTable;
  2194. this._procedureEntity.DefectProcedureJobsTable.AcceptChanges();
  2195. // 操作窑炉
  2196. this._procedureEntity.ProcedureKilnTable = this.dgvKiln.DataSource as DataTable;
  2197. this._procedureEntity.ProcedureKilnTable.AcceptChanges();
  2198. //漏扫排序号
  2199. this._procedureEntity.MissPriority = this.txtmisspriority.Text.Trim() == "" ? 0 : Convert.ToInt32(this.txtmisspriority.Text);
  2200. this._procedureEntity.BarCodePrintCopies = this.txtBarCodePrintCopies.DataValue.HasValue ? Convert.ToInt32(this.txtBarCodePrintCopies.DataValue) : 0;
  2201. this._procedureEntity.UnDo = radioJobsPrice.Checked ? 0 : 1;
  2202. this._procedureEntity.DeliverType = rbtnHand.Checked ? 0 : 1;
  2203. #region 计件方式
  2204. this._procedureEntity.PieceType =
  2205. radioJobsPrice.Checked ? Constant.ProcedurePieceType.JobsPiece.GetHashCode() : Constant.ProcedurePieceType.NoPiece.GetHashCode();
  2206. #endregion
  2207. #endregion
  2208. if (this._IsEdit)
  2209. {
  2210. int result = PCModuleProxy.Service.SaveProcedureInfo(this._procedureEntity);
  2211. if (result > Constant.INT_IS_ZERO)
  2212. {
  2213. MessageBox.Show(string.Format(Messages.MSG_CMN_I001, this.txtProcedureName.Text.Trim(), Constant.OPERATE_SAVE),
  2214. this.Text, MessageBoxButtons.OK, MessageBoxIcon.Information);
  2215. this.DialogResult = DialogResult.OK;
  2216. }
  2217. else if (result == Constant.RETURN_IS_DATACHANGED)
  2218. {
  2219. MessageBox.Show(Messages.MSG_CMN_W012,
  2220. this.Text, MessageBoxButtons.OK, MessageBoxIcon.Warning);
  2221. return;
  2222. }
  2223. else
  2224. {
  2225. MessageBox.Show(string.Format(Messages.MSG_CMN_W001, this.txtProcedureName.Text.Trim(), Constant.OPERATE_SAVE),
  2226. this.Text, MessageBoxButtons.OK, MessageBoxIcon.Warning);
  2227. return;
  2228. }
  2229. }
  2230. this.Close();
  2231. }
  2232. catch (Exception ex)
  2233. {
  2234. // 对异常进行共通处理
  2235. ExceptionManager.HandleEventException(this.ToString(),
  2236. System.Reflection.MethodBase.GetCurrentMethod().Name, this.Text, ex);
  2237. }
  2238. }
  2239. /// <summary>
  2240. /// 关闭窗体
  2241. /// </summary>
  2242. /// <param name="sender"></param>
  2243. /// <param name="e"></param>
  2244. private void btnCancel_Click(object sender, EventArgs e)
  2245. {
  2246. this.Close();
  2247. }
  2248. /// <summary>
  2249. /// 输入工号
  2250. /// </summary>
  2251. /// <param name="sender"></param>
  2252. /// <param name="e"></param>
  2253. private void dgvUser_CellBeginEdit(object sender, DataGridViewCellCancelEventArgs e)
  2254. {
  2255. try
  2256. {
  2257. if (this.dgvUser.Rows.Count <= 1)
  2258. {
  2259. return;
  2260. }
  2261. DataGridViewColumn columnItem = this.dgvUser.Columns[e.ColumnIndex];
  2262. if ("UserCode".Equals(columnItem.Name))
  2263. {
  2264. _userCodeValue = this.dgvUser.Rows[e.RowIndex].Cells[columnItem.Name].Value + "";
  2265. }
  2266. }
  2267. catch (Exception ex)
  2268. {
  2269. // 对异常进行共通处理
  2270. ExceptionManager.HandleEventException(this.ToString(),
  2271. System.Reflection.MethodBase.GetCurrentMethod().Name, this.Text, ex);
  2272. }
  2273. }
  2274. /// <summary>
  2275. /// 弹出窗体
  2276. /// </summary>
  2277. /// <param name="sender"></param>
  2278. /// <param name="e"></param>
  2279. private void dgvUser_CellValueChanged(object sender, DataGridViewCellEventArgs e)
  2280. {
  2281. try
  2282. {
  2283. if (this.dgvUser.Rows.Count <= 1 || !_ShowFlag)
  2284. {
  2285. return;
  2286. }
  2287. DataGridViewRow rowItem = this.dgvUser.Rows[e.RowIndex];
  2288. DataGridViewColumn columnItem = this.dgvUser.Columns[e.ColumnIndex];
  2289. // 用编号获取产品信息
  2290. if ("UserCode".Equals(columnItem.Name))
  2291. {
  2292. _ShowFlag = false;
  2293. FormUtility.BindUserRowDataSource(this.dgvUser,
  2294. e.RowIndex, columnItem.Name, _userCodeValue);
  2295. // 设置可输入单元格的颜色
  2296. this.dgvUser.IsSetInputColumnsColor = true;
  2297. }
  2298. _ShowFlag = true;
  2299. }
  2300. catch (Exception ex)
  2301. {
  2302. _ShowFlag = true;
  2303. // 对异常进行共通处理
  2304. ExceptionManager.HandleEventException(this.ToString(),
  2305. System.Reflection.MethodBase.GetCurrentMethod().Name, this.Text, ex);
  2306. }
  2307. }
  2308. /// <summary>
  2309. /// 输入缺陷号 责任工种编号
  2310. /// </summary>
  2311. /// <param name="sender"></param>
  2312. /// <param name="e"></param>
  2313. private void dgvDefect_CellBeginEdit(object sender, DataGridViewCellCancelEventArgs e)
  2314. {
  2315. try
  2316. {
  2317. if (this.dgvDefect.Rows.Count <= 1)
  2318. {
  2319. return;
  2320. }
  2321. DataGridViewColumn columnItem = this.dgvDefect.Columns[e.ColumnIndex];
  2322. if ("DefectCode".Equals(columnItem.Name))
  2323. {
  2324. _defectCodeValue = this.dgvDefect.Rows[e.RowIndex].Cells[columnItem.Name].Value + "";
  2325. }
  2326. else if ("JobsCode".Equals(columnItem.Name))
  2327. {
  2328. _JobsCodeValue = this.dgvDefect.Rows[e.RowIndex].Cells[columnItem.Name].Value + "";
  2329. }
  2330. }
  2331. catch (Exception ex)
  2332. {
  2333. // 对异常进行共通处理
  2334. ExceptionManager.HandleEventException(this.ToString(),
  2335. System.Reflection.MethodBase.GetCurrentMethod().Name, this.Text, ex);
  2336. }
  2337. }
  2338. /// <summary>
  2339. /// 弹出窗体
  2340. /// </summary>
  2341. /// <param name="sender"></param>
  2342. /// <param name="e"></param>
  2343. private void dgvDefect_CellValueChanged(object sender, DataGridViewCellEventArgs e)
  2344. {
  2345. try
  2346. {
  2347. if (this.dgvDefect.Rows.Count <= 1 || !_ShowFlag)
  2348. {
  2349. return;
  2350. }
  2351. DataGridViewRow rowItem = this.dgvDefect.Rows[e.RowIndex];
  2352. DataGridViewColumn columnItem = this.dgvDefect.Columns[e.ColumnIndex];
  2353. if ("DefectCode".Equals(columnItem.Name))
  2354. {
  2355. _ShowFlag = false;
  2356. FormUtility.BindDefectRowRepeatDataSource(this.dgvDefect,
  2357. e.RowIndex, columnItem.Name, _defectCodeValue);
  2358. // 设置可输入单元格的颜色
  2359. this.dgvDefect.IsSetInputColumnsColor = true;
  2360. }
  2361. if ("JobsCode".Equals(columnItem.Name))
  2362. {
  2363. _ShowFlag = false;
  2364. FormUtility.BindJobsOneRowDataSource(this.dgvDefect,
  2365. e.RowIndex, columnItem.Name, _JobsCodeValue);
  2366. // 设置可输入单元格的颜色
  2367. this.dgvDefect.IsSetInputColumnsColor = true;
  2368. }
  2369. _ShowFlag = true;
  2370. }
  2371. catch (Exception ex)
  2372. {
  2373. _ShowFlag = true;
  2374. // 对异常进行共通处理
  2375. ExceptionManager.HandleEventException(this.ToString(),
  2376. System.Reflection.MethodBase.GetCurrentMethod().Name, this.Text, ex);
  2377. }
  2378. }
  2379. /// <summary>
  2380. /// 窑炉编码
  2381. /// </summary>
  2382. /// <param name="sender"></param>
  2383. /// <param name="e"></param>
  2384. private void dgvKiln_CellBeginEdit(object sender, DataGridViewCellCancelEventArgs e)
  2385. {
  2386. try
  2387. {
  2388. if (this.dgvKiln.Rows.Count <= 1)
  2389. {
  2390. return;
  2391. }
  2392. DataGridViewColumn columnItem = this.dgvKiln.Columns[e.ColumnIndex];
  2393. if ("kilnCode".Equals(columnItem.Name))
  2394. {
  2395. _kilnCodeValue = this.dgvKiln.Rows[e.RowIndex].Cells[columnItem.Name].Value + "";
  2396. }
  2397. }
  2398. catch (Exception ex)
  2399. {
  2400. // 对异常进行共通处理
  2401. ExceptionManager.HandleEventException(this.ToString(),
  2402. System.Reflection.MethodBase.GetCurrentMethod().Name, this.Text, ex);
  2403. }
  2404. }
  2405. /// <summary>
  2406. /// 窑炉单元格改变事件
  2407. /// </summary>
  2408. /// <param name="sender"></param>
  2409. /// <param name="e"></param>
  2410. private void dgvKiln_CellValueChanged(object sender, DataGridViewCellEventArgs e)
  2411. {
  2412. try
  2413. {
  2414. if (this.dgvKiln.Rows.Count <= 1 || !_ShowFlag)
  2415. {
  2416. return;
  2417. }
  2418. DataGridViewRow rowItem = this.dgvKiln.Rows[e.RowIndex];
  2419. DataGridViewColumn columnItem = this.dgvKiln.Columns[e.ColumnIndex];
  2420. //
  2421. if ("kilnCode".Equals(columnItem.Name))
  2422. {
  2423. _ShowFlag = false;
  2424. FormUtility.BindKilnRowDataSource(this.dgvKiln,
  2425. e.RowIndex, columnItem.Name, _kilnCodeValue);
  2426. // 设置可输入单元格的颜色
  2427. this.dgvKiln.IsSetInputColumnsColor = true;
  2428. }
  2429. _ShowFlag = true;
  2430. }
  2431. catch (Exception ex)
  2432. {
  2433. _ShowFlag = true;
  2434. // 对异常进行共通处理
  2435. ExceptionManager.HandleEventException(this.ToString(),
  2436. System.Reflection.MethodBase.GetCurrentMethod().Name, this.Text, ex);
  2437. }
  2438. }
  2439. private void ddlProcessModelType_SelectedIndexChanged(object sender, EventArgs e)
  2440. {
  2441. if (this.ddlProcessModelType.SelectedValue.ToString() == "0")
  2442. {
  2443. groupBox4.Enabled = true;
  2444. }
  2445. else
  2446. {
  2447. groupBox4.Enabled = false;
  2448. radioJobsPrice.Checked = true;
  2449. }
  2450. }
  2451. /// <summary>
  2452. /// 返工工序复选框改变
  2453. /// </summary>
  2454. /// <param name="sender"></param>
  2455. /// <param name="e"></param>
  2456. private void rbtnSpecialReworkProcess_CheckedChanged(object sender, EventArgs e)
  2457. {
  2458. //xuwei fix 2019-10-14 单选框改为复选框 合并判断
  2459. if(rbtnSpecialReworkProcess.Checked)
  2460. {
  2461. this.rBtnNeed.Enabled = false;
  2462. this.rBtnNoNeed.Enabled = false;
  2463. this.rBtnNeed.Checked = true;
  2464. }
  2465. else
  2466. {
  2467. this.rBtnNeed.Enabled = true;
  2468. this.rBtnNoNeed.Enabled = true;
  2469. }
  2470. }
  2471. //xuwei add 2019-10-14
  2472. /// <summary>
  2473. /// 半检返修复选框改变
  2474. /// </summary>
  2475. /// <param name="sender"></param>
  2476. /// <param name="e"></param>
  2477. private void rbtnSpecialSemireProcess_CheckedChanged(object sender, EventArgs e)
  2478. {
  2479. }
  2480. //xuwei end
  2481. #endregion
  2482. //xuwei add 2019-11-20
  2483. private void ddlPrintType_SelectedIndexChanged(object sender, EventArgs e)
  2484. {
  2485. if (ddlPrintType.SelectedIndex > 0 && txtBarCodePrintCopies.Text == "0")
  2486. txtBarCodePrintCopies.Text = "1";
  2487. }
  2488. }
  2489. }