本文整理汇总了C#中check类的典型用法代码示例。如果您正苦于以下问题:C# check类的具体用法?C# check怎么用?C# check使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
check类属于命名空间,在下文中一共展示了check类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: Page_Load
protected void Page_Load(object sender, EventArgs e)
{
Literal1.Text = "<strong><img style=\"margin:0 6px -6px 0;\" src=\"/images/mail/6464_034.png\" width=\"32\" height=\"32\" />您的申请已提交,感谢您的支持!</strong>";
GetRequest GetRequest1 = new GetRequest();
SymmetricMethod ss = new SymmetricMethod();
check ck = new check();
string uid = "0";
try
{
uid = ck.CheckNumber(ss.Decrypto(GetRequest1.GetRequestQueryString("uid", "")));
data_conn cn = new data_conn();
DataSet ds = new DataSet();
string sql = "";
sql = "SELECT userid FROM TB_TOPIC_REG WHERE userid = " + uid + "";
ds = cn.mdb_ds(sql, "user");
if (ds.Tables["user"].Rows.Count > 0)
{
Literal1.Text = "<strong><img style=\"margin:0 6px -6px 0;\" src=\"/images/mail/wr.gif\" width=\"32\" height=\"32\" />您已经提交过申请!</strong>";
}
else
{
sql = "INSERT INTO TB_TOPIC_REG (userid) VALUES (" + uid + ")";
cn.mdb_exe(sql);
Literal1.Text = "<strong><img style=\"margin:0 6px -6px 0;\" src=\"/images/mail/6464_034.png\" width=\"32\" height=\"32\" />您的申请已提交,感谢您的支持!</strong>";
}
}
catch
{
Literal1.Text = "<strong><img style=\"margin:0 6px -6px 0;\" src=\"/images/mail/wr.gif\" width=\"32\" height=\"32\" />抱歉,您需在注册邮件或普通会员注册页面中点击申请链接!</strong>";
}
}
开发者ID:xiaomincui,项目名称:100allin,代码行数:35,代码来源:index.aspx.cs
示例2: LoadRecord
public void LoadRecord(string page,string search)
{
check ck = new check();
data_conn cn = new data_conn();
string sql = "";
int item = (Convert.ToInt32(page) - 1) * 100;
sql += "select top 100 * from ";
sql += "(select id,number,name from TB_HS ";
sql += "where 1=1 ";
if (search != "")
{
sql += "and (number like '%" + search + "%' or name like '%" + search + "%') ";
}
sql += ") as T ";
sql += "where id not in ";
sql += "(select top " + item + " id from TB_HS ";
sql += "where 1=1 ";
if (search != "")
{
sql += "and (number like '%" + search + "%' or name like '%" + search + "%') ";
}
sql += "order BY TB_HS.id DESC) ";
sql += "ORDER BY id DESC";
DataSet ds = cn.mdb_ds(sql, "HS");
Repeater1.DataSource = ds.Tables["HS"].DefaultView;
Repeater1.DataBind();
LoadTotalCount();
}
开发者ID:xiaomincui,项目名称:100allin,代码行数:35,代码来源:hs.aspx.cs
示例3: ImageButton1_Click
protected void ImageButton1_Click(object sender, ImageClickEventArgs e)
{
check ck = new check();
data_conn bbscn = new data_conn();
DataSet bbsds = new DataSet();
string bbssql = "select * from TB_User,TB_BBSLevel where TB_User.UserID=TB_BBSLevel.UserID and UserName='" + ck.CheckInput(txtName.Text.ToString()) + "' and UserPassword='" + ck.CheckInput(txtPass.Text.ToString()) + "'";
bbsds = bbscn.mdb_ds(bbssql, "bbsuser");
if (bbsds.Tables["bbsuser"].Rows.Count > 0)
{
Response.Cookies["bbsadmin"].Value = "yes";
Response.Cookies["bbsadmin_id"].Value = bbsds.Tables["bbsuser"].Rows[0]["UserID"].ToString();
//Response.Cookies["user_name"].Value = Server.UrlEncode(usernm);
//Response.Cookies["bbslevel"].Value = bbsds.Tables["bbsuser"].Rows[0]["bbsadmin"].ToString();
Response.Redirect("/bbsmessage/BBSadminList.aspx");
}
else
{
//Response.Cookies["bbsadmin"].Value = "no";
//Response.Redirect("/admin/bbsadmin/BBSadminList.aspx");
//MessageBox("error", "用户名或密码错误");
}
}
开发者ID:xiaomincui,项目名称:100allin,代码行数:25,代码来源:login.aspx.cs
示例4: Page_Load
protected void Page_Load(object sender, EventArgs e)
{
check ck = new check();
data_conn cn = new data_conn();
DataSet ds = new DataSet();
string orderid = ck.CheckInput(GetRequestQueryString("orderid", ""));
string sql = "";
sql = "";
sql += "SELECT * FROM TB_ORDER WHERE order_code = '" + orderid + "'";
ds = cn.mdb_ds(sql, "order");
string order_type_string = "";
switch (ds.Tables["order"].Rows[0]["freight_type"].ToString())
{
case "8":
order_type_string = "fcl";
break;
case "9":
order_type_string = "lcl";
break;
case "10":
order_type_string = "air";
break;
default:
break;
}//获得订单类型
Response.Redirect("/search/" + order_type_string + "_order.aspx?filter=view&role=forward&orderid=" + orderid);
}
开发者ID:xiaomincui,项目名称:100allin,代码行数:31,代码来源:order_view.aspx.cs
示例5: Page_Load
protected void Page_Load(object sender, EventArgs e)
{
check ck = new check();
string u = "0";
u = ck.CheckNumber(GetRequestCookies("user_id", "0"));
data_conn cn = new data_conn();
DataSet ds = new DataSet();
string sql = "";
sql = "SELECT Realname FROM TB_User WHERE userid = " + u;
ds = cn.mdb_ds(sql, "tb_user");
ltrMyName.Text = ds.Tables["tb_user"].Rows[0][0].ToString();
//显示未读消息
sql = "select count(mid) as count from TB_PM where readed = 0 and listener = " + u;
ds = cn.mdb_ds(sql, "tb_pm");
ltrPm.Text = ds.Tables["tb_pm"].Rows[0]["count"].ToString();
}
开发者ID:xiaomincui,项目名称:100allin,代码行数:25,代码来源:welcome.ascx.cs
示例6: Page_Load
protected void Page_Load(object sender, EventArgs e)
{
check ck = new check();
string u = "0";
string sql = "";
u = ck.CheckNumber(GetRequestCookies("user_id", "0"));
if (u == "8299" | u == "9089")
{
PlaceHolder1.Visible = true;
}
else
{
PlaceHolder1.Visible = false;
}
data_conn cn = new data_conn();
DataSet ds = new DataSet();
//显示未读消息
//sql = "select count(mid) as count from TB_PM where readed = 0 and listener = " + u;
//ds = cn.mdb_ds(sql, "tb_pm");
//ltrPm.Text = ds.Tables["tb_pm"].Rows[0]["count"].ToString();
//sql = "select count(oid) as count from TB_ORDER where (order_status = 2 or order_status = 4) and order_forward = " + u;
//ds = cn.mdb_ds(sql, "TB_ORDER");
//ltrNewBooking.Text = ds.Tables["TB_ORDER"].Rows[0]["count"].ToString();
}
开发者ID:xiaomincui,项目名称:100allin,代码行数:32,代码来源:left.ascx.cs
示例7: Main
static void Main(string[] args)
{
//vector<int> x {1,2,5,6};
//removeif (x.begin(),x.end(),
// [] (int a) {return a%2; })
//
List<int> l = new List<int> { 1, 2, 4, 6, 4, 7, 2, 5 };
check ch = new check(isOdd);
//l = filter(l, ch);
l = filter(l, delegate (int value)
{
return (value % 2) == 1;
}
);
foreach (int x in l)
{
Console.WriteLine(x);
}
Man Eleonor = new Man("Eleonor Rigby");
Eleonor.WorkEnded += new EventHandler(ManWorkEndedHanler);
Eleonor.Work();
}
开发者ID:itstep2014springEvening,项目名称:CommonProjects,代码行数:29,代码来源:delegateExample.cs
示例8: Page_Load
protected void Page_Load(object sender, EventArgs e)
{
check check1 = new check();
GetRequest GetRequest1 = new GetRequest();
string u = "";
u = check1.CheckNumber(GetRequest1.GetRequestCookies("user_id", "0"));
if (u == "0")
{
PlaceHolder1.Visible = false;
PlaceHolder2.Visible = true;
}
else
{
PlaceHolder1.Visible = true;
PlaceHolder2.Visible = false;
string[] udetail;
AllinUser AllinUser1 = new AllinUser();
udetail = AllinUser1.GetUserDetail(u);
string uhomeid = udetail[10];
string name = udetail[3];
Literal1.Text = "<A class=login_thumb href=\"/home/space.php?uid=" + udetail[10] + "\"><IMG height=20 alt=" + udetail[3] + " src=\"/uc/avatar.php?uid=" + udetail[10] + "&size=small&type=virtual\" width=20></A> <A class=loginName href=\"/home/space.php?uid=" + udetail[10] + "\">" + udetail[3] + "</A>";
}
}
开发者ID:xiaomincui,项目名称:100allin,代码行数:29,代码来源:clubheader.ascx.cs
示例9: Button1_Click1
protected void Button1_Click1(object sender, EventArgs e)
{
try
{
string userid = "0";
string message = "";
if (TextBox1.Value.Length > 200)
{
ScriptManager.RegisterStartupScript(this.UpdatePanel1, this.GetType(), "提示", "alert('评论内容不能大于200字')", true);
}
else
{
check ck = new check();
message = ck.CheckInput(TextBox1.Value);
if (TextBox1.Value == "想发表自己的看法吗?写在这里吧。")
{
message = "";
}
if (CheckBox1.Checked == true)
{
userid = "0";
}
else
{
if (Request.Cookies["user_id"] == null)
{
userid = "0";
}
else
{
if (Request.Cookies["user_id"].Value.ToString() == "")
{
userid = "0";
}
else
{
userid = Request.Cookies["user_id"].Value.ToString();
}
}
}
data_conn cn = new data_conn();
DataSet ds = new DataSet();
string sql = "";
sql = "insert into TB_Message_Comment (UserID,PostDate,Data,type,BBSID,issuer,goodbad) values (" + userid + ",getdate(),'" + message + "',20090630," + "0,0," + RadioButtonList1.SelectedItem.Value + ")";
//TextBox1.Value = sql;
//ds = cn.mdb_ds(sql, "BBS");
LoadMessage();
ScriptManager.RegisterStartupScript(this.UpdatePanel1, this.GetType(), "提示", "alert('评论发布成功!')", true);
ScriptManager.RegisterStartupScript(this.UpdatePanel1, this.GetType(), "提示", "movepos();", true);
TextBox1.Value = "";
}
}
catch
{
}
}
开发者ID:xiaomincui,项目名称:100allin,代码行数:60,代码来源:Default.aspx.cs
示例10: LoadRecord
public void LoadRecord(string page,string search)
{
check ck = new check();
data_conn cn = new data_conn();
string sql = "";
int item = (Convert.ToInt32(page) - 1) * 200;
sql += "select top 200 * from ";
sql += "(select id,编号,名称,优惠,普通,出口税率,增值税率,消费税,计量单位,监管条件 from TB_Tax ";
sql += "where 1=1 ";
if (search != "")
{
sql += "and (编号 like '%" + search + "%' or 名称 like '%" + search + "%' or 优惠 like '%" + search + "%' or 普通 like '%" + search + "%' or 出口税率 like '%" + search + "%' or 增值税率 like '%" + search + "%' or 消费税 like '%" + search + "%' or 计量单位 like '%" + search + "%' or 监管条件 like '%" + search + "%') ";
}
sql += ") as T ";
sql += "where id not in ";
sql += "(select top " + item + " id from TB_Tax ";
sql += "where 1=1 ";
if (search != "")
{
sql += "and (编号 like '%" + search + "%' or 名称 like '%" + search + "%' or 优惠 like '%" + search + "%' or 普通 like '%" + search + "%' or 出口税率 like '%" + search + "%' or 增值税率 like '%" + search + "%' or 消费税 like '%" + search + "%' or 计量单位 like '%" + search + "%' or 监管条件 like '%" + search + "%') ";
}
sql += "order BY TB_Tax.id DESC) ";
sql += "ORDER BY id DESC";
DataSet ds = cn.mdb_ds(sql, "HS");
Repeater1.DataSource = ds.Tables["HS"].DefaultView;
Repeater1.DataBind();
LoadTotalCount();
}
开发者ID:xiaomincui,项目名称:100allin,代码行数:35,代码来源:tax.aspx.cs
示例11: AndCondition
public AndCondition(check check, params check[] checks)
{
check[] checkArray = new check[checks.Length + 1];
checkArray[0]=check;
checks.CopyTo(checkArray, 1);
_checks = checkArray;
}
开发者ID:benjaml,项目名称:PathfindingToolUnity,代码行数:7,代码来源:Transition.cs
示例12: ImageButton1_Click
protected void ImageButton1_Click(object sender, ImageClickEventArgs e)
{
GetRequest GetRequest1 = new GetRequest();
check check1 = new check();
string pro1 = check1.CheckInput(CheckBox1.Checked == true ? "1" : "0");
//Response.Write(pro1 + ":" + pro2 + ":" + pro3 + ":" +pro4);
string userid = check1.CheckInput(GetRequest1.GetRequestQueryString("user_id", "0"));
string companyname = check1.CheckInput(TextBox1.Text);
string realname = check1.CheckInput(TextBox2.Text);
string gender = RadioButtonList1.SelectedValue;
string rank = check1.CheckInput(TextBox3.Text);
string phone = check1.CheckInput(TextBox4.Text + "-" + TextBox7.Text + "-" + TextBox8.Text);
string movephone = check1.CheckInput(TextBox5.Text);
string useremail = check1.CheckInput(TextBox6.Text);
if (pro1 == "0")
{
MessageBox("", "您好!请至少选择一件产品");
}
else
{
if (companyname == "" | realname == "" | gender == "" | rank == "" | TextBox7.Text == "" | TextBox8.Text == "" | movephone == "" | useremail == "")
{
MessageBox("", "您好!请将表格填写完整");
}
else
{
data_conn cn = new data_conn();
string sql = "";
sql += "INSERT INTO TB_PRODUCTS_APPLY ";
sql += "(";
sql += "pro7,";
sql += "userid,";
sql += "companyname,";
sql += "realname,";
sql += "gender,";
sql += "rank,";
sql += "phone,";
sql += "movephone,";
sql += "useremail ";
sql += ") VALUES (";
sql += "" + pro1 + ",";
sql += "" + userid + ",";
sql += "'" + companyname + "',";
sql += "'" + realname + "',";
sql += "'" + gender + "',";
sql += "'" + rank + "',";
sql += "'" + phone + "',";
sql += "'" + movephone + "',";
sql += "'" + useremail + "' ";
sql += ")";
cn.mdb_exe(sql);
Response.Redirect("success.aspx");
}
}
}
开发者ID:xiaomincui,项目名称:100allin,代码行数:59,代码来源:buy.aspx.cs
示例13: Tutorial
public Tutorial(string name, string instructions, Uri source, check checker, string fact = null)
{
_name = name;
_fact = fact;
_instructions = instructions;
_source = source;
_checker = checker;
}
开发者ID:pbeardshear,项目名称:TempoMonkey,代码行数:8,代码来源:Tutorial.cs
示例14: insert
public void insert()
{
//if (Session["cargo_a"] == "" | Session["cargo_a"] == null)
//{
// Response.Redirect("../search/err.aspx");
//}
//else
//{
//}
if (nums.Value != "" && BasicDatePicker1_TextBox.Value != "" && tbGoodsName.Value != "")
{
string typem = "", ISDANGER;
DropDownList type = new DropDownList();
if (rbldange_0.Checked)
{
ISDANGER = "0";
}
else
{
ISDANGER = "1";
}
check ck = new check();
data_conn cn = new data_conn();
string column = "userId,price,TITLE,POSTDATE,LAUNCHDATE,AMOUNT,PAYMENT,NAME,DESCRIPTION,LINE,STARTPORT,DESTPORT,TYPE,TYPES,TYPEM,ISDANGER,showtel,showmo,showadd,showemail,showcom";
string value = this.Request.Cookies["user_id"].Value + ",'" + ck.CheckInput(price.Value) + "','" + ck.CheckInput(txttitle.Value) + "',getdate(),'" + ck.CheckInput(BasicDatePicker1_TextBox.Value) + "','" + ck.CheckInput(nums.Value) + "','" + ck.CheckInput(ddlPayType.SelectedValue) + "','" + ck.CheckInput(tbGoodsName.Value) + "','" + ck.CheckInput(tbremark.Value) + "','" + ck.CheckInput(DropDownList1.SelectedValue) + "','" + ck.CheckInput(StartPort.Value) + "','" + ck.CheckInput(CityName.Value) + "','" + ck.CheckInput(type1.SelectedValue) + "','" + ck.CheckInput(types.SelectedValue) + "','海运货盘'," + ISDANGER + "," + tureToInt(chkTel.Checked) + "," + tureToInt(chkMobile.Checked) + "," + tureToInt(chkAddress.Checked) + "," + tureToInt(chkEmail.Checked) + "," + tureToInt(chkCompany.Checked) + "";
cn.mdb_exe("insert into TB_AIRGOODS (" + column + ") values (" + value + ")");
Session["cargo_a"] = "";
Response.Redirect("cargolist.aspx");
}
else
{
MessageBox("", "必填项不能为空");
}
//if (IsValidate())
//{
// SymmetricMethod ss = new SymmetricMethod();
// if (ss.Encrypto(Session["validate"].ToString()) == this.Request["validate"].ToString())
// {
// }
// else
// {
// this.Response.Write("原来就是你这个SB啊");
// }
//}
//else
//{
// this.Response.Write("原来就是你这个SB啊");
//}
}
开发者ID:xiaomincui,项目名称:100allin,代码行数:57,代码来源:temp_add_ship.aspx.cs
示例15: filter
static List<int> filter(List<int> list, check ch) {
List<int> result = new List<int>();
foreach(int x in list) {
if (ch(x)) {
result.Add(x);
}
}
return result;
}
开发者ID:itstep2014springEvening,项目名称:CommonProjects,代码行数:9,代码来源:delegateExample.cs
示例16: Button1_Click
protected void Button1_Click(object sender, EventArgs e)
{
check ck = new check();
data_conn cn = new data_conn();
string sql = "update TB_En_News set title='" + txtTitle.Text + "',content='" + ck.CheckRecord(Editor1.Text) + "',Postdate='" + TextBox1.Text + "' where id=" + this.Request["id"].ToString();
cn.mdb_exe(sql);
this.Response.Redirect("En_NewList.aspx");
}
开发者ID:xiaomincui,项目名称:100allin,代码行数:9,代码来源:En_News.aspx.cs
示例17: GetUserInfo
public void GetUserInfo()
{
check ck = new check();
string id = ck.CheckNumber(GetRequestCookies("user_id", "0"));
data_conn cn = new data_conn();
DataSet ds = cn.mdb_ds("select * from TB_User where UserID=" + id, "user");
TextBox1.Text = ds.Tables["user"].Rows[0]["introduction"].ToString();
}
开发者ID:xiaomincui,项目名称:100allin,代码行数:9,代码来源:useredit1.aspx.cs
示例18: EditCheckWindow
public EditCheckWindow(check check)
{
InitializeComponent();
_viewModel = DataContext as EditCheckViewModel;
_viewModel?.Initilize(check);
if (_viewModel != null) _viewModel.RegistrationEvent += _viewModel_RegistrationEvent;
StatusComboBox.ItemsSource = ProjectSettings.DbContext.status_check.ToList();
StatusComboBox.DisplayMemberPath = "Text";
}
开发者ID:andreikryuchkov,项目名称:VictoriaHotel,代码行数:9,代码来源:EditCheckWindow.xaml.cs
示例19: Button1_Click
protected void Button1_Click(object sender, EventArgs e)
{
check ck = new check();
data_conn cn = new data_conn();
string sql = "update TB_BBS set title='" + txtTitle.Text + "',Data='" + ck.CheckRecord(content1.Value) + "',EditDate=getdate(),Postdate='" + BasicDatePicker1_TextBox.Value + "',types = " + DropDownList1.SelectedValue.ToString() + ",UserID=41 where id=" + this.Request["id"].ToString();
cn.mdb_exe(sql);
//this.Response.Write(sql);
this.Response.Redirect("NewList.aspx");
}
开发者ID:xiaomincui,项目名称:100allin,代码行数:10,代码来源:News.aspx.cs
示例20: Button1_Click
protected void Button1_Click(object sender, EventArgs e)
{
check ck = new check();
data_conn cn = new data_conn();
string sql = "update TB_BBS set title='" + txtTitle.Text + "',Data='" + ck.CheckRecord(Editor1.Text) + "',EditDate=getdate(),Postdate='" + TextBox1.Text + "',UserID=381 where id=" + this.Request["id"].ToString();
cn.mdb_exe(sql);
//this.Response.Write(sql);
this.Response.Redirect("NewList.aspx");
}
开发者ID:xiaomincui,项目名称:100allin,代码行数:10,代码来源:News.aspx.cs
注:本文中的check类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论