/// ****************************************************************************
        /// <summary>
        /// 提交数据
        /// </summary>
        /// ****************************************************************************
        public override string SubmitData()
        {
            string Errmsg = "";

            try
            {
                if (this.TxtBiddingConditionFileName.Value == "")
                {
                    Errmsg = "招标文件名称不允许为空";
                    return(Errmsg);
                }
                else if (this.TxtNumber.Value == "")
                {
                    Errmsg = "招标文件编号不允许为空";
                    return(Errmsg);
                }

                if (this.ApplicationCode != "")
                {
                    this.BiddingConditionFileCode = this.ApplicationCode;
                }
                else if (this.BiddingConditionFileCode != "")
                {
                    this.ApplicationCode = this.BiddingConditionFileCode;
                }

                RmsPM.BLL.BiddingConditionFile cBiddingConditionFile = new RmsPM.BLL.BiddingConditionFile();

                cBiddingConditionFile.BiddingConditionFileCode = this.BiddingConditionFileCode + "";

                cBiddingConditionFile.BiddingCode = this.BiddingCode + "";
                cBiddingConditionFile.BiddingConditionFileNumber = this.TxtNumber.Value;
                cBiddingConditionFile.Name = this.TxtBiddingConditionFileName.Value;

                cBiddingConditionFile.Zbfw  = this.TxtZBFW.Text;
                cBiddingConditionFile.Jsxq  = this.TxtJSYQ.Text;
                cBiddingConditionFile.Zlbz  = this.TxtZLBZ.Text;
                cBiddingConditionFile.Gq    = this.TxtGQ.Text;
                cBiddingConditionFile.Rctj  = this.TxtRCTJ.Text;
                cBiddingConditionFile.Shfw  = this.TxtSHFW.Text;
                cBiddingConditionFile.State = "1";


                cBiddingConditionFile.BiddingConditionFileAdd();
                this.BiddingConditionFileCode = cBiddingConditionFile.BiddingConditionFileCode;

                this.AttachMentAdd1.SaveAttachMent(this.BiddingConditionFileCode);
                this.AttachMentAdd2.SaveAttachMent(this.BiddingConditionFileCode);
                this.AttachMentAdd3.SaveAttachMent(this.BiddingConditionFileCode);
                this.AttachMentAdd4.SaveAttachMent(this.BiddingConditionFileCode);
                this.AttachMentAdd5.SaveAttachMent(this.BiddingConditionFileCode);
                this.AttachMentAdd6.SaveAttachMent(this.BiddingConditionFileCode);
                return(Errmsg);
            }
            catch (System.Exception ec)
            {
                Errmsg = ec.Message;
                return(Errmsg);
            }
        }
        public string DeleteBiddingConditionFile()
        {
            string Errmsg = "";

            try
            {
                RmsPM.BLL.BiddingConditionFile cBiddingConditionFile = new RmsPM.BLL.BiddingConditionFile();

                cBiddingConditionFile.BiddingConditionFileCode = this.BiddingConditionFileCode;
                //RmsPM.BLL.BiddingConditionFile.DeleteBiddingConditionFile
                cBiddingConditionFile.BiddingConditionFileDelete();
                return(Errmsg);
            }
            catch (System.Exception ec)
            {
                Errmsg = ec.Message;
                return(Errmsg);
            }
        }
Exemplo n.º 3
0
    /// ****************************************************************************
    /// <summary>
    /// 数据加载
    /// </summary>
    /// ****************************************************************************
    private void LoadData(bool Flag)
    {
        RmsPM.BLL.BiddingConditionFile cBiddingConditionFile = new RmsPM.BLL.BiddingConditionFile();
        if (this.ApplicationCode != "")
        {
            this.BiddingConditionFileCode = this.ApplicationCode;
        }
        else if (this.BiddingConditionFileCode != "")
        {
            this.ApplicationCode = this.BiddingConditionFileCode;
        }


        if (this.ApplicationCode != "")
        {
            cBiddingConditionFile.BiddingConditionFileCode = this.ApplicationCode;
            EntityData entitydata = RmsPM.BLL.BiddingConditionFile.GetBiddingConditionFileByCode(this.ApplicationCode);

            if (entitydata.HasRecord())
            {
                this.BiddingConditionFileState = entitydata.GetString("state");
                this.BiddingCode = entitydata.GetString("BiddingCode");
                if (Flag)
                {
                    RmsPM.BLL.Bidding cBidding = new RmsPM.BLL.Bidding();
                    cBidding.BiddingCode = this.BiddingCode;
                    string LinkUrl = "<a onclick=OpenLargeWindow('../BiddingManage/biddingmodify.aspx?BiddingCode=" + this.BiddingCode + "&State=edit&ProjectCode=" + cBidding.ProjectCode + "','ZD_BiddingConditionFile3')>" + cBidding.Title + "</a>";
                    //this.tdBiddingTitle.InnerHtml = cBidding.Title;
                    this.txtBiddingTitle.InnerHtml = LinkUrl;
                    this.txtProjectName.InnerHtml  = RmsPM.BLL.ProjectRule.GetProjectName(cBidding.ProjectCode);


                    this.TxtBiddingConditionFileName.Value = entitydata.GetString("name");
                    this.TxtNumber.Value = entitydata.GetString("BiddingConditionFileNumber");
                    this.tdBiddingConditionFileState1.InnerHtml = RmsPM.BLL.BiddingConditionFile.GetBiddingConditionFileStatusName(BiddingConditionFileState);

                    this.TxtZBFW.Text = StringRule.FormartOutput(cBiddingConditionFile.Zbfw);
                    this.TxtJSYQ.Text = StringRule.FormartOutput(cBiddingConditionFile.Jsxq);
                    this.TxtZLBZ.Text = StringRule.FormartOutput(cBiddingConditionFile.Zlbz);
                    this.TxtGQ.Text   = StringRule.FormartOutput(cBiddingConditionFile.Gq);
                    this.TxtRCTJ.Text = StringRule.FormartOutput(cBiddingConditionFile.Rctj);
                    this.TxtSHFW.Text = StringRule.FormartOutput(cBiddingConditionFile.Shfw);
                }
                else
                {
                    RmsPM.BLL.Bidding cBidding = new RmsPM.BLL.Bidding();
                    cBidding.BiddingCode = this.BiddingCode;
                    string LinkUrl = "<a onclick=OpenLargeWindow('../BiddingManage/biddingmodify.aspx?BiddingCode=" + this.BiddingCode + "&State=edit&ProjectCode=" + cBidding.ProjectCode + "','ZD_BiddingConditionFile1')>" + cBidding.Title + "</a>";
                    //this.tdBiddingTitle.InnerHtml = cBidding.Title;
                    this.tdBiddingTitle.InnerHtml = LinkUrl;
                    this.tdProjectName.InnerHtml  = RmsPM.BLL.ProjectRule.GetProjectName(cBidding.ProjectCode);


                    this.TdBiddingConditionFileName.InnerHtml = entitydata.GetString("name");
                    this.TdNumber.InnerHtml = entitydata.GetString("BiddingConditionFileNumber");
                    this.tdBiddingConditionFileState2.InnerHtml = RmsPM.BLL.BiddingConditionFile.GetBiddingConditionFileStatusName(BiddingConditionFileState);

                    this.lblZBFW.Text = StringRule.FormartOutput(cBiddingConditionFile.Zbfw).Replace("\n", "<br />");
                    this.lblJSYQ.Text = StringRule.FormartOutput(cBiddingConditionFile.Jsxq).Replace("\n", "<br />");
                    this.lblZLBZ.Text = StringRule.FormartOutput(cBiddingConditionFile.Zlbz).Replace("\n", "<br />");
                    this.lblGQ.Text   = StringRule.FormartOutput(cBiddingConditionFile.Gq).Replace("\n", "<br />");
                    this.lblRCTJ.Text = StringRule.FormartOutput(cBiddingConditionFile.Rctj).Replace("\n", "<br />");
                    this.lblSHFW.Text = StringRule.FormartOutput(cBiddingConditionFile.Shfw).Replace("\n", "<br />");
                }
            }
            this.ApplicationTitle = cBiddingConditionFile.Name;
            entitydata.Dispose();
        }
        else
        {
            RmsPM.BLL.Bidding cBidding = new RmsPM.BLL.Bidding();
            cBidding.BiddingCode = this.BiddingCode;
            string LinkUrl = "<a onclick=OpenLargeWindow('../BiddingManage/biddingmodify.aspx?BiddingCode=" + this.BiddingCode + "&State=edit&ProjectCode=" + cBidding.ProjectCode + "','ZD_BiddingConditionFile2')>" + cBidding.Title + "</a>";
            //this.tdBiddingTitle.InnerHtml = cBidding.Title;
            this.txtBiddingTitle.InnerHtml = LinkUrl;
            this.txtProjectName.InnerHtml  = RmsPM.BLL.ProjectRule.GetProjectName(cBidding.ProjectCode);
        }
    }