protected void BindService(int ServiceID) { try { ServicePage ObjService = new ServicePage(); DataSet ds = new DataSet(); ds = ObjService.GetServicePageServiceDetail(ServiceID); if (ds.Tables[0].Rows.Count > 0) { txtServiceTitle.Text = ds.Tables[0].Rows[0]["Title"].ToString(); txtServiceDescription.Text = ds.Tables[0].Rows[0]["Description"].ToString(); if (ds.Tables[0].Rows[0]["ImageName"].ToString() != "") { ImgProduct.ImageUrl = Session["HomePath"] + "StoreData/ServicePageServices/" + ds.Tables[0].Rows[0]["ImageName"].ToString(); ViewState["ImageName"] = ds.Tables[0].Rows[0]["ImageName"].ToString(); } else { ImgProduct.ImageUrl = Session["HomePath"] + "StoreData/Product/Not.jpg"; } } else { } } catch { } }
protected void btnSave_Click(object sender, EventArgs e) { ServicePage ObjUpdate = new ServicePage(); string str = Request.QueryString["ServiceID"].ToString(); int id = Convert.ToInt32(str); ObjUpdate.UpdateServicePageServices(id, txtServiceTitle.Text.Trim(), txtServiceDescription.Text.Trim(), ViewState["ImageName"].ToString()); SuccesfullMessage("Updated successfully"); }
public MainForm() { InitializeComponent(); this.Closing += OnClosing; _homePage = new HomePage(); _servicePage = new ServicePage(); Services.Store.StoreChanged += OnStoreChanged; Services.Store.RaiseStoreChangedEvent(); }
public MainViewModel(FurniturePage furniturePage, OrderPage orderPage, ClientPage clientPage, ServicePage servicePage, RoomPage roomPage) { this.furniturePage = furniturePage; this.orderPage = orderPage; this.roomPage = roomPage; this.clientPage = clientPage; this.servicePage = servicePage; SetFurniturePage = new DelegateCommand((o) => { control = furniturePage; form = furniturePage.ViewModel; NotifyPropertyChanged("CurrentPage"); NotifyPropertyChanged("Form"); furniturePage.ViewModel.Update(); }); SetOrderPage = new DelegateCommand((o) => { control = orderPage; form = orderPage.ViewModel; NotifyPropertyChanged("CurrentPage"); NotifyPropertyChanged("Form"); orderPage.ViewModel.Update(); }); SetRoomPage = new DelegateCommand((o) => { control = roomPage; form = roomPage.ViewModel; NotifyPropertyChanged("CurrentPage"); NotifyPropertyChanged("Form"); roomPage.ViewModel.Update(); }); SetServicePage = new DelegateCommand((o) => { control = servicePage; form = servicePage.ViewModel; NotifyPropertyChanged("CurrentPage"); NotifyPropertyChanged("Form"); servicePage.ViewModel.Update(); }); SetClientPage = new DelegateCommand((o) => { control = clientPage; form = clientPage.ViewModel; NotifyPropertyChanged("CurrentPage"); NotifyPropertyChanged("Form"); clientPage.ViewModel.Update(); }); }
public void BindData() { ServicePage ObjHome = new ServicePage(); DataSet ds = new DataSet(); ds = ObjHome.GetServicePageAdmin(Convert.ToInt32(ddlUserType.SelectedValue)); if (ds.Tables[0].Rows.Count > 0) { GrdService.Visible = true; GrdService.DataSource = ds.Tables[0]; GrdService.DataBind(); Utility.Setserial(GrdService, "srno"); } else { GrdService.Visible = true; } }
private void serviceBtn_Click(object sender, RoutedEventArgs e) { ServicePage sp = new ServicePage(); if (serviceBtn.IsChecked == true) { navigationRec3.Fill = Brushes.Orange; navigationRec1.Fill = new SolidColorBrush(Color.FromRgb(23, 30, 40)); navigationRec2.Fill = new SolidColorBrush(Color.FromRgb(23, 30, 40)); navigationRec4.Fill = new SolidColorBrush(Color.FromRgb(23, 30, 40)); orderBtn.IsChecked = false; clientsBtn.IsChecked = false; employeeBtn.IsChecked = false; navigationFrame.Navigate(sp); } }
private async Task <ServicePage> GetServicePagePreview(ServicePage ServicePageActive, ServicePagePreview preview, int lastIdServicePage) { var ServicePagePreview = new ServicePage { ServicePageCustomValue = $"ServicePage_{lastIdServicePage}", ServicePageTitle = "Servicios", ServicePageActive = true, ServicePageCreatedDate = DateTime.Now, ServicePageHeadText1 = preview.Texto1Servicio ?? ServicePageActive.ServicePageHeadText1, ServicePageHeadSubText1 = preview.Texto2Servicio ?? ServicePageActive.ServicePageHeadSubText1, ServicePageColorHeadText1 = preview.ColorTexto1Servicio ?? ServicePageActive.ServicePageColorHeadText1, ServicePageColorHeadSubText1 = preview.ColorTexto2Servicio ?? ServicePageActive.ServicePageColorHeadSubText1, ServicePageColorHeadBg = preview.ColorFondoSerivicio ?? ServicePageActive.ServicePageColorHeadBg, ServicePageImageLogo = preview.ImagenEncabezadoLogoServicio ?? ServicePageActive.ServicePageImageLogo, ServicePageSubText = preview.TextoTituloServicio ?? ServicePageActive.ServicePageSubText, ServicePageSubTextDescription = preview.TextDescripcionServicio ?? ServicePageActive.ServicePageSubTextDescription, ServicePageColorSubText = preview.ColorTextoTituloServicio ?? ServicePageActive.ServicePageColorSubText, ServicePageColorSubTextDescription = preview.ColorTextDescripcionServicio ?? ServicePageActive.ServicePageColorSubTextDescription, ServiceTypes = await GetActiveServiceTypes() }; return(ServicePagePreview); }
public void BindData() { //if (Request.QueryString["UserType"] != null) //{ // ddlUserType.SelectedItem.Value = Request.QueryString["UserType"]; //} ServicePage ObjHome = new ServicePage(); DataSet ds = new DataSet(); // ds = ObjHome.GetServicePageAdmin(Convert.ToInt32(ddlUserType.SelectedValue)); ds = ObjHome.GetServicePageAdmin(Convert.ToInt32(Session["UserType"])); if (ds.Tables[0].Rows.Count > 0) { ServiceIDs = Convert.ToInt32(ds.Tables[0].Rows[0]["ServiceID"].ToString()); GrdService.Visible = true; GrdService.DataSource = ds.Tables[0]; GrdService.DataBind(); Utility.Setserial(GrdService, "srno"); } else { GrdService.Visible = true; } }
private void MenuItem_Click(object sender, RoutedEventArgs e) { ServicePage page = new ServicePage(); frameContent.Content = page; }