F_PC_0207.cs 128 KB

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