CyManager/AccountDay.cs

(开头部分) 2KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

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 Common;
using BLL;


namespace CyManager
{
    public partial class AccountDay : Form
    {
        public AccountDay()
        {
            InitializeComponent();
        }

        private void toolStripButton1_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            this.listView1.Items.Clear();
            List<COpenBills> lop = new List<COpenBills>();
            try
            {
                //DateTime ds;
                lop = BLLOpenBills.BLLOpenBillsDate(this.dateTime.Value.Date, this.dateTime.Value.Date);
            }
            catch (Exception ex)
            {
                MessageBoxNew.Show("根据时间查询结账信息失败!" + ex.Message, "系统提示", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
            foreach (COpenBills op in lop)
            {
                ListViewItem lvi = new ListViewItem();
                lvi.Text = op.CobId1;
                this.listView2.Items.Add(lvi);
                lvi.SubItems.AddRange(new string[] { op.TName, string.Format("{0:N}", op.CopMoney1), string.Format("{0:N}", op.CopSaveMoney1), string.Format("{0:N}", op.CopClientPay1), (op.CobId1.Substring(2, 4) + "-" + op.CobId1.Substring(6, 2) + "-" + op.CobId1.Substring(8, 2)), string.Format("{0:N}", op.CopCardPay1) });

            }
            double moneyT = 0;
            double saveMoneyT = 0;//优惠金额
            double needMoneyT = 0;//实收金额
            foreach (ListViewItem g2 in this.listView2.Items)
            {
                moneyT += Convert.ToDouble(g2.SubItems[2].Text);
                saveMoneyT += Convert.ToDouble(g2.SubItems[3].Text);
                needMoneyT += Convert.ToDouble(g2.SubItems[4].Text);
            }

            decimal ysT = Convert.ToDecimal(moneyT);
            this.t1.Text = "合计应收:" + string.Format("{0:N} ", ysT);//listView2销售汇总 应收金额

后面还有 8 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。