⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 commonrepairprint.aspx.cs

📁 小区物业管理系统源代码,密码:123456,
💻 CS
字号:
//文件名:CommonRepairPrint.aspx.cs
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient;
public partial class CommunityManage_CommonRepairPrint : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {//显示公共财产维修单
        string MyID = this.Request.Params["MyID"].ToString();
        if (Session["MyCommunityName"] != null)
        {
            this.Label1.Text = Session["MyCommunityName"].ToString() + "公共财产维修单";
        }
        this.Label2.Text = "打印日期:" + DateTime.Now.ToShortDateString();
        string MyConnectionString = ConfigurationManager.ConnectionStrings["MyCommunityDBConnectionString"].ConnectionString; ;
        string MySQL = "Select * From 公共维修 WHERE 维修编号 LIKE '" + MyID + "'";
        SqlDataAdapter MyAdapter = new SqlDataAdapter(MySQL, MyConnectionString);
        DataTable MyRepairTable = new DataTable();
        MyAdapter.Fill(MyRepairTable);
        this.Label3.Text = "维修编号:" + MyID;
        this.Label5.Text = "财产编号:" + MyRepairTable.Rows[0][1].ToString();
        this.Label6.Text = "财产名称:" + MyRepairTable.Rows[0][2].ToString();
        DateTime MyDate = (DateTime)MyRepairTable.Rows[0][3];
        this.Label8.Text = "报修日期:" + MyDate.ToShortDateString();
        this.Label7.Text = "报修人员:" + MyRepairTable.Rows[0][4].ToString();
        this.TextBox1.Text = MyRepairTable.Rows[0][5].ToString();
        this.Label4.Text = "受理人员:" + MyRepairTable.Rows[0][6].ToString();        
        this.Label9.Text = "处理意见:" + MyRepairTable.Rows[0][7].ToString();
        MyDate = (DateTime)MyRepairTable.Rows[0][8];
        this.Label10.Text = "修理日期:" + MyDate.ToShortDateString();
        this.Label11.Text = "修理人员:" + MyRepairTable.Rows[0][9].ToString();
        this.Label12.Text = "修理费用:" + MyRepairTable.Rows[0][10].ToString() + "元";
        this.Label14.Text = "材料费用:" + MyRepairTable.Rows[0][11].ToString() + "元";
        this.Label13.Text = "费用合计:" + MyRepairTable.Rows[0][12].ToString() + "元";
        this.TextBox2.Text = MyRepairTable.Rows[0][13].ToString();
        this.TextBox3.Text = MyRepairTable.Rows[0][14].ToString();
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -