F_SYS_0202.cs 52 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630
  1. /*******************************************************************************
  2. * Copyright(c) 2014 DongkeSoft All rights reserved. / Confidential
  3. * 类的信息:
  4. * 1.程序名称:F_SYS_0202.cs
  5. * 2.功能描述:系统导航栏页面
  6. * 编辑履历:
  7. * 作者 日期 版本 修改内容
  8. * 张国印 2014/08/27 1.00 新建
  9. *******************************************************************************/
  10. using System;
  11. using System.Collections.Generic;
  12. using System.Data;
  13. using System.Linq;
  14. using System.Reflection;
  15. using System.Windows.Forms;
  16. using Dongke.IBOSS.PRD.Basics.BaseControls;
  17. using Dongke.IBOSS.PRD.Basics.BaseResources;
  18. using Dongke.IBOSS.PRD.Basics.DockPanel;
  19. using Dongke.IBOSS.PRD.Basics.Library;
  20. using Dongke.IBOSS.PRD.Client.CommonModule;
  21. using Dongke.IBOSS.PRD.Client.Controls;
  22. using Dongke.IBOSS.PRD.Client.DataModels;
  23. using Dongke.IBOSS.PRD.Client.HRModule;
  24. using Dongke.IBOSS.PRD.Client.PAMModule;
  25. using Dongke.IBOSS.PRD.Client.PCModule;
  26. using Dongke.IBOSS.PRD.Client.PMModule;
  27. //using Dongke.IBOSS.PRD.Client.PPModule;
  28. using Dongke.IBOSS.PRD.Client.ReportModule;
  29. using Dongke.IBOSS.PRD.Client.ReportModule.R04.M01;
  30. using Dongke.IBOSS.PRD.Client.SAPDataModule;
  31. using Dongke.IBOSS.PRD.Client.SAPDataModule.Hegii;
  32. using Dongke.IBOSS.PRD.Client.SystemModule;
  33. using Dongke.IBOSS.PRD.Client.TATModule;
  34. using Dongke.IBOSS.PRD.WCF.DataModels;
  35. using Dongke.IBOSS.PRD.WCF.Proxys;
  36. namespace Dongke.IBOSS.PRD.Client
  37. {
  38. /// <summary>
  39. /// 系统导航栏页面
  40. /// </summary>
  41. public partial class F_SYS_0202 : DockPanelBase
  42. {
  43. #region 成员变量
  44. // 主窗体的DockPanel
  45. private readonly DockPanel _dockPanel = new DockPanel();
  46. #endregion
  47. #region 构造函数
  48. /// <summary>
  49. /// 构造函数
  50. /// </summary>
  51. /// <param name="dockpanel">主窗体的DockPanel控件</param>
  52. public F_SYS_0202(DockPanel dockpanel)
  53. {
  54. InitializeComponent();
  55. this.SetFromTitleInfo();
  56. this._dockPanel = dockpanel;
  57. this.TabPageContextMenuStrip = null;
  58. }
  59. #endregion
  60. #region 事件处理
  61. /// <summary>
  62. /// 页面加载事件
  63. /// </summary>
  64. /// <param name="sender"></param>
  65. /// <param name="e"></param>
  66. private void F_SYS_0202_Load(object sender, EventArgs e)
  67. {
  68. // 获取导航栏用户菜单
  69. DataTable dtTemp = LogInUserInfo.CurrentUser.CurrentUserEntity.UserNavigationData;
  70. // 返回第一级用户菜单,用于生成对应Button
  71. //var dicTemp = InitNavigationButtons(dtTemp);
  72. // 设置导航栏一级菜单 原来带Button 的菜单 一级菜单多了容易兑死
  73. //this.tvwNavigation.SetMenuDictionart(dicTemp);
  74. // 纯树形菜单
  75. this.InitNavigationTreeView(dtTemp);
  76. }
  77. /// <summary>
  78. /// 刷新树
  79. /// </summary>
  80. public void RefreshViewTree()
  81. {
  82. LogInUserInfo.CurrentUser.SysParameter.Clear();
  83. LogInUserInfo.CurrentUser.SysParameter.AcceptChanges();
  84. LoginRequestEntity requestEntity = new LoginRequestEntity();
  85. requestEntity.AccountCode = LogInUserInfo.CurrentUser.CurrentUserEntity.AccountCode;
  86. requestEntity.UserCode = LogInUserInfo.CurrentUser.CurrentUserEntity.UserCode;
  87. requestEntity.Password = LogInUserInfo.CurrentUser.CurrentUserEntity.Password;
  88. requestEntity.IPAddress = SystemAPI.IPAddress;
  89. requestEntity.MACAddress = SystemAPI.MacAddress;
  90. requestEntity.ComputerName = SystemAPI.ComputerName;
  91. LoginResultEntity result = (LoginResultEntity)DoAsync(new AsyncMethod(() =>
  92. {
  93. return DKIBOSSPRDProxy.Service.DoLoginRefresh(requestEntity);
  94. }));
  95. Dongke.IBOSS.PRD.Client.DataModels.UserEntity userEntity =
  96. new Dongke.IBOSS.PRD.Client.DataModels.UserEntity();
  97. DataConvert.Convert(result.CurrentUserEntity, userEntity);
  98. LogInUserInfo tempUser = new LogInUserInfo(userEntity, result.LicenseInfo,
  99. result.SysParameter);
  100. }
  101. /// <summary>
  102. /// 根据传入的ID生成对应的导航树
  103. /// </summary>
  104. /// <param name="appID">用户选择的菜单编号</param>
  105. /// <returns></returns>
  106. private TreeNode dkButtonTreeView1_GetTreeViewNodes(string appID)
  107. {
  108. DataTable sysList = LogInUserInfo.CurrentUser.CurrentUserEntity.UserNavigationData.Copy();
  109. // 递归生成功能权限树
  110. DataRow nodeRoot = sysList.Select("FunctionCode = '" + appID + "'").FirstOrDefault();
  111. if (nodeRoot != null)
  112. {
  113. TreeNode node = new TreeNode();
  114. node.Text = nodeRoot["FunctionName"].ToString();
  115. node.Name = nodeRoot["FunctionCode"].ToString();
  116. if (Constant.FunctionFlag.Form.GetHashCode().ToString().Equals(nodeRoot["FunctionFlag"].ToString().Trim()))
  117. {
  118. node.ImageIndex = Constant.INT_IS_ONE;
  119. node.SelectedImageIndex = Constant.INT_IS_ONE;
  120. }
  121. DataRow[] navigationRows = sysList.Select("FunctionCode LIKE '" + appID
  122. + "%' AND " + "LEN(FunctionCode) = " + Constant.INT_IS_FOUR.ToString());
  123. this.InitTreeView(sysList, navigationRows, node);
  124. return node;
  125. }
  126. else
  127. {
  128. return null;
  129. }
  130. }
  131. /// <summary>
  132. /// 层叠树的节点时触发
  133. /// </summary>
  134. /// <param name="sender"></param>
  135. /// <param name="e"></param>
  136. private void trvMenu_AfterCollapse(object sender, TreeViewEventArgs e)
  137. {
  138. e.Node.SelectedImageIndex = Constant.INT_IS_ZERO;
  139. e.Node.ImageIndex = Constant.INT_IS_ZERO;
  140. }
  141. /// <summary>
  142. /// 展开树的节点时触发
  143. /// </summary>
  144. /// <param name="sender"></param>
  145. /// <param name="e"></param>
  146. private void trvMenu_AfterExpand(object sender, TreeViewEventArgs e)
  147. {
  148. e.Node.SelectedImageIndex = Constant.INT_IS_TWO;
  149. e.Node.ImageIndex = Constant.INT_IS_TWO;
  150. }
  151. /// <summary>
  152. /// 用户双击导航树时触发
  153. /// </summary>
  154. /// <param name="sender"></param>
  155. /// <param name="e"></param>
  156. private void trvMenu_DoubleClick(object sender, EventArgs e)
  157. {
  158. try
  159. {
  160. if (sender != null)
  161. {
  162. if (sender is TreeView)
  163. {
  164. if (((TreeView)sender).SelectedNode != null)
  165. {
  166. //xuwei add 2020-01-03 如果定义了url 跳转到url 用于转到webmes
  167. if(((TreeView)sender).SelectedNode.Tag is object)
  168. {
  169. string tag = ((TreeView)sender).SelectedNode.Tag.ToString();
  170. string title = ((TreeView)sender).SelectedNode.Text.ToString();
  171. if (tag!="" & tag!=",,,")
  172. {
  173. //静态配置
  174. //string goUrl = "http://192.168.0.237:9000/mes/mesgo.ashx";
  175. //xuwei modify 2023-03-25 改善模型,增加跳转包装线===============
  176. string functionCode = ((TreeView)sender).SelectedNode.Name;
  177. string goPort = "9000";
  178. if(functionCode.Length >=3)
  179. if (functionCode.Substring(0, 3) == "WEB") goPort = "9000";
  180. if (functionCode.Length >= 3)
  181. if (functionCode.Substring(0, 3) == "SOP" || functionCode.Substring(0, 3) == "CHK") goPort = "9100";
  182. if (functionCode.Length >= 2)
  183. if (functionCode.Substring(0, 2) == "TV") goPort = "9200";
  184. if (functionCode.Length >= 4)
  185. if (functionCode.Substring(0, 4) == "PACK") goPort = "9300";
  186. //从配置文件读取
  187. string goUrl = "http://" + Utility.ReadIniFile(Constant.INI_SECTION_NET, Constant.INI_KEY_IP, AppDomain.CurrentDomain.BaseDirectory + Constant.INI_FILE_NAME) + ":" + goPort + "/mes/mesgo.ashx";
  188. //xuwei end=======================================================
  189. string[] tagArray = tag.Split(',');
  190. if (tagArray.Length == 1 && tagArray[0].ToString() != "")
  191. System.Diagnostics.Process.Start(goUrl + "?go=" + tagArray[0] + "&title=" + title + "&sessionkey=" + LogInUserInfo.CurrentUser.SessionKey);
  192. if (tagArray.Length == 4 && tagArray[3].ToString() != "")
  193. System.Diagnostics.Process.Start(goUrl + "?go=" + tagArray[3] + "&title=" + title + "&sessionkey=" + LogInUserInfo.CurrentUser.SessionKey);
  194. }
  195. }
  196. //xuwei end
  197. switch (((TreeView)sender).SelectedNode.Name.ToString())
  198. {
  199. #region 01-系统管理
  200. case "01":
  201. //系统管理
  202. break;
  203. #region 系统管理-帐套信息
  204. case "0101":
  205. //系统管理-帐套信息
  206. break;
  207. case "010101":
  208. //系统管理-帐套信息-帐套管理
  209. F_MST_0001 frmAccount = new F_MST_0001();
  210. frmAccount.ShowDialog();
  211. break;
  212. #endregion
  213. #region 系统管理-用户及组织
  214. case "0102":
  215. //系统管理-用户及组织
  216. break;
  217. case "010201":
  218. //系统管理-用户及组织-组织机构
  219. this.ShowInDockPanel(F_MST_0101.Instance);
  220. break;
  221. case "010202":
  222. //系统管理-用户及组织-用户管理
  223. this.ShowInDockPanel(F_MST_0201.Instance);
  224. break;
  225. case "010203":
  226. case "010403":
  227. //系统管理-用户及组织-关联员工
  228. this.ShowInDockPanel(F_MST_0210.Instance);
  229. break;
  230. case "010204":
  231. //系统管理-用户及组织-功能权限
  232. F_MST_0206 frm0206 = new F_MST_0206();
  233. frm0206.ShowDialog();
  234. break;
  235. case "010205":
  236. //系统管理-用户及组织-范围权限
  237. F_MST_0207 frm0207 = new F_MST_0207();
  238. frm0207.ShowDialog();
  239. break;
  240. #endregion
  241. #region 系统管理-产品信息
  242. case "0103":
  243. //系统管理-产品信息
  244. break;
  245. case "010301":
  246. //系统管理-产品信息-产品类别
  247. F_MST_0405 mst0405 = new F_MST_0405();
  248. mst0405.ShowDialog();
  249. break;
  250. case "010302":
  251. //系统管理-产品信息-釉料类别
  252. break;
  253. case "010303":
  254. //系统管理-产品信息-产品档案
  255. this.ShowInDockPanel(F_MST_0501.Instance);
  256. break;
  257. case "010304":
  258. //系统管理-产品信息-产品缺陷
  259. this.ShowDialogForm(F_MST_0407.Instance);
  260. break;
  261. case "010305":
  262. //系统管理-产品信息-缺陷位置
  263. this.ShowDialogForm(F_MST_0409.Instance);
  264. break;
  265. case "010306":
  266. //系统管理-产品信息-产品分级
  267. this.ShowDialogForm(F_MST_0408.Instance);
  268. break;
  269. case "010307":
  270. //系统管理-产品信息-缺陷类别
  271. F_MST_0411 mst0411 = new F_MST_0411();
  272. mst0411.ShowDialog();
  273. break;
  274. case "010308":
  275. //系统管理-产品信息-半成品缺陷
  276. F_MST_1001 mst1001 = new F_MST_1001();
  277. mst1001.ShowDialog();
  278. break;
  279. case "010309":
  280. //系统管理-产品信息-半成品缺陷位置
  281. F_MST_1002 mst1002 = new F_MST_1002();
  282. mst1002.ShowDialog();
  283. break;
  284. case "010310":
  285. //系统管理-产品信息-产品线性图
  286. this.ShowInDockPanel(F_MST_GoodsImage.Instance);
  287. break;
  288. #endregion
  289. #region 系统管理-HR基础数据
  290. case "0104":
  291. //系统管理-HR基础数据
  292. break;
  293. case "010401":
  294. //系统管理-HR基础数据-工种
  295. this.ShowDialogForm(F_MST_0403.Instance);
  296. break;
  297. case "010402":
  298. //系统管理-HR基础数据-职务
  299. this.ShowDialogForm(F_MST_0404.Instance);
  300. break;
  301. #endregion
  302. #region 系统管理-生产基础数据
  303. case "0105":
  304. //系统管理-生产基础数据
  305. break;
  306. case "010501":
  307. //系统管理-生产基础数据-窑炉
  308. this.ShowDialogForm(F_MST_0301.Instance);
  309. break;
  310. case "010502":
  311. //系统管理-生产基础数据-窑车
  312. this.ShowDialogForm(F_MST_0302.Instance);
  313. break;
  314. case "010503":
  315. //系统管理-生产基础数据-成型线类型
  316. this.ShowDialogForm(F_MST_0410.Instance);
  317. break;
  318. case "010504":
  319. //系统管理-生产基础数据-温湿度管理
  320. this.ShowInDockPanel(F_MST_0601.Instance);
  321. break;
  322. case "010510":
  323. //系统管理-生产基础数据-成型破损原因
  324. this.ShowDialogForm(F_PM_0906.Instance);
  325. break;
  326. case "010511":
  327. //系统管理-生产基础数据-仓库管理
  328. this.ShowDialogForm(F_MST_1203.Instance);
  329. break;
  330. case "010512":
  331. //系统管理-生产基础数据-车牌号
  332. this.ShowDialogForm(F_MST_1204.Instance);
  333. break;
  334. #endregion
  335. #region 系统管理-系统字典
  336. case "0106":
  337. //系统管理-系统字典
  338. this.ShowDialogForm(F_MST_0402.Instance);
  339. break;
  340. #endregion
  341. #region 系统管理-系统设置
  342. case "0107":
  343. //系统管理-系统设置
  344. break;
  345. case "010701":
  346. //系统管理-系统设置-系统参数
  347. this.ShowDialogForm(F_MST_0401.Instance);
  348. break;
  349. case "010702":
  350. //系统管理-系统设置-票据设置
  351. break;
  352. #endregion
  353. #region 系统管理-报表工序
  354. case "0108":
  355. //系统管理-报表工序
  356. this.ShowInDockPanel(F_MST_0701.Instance);
  357. break;
  358. #endregion
  359. #region 系统管理-工艺管理
  360. case "0109":
  361. //系统管理-工艺部门
  362. this.ShowDialogForm(F_MST_1101.Instance);
  363. break;
  364. case "0110":
  365. //系统管理-工艺配置
  366. this.ShowInDockPanel(F_MST_1102.Instance);
  367. break;
  368. case "0111":
  369. //系统管理-条码打印模板
  370. this.ShowInDockPanel(F_MST_012001.Instance);
  371. break;
  372. case "0115":
  373. //系统管理-模具标签模板
  374. this.ShowInDockPanel(F_MST_013001.Instance);
  375. break;
  376. case "0112":
  377. //系统管理-工号分组
  378. this.ShowInDockPanel(F_MST_1201.Instance);
  379. break;
  380. case "0113":
  381. //系统管理-条码打印机
  382. this.ShowDialogForm(F_MST_0412.Instance);
  383. break;
  384. case "0114":
  385. //系统管理-PLC连接参数
  386. this.ShowDialogForm(F_MST_0413.Instance);
  387. break;
  388. #endregion
  389. case "010505":
  390. //系统管理-商标管理
  391. F_MST_0801 mst0801 = new F_MST_0801();
  392. mst0801.ShowDialog();
  393. break;
  394. case "010506":
  395. //系统管理-缺陷扣罚管理
  396. F_MST_0901 mst0901 = new F_MST_0901();
  397. mst0901.ShowDialog();
  398. break;
  399. case "010507":
  400. //系统管理-缺陷扣除数管理
  401. F_MST_0902 mst0902 = new F_MST_0902();
  402. mst0902.ShowDialog();
  403. break;
  404. case "010508":
  405. //系统管理-缺陷关系设置
  406. F_MST_0903 mst0903 = new F_MST_0903();
  407. mst0903.ShowDialog();
  408. break;
  409. case "010509":
  410. //系统管理-模具材料供应商
  411. F_MST_0414 mst0414 = new F_MST_0414();
  412. mst0414.ShowDialog();
  413. break;
  414. #endregion
  415. #region 02-策略管理
  416. case "02":
  417. //策略管理
  418. break;
  419. #region 策略管理-工资考核策略
  420. case "0201":
  421. //策略管理-工资考核策略
  422. break;
  423. case "020101":
  424. //策略管理-工资考核策略-基本工资策略
  425. this.ShowInDockPanel(F_TAT_0301.Instance);
  426. break;
  427. case "020102":
  428. //策略管理-工资考核策略-管理岗位工资策略
  429. this.ShowInDockPanel(F_TAT_0701.Instance);
  430. break;
  431. case "020103":
  432. //策略管理-工资考核策略-工价策略
  433. this.ShowInDockPanel(F_TAT_0201.Instance);
  434. break;
  435. case "020104":
  436. //策略管理-工资考核策略-出勤考核
  437. this.ShowInDockPanel(F_TAT_0801.Instance);
  438. break;
  439. case "020105":
  440. //策略管理-工资考核策略-质量考核
  441. this.ShowInDockPanel(F_TAT_0401.Instance);
  442. break;
  443. case "020106":
  444. //策略管理-工资考核策略-进度考核
  445. this.ShowInDockPanel(F_TAT_0501.Instance);
  446. break;
  447. case "020107":
  448. //策略管理-工资考核策略-缺陷扣罚策略
  449. this.ShowInDockPanel(F_TAT_0101.Instance);
  450. break;
  451. case "020108":
  452. //策略管理-工资考核策略-缺陷扣罚策略
  453. this.ShowInDockPanel(F_TAT_0601.Instance);
  454. break;
  455. #endregion
  456. #region 策略管理-工资管理策略
  457. case "020201":
  458. //策略管理-工资管理策略-工资方案参数设定
  459. this.ShowInDockPanel(F_PAM_0101.Instance);
  460. break;
  461. case "020202":
  462. //策略管理-工资管理策略-工种工资方案
  463. this.ShowInDockPanel(F_PAM_0102.Instance);
  464. break;
  465. case "020203":
  466. //策略管理-工资管理策略-工价分类
  467. this.ShowDialogForm(F_PAM_0202.Instance);
  468. break;
  469. case "020204":
  470. //策略管理-工资管理策略-产品工价分类
  471. this.ShowInDockPanel(F_PAM_0201.Instance);
  472. //this.ShowInDockPanel(F_PAM_0601.Instance);
  473. break;
  474. case "020205":
  475. //策略管理-工资管理策略-计件工资策略
  476. this.ShowInDockPanel(F_PAM_0301.Instance);
  477. break;
  478. case "020206":
  479. //策略管理-工资管理策略-品质考核策略
  480. this.ShowInDockPanel(F_PAM_0401.Instance);
  481. break;
  482. case "020207":
  483. //策略管理-工资管理策略-工资结算
  484. this.ShowInDockPanel(F_PAM_0601.Instance);
  485. break;
  486. #endregion
  487. #endregion
  488. #region 03-人力资源
  489. case "03":
  490. //人力资源
  491. break;
  492. #region 人力资源-员工管理
  493. case "0301":
  494. //人力资源-员工管理
  495. break;
  496. case "030101":
  497. //人力资源-员工管理-员工档案
  498. this.ShowInDockPanel(F_HR_0101.Instance);
  499. break;
  500. case "030102":
  501. //人力资源-员工管理-员工入职
  502. this.ShowInDockPanel(F_HR_0201.Instance);
  503. break;
  504. case "030103":
  505. //人力资源-员工管理-员工转正
  506. this.ShowInDockPanel(F_HR_0301.Instance);
  507. break;
  508. case "030104":
  509. //人力资源-员工管理-员工离职
  510. this.ShowInDockPanel(F_HR_0401.Instance);
  511. break;
  512. case "030105":
  513. //人力资源-员工管理-工种调整
  514. this.ShowInDockPanel(F_HR_0501.Instance);
  515. break;
  516. case "030106":
  517. //人力资源-员工管理-职务调整
  518. this.ShowInDockPanel(F_HR_0601.Instance);
  519. break;
  520. case "030107":
  521. //人力资源-员工管理-部门调整
  522. this.ShowInDockPanel(F_HR_0701.Instance);
  523. break;
  524. #endregion
  525. #region 人力资源-人事审批
  526. case "0302":
  527. //人力资源-人事审批
  528. break;
  529. case "030201":
  530. //人力资源-人事审批-员工入职
  531. this.ShowInDockPanel(F_HR_0203.Instance);
  532. break;
  533. case "030202":
  534. //人力资源-人事审批-员工转正
  535. this.ShowInDockPanel(F_HR_0303.Instance);
  536. break;
  537. case "030203":
  538. //人力资源-人事审批-员工离职
  539. this.ShowInDockPanel(F_HR_0403.Instance);
  540. break;
  541. case "030204":
  542. //人力资源-人事审批-工种调整
  543. this.ShowInDockPanel(F_HR_0503.Instance);
  544. break;
  545. case "030205":
  546. //人力资源-人事审批-职务调整
  547. this.ShowInDockPanel(F_HR_0603.Instance);
  548. break;
  549. case "030206":
  550. //人力资源-人事审批-部门调整
  551. this.ShowInDockPanel(F_HR_0703.Instance);
  552. break;
  553. #endregion
  554. #region 人力资源-行政管理
  555. case "0303":
  556. //人力资源-行政管理
  557. break;
  558. case "030301":
  559. //人力资源-行政管理-员工报餐
  560. this.ShowInDockPanel(F_HR_0901.Instance);
  561. break;
  562. case "030302":
  563. //人力资源-行政管理-员工考勤
  564. this.ShowInDockPanel(F_HR_1001.Instance);
  565. break;
  566. case "030303":
  567. //人力资源-行政管理-行政考核
  568. this.ShowInDockPanel(F_PAM_0501.Instance);
  569. break;
  570. case "030304":
  571. //人力资源-行政管理-行政考核审核
  572. this.ShowInDockPanel(F_PAM_0503.Instance);
  573. break;
  574. #endregion
  575. #region 人力资源-奖惩管理
  576. case "0304":
  577. //人力资源-奖惩管理
  578. break;
  579. case "030401":
  580. //人力资源-奖惩管理-进度奖惩
  581. this.ShowInDockPanel(F_PM_1104.Instance);
  582. break;
  583. case "030402":
  584. //人力资源-奖惩管理-行政奖惩
  585. this.ShowInDockPanel(F_HR_1101.Instance);
  586. break;
  587. case "030403":
  588. //人力资源-奖惩管理-行政奖惩审批
  589. this.ShowInDockPanel(F_HR_1103.Instance);
  590. break;
  591. case "030404":
  592. //人力资源-奖惩管理-进度奖惩审批
  593. this.ShowInDockPanel(F_PM_1106.Instance);
  594. break;
  595. #endregion
  596. #region 人力资源-工资管理
  597. case "0305":
  598. //人力资源-工资管理
  599. break;
  600. case "030501":
  601. //人力资源-工资管理-工资结算
  602. this.ShowInDockPanel(F_HR_1201.Instance);
  603. break;
  604. case "030502":
  605. //人力资源-工资管理-工资审批
  606. break;
  607. case "030503":
  608. //人力资源-工资管理-工资结算
  609. this.ShowInDockPanel(F_PAM_0601.Instance);
  610. break;
  611. case "030504":
  612. //人力资源-工资管理-工资调整
  613. this.ShowInDockPanel(F_PAM_0603.Instance);
  614. break;
  615. case "030505":
  616. //人力资源-工资管理-工资审批
  617. this.ShowInDockPanel(F_PAM_0604.Instance);
  618. break;
  619. #endregion
  620. #endregion
  621. #region 04-生产配置
  622. case "04":
  623. //生产配置
  624. break;
  625. #region 生产配置-成型线管理
  626. case "0401":
  627. //生产配置-成型线管理
  628. //this.ShowInDockPanel(F_PC_0104.Instance);
  629. this.ShowInDockPanel(F_PC_0104_1.Instance);
  630. //生产配置-生产模具管理
  631. break;
  632. case "0402":
  633. //生产配置-生产模具管理
  634. //this.ShowInDockPanel(F_PC_0101.Instance);
  635. this.ShowInDockPanel(F_PC_0101_1_1.Instance);
  636. break;
  637. case "0403":
  638. //生产配置-生产线配置
  639. //this.ShowInDockPanel(F_PC_0201.Instance);
  640. this.ShowInDockPanel(F_PC_0205.Instance);
  641. break;
  642. case "0404":
  643. //生产配置-班次配置
  644. this.ShowInDockPanel(F_PC_0401.Instance);
  645. break;
  646. case "0405":
  647. //生产配置-员工关联
  648. this.ShowInDockPanel(F_PC_0601.Instance);
  649. break;
  650. case "0406":
  651. //生产配置-装配工序组件配置
  652. this.ShowInDockPanel(F_PC_0701.Instance);
  653. break;
  654. case "0407":
  655. //生产配置-线边仓组件配置
  656. this.ShowInDockPanel(F_PC_0801.Instance);
  657. break;
  658. case "0408":
  659. //生产配置-作业指导书工序配置
  660. this.ShowInDockPanel(F_PC_1301.Instance);
  661. break;
  662. #endregion
  663. #endregion
  664. #region M04-模具管理
  665. case "M0401":
  666. // 模具管理-模具档案
  667. this.ShowInDockPanel(F_PC_1001.Instance);
  668. break;
  669. case "M0402":
  670. // 模具管理-模具盘点
  671. this.ShowInDockPanel(F_PC_1101.Instance);
  672. break;
  673. case "M0403":
  674. // 模具管理-模具库存结转
  675. this.ShowInDockPanel(F_PC_1201.Instance);
  676. break;
  677. #endregion
  678. #region 06-生产管理
  679. case "06":
  680. //生产管理
  681. break;
  682. #endregion
  683. #region 07-综合报表
  684. #region 明细表
  685. case "070401":
  686. //注浆明细表
  687. this.ShowInDockPanel(F_RPT_010101_1.Instance);
  688. break;
  689. case "070402":
  690. //半检明细表
  691. this.ShowInDockPanel(F_RPT_010102_1.Instance); //
  692. break;
  693. case "070403":
  694. //漏扫数据统计
  695. this.ShowInDockPanel(F_RPT_010201_1.Instance);
  696. break;
  697. case "070404":
  698. //条码变更
  699. this.ShowInDockPanel(F_RPT_010301_1.Instance);
  700. break;
  701. case "070407":
  702. //交坯明细
  703. this.ShowInDockPanel(F_RPT_010103.Instance);
  704. break;
  705. case "070408":
  706. //注浆次数明细
  707. this.ShowInDockPanel(F_RPT_010104.Instance);
  708. break;
  709. case "070415":
  710. //成型线模具使用明细表
  711. this.ShowInDockPanel(F_RPT_010105.Instance);
  712. break;
  713. case "070416":
  714. //成型线剩余注浆次数
  715. this.ShowInDockPanel(F_RPT_010106.Instance);
  716. break;
  717. case "070409":
  718. //历史模具明细表
  719. this.ShowInDockPanel(F_RPT_080101.Instance);
  720. break;
  721. case "070410":
  722. //工序产量明细表
  723. this.ShowInDockPanel(F_RPT_080105.Instance);
  724. break;
  725. case "070411":
  726. //成型线明细表
  727. this.ShowInDockPanel(F_PC_0108.Instance);
  728. break;
  729. case "070413":
  730. //生产数据明细表
  731. this.ShowInDockPanel(F_RPT_010403.Instance);
  732. break;
  733. case "070414":
  734. //半检登记明细表
  735. this.ShowInDockPanel(F_RPT_080107.Instance);
  736. break;
  737. case "070701":
  738. //
  739. this.ShowInDockPanel(F_RPT_080102.Instance);
  740. break;
  741. case "070702":
  742. //
  743. this.ShowInDockPanel(F_RPT_080103.Instance);
  744. break;
  745. case "070703":
  746. //
  747. this.ShowInDockPanel(F_RPT_080104.Instance);
  748. break;
  749. case "070412":// 温湿计明细表
  750. //
  751. this.ShowInDockPanel(F_RPT_080106.Instance);
  752. break;
  753. case "070417":// 商标变更明细表
  754. //
  755. this.ShowInDockPanel(F_RPT_010302.Instance);
  756. break;
  757. case "070418":
  758. // 产品损坯明细表
  759. this.ShowInDockPanel(F_RPT_010202.Instance);
  760. break;
  761. case "070419":
  762. // 在产品备份表
  763. this.ShowInDockPanel(F_RPT_010404.Instance);
  764. break;
  765. case "070420":
  766. // 产成品单值明细表
  767. this.ShowInDockPanel(F_RPT_010405.Instance);
  768. break;
  769. //xuwei begin add 2019-10-14
  770. case "070421":
  771. //半检返修登记明细表
  772. this.ShowInDockPanel(F_RPT_080108.Instance);
  773. break;
  774. //xuwei end
  775. // qinqi 20221209 产品装配明细表
  776. case "070424":
  777. //产品装配明细表
  778. this.ShowInDockPanel(F_RPT_080110.Instance);
  779. break;
  780. // qinqi 20230602 品管数据记录明细表
  781. case "070425":
  782. //品管数据记录明细表
  783. this.ShowInDockPanel(F_RPT_080112.Instance);
  784. break;
  785. // qinqi 20240104 BOM物料检验明细表
  786. case "070426":
  787. //BOM物料检验明细表
  788. this.ShowInDockPanel(F_RPT_080113.Instance);
  789. break;
  790. // qinqi 20240104 QC检验数据明细表
  791. case "070427":
  792. //QC检验数据明细表
  793. this.ShowInDockPanel(F_RPT_080114.Instance);
  794. break;
  795. // qinqi 20240104 QC检验计划完成明细表
  796. case "070428":
  797. //QC检验计划完成明细表
  798. this.ShowInDockPanel(F_RPT_080115.Instance);
  799. break;
  800. // qinqi 20240104 QC检验分析汇总表
  801. case "070429":
  802. //QC检验分析汇总表
  803. this.ShowInDockPanel(F_RPT_080116.Instance);
  804. break;
  805. // LSY 20240617 QC检验计划分析明细表
  806. case "070430":
  807. //QC检验分析汇总表
  808. this.ShowInDockPanel(F_RPT_080117.Instance);
  809. break;
  810. // QQ 20250610 裸瓷非工序撤销明细表
  811. case "070431":
  812. this.ShowInDockPanel(F_RPT_080118.Instance);
  813. break;
  814. #endregion
  815. #region 跟踪表
  816. case "070301":
  817. //产品统计-产品跟踪表
  818. this.ShowInDockPanel(F_RPT_020101_1.Instance);
  819. break;
  820. case "070302":
  821. //产品统计-窑车状态表
  822. this.ShowInDockPanel(F_RPT_020104.Instance);
  823. break;
  824. case "070303":
  825. // 模具跟踪表
  826. this.ShowInDockPanel(F_RPT_020105.Instance);
  827. break;
  828. #endregion
  829. #region 汇总表
  830. case "070601":
  831. //产品损坏汇总表
  832. this.ShowInDockPanel(F_RPT_030102_1.Instance);
  833. break;
  834. case "070602":
  835. //产品产量汇总表
  836. this.ShowInDockPanel(F_RPT_030101_1.Instance);
  837. break;
  838. case "070603":
  839. //出窑数量汇总表
  840. this.ShowInDockPanel(F_RPT_030103_1.Instance);
  841. break;
  842. case "070604":
  843. //窑车产量汇总表
  844. this.ShowInDockPanel(F_RPT_030104_1.Instance);
  845. break;
  846. case "070605":
  847. //生产统计-成型线变产记录
  848. this.ShowInDockPanel(F_PC_0501.Instance);
  849. break;
  850. case "070606":
  851. //在产产量汇总表
  852. this.ShowInDockPanel(F_RPT_030105.Instance);
  853. break;
  854. case "070607":
  855. //成检缺陷汇总表
  856. this.ShowInDockPanel(F_RPT_030106.Instance);
  857. break;
  858. case "070608":
  859. //工序交接数量汇总表
  860. this.ShowInDockPanel(F_RPT_030107.Instance);
  861. break;
  862. case "070609":
  863. //成型信息汇总表
  864. this.ShowInDockPanel(F_RPT_030108.Instance);
  865. break;
  866. case "070610":
  867. //撤销产品汇总表
  868. this.ShowInDockPanel(F_RPT_030109.Instance);
  869. break;
  870. case "070611":
  871. //半检信息汇总表
  872. this.ShowInDockPanel(F_RPT_030110.Instance);
  873. break;
  874. case "070612":
  875. //工序收发存汇总表
  876. this.ShowInDockPanel(F_RPT_030111.Instance);
  877. break;
  878. case "070713":
  879. //产成品交接汇总表
  880. this.ShowInDockPanel(F_RPT_030112.Instance);
  881. break;
  882. case "070714":
  883. // 模具收发存汇总表
  884. this.ShowInDockPanel(F_RPT_030113.Instance);
  885. break;
  886. case "070715":
  887. // 废弃产品汇总表
  888. this.ShowInDockPanel(F_RPT_030114.Instance);
  889. break;
  890. case "070716":
  891. // 工艺废弃产品汇总表
  892. this.ShowInDockPanel(F_RPT_030115.Instance);
  893. break;
  894. case "070717":
  895. // 成型存坯汇总表
  896. this.ShowInDockPanel(F_RPT_030116.Instance);
  897. break;
  898. case "070718":
  899. // 产成品交接撤销汇总表
  900. this.ShowInDockPanel(F_RPT_030117.Instance);
  901. break;
  902. case "070719":
  903. // 年度各工序月产量统计表
  904. this.ShowInDockPanel(F_RPT_030118.Instance);
  905. break;
  906. case "070720":
  907. // 半检返修缺陷汇总表
  908. this.ShowInDockPanel(F_RPT_030119.Instance);
  909. break;
  910. case "070721":
  911. // 跨车间作业量汇总表
  912. this.ShowInDockPanel(F_RPT_030120.Instance);
  913. break;
  914. case "070722":
  915. // 回收产品汇总表
  916. this.ShowInDockPanel(F_RPT_030121.Instance);
  917. break;
  918. #endregion
  919. #region 分析表
  920. case "070501":
  921. //注浆交坯比率分析表
  922. this.ShowInDockPanel(F_RPT_040101_1.Instance);
  923. break;
  924. case "070502":
  925. //工序产量分析表
  926. this.ShowInDockPanel(F_RPT_040102_1.Instance);//注释日期 20150608
  927. break;
  928. case "070503":
  929. //注浆产品工序分析表
  930. this.ShowInDockPanel(F_RPT_040107.Instance);
  931. break;
  932. case "070504":
  933. //成型线产量分析表
  934. this.ShowInDockPanel(F_RPT_040108.Instance);
  935. break;
  936. case "070505":
  937. //整体质量分析表
  938. this.ShowInDockPanel(F_RPT_040109.Instance);
  939. break;
  940. case "070506":
  941. //产成品逐日出窑数值分析表
  942. this.ShowInDockPanel(F_RPT_040110.Instance);
  943. break;
  944. case "070507":
  945. //模具注浆分析表
  946. this.ShowInDockPanel(F_RPT_040111.Instance);
  947. break;
  948. case "070508":
  949. //成检产品预算分析表
  950. this.ShowInDockPanel(F_RPT_040112.Instance);
  951. break;
  952. case "070203":
  953. //产品统计-工序质量分析表
  954. this.ShowInDockPanel(F_RPT_040103.Instance);
  955. break;
  956. case "070205":
  957. //产成品质量分析表
  958. this.ShowInDockPanel(F_RPT_040104.Instance);
  959. // this.ShowInDockPanel(F_RPT_080101.Instance);
  960. break;
  961. case "080109":
  962. // 半成检缺陷对照表(潮州)
  963. this.ShowInDockPanel(F_RPT_080109.Instance);
  964. break;
  965. #endregion
  966. #region 质量报表
  967. case "040105":
  968. this.ShowInDockPanel(F_RPT_040105.Instance);
  969. break;
  970. case "040106":
  971. //缺陷报表
  972. this.ShowInDockPanel(F_RPT_040106.Instance);
  973. break;
  974. case "040113":
  975. // 成品工艺质量表
  976. this.ShowInDockPanel(F_RPT_040113.Instance);
  977. break;
  978. case "040115":
  979. // 半成品工序质量表
  980. this.ShowInDockPanel(F_RPT_040115.Instance);
  981. break;
  982. case "070509":
  983. // 综合合格率分析表
  984. this.ShowInDockPanel(F_RPT_040114.Instance);
  985. break;
  986. case "070510":
  987. // 月度成品入库预算表
  988. this.ShowInDockPanel(F_RPT_040116.Instance);
  989. break;
  990. #endregion
  991. #endregion
  992. #region 生产管理-注浆管理
  993. case "0601":
  994. //生产管理-注浆管理
  995. break;
  996. case "060101":
  997. //生产管理-注浆管理-注浆登记
  998. this.ShowInDockPanel(F_PM_0101.Instance);
  999. break;
  1000. case "060102":
  1001. //生产管理-注浆管理-注浆日报
  1002. this.ShowInDockPanel(F_RPT_010101_1.Instance);
  1003. break;
  1004. case "060103":
  1005. //生产管理-注浆管理-环境登记
  1006. this.ShowInDockPanel(F_PM_1701.Instance);
  1007. break;
  1008. case "060104":
  1009. //生产管理-注浆管理-环境日报
  1010. this.ShowDialogForm(new F_PM_1802());
  1011. break;
  1012. case "060105":
  1013. //生产管理-注浆管理-注浆变更
  1014. this.ShowDialogForm(new F_PM_2105());
  1015. break;
  1016. case "060106":
  1017. //生产管理-注浆管理-成型报损
  1018. this.ShowInDockPanel(F_PM_2701.Instance);
  1019. break;
  1020. case "060107":
  1021. //生产管理-注浆管理-撤销报损
  1022. this.ShowDialogForm(new F_PM_2801());
  1023. break;
  1024. #endregion
  1025. #region 生产管理-条码管理
  1026. case "0602":
  1027. //生产管理-条码管理
  1028. break;
  1029. case "060201":
  1030. //生产管理-条码生成
  1031. //this.ShowDialogForm(new F_PM_0103());
  1032. this.ShowDialogForm(new F_PM_0103());
  1033. break;
  1034. case "060202":
  1035. //生产管理-条码维护
  1036. //this.ShowDialogForm(new F_PM_0201());
  1037. this.ShowInDockPanel(F_PM_0203.Instance);
  1038. break;
  1039. case "060203":
  1040. //生产管理-商标设定
  1041. this.ShowDialogForm(new F_PM_2118());
  1042. break;
  1043. case "060207":
  1044. //生产管理-条码打印
  1045. this.ShowDialogForm(new F_MST_012006());
  1046. break;
  1047. case "060205":
  1048. //生产管理-开模报损
  1049. this.ShowDialogForm(new F_PM_2901());
  1050. break;
  1051. #endregion
  1052. #region 生产管理-生产数据采集
  1053. case "0603":
  1054. //生产管理-生产数据采集
  1055. //F_PM_0301 fpm0301 = F_PM_0301.Instance(13);
  1056. //ShowInDockPanel(fpm0301);
  1057. //break;
  1058. //case "06030101":
  1059. // //生产管理-工序检验
  1060. // break;
  1061. break;
  1062. #endregion
  1063. #region 生产管理-废弃产品管理
  1064. case "060401":
  1065. //生产管理-产品报损
  1066. this.ShowInDockPanel(F_PM_1101.Instance);
  1067. break;
  1068. #endregion
  1069. #region 检验管理
  1070. case "062001":
  1071. //检验管理-半成品检验
  1072. this.ShowInDockPanel(F_PM_2201.Instance);
  1073. break;
  1074. // 成品检验功能TODO
  1075. case "062003":
  1076. //检验管理-成品检验
  1077. this.ShowInDockPanel(F_PM_3401.Instance);
  1078. break;
  1079. #endregion
  1080. #region 生产订单
  1081. case "0621":
  1082. this.ShowInDockPanel(F_PM_2301.Instance);
  1083. break;
  1084. case "0622"://产成品交接
  1085. this.ShowInDockPanel(F_PM_2401.Instance);
  1086. break;
  1087. #endregion
  1088. #region 报表管理-生产数据
  1089. case "060501":
  1090. //生产数据-在产品明细数据
  1091. this.ShowInDockPanel(F_RPT_010401.Instance);
  1092. break;
  1093. case "060502":
  1094. //生产数据-产成品明细
  1095. this.ShowInDockPanel(F_RPT_010402.Instance);
  1096. break;
  1097. case "060503":
  1098. //生产数据-半检数据一览
  1099. this.ShowInDockPanel(F_PM_1601.Instance);
  1100. break;
  1101. #endregion
  1102. #region 半检数据
  1103. case "0606":
  1104. //生产数据-半检数据一览
  1105. this.ShowInDockPanel(F_PM_1603.Instance);
  1106. break;
  1107. case "0608":
  1108. // 在产盘点
  1109. this.ShowInDockPanel(F_PM_2101.Instance);
  1110. break;
  1111. case "062301":
  1112. // 成型盘点
  1113. this.ShowInDockPanel(F_PM_2601.Instance);
  1114. break;
  1115. case "0609":
  1116. //撤销包装
  1117. F_PM_2104 frm2104 = new F_PM_2104();
  1118. frm2104.ShowDialog();
  1119. break;
  1120. case "0610":
  1121. //损坏撤销
  1122. F_PM_2106 frm2106 = new F_PM_2106();
  1123. frm2106.ShowDialog();
  1124. break;
  1125. case "0611":
  1126. //公坯设定
  1127. F_PM_2107 frm2107 = new F_PM_2107();
  1128. frm2107.ShowDialog();
  1129. break;
  1130. case "0612":
  1131. //清除在产残留数据
  1132. this.ShowInDockPanel(F_PM_2108.Instance);
  1133. break;
  1134. case "0613":
  1135. //清除在产回收站残留数据
  1136. this.ShowInDockPanel(F_PM_2110.Instance);
  1137. break;
  1138. case "0614":
  1139. //清除在产临时数据
  1140. this.ShowInDockPanel(F_PM_2112.Instance);
  1141. break;
  1142. case "0615":
  1143. //计件撤销
  1144. F_PM_2115 frm2115 = new F_PM_2115();
  1145. frm2115.ShowDialog();
  1146. break;
  1147. case "061601":
  1148. //交坯撤销
  1149. F_PM_2116 frm2116 = new F_PM_2116();
  1150. frm2116.ShowDialog();
  1151. break;
  1152. case "0624":
  1153. //产品挂起
  1154. this.ShowInDockPanel(F_PM_3001.Instance);
  1155. break;
  1156. case "0626":
  1157. //品保抽查
  1158. this.ShowInDockPanel(F_PM_3101.Instance);
  1159. break;
  1160. #endregion
  1161. #region SAP
  1162. case "SAP0101":
  1163. this.ShowInDockPanel(F_SAP_HEGII_0101.Instance);
  1164. break;
  1165. case "SAP0102":
  1166. this.ShowInDockPanel(F_SAP_HEGII_0102.Instance);
  1167. break;
  1168. case "SAP0103":
  1169. this.ShowInDockPanel(F_SAP_HEGII_0103.Instance);
  1170. break;
  1171. case "SAP0104":
  1172. this.ShowInDockPanel(F_SAP_HEGII_0104.Instance);
  1173. break;
  1174. case "SAP0105":
  1175. this.ShowInDockPanel(F_SAP_HEGII_0105.Instance);
  1176. break;
  1177. case "SAP0106":
  1178. this.ShowInDockPanel(F_SAP_HEGII_0106.Instance);
  1179. break;
  1180. case "SAP0107":
  1181. this.ShowInDockPanel(F_SAP_HEGII_0107.Instance);
  1182. break;
  1183. case "SAP0108":
  1184. this.ShowInDockPanel(F_SAP_HEGII_0108.Instance);
  1185. break;
  1186. case "SAP0109":
  1187. this.ShowInDockPanel(F_SAP_HEGII_0109.Instance);
  1188. break;
  1189. case "SAP0111":
  1190. this.ShowInDockPanel(F_SAP_HEGII_0112.Instance);
  1191. break;
  1192. case "SAP0112":
  1193. this.ShowInDockPanel(F_SAP_HEGII_0113.Instance);
  1194. break;
  1195. #endregion
  1196. #region 送货单
  1197. case "0631":
  1198. this.ShowInDockPanel(F_PM_3501.Instance);
  1199. break;
  1200. #endregion
  1201. #region 首件登记检验
  1202. case "0632":
  1203. this.ShowInDockPanel(F_PM_3601.Instance);
  1204. break;
  1205. #endregion
  1206. #region 生产计划 xuwei 20190827 add
  1207. //case "PP0101":
  1208. // //年计划
  1209. // this.ShowInDockPanel(F_PP_0101.Instance);
  1210. // break;
  1211. //case "PP0102":
  1212. // //月计划
  1213. // this.ShowInDockPanel(F_PP_0201.Instance);
  1214. // break;
  1215. //case "PP0103":
  1216. // //日计划
  1217. // this.ShowInDockPanel(F_PP_0301.Instance);
  1218. // break;
  1219. //case "PP0104":
  1220. // //计划分析
  1221. // this.ShowInDockPanel(F_PP_0121.Instance);
  1222. // break;
  1223. #endregion
  1224. #region 其他
  1225. default:
  1226. TreeNode treenodes = ((TreeView)sender).SelectedNode;
  1227. if (treenodes.Name.ToString().StartsWith("0603"))
  1228. {
  1229. string[] sub = treenodes.Tag.ToString().Split(',');
  1230. if (sub[0] != string.Empty)
  1231. {
  1232. if (Convert.ToInt32(sub[0]) == Convert.ToInt32(Constant.ProcedureModelType.DeliverMud))
  1233. {
  1234. //生产管理-交坯
  1235. F_PM_0401 frm0401 = F_PM_0401.Instance(Convert.ToInt32(sub[1]), treenodes.Text);
  1236. this.ShowInDockPanel(frm0401);
  1237. }
  1238. else if (Convert.ToInt32(sub[0]) == Convert.ToInt32(Constant.ProcedureModelType.LoadCar))
  1239. {
  1240. //生产管理-装窑车
  1241. F_PM_0501 frm0501 = F_PM_0501.Instance(Convert.ToInt32(sub[1]), treenodes.Text);
  1242. this.ShowInDockPanel(frm0501);
  1243. }
  1244. else if (Convert.ToInt32(sub[0]) == Convert.ToInt32(Constant.ProcedureModelType.Normal))
  1245. {
  1246. if (Convert.ToInt32(sub[2]) == 1) // 计件模式
  1247. {
  1248. F_PM_0301 frm0301 = F_PM_0301.Instance(Convert.ToInt32(sub[1]), treenodes.Text);
  1249. this.ShowInDockPanel(frm0301);
  1250. }
  1251. else if (Convert.ToInt32(sub[2]) == 2) // 半成品检验(标准检验)
  1252. {
  1253. F_PM_0901 frm0901 = F_PM_0901.Instance(Convert.ToInt32(sub[1]), treenodes.Text);
  1254. this.ShowInDockPanel(frm0901);
  1255. }
  1256. }
  1257. //xuwei add 2020-06-15 加冷补 计件模式
  1258. else if (Convert.ToInt32(sub[0]) == Convert.ToInt32(Constant.ProcedureModelType.ColdPatch))
  1259. {
  1260. F_PM_0301 frm0301 = F_PM_0301.Instance(Convert.ToInt32(sub[1]), treenodes.Text);
  1261. this.ShowInDockPanel(frm0301);
  1262. }
  1263. else if (Convert.ToInt32(sub[0]) == Convert.ToInt32(Constant.ProcedureModelType.IntoKiln))
  1264. {
  1265. //生产管理-入窑
  1266. F_PM_0601 frm0601 = F_PM_0601.Instance(Convert.ToInt32(sub[1]), treenodes.Text);
  1267. this.ShowInDockPanel(frm0601);
  1268. }
  1269. else if (Convert.ToInt32(sub[0]) == Convert.ToInt32(Constant.ProcedureModelType.OutKiln))
  1270. {
  1271. //生产管理-出窑
  1272. F_PM_0601 frm0601 = F_PM_0601.Instance(Convert.ToInt32(sub[1]), treenodes.Text);
  1273. this.ShowInDockPanel(frm0601);
  1274. }
  1275. else if (Convert.ToInt32(sub[0]) == Convert.ToInt32(Constant.ProcedureModelType.UnloadCar))
  1276. {
  1277. //生产管理-卸窑车
  1278. F_PM_0601 frm0601 = F_PM_0601.Instance(Convert.ToInt32(sub[1]), treenodes.Text);
  1279. this.ShowInDockPanel(frm0601);
  1280. }
  1281. else if (Convert.ToInt32(sub[0]) == Convert.ToInt32(Constant.ProcedureModelType.CarAdd))
  1282. {
  1283. //生产管理-窑车补件
  1284. F_PM_0501 frm0501 = F_PM_0501.Instance(Convert.ToInt32(sub[1]), treenodes.Text);
  1285. this.ShowInDockPanel(frm0501);
  1286. }
  1287. else if (Convert.ToInt32(sub[0]) == Convert.ToInt32(Constant.ProcedureModelType.AdobeStock))
  1288. {
  1289. //生产管理-坯库
  1290. F_PM_0301 frm0301 = F_PM_0301.Instance(Convert.ToInt32(sub[1]), treenodes.Text);
  1291. this.ShowInDockPanel(frm0301);
  1292. }
  1293. else if (Convert.ToInt32(sub[0]) == Convert.ToInt32(Constant.ProcedureModelType.QualityStatistics))
  1294. {
  1295. //生产管理-成检(质量统计)
  1296. F_PM_1201 frm1201 = F_PM_1201.Instance(Convert.ToInt32(sub[1]), treenodes.Text);
  1297. this.ShowInDockPanel(frm1201);
  1298. }
  1299. //xuwei add 2019-12-12
  1300. else if (Convert.ToInt32(sub[0]) == Convert.ToInt32(Constant.ProcedureModelType.SemiQualityStatistics))
  1301. {
  1302. //生产管理-半检(质量统计)
  1303. F_PM_3201 frm3201 = F_PM_3201.Instance(Convert.ToInt32(sub[1]), treenodes.Text);
  1304. this.ShowInDockPanel(frm3201);
  1305. }
  1306. else if (Convert.ToInt32(sub[0]) == Convert.ToInt32(Constant.ProcedureModelType.IntoKilnCheck))
  1307. {
  1308. //生产管理-入窑前检验
  1309. F_PM_1301 frm1301 = F_PM_1301.Instance(Convert.ToInt32(sub[1]), treenodes.Text);
  1310. this.ShowInDockPanel(frm1301);
  1311. }
  1312. else if (Convert.ToInt32(sub[0]) == Convert.ToInt32(Constant.ProcedureModelType.SpecialRepair))
  1313. {
  1314. //生产管理-干补
  1315. F_PM_2001 frm2001 = F_PM_2001.Instance(Convert.ToInt32(sub[1]), treenodes.Text);
  1316. this.ShowInDockPanel(frm2001);
  1317. }
  1318. else if (Convert.ToInt32(sub[0]) == Convert.ToInt32(Constant.ProcedureModelType.Recovery))
  1319. {
  1320. //生产管理-回收
  1321. F_PM_2501 frm2501 = F_PM_2501.Instance(Convert.ToInt32(sub[1]), treenodes.Text);
  1322. this.ShowInDockPanel(frm2501);
  1323. }
  1324. }
  1325. }
  1326. break;
  1327. #endregion
  1328. }
  1329. }
  1330. }
  1331. }
  1332. }
  1333. catch (Exception ex)
  1334. {
  1335. // 对异常进行共通处理
  1336. ExceptionManager.HandleEventException(this.ToString(),
  1337. MethodBase.GetCurrentMethod().Name, this.Text, ex);
  1338. }
  1339. }
  1340. /// <summary>
  1341. /// 展开全部节点
  1342. /// </summary>
  1343. /// <param name="sender"></param>
  1344. /// <param name="e"></param>
  1345. private void btnExpand_Click(object sender, EventArgs e)
  1346. {
  1347. TreeNode node = null;
  1348. if (this.trvMenu.SelectedNode != null)
  1349. {
  1350. node = this.trvMenu.SelectedNode;
  1351. this.trvMenu.SelectedNode = null;
  1352. }
  1353. else if (this.trvMenu.Nodes.Count > 0)
  1354. {
  1355. node = this.trvMenu.Nodes[0];
  1356. }
  1357. this.trvMenu.ExpandAll();
  1358. if (node != null)
  1359. {
  1360. this.trvMenu.SelectedNode = node;
  1361. }
  1362. this.trvMenu.Focus();
  1363. }
  1364. /// <summary>
  1365. /// 折叠全部节点
  1366. /// </summary>
  1367. /// <param name="sender"></param>
  1368. /// <param name="e"></param>
  1369. private void btnCollapse_Click(object sender, EventArgs e)
  1370. {
  1371. this.trvMenu.CollapseAll();
  1372. this.trvMenu.Focus();
  1373. }
  1374. /// <summary>
  1375. /// 设置按钮大小
  1376. /// </summary>
  1377. /// <param name="sender"></param>
  1378. /// <param name="e"></param>
  1379. private void trvMenu_SizeChanged(object sender, EventArgs e)
  1380. {
  1381. this.btnExpand.Width = this.trvMenu.Width / 2;
  1382. }
  1383. #endregion
  1384. #region 私有方法
  1385. /// <summary>
  1386. /// 设置窗体按钮的文本信息
  1387. /// </summary>
  1388. private void SetFromTitleInfo()
  1389. {
  1390. this.Text = FormTitles.F_SYS_0202;
  1391. }
  1392. /// <summary>
  1393. /// 获取用户菜单的一级菜单
  1394. /// </summary>
  1395. /// <param name="treeTable">用户菜单数据集</param>
  1396. /// <returns>一级菜单字典</returns>
  1397. private Dictionary<string, string> InitNavigationButtons(DataTable treeTable)
  1398. {
  1399. try
  1400. {
  1401. Dictionary<string, string> dicTemp = new Dictionary<string, string>();
  1402. DataRow[] navigationRows = treeTable.Select("LEN(FunctionCode) = " + Constant.INT_IS_TWO.ToString()); // 编号2为一级菜单
  1403. foreach (DataRow newRow in navigationRows)
  1404. {
  1405. string funcName = newRow["FunctionName"].ToString();
  1406. string funcCode = newRow["FunctionCode"].ToString();
  1407. if (!dicTemp.ContainsKey(funcCode))
  1408. {
  1409. dicTemp.Add(funcCode, funcName);
  1410. }
  1411. }
  1412. return dicTemp;
  1413. }
  1414. catch (Exception ex)
  1415. {
  1416. throw ex;
  1417. }
  1418. }
  1419. /// <summary>
  1420. /// 初始化树形控件
  1421. /// </summary>
  1422. /// <param name="treeTable">菜单数据表</param>
  1423. /// <param name="rows">待处理的菜单集合</param>
  1424. /// <param name="node">当前树节点</param>
  1425. private void InitTreeView(DataTable treeTable, DataRow[] rows, TreeNode node)
  1426. {
  1427. foreach (DataRow row in rows)
  1428. {
  1429. TreeNode sNode;
  1430. if (node == null)
  1431. {
  1432. sNode = new TreeNode();
  1433. sNode.Text = row["FunctionName"].ToString();
  1434. sNode.Name = row["FunctionCode"].ToString();
  1435. //xuwei add 2019-11-28
  1436. sNode.Tag = row["Url"].ToString();
  1437. //xuwei end
  1438. if (Constant.FunctionFlag.Form.GetHashCode().ToString().Equals(row["FunctionFlag"].ToString().Trim()))
  1439. {
  1440. sNode.ImageIndex = Constant.INT_IS_ONE;
  1441. sNode.SelectedImageIndex = Constant.INT_IS_ONE;
  1442. }
  1443. this.trvMenu.Nodes.Add(sNode);
  1444. }
  1445. else
  1446. {
  1447. sNode = node.Nodes.Add(row["FunctionName"].ToString());
  1448. sNode.Name = row["FunctionCode"].ToString();
  1449. #region 陈冰 修改 增加工序类别和工序ID 2014-9-23
  1450. //node.Tag = nodeRoot["FunctionCode"].ToString();
  1451. //xuwei modify 2019-11-28
  1452. //sNode.Tag = row["ProcedureModeltype"].ToString() + "," + row["ProcedureID"].ToString() + "," + row["ProcedureModel"].ToString();
  1453. sNode.Tag = row["ProcedureModeltype"].ToString() + "," + row["ProcedureID"].ToString() + "," + row["ProcedureModel"].ToString()+"," + row["Url"].ToString();
  1454. //xuwei end
  1455. #endregion
  1456. if (Constant.FunctionFlag.Form.GetHashCode().ToString().Equals(row["FunctionFlag"].ToString().Trim()))
  1457. {
  1458. sNode.ImageIndex = Constant.INT_IS_ONE;
  1459. sNode.SelectedImageIndex = Constant.INT_IS_ONE;
  1460. }
  1461. }
  1462. string filterExpression = "Functionlevel LIKE '" + row["Functionlevel"].ToString()
  1463. + "%' AND LEN(Functionlevel) = " + (row["Functionlevel"].ToString().Length + Constant.INT_IS_TWO);
  1464. DataRow[] subRows = treeTable.Select(filterExpression);
  1465. // 递归方法
  1466. InitTreeView(treeTable, subRows, sNode);
  1467. }
  1468. }
  1469. /// <summary>
  1470. /// 显示对应的页面中主窗体中
  1471. /// </summary>
  1472. /// <param name="dockPanelBaseForm">需要停靠的DockPanelBase</param>
  1473. private void ShowInDockPanel(DockPanelBase dockPanelBaseForm)
  1474. {
  1475. try
  1476. {
  1477. if (dockPanelBaseForm == null)
  1478. {
  1479. return;
  1480. }
  1481. dockPanelBaseForm.Show(_dockPanel, DockState.Document);
  1482. dockPanelBaseForm.Activate();
  1483. }
  1484. catch (Exception ex)
  1485. {
  1486. throw ex;
  1487. }
  1488. }
  1489. /// <summary>
  1490. /// 模态打开窗体
  1491. /// </summary>
  1492. /// <param name="formBase"></param>
  1493. private void ShowDialogForm(FormBase formBase)
  1494. {
  1495. try
  1496. {
  1497. if (formBase == null)
  1498. {
  1499. return;
  1500. }
  1501. formBase.ShowDialog();
  1502. }
  1503. catch (Exception ex)
  1504. {
  1505. throw ex;
  1506. }
  1507. }
  1508. private void InitNavigationTreeView(DataTable treeTable)
  1509. {
  1510. try
  1511. {
  1512. TreeNode node = null;
  1513. DataRow[] navigationRows = treeTable.Select
  1514. ("LEN(Functionlevel) = 2");
  1515. // 递归生成功能权限树
  1516. this.InitTreeView(treeTable, navigationRows, node);
  1517. }
  1518. catch (Exception ex)
  1519. {
  1520. throw ex;
  1521. }
  1522. }
  1523. #endregion
  1524. }
  1525. }