private string GetPrjTypeName(System.Guid priGuid)
 {
     System.Collections.Generic.IList <ProjectKind> projectKinds = ProjectKind.GetProjectKinds(priGuid);
     if (projectKinds != null && projectKinds.Count > 0)
     {
         return(TypeList.GetTypeName(projectKinds[0].PrjKind, "1", "ProjectType"));
     }
     return(string.Empty);
 }
示例#2
0
    private void BindLbl(string PrjId)
    {
        TenderInfo byId  = TenderInfo.GetById(PrjId);
        string     state = byId.PrjState.ToString();

        this.lblOwner.Text             = byId.OwnerName;
        this.lblOwnerLinkMan.Text      = byId.OwnerLinkManName;
        this.lblOwnerLinkManPhone.Text = byId.OwnerLinkPhone;
        this.lblOwnerAddress.Text      = byId.OwnerAddress;
        this.lblCorp.Text  = byId.ProjPeopleCorp;
        this.lblPhone.Text = byId.ProjPeopleTel;
        this.lblDuty.Text  = byId.ProjPeopleDuty;
        this.lblName.Text  = byId.ProjPeopleUserName;
        this.lblForecastProfitRate.Text       = byId.ForecastProfitRate.ToString();
        this.lblEngineeringEstimates.Text     = byId.EngineeringEstimates;
        this.lblApprovalOf.Text               = byId.PrjApprovalOf;
        this.lblManagementMargin.Text         = byId.ManagementMargin.ToString();
        this.lblMigrantQualityMarginRate.Text = byId.MigrantQualityMarginRate.ToString();
        this.lblWithholdingTaxRate.Text       = byId.WithholdingTaxRate.ToString();
        this.lblPerformanceBond.Text          = byId.PerformanceBond.ToString();
        this.lblElseMargin.Text               = byId.ElseMargin.ToString();
        this.lblFundWorkable.Text             = byId.PrjFundWorkable;
        this.lblPrjState.Text    = TypeList.GetTypeName(byId.PrjProperty, "1", "ProjectProperty");
        this.lblBllProducer.Text = byId.GetUserName(base.UserCode);
        this.lblPrintDate.Text   = System.DateTime.Now.ToShortDateString();
        if (!string.IsNullOrEmpty(byId.Province))
        {
            this.lblArea.Text = byId.Province + byId.City;
        }
        this.lblBudgetWay.Text    = TypeList.GetTypeName(byId.BudgetWay, "1", "ysType");
        this.lblBuildingArea.Text = byId.BuildingArea;
        if (byId.EngineeringTypes != null)
        {
            System.Text.StringBuilder stringBuilder = new System.Text.StringBuilder();
            foreach (EngineeringType current in byId.EngineeringTypes)
            {
                stringBuilder.Append(current.ToString()).Append("<br />");
            }
            this.lblBuildingType.Text = stringBuilder.ToString();
        }
        this.lblContractWay.Text = TypeList.GetTypeName(byId.ContractWay, "1", "cbType");
        this.lblCounsellor.Text  = byId.Counsellor;
        this.lblDesigner.Text    = byId.Designer;
        this.lblDuration.Text    = byId.Duration;
        this.lblElseRequest.Text = this.ReplaceTxt(byId.ProjElseRequest);
        this.lblEndDate.Text     = Common2.GetTime(byId.EndDate.ToString());
        if (byId.BuildingTypeNo.ToString() != "0")
        {
            this.lblgrade.Text = byId.BuildingTypeNo.ToString();
        }
        this.lblInfoOrigin.Text     = this.ReplaceTxt(byId.ProjInfoOrigin);
        this.lblInspector.Text      = byId.Inspector;
        this.lblKeyPart.Text        = TypeList.GetTypeName(byId.KeyPart, "1", "primaryGrade");
        this.lblOtherStatement.Text = this.ReplaceTxt(byId.OtherStatement);
        this.lblPayCondition.Text   = TypeList.GetTypeName(byId.PayCondition, "1", "payment");
        this.lblPayWay.Text         = TypeList.GetTypeName(byId.PayWay, "1", "jsType");
        this.lblPhone.Text          = byId.ProjPeopleTel;
        this.lblPrjCode.Text        = byId.PrjCode;
        if (byId.PrjCost.ToString() != "" && byId.PrjCost.ToString() != "0")
        {
            this.lblPrjCost.Text = byId.PrjCost.ToString();
        }
        this.lblPrjFundInfo.Text = byId.PrjFundInfo;
        this.lblPrjInfo.Text     = this.ReplaceTxt(byId.PrjInfo);
        this.lblDutyPerson.Text  = byId.PrjDutyPersonName;
        if (byId.PrjKinds != null)
        {
            System.Text.StringBuilder stringBuilder2 = new System.Text.StringBuilder();
            System.Text.StringBuilder stringBuilder3 = new System.Text.StringBuilder();
            foreach (ProjectKind current2 in byId.PrjKinds)
            {
                stringBuilder2.Append(current2.ProfessionalCost.ToString());
                stringBuilder3.Append(TypeList.GetTypeName(current2.PrjKind, "1", "ProjectType"));
            }
            this.lblPrjProfessionalCost.Text = stringBuilder2.ToString();
            this.lblPrjKindClass.Text        = stringBuilder3.ToString();
        }
        this.lblPrjManager.Text   = byId.PrjManagerName;
        this.lblPrjName.Text      = byId.PrjName;
        this.lblPrjPlace.Text     = byId.PrjPlace;
        this.lblQualityClass.Text = TypeList.GetTypeName(byId.QualityClass, "1", "ProjectQuality");
        if (byId.PrjRanks != null)
        {
            System.Text.StringBuilder stringBuilder4 = new System.Text.StringBuilder();
            foreach (ProjectRank current3 in byId.PrjRanks)
            {
                stringBuilder4.Append(TypeList.GetTypeName(current3.Rank, "1", "zzGrade") + " " + current3.RankLevel).Append("<br />");
            }
            this.lblRank.Text = stringBuilder4.ToString();
        }
        this.lblRemark1.Text         = this.ReplaceTxt(byId.Remark);
        this.lblStartDate.Text       = Common2.GetTime(byId.StartDate.ToString());
        this.lblTelphone.Text        = byId.Telephone;
        this.lblTenderWay.Text       = TypeList.GetTypeName(byId.TenderWay, "1", "zbType");
        this.lblTotalHouseNum.Text   = byId.TotalHouseNum;
        this.lblUndergroundArea.Text = byId.UndergroundArea;
        this.lblUsegrounArea.Text    = byId.UsegrounArea;
        this.lblAfforestArea.Text    = byId.AfforestArea;
        this.lblParkArea.Text        = byId.ParkArea;
        this.lblPrjReadOne.Text      = WebUtil.GetUserNames(byId.PrjReadOne);
        if (byId.WorkUnit != "")
        {
            this.lblWorkUnit.Text = byId.WorkUnitName;
        }
        this.upload.InnerHtml               = this.FilesBind(PrjId + "_" + ProjectParameter.PreApproval);
        this.lblPrjManagerRequire.Text      = byId.PrjManagerRequire;
        this.lblTechnicalLeaderRequire.Text = byId.TechnicalLeaderRequire;
        this.showInfo(byId, state, PrjId);
        PTPrjInfoZTBService pTPrjInfoZTBService = new PTPrjInfoZTBService();

        System.Guid  id    = new System.Guid(PrjId);
        PTPrjInfoZTB byId2 = pTPrjInfoZTBService.GetById(id);

        if (byId2 != null && byId2.PrjState == System.Convert.ToInt32(ProjectParameter.GiveUpState))
        {
            this.tr_fq.Visible = true;
            if (!byId2.GiveUpTime.HasValue)
            {
                this.lbGiveUpTime.Text = string.Empty;
            }
            else
            {
                this.lbGiveUpTime.Text = Common2.GetTime(byId2.GiveUpTime);
            }
            this.lbOperator.Text     = WebUtil.GetUserNames(byId2.Operator);
            this.lbGiveUpReason.Text = byId2.GiveUpReason;
            this.lbGiveUpNote.Text   = byId2.GiveUpNote;
            string state2 = byId2.OldState.ToString();
            this.showInfo(byId, state2, PrjId);
            this.trAudit_giveUp.Visible = true;
            this.file_GiveUp.InnerHtml  = this.FilesBind(PrjId + "_" + ProjectParameter.GiveUpState);
        }
    }
示例#3
0
    private void BindLbl(string PrjId)
    {
        ProjectInfo byId = ProjectInfo.GetById(PrjId);

        if (byId != null)
        {
            this.lblPrjId.Text        = PrjId.ToString();
            this.lblBllProducer.Text  = byId.GetUserName(base.UserCode);
            this.lblPrintDate.Text    = System.DateTime.Now.ToShortDateString();
            this.lblPrjState.Text     = TypeList.GetTypeName(byId.PrjState.ToString(), "2", "ProjectState");
            this.lblBudgetWay.Text    = TypeList.GetTypeName(byId.BudgetWay, "1", "ysType");
            this.lblContractWay.Text  = TypeList.GetTypeName(byId.ContractWay, "1", "cbType");
            this.lblKeyPart.Text      = TypeList.GetTypeName(byId.KeyPart, "1", "primaryGrade");
            this.lblPayCondition.Text = TypeList.GetTypeName(byId.PayCondition, "1", "payment");
            this.lblPayWay.Text       = TypeList.GetTypeName(byId.PayWay, "1", "jsType");
            if (byId.PrjTypes != null)
            {
                System.Text.StringBuilder stringBuilder  = new System.Text.StringBuilder();
                System.Text.StringBuilder stringBuilder2 = new System.Text.StringBuilder();
                foreach (ProjectKind current in byId.PrjTypes)
                {
                    stringBuilder2.Append(current.ProfessionalCost.ToString()).Append("<br />");
                    stringBuilder.Append(TypeList.GetTypeName(current.PrjKind, "1", "ProjectType")).Append("<br />");
                }
                this.lblPrjKindClass.Text        = stringBuilder.ToString();
                this.lblPrjProfessionalCost.Text = stringBuilder2.ToString();
            }
            this.lblProperty.Text     = TypeList.GetTypeName(byId.PrjProperty, "1", "ProjectProperty");
            this.lblInfoOrigin.Text   = this.ReplaceTxt(byId.ProjInfoOrigin);
            this.lblElseRequest.Text  = this.ReplaceTxt(byId.ProjElseRequest);
            this.lblQualityClass.Text = TypeList.GetTypeName(byId.QualityClass, "1", "ProjectQuality");
            if (byId.PrjRanks != null)
            {
                System.Text.StringBuilder stringBuilder3 = new System.Text.StringBuilder();
                foreach (ProjectRank current2 in byId.PrjRanks)
                {
                    stringBuilder3.Append(TypeList.GetTypeName(current2.Rank, "1", "zzGrade") + " " + current2.RankLevel).Append("<br />");
                }
                this.lblRank.Text = stringBuilder3.ToString();
            }
            this.lblTenderWay.Text = TypeList.GetTypeName(byId.TenderWay, "1", "zbType");
            this.lblXmgroup.Text   = TypeList.GetXmlGroupName(byId.Xmgroup);
            if (byId.EngineeringTypes != null)
            {
                System.Text.StringBuilder stringBuilder4 = new System.Text.StringBuilder();
                foreach (EngineeringType current3 in byId.EngineeringTypes)
                {
                    stringBuilder4.Append(current3.ToString()).Append("<br />");
                }
                this.lblBuildingType.Text = stringBuilder4.ToString();
            }
            this.lblTelphone.Text = byId.Telephone;
            if (byId.ProgAgent != "")
            {
                this.lblAgent.Text = byId.ProgAgentName;
            }
            this.lblBuildingArea.Text   = byId.BuildingArea;
            this.lblDesigner.Text       = byId.Designer;
            this.lblDuration.Text       = byId.Duration;
            this.lblEndDate.Text        = Common2.GetTime(byId.EndDate);
            this.lblgrade.Text          = byId.PrjGrade;
            this.lblInspector.Text      = byId.Inspector;
            this.lblOtherStatement.Text = StringUtility.ReplaceTxt(byId.OtherStatement);
            this.lblPrjCode.Text        = byId.PrjCode;
            if (byId.PrjCost.ToString() != "0" && byId.PrjCost.ToString() != "")
            {
                this.lblPrjCost.Text = byId.PrjCost.ToString();
            }
            this.lblPrjFundInfo.Text = byId.PrjFundInfo;
            this.lblPrjInfo.Text     = StringUtility.ReplaceTxt(byId.PrjInfo);
            if (byId.PrjManager != "")
            {
                this.lblPrjManager.Text = byId.PrjManagerName;
            }
            if (byId.Businessman != "")
            {
                this.lblBusinessman.Text = byId.BusinessmanName;
            }
            this.lblPrjName.Text         = byId.PrjName;
            this.lblPrjPlace.Text        = byId.PrjPlace;
            this.lblRemark1.Text         = StringUtility.ReplaceTxt(byId.Remark);
            this.lblStartDate.Text       = Common2.GetTime(byId.StartDate);
            this.lblTotalHouseNum.Text   = byId.TotalHouseNum;
            this.lblUndergroundArea.Text = byId.UndergroundArea;
            this.lblUsegrounArea.Text    = byId.UsegrounArea;
            this.lblAfforestArea.Text    = byId.AfforestArea;
            this.lblParkArea.Text        = byId.ParkArea;
            if (byId.WorkUnit != "")
            {
                this.lblWorkUnit.Text = byId.WorkUnitName;
            }
            this.lblForecastProfitRate.Text   = byId.ForecastProfitRate.ToString();
            this.lblEngineeringEstimates.Text = byId.EngineeringEstimates;
            if (byId.PrjDutyPerson != "")
            {
                this.lblDutyPerson.Text = byId.PrjDutyPersonName;
            }
            this.lblApprovalOf.Text               = byId.PrjApprovalOf;
            this.lblFundWorkable.Text             = byId.PrjFundWorkable;
            this.lblManagementMargin.Text         = byId.ManagementMargin.ToString();
            this.lblMigrantQualityMarginRate.Text = byId.MigrantQualityMarginRate.ToString();
            this.lblWithholdingTaxRate.Text       = byId.WithholdingTaxRate.ToString();
            this.lblPerformanceBond.Text          = byId.PerformanceBond.ToString();
            this.lblElseMargin.Text               = byId.ElseMargin.ToString();
            this.lblOwner.Text             = byId.OwnerName;
            this.lblOwnerLinkMan.Text      = byId.OwnerLinkMan;
            this.lblOwnerLinkManPhone.Text = byId.OwnerLinkPhone;
            this.lblOwnerAddress.Text      = byId.OwnerAddress;
            this.lblCorp.Text                   = byId.ProjPeopleCorp;
            this.lblPhone.Text                  = byId.ProjPeopleTel;
            this.lblDuty.Text                   = byId.ProjPeopleDuty;
            this.lblName.Text                   = byId.ProjPeopleUserName;
            this.lblPrjManagerRequire.Text      = byId.PrjManagerRequire;
            this.lblTechnicalLeaderRequire.Text = byId.TechnicalLeaderRequire;
            this.lblPrjReadOne.Text             = WebUtil.GetUserNames(byId.PrjReadOne);
            if (!string.IsNullOrEmpty(byId.Province))
            {
                if (byId.City == "北京" || byId.City == "上海" || byId.City == "天津" || byId.City == "重庆" || byId.City == "香港" || byId.City == "澳门")
                {
                    this.lblArea.Text = byId.City;
                    return;
                }
                this.lblArea.Text = byId.Province + byId.City;
            }
        }
    }