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

📄 lscsfbzedit.aspx.cs

📁 一个很好的管理系统代码!!!! 能实现车辆的管理…… 大家用的试下啊
💻 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 Admin_LscsfbzEdit : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {

        }
    }
    protected void Button1_Click(object sender, EventArgs e)
    {
        //跳转页面
        Response.Redirect("LscsfbzList.aspx");
    }
    protected void Button2_Click(object sender, EventArgs e)
    {
        //按照一定规则判断区间范围
        if (DataControl.GetData("select * from 临时车收费标准 where (时间下限<=" + TextBox2.Text + " and 时间上限>" + TextBox2.Text + ") or (时间下限<=" + TextBox3.Text + " and 时间上限>" + TextBox3.Text + ") ").Rows.Count > 0)
        {
            Response.Write("<script>alert('收费区间重复');</script>");
            return;
        }
        //添加临时收费标准记录
        DataControl.Execute("insert into 临时车收费标准(收费名称,时间下限,时间上限,费用) values " +
                 " ('" + this.TextBox1.Text + "'," + TextBox2.Text + "," + TextBox3.Text + ",'" + Textbox4.Text + "')");
        Response.Redirect("LscsfbzList.aspx");
    }

}

⌨️ 快捷键说明

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