public override void ViewDidLoad() { base.ViewDidLoad(); //Process.Hidden = true; pnlSearch.Hidden = true; pnlSearch.Frame = new CoreGraphics.CGRect(0, 50, 320, 518); //LoadingOverlay loadingOverlay; //var Temp = new TableSourceSearch(this); //TableViewStock.Source = Temp; //var sdc = searchDisplayController; //sdc.SearchResultsSource = Temp; //sdc.SearchBar.TextChanged += (sender, e) => // { // string text = e.SearchText.Trim(); // localModelsSearch = (from Data in localModels // where Data.JewelBaseDescName.ToUpper().Trim().Contains(text.ToUpper().Trim()) // select Data).ToList(); // }; txtSearchBar.TextChanged += (sender, e) => { string text = e.SearchText.Trim(); //string sSearchType = txtSearchBar.Placeholder.Trim(); objCountrySearch = (from Data in objCountry where Data.CountryName.ToUpper().Trim().Contains(text.ToUpper().Trim()) select Data).ToList(); TableViewStock.Source = new TableSourceSearch(this); TableViewStock.ReloadData(); }; }
//public void LoadProcessStart() //{ // Process.Hidden = false; // Process.StartAnimating(); //} //public void LoadProcessEnd() //{ // Process.StopAnimating(); // Process.Hidden = true; //} partial void BtnSearchCountry_TouchUpInside(UIButton sender) { //if (objCountry == null) //{ //var bounds = UIScreen.MainScreen.Bounds; //// show the loading overlay on the UI thread using the correct orientation sizing //LoadingOverlay loadPop = new LoadingOverlay(bounds); //View.Add(loadPop); objCountrySearch = LoadCountry(); objCountry = objCountrySearch; //loadPop.Hide(); //} pnlSearch.Hidden = false; txtSearchBar.Placeholder = "Country"; //if (sRegionSelectionData == "") //{ // LoadRegionData("AMSWHO01", "GJ", 0); //} //else //{ TableViewStock.Source = new TableSourceSearch(this); TableViewStock.ReloadData(); //} }
public override void ViewDidLoad() { base.ViewDidLoad(); InitializeTableView(); pnlCloseout.Hidden = true; pnlSearch.Hidden = true; pnlSearch.Frame = new CoreGraphics.CGRect(0, 62, 320, 506); var Temp = new TableSourceSearch(this, sRegionPH); TableViewStock.Source = Temp; var sdc = searchDisplayController; sdc.SearchResultsSource = Temp; //sdc.SearchBar.TextChanged += (sender, e) => // { // string text = e.SearchText.Trim(); // localModelsSearch = (from Data in localModels // where Data.JewelBaseDescName.ToUpper().Trim().Contains(text.ToUpper().Trim()) // select Data).ToList(); // }; txtSearchBar.TextChanged += (sender, e) => { string text = e.SearchText.Trim(); string sSearchType = txtSearchBar.Placeholder.Trim(); if (sSearchType == sRegionPH) { objRegionSearch = (from Data in objRegion where Data.JewelRegionName.ToUpper().Trim().Contains(text.ToUpper().Trim()) select Data).ToList(); } else if (sSearchType == sWorkTypePH) { objWorkTypeSearch = (from Data in objWorkType where Data.WorkTypeName.ToUpper().Trim().Contains(text.ToUpper().Trim()) select Data).ToList(); } else if (sSearchType == sCategoryPH) { objCategorySearch = (from Data in objCategory where Data.JewelCategoryName.ToUpper().Trim().Contains(text.ToUpper().Trim()) select Data).ToList(); } else // for Karat { objKaratSearch = (from Data in objKarat where Data.JewelMetalKaratName.ToUpper().Trim().Contains(text.ToUpper().Trim()) select Data).ToList(); } TableViewStock.Source = new TableSourceSearch(this, txtSearchBar.Placeholder.Trim()); TableViewStock.ReloadData(); }; }
void resultKaratCompletion(ObservableCollection <Master.Karat> wDatas) { List <Master.Karat> mModels = new List <Master.Karat>(wDatas); objKarat = mModels; objKaratSearch = mModels; TableViewStock.Source = new TableSourceSearch(this, txtSearchBar.Placeholder.Trim()); TableViewStock.ReloadData(); }
void resultCategoryCompletion(ObservableCollection <Master.Category> wDatas) { List <Master.Category> mModels = new List <Master.Category>(wDatas); objCategory = mModels; objCategorySearch = mModels; TableViewStock.Source = new TableSourceSearch(this, txtSearchBar.Placeholder.Trim()); TableViewStock.ReloadData(); }
void resultRegionCompletion(ObservableCollection <Master.Region> wDatas) { List <Master.Region> mModels = new List <Master.Region>(wDatas); objRegion = mModels; objRegionSearch = mModels; TableViewStock.Source = new TableSourceSearch(this, sRegionPH); TableViewStock.ReloadData(); }
private void loadmsg(string stype, string sDemandMsg = "", string sDemandAudioPath = "", string sDemandImagePath = "") { try { if (stype == "R") { loadData(); //return; } else if (stype == "S") { List <Chating> tModels = new List <Chating>(); Chating temp = new Chating(); temp.MsgType = "Text"; temp.IsReceive = "False"; temp.Messages = txtmsg.Text; tModels.Add(temp); localModels.AddRange(tModels); TableViewStock.Source = new TableSource(this); TableViewStock.ReloadData(); ScrollToLastMsg(); } else if (stype == "D") { List <Chating> tModels = new List <Chating>(); Chating temp = new Chating(); temp.MsgType = "Demand"; temp.Messages = "Demond Details : " + "/n" + sDemandMsg; temp.IsReceive = "False"; temp.AudioFileName = sDemandAudioPath; temp.ImgFileName = sDemandImagePath; tModels.Add(temp); localModels.AddRange(tModels); TableViewStock.Source = new TableSource(this); TableViewStock.ReloadData(); ScrollToLastMsg(); } } catch (Exception ex) { Console.Write(ex.Message); } isloading = false; }
partial void BtnSearchKarat_TouchUpInside(UIButton sender) { pnlSearch.Hidden = false; txtSearchBar.Placeholder = sKaratPH; if (sKaratSelectionData == "") { LoadKaratData("AMSWHO01", "GJ", 0); } else { TableViewStock.Source = new TableSourceSearch(this, txtSearchBar.Placeholder.Trim()); TableViewStock.ReloadData(); } }
public override void ViewDidLoad() { base.ViewDidLoad(); InitializeTableView(); //pnlSearch.Frame = new CoreGraphics.CGRect(0, 62, 320, 506); var Temp = new TableSourceSearch(this, sRegionPH); TableViewStock.Source = Temp; //pnlSearch.Hidden = false; txtSearchBar.Placeholder = sRegionPH; LoadRegionData("AMSWHO01", "GJ", 0); var sdc = searchDisplayController; sdc.SearchResultsSource = Temp; //sdc.SearchBar.TextChanged += (sender, e) => // { // string text = e.SearchText.Trim(); // localModelsSearch = (from Data in localModels // where Data.JewelBaseDescName.ToUpper().Trim().Contains(text.ToUpper().Trim()) // select Data).ToList(); // }; txtSearchBar.TextChanged += (sender, e) => { string text = e.SearchText.Trim(); string sSearchType = txtSearchBar.Placeholder.Trim(); objRegionSearch = (from Data in objRegion where Data.JewelRegionName.ToUpper().Trim().Contains(text.ToUpper().Trim()) select Data).ToList(); TableViewStock.Source = new TableSourceSearch(this, txtSearchBar.Placeholder.Trim()); TableViewStock.ReloadData(); }; }
partial void BtnSearchWorkType_TouchUpInside(UIButton sender) { if (sRegionSelectionData == "") { Toast.MakeText("Select Region.", Toast.LENGTH_SHORT).SetUseShadow(true).SetFontSize(13).SetGravity(ToastGravity.Center).SetBgRed(30).Show(); return; } pnlSearch.Hidden = false; txtSearchBar.Placeholder = sWorkTypePH; if (sWorkTypeSelectionData == "") { LoadWorkTypeData("AMSWHO01", "GJ", 0, sRegionSelectionData); } else { TableViewStock.Source = new TableSourceSearch(this, txtSearchBar.Placeholder.Trim()); TableViewStock.ReloadData(); } }
void resultCompletion(ObservableCollection <Chating> wDatas) { List <Chating> mModels = new List <Chating>(wDatas); //mModels[0].MsgType = "Text"; //mModels[0]. if (localModels.Count == 0) { localModels.AddRange(mModels); } else { localModels.AddRange(mModels); } InvokeOnMainThread(() => { TableViewStock.Source = new TableSource(this); TableViewStock.ReloadData(); ScrollToLastMsg(); }); }
public override void ViewDidLoad() { base.ViewDidLoad(); pnlSearchFilter.Hidden = true; Process.Hidden = true; pnlSearch.Hidden = true; pnlSearch.Frame = new CoreGraphics.CGRect(0, 0, 320, 506); viewModel = new WebDataModel <StockList>(); InitializeTableView(); if (sComingFrom == "Search") { btnFilter.Hidden = true; TableViewSearch.Frame = new CoreGraphics.CGRect(0, 64, 320, 504); } else if (sComingFrom == "Home") { btnFilter.Hidden = false; TableViewSearch.Frame = new CoreGraphics.CGRect(0, 89, 320, 479); } var Temp = new TableSourceSearch(this, sRegionPH); //TableViewStock.Source = Temp; var sdc = searchDisplayController; //sdc.SearchResultsSource = Temp; //sdc.SearchBar.TextChanged += (sender, e) => // { // string text = e.SearchText.Trim(); // localModelsSearch = (from Data in localModels // where Data.JewelBaseDescName.ToUpper().Trim().Contains(text.ToUpper().Trim()) // select Data).ToList(); // }; txtSearchBar.TextChanged += (sender, e) => { string text = e.SearchText.Trim(); string sSearchType = txtSearchBar.Placeholder.Trim(); if (sSearchType == sRegionPH) { objRegionSearch = (from Data in objRegion where Data.JewelRegionName.ToUpper().Trim().Contains(text.ToUpper().Trim()) select Data).ToList(); } else if (sSearchType == sWorkTypePH) { objWorkTypeSearch = (from Data in objWorkType where Data.WorkTypeName.ToUpper().Trim().Contains(text.ToUpper().Trim()) select Data).ToList(); } else if (sSearchType == sCategoryPH) { objCategorySearch = (from Data in objCategory where Data.JewelCategoryName.ToUpper().Trim().Contains(text.ToUpper().Trim()) select Data).ToList(); } else // for Karat { objKaratSearch = (from Data in objKarat where Data.JewelMetalKaratName.ToUpper().Trim().Contains(text.ToUpper().Trim()) select Data).ToList(); } TableViewStock.Source = new TableSourceSearch(this, txtSearchBar.Placeholder.Trim()); TableViewStock.ReloadData(); }; //TableViewSearch.Scrolled += (sender, e) => // { // loadData("AMSWHO01", "N", sRegionSelectionData, sWorkTypeSelectionData, sCategorySelectionData, sKaratSelectionData, 0, 5); // }; }