?? storage.aspx.cs
字號:
?using System;
using System.Data;
using System.Configuration;
using System.Collections.Generic;
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 MyCRM.BLL;
using MyCRM.Models;
public partial class base_storage : System.Web.UI.Page
{
int count = 0;
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
Display();
}
}
protected void Display()
{
GridView1.DataSource = DictManager.Getallsto();
GridView1.DataBind();
}
protected void sel_Click(object sender, EventArgs e)
{
source();
}
protected void source()
{
string nums = name.Text;
string names = num.Text;
GridView1.DataSource = DictManager.GetSelectsto(nums, names); ;
GridView1.DataBind();
if (GridView1.DataSource == null)
{
count = 1;
}
}
protected void GridView1_PageIndexChanging(object sender, GridViewPageEventArgs e)
{
GridView1.PageIndex = e.NewPageIndex;
if (count == 1)
{
Display();
}
else
{
source();
}
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -