源代码/CeLiang.aspx.cs
(开头部分) 4KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
public partial class CeLiang : System.Web.UI.Page
{
public static double You = 0;
public static double Liang = 0;
public static double Jige = 0;
public static double You1 = 0;
public static double Liang1 = 0;
public static double Jige1 = 0;
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
try
{
GetDrop();
GetDrop3();
GetDrop4();
}
catch
{
}
}
}
protected void Button1_Click(object sender, EventArgs e)
{
string SQL = "select * from TB_JianChe where NianLing='" + this.DropDownList1.SelectedItem.Text + "' and Sex='" + this.DropDownList2.SelectedItem.Text + "'";
DataSet ds = DBHelper.GetDataSet(SQL);
//体重
string TiZhong = ds.Tables[0].Rows[0]["TiZhhong"].ToString();
double Ti1=Convert.ToDouble(TiZhong.Substring(0,TiZhong.IndexOf("-")));
double Ti2=Convert.ToDouble(TiZhong.Substring(TiZhong.IndexOf("-")+1));
double Ti=Convert.ToDouble(TextBox2.Text);
if (Ti <= Ti1)
{
this.Label2.Text = "偏瘦";
}
else if (Ti1 < Ti & Ti2 >= Ti)
{
this.Label2.Text = "正常";
}
else if (Ti >= Ti2)
{
this.Label2.Text = "肥胖";
}
double TempNL = Convert.ToDouble(this.TextBox3.Text);
double TempRR = Convert.ToDouble(this.TextBox4.Text);
后面还有 108 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
