F_PC_0207.cs 132 KB

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