Conctrl/YuYue.ascx.cs
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
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 JD.BLL;
using JD.Model;
public partial class Conctrl_YuYue : System.Web.UI.UserControl
{
People p;
protected void Page_Load(object sender, EventArgs e)
{
if (Session["user"] == null)
{
PageBase.alert(Page, "请先登陆","default.aspx");
return;
}
if (!IsPostBack)
{
DropDownList1.DataSource = WorkerManager.Get(0, 100, 0);
DropDownList1.DataBind();
}
DropDownList1.ClearSelection();
if (Request.QueryString["wid"] != null)
{
DropDownList1.Items.FindByValue(Request.QueryString["wid"].ToString()).Selected = true;
DropDownList1.Enabled = false;
}
p = (People)Session["user"];
if (!IsPostBack)
{
TextBox1.Text = p.Name;
TextBox3.Text = p.Tel;
}
}
protected void Button1_Click(object sender, EventArgs e)
{
YuYue yy = new YuYue();
yy.Name = TextBox1.Text;
yy.Phone = TextBox2.Text;
yy.Tel = TextBox3.Text;
yy.InTime = Convert.ToDateTime(TextBox4.Text);
yy.Text = TextBox5.Text;
yy.People = p;
yy.Time = DropDownList2.SelectedItem.Text;
yy.Worker = WorkerManager.Get(Convert.ToInt32(DropDownList1.SelectedValue));
if (yy.InTime < DateTime.Now)
{
PageBase.alert(Page, "预约日期错误");
return;
}
if (YuYueManager.Get(yy.InTime, DropDownList2.SelectedItem.Text,yy.Worker.Id) > 0)
{
后面还有 12 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。