CyManager/UReporting2.cs
(开头部分) 123KB这里只显示每个文件的开头 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 System.Data.SqlClient;
using Common;
using BLL;
using System.Drawing.Printing;
using System.Data.OleDb;
using System.IO;
namespace CyManager
{
public partial class UReporting2 : Form
{
private PrintPreviewDialog ppd = new PrintPreviewDialog();
private PrintDialog pdg = new PrintDialog();
private PrintDocument pd = new PrintDocument();
private PageSetupDialog psd = new PageSetupDialog();
string printName = "";
int CountPerson = 0;
CParamSettings cps = BLLParamSettings.GetParamSettings();
private bool isPoint;
ListViewItem lviBill = new ListViewItem();
private void printDocument1_PrintPage(object sender, PrintPageEventArgs e)
{
Font fnt = textBox1.Font;
Graphics g = e.Graphics;
long rowheight = textBox1.Font.Height; //行距
for (int i = 0; i < textBox1.Lines.Length; i++)
{
g.DrawString(textBox1.Lines[i], fnt, Brushes.Black, 3, 10 + rowheight);
rowheight += textBox1.Font.Height;
}
g.Dispose();
}
public UReporting2()
{
isPoint = cps.PointCheckYes;
InitializeComponent();
pd.PrintPage += new PrintPageEventHandler(printDocument1_PrintPage);
pdg.Document = pd;
//pd.OriginAtMargins = true;
//ppd.UseAntiAlias = true;
ppd.Document = pd;
this.tabPage1.Parent = null;
this.tabPage3.Parent = null;
this.tabPage4.Parent = null;
this.tabPage6.Parent = null;
this.tabPage7.Parent = null;
}
private void toolStripButton1_Click(object sender, EventArgs e)
{
this.Close();
后面还有 2396 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。