35 lines
953 B
C#
35 lines
953 B
C#
using IronIntel.Contractor.Site;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Web;
|
|
using System.Web.UI;
|
|
using System.Web.UI.WebControls;
|
|
|
|
public partial class Print : PrintBasePage
|
|
{
|
|
protected string PrintContent = "";
|
|
protected string Styles = "";
|
|
protected void Page_Load(object sender, EventArgs e)
|
|
{
|
|
if (!CheckLoginSession())
|
|
{
|
|
RedirectToLoginPage();
|
|
}
|
|
else
|
|
{
|
|
string printtype = Request.Params["pt"];
|
|
if (!string.IsNullOrEmpty(printtype))
|
|
{
|
|
PrintContent = ProcessRequest();
|
|
}
|
|
Styles = GetStyles();
|
|
this.Title = PageTitle;
|
|
}
|
|
}
|
|
|
|
private string GetStyles()
|
|
{
|
|
return "<style>table{page-break-inside:avoid;}td{border:1px solid #a9a9a9;padding-left:3px;padding-right:3px;} .label{font-weight:bold;text-align:right;}</style>";
|
|
}
|
|
} |