void Initialize() { user = Util.Data.GetUser(); store = Util.Data.GetStore(); product = ProductObject; //Get Task if (Task == Enums.Task.Get || Task == Enums.Task.Update) { GetProduct(); } else if (Task == Enums.Task.Create) { product = new Backend.Objects.Product { Supplier = new Backend.Objects.ProductSupplier(), Brand = new Backend.Objects.ProductBrand(), Type = new Backend.Objects.ProductType(), Tax = new Backend.Objects.Tax() }; txtCustomBarcode.Text = ServerUtil.RandomDigits(13); btnDelete.Visible = false; } sign_currency1.Text = sign_currency2.Text = store.CurrencySign; // Add DropDown Items SetDropDownItems(); Translate(); }
void Initialize() { Store = Util.Data.GetStore(); lblStoreName.Text = Store.Name; Translate(); }
void Initialize() { Store = Util.Data.GetStore(); User = Util.Data.GetUser(); GetPaymentTypes(); Translate(); }
void Initialize() { actionUser = Util.Data.GetUser(); store = Util.Data.GetStore(); user = CurrentUser; //Get Task if (Task == Enums.Task.Get || Task == Enums.Task.Update) { IsUserRegistered = true; GetUser(); text_EnterPassword.Text = "Change Password"; text_RepeatPassword.Text = "Repeat New Password"; //Render User Token Code RenderUserCode(); } else { IsUserRegistered = btnDelete.Visible = false; } if (!Util.Func.IsUserAllowed(actionUser)) { dpdRole.Enabled = false; } ReArrangePanel(); Translate(); }
void Initialize() { Store = Util.Data.GetStore(); GetInsights(); Translate(); }
void Initialize() { User = Util.Data.GetUser(); Store = Util.Data.GetStore(); GetProduct(); Translate(); }
void Initialize() { store = Util.Data.GetStore(); GetLoginInfo(); Translate(); ToPanel(AuthPanels.Login); }
void Initialize() { user = Util.Data.GetUser(); store = Util.Data.GetStore(); GetUsers(); Translate(); }
public void Initialize() { User = Util.Data.HandshakeUser(ParentForm); Store = Util.Data.HandshakeStore(ParentForm); GetStore(); //Translate Translate(); }
void Initialize() { User = Util.Data.GetUser(); Store = Util.Data.GetStore(); // Do Work AsyncWorkerInitialize.RunWorkerAsync(); Translate(); }
void Initialize() { User = Util.Data.GetUser(); Store = Util.Data.GetStore(); GetSales(); SetDropDownItems(); Translate(); }
void Initialize() { // Get user = Util.Data.GetUser(); store = Util.Data.GetStore(); // Get GetTypes(); Translate(); }
void Initialize() { // Get User = Util.Data.GetUser(); Store = Util.Data.GetStore(); GetProducts(); SetDropDownItems(); Translate(); }
void Initialize() { User = Util.Data.GetUser(); Store = Util.Data.GetStore(); GetPayments(); // Last week dpDateFrom.Value = DateTime.Today.AddDays(-7); dpDateTo.Value = DateTime.Today; Translate(); }
void Initialize(bool updateModels = false) { User = Util.Data.GetUser(); Store = Util.Data.GetStore(); taxModel = new TaxModel(); subTaxModel = new TaxModel(); GetTaxes(); AddModels(); //Translate Translate(); }
void Initialize() { User = Util.Data.GetUser(); Store = Util.Data.GetStore(); if (Task == Enums.Task.ReadOnly) { btnDelete.Visible = btnEditProduct.Visible = btnPrintLabel.Visible = false; } //Get GetProduct(); Translate(); }
void Initialize() { User = Util.Data.GetUser(); Store = Util.Data.GetStore(); if (!Util.Func.IsUserAllowed(User)) { btnSelectProduct.Visible = false; } // RenderCards(false); Translate(); }
void Initialize() { User = Util.Data.GetUser(); Store = Util.Data.GetStore(); CheckUser(); lblUserName.Text = $"{ User.FirstName } { User.LastName }"; lblUserEmail.Text = User.Email; lblUserRole.Text = User.Role; imgUserImage.Image = User.ProfileOvalImage; // Get & Synchronize Insights GetInsights(); Translate(); }
public void Initialize() { // Get a Store LogOut if an error occurs user = Util.Data.HandshakeUser(this); store = Util.Data.HandshakeStore(this); serverSignal.Start(); UserTabSlider.RootFormIndex = (int)UserTab.RootForm.MainDashBoard; lblStoreName.Text = store.Name; lblUserDisplayName.Text = $"{ user.FirstName } { user.LastName }"; imgUserProfile.Image = user.ProfileOvalImage; AddTabs(); //Align Controls Util.Methods.AlignToParent(lblStoreName, pnlHeader); }
public void Initialize() { User = Util.Data.GetUser(); Store = Util.Data.GetStore(); GetCustomers(); // Get Groups var response = QueryController.Customers.Group.GetGroups(); if (response.StatusCode == 200) { foreach (Backend.Objects.CustomerGroup group in response.DataArray) { dpdCustomerGroup.AddItem(group.Name); } } Translate(); }
public void Initialize() { // Get store & user LogOut if an error occurs user = Util.Data.HandshakeUser(this); store = Util.Data.HandshakeStore(this); Translate(); serverStatus.Start(); timTime.Start(); lblUserDisplayName.Text = $"{ user.FirstName } { user.LastName }"; lblUserRole.Text = user.Role; imgUserProfile.Image = user.ProfileOvalImage; lblStoreName.Text = store.Name; lblDateDay.Text = StringUtil.ToDateString(DateTime.Now); lblDateTime.Text = DateTime.Now.ToString("HH:mm"); //Align Controls Util.Methods.AlignToParent(lblStoreName, this); }
void Initialize() { User = Util.Data.GetUser(); Store = Util.Data.GetStore(); discount = DiscountObject; //Get Task if (Task == Enums.Task.Get || Task == Enums.Task.Update) { GetDiscount(); GetDiscountProducts(); } else if (Task == Enums.Task.Create) { discount = new Backend.Objects.Discount { Type = null }; txtDiscountValue.Text = "0"; btnDelete.Visible = false; } Translate(); }