1 Star 0 Fork 2

funwell/医院在线预约诊疗平台管理

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
yingyetongji_Form.cs 3.01 KB
一键复制 编辑 原始数据 按行查看 历史
尼莫和可爱多 提交于 2019-01-13 23:00 . 增加
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using BLL;
using Model;
namespace UI
{
public partial class yingyetongji_Form : Form
{
public yingyetongji_Form()
{
InitializeComponent();
}
List<SectionRoom> se;
List<zhuayuantongji> zhuyuantongji;
private void yingyetongji_Form_Load(object sender, EventArgs e)
{
listView1.Items.Clear();
se = new UsersBLL().Section();
comboBox1.DataSource = se;
zhuyuantongji= new IdCard_BLL().p_zhuayuantongji();
int i = 0;
int i1 = 0;
foreach (zhuayuantongji ite in zhuyuantongji)
{
string str = ite.Kid + "";
if (str.Length < 2)
{
str = "0000" + str;
}
ListViewItem item = new ListViewItem(str);
item.SubItems.Add(ite.Sname );
item.SubItems.Add(ite.ymoney +"");
item.SubItems.Add(ite.zmoney +"");
item.SubItems.Add(ite.time );
listView1.Items.Add(item);
i += ite.ymoney;
i1 += ite.zmoney;
}
label5.Text = i + "";
label3.Text = i1 + "";
}
private void checkBox1_CheckedChanged(object sender, EventArgs e)
{
listView1.Items.Clear();
if (!checkBox1.Checked)
{
int i1 = 0;
int i = 0;
foreach (var ite in zhuyuantongji.Where(p => p.zmoney != 0))
{
string str = ite.Kid + "";
if (str.Length < 2)
{
str = "0000" + str;
}
ListViewItem item = new ListViewItem(str);
item.SubItems.Add(ite.Sname);
item.SubItems.Add(ite.ymoney + "");
item.SubItems.Add(ite.zmoney + "");
item.SubItems.Add(ite.time);
listView1.Items.Add(item);
i += ite.ymoney;
i1 += ite.zmoney;
}
label5.Text = i + "";
label3.Text = i1 + "";
}
if (checkBox1.Checked && checkBox2.Checked)
{
yingyetongji_Form_Load(null,null);
}
}
private void groupBox1_Enter(object sender, EventArgs e)
{
}
private void groupBox2_Enter(object sender, EventArgs e)
{
}
private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
{
}
private void listView1_SelectedIndexChanged(object sender, EventArgs e)
{
}
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C#
1
https://gitee.com/xmuhw/zhenliao.git
[email protected]:xmuhw/zhenliao.git
xmuhw
zhenliao
医院在线预约诊疗平台管理
master

搜索帮助