コード例 #1
0
    protected void Show_Record(object sender, EntityDataSourceChangedEventArgs e)
    {
        string FileId = ((YASA_PL.Quality_Instruction_Files)e.Entity).Quality_Instruction_IndexId.ToString();

        Session["Record_Info"] = "Edycja pliku zakończona poprawnie";
        Response.Redirect("~/Quality_Instruction_IndexSet/Details.aspx?Id=" + FileId);
    }
コード例 #2
0
    protected void Show_Record(object sender, EntityDataSourceChangedEventArgs e)
    {
        Session["Record_Info"] = "Edycja pliku zakończona poprawnie";
        string FileId = ((YASA_PL.CNC_Machine_Files)e.Entity).CNC_MachineId.ToString();

        Response.Redirect("~/CNC_MachineSet/Details.aspx?Id=" + FileId);
    }
コード例 #3
0
    protected void Show_Record(object sender, EntityDataSourceChangedEventArgs e)
    {
        string FileId = ((YASA_PL.Score)e.Entity).Contractor_OrderId.ToString();

        Session["Record_Info"] = "Edycja oceny zakończona poprawnie";
        Response.Redirect("~/Contractor_OrderSet/Details.aspx?Id=" + FileId);
    }
コード例 #4
0
 protected void EntityDataSource1_Updated(object sender, EntityDataSourceChangedEventArgs e)
 {
     if (e.Entity is Department)
     {
         TreeView1.SelectedNode.Text = ((Department)(e.Entity)).DepartmentName;
     }
 }
コード例 #5
0
    protected void Show_Record(object sender, EntityDataSourceChangedEventArgs e)
    {
        Session["Record_Info"] = "Edycja rekordu zakończona poprawnie";
        string FileId = ((YASA_PL.Customer_Files)e.Entity).Id.ToString();

        Response.Redirect("Details.aspx?Id=" + FileId);
    }
コード例 #6
0
    protected void EntityDataSource1_Deleted(object sender, EntityDataSourceChangedEventArgs e)
    {
        Picture myPicture = (Picture)e.Entity;
        string  fileName  = Server.MapPath(myPicture.ImageUrl);

        System.IO.File.Delete(fileName);
    }
コード例 #7
0
 protected void FormView1_ItemInserted(object sender, EntityDataSourceChangedEventArgs e)
 {
     if (e.Exception == null || e.ExceptionHandled)
     {
         Session["Record_Info"] = "Zadanie zostało dodane";
         Response.Redirect(table.GetActionPath(PageAction.Details, e.Entity));
     }
 }
コード例 #8
0
 private void ClientEntity_Updated(object sender, EntityDataSourceChangedEventArgs e)
 {
     if (e.Exception != null)
     {
         e.ExceptionHandled = true;
         ClientGrid.DataBind();
     }
 }
コード例 #9
0
 protected void FormView1_ItemUpdated(object sender, EntityDataSourceChangedEventArgs e)
 {
     if (e.Exception == null || e.ExceptionHandled)
     {
         Session["Record_Info"] = "Edycja rekordu zakończona poprawnie";
         Response.Redirect(table.GetActionPath(PageAction.Details, e.Entity));
     }
 }
コード例 #10
0
 private void EntityDataTaxi_Deleted(object sender, EntityDataSourceChangedEventArgs e)
 {
     if (e.Exception != null)
     {
         e.ExceptionHandled = true;
         GridView1.DataBind();
     }
 }
コード例 #11
0
ファイル: NewSpot.aspx.cs プロジェクト: jb6733/SnapSpotter
 protected void EntityDataSource1_Inserted(object sender, EntityDataSourceChangedEventArgs e)
 {
     if (e.Entity != null)
     {
         Spot mySpot = (Spot)e.Entity;
         Response.Redirect(string.Format("ManageSpot.aspx?SpotId={0}", mySpot.RowID.ToString()));
     }
 }
コード例 #12
0
 protected void FormView1_ItemUpdated(object sender, EntityDataSourceChangedEventArgs e)
 {
     if (e.Exception == null || e.ExceptionHandled)
     {
         Session["Record_Info"] = "Pomyślnie potwierdzono realizację zamówienia";
         Response.Redirect(table.GetActionPath(PageAction.Details, e.Entity));
     }
 }
コード例 #13
0
 protected void DetailsDataSource_Inserted(object sender, EntityDataSourceChangedEventArgs e)
 {
     if (e.Exception == null || e.ExceptionHandled)
     {
         Session["Record_Info"] = "Rekord został dodany";
         Response.Redirect(table.GetActionPath(PageAction.Details, e.Entity));
     }
 }
コード例 #14
0
 protected void EntityDataSource1_Inserted(object sender, EntityDataSourceChangedEventArgs e)
 {
     if (e.Entity != null)
     {
         TPhotoAlbum myPhotoAlbum = (TPhotoAlbum)e.Entity;
         Response.Redirect(string.Format("ManagePhotoAlbum.aspx?PhotoAlbumID={0}", myPhotoAlbum.ID.ToString()));
     }
 }
コード例 #15
0
    protected void Show_Record(object sender, EntityDataSourceChangedEventArgs e)
    {
        string value = Request.QueryString["ContractorId"];

        if (value != null)
        {
            Response.Redirect("~/ContractorSet/Details.aspx?Id=" + value);
        }
    }
コード例 #16
0
 protected void DetailsDataSource_Updated(object sender, EntityDataSourceChangedEventArgs e)
 {
     if (e.Exception == null || e.ExceptionHandled)
     {
         Session["Record_Info"] = "Edycja operacji zakończona poprawnie";
         string FileId = ((YASA_PL.Technology_Stage)e.Entity).Technology_IndexId.ToString();
         Response.Redirect("~/Technology_IndexSet/Details.aspx?Id=" + FileId);
     }
 }
コード例 #17
0
 protected void EntityDataSource1_Inserted(object sender, EntityDataSourceChangedEventArgs e)
 {
     if (e.Entity is Department)
     {
         TreeNode node = new TreeNode(((Department)(e.Entity)).DepartmentName, ((Department)(e.Entity)).DepartmentCode);
         TreeView1.SelectedNode.ChildNodes.Add(node);
         node.Select();
     }
 }
コード例 #18
0
 protected void Show_Record(object sender, EntityDataSourceChangedEventArgs e)
 {
     //string value = Request.QueryString["redirect"];
     //if (value == "standard")
     {
         Session["Record_Info"] = "Nowy Rodzaj Narzędzia został dodany";
         Response.Redirect("~/ToolSet/List.aspx");
     }
 }
コード例 #19
0
    protected void Show_Record(object sender, EntityDataSourceChangedEventArgs e)
    {
        string value = Request.QueryString["CNC_ProgramId"];

        if (value != null)
        {
            Session["Record_Info"] = "Rewizja została dodana";
            Response.Redirect("~/CNC_ProgramSet/Details.aspx?Id=" + value);
        }
    }
コード例 #20
0
    protected void Show_Record(object sender, EntityDataSourceChangedEventArgs e)
    {
        string value = Request.QueryString["Technology_IndexId"];

        if (value != null)
        {
            Session["Record_Info"] = "Operacja została dodana";
            Response.Redirect("~/Technology_IndexSet/Details.aspx?Id=" + value);
        }
    }
コード例 #21
0
    protected void Show_Record(object sender, EntityDataSourceChangedEventArgs e)
    {
        string value = Request.QueryString["FormTemplatesId"];

        if (value != null)
        {
            Session["Record_Info"] = "Plik został dodany";
            Response.Redirect("~/FormTemplatesSet/Details.aspx?Id=" + value);
        }
    }
コード例 #22
0
    protected void Show_Record(object sender, EntityDataSourceChangedEventArgs e)
    {
        string value = Request.QueryString["Customer_ProductId"];

        if (value != null)
        {
            Session["Record_Info"] = "Rekord został dodany";
            Response.Redirect("~/Customer_ProductSet/Details.aspx?Id=" + value);
        }
    }
コード例 #23
0
 protected void edsUsuario_Inserted(object sender, EntityDataSourceChangedEventArgs e)
 {
     SISMed.Models.Usuario u = e.Entity as SISMed.Models.Usuario;
     if (u.TipoDeUsuarioId > 1)
     {
         sdsMedico.InsertParameters.Add(new Parameter("Usuario_Id", TypeCode.String, u.Id.ToString()));
         sdsMedico.Insert();
     }
     Response.Redirect(string.Format("./Show.aspx?id={0}&success=VXN1w6FyaW8gY2FkYXN0cmFkbyBjb20gc3VjZXNzby4=", u.Id));
 }
コード例 #24
0
    protected void Show_Record(object sender, EntityDataSourceChangedEventArgs e)
    {
        string value3 = Request.QueryString["CNC_Program_IndexId"];

        if (value3 != null)
        {
            Session["Record_Info"] = "Plik został dodany";
            Response.Redirect("~/CNC_Program_IndexSet/Details.aspx?Id=" + value3);
        }
    }
コード例 #25
0
        protected void edsConsulta_Inserted(object sender, EntityDataSourceChangedEventArgs e)
        {
            Consulta c = e.Entity as Consulta;

            if (!string.IsNullOrWhiteSpace(Request.QueryString["agendamento"]))
            {
                sdsAgendamento.Update();
            }

            Response.Redirect(string.Format("./Show.aspx?id={0}&success=Q29uc3VsdGEgY2FkYXN0cmFkYSBjb20gc3VjZXNzby4=", c.Id));
        }
コード例 #26
0
 void DetailsDataSource_Inserted(object sender, EntityDataSourceChangedEventArgs e)
 {
     if (e.Entity != null)
     {
         Response.Redirect(table.GetActionPath(PageAction.Details, e.Entity));
     }
     else
     {
         ShowError("Error: Your data could not be saved.");
     }
 }
コード例 #27
0
ファイル: NewPhotoAlbum.aspx.cs プロジェクト: nkiuk/Push_3
    protected void EntityDataSource1_Inserted(object sender, EntityDataSourceChangedEventArgs e)
    {
        //var r = e.Entity;
        //var myPhotoAlbum = (PlanetWroxModel.PhotoAlbum)r;
        //PotoAlbum myPhotoAlbum = new PhotoAlbum();
        //bool t = ReferenceEquals(myPhotoAlbum,e);
        //int newId = myPhotoAlbum.Id;
        var myPhotoAlbum = (PlanetWroxModel.PhotoAlbum)e.Entity;

        //PhotoAlbum myPhotoAlbum = (PlanetWroxModel.PhotoAlbum)e.Entity;
        Response.Redirect(string.Format("ManagePhotoAlbum.aspx?PhotoAlbumId={0}", myPhotoAlbum.Id.ToString()));
    }
コード例 #28
0
        protected void MarinaSource_Inserted(object sender, EntityDataSourceChangedEventArgs e)
        {
            var customer = (Customer)e.Entity;

            // If customer is null, then they weren't successfully inserted.
            if (customer != null)
            {
                Response.Redirect("Login.aspx");
            }
            else
            {
                Response.Redirect("Register.aspx");
            }
        }
コード例 #29
0
    protected void Show_Record(object sender, EntityDataSourceChangedEventArgs e)
    {
        string value = Request.QueryString["redirect"];

        Session["Record_Info"] = "Branża została dodana";
        if (value == "contractor")
        {
            Response.Redirect("~/ContractorSet/List.aspx");
        }

        if (value == "insertcontractor")
        {
            Response.Redirect("~/ContractorSet/Insert.aspx");
        }
    }
コード例 #30
0
    protected void Show_Record(object sender, EntityDataSourceChangedEventArgs e)
    {
        Session["Record_Info"] = "Rekord został dodany";
        string value = Request.QueryString["redirect"];

        if (value == "userlist")
        {
            Response.Redirect("~/Users/List.aspx");
        }

        if (value == "adduser")
        {
            Response.Redirect("~/Users/Insert.aspx");
        }
    }