F_PC_0207.cs 136 KB

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