Exemplo n.º 1
0
        void setToValid(int isvalid)
        {
            List <int> idList = new List <int>();

            foreach (TruckInfo item in dataGrid1.Items)
            {
                if (item.IsChecked)
                {
                    idList.Add(item.Id);
                }
            }
            if (idList.Count > 0)
            {
                int i = x_tService.UpdateToValid(idList, isvalid);
                InitData(dataPager1.PageIndex);
                chk_all.IsChecked = false;
            }
        }