private void AddStatistic() { if (Orgpage != null) { if (Orgpage.ObjItem != null) { if (Orgpage.ObjItem.ItemID != null && Orgpage.ObjItem.ItemID.Length > 3) { //保存机构和技能组 ABCDConfigPage abcdPage = new ABCDConfigPage(); abcdPage.CurrentApp = CurrentApp; this.PopupPanel.Title = CurrentApp.GetLanguageInfo("310802P001", "KPI Design"); abcdPage.ParentPage = this.Orgpage; abcdPage.PageGrandParent = this; abcdPage.OrgItem = Orgpage.ObjItem; abcdPage.OperationCode = Orgpage.OparetionCode; this.PopupPanel.Content = abcdPage; this.PopupPanel.IsOpen = true; } } } }
public override void ChangeLanguage() { base.ChangeLanguage(); //PageHead.AppName = CurrentApp.GetLanguageInfo("3108000", "UMP Statistical Param Configuration"); CurrentApp.AppTitle = CurrentApp.GetLanguageInfo(string.Format("FO{0}", CurrentApp.ModuleID), "Advance Configuration"); LbLeft.Text = CurrentApp.GetLanguageInfo("3108L001", "Statistical Param List"); LbCurrentObject.Text = CurrentApp.GetLanguageInfo("3108L002", "参数"); LbRight.Text = CurrentApp.GetLanguageInfo("3108L003", "操作"); LbDescriptions.Text = CurrentApp.GetLanguageInfo("3108L004", "描述"); for (int i = 0; i < ListQP.Count; i++) { string ID = string.Empty; //GetParamID(ListQP[i].GroupID.ToString().Substring(4), out ID); ID = ListQP[i].ParamID.ToString().Substring(5).Replace("0", ""); ListQP[i].Name = CurrentApp.GetLanguageInfo(string.Format("31081{0}", ID), ListQP[i].GroupID.ToString()); ListQP[i].Description = CurrentApp.GetLanguageInfo(string.Format("3108D1{0}", ID), ListQP[i].GroupID.ToString()); } //更新左边树的语言 for (int i = 0; i < mListObjectItems.Count; i++) { ObjectItem item = mListObjectItems[i]; item.Name = CurrentApp.GetLanguageInfo(string.Format("FO{0}", item.ItemID), "change lang"); } //更新操作的语言 InitOperation(); InitBasicOperations(); //更新Border语言 if (this.PanelPropertyList.Child != null) { string Code = objectItemTree.ItemID; string tempDescription = string.Format("{0}:\r\n", objectItemTree.Name); switch (Code) { //查询质检参数配置 case "31080101001": case "31080101002": case "31080101003": QPCPage.ChangeLanguage(); QualityParam QPTemp = objectItemTree.Data as QualityParam; List <QualityParam> QPTempList = (from LQP in ListQP where LQP.GroupID == QPTemp.GroupID orderby LQP.SortID select LQP).ToList(); TxtDescription.Text = string.Format("{0}:\n\n{1}\n\n{2}", QPTemp.Name, QPTempList[0].Description, QPTempList[1].Description); break; case "31080101004": QPTCPage.ChangeLanguage(); List <QualityParam> QPTTempList = (from LQP in ListQP where LQP.ParentTreeID == objectItemTree.ItemID orderby LQP.SortID select LQP).ToList(); //TxtDescription.Text = string.Format(" {0}:\n\n {1}\n\n {2}", objectItemTree.Name, QPTTempList[0].Description, QPTTempList[1].Description); foreach (QualityParam info in QPTTempList) { tempDescription += string.Format("{0}\r\n", info.Description); } TxtDescription.Text = tempDescription; break; //abcd参数配置 case "31080102001": case "31080102002": paramsItemsconfigPage.ChangeLanguage(); //combStatiParaItemsDesigner.ChangeLanguage(); TxtDescription.Text = objectItemTree.Name; CreatButton(); break; case "": break; //机构和技能组 case "31080201": case "31080202": Orgpage.ChangeLanguage(); TxtDescription.Text = objectItemTree.Name; CreatButton(); break; default: if (Code.Length > 8) { paramsItemsconfigPage.ChangeLanguage(); TxtDescription.Text = objectItemTree.Name; } break; } } //更新panel语言 if (PopupPanel.Content != null) { string Code = objectItemTree.ItemID; switch (Code) { //abcd参数配置 case "31080102001": case "31080102002": break; case "": break; //机构和技能组 case "31080201": case "31080202": ABCDConfigPage abcdPage = PopupPanel.Content as ABCDConfigPage; abcdPage.CurrentApp = CurrentApp; abcdPage.ChangeLanguage(); break; default: if (Code.Length > 8) { } break; } } }