Forms/SellingForm.cs
(开头部分) 10KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Data.SqlClient;
using DGVPrinterHelper;
using System.IO;
namespace Vender
{
public partial class SellingForm : Form
{
private string receiptName;
int grandTotal = 0, n = 0,todayAmount=0;
DBConnect dBCon = new DBConnect();
DGVPrinter printer = new DGVPrinter();
Boolean totalAmountAdd=false;
public SellingForm()
{
InitializeComponent();
bunifuFormDock1.SubscribeControlToDragEvents(panel1);
}
private void Print(string name,DataGridView grid)
{
printer.Title = name;
printer.SubTitle = String.Format("Date : {0}", DateTime.Now);
printer.SubTitleFormatFlags = StringFormatFlags.LineLimit | StringFormatFlags.NoClip;
printer.PageNumbers = true;
printer.PageNumberInHeader = false;
printer.PorportionalColumns = true;
printer.HeaderCellAlignment = StringAlignment.Near;
printer.Footer = receiptName;
printer.FooterSpacing = 15;
printer.printDocument.DefaultPageSettings.Landscape = true;
printer.PrintDataGridView(grid);
}
private void getCategory()
{
string selectQuery = "SELECT * FROM Category";
SqlCommand cmd = new SqlCommand(selectQuery, dBCon.GetCon());
SqlDataAdapter adapter = new SqlDataAdapter(cmd);
DataTable table = new DataTable();
adapter.Fill(table);
CategoryDropdown.DataSource = table;
CategoryDropdown.ValueMember = "Name";
}
private void getTable()
{
string selectQuery = "SELECT Name,Price,Quantity FROM Product";
后面还有 226 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。