protected void Btn_ClientSearchCancel_Click(object sender, EventArgs e) { DropDownList_ClientRegion.DataSource = PCI.SList_CRMRegionBasicInfoDrop(); DropDownList_ClientRegion.DataBind(); DropDownList_ClientSort.DataSource = PCI.SList_CRMCustomerSortBasicDataDrop(); DropDownList_ClientSort.DataBind(); GridView_Client.DataSource = PCI.SList_CRMCustomerInfoBind(); GridView_Client.DataBind(); UpdatePanel_ClientInfo.Update(); }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { Binddr(); if (Request.QueryString["status"] == "ClientInfoSee")//出入库类别查看权限 { Title = "客户信息查看"; GridView_Client.Columns[7].Visible = false; GridView_Client.Columns[8].Visible = false; Btn_NewClient.Visible = false; Btn_NewClientPhone.Visible = false; GridView_ClientPhone.Columns[11].Visible = false; GridView_ClientPhone.Columns[10].Visible = false; GridView_ClientPhone.Columns[9].Visible = false; GridView_ClientLabel.Columns[5].Visible = false; GridView_ClientLabel.Columns[6].Visible = false; Button_NewLabel.Visible = false; DropDownList_ClientRegion.DataSource = PCI.SList_CRMRegionBasicInfoDrop(); DropDownList_ClientRegion.DataBind(); DropDownList_ClientSort.DataSource = PCI.SList_CRMCustomerSortBasicDataDrop(); DropDownList_ClientSort.DataBind(); GridView_Client.DataSource = PCI.SList_CRMCustomerInfoBind(); GridView_Client.DataBind(); UpdatePanel_ClientInfo.Update(); } else if (Request.QueryString["status"] == "ClientInfoMange")//出入库类别查看权限 { Title = "客户类别维护"; Button_NewLabel.Visible = true; DropDownList_ClientRegion.DataSource = PCI.SList_CRMRegionBasicInfoDrop(); DropDownList_ClientRegion.DataBind(); DropDownList_ClientSort.DataSource = PCI.SList_CRMCustomerSortBasicDataDrop(); DropDownList_ClientSort.DataBind(); GridView_Client.DataSource = PCI.SList_CRMCustomerInfoBind(); GridView_Client.DataBind(); UpdatePanel_ClientInfo.Update(); GridView_ClientLabel.Columns[5].Visible = true; GridView_ClientLabel.Columns[6].Visible = true; } } }