Пример #1
0
        /// ****************************************************************************
        /// <summary>
        /// 数据加载
        /// </summary>
        /// ****************************************************************************
        private void LoadData()
        {
            try
            {
                if (Request["ProjectCode"] != null)
                {
                    this.ProjectCode = Request["ProjectCode"].ToString();
                }
                BLL.BiddingMessage cBiddingMessage = new BLL.BiddingMessage();
                cBiddingMessage.BiddingCode = Request["BiddingCode"] + "";
                cBiddingMessage.State       = "0";
                DataTable dt = cBiddingMessage.GetBiddingMessages();
                this.dgList.DataSource = dt;
                this.dgList.DataBind();
                string company = this.up_sPMName.ToLower();
                switch (company)
                {
                case "zhudingpm":
                    this.dgList.Columns[7].Visible = true;
                    break;

                case "tangchenpm":
                    this.dgList.Columns[5].Visible = false;
                    break;
                }

                this.gpControl.RowsCount = dt.Rows.Count.ToString();
                dt.Dispose();
            }
            catch (Exception ex)
            {
                ApplicationLog.WriteLog(this.ToString(), ex, "");
            }
        }
Пример #2
0
        /// ****************************************************************************
        /// <summary>
        /// 提交数据
        /// </summary>
        /// ****************************************************************************
        public void SubmitData()
        {
            string  BiddingReturnCode = "";
            string  BiddingDtlCode    = "";
            decimal tempMoney         = 0;

            foreach (ListItem li in this.CheckBoxList1.Items)
            {
                if (li.Selected)
                {
                    BLL.BiddingReturn br = new BLL.BiddingReturn();
                    br.BiddingReturnCode = li.Value;
                    BiddingReturnCode   += "'" + br.BiddingReturnCode + "',";
                    BiddingDtlCode      += "'" + br.BiddingDtlCode + "',";

                    if (System.Convert.ToDecimal(br.Money) > tempMoney)
                    {
                        this.ViewState["MaxMoney"] = br.Money;
                        tempMoney = System.Convert.ToDecimal(br.Money);
                    }
                }
            }

            BLL.Bidding bidding = new BLL.Bidding();
            bidding.dao         = this.dao;
            bidding.BiddingCode = this.BiddingCode;

            BLL.BiddingMessage cBiddingMessage = new BLL.BiddingMessage();
            cBiddingMessage.BiddingMessageCode = this.ApplicationCode;
            cBiddingMessage.BiddingCode        = this.BiddingCode;
            cBiddingMessage.ProjectCode        = this.ProjectCode;
            cBiddingMessage.ContractNember     = this.txtContractNember.Value;
            cBiddingMessage.ContractName       = this.txtContractName.Value;
            cBiddingMessage.ContractType       = bidding.Type;
            cBiddingMessage.Supplier           = this.DropSupplier.SelectedValue;
            cBiddingMessage.ContractDate       = this.txtContractDate.Value;
            cBiddingMessage.Remark             = this.txtRemark.Value;
            cBiddingMessage.CreateDate         = DateTime.Now.ToShortDateString();
            cBiddingMessage.CreateUser         = "";
            cBiddingMessage.State             = "0";
            cBiddingMessage.Flag              = "0";
            cBiddingMessage.BiddingReturnCode = BiddingReturnCode;
            cBiddingMessage.BiddingDtlCode    = BiddingDtlCode;
            cBiddingMessage.dao = this.dao;
            cBiddingMessage.BiddingMessageSubmit();

            if (this.ApplicationCode == "")
            {
                this.ApplicationCode = cBiddingMessage.BiddingMessageCode;
            }
        }
Пример #3
0
        private string GetWorkFlowListString()
        {
            string ListString = "''";

            BLL.BiddingAuditing cbiddingAuditing = new RmsPM.BLL.BiddingAuditing();
            cbiddingAuditing.BiddingCode = this.ApplicationCode;
            DataTable dtba = cbiddingAuditing.GetBiddingAuditings();

            for (int i = 0; i < dtba.Rows.Count; i++)
            {
                ListString += ",'招标议标评审" + dtba.Rows[i]["BiddingAuditingCode"].ToString() + "'";
            }


            BLL.BiddingFile bf = new RmsPM.BLL.BiddingFile();
            bf.BiddingCode = this.ApplicationCode;
            DataTable dtbf = bf.GetBiddingFiles();

            for (int i = 0; i < dtbf.Rows.Count; i++)
            {
                ListString += ",'招标文件评审" + dtbf.Rows[i]["BiddingFileCode"].ToString() + "'";
            }


            BLL.BiddingConditionFile bcf = new RmsPM.BLL.BiddingConditionFile();
            bcf.BiddingCode = this.ApplicationCode;
            DataTable dtbcf = bcf.GetBiddings();

            for (int i = 0; i < dtbcf.Rows.Count; i++)
            {
                ListString += ",'招标技术条件评审" + dtbcf.Rows[i]["BiddingConditionFileCode"].ToString() + "'";
            }

            BLL.BiddingPrejudication bp = new BLL.BiddingPrejudication();
            bp.BiddingCode = this.ApplicationCode;
            DataTable dtp = bp.GetBiddingPrejudications();

            for (int i = 0; i < dtp.Rows.Count; i++)
            {
                ListString += ",'投标单位评审" + dtp.Rows[i]["BiddingPrejudicationCode"].ToString() + "'";
            }


            BLL.BiddingEmit be = new BLL.BiddingEmit();
            be.BiddingCode = this.ApplicationCode;
            DataTable tb = be.GetBiddingEmits();

            for (int z = 0; z < tb.Rows.Count; z++)
            {
                ListString += ",'中标单位评审" + tb.Rows[z]["BiddingEmitCode"].ToString() + "'";
            }

            BLL.BiddingMessage bm = new BLL.BiddingMessage();
            bm.BiddingCode = this.ApplicationCode;
            DataTable dtm = bm.GetBiddingMessages();

            for (int i = 0; i < dtm.Rows.Count; i++)
            {
                ListString += ",'中标通知书评审" + dtm.Rows[i]["BiddingMessageCode"].ToString() + "'";
            }

            return(ListString);
        }
Пример #4
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);
        }
Пример #5
0
        /// ****************************************************************************
        /// <summary>
        /// 数据加载
        /// </summary>
        /// ****************************************************************************
        private void LoadData(bool Flag)
        {
            this.ViewState["BiddingReturnCodeStr"] = "";
            if (this.ApplicationCode != "")
            {
                BLL.BiddingMessage cBiddingMessage = new BLL.BiddingMessage();
                cBiddingMessage.BiddingMessageCode = this.ApplicationCode;
                this.BiddingCode  = cBiddingMessage.BiddingCode;
                this.ProjectCode  = cBiddingMessage.ProjectCode;
                this.SupplierCode = cBiddingMessage.Supplier;
                this.ProjectCode  = cBiddingMessage.ProjectCode;

                BLL.Bidding bidding = new BLL.Bidding();
                bidding.BiddingCode           = cBiddingMessage.BiddingCode;
                this.ViewState["Money"]       = bidding.Money;
                this.ViewState["mostly"]      = bidding.Accessory;
                this.ViewState["BiddingType"] = bidding.Type;

                if (Flag)
                {
                    this.txtProjectCode.InnerHtml  = "&nbsp;&nbsp;&nbsp;&nbsp;" + BLL.ProjectRule.GetProjectName(cBiddingMessage.ProjectCode);
                    this.txtContractNember.Value   = cBiddingMessage.ContractNember;
                    this.txtContractName.Value     = cBiddingMessage.ContractName;
                    this.txtContractType.InnerHtml = "&nbsp;&nbsp;&nbsp;&nbsp;" + BLL.ContractRule.GetContractTypeName(cBiddingMessage.ContractType);
                    //this.txtSupplier.InnerHtml = "&nbsp;&nbsp;&nbsp;&nbsp;"+BLL.ProjectRule.GetSupplierName(cBiddingMessage.Supplier);
                    this.txtContractDate.Value = cBiddingMessage.ContractDate;
                    this.txtRemark.Value       = cBiddingMessage.Remark;


                    DataTable dt = bidding.GetBiddingReturnNoMessage();
                    foreach (DataRow dr in dt.Select())
                    {
                        ListItem li = new ListItem(BLL.ProjectRule.GetSupplierName(dr["SupplierCode"].ToString()), dr["SupplierCode"].ToString());
                        if (!DropSupplier.Items.Contains(li))
                        {
                            this.DropSupplier.Items.Add(li);
                        }
                    }
                    ListItem lis = new ListItem(BLL.ProjectRule.GetSupplierName(cBiddingMessage.Supplier), cBiddingMessage.Supplier);
                    this.DropSupplier.Items.Add(lis);
                    this.DropSupplier.SelectedIndex = this.DropSupplier.Items.IndexOf(this.DropSupplier.Items.FindByValue(cBiddingMessage.Supplier));
                    BoundBiddingDtl(cBiddingMessage.BiddingReturnCode);
                    this.ViewState["BiddingReturnCodeStr"] = cBiddingMessage.BiddingReturnCode;
                }
                else
                {
                    this.tdProjectCode.InnerHtml    = "&nbsp;&nbsp;&nbsp;&nbsp;" + BLL.ProjectRule.GetProjectName(cBiddingMessage.ProjectCode);
                    this.tdContractNember.InnerHtml = "&nbsp;&nbsp;&nbsp;&nbsp;" + cBiddingMessage.ContractNember;
                    this.tdContractName.InnerHtml   = "&nbsp;&nbsp;&nbsp;&nbsp;" + cBiddingMessage.ContractName;
                    this.tdContractType.InnerHtml   = "&nbsp;&nbsp;&nbsp;&nbsp;" + BLL.ContractRule.GetContractTypeName(cBiddingMessage.ContractType);
                    this.tdSupplier.InnerHtml       = "&nbsp;&nbsp;&nbsp;&nbsp;" + BLL.ProjectRule.GetSupplierName(cBiddingMessage.Supplier);
                    this.tdBiddingDtl.InnerHtml     = this.GetBiddingDtlListStr(cBiddingMessage.BiddingReturnCode, cBiddingMessage.Supplier);
                    this.tdContractDate.InnerHtml   = "&nbsp;&nbsp;&nbsp;&nbsp;" + cBiddingMessage.ContractDate;
                    this.tdRemark.InnerHtml         = "&nbsp;&nbsp;&nbsp;&nbsp;" + cBiddingMessage.Remark.Replace("\n", "<br>");
                }
            }
            else
            {
                BLL.Bidding bidding = new BLL.Bidding();
                bidding.BiddingCode            = this.BiddingCode;
                this.ViewState["Money"]        = bidding.Money;
                this.ViewState["mostly"]       = bidding.Accessory;
                this.ViewState["BiddingType"]  = bidding.Type;
                this.txtProjectCode.InnerHtml  = "&nbsp;&nbsp;&nbsp;&nbsp;" + BLL.ProjectRule.GetProjectName(bidding.ProjectCode);
                this.txtContractType.InnerHtml = "&nbsp;&nbsp;&nbsp;&nbsp;" + BLL.ContractRule.GetContractTypeName(bidding.Type);
                this.ProjectCode = bidding.ProjectCode;
                DataTable dt = bidding.GetBiddingReturnNoMessage();
                foreach (DataRow dr in dt.Select())
                {
                    ListItem li = new ListItem(BLL.ProjectRule.GetSupplierName(dr["SupplierCode"].ToString()), dr["SupplierCode"].ToString());
                    if (!DropSupplier.Items.Contains(li))
                    {
                        this.DropSupplier.Items.Add(li);
                    }
                }
                BoundBiddingDtl("");

                this.txtContractName.Value = bidding.Title;
            }
            //构建编号
            BLL.BiddingMessage biddingMessage = new BLL.BiddingMessage();
            biddingMessage.BiddingCode = this.BiddingCode;
            System.Data.DataTable BiddingMessagedt = biddingMessage.GetBiddingMessages() as System.Data.DataTable;
            string CNnum = "0";

            if (BiddingMessagedt != null)
            {
                CNnum = BiddingMessagedt.Rows.Count.ToString();
            }

            BLL.BiddingPrejudication bp = new BLL.BiddingPrejudication();
            bp.BiddingCode = this.BiddingCode;
            DataTable dtp = bp.GetBiddingPrejudications();

            DataRow[] drw = dtp.Select("", "CreateDate desc");
            if (drw.Length > 0)
            {
                this.ContractNember = drw[0]["Number"].ToString() + "-" + CNnum;
            }
        }