protected string GetTypeName(string orderNum) { XpmCodeServices xpmCodeServices = new XpmCodeServices(); IList <XpmCode> bySignCode = xpmCodeServices.GetBySignCode("taskType"); string result = string.Empty; foreach (XpmCode current in bySignCode) { if (current.CodeID == orderNum.Length / 3) { result = current.CodeName; break; } } return(result); }
private string GetXpmName(int codeId) { XpmCodeServices xpmCodeServices = new XpmCodeServices(); System.Collections.Generic.IList <XpmCode> bySignCode = xpmCodeServices.GetBySignCode("TenderAppraiseMethod"); string result = string.Empty; foreach (XpmCode current in bySignCode) { if (current.CodeID == codeId) { result = current.CodeName; } } return(result); }
protected void BindInfos() { this.hfldStartReportId.Value = this.reportId; try { PTStartReport byId = this.startReportServer.GetById(this.reportId); if (byId != null) { this.BindProject(byId.PrjGuid); this.txtSingleProjectName.Text = byId.SingleProjectName; this.txtProjectPlace.Text = byId.ProjectPlace; this.txtConstructionUnit.Text = byId.ConstructionUnit; if (byId.ApplyStartDate.HasValue) { this.txtApplyStartDate.Text = byId.ApplyStartDate.Value.ToString("yyyy-MM-dd"); } if (byId.RealityStartDate.HasValue) { this.txtRealityStartDate.Text = byId.RealityStartDate.Value.ToString("yyyy-MM-dd"); } this.txtMainContent.Text = byId.MainContent; this.txtPrepareCondition.Text = byId.PrepareCondition; this.txtExistenceProblem.Text = byId.ExistenceProblem; this.txtSupervisorUnitOpinion.Text = byId.SupervisorUnitOpinion; this.txtBuildUnitOpinion.Text = byId.BuildUnitOpinion; this.txtApplyUnit.Text = byId.ApplyUnit; this.txtAuditUnit.Text = byId.AuditUnit; if (!string.IsNullOrEmpty(byId.ImplDep)) { System.Collections.Generic.IList <XpmCode> list = new System.Collections.Generic.List <XpmCode>(); XpmCodeServices xpmCodeServices = new XpmCodeServices(); list = xpmCodeServices.GetBySignCode("dd"); foreach (XpmCode current in list) { if (current.NoteID == System.Convert.ToInt32(byId.ImplDep)) { this.txtImplDep.Text = current.CodeName; } } } this.lblActualPrincipal.Text = byId.ActualPrincipal; System.Guid id = new System.Guid(this.prjId); PTPrjInfoZTB byId2 = new PTPrjInfoZTBService().GetById(id); if (byId2 != null) { this.lblMainPrincipal.Text = byId2.WorkUnit; this.txtPrjName.Text = byId2.PrjName; this.hfldPrjState.Value = byId2.PrjState.ToString(); } PTPrjInfo byId3 = new PTPrjInfoService().GetById(this.prjId); if (byId3 != null) { this.lblMainPrincipal.Text = byId3.WorkUnit; this.txtPrjName.Text = byId3.PrjName; this.hfldPrjState.Value = byId3.PrjState.ToString(); } } else { this.BindProject(this.reportId); } } catch { this.BindProject(this.reportId); } }