//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();


            //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 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 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 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 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();
     }
 }
예제 #9
0
        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();
     }
 }
예제 #11
0
        void ReleaseDesignerOutlets()
        {
            if (btnSend != null)
            {
                btnSend.Dispose();
                btnSend = null;
            }

            if (TableViewStock != null)
            {
                TableViewStock.Dispose();
                TableViewStock = null;
            }

            if (txtmsg != null)
            {
                txtmsg.Dispose();
                txtmsg = null;
            }
        }
예제 #12
0
        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();
            });
        }
예제 #13
0
        void ReleaseDesignerOutlets()
        {
            if (btnMenu != null)
            {
                btnMenu.Dispose();
                btnMenu = null;
            }

            if (btnSearch != null)
            {
                btnSearch.Dispose();
                btnSearch = null;
            }

            if (mnuStockMenu != null)
            {
                mnuStockMenu.Dispose();
                mnuStockMenu = null;
            }

            if (searchDisplayController != null)
            {
                searchDisplayController.Dispose();
                searchDisplayController = null;
            }

            if (TableViewStock != null)
            {
                TableViewStock.Dispose();
                TableViewStock = null;
            }

            if (txtSearchBar != null)
            {
                txtSearchBar.Dispose();
                txtSearchBar = null;
            }
        }
 private void InitializeTableView()
 {
     TableViewStock.RegisterClassForCellReuse(typeof(TableCell), TableCell.Identifier);
     TableViewStock.RowHeight          = UITableView.AutomaticDimension;
     TableViewStock.EstimatedRowHeight = 50;
 }
        void ReleaseDesignerOutlets()
        {
            if (btnAttach != null)
            {
                btnAttach.Dispose();
                btnAttach = null;
            }

            if (btnDelete != null)
            {
                btnDelete.Dispose();
                btnDelete = null;
            }

            if (btnPlay != null)
            {
                btnPlay.Dispose();
                btnPlay = null;
            }

            if (btnSearchCategory != null)
            {
                btnSearchCategory.Dispose();
                btnSearchCategory = null;
            }

            if (btnSearchClose != null)
            {
                btnSearchClose.Dispose();
                btnSearchClose = null;
            }

            if (btnSearchDone != null)
            {
                btnSearchDone.Dispose();
                btnSearchDone = null;
            }

            if (btnSearchKarat != null)
            {
                btnSearchKarat.Dispose();
                btnSearchKarat = null;
            }

            if (btnSearchRegion != null)
            {
                btnSearchRegion.Dispose();
                btnSearchRegion = null;
            }
            if (searchDisplayController != null)
            {
                searchDisplayController.Dispose();
                searchDisplayController = null;
            }
            if (btnSearchWorkType != null)
            {
                btnSearchWorkType.Dispose();
                btnSearchWorkType = null;
            }

            if (btnSend != null)
            {
                btnSend.Dispose();
                btnSend = null;
            }

            if (imageView != null)
            {
                imageView.Dispose();
                imageView = null;
            }

            if (imgAttach != null)
            {
                imgAttach.Dispose();
                imgAttach = null;
            }

            if (lblTime1 != null)
            {
                lblTime1.Dispose();
                lblTime1 = null;
            }

            if (lblTime2 != null)
            {
                lblTime2.Dispose();
                lblTime2 = null;
            }

            if (lblTime3 != null)
            {
                lblTime3.Dispose();
                lblTime3 = null;
            }

            if (mnuStockMenu != null)
            {
                mnuStockMenu.Dispose();
                mnuStockMenu = null;
            }

            if (pnlSearch != null)
            {
                pnlSearch.Dispose();
                pnlSearch = null;
            }

            if (pnlSearch1 != null)
            {
                pnlSearch1.Dispose();
                pnlSearch1 = null;
            }

            if (rbBusinessType != null)
            {
                rbBusinessType.Dispose();
                rbBusinessType = null;
            }

            if (TableViewStock != null)
            {
                TableViewStock.Dispose();
                TableViewStock = null;
            }

            if (txtBaseDescription != null)
            {
                txtBaseDescription.Dispose();
                txtBaseDescription = null;
            }

            if (txtCategory != null)
            {
                txtCategory.Dispose();
                txtCategory = null;
            }

            if (txtKarat != null)
            {
                txtKarat.Dispose();
                txtKarat = null;
            }

            if (txtRegion != null)
            {
                txtRegion.Dispose();
                txtRegion = null;
            }

            if (txtSearchBar != null)
            {
                txtSearchBar.Dispose();
                txtSearchBar = null;
            }

            if (txtSize != null)
            {
                txtSize.Dispose();
                txtSize = null;
            }

            if (txtSpecial != null)
            {
                txtSpecial.Dispose();
                txtSpecial = null;
            }

            if (txtStamping != null)
            {
                txtStamping.Dispose();
                txtStamping = null;
            }

            if (txtStockNo != null)
            {
                txtStockNo.Dispose();
                txtStockNo = null;
            }

            if (txtWeight != null)
            {
                txtWeight.Dispose();
                txtWeight = null;
            }

            if (txtWorkType != null)
            {
                txtWorkType.Dispose();
                txtWorkType = null;
            }
        }
예제 #16
0
        void ReleaseDesignerOutlets()
        {
            if (btnBack != null)
            {
                btnBack.Dispose();
                btnBack = null;
            }

            if (btnCompanyCreate != null)
            {
                btnCompanyCreate.Dispose();
                btnCompanyCreate = null;
            }

            if (btnContactNext != null)
            {
                btnContactNext.Dispose();
                btnContactNext = null;
            }

            if (btnCountryClose != null)
            {
                btnCountryClose.Dispose();
                btnCountryClose = null;
            }

            if (btnSearchCountry != null)
            {
                btnSearchCountry.Dispose();
                btnSearchCountry = null;
            }

            if (imgCompanyCreate != null)
            {
                imgCompanyCreate.Dispose();
                imgCompanyCreate = null;
            }

            if (pnlSearch != null)
            {
                pnlSearch.Dispose();
                pnlSearch = null;
            }

            if (TableViewStock != null)
            {
                TableViewStock.Dispose();
                TableViewStock = null;
            }

            if (txtCompanyName != null)
            {
                txtCompanyName.Dispose();
                txtCompanyName = null;
            }

            if (txtContactPerson != null)
            {
                txtContactPerson.Dispose();
                txtContactPerson = null;
            }

            if (txtCountryName != null)
            {
                txtCountryName.Dispose();
                txtCountryName = null;
            }

            if (txtEmailId != null)
            {
                txtEmailId.Dispose();
                txtEmailId = null;
            }

            if (txtPhoneCode != null)
            {
                txtPhoneCode.Dispose();
                txtPhoneCode = null;
            }

            if (txtPhonenumber != null)
            {
                txtPhonenumber.Dispose();
                txtPhonenumber = null;
            }

            if (txtSearchBar != null)
            {
                txtSearchBar.Dispose();
                txtSearchBar = null;
            }

            if (txtWholesaleID != null)
            {
                txtWholesaleID.Dispose();
                txtWholesaleID = null;
            }
        }
        void ReleaseDesignerOutlets()
        {
            if (btnCloseFilter != null)
            {
                btnCloseFilter.Dispose();
                btnCloseFilter = null;
            }

            if (btnFilter != null)
            {
                btnFilter.Dispose();
                btnFilter = null;
            }

            if (btnFilterDone != null)
            {
                btnFilterDone.Dispose();
                btnFilterDone = null;
            }

            if (btnSearchCategory != null)
            {
                btnSearchCategory.Dispose();
                btnSearchCategory = null;
            }

            if (btnSearchClose != null)
            {
                btnSearchClose.Dispose();
                btnSearchClose = null;
            }

            if (searchDisplayController != null)
            {
                searchDisplayController.Dispose();
                searchDisplayController = null;
            }

            if (btnSearchDone != null)
            {
                btnSearchDone.Dispose();
                btnSearchDone = null;
            }

            if (btnSearchKarat != null)
            {
                btnSearchKarat.Dispose();
                btnSearchKarat = null;
            }

            if (btnSearchRegion != null)
            {
                btnSearchRegion.Dispose();
                btnSearchRegion = null;
            }

            if (btnSearchWorkType != null)
            {
                btnSearchWorkType.Dispose();
                btnSearchWorkType = null;
            }

            if (btnStockDetails != null)
            {
                btnStockDetails.Dispose();
                btnStockDetails = null;
            }

            if (pnlSearch != null)
            {
                pnlSearch.Dispose();
                pnlSearch = null;
            }

            if (pnlSearchFilter != null)
            {
                pnlSearchFilter.Dispose();
                pnlSearchFilter = null;
            }

            if (Process != null)
            {
                Process.Dispose();
                Process = null;
            }

            if (TableViewSearch != null)
            {
                TableViewSearch.Dispose();
                TableViewSearch = null;
            }

            if (TableViewStock != null)
            {
                TableViewStock.Dispose();
                TableViewStock = null;
            }

            if (txtCategory != null)
            {
                txtCategory.Dispose();
                txtCategory = null;
            }

            if (txtKarat != null)
            {
                txtKarat.Dispose();
                txtKarat = null;
            }

            if (txtRegion != null)
            {
                txtRegion.Dispose();
                txtRegion = null;
            }

            if (txtSearchBar != null)
            {
                txtSearchBar.Dispose();
                txtSearchBar = null;
            }

            if (txtWorkType != null)
            {
                txtWorkType.Dispose();
                txtWorkType = null;
            }
        }
        void ReleaseDesignerOutlets()
        {
            if (btnMenu != null)
            {
                btnMenu.Dispose();
                btnMenu = null;
            }

            if (btnSearch != null)
            {
                btnSearch.Dispose();
                btnSearch = null;
            }

            if (btnSearchCategory != null)
            {
                btnSearchCategory.Dispose();
                btnSearchCategory = null;
            }

            if (btnSearchClose != null)
            {
                btnSearchClose.Dispose();
                btnSearchClose = null;
            }

            if (btnSearchDone != null)
            {
                btnSearchDone.Dispose();
                btnSearchDone = null;
            }

            if (btnSearchKarat != null)
            {
                btnSearchKarat.Dispose();
                btnSearchKarat = null;
            }

            if (btnSearchRegion != null)
            {
                btnSearchRegion.Dispose();
                btnSearchRegion = null;
            }

            if (btnSearchWorkType != null)
            {
                btnSearchWorkType.Dispose();
                btnSearchWorkType = null;
            }

            if (mnuStockMenu != null)
            {
                mnuStockMenu.Dispose();
                mnuStockMenu = null;
            }

            if (pnlCloseout != null)
            {
                pnlCloseout.Dispose();
                pnlCloseout = null;
            }

            if (pnlSearch != null)
            {
                pnlSearch.Dispose();
                pnlSearch = null;
            }

            if (pnlStock != null)
            {
                pnlStock.Dispose();
                pnlStock = null;
            }

            if (searchDisplayController != null)
            {
                searchDisplayController.Dispose();
                searchDisplayController = null;
            }

            if (TabControl != null)
            {
                TabControl.Dispose();
                TabControl = null;
            }

            if (TableViewStock != null)
            {
                TableViewStock.Dispose();
                TableViewStock = null;
            }

            if (txtCategory != null)
            {
                txtCategory.Dispose();
                txtCategory = null;
            }

            if (txtKarat != null)
            {
                txtKarat.Dispose();
                txtKarat = null;
            }

            if (txtRegion != null)
            {
                txtRegion.Dispose();
                txtRegion = null;
            }

            if (txtSearchBar != null)
            {
                txtSearchBar.Dispose();
                txtSearchBar = null;
            }

            if (txtWorkType != null)
            {
                txtWorkType.Dispose();
                txtWorkType = null;
            }
        }
예제 #19
0
        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);
            //	};
        }