F_SYS_0202.cs 52 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616
  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. this.ShowInDockPanel(F_SET_014001.Instance);
  372. break;
  373. case "0115":
  374. //系统管理-模具标签模板
  375. this.ShowInDockPanel(F_MST_013001.Instance);
  376. break;
  377. case "0112":
  378. //系统管理-工号分组
  379. this.ShowInDockPanel(F_MST_1201.Instance);
  380. break;
  381. case "0113":
  382. //系统管理-条码打印机
  383. this.ShowDialogForm(F_MST_0412.Instance);
  384. break;
  385. case "0114":
  386. //系统管理-PLC连接参数
  387. this.ShowDialogForm(F_MST_0413.Instance);
  388. break;
  389. #endregion
  390. case "010505":
  391. //系统管理-商标管理
  392. F_MST_0801 mst0801 = new F_MST_0801();
  393. mst0801.ShowDialog();
  394. break;
  395. case "010506":
  396. //系统管理-缺陷扣罚管理
  397. F_MST_0901 mst0901 = new F_MST_0901();
  398. mst0901.ShowDialog();
  399. break;
  400. case "010507":
  401. //系统管理-缺陷扣除数管理
  402. F_MST_0902 mst0902 = new F_MST_0902();
  403. mst0902.ShowDialog();
  404. break;
  405. case "010508":
  406. //系统管理-缺陷关系设置
  407. F_MST_0903 mst0903 = new F_MST_0903();
  408. mst0903.ShowDialog();
  409. break;
  410. case "010509":
  411. //系统管理-模具材料供应商
  412. F_MST_0414 mst0414 = new F_MST_0414();
  413. mst0414.ShowDialog();
  414. break;
  415. #endregion
  416. #region 02-策略管理
  417. case "02":
  418. //策略管理
  419. break;
  420. #region 策略管理-工资考核策略
  421. case "0201":
  422. //策略管理-工资考核策略
  423. break;
  424. case "020101":
  425. //策略管理-工资考核策略-基本工资策略
  426. this.ShowInDockPanel(F_TAT_0301.Instance);
  427. break;
  428. case "020102":
  429. //策略管理-工资考核策略-管理岗位工资策略
  430. this.ShowInDockPanel(F_TAT_0701.Instance);
  431. break;
  432. case "020103":
  433. //策略管理-工资考核策略-工价策略
  434. this.ShowInDockPanel(F_TAT_0201.Instance);
  435. break;
  436. case "020104":
  437. //策略管理-工资考核策略-出勤考核
  438. this.ShowInDockPanel(F_TAT_0801.Instance);
  439. break;
  440. case "020105":
  441. //策略管理-工资考核策略-质量考核
  442. this.ShowInDockPanel(F_TAT_0401.Instance);
  443. break;
  444. case "020106":
  445. //策略管理-工资考核策略-进度考核
  446. this.ShowInDockPanel(F_TAT_0501.Instance);
  447. break;
  448. case "020107":
  449. //策略管理-工资考核策略-缺陷扣罚策略
  450. this.ShowInDockPanel(F_TAT_0101.Instance);
  451. break;
  452. case "020108":
  453. //策略管理-工资考核策略-缺陷扣罚策略
  454. this.ShowInDockPanel(F_TAT_0601.Instance);
  455. break;
  456. #endregion
  457. #region 策略管理-工资管理策略
  458. case "020201":
  459. //策略管理-工资管理策略-工资方案参数设定
  460. this.ShowInDockPanel(F_PAM_0101.Instance);
  461. break;
  462. case "020202":
  463. //策略管理-工资管理策略-工种工资方案
  464. this.ShowInDockPanel(F_PAM_0102.Instance);
  465. break;
  466. case "020203":
  467. //策略管理-工资管理策略-工价分类
  468. this.ShowDialogForm(F_PAM_0202.Instance);
  469. break;
  470. case "020204":
  471. //策略管理-工资管理策略-产品工价分类
  472. this.ShowInDockPanel(F_PAM_0201.Instance);
  473. //this.ShowInDockPanel(F_PAM_0601.Instance);
  474. break;
  475. case "020205":
  476. //策略管理-工资管理策略-计件工资策略
  477. this.ShowInDockPanel(F_PAM_0301.Instance);
  478. break;
  479. case "020206":
  480. //策略管理-工资管理策略-品质考核策略
  481. this.ShowInDockPanel(F_PAM_0401.Instance);
  482. break;
  483. case "020207":
  484. //策略管理-工资管理策略-工资结算
  485. this.ShowInDockPanel(F_PAM_0601.Instance);
  486. break;
  487. #endregion
  488. #endregion
  489. #region 03-人力资源
  490. case "03":
  491. //人力资源
  492. break;
  493. #region 人力资源-员工管理
  494. case "0301":
  495. //人力资源-员工管理
  496. break;
  497. case "030101":
  498. //人力资源-员工管理-员工档案
  499. this.ShowInDockPanel(F_HR_0101.Instance);
  500. break;
  501. case "030102":
  502. //人力资源-员工管理-员工入职
  503. this.ShowInDockPanel(F_HR_0201.Instance);
  504. break;
  505. case "030103":
  506. //人力资源-员工管理-员工转正
  507. this.ShowInDockPanel(F_HR_0301.Instance);
  508. break;
  509. case "030104":
  510. //人力资源-员工管理-员工离职
  511. this.ShowInDockPanel(F_HR_0401.Instance);
  512. break;
  513. case "030105":
  514. //人力资源-员工管理-工种调整
  515. this.ShowInDockPanel(F_HR_0501.Instance);
  516. break;
  517. case "030106":
  518. //人力资源-员工管理-职务调整
  519. this.ShowInDockPanel(F_HR_0601.Instance);
  520. break;
  521. case "030107":
  522. //人力资源-员工管理-部门调整
  523. this.ShowInDockPanel(F_HR_0701.Instance);
  524. break;
  525. #endregion
  526. #region 人力资源-人事审批
  527. case "0302":
  528. //人力资源-人事审批
  529. break;
  530. case "030201":
  531. //人力资源-人事审批-员工入职
  532. this.ShowInDockPanel(F_HR_0203.Instance);
  533. break;
  534. case "030202":
  535. //人力资源-人事审批-员工转正
  536. this.ShowInDockPanel(F_HR_0303.Instance);
  537. break;
  538. case "030203":
  539. //人力资源-人事审批-员工离职
  540. this.ShowInDockPanel(F_HR_0403.Instance);
  541. break;
  542. case "030204":
  543. //人力资源-人事审批-工种调整
  544. this.ShowInDockPanel(F_HR_0503.Instance);
  545. break;
  546. case "030205":
  547. //人力资源-人事审批-职务调整
  548. this.ShowInDockPanel(F_HR_0603.Instance);
  549. break;
  550. case "030206":
  551. //人力资源-人事审批-部门调整
  552. this.ShowInDockPanel(F_HR_0703.Instance);
  553. break;
  554. #endregion
  555. #region 人力资源-行政管理
  556. case "0303":
  557. //人力资源-行政管理
  558. break;
  559. case "030301":
  560. //人力资源-行政管理-员工报餐
  561. this.ShowInDockPanel(F_HR_0901.Instance);
  562. break;
  563. case "030302":
  564. //人力资源-行政管理-员工考勤
  565. this.ShowInDockPanel(F_HR_1001.Instance);
  566. break;
  567. case "030303":
  568. //人力资源-行政管理-行政考核
  569. this.ShowInDockPanel(F_PAM_0501.Instance);
  570. break;
  571. case "030304":
  572. //人力资源-行政管理-行政考核审核
  573. this.ShowInDockPanel(F_PAM_0503.Instance);
  574. break;
  575. #endregion
  576. #region 人力资源-奖惩管理
  577. case "0304":
  578. //人力资源-奖惩管理
  579. break;
  580. case "030401":
  581. //人力资源-奖惩管理-进度奖惩
  582. this.ShowInDockPanel(F_PM_1104.Instance);
  583. break;
  584. case "030402":
  585. //人力资源-奖惩管理-行政奖惩
  586. this.ShowInDockPanel(F_HR_1101.Instance);
  587. break;
  588. case "030403":
  589. //人力资源-奖惩管理-行政奖惩审批
  590. this.ShowInDockPanel(F_HR_1103.Instance);
  591. break;
  592. case "030404":
  593. //人力资源-奖惩管理-进度奖惩审批
  594. this.ShowInDockPanel(F_PM_1106.Instance);
  595. break;
  596. #endregion
  597. #region 人力资源-工资管理
  598. case "0305":
  599. //人力资源-工资管理
  600. break;
  601. case "030501":
  602. //人力资源-工资管理-工资结算
  603. this.ShowInDockPanel(F_HR_1201.Instance);
  604. break;
  605. case "030502":
  606. //人力资源-工资管理-工资审批
  607. break;
  608. case "030503":
  609. //人力资源-工资管理-工资结算
  610. this.ShowInDockPanel(F_PAM_0601.Instance);
  611. break;
  612. case "030504":
  613. //人力资源-工资管理-工资调整
  614. this.ShowInDockPanel(F_PAM_0603.Instance);
  615. break;
  616. case "030505":
  617. //人力资源-工资管理-工资审批
  618. this.ShowInDockPanel(F_PAM_0604.Instance);
  619. break;
  620. #endregion
  621. #endregion
  622. #region 04-生产配置
  623. case "04":
  624. //生产配置
  625. break;
  626. #region 生产配置-成型线管理
  627. case "0401":
  628. //生产配置-成型线管理
  629. //this.ShowInDockPanel(F_PC_0104.Instance);
  630. this.ShowInDockPanel(F_PC_0104_1.Instance);
  631. //生产配置-生产模具管理
  632. break;
  633. case "0402":
  634. //生产配置-生产模具管理
  635. //this.ShowInDockPanel(F_PC_0101.Instance);
  636. this.ShowInDockPanel(F_PC_0101_1_1.Instance);
  637. break;
  638. case "0403":
  639. //生产配置-生产线配置
  640. //this.ShowInDockPanel(F_PC_0201.Instance);
  641. this.ShowInDockPanel(F_PC_0205.Instance);
  642. break;
  643. case "0404":
  644. //生产配置-班次配置
  645. this.ShowInDockPanel(F_PC_0401.Instance);
  646. break;
  647. case "0405":
  648. //生产配置-员工关联
  649. this.ShowInDockPanel(F_PC_0601.Instance);
  650. break;
  651. case "0406":
  652. //生产配置-装配工序组件配置
  653. this.ShowInDockPanel(F_PC_0701.Instance);
  654. break;
  655. case "0407":
  656. //生产配置-线边仓组件配置
  657. this.ShowInDockPanel(F_PC_0801.Instance);
  658. break;
  659. case "0408":
  660. //生产配置-作业指导书工序配置
  661. this.ShowInDockPanel(F_PC_1301.Instance);
  662. break;
  663. #endregion
  664. #endregion
  665. #region M04-模具管理
  666. case "M0401":
  667. // 模具管理-模具档案
  668. this.ShowInDockPanel(F_PC_1001.Instance);
  669. break;
  670. case "M0402":
  671. // 模具管理-模具盘点
  672. this.ShowInDockPanel(F_PC_1101.Instance);
  673. break;
  674. case "M0403":
  675. // 模具管理-模具库存结转
  676. this.ShowInDockPanel(F_PC_1201.Instance);
  677. break;
  678. #endregion
  679. #region 06-生产管理
  680. case "06":
  681. //生产管理
  682. break;
  683. #endregion
  684. #region 07-综合报表
  685. #region 明细表
  686. case "070401":
  687. //注浆明细表
  688. this.ShowInDockPanel(F_RPT_010101_1.Instance);
  689. break;
  690. case "070402":
  691. //半检明细表
  692. this.ShowInDockPanel(F_RPT_010102_1.Instance); //
  693. break;
  694. case "070403":
  695. //漏扫数据统计
  696. this.ShowInDockPanel(F_RPT_010201_1.Instance);
  697. break;
  698. case "070404":
  699. //条码变更
  700. this.ShowInDockPanel(F_RPT_010301_1.Instance);
  701. break;
  702. case "070407":
  703. //交坯明细
  704. this.ShowInDockPanel(F_RPT_010103.Instance);
  705. break;
  706. case "070408":
  707. //注浆次数明细
  708. this.ShowInDockPanel(F_RPT_010104.Instance);
  709. break;
  710. case "070415":
  711. //成型线模具使用明细表
  712. this.ShowInDockPanel(F_RPT_010105.Instance);
  713. break;
  714. case "070416":
  715. //成型线剩余注浆次数
  716. this.ShowInDockPanel(F_RPT_010106.Instance);
  717. break;
  718. case "070409":
  719. //历史模具明细表
  720. this.ShowInDockPanel(F_RPT_080101.Instance);
  721. break;
  722. case "070410":
  723. //工序产量明细表
  724. this.ShowInDockPanel(F_RPT_080105.Instance);
  725. break;
  726. case "070411":
  727. //成型线明细表
  728. this.ShowInDockPanel(F_PC_0108.Instance);
  729. break;
  730. case "070413":
  731. //生产数据明细表
  732. this.ShowInDockPanel(F_RPT_010403.Instance);
  733. break;
  734. case "070414":
  735. //半检登记明细表
  736. this.ShowInDockPanel(F_RPT_080107.Instance);
  737. break;
  738. case "070701":
  739. //
  740. this.ShowInDockPanel(F_RPT_080102.Instance);
  741. break;
  742. case "070702":
  743. //
  744. this.ShowInDockPanel(F_RPT_080103.Instance);
  745. break;
  746. case "070703":
  747. //
  748. this.ShowInDockPanel(F_RPT_080104.Instance);
  749. break;
  750. case "070412":// 温湿计明细表
  751. //
  752. this.ShowInDockPanel(F_RPT_080106.Instance);
  753. break;
  754. case "070417":// 商标变更明细表
  755. //
  756. this.ShowInDockPanel(F_RPT_010302.Instance);
  757. break;
  758. case "070418":
  759. // 产品损坯明细表
  760. this.ShowInDockPanel(F_RPT_010202.Instance);
  761. break;
  762. case "070419":
  763. // 在产品备份表
  764. this.ShowInDockPanel(F_RPT_010404.Instance);
  765. break;
  766. case "070420":
  767. // 产成品单值明细表
  768. this.ShowInDockPanel(F_RPT_010405.Instance);
  769. break;
  770. //xuwei begin add 2019-10-14
  771. case "070421":
  772. //半检返修登记明细表
  773. this.ShowInDockPanel(F_RPT_080108.Instance);
  774. break;
  775. //xuwei end
  776. // qinqi 20221209 产品装配明细表
  777. case "070424":
  778. //产品装配明细表
  779. this.ShowInDockPanel(F_RPT_080110.Instance);
  780. break;
  781. // qinqi 20230602 品管数据记录明细表
  782. case "070425":
  783. //品管数据记录明细表
  784. this.ShowInDockPanel(F_RPT_080112.Instance);
  785. break;
  786. // qinqi 20240104 BOM物料检验明细表
  787. case "070426":
  788. //BOM物料检验明细表
  789. this.ShowInDockPanel(F_RPT_080113.Instance);
  790. break;
  791. // qinqi 20240104 QC检验数据明细表
  792. case "070427":
  793. //QC检验数据明细表
  794. this.ShowInDockPanel(F_RPT_080114.Instance);
  795. break;
  796. // qinqi 20240104 QC检验计划完成明细表
  797. case "070428":
  798. //QC检验计划完成明细表
  799. this.ShowInDockPanel(F_RPT_080115.Instance);
  800. break;
  801. // qinqi 20240104 QC检验分析汇总表
  802. case "070429":
  803. //QC检验分析汇总表
  804. this.ShowInDockPanel(F_RPT_080116.Instance);
  805. break;
  806. #endregion
  807. #region 跟踪表
  808. case "070301":
  809. //产品统计-产品跟踪表
  810. this.ShowInDockPanel(F_RPT_020101_1.Instance);
  811. break;
  812. case "070302":
  813. //产品统计-窑车状态表
  814. this.ShowInDockPanel(F_RPT_020104.Instance);
  815. break;
  816. case "070303":
  817. // 模具跟踪表
  818. this.ShowInDockPanel(F_RPT_020105.Instance);
  819. break;
  820. #endregion
  821. #region 汇总表
  822. case "070601":
  823. //产品损坏汇总表
  824. this.ShowInDockPanel(F_RPT_030102_1.Instance);
  825. break;
  826. case "070602":
  827. //产品产量汇总表
  828. this.ShowInDockPanel(F_RPT_030101_1.Instance);
  829. break;
  830. case "070603":
  831. //出窑数量汇总表
  832. this.ShowInDockPanel(F_RPT_030103_1.Instance);
  833. break;
  834. case "070604":
  835. //窑车产量汇总表
  836. this.ShowInDockPanel(F_RPT_030104_1.Instance);
  837. break;
  838. case "070605":
  839. //生产统计-成型线变产记录
  840. this.ShowInDockPanel(F_PC_0501.Instance);
  841. break;
  842. case "070606":
  843. //在产产量汇总表
  844. this.ShowInDockPanel(F_RPT_030105.Instance);
  845. break;
  846. case "070607":
  847. //成检缺陷汇总表
  848. this.ShowInDockPanel(F_RPT_030106.Instance);
  849. break;
  850. case "070608":
  851. //工序交接数量汇总表
  852. this.ShowInDockPanel(F_RPT_030107.Instance);
  853. break;
  854. case "070609":
  855. //成型信息汇总表
  856. this.ShowInDockPanel(F_RPT_030108.Instance);
  857. break;
  858. case "070610":
  859. //撤销产品汇总表
  860. this.ShowInDockPanel(F_RPT_030109.Instance);
  861. break;
  862. case "070611":
  863. //半检信息汇总表
  864. this.ShowInDockPanel(F_RPT_030110.Instance);
  865. break;
  866. case "070612":
  867. //工序收发存汇总表
  868. this.ShowInDockPanel(F_RPT_030111.Instance);
  869. break;
  870. case "070713":
  871. //产成品交接汇总表
  872. this.ShowInDockPanel(F_RPT_030112.Instance);
  873. break;
  874. case "070714":
  875. // 模具收发存汇总表
  876. this.ShowInDockPanel(F_RPT_030113.Instance);
  877. break;
  878. case "070715":
  879. // 废弃产品汇总表
  880. this.ShowInDockPanel(F_RPT_030114.Instance);
  881. break;
  882. case "070716":
  883. // 工艺废弃产品汇总表
  884. this.ShowInDockPanel(F_RPT_030115.Instance);
  885. break;
  886. case "070717":
  887. // 成型存坯汇总表
  888. this.ShowInDockPanel(F_RPT_030116.Instance);
  889. break;
  890. case "070718":
  891. // 产成品交接撤销汇总表
  892. this.ShowInDockPanel(F_RPT_030117.Instance);
  893. break;
  894. case "070719":
  895. // 年度各工序月产量统计表
  896. this.ShowInDockPanel(F_RPT_030118.Instance);
  897. break;
  898. case "070720":
  899. // 半检返修缺陷汇总表
  900. this.ShowInDockPanel(F_RPT_030119.Instance);
  901. break;
  902. case "070721":
  903. // 跨车间作业量汇总表
  904. this.ShowInDockPanel(F_RPT_030120.Instance);
  905. break;
  906. case "070722":
  907. // 回收产品汇总表
  908. this.ShowInDockPanel(F_RPT_030121.Instance);
  909. break;
  910. #endregion
  911. #region 分析表
  912. case "070501":
  913. //注浆交坯比率分析表
  914. this.ShowInDockPanel(F_RPT_040101_1.Instance);
  915. break;
  916. case "070502":
  917. //工序产量分析表
  918. this.ShowInDockPanel(F_RPT_040102_1.Instance);//注释日期 20150608
  919. break;
  920. case "070503":
  921. //注浆产品工序分析表
  922. this.ShowInDockPanel(F_RPT_040107.Instance);
  923. break;
  924. case "070504":
  925. //成型线产量分析表
  926. this.ShowInDockPanel(F_RPT_040108.Instance);
  927. break;
  928. case "070505":
  929. //整体质量分析表
  930. this.ShowInDockPanel(F_RPT_040109.Instance);
  931. break;
  932. case "070506":
  933. //产成品逐日出窑数值分析表
  934. this.ShowInDockPanel(F_RPT_040110.Instance);
  935. break;
  936. case "070507":
  937. //模具注浆分析表
  938. this.ShowInDockPanel(F_RPT_040111.Instance);
  939. break;
  940. case "070508":
  941. //成检产品预算分析表
  942. this.ShowInDockPanel(F_RPT_040112.Instance);
  943. break;
  944. case "070203":
  945. //产品统计-工序质量分析表
  946. this.ShowInDockPanel(F_RPT_040103.Instance);
  947. break;
  948. case "070205":
  949. //产成品质量分析表
  950. this.ShowInDockPanel(F_RPT_040104.Instance);
  951. // this.ShowInDockPanel(F_RPT_080101.Instance);
  952. break;
  953. case "080109":
  954. // 半成检缺陷对照表(潮州)
  955. this.ShowInDockPanel(F_RPT_080109.Instance);
  956. break;
  957. #endregion
  958. #region 质量报表
  959. case "040105":
  960. this.ShowInDockPanel(F_RPT_040105.Instance);
  961. break;
  962. case "040106":
  963. //缺陷报表
  964. this.ShowInDockPanel(F_RPT_040106.Instance);
  965. break;
  966. case "040113":
  967. // 成品工艺质量表
  968. this.ShowInDockPanel(F_RPT_040113.Instance);
  969. break;
  970. case "040115":
  971. // 半成品工序质量表
  972. this.ShowInDockPanel(F_RPT_040115.Instance);
  973. break;
  974. case "070509":
  975. // 综合合格率分析表
  976. this.ShowInDockPanel(F_RPT_040114.Instance);
  977. break;
  978. case "070510":
  979. // 月度成品入库预算表
  980. this.ShowInDockPanel(F_RPT_040116.Instance);
  981. break;
  982. #endregion
  983. #endregion
  984. #region 生产管理-注浆管理
  985. case "0601":
  986. //生产管理-注浆管理
  987. break;
  988. case "060101":
  989. //生产管理-注浆管理-注浆登记
  990. this.ShowInDockPanel(F_PM_0101.Instance);
  991. break;
  992. case "060102":
  993. //生产管理-注浆管理-注浆日报
  994. this.ShowInDockPanel(F_RPT_010101_1.Instance);
  995. break;
  996. case "060103":
  997. //生产管理-注浆管理-环境登记
  998. this.ShowInDockPanel(F_PM_1701.Instance);
  999. break;
  1000. case "060104":
  1001. //生产管理-注浆管理-环境日报
  1002. this.ShowDialogForm(new F_PM_1802());
  1003. break;
  1004. case "060105":
  1005. //生产管理-注浆管理-注浆变更
  1006. this.ShowDialogForm(new F_PM_2105());
  1007. break;
  1008. case "060106":
  1009. //生产管理-注浆管理-成型报损
  1010. this.ShowInDockPanel(F_PM_2701.Instance);
  1011. break;
  1012. case "060107":
  1013. //生产管理-注浆管理-撤销报损
  1014. this.ShowDialogForm(new F_PM_2801());
  1015. break;
  1016. #endregion
  1017. #region 生产管理-条码管理
  1018. case "0602":
  1019. //生产管理-条码管理
  1020. break;
  1021. case "060201":
  1022. //生产管理-条码生成
  1023. //this.ShowDialogForm(new F_PM_0103());
  1024. this.ShowDialogForm(new F_PM_0103());
  1025. break;
  1026. case "060202":
  1027. //生产管理-条码维护
  1028. //this.ShowDialogForm(new F_PM_0201());
  1029. this.ShowInDockPanel(F_PM_0203.Instance);
  1030. break;
  1031. case "060203":
  1032. //生产管理-商标设定
  1033. this.ShowDialogForm(new F_PM_2118());
  1034. break;
  1035. case "060207":
  1036. //生产管理-条码打印
  1037. this.ShowDialogForm(new F_MST_012006());
  1038. break;
  1039. case "060205":
  1040. //生产管理-开模报损
  1041. this.ShowDialogForm(new F_PM_2901());
  1042. break;
  1043. #endregion
  1044. #region 生产管理-生产数据采集
  1045. case "0603":
  1046. //生产管理-生产数据采集
  1047. //F_PM_0301 fpm0301 = F_PM_0301.Instance(13);
  1048. //ShowInDockPanel(fpm0301);
  1049. //break;
  1050. //case "06030101":
  1051. // //生产管理-工序检验
  1052. // break;
  1053. break;
  1054. #endregion
  1055. #region 生产管理-废弃产品管理
  1056. case "060401":
  1057. //生产管理-产品报损
  1058. this.ShowInDockPanel(F_PM_1101.Instance);
  1059. break;
  1060. #endregion
  1061. #region 检验管理
  1062. case "062001":
  1063. //检验管理-半成品检验
  1064. this.ShowInDockPanel(F_PM_2201.Instance);
  1065. break;
  1066. // 成品检验功能TODO
  1067. case "062003":
  1068. //检验管理-成品检验
  1069. this.ShowInDockPanel(F_PM_3401.Instance);
  1070. break;
  1071. #endregion
  1072. #region 生产订单
  1073. case "0621":
  1074. this.ShowInDockPanel(F_PM_2301.Instance);
  1075. break;
  1076. case "0622"://产成品交接
  1077. this.ShowInDockPanel(F_PM_2401.Instance);
  1078. break;
  1079. #endregion
  1080. #region 报表管理-生产数据
  1081. case "060501":
  1082. //生产数据-在产品明细数据
  1083. this.ShowInDockPanel(F_RPT_010401.Instance);
  1084. break;
  1085. case "060502":
  1086. //生产数据-产成品明细
  1087. this.ShowInDockPanel(F_RPT_010402.Instance);
  1088. break;
  1089. case "060503":
  1090. //生产数据-半检数据一览
  1091. this.ShowInDockPanel(F_PM_1601.Instance);
  1092. break;
  1093. #endregion
  1094. #region 半检数据
  1095. case "0606":
  1096. //生产数据-半检数据一览
  1097. this.ShowInDockPanel(F_PM_1603.Instance);
  1098. break;
  1099. case "0608":
  1100. // 在产盘点
  1101. this.ShowInDockPanel(F_PM_2101.Instance);
  1102. break;
  1103. case "062301":
  1104. // 成型盘点
  1105. this.ShowInDockPanel(F_PM_2601.Instance);
  1106. break;
  1107. case "0609":
  1108. //撤销包装
  1109. F_PM_2104 frm2104 = new F_PM_2104();
  1110. frm2104.ShowDialog();
  1111. break;
  1112. case "0610":
  1113. //损坏撤销
  1114. F_PM_2106 frm2106 = new F_PM_2106();
  1115. frm2106.ShowDialog();
  1116. break;
  1117. case "0611":
  1118. //公坯设定
  1119. F_PM_2107 frm2107 = new F_PM_2107();
  1120. frm2107.ShowDialog();
  1121. break;
  1122. case "0612":
  1123. //清除在产残留数据
  1124. this.ShowInDockPanel(F_PM_2108.Instance);
  1125. break;
  1126. case "0613":
  1127. //清除在产回收站残留数据
  1128. this.ShowInDockPanel(F_PM_2110.Instance);
  1129. break;
  1130. case "0614":
  1131. //清除在产临时数据
  1132. this.ShowInDockPanel(F_PM_2112.Instance);
  1133. break;
  1134. case "0615":
  1135. //计件撤销
  1136. F_PM_2115 frm2115 = new F_PM_2115();
  1137. frm2115.ShowDialog();
  1138. break;
  1139. case "061601":
  1140. //交坯撤销
  1141. F_PM_2116 frm2116 = new F_PM_2116();
  1142. frm2116.ShowDialog();
  1143. break;
  1144. case "0624":
  1145. //产品挂起
  1146. this.ShowInDockPanel(F_PM_3001.Instance);
  1147. break;
  1148. case "0626":
  1149. //品保抽查
  1150. this.ShowInDockPanel(F_PM_3101.Instance);
  1151. break;
  1152. #endregion
  1153. #region SAP
  1154. case "SAP0101":
  1155. this.ShowInDockPanel(F_SAP_HEGII_0101.Instance);
  1156. break;
  1157. case "SAP0102":
  1158. this.ShowInDockPanel(F_SAP_HEGII_0102.Instance);
  1159. break;
  1160. case "SAP0103":
  1161. this.ShowInDockPanel(F_SAP_HEGII_0103.Instance);
  1162. break;
  1163. case "SAP0104":
  1164. this.ShowInDockPanel(F_SAP_HEGII_0104.Instance);
  1165. break;
  1166. case "SAP0105":
  1167. this.ShowInDockPanel(F_SAP_HEGII_0105.Instance);
  1168. break;
  1169. case "SAP0106":
  1170. this.ShowInDockPanel(F_SAP_HEGII_0106.Instance);
  1171. break;
  1172. case "SAP0107":
  1173. this.ShowInDockPanel(F_SAP_HEGII_0107.Instance);
  1174. break;
  1175. case "SAP0108":
  1176. this.ShowInDockPanel(F_SAP_HEGII_0108.Instance);
  1177. break;
  1178. case "SAP0109":
  1179. this.ShowInDockPanel(F_SAP_HEGII_0109.Instance);
  1180. break;
  1181. case "SAP0111":
  1182. this.ShowInDockPanel(F_SAP_HEGII_0112.Instance);
  1183. break;
  1184. case "SAP0112":
  1185. this.ShowInDockPanel(F_SAP_HEGII_0113.Instance);
  1186. break;
  1187. #endregion
  1188. #region 送货单
  1189. case "063101":
  1190. this.ShowInDockPanel(F_PM_3501.Instance);
  1191. break;
  1192. #endregion
  1193. #region 生产计划 xuwei 20190827 add
  1194. //case "PP0101":
  1195. // //年计划
  1196. // this.ShowInDockPanel(F_PP_0101.Instance);
  1197. // break;
  1198. //case "PP0102":
  1199. // //月计划
  1200. // this.ShowInDockPanel(F_PP_0201.Instance);
  1201. // break;
  1202. //case "PP0103":
  1203. // //日计划
  1204. // this.ShowInDockPanel(F_PP_0301.Instance);
  1205. // break;
  1206. //case "PP0104":
  1207. // //计划分析
  1208. // this.ShowInDockPanel(F_PP_0121.Instance);
  1209. // break;
  1210. #endregion
  1211. #region 其他
  1212. default:
  1213. TreeNode treenodes = ((TreeView)sender).SelectedNode;
  1214. if (treenodes.Name.ToString().StartsWith("0603"))
  1215. {
  1216. string[] sub = treenodes.Tag.ToString().Split(',');
  1217. if (sub[0] != string.Empty)
  1218. {
  1219. if (Convert.ToInt32(sub[0]) == Convert.ToInt32(Constant.ProcedureModelType.DeliverMud))
  1220. {
  1221. //生产管理-交坯
  1222. F_PM_0401 frm0401 = F_PM_0401.Instance(Convert.ToInt32(sub[1]), treenodes.Text);
  1223. this.ShowInDockPanel(frm0401);
  1224. }
  1225. else if (Convert.ToInt32(sub[0]) == Convert.ToInt32(Constant.ProcedureModelType.LoadCar))
  1226. {
  1227. //生产管理-装窑车
  1228. F_PM_0501 frm0501 = F_PM_0501.Instance(Convert.ToInt32(sub[1]), treenodes.Text);
  1229. this.ShowInDockPanel(frm0501);
  1230. }
  1231. else if (Convert.ToInt32(sub[0]) == Convert.ToInt32(Constant.ProcedureModelType.Normal))
  1232. {
  1233. if (Convert.ToInt32(sub[2]) == 1) // 计件模式
  1234. {
  1235. F_PM_0301 frm0301 = F_PM_0301.Instance(Convert.ToInt32(sub[1]), treenodes.Text);
  1236. this.ShowInDockPanel(frm0301);
  1237. }
  1238. else if (Convert.ToInt32(sub[2]) == 2) // 半成品检验(标准检验)
  1239. {
  1240. F_PM_0901 frm0901 = F_PM_0901.Instance(Convert.ToInt32(sub[1]), treenodes.Text);
  1241. this.ShowInDockPanel(frm0901);
  1242. }
  1243. }
  1244. //xuwei add 2020-06-15 加冷补 计件模式
  1245. else if (Convert.ToInt32(sub[0]) == Convert.ToInt32(Constant.ProcedureModelType.ColdPatch))
  1246. {
  1247. F_PM_0301 frm0301 = F_PM_0301.Instance(Convert.ToInt32(sub[1]), treenodes.Text);
  1248. this.ShowInDockPanel(frm0301);
  1249. }
  1250. else if (Convert.ToInt32(sub[0]) == Convert.ToInt32(Constant.ProcedureModelType.IntoKiln))
  1251. {
  1252. //生产管理-入窑
  1253. F_PM_0601 frm0601 = F_PM_0601.Instance(Convert.ToInt32(sub[1]), treenodes.Text);
  1254. this.ShowInDockPanel(frm0601);
  1255. }
  1256. else if (Convert.ToInt32(sub[0]) == Convert.ToInt32(Constant.ProcedureModelType.OutKiln))
  1257. {
  1258. //生产管理-出窑
  1259. F_PM_0601 frm0601 = F_PM_0601.Instance(Convert.ToInt32(sub[1]), treenodes.Text);
  1260. this.ShowInDockPanel(frm0601);
  1261. }
  1262. else if (Convert.ToInt32(sub[0]) == Convert.ToInt32(Constant.ProcedureModelType.UnloadCar))
  1263. {
  1264. //生产管理-卸窑车
  1265. F_PM_0601 frm0601 = F_PM_0601.Instance(Convert.ToInt32(sub[1]), treenodes.Text);
  1266. this.ShowInDockPanel(frm0601);
  1267. }
  1268. else if (Convert.ToInt32(sub[0]) == Convert.ToInt32(Constant.ProcedureModelType.CarAdd))
  1269. {
  1270. //生产管理-窑车补件
  1271. F_PM_0501 frm0501 = F_PM_0501.Instance(Convert.ToInt32(sub[1]), treenodes.Text);
  1272. this.ShowInDockPanel(frm0501);
  1273. }
  1274. else if (Convert.ToInt32(sub[0]) == Convert.ToInt32(Constant.ProcedureModelType.AdobeStock))
  1275. {
  1276. //生产管理-坯库
  1277. F_PM_0301 frm0301 = F_PM_0301.Instance(Convert.ToInt32(sub[1]), treenodes.Text);
  1278. this.ShowInDockPanel(frm0301);
  1279. }
  1280. else if (Convert.ToInt32(sub[0]) == Convert.ToInt32(Constant.ProcedureModelType.QualityStatistics))
  1281. {
  1282. //生产管理-成检(质量统计)
  1283. F_PM_1201 frm1201 = F_PM_1201.Instance(Convert.ToInt32(sub[1]), treenodes.Text);
  1284. this.ShowInDockPanel(frm1201);
  1285. }
  1286. //xuwei add 2019-12-12
  1287. else if (Convert.ToInt32(sub[0]) == Convert.ToInt32(Constant.ProcedureModelType.SemiQualityStatistics))
  1288. {
  1289. //生产管理-半检(质量统计)
  1290. F_PM_3201 frm3201 = F_PM_3201.Instance(Convert.ToInt32(sub[1]), treenodes.Text);
  1291. this.ShowInDockPanel(frm3201);
  1292. }
  1293. else if (Convert.ToInt32(sub[0]) == Convert.ToInt32(Constant.ProcedureModelType.IntoKilnCheck))
  1294. {
  1295. //生产管理-入窑前检验
  1296. F_PM_1301 frm1301 = F_PM_1301.Instance(Convert.ToInt32(sub[1]), treenodes.Text);
  1297. this.ShowInDockPanel(frm1301);
  1298. }
  1299. else if (Convert.ToInt32(sub[0]) == Convert.ToInt32(Constant.ProcedureModelType.SpecialRepair))
  1300. {
  1301. //生产管理-干补
  1302. F_PM_2001 frm2001 = F_PM_2001.Instance(Convert.ToInt32(sub[1]), treenodes.Text);
  1303. this.ShowInDockPanel(frm2001);
  1304. }
  1305. else if (Convert.ToInt32(sub[0]) == Convert.ToInt32(Constant.ProcedureModelType.Recovery))
  1306. {
  1307. //生产管理-回收
  1308. F_PM_2501 frm2501 = F_PM_2501.Instance(Convert.ToInt32(sub[1]), treenodes.Text);
  1309. this.ShowInDockPanel(frm2501);
  1310. }
  1311. }
  1312. }
  1313. break;
  1314. #endregion
  1315. }
  1316. }
  1317. }
  1318. }
  1319. }
  1320. catch (Exception ex)
  1321. {
  1322. // 对异常进行共通处理
  1323. ExceptionManager.HandleEventException(this.ToString(),
  1324. MethodBase.GetCurrentMethod().Name, this.Text, ex);
  1325. }
  1326. }
  1327. /// <summary>
  1328. /// 展开全部节点
  1329. /// </summary>
  1330. /// <param name="sender"></param>
  1331. /// <param name="e"></param>
  1332. private void btnExpand_Click(object sender, EventArgs e)
  1333. {
  1334. TreeNode node = null;
  1335. if (this.trvMenu.SelectedNode != null)
  1336. {
  1337. node = this.trvMenu.SelectedNode;
  1338. this.trvMenu.SelectedNode = null;
  1339. }
  1340. else if (this.trvMenu.Nodes.Count > 0)
  1341. {
  1342. node = this.trvMenu.Nodes[0];
  1343. }
  1344. this.trvMenu.ExpandAll();
  1345. if (node != null)
  1346. {
  1347. this.trvMenu.SelectedNode = node;
  1348. }
  1349. this.trvMenu.Focus();
  1350. }
  1351. /// <summary>
  1352. /// 折叠全部节点
  1353. /// </summary>
  1354. /// <param name="sender"></param>
  1355. /// <param name="e"></param>
  1356. private void btnCollapse_Click(object sender, EventArgs e)
  1357. {
  1358. this.trvMenu.CollapseAll();
  1359. this.trvMenu.Focus();
  1360. }
  1361. /// <summary>
  1362. /// 设置按钮大小
  1363. /// </summary>
  1364. /// <param name="sender"></param>
  1365. /// <param name="e"></param>
  1366. private void trvMenu_SizeChanged(object sender, EventArgs e)
  1367. {
  1368. this.btnExpand.Width = this.trvMenu.Width / 2;
  1369. }
  1370. #endregion
  1371. #region 私有方法
  1372. /// <summary>
  1373. /// 设置窗体按钮的文本信息
  1374. /// </summary>
  1375. private void SetFromTitleInfo()
  1376. {
  1377. this.Text = FormTitles.F_SYS_0202;
  1378. }
  1379. /// <summary>
  1380. /// 获取用户菜单的一级菜单
  1381. /// </summary>
  1382. /// <param name="treeTable">用户菜单数据集</param>
  1383. /// <returns>一级菜单字典</returns>
  1384. private Dictionary<string, string> InitNavigationButtons(DataTable treeTable)
  1385. {
  1386. try
  1387. {
  1388. Dictionary<string, string> dicTemp = new Dictionary<string, string>();
  1389. DataRow[] navigationRows = treeTable.Select("LEN(FunctionCode) = " + Constant.INT_IS_TWO.ToString()); // 编号2为一级菜单
  1390. foreach (DataRow newRow in navigationRows)
  1391. {
  1392. string funcName = newRow["FunctionName"].ToString();
  1393. string funcCode = newRow["FunctionCode"].ToString();
  1394. if (!dicTemp.ContainsKey(funcCode))
  1395. {
  1396. dicTemp.Add(funcCode, funcName);
  1397. }
  1398. }
  1399. return dicTemp;
  1400. }
  1401. catch (Exception ex)
  1402. {
  1403. throw ex;
  1404. }
  1405. }
  1406. /// <summary>
  1407. /// 初始化树形控件
  1408. /// </summary>
  1409. /// <param name="treeTable">菜单数据表</param>
  1410. /// <param name="rows">待处理的菜单集合</param>
  1411. /// <param name="node">当前树节点</param>
  1412. private void InitTreeView(DataTable treeTable, DataRow[] rows, TreeNode node)
  1413. {
  1414. foreach (DataRow row in rows)
  1415. {
  1416. TreeNode sNode;
  1417. if (node == null)
  1418. {
  1419. sNode = new TreeNode();
  1420. sNode.Text = row["FunctionName"].ToString();
  1421. sNode.Name = row["FunctionCode"].ToString();
  1422. //xuwei add 2019-11-28
  1423. sNode.Tag = row["Url"].ToString();
  1424. //xuwei end
  1425. if (Constant.FunctionFlag.Form.GetHashCode().ToString().Equals(row["FunctionFlag"].ToString().Trim()))
  1426. {
  1427. sNode.ImageIndex = Constant.INT_IS_ONE;
  1428. sNode.SelectedImageIndex = Constant.INT_IS_ONE;
  1429. }
  1430. this.trvMenu.Nodes.Add(sNode);
  1431. }
  1432. else
  1433. {
  1434. sNode = node.Nodes.Add(row["FunctionName"].ToString());
  1435. sNode.Name = row["FunctionCode"].ToString();
  1436. #region 陈冰 修改 增加工序类别和工序ID 2014-9-23
  1437. //node.Tag = nodeRoot["FunctionCode"].ToString();
  1438. //xuwei modify 2019-11-28
  1439. //sNode.Tag = row["ProcedureModeltype"].ToString() + "," + row["ProcedureID"].ToString() + "," + row["ProcedureModel"].ToString();
  1440. sNode.Tag = row["ProcedureModeltype"].ToString() + "," + row["ProcedureID"].ToString() + "," + row["ProcedureModel"].ToString()+"," + row["Url"].ToString();
  1441. //xuwei end
  1442. #endregion
  1443. if (Constant.FunctionFlag.Form.GetHashCode().ToString().Equals(row["FunctionFlag"].ToString().Trim()))
  1444. {
  1445. sNode.ImageIndex = Constant.INT_IS_ONE;
  1446. sNode.SelectedImageIndex = Constant.INT_IS_ONE;
  1447. }
  1448. }
  1449. string filterExpression = "Functionlevel LIKE '" + row["Functionlevel"].ToString()
  1450. + "%' AND LEN(Functionlevel) = " + (row["Functionlevel"].ToString().Length + Constant.INT_IS_TWO);
  1451. DataRow[] subRows = treeTable.Select(filterExpression);
  1452. // 递归方法
  1453. InitTreeView(treeTable, subRows, sNode);
  1454. }
  1455. }
  1456. /// <summary>
  1457. /// 显示对应的页面中主窗体中
  1458. /// </summary>
  1459. /// <param name="dockPanelBaseForm">需要停靠的DockPanelBase</param>
  1460. private void ShowInDockPanel(DockPanelBase dockPanelBaseForm)
  1461. {
  1462. try
  1463. {
  1464. if (dockPanelBaseForm == null)
  1465. {
  1466. return;
  1467. }
  1468. dockPanelBaseForm.Show(_dockPanel, DockState.Document);
  1469. dockPanelBaseForm.Activate();
  1470. }
  1471. catch (Exception ex)
  1472. {
  1473. throw ex;
  1474. }
  1475. }
  1476. /// <summary>
  1477. /// 模态打开窗体
  1478. /// </summary>
  1479. /// <param name="formBase"></param>
  1480. private void ShowDialogForm(FormBase formBase)
  1481. {
  1482. try
  1483. {
  1484. if (formBase == null)
  1485. {
  1486. return;
  1487. }
  1488. formBase.ShowDialog();
  1489. }
  1490. catch (Exception ex)
  1491. {
  1492. throw ex;
  1493. }
  1494. }
  1495. private void InitNavigationTreeView(DataTable treeTable)
  1496. {
  1497. try
  1498. {
  1499. TreeNode node = null;
  1500. DataRow[] navigationRows = treeTable.Select
  1501. ("LEN(Functionlevel) = 2");
  1502. // 递归生成功能权限树
  1503. this.InitTreeView(treeTable, navigationRows, node);
  1504. }
  1505. catch (Exception ex)
  1506. {
  1507. throw ex;
  1508. }
  1509. }
  1510. #endregion
  1511. }
  1512. }