F_PC_0207.cs 136 KB

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