F_PC_0207.cs 129 KB

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