protected void gvDataInfo_RowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowType != DataControlRowType.DataRow) { if (e.Row.RowType == DataControlRowType.Footer) { string selectedValue = this.dropPrjType.SelectedValue; decimal sumTotalAtChgState = TenderInfo.GetSumTotalAtChgState(this.txtPrjName.Text, this.txtPrjCode.Text, this.txtBuildUnit.Text, selectedValue, this.txtStartTime.Text, this.txtEndTime.Text, this.GetState(2), this.GetState(1), base.UserCode, string.Empty, 3, "ChangeFlowSate"); e.Row.Cells[1].Text = "合计"; e.Row.Cells[8].Text = sumTotalAtChgState.ToString("#0.000"); e.Row.Cells[8].Style.Add("text-align", "right"); e.Row.Cells[8].CssClass = "decimal_input"; } return; } string text = this.gvDataInfo.DataKeys[e.Row.RowIndex]["PrjGuid"].ToString(); e.Row.Attributes["id"] = text; e.Row.Attributes["guid"] = text; e.Row.Attributes["PrjState"] = this.gvDataInfo.DataKeys[e.Row.RowIndex]["PrjState"].ToString(); e.Row.Attributes["prjInfoState"] = this.gvDataInfo.DataKeys[e.Row.RowIndex]["PrjInfoState"].ToString(); e.Row.Attributes["flowState"] = this.gvDataInfo.DataKeys[e.Row.RowIndex]["ChangeFlowSate"].ToString(); PTPrjInfoStateChange byPrjIdByOrder = new PTPrjInfoStateChangeService().GetByPrjIdByOrder(text, -1); if (byPrjIdByOrder != null) { e.Row.Attributes["changed"] = "1"; return; } e.Row.Attributes["changed"] = "0"; }