F_PC_0207.cs 127 KB

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