contractapply.aspx.cs
来自「登陆界面」· CS 代码 · 共 42 行
CS
42 行
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
public partial class contract_clientinformation : System.Web.UI.Page
{
DateTime now;
protected void Page_Load(object sender, EventArgs e)
{
now = DateTime.Now;
}
protected void Button1_Click(object sender, EventArgs e)
{
if (DateTime.Parse(TextBox2.Text).CompareTo(now) < 0)
{
Response.Write("<script>alert('合同申请时间不能早于现在!')</script>");
}
else
{
new corInfMan.BLL.BLLContractSub().submitApply(TextBox1.Text,TextBox2.Text, int.Parse(TextBox3.Text), TextBox4.Text, TextBox5.Text, RadioButtonList1.SelectedItem.Text, TextBox6.Text,User.Identity.Name, 0,DropDownList1.SelectedItem.Value);
Response.Write("<script>alert('提交成功!')</script>");
}
}
protected void RadioButtonList1_SelectedIndexChanged(object sender, EventArgs e)
{
if(RadioButtonList1.SelectedIndex==1)
{
this.DropDownList1.Visible = true;
}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?