温馨提示:代码在线浏览功能只能做为源码浏览参考,不能展示项目的全部,如果想更进一步了解该代码请下载:固定资产管理系统源码
当前文件路径:DepreciationManage/DepreciationManage/QueryDepreciationForm.aspx.cs

1//文件名:QueryDepreciationForm.aspx.cs 2
using System; 3
using System.Data; 4
using System.Configuration; 5
using System.Collections; 6
using System.Web; 7
using System.Web.Security; 8
using System.Web.UI; 9
using System.Web.UI.WebControls; 10
using System.Web.UI.WebControls.WebParts; 11
using System.Web.UI.HtmlControls; 12
13
public partial class DepreciationManage_QueryDepreciationForm : System.Web.UI.Page 14
{ 15
protected void Page_Load(object sender, EventArgs e) 16
{ 17
string MyForbidString = Session["MyForbid"].ToString(); 18
if (MyForbidString.IndexOf("B2") > 1) 19
{ 20
Server.Transfer("~/SystemManage/AllErrorHelp.aspx"); 21
} 22
} 23
protected void Button2_Click(object sender, EventArgs e) 24
{//打印部门累计折旧 25
Server.Transfer("~/DepreciationManage/QueryDepreciationPrint.aspx"); 26
} 27
public string MyPrintSQL 28
{//设置要传递到打印页的数据 29
get 30
{ 31
return "SELECT 所属类别,资产编号,资产名称,资产原值,折旧方法,月度折旧额 FROM [累计折旧查询视图] WHERE (([折旧年份] = '" + this.DropDownList1.SelectedValue.ToString() + "') AND ([折旧月份] = '" + this.DropDownList2.SelectedValue.ToString() + "') AND ([使用部门] = '" + this.DropDownList3.SelectedValue.ToString() + "'))"; 32
} 33
} 34
public String MyPrintDate 35
{//设置要传递到打印页的数据 36
get 37
{ 38
return "计提日期:" + this.DropDownList1.SelectedValue.ToString() + "年" + this.DropDownList2.SelectedValue.ToString() + "月"; 39
} 40
} 41
public String MyPrintTitle 42
{//设置要传递到打印页的数据 43
get 44
{ 45
return Session["MyCompanyName"].ToString() + this.DropDownList3.SelectedValue.ToString()+"月度累计折旧表"; 46
} 47
} 48
} 49





}
}