Exemplo n.º 1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            labelsource.Text = "";
            Bindlingyu();
        }

        if (Request.QueryString["status"] == "SortSee")//区域查看权限
        {
            Title = "客户领域基础数据查看";
            //this.Panel_ClientSort.Visible = false;
            GridView_Region.Columns[3].Visible = false;
            GridView_Region.Columns[4].Visible = false;
            Btn_NewStore.Visible = false;
            UpdatePanel_RegionBasicInfo1.Update();
            UpdatePanel_RegionBasicInfo.Update();
            //this.GridView_Region.DataSource = PCB.SList_CRMRegionBasicInfo();
            //this.GridView_Region.DataBind();
            //this.GridView_ClientSort.DataSource = PCB.SList_CRMCustomerSortBasicData();
            //this.GridView_ClientSort.DataBind();
        }
        else if (Request.QueryString["status"] == "SortMange")    //类别维护权限
        {
            Title = "客户领域基础数据维护";
        }
    }
Exemplo n.º 2
0
 protected void Btn_ReginCancel_Click(object sender, EventArgs e)//重置区域
 {
     TextBox_Regionname1.Text   = "";
     GridView_Region.DataSource = PCB.SList_CRMRegionBasicInfo();
     GridView_Region.DataBind();
     UpdatePanel_RegionBasicInfo1.Update();
     UpdatePanel_RegionBasicInfo.Update();
 }
Exemplo n.º 3
0
    protected void Btn_RegionSearch_Click(object sender, EventArgs e)//检索区域
    {
        string name = TextBox_Regionname1.Text.Trim().ToString();

        if (name != "")
        {
            GridView_Region.DataSource = PCB.S_CRMRBISraech(name);
            GridView_Region.DataBind();
            UpdatePanel_RegionBasicInfo.Update();
        }
        else
        {
            GridView_Region.DataSource = PCB.SList_CRMRegionBasicInfo();
        }
        GridView_Region.DataBind();
        UpdatePanel_RegionBasicInfo1.Update();
        UpdatePanel_RegionBasicInfo.Update();
    }