Ejemplo n.º 1
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);
        }
    }