📄 selectbranchsale.aspx.cs
字号:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Model;
using BLL;
namespace 金利来分销管理系统.Branch
{
public partial class SelectBranchSale : System.Web.UI.Page
{
BLL.Branch.VenditionBll BranchSaleShow;
BLL.Employee.EmployeeBll employeebllshow;
public SelectBranchSale()
{
BranchSaleShow = new BLL.Branch.VenditionBll();
employeebllshow = new BLL.Employee.EmployeeBll();
}
protected void Page_Load(object sender, EventArgs e)
{
if (!this.IsPostBack)
{
//用户权限
if (Session["employee_id"] == null)
{
Response.Write ("请您登陆系统");
}
else
{
if (employeebllshow.UserRole(Session["role_id"].ToString(), "61") == true)
{
//分店销售显示
BindData();
}
else
{
Response.Write("<script>alert('你无权查看此功能,请与管理员联系');location.href='../Aboutus.aspx'</script>");
}
}
}
}
private void BindData()
{
gvBranchSaleSelectShow.DataSource = BranchSaleShow.SelectBranchSale();
gvBranchSaleSelectShow.DataBind();
}
//搜索
protected void btnBranchReturnSelectSS_Click(object sender, EventArgs e)
{
if (this.ddlBranchReturnSelectXZSSTJ.Text == "分店名称")
{
gvBranchSaleSelectShow.DataSource = BranchSaleShow.SelectBranchSaleShopname(this.txtBranchReturnSelectCXData.Text);
gvBranchSaleSelectShow.DataBind();
}
else if (this.ddlBranchReturnSelectXZSSTJ.Text == "商品名称")
{
gvBranchSaleSelectShow.DataSource = BranchSaleShow.SelectBranchsaleproductnames(this.txtBranchReturnSelectCXData.Text.ToString());
gvBranchSaleSelectShow.DataBind();
}
else
{
BindData();
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -