Example #1
0
        /// ****************************************************************************
        /// <summary>
        /// 数据加载
        /// </summary>
        /// ****************************************************************************
        private void LoadData()
        {
            try
            {
                BLL.BiddingPrejudication cBiddingPrejudication = new BLL.BiddingPrejudication();

                if (_BiddingPrejudicationCode != null)
                {
                    cBiddingPrejudication.BiddingPrejudicationCode = _BiddingPrejudicationCode;
                }
                if (_BiddingCode != null)
                {
                    cBiddingPrejudication.BiddingCode = _BiddingCode;
                }
                if (_WorkConfine != null)
                {
                    cBiddingPrejudication.WorkConfine = _WorkConfine;
                }
                if (_Number != null)
                {
                    cBiddingPrejudication.Number = _Number;
                }
                if (_Remark != null)
                {
                    cBiddingPrejudication.Remark = _Remark;
                }
                if (_UserCode != null)
                {
                    cBiddingPrejudication.UserCode = _UserCode;
                }
                if (_CreateDate != null)
                {
                    cBiddingPrejudication.CreateDate = _CreateDate;
                }
                if (_State != null)
                {
                    cBiddingPrejudication.State = _State;
                }
                if (_Flag != null)
                {
                    cBiddingPrejudication.Flag = _Flag;
                }

                DataTable dt = cBiddingPrejudication.GetBiddingPrejudications();
                this.dgList.DataSource = dt;
                this.dgList.DataBind();
                this.gpControl.RowsCount = dt.Rows.Count.ToString();
                dt.Dispose();
            }
            catch (Exception ex)
            {
                ApplicationLog.WriteLog(this.ToString(), ex, "");
            }
        }
        public void SubmitBiddingState()
        {
            BLL.BiddingPrejudication cBiddingPrejudication = new BLL.BiddingPrejudication();
            cBiddingPrejudication.BiddingPrejudicationCode = this.ApplicationCode;
            cBiddingPrejudication.dao = this.dao;

            BLL.Bidding bidding = new BLL.Bidding();
            bidding.dao         = this.dao;
            bidding.BiddingCode = cBiddingPrejudication.BiddingCode;
            bidding.State       = "1";
            bidding.BiddingSubmit();
        }
        /// ****************************************************************************
        /// <summary>
        /// 提交数据
        /// </summary>
        /// ****************************************************************************
        public void SubmitData()
        {
            if (txtNumber.Value == "")
            {
                //Response.Write(Rms.Web.JavaScript.Alert(true,"合同编号不能为空"));
                throw new Exception("编号不能为空");
            }
            BLL.BiddingPrejudication cBiddingPrejudication = new BLL.BiddingPrejudication();
            cBiddingPrejudication.BiddingPrejudicationCode = this.ApplicationCode;
            cBiddingPrejudication.BiddingCode = this.BiddingCode;
            cBiddingPrejudication.Number      = this.txtNumber.Value;
            cBiddingPrejudication.UserCode    = this.UserCode;
            cBiddingPrejudication.CreateDate  = DateTime.Now.ToShortDateString();
            cBiddingPrejudication.State       = "";
            cBiddingPrejudication.Flag        = "";
            cBiddingPrejudication.dao         = this.dao;
            cBiddingPrejudication.BiddingPrejudicationSubmit();

            if (this.ApplicationCode == "")
            {
                BLL.BiddingSupplier cBiddingSupplier = new BLL.BiddingSupplier();
                cBiddingSupplier.BiddingPrejudicationCode = this.ViewState["tempCode"].ToString();
                cBiddingSupplier.dao = dao;
                EntityData entity = cBiddingSupplier._GetBiddingSuppliers();
                for (int i = 0; i < entity.CurrentTable.Rows.Count; i++)
                {
                    entity.CurrentTable.Rows[i]["BiddingPrejudicationCode"] = cBiddingPrejudication.BiddingPrejudicationCode;
                }
                dao.SubmitEntity(entity);
                this.ApplicationCode = cBiddingPrejudication.BiddingPrejudicationCode;
                this.AttachMentAdd1.SaveAttachMent(this.ApplicationCode);
                this.AttachMentAdd2.SaveAttachMent(this.ApplicationCode);
                this.AttachMentAdd3.SaveAttachMent(this.ApplicationCode);
                BLL.BiddingSystem.UpDataPrejudicationCode(cBiddingPrejudication.BiddingPrejudicationCode, this.ViewState["tempCode"].ToString());
            }
        }
Example #4
0
        /// ****************************************************************************
        /// <summary>
        /// 数据加载
        /// </summary>
        /// ****************************************************************************
        private void LoadData(bool Flag)
        {
            this.CheckBox2.Visible = this.IsWSZTB;
            this.TbWSZTB.Visible   = this.IsWSZTB;
            this.GridView1.Visible = this.IsWSZTB;
            if (this.BiddingEmitCode != "")
            {
                BLL.BiddingReturn cBiddingReturn = new BLL.BiddingReturn();
                cBiddingReturn.BiddingEmitCode = this.BiddingEmitCode;
                BLL.BiddingEmit biddingemit = new BLL.BiddingEmit();
                biddingemit.BiddingEmitCode = this.BiddingEmitCode;
                this.BiddingCode            = biddingemit.BiddingCode;

                DataTable dt = cBiddingReturn.GetBiddingReturns();
                if (Flag)
                {
                    ////////////////////////////////////////////////////////////
                    BLL.BiddingDtl cBiddingDtl = new BLL.BiddingDtl();
                    cBiddingDtl.BiddingCode = this.ApplicationCode;
                    DataTable dtl;
                    dtl = cBiddingDtl.GetBiddingDtls();
                    BLL.BiddingReturn bed = new BLL.BiddingReturn();
                    bed.BiddingEmitCode = this.BiddingEmitCode;
                    DataTable det = bed.GetBiddingReturns();
                    for (int i = 0; i < dtl.Rows.Count; i++)
                    {
                        if ((det.Select(" BiddingDtlCode=" + dtl.Rows[i]["BiddingDtlCode"].ToString()).Length) == 0)
                        {
                            dtl.Rows.Remove(dt.Rows[i]);
                        }
                    }
                    ////////////////////////////////////////////////////////////
                    Bind_dgListEdit(dt);
                    this.txtTotalRemark.Text = biddingemit.TotalRemark;
                }
                else
                {
                    Bind_dgListView(dt);
                }
                dt.Dispose();
                LoadBiddingOpener(false);
                dpAllowAfterClose.SelectedValue = biddingemit.AllowAfterClose.ToString();
            }
            else
            {
                if (this.ViewState["dt"] == null)
                {
                    BLL.BiddingReturn cBiddingReturn = new BLL.BiddingReturn();
                    cBiddingReturn.BiddingEmitCode = this.ApplicationCode;
                    DataTable dt = cBiddingReturn.GetBiddingReturns();

                    //增加新列
                    dt.Columns.Add("BiddingSupplierCode", System.Type.GetType("System.String"));
                    dt.Columns.Add("State2", System.Type.GetType("System.String"));

                    BLL.BiddingPrejudication cBiddingPrejudication = new BLL.BiddingPrejudication();
                    cBiddingPrejudication.BiddingCode = this.BiddingCode;
                    DataTable dtPrejudication = cBiddingPrejudication.GetBiddingPrejudications();
                    for (int i = 0; i < dtPrejudication.Rows.Count; i++)
                    {
                        BLL.BiddingDtl bdl = new BLL.BiddingDtl();
                        bdl.BiddingCode = this.BiddingCode;
                        bdl.flag        = "1";
                        DataTable dtbdl = bdl.GetBiddingDtls();
                        for (int x = 0; x < dtbdl.Rows.Count; x++)
                        {
                            BLL.BiddingSupplier cBiddingSupplier = new BLL.BiddingSupplier();
                            cBiddingSupplier.BiddingPrejudicationCode = dtPrejudication.Rows[i][0].ToString();
                            cBiddingSupplier.Flag = "1";
                            DataTable dtSupplier = cBiddingSupplier.GetBiddingSuppliers();
                            for (int j = 0; j < dtSupplier.Rows.Count; j++)
                            {
                                DataRow dr = dt.NewRow();
                                dr["BiddingReturnCode"]   = DAL.EntityDAO.SystemManageDAO.GetNewSysCode("BiddingReturn");
                                dr["SupplierCode"]        = dtSupplier.Rows[j]["SupplierCode"].ToString();
                                dr["BiddingDtlCode"]      = dtbdl.Rows[x]["BiddingDtlCode"].ToString();
                                dr["OrderCode"]           = dtSupplier.Rows[j]["OrderCode"].ToString();
                                dr["BiddingSupplierCode"] = dtSupplier.Rows[j]["BiddingSupplierCode"].ToString();
                                dr["State2"] = dtSupplier.Rows[j]["State"].ToString();
                                dt.Rows.Add(dr);
                            }
                            dtSupplier.Dispose();
                        }
                    }
                    dtPrejudication.Dispose();
                    this.ViewState["dt"] = dt;
                    dt.Dispose();
                }
                Bind_dgListView((DataTable)this.ViewState["dt"]);
                LoadBiddingOpener(true);
            }
        }
        /// ****************************************************************************
        /// <summary>
        /// 数据加载
        /// </summary>
        /// ****************************************************************************
        private void LoadData(bool Flag)
        {
            if (this.State1 == ModuleState.Operable)
            {
                SelectState = true;
            }

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

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

                    this.txtNumber.Value = cBiddingPrejudication.Number;
                    this.BiddingCode     = cBiddingPrejudication.BiddingCode;
                    //this.EditSupplier.InnerHtml = "<a href=\"#\" onclick=\"javascript:BiddingPrejudicationOpenSupplierPage('"+this.ApplicationCode+"','edit','"+SelectState+"');return false\">参加资格预审的单位名单</a>";
                    this.EditState = true;
                    this.ViewState["BiddingTitle"] = cBidding.Title;
                    this.DepartMentCode            = cBidding.BiddingRemark1;
                }
                else
                {
                    this.tdProjectName.InnerHtml = BLL.ProjectRule.GetProjectName(cBidding.ProjectCode) + "&nbsp; ";
                    string LinkUrl = "<a onclick=OpenLargeWindow('biddingmodify.aspx?BiddingCode=" + cBidding.BiddingCode + "&State=edit&ProjectCode=" + cBidding.ProjectCode + "')>" + cBidding.Title + "</a>";
                    //this.tdBiddingTitle.InnerHtml = cBidding.Title+"&nbsp; ";
                    this.tdBiddingTitle.InnerHtml = LinkUrl;
                    this.tdEmitDate.InnerHtml     = cBidding.EmitDate + "&nbsp; ";

                    this.tdNumber.InnerHtml = cBiddingPrejudication.Number + "&nbsp; ";
                    this.BiddingCode        = cBiddingPrejudication.BiddingCode;
                    //this.ViewSupplier.InnerHtml = "<a href=\"#\" onclick=\"javascript:BiddingPrejudicationOpenSupplierPage('"+this.ApplicationCode+"','view','"+SelectState+"');return false\">参加资格预审的单位名单</a>";
                    this.EditState = false;
                    this.ViewState["BiddingTitle"] = cBidding.Title;
                    this.DepartMentCode            = cBidding.BiddingRemark1;
                }
            }
            else
            {
                if (Flag)
                {
                    BLL.Bidding cBidding = new BLL.Bidding();
                    cBidding.BiddingCode          = this.BiddingCode;
                    this.txtProjectName.InnerHtml = BLL.ProjectRule.GetProjectName(cBidding.ProjectCode) + "&nbsp; ";
                    string LinkUrl = "<a onclick=OpenLargeWindow('biddingmodify.aspx?BiddingCode=" + this.BiddingCode + "&State=edit&ProjectCode=" + cBidding.ProjectCode + "')>" + cBidding.Title + "</a>";
                    //this.txtBiddingTitle.InnerHtml = cBidding.Title+"&nbsp; ";
                    this.txtBiddingTitle.InnerHtml = LinkUrl;
                    this.txtEmitDate.InnerHtml     = cBidding.EmitDate + "&nbsp; ";
                    this.ViewState["BiddingTitle"] = cBidding.Title;
                    this.EditState = true;
                }
                this.ViewState["tempCode"] = this.UserCode + DateTime.Now.ToString();
            }
            BLL.Bidding ccBidding = new BLL.Bidding();
            ccBidding.BiddingCode         = this.BiddingCode;
            this.ViewState["Money"]       = ccBidding.Money;
            this.ViewState["mostly"]      = ccBidding.Accessory;
            this.ViewState["BiddingType"] = ccBidding.Type;
            this.ProjectCode = ccBidding.ProjectCode;
            //this.ViewSupplier.InnerHtml = "<a href=\"#\" onclick=\"javascript:BiddingPrejudicationOpenSupplierPage('"+this.ViewState["tempCode"].ToString()+"','view','"+SelectState+"');return false\">参加资格预审的单位名单</a>";
            //this.EditSupplier.InnerHtml = "<a href=\"#\" onclick=\"javascript:BiddingPrejudicationOpenSupplierPage('"+this.ViewState["tempCode"].ToString()+"','edit','"+SelectState+"');return false\">参加资格预审的单位名单</a>";
        }
Example #6
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);
        }
Example #7
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;
            }
        }