Exemplo n.º 1
0
 /// ****************************************************************************
 /// <summary>
 /// 修改按钮事件
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 /// ****************************************************************************
 protected void btnModify_ServerClick(object sender, System.EventArgs e)
 {
     Bidding1.State = WorkFlowControl.ModuleState.Operable;
     Bidding1.InitControl();
     BiddingDtlModify1.State = WorkFlowControl.ModuleState.Operable;
     BiddingDtlModify1.InitControl();
     BiddingProcess1.InitControl(Bidding1.ApplicationCode);
     this.btnSave.Visible      = true;
     this.btnAddDtl.Visible    = true;
     this.btnModify.Visible    = false;
     this.btnNewSupply.Visible = false;
     this.btnEmit.Visible      = false;
     this.btnReturn.Visible    = false;
     this.btnAuditing.Visible  = false;
     this.btnDel.Visible       = false;
     this.btnMessage.Visible   = false;
     this.btnContract.Visible  = false;
     if (Bidding1.BiddingState == "0" && Bidding1.PrejudicationsCount == 0)
     {
         this.btnDel.Visible = true;
     }
 }
Exemplo n.º 2
0
        /// ****************************************************************************
        /// <summary>
        /// 保存按钮事件
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        /// ****************************************************************************
        protected void btnSave_ServerClick(object sender, System.EventArgs e)
        {
            try
            {
                if (Bidding1.SystemGroup.Trim() == "")
                {
                    this.RegisterStartupScript("", "<script>alert('类别不允许为空!');</script>");
                    return;
                }
                if (!BiddingDtlModify1.CheckItemValue)
                {
                    this.RegisterStartupScript("", "<script>alert('分标段名,费用项必须填写!');</script>");
                    return;
                }
                if (BiddingDtlModify1.BiddingDtlCount == 0)
                {
                    this.RegisterStartupScript("", "<script>alert('招投标计划必须包含分标段!');</script>");
                    return;
                }
                Bidding1.SubmitData();
                BiddingDtlModify1.ApplicationCode = Bidding1.ApplicationCode;

                BiddingDtlModify1.SubmitData();

                if (Request["FunctionName"] != null)
                {
                    Response.Write(Rms.Web.JavaScript.ScriptStart);
                    Response.Write("window.opener." + Request["FunctionName"].ToString() + "();");
                    Response.Write(Rms.Web.JavaScript.WinClose(false));
                    Response.Write(Rms.Web.JavaScript.ScriptEnd);
                }
                else
                {
                    if (Request["ApplicationCode"] + "" != "")
                    {
                        RmsPM.BLL.BiddingLog cbiddingLog = new RmsPM.BLL.BiddingLog();
                        cbiddingLog.BiddingLogCode = "";
                        cbiddingLog.BiddingCode    = Request["ApplicationCode"] + "";
                        cbiddingLog.Type           = "招投标预估费用";
                        if (this.Bidding1.TeamMoney != null && this.Bidding1.TeamMoney != "")
                        {
                            cbiddingLog.FormerMoney = System.Convert.ToDecimal(this.Bidding1.TeamMoney);
                        }
                        if (this.BiddingDtlModify1.TeamMoney != null && this.BiddingDtlModify1.TeamMoney != "")
                        {
                            cbiddingLog.TeamMoney = System.Convert.ToDecimal(this.BiddingDtlModify1.TeamMoney);
                        }
                        cbiddingLog.UserCode   = this.user.UserCode;
                        cbiddingLog.UpdateTime = System.DateTime.Now.ToString();
                        cbiddingLog.State      = "1";
                        cbiddingLog.BiddingLogAdd();


                        this.InitPage();
                        this.ApplicationCode = Bidding1.ApplicationCode;
                        Bidding1.InitControl();


                        Response.Write(Rms.Web.JavaScript.ScriptStart);
                        Response.Write("window.opener.location.reload();");
                        Response.Write(Rms.Web.JavaScript.ScriptEnd);
                    }
                    else
                    {
                        Response.Write(Rms.Web.JavaScript.ScriptStart);
                        Response.Write("window.opener.location.reload();");
                        Response.Write(Rms.Web.JavaScript.WinClose(false));
                        Response.Write(Rms.Web.JavaScript.ScriptEnd);
                    }
                }
            }
            catch (Exception ex)
            {
                Response.Write(Rms.Web.JavaScript.Alert(true, ex.ToString()));
            }
        }
Exemplo n.º 3
0
        /// ****************************************************************************
        /// <summary>
        /// 初始化
        /// </summary>
        /// ****************************************************************************
        private void InitPage()
        {
            if (Request["ApplicationCode"] != null)
            {
                this.ApplicationCode = Request["ApplicationCode"] + "";
            }
            else if (Request["BiddingCode"] != null)
            {
                this.ApplicationCode = Request["BiddingCode"] + "";
            }
            if (Request["ProjectCode"] != null)
            {
                this.ProjectCode = Request["ProjectCode"].ToString();
            }


            //  //--//特殊要求
            string company = this.up_sPMName.ToLower();

            switch (company)
            {
            case "disaipm":
                this.workflowmsg.Visible   = false;
                this.WorkFlowList1.Visible = false;
                this.WorkFlowDiv.Visible   = false;
                break;

            case "tangchenpm":

                this.btnNewSupply.Value = "招标执行";
                break;


            case "gaokepm":


                this.Bt_ReturnOfPrice.Style["display"] = "none";

                break;

                //this.PrejudicationListdiv.Visible = true;
                //this.ReturnListdiv.Visible = true;
                //this.BiddingPrejudicationList1.BiddingCode = this.ApplicationCode;
                //this.BiddingPrejudicationList1.DataBound();
            }
            //
            //修改


            if (this.user.HasRight("2106"))
            {
                BiddingDtlModify1.PriceState = WorkFlowControl.ModuleState.Operable;
                Bidding1.PriceState          = WorkFlowControl.ModuleState.Operable;
            }
            else if (this.user.HasRight("2107"))//查看
            {
                BiddingDtlModify1.PriceState = WorkFlowControl.ModuleState.Eyeable;
                Bidding1.PriceState          = WorkFlowControl.ModuleState.Eyeable;
            }


            if (!this.user.HasRight("210904"))//招标文件新增
            {
                this.Bidding1.BiddingFileState = ModuleState.Unbeknown;
            }
            else
            {
                this.Bidding1.BiddingFileState = ModuleState.Operable;
            }



            Bidding1.ApplicationCode          = this.ApplicationCode;
            Bidding1.ProjectCode              = this.ProjectCode;
            Bidding1.UserCode                 = this.user.UserCode;
            BiddingDtlModify1.ApplicationCode = Bidding1.ApplicationCode;
            BiddingDtlModify1.ProjectCode     = this.ProjectCode;

            BLL.BiddingEmit   cBiddingEmit = new BLL.BiddingEmit();
            BLL.BiddingManage bm           = new BLL.BiddingManage();
            bm.BiddingCode = this.ApplicationCode;

            if (this.ApplicationCode == "")
            {
                Bidding1.State = WorkFlowControl.ModuleState.Operable;
                Bidding1.InitControl();

                this.BiddingConditionFileInfo1.State = ModuleState.Unbeknown;

                BiddingDtlModify1.State = WorkFlowControl.ModuleState.Operable;
                BiddingDtlModify1.InitControl();

                this.btnSave.Visible          = true;
                this.btnAddDtl.Visible        = true;
                this.btnModify.Visible        = false;
                this.btnDel.Visible           = false;
                this.btnNewSupply.Visible     = false;
                this.btnEmit.Visible          = false;
                this.btnReturn.Visible        = false;
                this.btnAuditing.Visible      = false;
                this.btnMessage.Visible       = false;
                this.btnContract.Visible      = false;
                this.Bt_LowOfPrice.Visible    = false;
                this.Bt_ReturnOfPrice.Visible = false;

                //this.btnAddMoney.Visible = false;
                this.btnCheckBiddingDiscuss.Visible    = false;
                this.btnOldCheckBiddingDiscuss.Visible = false;
                this.btnCheckDiscuss.Visible           = false;

                //隐藏若干选项卡
                this.BiddingCondition.Style["display"]     = "none";
                this.BiddingContidionFile.Style["display"] = "none";
                this.trPrejudication.Style["display"]      = "none";
                this.Tr1.Style["display"]               = "none";
                this.trZBGC.Style["display"]            = "none";
                this.BiddingProcessDiv.Style["display"] = "none";
                this.trHBGC.Style["display"]            = "none";
                this.BiddingEmitDiv.Style["display"]    = "none";
                this.tdBiddingMessage.Style["display"]  = "none";
                this.BiddingMessageDiv.Style["display"] = "none";
                this.workflowmsg.Style["display"]       = "none";
                this.WorkFlowDiv.Style["display"]       = "none";
            }
            else
            {
                this.BiddingConditionFileInfo1.State = ModuleState.Operable;
                this.btnModify.Visible = true;
                this.btnSave.Visible   = false;
                this.btnAddDtl.Visible = false;
                this.btnDel.Visible    = false;
                Bidding1.State         = WorkFlowControl.ModuleState.Eyeable;
                Bidding1.InitControl();
                BiddingDtlModify1.State = WorkFlowControl.ModuleState.Eyeable;
                BiddingDtlModify1.InitControl();
                if (Bidding1.BiddingState == "0")//只有招标计划信息
                {
                    this.btnNewSupply.Visible     = true;
                    this.btnEmit.Visible          = false;
                    this.btnReturn.Visible        = false;
                    this.btnAuditing.Visible      = false;
                    this.btnMessage.Visible       = false;
                    this.btnContract.Visible      = false;
                    this.Bt_LowOfPrice.Visible    = false;
                    this.Bt_ReturnOfPrice.Visible = false;
                    this.btnDel.Visible           = true;
                    //this.btnAddMoney.Visible = false;
                    //LB_BiddingState.Text="";
                }
                if (Bidding1.BiddingState == "1")//有预审投标单位
                {
                    this.btnNewSupply.Visible     = true;
                    this.btnEmit.Visible          = true;
                    this.btnReturn.Visible        = false;
                    this.btnAuditing.Visible      = false;
                    this.btnMessage.Visible       = false;
                    this.btnContract.Visible      = false;
                    this.Bt_LowOfPrice.Visible    = false;
                    this.Bt_ReturnOfPrice.Visible = false;
                    //this.btnAddMoney.Visible = false;
                    this.btnCheckBiddingDiscuss.Visible    = false;
                    this.btnOldCheckBiddingDiscuss.Visible = false;
                    this.btnCheckDiscuss.Visible           = false;
                }
                if (Bidding1.BiddingState == "2")//已经发标
                {
                    this.btnNewSupply.Visible     = true;
                    this.btnEmit.Visible          = false;
                    this.btnReturn.Visible        = GetShowInfoForbtnReturn();
                    this.btnAuditing.Visible      = false;
                    this.btnMessage.Visible       = false;
                    this.btnContract.Visible      = false;
                    this.Bt_LowOfPrice.Visible    = false;
                    this.Bt_ReturnOfPrice.Visible = false;
                    IsShow_Control_BiddingEmitHistory(true);
                    // this.btnAddMoney.Visible = false;
                    this.btnCheckBiddingDiscuss.Visible    = false;
                    this.btnOldCheckBiddingDiscuss.Visible = false;
                    this.btnCheckDiscuss.Visible           = false;
                }
                if (Bidding1.BiddingState == "3")//已经回标
                {
                    this.btnNewSupply.Visible     = true;
                    this.btnEmit.Visible          = true;
                    this.btnReturn.Visible        = GetShowInfoForbtnReturn();
                    this.btnAuditing.Visible      = true;
                    this.btnMessage.Visible       = false;
                    this.btnContract.Visible      = false;
                    this.Bt_LowOfPrice.Visible    = false;
                    this.Bt_ReturnOfPrice.Visible = false;
                    IsShow_Control_BiddingEmitHistory(true);
                    this.btnCheckDiscuss.Visible           = false;
                    this.btnCheckBiddingDiscuss.Visible    = false;
                    this.btnOldCheckBiddingDiscuss.Visible = false;
                }
                if (Bidding1.BiddingState == "5")//已经开始评标,处于压价状态
                {
                    this.btnNewSupply.Visible     = false;
                    this.btnEmit.Visible          = false;
                    this.btnReturn.Visible        = false;
                    this.btnAuditing.Visible      = false;
                    this.btnMessage.Visible       = false;
                    this.btnContract.Visible      = false;
                    this.Bt_LowOfPrice.Visible    = true;
                    this.Bt_ReturnOfPrice.Visible = false;
                    IsShow_Control_BiddingEmitHistory(true);
                    this.btnCheckDiscuss.Visible = false;
                    //this.btnAddMoney.Visible = false;
                    this.btnCheckBiddingDiscuss.Visible    = false;
                    this.btnOldCheckBiddingDiscuss.Visible = false;
                }
                if (Bidding1.BiddingState == "6")//已经开始评标,处于压价状态
                {
                    this.btnNewSupply.Visible     = false;
                    this.btnEmit.Visible          = false;
                    this.btnReturn.Visible        = false;
                    this.btnAuditing.Visible      = false;
                    this.btnMessage.Visible       = false;
                    this.btnContract.Visible      = false;
                    this.Bt_LowOfPrice.Visible    = true;
                    this.Bt_ReturnOfPrice.Visible = true;
                    IsShow_Control_BiddingEmitHistory(true);
                    this.btnCheckDiscuss.Visible = false;
                    //this.btnAddMoney.Visible = false;
                    this.btnCheckBiddingDiscuss.Visible    = false;
                    this.btnOldCheckBiddingDiscuss.Visible = false;
                }
                if (Bidding1.BiddingState == "4")//评审完毕
                {
                    this.btnNewSupply.Visible = false;
                    this.btnEmit.Visible      = false;
                    this.btnReturn.Visible    = false;
                    this.btnAuditing.Visible  = false;
                    this.btnModify.Visible    = false;
                    this.btnMessage.Visible   = true;
                    //this.btnMessage.Visible=user.HasOperationRight("2106");
                    this.btnContract.Visible      = false;
                    this.Bt_LowOfPrice.Visible    = false;
                    this.Bt_ReturnOfPrice.Visible = false;
                    IsShow_Control_BiddingEmitHistory(true);
                    if (ConfigurationSettings.AppSettings["IsBiddingMessage"] == "0")
                    {
                        btnMessage.Visible       = false;
                        this.btnContract.Visible = true;
                    }
                    this.btnCheckDiscuss.Visible = false;
                    //this.btnAddMoney.Visible = false;
                    this.btnCheckBiddingDiscuss.Visible    = false;
                    this.btnOldCheckBiddingDiscuss.Visible = false;
                }
                if (Bidding1.BiddingState == "41")//中标通知书评审中
                {
                    this.btnNewSupply.Visible = false;
                    this.btnEmit.Visible      = false;
                    this.btnReturn.Visible    = false;
                    this.btnAuditing.Visible  = false;
                    this.btnModify.Visible    = false;
                    //this.btnAddMoney.Visible = false;
                    this.btnCheckBiddingDiscuss.Visible    = false;
                    this.btnOldCheckBiddingDiscuss.Visible = false;
                    this.btnCheckDiscuss.Visible           = false;

                    BLL.Bidding bd = new BLL.Bidding();
                    bd.BiddingCode = Bidding1.ApplicationCode;
                    if (bd.GetBiddingReturnNoMessage().Rows.Count > 0)
                    {
                        this.btnMessage.Visible = true;
                    }
                    else
                    {
                        this.btnMessage.Visible = false;
                    }

                    BLL.BiddingMessage bms = new BLL.BiddingMessage();
                    bms.BiddingCode = Bidding1.ApplicationCode;
                    DataTable dtbms = bms.GetBiddingMessages();
                    bool      ContractCreateFlag = false;
                    foreach (DataRow dr in dtbms.Select())
                    {
                        if (BLL.ContractRule.GetContractCountByContractDefaultValueCode(dr["BiddingMessageCode"].ToString()) == 0)
                        {
                            ContractCreateFlag = true;
                        }
                    }

                    this.btnContract.Visible = ContractCreateFlag;

                    this.Bt_LowOfPrice.Visible    = false;
                    this.Bt_ReturnOfPrice.Visible = false;
                    IsShow_Control_BiddingEmitHistory(true);
                }
                if (Bidding1.BiddingState == "42")//中标通知书已评审
                {
                    this.btnNewSupply.Visible = false;
                    this.btnEmit.Visible      = false;
                    this.btnReturn.Visible    = false;
                    this.btnAuditing.Visible  = false;
                    this.btnModify.Visible    = false;
                    //this.btnAddMoney.Visible = false;
                    this.btnCheckBiddingDiscuss.Visible    = false;
                    this.btnOldCheckBiddingDiscuss.Visible = false;
                    this.btnCheckDiscuss.Visible           = false;

                    BLL.Bidding bd = new BLL.Bidding();
                    bd.BiddingCode = Bidding1.ApplicationCode;
                    if (bd.GetBiddingReturnNoMessage().Rows.Count > 0)
                    {
                        this.btnMessage.Visible = true;
                    }
                    else
                    {
                        this.btnMessage.Visible = false;
                    }

                    BLL.BiddingMessage bms = new BLL.BiddingMessage();
                    bms.BiddingCode = Bidding1.ApplicationCode;
                    DataTable dtbms = bms.GetBiddingMessages();
                    bool      ContractCreateFlag = false;
                    foreach (DataRow dr in dtbms.Select())
                    {
                        if (BLL.ContractRule.GetContractCountByContractDefaultValueCode(dr["BiddingMessageCode"].ToString()) == 0)
                        {
                            ContractCreateFlag = true;
                        }
                    }


                    this.btnContract.Visible      = ContractCreateFlag;
                    this.Bt_LowOfPrice.Visible    = false;
                    this.Bt_ReturnOfPrice.Visible = false;
                    IsShow_Control_BiddingEmitHistory(true);
                }
                if (Bidding1.BiddingState == "43")//评审完毕
                {
                    this.btnNewSupply.Visible     = false;
                    this.btnEmit.Visible          = false;
                    this.btnReturn.Visible        = false;
                    this.btnAuditing.Visible      = false;
                    this.btnModify.Visible        = false;
                    this.btnMessage.Visible       = false;
                    this.btnContract.Visible      = false;
                    this.Bt_LowOfPrice.Visible    = false;
                    this.Bt_ReturnOfPrice.Visible = false;
                    IsShow_Control_BiddingEmitHistory(true);
                    //this.btnAddMoney.Visible = false;
                    this.btnCheckDiscuss.Visible           = false;
                    this.btnCheckBiddingDiscuss.Visible    = false;
                    this.btnOldCheckBiddingDiscuss.Visible = false;
                }

                if (Bidding1.BiddingState == "7")//招标执行
                {
                    this.btnNewSupply.Visible = false;
                    this.btnEmit.Visible      = false;
                    this.btnReturn.Visible    = false;
                    this.btnAuditing.Visible  = false;
                    this.btnModify.Visible    = false;

                    //this.btnAddMoney.Visible = false;
                    this.btnCheckDiscuss.Visible           = false;
                    this.btnCheckBiddingDiscuss.Visible    = false;
                    this.btnOldCheckBiddingDiscuss.Visible = false;

                    this.btnMessage.Visible = false;

                    BLL.BiddingMessage bms = new BLL.BiddingMessage();
                    bms.BiddingCode = Bidding1.ApplicationCode;
                    bms.State       = "0";
                    DataTable dtbms = bms.GetBiddingMessages();
                    bool      ContractCreateFlag = false;
                    foreach (DataRow dr in dtbms.Select())
                    {
                        if (BLL.ContractRule.GetContractCountByContractDefaultValueCode(dr["BiddingMessageCode"].ToString()) == 0)
                        {
                            ContractCreateFlag = true;
                        }
                    }

                    RmsPM.BLL.BiddingPrejudication cbiddingPrejudicationtemp = new RmsPM.BLL.BiddingPrejudication();
                    cbiddingPrejudicationtemp.BiddingPrejudicationCode = cbiddingPrejudicationtemp.GetPrimaryKeyByBiddingCode(this.ApplicationCode);
                    if (cbiddingPrejudicationtemp.State != "0")
                    {
                        this.btnBiddingStart.Visible = true;
                    }
                    this.btnContract.Visible      = ContractCreateFlag;
                    this.Bt_LowOfPrice.Visible    = false;
                    this.Bt_ReturnOfPrice.Visible = false;
                    IsShow_Control_BiddingEmitHistory(true);
                }

                RmsPM.BLL.Bidding cbidding = new RmsPM.BLL.Bidding();
                cbidding.BiddingCode = this.ApplicationCode;
                //议标
                if (cbidding.BiddingType == "0" && cbidding.Status == "0")
                {
                    this.btnSave.Visible      = false;
                    this.btnAddDtl.Visible    = false;
                    this.btnModify.Visible    = false;
                    this.btnDel.Visible       = false;
                    this.btnNewSupply.Visible = false;
                    this.btnEmit.Visible      = false;
                    this.btnReturn.Visible    = false;
                    this.btnAuditing.Visible  = false;
                    this.btnMessage.Visible   = false;

                    this.Bt_LowOfPrice.Visible    = false;
                    this.Bt_ReturnOfPrice.Visible = false;

                    //this.btnAddMoney.Visible = false;
                    this.btnCheckBiddingDiscuss.Visible    = false;
                    this.btnOldCheckBiddingDiscuss.Visible = false;
                }
                else if (cbidding.BiddingType == "1" && cbidding.Status == "0")//招标
                {
                    this.btnCheckBiddingDiscuss.Visible    = false;
                    this.btnOldCheckBiddingDiscuss.Visible = false;
                    this.btnCheckDiscuss.Visible           = false;
                }
                else
                {
                    this.btnCheckDiscuss.Visible = false;
                    //检查是否存在招标议标数据
                    RmsPM.BLL.BiddingAuditing cbiddingAuditing = new RmsPM.BLL.BiddingAuditing();
                    cbiddingAuditing.BiddingCode = this.ApplicationCode;
                    DataTable dtBiddingAuditing = cbiddingAuditing.GetBiddingAuditings();
                    if (dtBiddingAuditing != null)
                    {
                        if (dtBiddingAuditing.Rows.Count != 0)
                        {
                            this.btnCheckBiddingDiscuss.Visible = false;
                        }
                    }
                }
            }

            RmsPM.BLL.BiddingPrejudication cbiddingPrejudication = new RmsPM.BLL.BiddingPrejudication();
            //议标评审
            this.btnCheckDiscuss.Attributes["OnClick"] = "javascript:OpenDiscuss('" + this.ApplicationCode + "','" + cbiddingPrejudication.GetPrimaryKeyByBiddingCode(this.ApplicationCode) + "','" + this.ProjectCode + "');return false;";
            //招标议标评审
            this.btnCheckBiddingDiscuss.Attributes["OnClick"] = "javascript:OpenBiddingDiscuss('" + this.ApplicationCode + "','" + this.ProjectCode + "');return false;";
            //招标议标单步审核
            this.btnOldCheckBiddingDiscuss.Attributes["OnClick"] = "javascript:OpenBiddingType('" + this.ApplicationCode + "');return false;";
            ////增资评审
            //this.btnAddMoney.Attributes["OnClick"] = "javascript:OpenBiddingDtlAddMoney('" + this.ApplicationCode + "','" + this.ProjectCode + "');return false;";
            this.btnNewSupply.Attributes["OnClick"] = "javascript:OpenNewSupply('" + this.ApplicationCode + "','" + this.ProjectCode + "');return false;";

            this.btnBiddingStart.Attributes["OnClick"]  = "javascript:OpenBiddingStart('" + cbiddingPrejudication.GetPrimaryKeyByBiddingCode(this.ApplicationCode) + "','" + this.ProjectCode + "');return false;";
            this.btnEmit.Attributes["OnClick"]          = "javascript:OpenNewEmit('" + this.ApplicationCode + "','" + this.ProjectCode + "');return false;";
            this.Bt_LowOfPrice.Attributes["OnClick"]    = "javascript:OpenLowOfPrice('" + this.ApplicationCode + "','" + this.ProjectCode + "');return false;";
            this.Bt_ReturnOfPrice.Attributes["OnClick"] = "javascript:ReturnLowOfPrice('" + bm.GetLastBiddingEmitCode() + "" + "','" + this.ProjectCode + "');return false;";
            this.btnReturn.Attributes["OnClick"]        = "javascript:BiddingEmitListReturnModify('" + bm.GetLastBiddingEmitCode() + "" + "','" + this.ProjectCode + "');return false;";
            this.btnAuditing.Attributes["OnClick"]      = "javascript:OpenAuditing('" + this.ApplicationCode + "','" + this.ProjectCode + "');return false;";
            this.btnMessage.Attributes["OnClick"]       = "javascript:BiddingMessage('" + this.ApplicationCode + "','" + this.ProjectCode + "');return false;";
            this.btnContract.Attributes["OnClick"]      = "javascript:BiddingContract('" + this.ApplicationCode + "','" + this.ProjectCode + "');return false;";

            BiddingProcess1.InitControl(Bidding1.ApplicationCode);

            if (!this.user.HasRight("210802"))//招标文件新增
            {
                this.BiddingCondition.Visible              = false;
                this.BiddingContidionFile.Visible          = false;
                this.BiddingDtl.Attributes["onclick"]      = "EventClickTab(0);";
                this.trPrejudication.Attributes["onclick"] = "EventClickTab(1);";
                this.trZBGC.Attributes["onclick"]          = "EventClickTab(2);";

                this.trHBGC.Attributes["onclick"]           = "EventClickTab(3);";
                this.tdBiddingMessage.Attributes["onclick"] = "EventClickTab(4);";
                this.workflowmsg.Attributes["onclick"]      = "EventClickTab(5);";

                this.BiddingConditionFileInfo1.Visible = false;
            }
            else
            {
                this.BiddingConditionFileInfo1.BiddingCode = Bidding1.ApplicationCode;
                this.BiddingConditionFileInfo1.ProjectCode = this.ProjectCode;
                this.BiddingConditionFileInfo1.InitControl();
            }

            if (company == "tangchenpm")//招标文件新增
            {
                //取消招标技术条件选项卡
                this.BiddingCondition.Visible     = false;
                this.BiddingContidionFile.Visible = false;
                //取消投标预审单位选项卡
                this.trPrejudication.Visible = false;
                this.Tr1.Visible             = false;
                //招标过程
                this.trZBGC.Visible            = false;
                this.BiddingProcessDiv.Visible = false;
                //中标通知书
                this.tdBiddingMessage.Visible    = false;
                this.BiddingMessageList1.Visible = false;

                //回标过程
                this.trHBGC.Visible         = false;
                this.BiddingEmitDiv.Visible = false;

                //this.BiddingCondition.Visible = false;
                //this.BiddingContidionFile.Visible = false;
                this.BiddingDtl.Attributes["onclick"] = "EventClickTab(0);";
                //this.trPrejudication.Attributes["onclick"] = "EventClickTab(1);";
                //this.trZBGC.Attributes["onclick"] = "EventClickTab(2);";

                //this.trHBGC.Attributes["onclick"] = "EventClickTab(3);";
                this.workflowmsg.Attributes["onclick"] = "EventClickTab(1);";

                //this.BiddingConditionFileInfo1.Visible = false;
            }


            //this.BiddingPrejudicationSupplierList1.BiddingCode = Bidding1.ApplicationCode;
            //this.BiddingPrejudicationSupplierList1.InitControl();

            if (!this.user.HasRight("2110"))
            {
                this.Bt_LowOfPrice.Visible    = false;
                this.Bt_ReturnOfPrice.Visible = false;
            }

            if (!this.user.HasRight("211301"))
            {
                this.btnOldCheckBiddingDiscuss.Visible = false;
            }
            if (!this.user.HasRight("211302"))
            {
                this.btnCheckBiddingDiscuss.Visible = false;
            }
            if (!this.user.HasRight("211303"))
            {
                this.btnCheckDiscuss.Visible = false;
            }


            this.WorkFlowList1.ProcedureNameAndApplicationCodeList = GetWorkFlowListString();
            this.WorkFlowList1.DataBound();

            //是否存在预审单位
            if (this.WorkFlowList1.WorkFlowCount != 0)
            {
                this.btnDel.Visible = false;
            }

            //添加中标通知书列表
            this.LoadBiddingMessageList(this.ApplicationCode);
        }