Ejemplo n.º 1
2
 protected void gvwProject_RowDataBound(object sender, GridViewRowEventArgs e)
 {
     if (e.Row.RowType == DataControlRowType.DataRow)
     {
         string value = this.gvwProject.DataKeys[e.Row.RowIndex]["PrjGuid"].ToString();
         string text  = this.gvwProject.DataKeys[e.Row.RowIndex]["PrjState"].ToString();
         e.Row.Attributes["id"]        = value;
         e.Row.Attributes["Guid"]      = value;
         e.Row.Attributes["state"]     = text;
         e.Row.Attributes["flowState"] = this.gvwProject.DataKeys[e.Row.RowIndex]["GiveUpFlowState"].ToString();
         if (text == ProjectParameter.Bid || text == ProjectParameter.QualificationPass)
         {
             e.Row.Cells[8].Text = "";
             return;
         }
     }
     else
     {
         if (e.Row.RowType == DataControlRowType.Footer)
         {
             e.Row.Cells[0].Text = "合计";
             System.Collections.Generic.List <int> prjState = this.GetPrjState();
             decimal sumTotal = TenderInfo.GetSumTotal(this.txtPrjName.Text, this.txtPrjCode.Text, this.txtName.Text, this.dropPrjKindClass.SelectedValue, this.txtStartTime.Text, this.txtEndTime.Text, prjState, null, base.UserCode, this.txtTenderPrjManager.Text, 3, ProjectParameter.QualificationPass, "PftFlowState");
             e.Row.Cells[6].Text = sumTotal.ToString("#0.000");
             e.Row.Cells[6].Style.Add("text-align", "right");
             e.Row.Cells[6].CssClass = "decimal_input";
         }
     }
 }
Ejemplo n.º 2
1
 protected void gvDataInfo_RowDataBound(object sender, GridViewRowEventArgs e)
 {
     if (e.Row.RowType == DataControlRowType.DataRow)
     {
         e.Row.Attributes["id"] = this.gvDataInfo.DataKeys[e.Row.RowIndex].Value.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>
         {
             int.Parse(ProjectParameter.Initiate),
             int.Parse(ProjectParameter.GiveUpState)
         };
         System.Collections.Generic.List <int> flowState = new System.Collections.Generic.List <int>
         {
             1
         };
         decimal sumTotal = TenderInfo.GetSumTotal(this.txtPrjName.Text, this.txtPrjCode.Text, this.txtOwner.Text, this.dropPrjKindClass.SelectedValue, this.txtStartTime.Text, this.txtEndTime.Text, prjState, flowState, base.UserCode, this.txtName.Text, 4, ProjectParameter.Approval, null);
         e.Row.Cells[6].Text = sumTotal.ToString("#0.000");
         e.Row.Cells[6].Style.Add("text-align", "right");
         e.Row.Cells[6].CssClass = "decimal_input";
     }
 }
Ejemplo n.º 3
1
 protected void gvwProject_RowDataBound(object sender, GridViewRowEventArgs e)
 {
     if (e.Row.RowType == DataControlRowType.DataRow)
     {
         e.Row.Attributes["id"] = this.gvwProject.DataKeys[e.Row.RowIndex].Value.ToString();
         return;
     }
     if (e.Row.RowType == DataControlRowType.Footer)
     {
         e.Row.Cells[0].Text = "合计";
         System.Collections.Generic.List <int> list = new System.Collections.Generic.List <int>();
         if (string.IsNullOrEmpty(this.dropPrjState.SelectedValue))
         {
             list = new System.Collections.Generic.List <int>
             {
                 int.Parse(ProjectParameter.Initiate),
                 int.Parse(ProjectParameter.Prequalification),
                 int.Parse(ProjectParameter.QualificationPass),
                 int.Parse(ProjectParameter.QualificationFail)
             };
         }
         else
         {
             list.Add(System.Convert.ToInt32(this.dropPrjState.SelectedValue));
         }
         System.Collections.Generic.List <int> flowState = new System.Collections.Generic.List <int>
         {
             1
         };
         decimal sumTotal = TenderInfo.GetSumTotal(this.txtPrjName.Text, this.txtPrjCode.Text, this.txtOwner.Text, this.dropPrjKindClass.SelectedValue, this.txtStartTime.Text, this.txtEndTime.Text, list, flowState, base.UserCode, this.txtName.Text, 4, ProjectParameter.Initiate, "InitiateFlowState");
         e.Row.Cells[6].Text = sumTotal.ToString("#0.000");
         e.Row.Cells[6].Style.Add("text-align", "right");
         e.Row.Cells[6].CssClass = "decimal_input";
     }
 }
Ejemplo n.º 4
0
 protected void gvDataInfo_RowDataBound(object sender, GridViewRowEventArgs e)
 {
     if (e.Row.RowType == DataControlRowType.DataRow)
     {
         e.Row.Attributes["id"]      = this.gvDataInfo.DataKeys[e.Row.RowIndex].Value.ToString();
         e.Row.Attributes["guid"]    = this.gvDataInfo.DataKeys[e.Row.RowIndex].Value.ToString();
         e.Row.Attributes["WFState"] = this.gvDataInfo.DataKeys[e.Row.RowIndex]["ProjFlowSate"].ToString();
         return;
     }
     if (e.Row.RowType == DataControlRowType.Footer)
     {
         e.Row.Cells[1].Text = "合计";
         System.Collections.Generic.List <int> prjState = new System.Collections.Generic.List <int>
         {
             1,
             2
         };
         System.Collections.Generic.List <int> flowState = new System.Collections.Generic.List <int>();
         if (this.dropWFState.SelectedValue != "")
         {
             flowState = new System.Collections.Generic.List <int>
             {
                 int.Parse(this.dropWFState.SelectedValue)
             };
         }
         decimal sumTotal = TenderInfo.GetSumTotal(this.txtPrjName.Text.Trim(), this.txtPrjCode.Text.Trim(), this.txtOwner.Text.Trim(), this.dropPrjKindClass.SelectedValue, this.txtStartTime.Text.Trim(), this.txtEndTime.Text.Trim(), prjState, flowState, base.UserCode, this.txtName.Text.Trim(), 1, null, null);
         e.Row.Cells[8].Text = sumTotal.ToString("#0.000");
         e.Row.Cells[8].Style.Add("text-align", "right");
         e.Row.Cells[8].CssClass = "decimal_input";
     }
 }
Ejemplo n.º 5
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["guid"]         = value;
         e.Row.Attributes["state"]        = this.gvDataInfo.DataKeys[e.Row.RowIndex]["PrjState"].ToString();
         e.Row.Attributes["OldState"]     = this.gvDataInfo.DataKeys[e.Row.RowIndex]["OldState"].ToString();
         e.Row.Attributes["PftFlowState"] = this.gvDataInfo.DataKeys[e.Row.RowIndex]["PftFlowState"].ToString();
         return;
     }
     if (e.Row.RowType == DataControlRowType.Footer)
     {
         e.Row.Cells[0].Text = "合计";
         System.Collections.Generic.List <int> list = new System.Collections.Generic.List <int>
         {
             int.Parse(ProjectParameter.Initiate),
             int.Parse(ProjectParameter.Prequalification)
         };
         if (this.dropPrjState.SelectedValue != "")
         {
             list.Clear();
             list.Add(int.Parse(this.dropPrjState.SelectedValue));
         }
         System.Collections.Generic.List <int> flowState = new System.Collections.Generic.List <int>
         {
             1
         };
         decimal sumTotal = TenderInfo.GetSumTotal(this.txtPrjName.Text, this.txtPrjCode.Text, this.txtOwner.Text, this.dropPrjKindClass.SelectedValue, this.txtStartTime.Text, this.txtEndTime.Text, list, flowState, base.UserCode, this.txtName.Text, 4, null, "InitiateFlowState");
         e.Row.Cells[6].Text = sumTotal.ToString("#0.000");
         e.Row.Cells[6].Style.Add("text-align", "right");
         e.Row.Cells[6].CssClass = "decimal_input";
     }
 }