CyManager/UBillsCX.cs

(开头部分) 6KB

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

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Data.SqlClient;
using Common;
using BLL;
namespace CyManager
{
    public partial class UBillsCX : Form
    {
        ListViewItem lviBill = new ListViewItem();
        public UBillsCX()
        {
            InitializeComponent();
        }


        private void UBillsCX_Load(object sender, EventArgs e)
        {
            this.dtpStart.Value = Convert.ToDateTime(DateTime.Now.AddDays(-7).ToString("yyyy-MM-dd"));//设计起始时间
            BillsQuery();//查询所有结账信息的方法
            GetMoney();//获得结账金额的方法
        }

        /// <summary>
        /// 查询所有结账信息的方法
        /// </summary>
        public void BillsQuery()
        {
            this.lvBills.Items.Clear();//清空集合中的项
            List<COpenBills> lob = new List<COpenBills>();
            try
            {
                lob = BLLOpenBills.BLLOpenBillsQuery();

            }
            catch (Exception ex)
            {
                MessageBoxNew.Show("查询结账信息失败!" + ex.Message, "系统提示", MessageBoxButtons.OK, MessageBoxIcon.Error);

            }
            foreach (COpenBills op in lob)
            {
                ListViewItem lvi = new ListViewItem();
                lvi.Text = op.CobId1;
                this.lvBills.Items.Add(lvi);
                lvi.SubItems.AddRange(new string[] { op.TName, op.CopMoney1.ToString(), op.CopSaveMoney1.ToString(), op.CopClientPay1.ToString(), (op.CobId1.Substring(2, 4) + "-" + op.CobId1.Substring(6, 2) + "-" + op.CobId1.Substring(8, 2)), op.CopRemark1 });
            }

        }

        /// <summary>
        /// 获得结账金额的方法
        /// </summary>
        public void GetMoney()
        {
后面还有 119 行代码,购买后查看完整代码

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

AI 解读 AI

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

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