Beispiel #1
0
 protected void gvDataInfo_RowDataBound(object sender, GridViewRowEventArgs e)
 {
     if (e.Row.RowType == DataControlRowType.DataRow)
     {
         string value = this.gvDataInfo.DataKeys[e.Row.RowIndex].Value.ToString();
         e.Row.Attributes["id"]        = value;
         e.Row.Attributes["flowState"] = this.gvDataInfo.DataKeys[e.Row.RowIndex]["GiveUpFlowState"].ToString();
         e.Row.Attributes["guid"]      = value;
         e.Row.Attributes["PrjState"]  = this.gvDataInfo.DataKeys[e.Row.RowIndex]["PrjState"].ToString();
         e.Row.Attributes["IsGiveUp"]  = System.Convert.ToInt32(this.gvDataInfo.DataKeys[e.Row.RowIndex]["IsGiveUp"]).ToString();
         return;
     }
     if (e.Row.RowType == DataControlRowType.Footer)
     {
         e.Row.Cells[0].Text = "合计";
         System.Collections.Generic.List <int> prjState = new System.Collections.Generic.List <int>
         {
             1,
             2,
             3,
             4,
             14,
             15,
             16,
             18,
             19
         };
         decimal sumTotalAtGiveUp = TenderInfo.GetSumTotalAtGiveUp(this.txtPrjName.Text, this.txtPrjCode.Text, this.txtOwner.Text, this.dropPrjKindClass.SelectedValue, this.txtStartTime.Text, this.txtEndTime.Text, prjState, null, base.UserCode, this.txtName.Text, 4);
         e.Row.Cells[6].Text = sumTotalAtGiveUp.ToString("#0.000");
         e.Row.Cells[6].Style.Add("text-align", "right");
         e.Row.Cells[6].CssClass = "decimal_input";
     }
 }