コード例 #1
0
    protected void bindBidData()
    {
        string    text       = base.Request["id"];
        DataTable partTender = TenderInfo.GetPartTender(text, "4", base.UserCode);

        if (partTender.Rows.Count > 0)
        {
            DataRow dataRow = partTender.Rows[0];
            this.dropTenderAppraiseMethod.SelectedValue = dataRow["TenderAppraiseMethod"].ToString();
            this.txtTenderAnswerDate.Text       = Common2.GetTime(dataRow["ProjTenderAnswerDate"]);
            this.txtTenderBeginDate.Text        = Common2.GetTime(dataRow["ProjTenderBeginDate"]);
            this.txtTenderAverage.Text          = dataRow["TenderAverage"].ToString();
            this.txtTenderCeilingPrice.Text     = dataRow["TenderCeilingPrice"].ToString();
            this.txtTenderContent.Text          = dataRow["ProjTenderContent"].ToString();
            this.txtTenderCostContent.Text      = dataRow["ProjTenderCostContent"].ToString();
            this.txtTenderEarnestMoney.Text     = dataRow["ProjTenderEarnestMoney"].ToString();
            this.txtTenderPrjManager.Text       = dataRow["PrjManagerName"].ToString();
            this.hfldPrjManage.Value            = dataRow["PrjManager"].ToString();
            this.txtTenderQuote.Text            = dataRow["TenderQuote"].ToString();
            this.txtTenderRemark.Text           = dataRow["ProjTenderRemark"].ToString();
            this.txtTenderUnit.Text             = dataRow["TenderUnit"].ToString();
            this.dropTenderPayWay.SelectedValue = dataRow["ProjTenderPayWay"].ToString();
            if (!string.IsNullOrEmpty(dataRow["TenderProspect"].ToString()))
            {
                this.txtTenderProspect.Text = Common2.GetTime(dataRow["TenderProspect"]);
            }
            if (!string.IsNullOrEmpty(dataRow["TenderReadOne"].ToString()))
            {
                this.hfldTenderReadOne.Value = dataRow["TenderReadOne"].ToString();
                PtYhmc modelById = new PtYhmcBll().GetModelById(this.hfldTenderReadOne.Value);
                if (modelById != null)
                {
                    this.txtTenderReadOne.Text = modelById.v_xm;
                }
            }
        }
        this.FileUpload1.Folder     = ConfigurationManager.AppSettings["ProjectFile"].ToString();
        this.FileUpload1.RecordCode = text + "_4";
    }