public ChangePasswordViewModel(INavigation navigation)
 {
     _INavigation          = navigation;
     AppLoginClass_Data    = new AppLoginClass();
     IAllDataServices_data = new AllDataServices();
     SaveCommand           = new Command(async() => await Save());
 }
 public NotificationPage()
 {
     InitializeComponent();
     IAllDataServices_data = new AllDataServices();
     _listData             = new ObservableCollection <Notification_Class>();
     GetData();
 }
Exemple #3
0
 public ChangePasswordViewModel()
 {
     oldPassword       = "";
     newPassword       = "";
     conPassword       = "";
     _IAllDataServices = new AllDataServices();
 }
 public InvoiceDetailViewModel(string frechiseSellID, INavigation navi)
 {
     navigation            = navi;
     LayoutColor           = "Silver";
     IAllDataServices_data = new AllDataServices();
     initiallist(frechiseSellID);
 }
 public ProfileViewModel(INavigation nav)
 {
     _navigation           = nav;
     profile_Class_Data    = new Profile_Class();
     IAllDataServices_data = new AllDataServices();
     getData();
 }
Exemple #6
0
 public EmployeeFranchiseWithRetailerMasterMasterViewModel(INavigation nov)
 {
     navigation   = nov;
     LogoutComand = new Command(async() => await Logout());
     MenuItems    = new ObservableCollection <EmployeeFranchiseWithRetailerMasterMenuItem>(new[]
     {
         new EmployeeFranchiseWithRetailerMasterMenuItem {
             Title = "Profile", Icon = "editprofile.png", TargetType = typeof(ProfilePage)
         },
         new EmployeeFranchiseWithRetailerMasterMenuItem {
             Title = "Change Password", Icon = "changepass.png", TargetType = typeof(ChangePasswordPage)
         },
         new EmployeeFranchiseWithRetailerMasterMenuItem {
             Title = "Contact Us", Icon = "contactus.png", TargetType = typeof(ContactUsPage)
         },
         new EmployeeFranchiseWithRetailerMasterMenuItem {
             Title = "Franchise Registration", Icon = "franchiseregistration.png", TargetType = typeof(FranchiseRegistrationPage)
         }
         ,
         new EmployeeFranchiseWithRetailerMasterMenuItem {
             Title = "Retailer Registration", Icon = "retailerregistration.png", TargetType = typeof(RetailerRegistrationPage)
         },
         new EmployeeFranchiseWithRetailerMasterMenuItem {
             Title = "Retailer Order", Icon = "retailerorder.png", TargetType = typeof(RetailerOrderPage)
         },
         new EmployeeFranchiseWithRetailerMasterMenuItem {
             Title = "Cash Collection", Icon = "cashcollection.png", TargetType = typeof(CashCollectionPage)
         },
         new EmployeeFranchiseWithRetailerMasterMenuItem {
             Title = "About Us", Icon = "aboutus.png", TargetType = null, Url = "http://www.theshirtshop.in/about"
         }
     });
     IAllDataServices_data = new AllDataServices();
     getData();
 }
        private async Task forgetPasswordCommand()
        {
            if (!string.IsNullOrEmpty(strPrimeryNumber) && strPrimeryNumber.Length == 10 && !strPrimeryNumber.Contains(" "))
            {
                var Wait = UserDialogs.Instance.Loading("Wait...", null, null, true, MaskType.Black);
                Wait.Show();
                _IAllDataServices = new AllDataServices();
                JObject result = await _IAllDataServices.getForgetPassword(strPrimeryNumber);

                Wait.Hide();
                if (result["Type"].ToString() == "1")
                {
                    await App.Current.MainPage.DisplayAlert(result["ResponseMessage"].ToString(), result["Result"].ToString(), "Ok");

                    Task.Run(async() =>
                    {
                        await Task.Delay(100);
                        Device.BeginInvokeOnMainThread(async() =>
                        {
                            await Navigation.PopModalAsync();
                        });
                    });
                }
                else
                {
                    await App.Current.MainPage.DisplayAlert(result["ResponseMessage"].ToString(), result["Result"].ToString(), "Ok");
                }
            }
            else
            {
                await App.Current.MainPage.DisplayAlert("Error", "Invalid Mobile Number!!", "Ok");
            }
        }
Exemple #8
0
 public StockRequestViewModel(INavigation navigation)
 {
     _INavigation = navigation;
     SendCommand  = new Command(async() => await Send());
     this._FranchiseRequest_Class = new FranchiseRequest_Class();
     this._IAllDataServices       = new AllDataServices();
 }
Exemple #9
0
        // private int PageId { get; set; }
        public FranchiseRegistrationViewModel(INavigation navigation)
        {
            _INavigation = navigation;
            //  PageId = Id;
            SaveCommand                = new Command(async() => await SaveDataAsync());
            FranchiseMasters_Classs    = new FranchiseMasters();
            MultipleContect_Class_Data = new MultipleContect_Class();
            Franchise_Secondar_Image   = new ObservableCollection <MultipleImage_Class>();

            Secondary_Mobile_No = new ObservableCollection <MultipleContect_Class>()
            {
                new MultipleContect_Class {
                    Contect_No         = "",
                    ErrorMessageStatus = false
                }
            };
            _IImageResize = new ImageResize();

            _IAllDataServices = new AllDataServices();

            SelectFranchiseAdharPicCommand    = new Command(async() => await SelectFranchiseAdharPicAsync());
            SelectFranchiseSinglePicCommand   = new Command(async() => await SelectFranchiseSinglePicAsync());
            SelectFranchisePanPicCommand      = new Command(async() => await SelectFranchisePanPicAsync());
            SelectFranchiseMultiplePicCommand = new Command(async() => await SelectFranchiseMultiplePicAsync());

            SelectFranchiseAddressPicCommand = new Command(async() => await SelectFranchiseAddressPicAsync());
            GetStateAsync();
            GetLatitudeLogitudeAsync();
        }
        private async Task  forgetPasswordCommand()
        {
            if (!string.IsNullOrEmpty(strPrimeryNumber) && strPrimeryNumber.Length == 10 && !strPrimeryNumber.Contains(" "))
            {
                var Wait = UserDialogs.Instance.Loading("Wait...", null, null, true, MaskType.Black);
                Wait.Show();
                _IAllDataServices = new AllDataServices();
                JObject result = await _IAllDataServices.CheckMobileNo(strPrimeryNumber);

                Wait.Hide();
                if (result["StatusCode"].ToString() == "406")
                {
                    await App.Current.MainPage.DisplayAlert("Error", result["ResponseMessage"].ToString(), "Ok");
                }
                else
                {
                    await App.Current.MainPage.DisplayAlert("Error", result["ResponseMessage"].ToString(), "Ok");

                    await Navigation.PopModalAsync();
                }
            }
            else
            {
                await App.Current.MainPage.DisplayAlert("Error", "Invalid Mobile Number!!", "Ok");
            }
        }
Exemple #11
0
 public CustomerRegistrationPageViewModel(INavigation navigation)
 {
     _INavigation              = navigation;
     this.SubmitCommand        = new Command(async() => await Submit());
     this.Customer_Class_GeSet = new Customer_Class();
     this._IAllDataServices    = new AllDataServices();
 }
        public HomePageViewModel(INavigation nv)
        {
            _navigation       = nv;
            _IAllDataServices = new AllDataServices();
            PlayWayCommand    = new Command(() => Way());
            PlayMp3Command    = new Command(() => Mp());

            FranchiseAchieveRewardDetail_Class_Date = new List <FranchiseAchieveRewardDetail_Class>()
            {
                new  FranchiseAchieveRewardDetail_Class {
                    Purchase_Point = 0,
                    Totla_Amount   = 0
                },
                new  FranchiseAchieveRewardDetail_Class {
                    Purchase_Point = 0,
                    Totla_Amount   = 0
                },
                new  FranchiseAchieveRewardDetail_Class {
                    Purchase_Point = 0,
                    Totla_Amount   = 0
                }
            };
            // Sound();
            GetRcord();


            // GetRcord();
        }
Exemple #13
0
 public GoodReturnDetailPageViewModel(FranchiseGoodReturn_Class fs, ObservableCollection <ArticleMaster_Class> ac, INavigation navigation)
 {
     _navigation = navigation;
     FranchiseGoodReturn_Class_Data = fs;
     ArticleMaster_Class_List       = ac;
     SaveCommand       = new Command(async() => await SaveAsync());
     _IAllDataServices = new AllDataServices();
 }
Exemple #14
0
 public LedgerPageViewModel()
 {
     Store_Ladger_ClassList = new List <Ladger_Class>();
     Old_Ladger_ClassList   = new ObservableCollection <Ladger_Class>();
     _IAllDataServices      = new AllDataServices();
     GetCommand             = new Command(async() => await GetFilterDataAsync());
     GetData();
 }
 public StockDetailViewModel()
 {
     // _StockDetailDataServices = new StockDetailDataServices();
     // this._StockDetailMasterList = _StockDetailDataServices.GetStockDetail().ToList();
     _IAllDataServices = new AllDataServices();
     AC = new ObservableCollection <ArticleMaster_Class>();
     GetListAsync();
 }
 public FranchiseAdminPaymentDeatailAfterLoginPage(int Id)
 {
     InitializeComponent();
     id = Id;
     _IAllDataServices = new AllDataServices();
     _list             = new FranchiseAdminPaymentDetail_Main_Class();
     GatData(Id);
 }
Exemple #17
0
 public LoginViewModel(INavigation navigation)
 {
     this._navigation          = navigation;
     this.LoginCommand         = new Command(async() => await Login());
     this._AppLoginClass       = new AppLoginClass();
     this._IAllDataServices    = new AllDataServices();
     this._IAccountInformation = new AccountInformation();
 }
Exemple #18
0
        public ReferralPageViewModel(INavigation navigation)
        {
            _INavigation = navigation;
            FranchiseReferral_Class_Data = new FranchiseReferral_Class();
            this.SubmitCommand           = new Command(async() => await Submit());

            this._IAllDataServices = new AllDataServices();
        }
Exemple #19
0
 public FranchiseeDetailsViewModel(string franchiseID)
 {
     StrCommisionPercent = "0.0";
     DetailModel         = new FranchiseeFullDetailModel();
     _IAllDataServices   = new AllDataServices();
     frID          = franchiseID;
     isLeadgerView = true;
     isListView    = false;
 }
 public RetailerOrderDetailPageViewModel(Employee_OrderGenerate_Class fs, INavigation navigation)
 {
     _navigation       = navigation;
     fs.DateOfDispatch = DateTime.Now;
     Employee_OrderGenerate_Class_data = fs;
     SendOTPCommand    = new Command(async() => await SendOTP());
     SaveCommand       = new Command(async() => await SaveAsync());
     _IAllDataServices = new AllDataServices();
 }
 public InvoiceDetailsSubmitViewModel(InvoiceDetailModel invoice, INavigation navigation)
 {
     IsReturn          = true;
     _navigation       = navigation;
     submitCommand     = new Command(async() => await submitInvoiceCommand());
     isRefundCommand   = new Command <bool>(setIsRefund);
     isReturnCommand   = new Command <bool>(setIsReturn);
     invoiceDetail     = invoice;
     _IAllDataServices = new AllDataServices();
 }
 public CashCollectionPageViewModel(INavigation navigation)
 {
     _INavigation = navigation;
     RetailerMaster_Class_Data = new RetailerMaster_Class();
     _IAllDataServices         = new AllDataServices();
     GetContectCommand         = new Command(async() => await GetContectAsync());
     CashCollection_Class_Data = new CashCollection_Class();
     SendOTPCommand            = new Command(async() => await SendOTP());
     SaveCommand = new Command(async() => await Save());
 }
 public SellDetailPageViewModel(FranchiseSell_Class fs, INavigation navigation)
 {
     _navigation    = navigation;
     enableSave     = true;
     IsRemoveCoupon = false;
     FranchiseSell_Class_Data_List = fs;
     SendOTPCommand    = new Command(async() => await SendOTP());
     SaveCommand       = new Command(async() => await SaveAsync());
     _IAllDataServices = new AllDataServices();
 }
        public GoodReturnViewModel(INavigation _navigation)
        {
            navigation        = _navigation;
            _IAllDataServices = new AllDataServices();

            ArticleMaster_Class_Data_List = new ObservableCollection <ArticleMaster_Class>();
            ArticleMasterClassList        = new ObservableCollection <ArticleMaster_Class>();
            GetArticleNoCommand           = new Command(async() => await CheckArticleNo());
            GetScanCommand = new Command(async() => await ScanArticleNo());
            AddCommand     = new Command(async() => await Add());
            SaveCommand    = new Command(async() => await Save());
            GetListAsync();
        }
        public UpComingStockRequestDetailPageViewModel(OrderMaster_Class OrderMaster_Class_Data, INavigation navigation)
        {
            _INavigation           = navigation;
            _IAllDataServices      = new AllDataServices();
            orderMaster_Class_Data = OrderMaster_Class_Data;

            // OrderMaster_Class_Data = orderMaster_Class;

            if (OrderMaster_Class_Data.Action == "Dispatched")
            {
                _Dispatch_Visible = true;
            }
            SendFeedbackCommand = new Command(async() => await SendFeedback());
        }
        public RetailerOrderPageViewModel(INavigation navigation)
        {
            _navigation = navigation;
            RetailerMaster_Class_Data = new RetailerMaster_Class();
            IAllDataServices_Data     = new AllDataServices();
            // RetailerOrder_Class_Data = new RetailerOrder_Class();
            //  Employee_OrderGenerate_Class_Data = new Employee_OrderGenerate_Class();
            ArticleList       = new ObservableCollection <ArticleMaster_Class>();
            GetContectCommand = new Command(async() => await GetContectAsync());
            AddCommand        = new Command(async() => await Add());
            //  CancelCommand = new Command(async () => await CancelTask());
            SaveCommand = new Command(async() => await Save());

            getlistAsync();
        }
        public InvoicePage()
        {
            if (Application.Current.Properties.ContainsKey("Key"))
            {
                InitializeComponent();

                _IAllDataServices          = new AllDataServices();
                _OrderMaster_Class_List    = new ObservableCollection <OrderMaster_Class>();
                _Franchise_Sell_Class_List = new ObservableCollection <FranchiseSell_Class>();
                _GoodsReturn_Class_List    = new ObservableCollection <FranchiseGoodReturn_Class>();
                popupLoginView.IsVisible   = false;
                this.CurrentPageChanged   += (object sender, EventArgs e) => {
                    var index = this.Children.IndexOf(this.CurrentPage);
                    if (index == 0)
                    {
                        popupLoginView.IsVisible = false;
                        GetOrderInvoice();
                    }
                    else if (index == 1)
                    {
                        popupLoginView1.IsVisible = false;
                        GetCustomerInvoice();
                    }
                    else if (index == 2)
                    {
                        popupLoginView2.IsVisible = false;
                        GetReturnInvoice();
                    }
                };
                ShowCustomerInvoice.IsVisible = false;
                ShowOrderInvoice.IsVisible    = false;
                ShowReturnInvoice.IsVisible   = false;
                MsgResult.IsVisible           = false;
                MsgResul.IsVisible            = false;
                MsgResu.IsVisible             = false;

                GetOrderInvoice();

                //BindingContext = new InvoicePageViewModel(Navigation);
                //MsgResult.IsVisible = false;
                //MsgResul.IsVisible = false;
                //gridFilter.IsVisible = false;
            }
            else
            {
                Navigation.PushModalAsync(new MainPage());
            }
        }
 public SellViewModel(INavigation _navigation)
 {
     navigation = _navigation;
     App.isBusy = false;
     ArticleMaster_Class_Data_List = new ObservableCollection <ArticleMaster_Class>();
     this.Customer_Class           = new Customer_Class();
     GetContectNoCommand           = new Command(async() => await CheckContectNo());
     GetArticleNoCommand           = new Command(async() => await CheckArticleNo());
     GetScanCommand = new Command(async() => await ScanArticleNo());
     AddCommand     = new Command(async() => await Add());
     //  CancelCommand = new Command(  CancelTask());
     SaveCommand               = new Command(async() => await Save());
     CustomerClassToBind       = new Customer_Class();
     _IAllDataServices         = new AllDataServices();
     Franchise_Sell_Class_Data = new FranchiseSell_Class();
     ArticleMasterClassList    = new ObservableCollection <ArticleMaster_Class>();
     GetListAsync();
 }
        public InvoicePageViewModel(int index)
        {
            if (index == 0)
            {
                GetOrderInvoice();
            }
            else if (index == 1)
            {
                GetCustomerInvoice();
            }
            else if (index == 2)
            {
            }
            //CommandGetInvoiceCustomer = new Command(async () => await GetCustomerInvoice());
            // CommandGetInvoiceOrder = new Command(async () => await GetOrderInvoice());

            _IAllDataServices = new AllDataServices();
        }
        public FranchiseAdminPaymentDetail()
        {
            InitializeComponent();
            _IAllDataServices = new AllDataServices();
            _list             = new FranchiseAdminPaymentDetail_Main_Class();
            Id = Convert.ToInt32(Application.Current.Properties["OtherId"].ToString());
            string [] mon   = new  string[5];
            int       years = DateTime.Now.Year;

            mon[0] = years.ToString();
            for (int i = 1; i < 5; i++)
            {
                /// year = year - i;
                mon[i] = (years - i).ToString();
            }

            year.ItemsSource = mon;
            GetData();
        }