protected void Page_Load(object sender, EventArgs e) { Uri u = HttpContext.Current.Request.Url; ModelId = HttpUtility.ParseQueryString(u.Query).Get("id"); var providermodel = controller.GetData(ModelId); var layoutmodel = controller.GetCoreLayoutData(providermodel); LayoutProvider.DataSource = layoutmodel; LayoutProvider.DataBind(); var modelbookingprocess = controller.GetDataByProviderId(providermodel.ProviderId); GridBookingProcessView.DataSource = modelbookingprocess; GridBookingProcessView.DataBind(); var model = controller.GetData(ModelId); GridNoteView.DataSource = model.Notes; GridNoteView.DataBind(); GridProviderContactView.DataSource = model.Contacts; GridProviderContactView.DataBind(); GridCancellationView.DataSource = model.Cancellations; GridCancellationView.DataBind(); }
protected void Page_Load(object sender, EventArgs e) { Uri u = HttpContext.Current.Request.Url; modelid = HttpUtility.ParseQueryString(u.Query).Get("id"); var layoutmodel = controller.GetCustomerLayout(modelid); FormLayoutCustomer.DataSource = layoutmodel; FormLayoutCustomer.DataBind(); var modelbookingprocess = controller.GetBookingProcessesByCustomerId(layoutmodel.CustomerNr); GridBookingProcessView.DataSource = modelbookingprocess; GridBookingProcessView.DataBind(); var model = controller.GetCustomer(modelid); GridNoteView.DataSource = model.Notes; GridNoteView.DataBind(); GridCustomerEmailView.DataSource = model.Contacts; GridCustomerEmailView.DataBind(); }
public void Bind() { GridBookingProcessView.DataSource = controller.Init(); GridBookingProcessView.DataBind(); }