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

📄 returnform.aspx.cs

📁 重庆某纸业公司的固定资产管理系统
💻 CS
字号:
//文件名:ReturnForm.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;

public partial class AssetsManage_ReturnForm : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        string MyForbidString = Session["MyForbid"].ToString();
        if (MyForbidString.IndexOf("A4") > 1)
        {
            Server.Transfer("~/SystemManage/AllErrorHelp.aspx");
        }
        string MyInfo = "一旦新增固定资产租借记录,就不能再进行修改!是否确定新增操作?";
        this.Button2.OnClientClick = "return confirm('" + MyInfo + "')";      
    }
    protected void Button2_Click(object sender, EventArgs e)
    {//新增固定资产租借记录信息
        this.SqlDataSource2.Insert();
        this.SqlDataSource1.Delete();
        this.TextBox2.Text = "";
        this.TextBox3.Text = "";
    }
    protected void GridView1_SelectedIndexChanged(object sender, EventArgs e)
    {//在文本框中显示选择的借出的固定资产信息
        this.TextBox12.Text = this.GridView1.SelectedRow.Cells[1].Text.ToString();        
        this.TextBox2.Text = this.GridView1.SelectedRow.Cells[2].Text.ToString();
        this.TextBox3.Text = this.GridView1.SelectedRow.Cells[3].Text.ToString();
        this.TextBox4.Text = this.GridView1.SelectedRow.Cells[4].Text.ToString();
        this.TextBox5.Text = this.GridView1.SelectedRow.Cells[5].Text.ToString();
        this.TextBox6.Text = this.GridView1.SelectedRow.Cells[6].Text.ToString();
        this.TextBox7.Text = this.GridView1.SelectedRow.Cells[7].Text.ToString();
        this.TextBox8.Text = this.GridView1.SelectedRow.Cells[8].Text.ToString();
        this.TextBox9.Text = this.GridView1.SelectedRow.Cells[9].Text.ToString();
        this.TextBox10.Text = this.GridView1.SelectedRow.Cells[10].Text.ToString();
        this.TextBox11.Text = this.GridView1.SelectedRow.Cells[11].Text.ToString();
    }
}

⌨️ 快捷键说明

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