Beispiel #1
0
        /// ****************************************************************************
        /// <summary>
        /// 提交数据
        /// </summary>
        /// ****************************************************************************
        public void SubmitData()
        {
            try
            {
                string            state = Get_BiddingState();
                BLL.BiddingManage bm    = new BLL.BiddingManage();
                bm.BiddingCode = this.ApplicationCode;
                //是否已存该招标计划,存在的话,保持State不变
                bm.Type           = this.inputSystemGroup.Value;
                bm.Title          = this.txtTitle.Value;
                bm.Content        = this.txtContent.Value;
                bm.BiddingAddress = this.TxtAddress.Value;
                bm.Accessory      = "";
                bm.ArrangedDate   = this.txtArrangedDate.Value;

                if (this.txtStandardDate.Value.Trim() != "")
                {
                    bm.StandardDate = this.txtStandardDate.Value;
                }
                bm.PrejudicationDate = this.txtPrejudicationDate.Value;
                bm.EmitDate          = this.txtEmitDate.Value;
                bm.ReturnDate        = this.txtReturnDate.Value;
                bm.ConfirmDate       = this.txtConfirmDate.Value;
                bm.State             = state;
                bm.Remark            = this.txtRemark.Value;
                bm.BiddingType       = this.selBiddingType.Value;
                //bm.Money = this.Manycurrencycost1.TotalMoneyText;
                bm.BiddingRemark1 = Inputunit1.Value;
                if (this.chkaccssory.Checked)
                {
                    bm.Accessory = "1";
                }
                else
                {
                    bm.Accessory = "0";
                }
                bm.ProjectCode = this.ProjectCode;

                //bm.ObligateMoney = this.TeamMoney;

                bm.dao = this.dao;
                bm.BiddingSubmit();
                this.TeamMoney = bm.Money;

                if (this.ApplicationCode == "")
                {
                    this.ApplicationCode = bm.BiddingCode;
                }
                this.BiddingState = bm.State;
            }
            catch (Exception ex)
            {
                Response.Write(Rms.Web.JavaScript.Alert(true, ex.Message));
                throw ex;
            }
        }
Beispiel #2
0
        private string Get_BiddingState()
        {
            BLL.BiddingManage bm = new BLL.BiddingManage();
            bm.BiddingCode = this.ApplicationCode;
            string state;

            try
            {
                state = bm.State;
                return(state);
            }
            catch
            {
                state = "0";
                return(state);
            }
        }
Beispiel #3
0
        /// ****************************************************************************
        /// <summary>
        /// 数据加载
        /// </summary>
        /// ****************************************************************************
        private void LoadData()
        {
            try
            {
                if (this.DtBidding != null)
                {
                    this.dgList.DataSource = DtBidding;
                    this.dgList.DataBind();
                    this.gpControl.RowsCount = DtBidding.Rows.Count.ToString();
                }
                else
                {
                    BLL.BiddingManage bm = new BLL.BiddingManage();

                    bm.BiddingCode       = _BiddingCode;
                    bm.Type              = _Type;
                    bm.Title             = _Title;
                    bm.Content           = _Content;
                    bm.Accessory         = _Accessory;
                    bm.ArrangedDate      = _ArrangedDate;
                    bm.StandardDate      = _StandardDate;
                    bm.PrejudicationDate = _PrejudicationDate;
                    bm.EmitDate          = _EmitDate;
                    bm.ReturnDate        = _ReturnDate;
                    bm.ConfirmDate       = _ConfirmDate;
                    bm.State             = _State;
                    bm.Remark            = _Remark;
                    bm.ProjectCode       = _ProjectCode;
                    bm.CostCode          = _CostCode;
                    bm.CostBudgetSetCode = _CostBudgetSetCode;
                    bm.PBSType           = _PBSType;
                    bm.PBSCode           = _PBSCode;
                    bm.Money             = _Money;

                    DataTable dt = bm.GetBiddings();
                    this.dgList.DataSource = dt;
                    this.dgList.DataBind();
                    this.gpControl.RowsCount = dt.Rows.Count.ToString();
                    dt.Dispose();
                }
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
Beispiel #4
0
        /// ****************************************************************************
        /// <summary>
        /// 数据加载
        /// </summary>
        /// ****************************************************************************
        private void LoadData(bool Flag)
        {
            BLL.BiddingManage bm             = new BLL.BiddingManage();
            BLL.BiddingReturn cBiddingReturn = new BLL.BiddingReturn();
            if (this.ApplicationCode != "")
            {
                cBiddingReturn.BiddingEmitCode = this.ApplicationCode;
                BLL.BiddingEmit cBiddingEmit = new BLL.BiddingEmit();
                cBiddingEmit.BiddingEmitCode = cBiddingReturn.BiddingEmitCode;
                this.BiddingCode             = cBiddingEmit.BiddingCode;
                bm.BiddingCode                 = this.BiddingCode;
                this.ApplicationCode           = bm.GetLastBiddingEmitCode();
                cBiddingReturn.BiddingEmitCode = this.ApplicationCode;
            }
            else
            {
                bm.BiddingCode                 = this.BiddingCode;
                this.ApplicationCode           = bm.GetLastBiddingEmitCode();
                cBiddingReturn.BiddingEmitCode = this.ApplicationCode;
            }

            this.ProjectCode = bm.ProjectCode;

            DataTable dt = cBiddingReturn.GetBiddingReturns();

            //获取最后的压价信息
            dt = BLL.BiddingSystem.GetAuditingMessage(dt, this.BiddingCode, this.ApplicationCode);
            DataView dv1 = new DataView(dt);
            //按价格排
            DataView dv2 = new DataView(dt);

            dv2.Sort = "BiddingDtlCode,Money";
            int le = dv1.Table.Rows.Count;

            //DataRow dr
            dv1.Table.Columns.Add("myState", System.Type.GetType("System.String"));
            int     j         = 0;
            int     k         = 0;
            decimal tempMoney = 0;

            foreach (DataRowView drv2 in dv2)
            {
                j++;
                foreach (DataRowView drv1 in dv1)
                {
                    if (drv2["BiddingReturnCode"] == drv1["BiddingReturnCode"] && drv2["BiddingDtlCode"] == drv1["BiddingDtlCode"])
                    {
                        drv1["myState"] = drv2["State"];

                        if (System.Convert.ToDecimal(drv1["Money"]) > tempMoney)
                        {
                            this.ViewState["MaxMoney"] = drv1["Money"].ToString();
                            tempMoney = System.Convert.ToDecimal(drv1["Money"]);
                        }
                        break;
                    }
                }
            }
            this.Repeater1.DataSource = dv1;
            this.Repeater1.DataBind();
            for (int i = 0; i < this.Repeater1.Items.Count; i++)
            {
                if (Flag)
                {
                    ((HtmlInputCheckBox)this.Repeater1.Items[i].FindControl("chkAuditing")).Visible   = true;
                    ((HtmlGenericControl)this.Repeater1.Items[i].FindControl("spanAuditing")).Visible = false;
                    ((HtmlInputCheckBox)this.Repeater1.Items[i].FindControl("chkAuditing")).Checked   = (dt.Rows[i]["Flag"].ToString() == "1");
                }
                else
                {
                    ((HtmlInputCheckBox)this.Repeater1.Items[i].FindControl("chkAuditing")).Visible     = false;
                    ((HtmlGenericControl)this.Repeater1.Items[i].FindControl("spanAuditing")).Visible   = true;
                    ((HtmlGenericControl)this.Repeater1.Items[i].FindControl("spanAuditing")).InnerHtml = this.SpanText("1", dt.Rows[i]["Flag"].ToString());
                }
                if (this.State1 == ModuleState.Operable)
                {
                    for (k = 0; k < ((RadioButtonList)this.Repeater1.Items[i].FindControl("RadioDesign")).Items.Count; k++)
                    {
                        ListItem ud_Item = ((RadioButtonList)this.Repeater1.Items[i].FindControl("RadioDesign")).Items[k];
                        if (ud_Item.Value == dt.Rows[i]["Design"].ToString())
                        {
                            ((RadioButtonList)this.Repeater1.Items[i].FindControl("RadioDesign")).Items[k].Selected = true;
                            break;
                        }
                    }
//					((RadioButtonList)this.Repeater1.Items[i].FindControl("RadioDesign")).SelectedValue = dt.Rows[i]["Design"].ToString();
                    ((RadioButtonList)this.Repeater1.Items[i].FindControl("RadioDesign")).Visible   = true;
                    ((HtmlGenericControl)this.Repeater1.Items[i].FindControl("spanDesign")).Visible = false;
                }
                else
                {
                    ((HtmlGenericControl)this.Repeater1.Items[i].FindControl("spanDesign")).InnerHtml = this.SpanText("2", dt.Rows[i]["Design"].ToString());
                    ((RadioButtonList)this.Repeater1.Items[i].FindControl("RadioDesign")).Visible     = false;
                    ((HtmlGenericControl)this.Repeater1.Items[i].FindControl("spanDesign")).Visible   = true;
                }
                if (this.State2 == ModuleState.Operable)
                {
                    for (k = 0; k < ((RadioButtonList)this.Repeater1.Items[i].FindControl("RadioProject")).Items.Count; k++)
                    {
                        ListItem ud_Item = ((RadioButtonList)this.Repeater1.Items[i].FindControl("RadioProject")).Items[k];
                        if (ud_Item.Value == dt.Rows[i]["Design"].ToString())
                        {
                            ((RadioButtonList)this.Repeater1.Items[i].FindControl("RadioProject")).Items[k].Selected = true;
                            break;
                        }
                    }

                    ((RadioButtonList)this.Repeater1.Items[i].FindControl("RadioProject")).Visible   = true;
                    ((HtmlGenericControl)this.Repeater1.Items[i].FindControl("spanProject")).Visible = false;
                }
                else
                {
                    ((HtmlGenericControl)this.Repeater1.Items[i].FindControl("spanProject")).InnerHtml = this.SpanText("2", dt.Rows[i]["Project"].ToString());
                    ((RadioButtonList)this.Repeater1.Items[i].FindControl("RadioProject")).Visible     = false;
                    ((HtmlGenericControl)this.Repeater1.Items[i].FindControl("spanProject")).Visible   = true;
                }
                if (this.State3 == ModuleState.Operable)
                {
                    for (k = 0; k < ((RadioButtonList)this.Repeater1.Items[i].FindControl("RadioConsultant")).Items.Count; k++)
                    {
                        ListItem ud_Item = ((RadioButtonList)this.Repeater1.Items[i].FindControl("RadioConsultant")).Items[k];
                        if (ud_Item.Value == dt.Rows[i]["Design"].ToString())
                        {
                            ((RadioButtonList)this.Repeater1.Items[i].FindControl("RadioConsultant")).Items[k].Selected = true;
                            break;
                        }
                    }
                    ((RadioButtonList)this.Repeater1.Items[i].FindControl("RadioConsultant")).Visible   = true;
                    ((HtmlGenericControl)this.Repeater1.Items[i].FindControl("spanConsultant")).Visible = false;
                }
                else
                {
                    ((HtmlGenericControl)this.Repeater1.Items[i].FindControl("spanConsultant")).InnerHtml = this.SpanText("2", dt.Rows[i]["Consultant"].ToString());
                    ((RadioButtonList)this.Repeater1.Items[i].FindControl("RadioConsultant")).Visible     = false;
                    ((HtmlGenericControl)this.Repeater1.Items[i].FindControl("spanConsultant")).Visible   = true;
                }
                if (this.State4 == ModuleState.Operable)
                {
                    ((HtmlGenericControl)this.Repeater1.Items[i].FindControl("txtState")).Visible  = true;
                    ((HtmlGenericControl)this.Repeater1.Items[i].FindControl("spanState")).Visible = false;
                }
                else
                {
                    ((HtmlGenericControl)this.Repeater1.Items[i].FindControl("txtState")).Visible  = false;
                    ((HtmlGenericControl)this.Repeater1.Items[i].FindControl("spanState")).Visible = true;
                }
                //商务标报价是否显示
                if (this.State5 == ModuleState.Sightless)
                {
                    ((HtmlGenericControl)this.Repeater1.Items[i].FindControl("txtState")).InnerHtml  = "&nbsp;";
                    ((HtmlGenericControl)this.Repeater1.Items[i].FindControl("spanState")).InnerHtml = "&nbsp;";
                    ((HtmlGenericControl)this.Repeater1.Items[i].FindControl("spMoney")).InnerHtml   = "&nbsp;";
                }
                //显示评选结果
                if (this.SetAgreementMessage == ModuleState.Sightless)
                {
                    ((HtmlGenericControl)this.Repeater1.Items[i].FindControl("spanDesign")).Visible = false;
                }
                if (this.SetProjectMessage == ModuleState.Sightless)
                {
                    ((HtmlGenericControl)this.Repeater1.Items[i].FindControl("spanProject")).Visible = false;
                }
                if (this.SetAdviserMessage == ModuleState.Sightless)
                {
                    ((HtmlGenericControl)this.Repeater1.Items[i].FindControl("spanConsultant")).Visible = false;
                }
            }
            dt.Dispose();
        }
Beispiel #5
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);
        }
Beispiel #6
0
 /// ****************************************************************************
 /// <summary>
 /// 删除数据
 /// </summary>
 /// ****************************************************************************
 public void Delete()
 {
     BLL.BiddingManage bm = new BLL.BiddingManage();
     bm.BiddingCode = this.ApplicationCode;
     bm.BiddingDelete();
 }
Beispiel #7
0
        /// ****************************************************************************
        /// <summary>
        /// 数据加载
        /// </summary>
        /// ****************************************************************************
        private void LoadData(bool Flag)
        {
            if ((Session["User"] == null) && (Request["DebugUser"] + "" != ""))
            {
                Session["User"] = new User(Request["DebugUser"] + "");
            }

            if ((Session["User"] == null) && (ConfigurationSettings.AppSettings["IsDebug"] == "1") && (ConfigurationSettings.AppSettings["DebugUser"] != ""))
            {
                Session["User"] = new User(ConfigurationSettings.AppSettings["DebugUser"]);
            }



            if (Session["User"] != null)
            {
                User user = (User)Session["User"];
                this.btnLastUpdate.Visible  = user.HasRight("2111");
                this.btnlastUpdate2.Visible = user.HasRight("2111");
            }
            this.inputSystemGroup.ClassCode = "0501";
            //tangchenpm 隐藏招标类型及预算金额
            string company = System.Configuration.ConfigurationManager.AppSettings["PMName"].ToLower();

            switch (company)
            {
            case "tangchenpm":
                this.TrBiddingTypeAndMoneyEdit.Visible = false;
                this.TrBiddingTypeAndMoneyView.Visible = false;
                break;
            }


            if (this.ApplicationCode != "")
            {
                BLL.BiddingManage bm = new BLL.BiddingManage();
                bm.BiddingCode           = this.ApplicationCode;
                this.BiddingState        = bm.State;
                this.ViewState["mostly"] = bm.Accessory;
                DataTable dt = bm.GetBiddingCosts();


                this.btnLastUpdate.Attributes["onclick"]  = "javascript:BiddingLog();";
                this.btnlastUpdate2.Attributes["onclick"] = "javascript:BiddingLog();";
                if (Flag)
                {
                    this.txtTitle.Value   = bm.Title;
                    this.txtContent.Value = bm.Content;
                    this.TxtAddress.Value = bm.BiddingAddress;

                    this.txtMoney.Text              = BLL.MathRule.GetDecimalShowString(bm.Money);
                    this.txtArrangedDate.Value      = bm.ArrangedDate;
                    this.txtStandardDate.Value      = bm.StandardDate;
                    this.txtPrejudicationDate.Value = bm.PrejudicationDate;
                    this.txtEmitDate.Value          = bm.EmitDate;
                    this.txtReturnDate.Value        = bm.ReturnDate;
                    this.txtConfirmDate.Value       = bm.ConfirmDate;
                    this.txtRemark.Value            = bm.Remark;
                    this.txtProject.InnerHtml       = BLL.ProjectRule.GetProjectName(bm.ProjectCode);
                    this.ProjectCode            = bm.ProjectCode;
                    this.inputSystemGroup.Value = bm.Type;
                    this.chkaccssory.Checked    = (bm.Accessory == "1");
                    Inputunit1.Value            = bm.BiddingRemark1;

                    RmsPM.BLL.BiddingSystem.Set_BiddingTypeDictionary(this.selBiddingType);
                    string BiddingType = bm.BiddingType;
                    if (BiddingType == null || BiddingType == "")
                    {
                        this.selBiddingType.SelectedIndex = 0;
                    }
                    else
                    {
                        this.selBiddingType.Value = BiddingType;
                    }

                    this.BiddingFileInfo1.State       = BiddingFileState;
                    this.BiddingFileInfo1.BiddingCode = bm.BiddingCode;
                    this.BiddingFileInfo1.ProjectCode = this.ProjectCode;
                    this.BiddingFileInfo1.InitControl();
                }
                else
                {
                    this.tdType.InnerHtml              = BLL.ContractRule.GetContractTypeName(bm.Type);
                    this.tdTitle.InnerHtml             = bm.Title + "&nbsp;&nbsp;(" + BLL.BiddingSystem.GetStateMessage(bm.State) + ")";
                    this.tdBiddingType.Text            = BLL.BiddingSystem.GetBiddingTypeName(bm.BiddingType.ToString());
                    this.tdMoney.Text                  = BLL.MathRule.GetDecimalShowString(bm.Money);
                    this.tdContent.InnerHtml           = bm.Content.Replace("\n", "<br>");
                    this.tdArrangedDate.InnerHtml      = bm.ArrangedDate;
                    this.tdStandardDate.InnerHtml      = bm.StandardDate;
                    this.tdPrejudicationDate.InnerHtml = bm.PrejudicationDate;
                    this.tdEmitDate.InnerHtml          = bm.EmitDate;
                    this.tdReturnDate.InnerHtml        = bm.ReturnDate;
                    this.tdConfirmDate.InnerHtml       = bm.ConfirmDate;
                    this.tdRemark.InnerHtml            = bm.Remark.Replace("\n", "<br>");
                    this.tdProjectName.InnerHtml       = BLL.ProjectRule.GetProjectName(bm.ProjectCode);
                    this.lblAddress.Text               = bm.BiddingAddress;

                    this.lblUnit.Text = RmsPM.BLL.SystemRule.GetUnitFullName(bm.BiddingRemark1);

                    EntityData entity = DAL.EntityDAO.CostBudgetDAO.GetV_CostBudgetSetByCode(bm.CostBudgetSetCode);
                    if (entity.HasRecord())
                    {
                        if (bm.Accessory == "1")
                        {
                            this.tdCostBudget.InnerHtml = "是";
                        }
                        else
                        {
                            this.tdCostBudget.InnerHtml = "否";
                        }
                        //this.tdPBSType.InnerHtml = bm.PBSType;
                        //this.tdPBSCode.InnerHtml = entity.GetString("PBSName");
                    }

                    this.EyeaBiddingFileInfo.State       = BiddingFileState;
                    this.EyeaBiddingFileInfo.BiddingCode = bm.BiddingCode;
                    this.EyeaBiddingFileInfo.ProjectCode = this.ProjectCode;
                    this.EyeaBiddingFileInfo.InitControl();
                }
            }
            else
            {
                this.ViewState["mostly"]    = "";
                this.btnLastUpdate.Visible  = false;
                this.btnlastUpdate2.Visible = false;
                if (Flag)
                {
                    if (this.Request["ProjectCode"] != null)
                    {
                        ProjectCode = Request["ProjectCode"];
                    }
                    else if (this.Session["ProjectCode"] != null)
                    {
                        ProjectCode = Session["ProjectCode"].ToString();
                    }
                    this.ApplicationCode       = DAL.EntityDAO.SystemManageDAO.GetNewSysCode("Bidding");
                    this.txtProject.InnerHtml  = BLL.ProjectRule.GetProjectName(this.ProjectCode);
                    this.txtArrangedDate.Value = DateTime.Now.ToString();

                    this.txtStandardDate.Value      = DateTime.Now.ToString();
                    this.txtPrejudicationDate.Value = DateTime.Now.ToString();
                    this.txtEmitDate.Value          = DateTime.Now.ToString();
                    this.txtReturnDate.Value        = DateTime.Now.ToString();
                    this.txtConfirmDate.Value       = DateTime.Now.ToString();


                    //取到当前用户所属部门
                    this.Inputunit1.Value = SetNewAddedUnit(ProjectCode);
                    RmsPM.BLL.BiddingSystem.Set_BiddingTypeDictionary(this.selBiddingType);
                }


                this.BiddingFileInfo1.State = ModuleState.Unbeknown;

                this.BiddingFileInfo1.ProjectCode = this.ProjectCode;
                this.BiddingFileInfo1.InitControl();

                this.EyeaBiddingFileInfo.State       = ModuleState.Unbeknown;
                this.EyeaBiddingFileInfo.ProjectCode = this.ProjectCode;
                this.EyeaBiddingFileInfo.InitControl();
            }

            //string company = System.Configuration.ConfigurationManager.AppSettings["PMName"].ToLower();
            //switch (company)
            //{
            //    case "shimaopm":
            //        this.selBiddingType.Visible = false;
            //        break;
            //}
        }