F_PC_0207.cs 136 KB

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