F_PC_0207.cs 136 KB

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