zoukankan      html  css  js  c++  java
  • Money去哪了- 每日站立会议

    textBox1.Text = Convert.ToString(listView1.Items.Count); //刷新金额求和

    double MoneySum = 0;

    for (int i = 0; i <= listView1.Items.Count - 1; i++)

    {

    ListViewItem Item = listView1.Items[i]; MoneySum += Convert.ToDouble(Item.SubItems[2].Text); } textBox2.Text = Convert.ToString(MoneySum);

    //刷新消费情况总和

    textBox3.Text = "0";

    textBox4.Text = "0";

    textBox5.Text = "0";

    textBox6.Text = "0";

    textBox7.Text = "0";

    textBox8.Text = "0";

    for (int i = 0; i <= listView1.Items.Count - 1; i++)

    {

    ListViewItem Item = listView1.Items[i]; if (listView1.Items[i].SubItems[1].Text == "日常用品")

    textBox3.Text = (Convert.ToDouble(textBox3.Text) + Convert.ToDouble(listView1.Items[i].SubItems[2].Text)).ToString(); if (listView1.Items[i].SubItems[1].Text == "学习用品") textBox4.Text = (Convert.ToDouble(textBox4.Text) + Convert.ToDouble(listView1.Items[i].SubItems[2].Text)).ToString(); if (listView1.Items[i].SubItems[1].Text == "话费") textBox5.Text = (Convert.ToDouble(textBox5.Text) + Convert.ToDouble(listView1.Items[i].SubItems[2].Text)).ToString(); if (listView1.Items[i].SubItems[1].Text == "饮食") textBox6.Text = (Convert.ToDouble(textBox6.Text) + Convert.ToDouble(listView1.Items[i].SubItems[2].Text)).ToString(); if (listView1.Items[i].SubItems[1].Text == "衣服") textBox7.Text = (Convert.ToDouble(textBox7.Text) + Convert.ToDouble(listView1.Items[i].SubItems[2].Text)).ToString(); if (listView1.Items[i].SubItems[1].Text == "其他") textBox8.Text = (Convert.ToDouble(textBox8.Text) + Convert.ToDouble(listView1.Items[i].SubItems[2].Text)).ToString(); } }

  • 相关阅读:
    端午节习俗
    彩绘漂亮MM集
    高效使用数码相机的诀窍
    项目管理缩略语
    数码相机如何当做摄像头(文字版)
    标签式按纽
    显示一个Form中的所有内容
    生活中要常常鼓励别人
    青苹果论坛重新开放
    第一次爱的人
  • 原文地址:https://www.cnblogs.com/amnavov/p/10093547.html
Copyright © 2011-2022 走看看