/// ****************************************************************************
    /// <summary>
    /// 数据加载
    /// </summary>
    /// ****************************************************************************
    private void LoadData(bool Flag)
    {
        if (this.State1 == ModuleState.Operable)
        {
            SelectState = true;
        }

        RmsPM.BLL.BiddingPrejudication cBiddingPrejudication = new RmsPM.BLL.BiddingPrejudication();
        if (this.ApplicationCode != "")
        {
            cBiddingPrejudication.BiddingPrejudicationCode = this.ApplicationCode;
            RmsPM.BLL.Bidding cBidding = new RmsPM.BLL.Bidding();
            cBidding.BiddingCode = cBiddingPrejudication.BiddingCode;

            if (Flag)
            {
                this.txtProjectName.InnerHtml = "&nbsp;&nbsp;" + RmsPM.BLL.ProjectRule.GetProjectName(cBidding.ProjectCode) + "&nbsp; ";
                string LinkUrl = "<a onclick=OpenLargeWindow('../BiddingManage/biddingmodify.aspx?BiddingCode=" + cBidding.BiddingCode + "&State=edit&ProjectCode=" + cBidding.ProjectCode + "')>" + cBidding.Title + "</a>";
                this.txtBiddingTitle.InnerHtml = "&nbsp;&nbsp;" + LinkUrl;

                string formartEmitDate = System.Convert.ToDateTime(cBidding.EmitDate).ToString("yyyy") + " 年 " + System.Convert.ToDateTime(cBidding.EmitDate).ToString("MM") + " 月 " + System.Convert.ToDateTime(cBidding.EmitDate).ToString("dd") + " 日";


                this.txtNumber.Value = cBiddingPrejudication.Number;
                this.BiddingCode     = cBiddingPrejudication.BiddingCode;

                this.EditState         = true;
                this.TxtEmitDate.Value = cBidding.EmitDate;

                this.TxtMoney.InnerHtml        = "&nbsp;&nbsp;" + cBidding.Money + "&nbsp;";
                this.ViewState["BiddingTitle"] = cBidding.Title;
                this.DepartMentCode            = cBidding.BiddingRemark1;

                this.TxtRemark.Visible = true;
                this.TxtRemark.Value   = "&nbsp;&nbsp;" + cBidding.BiddingRemark2;
            }
            else
            {
                this.tdProjectName.InnerHtml = "&nbsp;&nbsp;" + RmsPM.BLL.ProjectRule.GetProjectName(cBidding.ProjectCode) + "&nbsp; ";
                string LinkUrl = "<a onclick=OpenLargeWindow('../BiddingManage/biddingmodify.aspx?BiddingCode=" + cBidding.BiddingCode + "&State=edit&ProjectCode=" + cBidding.ProjectCode + "')>" + cBidding.Title + "</a>";
                this.tdBiddingTitle.InnerHtml = "&nbsp;&nbsp;" + LinkUrl;
                //this.tdDate.InnerHtml = cBidding.PrejudicationDate + "&nbsp; ";
                string formartEmitDate = System.Convert.ToDateTime(cBidding.EmitDate).ToString("yyyy") + " 年 " + System.Convert.ToDateTime(cBidding.EmitDate).ToString("MM") + " 月 " + System.Convert.ToDateTime(cBidding.EmitDate).ToString("dd") + " 日";
                //this.txtEmitDate.InnerHtml = formartEmitDate + "&nbsp; ";

                this.tdNumber.InnerHtml = "&nbsp;&nbsp;" + cBiddingPrejudication.Number + "&nbsp; ";
                this.BiddingCode        = cBiddingPrejudication.BiddingCode;
                //this.ViewSupplier.InnerHtml = "<a href=\"#\" onclick=\"javascript:BiddingPrejudicationOpenSupplierPage('"+this.ApplicationCode+"','view','"+SelectState+"');return false\">参加资格预审的单位名单</a>";
                this.EditState = false;
                this.ViewState["BiddingTitle"] = cBidding.Title;
                this.ApplicationTitle          = cBidding.Title;
                this.tdEmitDate.InnerHtml      = "&nbsp;&nbsp;" + cBidding.ConfirmDate;
                this.DepartMentCode            = cBidding.BiddingRemark1;
                this.TDMoney.InnerHtml         = "&nbsp;&nbsp;" + cBidding.Money + "&nbsp;";
                this.lblRemark.Visible         = true;
                this.lblRemark.Text            = "&nbsp;&nbsp;" + cBidding.BiddingRemark2.Replace("\n", "<br>");
            }
        }
        else
        {
            if (Flag)
            {
                RmsPM.BLL.Bidding cBidding = new RmsPM.BLL.Bidding();
                cBidding.BiddingCode          = this.BiddingCode;
                this.txtProjectName.InnerHtml = "&nbsp;&nbsp;" + RmsPM.BLL.ProjectRule.GetProjectName(cBidding.ProjectCode) + "&nbsp; ";

                string LinkUrl = "<a onclick=OpenLargeWindow('../BiddingManage/biddingmodify.aspx?BiddingCode=" + cBidding.BiddingCode + "&State=edit&ProjectCode=" + cBidding.ProjectCode + "')>" + cBidding.Title + "</a>";
                this.txtBiddingTitle.InnerHtml = "&nbsp;&nbsp;" + LinkUrl;

                this.ViewState["BiddingTitle"] = "&nbsp;&nbsp;" + cBidding.Title;


                this.TxtEmitDate.Value = cBidding.EmitDate;

                this.TxtMoney.InnerHtml = "&nbsp;&nbsp;" + cBidding.Money + "&nbsp;";
                this.ApplicationTitle   = cBidding.Title;
                this.EditState          = true;
                this.TxtRemark.Visible  = true;
                this.TxtRemark.Value    = "&nbsp;&nbsp;" + cBidding.BiddingRemark2;
            }
            this.ViewState["tempCode"] = this.UserCode + DateTime.Now.ToString();
        }
        RmsPM.BLL.Bidding ccBidding = new RmsPM.BLL.Bidding();
        ccBidding.BiddingCode         = this.BiddingCode;
        this.ViewState["Money"]       = ccBidding.Money;
        this.ViewState["mostly"]      = ccBidding.Accessory;
        this.ViewState["BiddingType"] = ccBidding.Type;
        this.ProjectCode     = ccBidding.ProjectCode;
        this.ApplicationType = RmsPM.BLL.SystemGroupRule.GetSystemGroupSortIDByGroupCode(this.BiddingType);



        string BiddingPrejudicationCode = "";

        if (this.ApplicationCode == "")
        {
            BiddingPrejudicationCode = this.tempCode;
        }
        else
        {
            BiddingPrejudicationCode = this.ApplicationCode;
        }
        //*** UCBiddingSupplierModify 控件初始化 **************************************************************************
        if (this.ApplicationCode == "")
        {
            this.UCBiddingSupplierList1.Flag = "1";
            this.UCBiddingSupplierList1.BiddingForwardPrejudicationCode = cBiddingPrejudication.GetLastPrejudicationCodeByBiddingCode(this.BiddingCode);
        }

        this.UCBiddingSupplierList1.BiddingPrejudicationCode = BiddingPrejudicationCode;
        this.UCBiddingSupplierList1.CanSelect = this.SelectState;
        this.UCBiddingSupplierList1.CanModify = this.EditState;

        //*****************************************************************************

        //*** UCBiddingSupplierModify 控件初始化 **************************************************************************
        this.UCBiddingSupplierModify1.BiddingPrejudicationCode = BiddingPrejudicationCode;
        this.UCBiddingSupplierModify1.BiddingSupplierCode      = "";
        this.UCBiddingSupplierModify1.DoType = "SingleModify";
        this.UCBiddingSupplierModify1.IniControl();
        this.UCBiddingSupplierModify1.Visible = this.EditState;

        this.UCBiddingSupplierList1.LoadData();

        //this.ViewSupplier.InnerHtml = "<a href=\"#\" onclick=\"javascript:BiddingPrejudicationOpenSupplierPage('"+this.ViewState["tempCode"].ToString()+"','view','"+SelectState+"');return false\">参加资格预审的单位名单</a>";
        //this.EditSupplier.InnerHtml = "<a href=\"#\" onclick=\"javascript:BiddingPrejudicationOpenSupplierPage('"+this.ViewState["tempCode"].ToString()+"','edit','"+SelectState+"');return false\">参加资格预审的单位名单</a>";
    }