public void ifCompleted(OrderWrapper oid, DateTime instal_date, DateTime order_date) { lbl_instal.Text = "Your order was Successfully completed!"; lblInstal.Text = "Installed on"; btnDay.Visible = true; btnDay.Text = instal_date.Day.ToString(); btnmonth.Visible = true; btnmonth.Text = instal_date.Month.ToString(); btnyear.Visible = true; btnyear.Text = instal_date.Year.ToString(); btnChangeDate.Visible = false; btnCancelOrder.Visible = false; //lbl_esti.Text = "Estimated Time :"; //lbltime.Text = "1hrs 15 mins"; orderDateid.Text = order_date.ToString(); lblServ.Text = p.ServiceAddress; lbl_prodinfo.Text = "Included in this order "; products.DataSource = oid.Services; products.DataBind(); }
public void ifNew(OrderWrapper oid,DateTime instal_date,DateTime order_date) { lbl_instal.Text = "Your order is scheduled installation on:"; btnDay.Visible = true; btnDay.Text = instal_date.Day.ToString(); btnmonth.Visible = true; btnmonth.Text = instal_date.Month.ToString(); btnyear.Visible = true; btnyear.Text = instal_date.Year.ToString(); btnChangeDate.Visible = true; btnCancelOrder.Visible = true; orderDateid.Text = order_date.ToString(); lbl_esti.Text = "Estimated Time :"; lbltime.Text = "1hrs 15 mins"; lblServ.Text = p.ServiceAddress; lbl_prodinfo.Text = "Included in this order "; products.DataSource = oid.Services; products.DataBind(); }
public Profile GetCustomProfile() { Profile profile = new Profile(); Connectionaddress address = this.customerdetails.connectionaddress; profile.FirstName = this.customerdetails.fname; profile.LastName = this.customerdetails.lname; profile.ServiceAddress = String.Format("{0},{1}-{2} , {3}, {4}", address.streetname, address.city, address.zipcode, address.state, address.country); profile.Orders = new List <OrderWrapper>(); if (orderhistory != null) { foreach (var order in orderhistory) { OrderWrapper orderWrap = new OrderWrapper(); orderWrap.Id = order.orderid.ToString(); orderWrap.InstallationDate = order.duedate.ToDateTime(); orderWrap.OrderDate = order.dateoforder.ToDateTime(); orderWrap.Services = new List <ServiceWrapper>(); if (order.services != null) { foreach (var service in order.services) { orderWrap.Services.Add(new ServiceWrapper() { Name = service.servicename }); } } orderWrap.Status = order.orderstatus; profile.Orders.Add(orderWrap); } } return(profile); }
public Profile GetCustomProfile() { Profile profile = new Profile(); Connectionaddress address = this.customerdetails.connectionaddress; profile.FirstName = this.customerdetails.fname; profile.LastName = this.customerdetails.lname; profile.ServiceAddress = String.Format("{0},{1}-{2} , {3}, {4}", address.streetname, address.city, address.zipcode, address.state, address.country); profile.Orders = new List<OrderWrapper>(); if (orderhistory != null) { foreach (var order in orderhistory) { OrderWrapper orderWrap = new OrderWrapper(); orderWrap.Id = order.orderid.ToString(); orderWrap.InstallationDate = order.duedate.ToDateTime(); orderWrap.OrderDate = order.dateoforder.ToDateTime(); orderWrap.Services = new List<ServiceWrapper>(); if (order.services != null) { foreach (var service in order.services) { orderWrap.Services.Add(new ServiceWrapper() { Name = service.servicename }); } } orderWrap.Status = order.orderstatus; profile.Orders.Add(orderWrap); } } return profile; }