ReceivDocument/printTransactMans.cs
(开头部分) 4KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Data ;
using System.Web .UI.WebControls ;
namespace OI.ReceivDocument
{
/// <summary>
/// printTransactMans 的摘要说明。
/// </summary>
public class printTransactMans :System.Web .UI .Page
{
public printTransactMans()
{
//
// TODO: 在此处添加构造函数逻辑
//
}
/// <summary>
///
/// </summary>
/// <param name="dt"></param>
/// <param name="Count">一行显示的个数,</param>
/// <returns></returns>
public Table CreatePrintTable( DataTable dt ,int Count)
{
int TotalRow=dt.Rows.Count / Count; //总共有多少项,即有多少张表。
int CellLastRow=dt.Rows .Count % Count; //最后一行有列数。
Table tab=new Table ();
for ( int i=0 ;i <TotalRow; i++)
{
TableRow tabTr=new TableRow ();
TableCell tabTrCell=new TableCell ();
Table table=new Table ();
//指针移量
TableRow tr=new TableRow ();
TableCell tc=new TableCell ();
tc.Text ="阅 件 者";
tc.Width =Unit.Parse("16%");
tr.Cells .Add (tc);
for(int move= i*Count;move<i*Count+Count;move++)
{
tc=new TableCell ();
tc.Text =dt.Rows[move]["username"].ToString ();
tc.Width =Unit.Parse("14%");
tr.Cells .Add (tc);
}
tr.Attributes["align"]="center";
table.Rows .Add (tr);//增加处理用户
tr=new TableRow ();
tc=new TableCell ();
tc.Text ="送件时间";
tr.Cells .Add (tc);
for(int move= i*Count;move<i*Count+Count;move++)
{
tc=new TableCell ();
tc.Text =dt.Rows[move]["senddate"].ToString ();
后面还有 125 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。