F_PC_0207.cs 132 KB

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