protected void btn_Search_Click(object sender, EventArgs e)
 {
     SelectedIds   = new List <Guid>();
     UnSelectedIds = new List <Guid>();
     IsAll         = false;
     InformationsGrid.Rebind();
 }
 /// <summary>
 /// 是否全选
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 protected void CkAllOnCheckedChanged(object sender, EventArgs e)
 {
     IsAll         = !IsAll;
     SelectedIds   = new List <Guid>();
     UnSelectedIds = new List <Guid>();
     InformationsGrid.Rebind();
 }
 protected void SearchTypeIndexChanged(object sender, RadComboBoxSelectedIndexChangedEventArgs e)
 {
     //如果搜索类型又被重新选择了,要清空下拉选项
     RCB_SelectKey.Items.Clear();
     RCB_SelectKey.Text = string.Empty;
     CurrentSearchType  = e.Value.ToInt();
     InformationsGrid.CurrentPageIndex = 0;
     SelectedIds   = new List <Guid>();
     UnSelectedIds = new List <Guid>();
     IsAll         = false;
     InformationsGrid.Rebind();
     divFiliale.Visible = CurrentSearchType == 1;
 }
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                RCB_SearchType.SelectedValue = "3";
                CurrentSearchType            = 3;
                var list = CacheCollection.Filiale.GetHeadList();

                list.Insert(0, new FilialeInfo {
                    ID = Guid.Empty, Name = "全部"
                });
                DDL_Filiale.DataSource     = list;
                DDL_Filiale.DataTextField  = "Name";
                DDL_Filiale.DataValueField = "ID";
                DDL_Filiale.DataBind();
                InformationsGrid.Rebind();
                DDL_HaveInformation.Items.Clear();
                var dict = EnumAttribute.GetDict <SupplierCompleteType>();
                if (dict.Count > 0)
                {
                    foreach (var item in dict.OrderBy(act => act.Key))
                    {
                        DDL_HaveInformation.Items.Add(new RadComboBoxItem(item.Value, string.Format("{0}", item.Key)));
                    }
                }

                DDL_Period.Items.Clear();
                var dicts = EnumAttribute.GetDict <SupplierTimeLimitType>();
                if (dict.Count > 0)
                {
                    foreach (var item in dicts.OrderBy(act => act.Key))
                    {
                        DDL_Period.Items.Add(new RadComboBoxItem(item.Value, string.Format("{0}", item.Key)));
                    }
                }
                if (Request.QueryString["IsWarning"] != null)
                {
                    DDL_Period.SelectedValue = string.Format("{0}", (int)SupplierTimeLimitType.Expire);
                }
                divFiliale.Visible = CurrentSearchType == 1;
            }
        }