UserManger/addchufang.aspx.cs
(开头部分) 6KB这里只显示每个文件的开头 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 System.Data.SqlClient;
public partial class UserManger_addchufang : System.Web.UI.Page
{
Alert alert = new Alert();
SqlHelper data = new SqlHelper();
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
Binderyaopin();
Type();
Getchufang();
}
}
/// <summary>
/// 绑定挂号病人
/// </summary>
private void Type()
{
DropDownList2.DataSource = data.GetDataReader("select * from YuYue where YiShegnId='" + Session["adminid"].ToString() + "' and IschuFang='否' ");
DropDownList2.DataTextField = "bianhao";
DropDownList2.DataValueField = "id";
DropDownList2.DataBind();
DropDownList2.Items.Add(new ListItem("----请选择----", "0"));
DropDownList2.SelectedValue = "0";//默认选择此项
}
/// <summary>
/// 获取药品信息
/// </summary>
private void Binderyaopin()
{
DropDownList1.DataSource = data.GetDataReader("select * from yaopin ");
DropDownList1.DataTextField = "name";
DropDownList1.DataValueField = "id";
DropDownList1.DataBind();
DropDownList1.Items.Add(new ListItem("----请选择----", "0"));
DropDownList1.SelectedValue = "0";//默认选择此项
}
protected void LinkButton1_Click(object sender, EventArgs e)
{
//data.RunSql("insert into YuYueshoufei(Money,YuYueId,xiangmu)values('" + TextBox2.Text + "','" + TextBox4.Text + "','" + TextBox5.Text + "')");
//Alert.AlertAndRedirect("收费成功", "Addshoufei.aspx");
}
protected void DropDownList2_SelectedIndexChanged(object sender, EventArgs e)
{
后面还有 127 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。