Exemplo n.º 1
0
    protected void gvProject_SelectedIndexChanging(object sender, GridViewSelectEventArgs se)
    {
        ucCustomPagerItems.isCountRecord = 1;
        gvProject.SelectedIndex          = se.NewSelectedIndex;

        ViewState["ProjectID"] = ((Label)gvProject.Rows[se.NewSelectedIndex].FindControl("lblProjectID")).Text;

        ViewState["ModuleID"] = null;
        ViewState["ScreenID"] = null;

        BindProjects();
        BindModules();
        BindScreen();

        ClearModuleFields();
        ClearScreenFields();
        this.SetFocus("txtModule");

        UpdProjectGrid.Update();
        UpdProjectEntry.Update();

        UpdModuleGrid.Update();
        UpdModuleEntry.Update();

        UpdScreenGrid.Update();
        UpdScreenEntry.Update();
    }
Exemplo n.º 2
0
    private void BindProjectList(int Project_ID)
    {
        DataTable dt = BLL_Infra_ShipSettings.Get_Projects(Project_ID);

        if (dt.Rows.Count > 0)
        {
            txtProject.Text           = dt.Rows[0]["Project_Name"].ToString();
            lblProjectCreatedBy.Text  = dt.Rows[0]["CREATEDBY"].ToString();
            lblProjectModifiedBy.Text = dt.Rows[0]["MODIFIEDBY"].ToString();
            lblProjectDeletedBy.Text  = dt.Rows[0]["DELETEDBY"].ToString();
        }

        UpdProjectEntry.Update();
    }
Exemplo n.º 3
0
    protected void imgProjectSearch_Click(object sender, ImageClickEventArgs e)
    {
        BindProjects();

        BindEmptyModule();


        ClearProjectFields();
        ClearModuleFields();

        UpdProjectGrid.Update();
        UpdProjectEntry.Update();

        UpdModuleGrid.Update();
        UpdModuleEntry.Update();
    }
Exemplo n.º 4
0
    protected void ImgProjectDelete_Click(object sender, CommandEventArgs e)
    {
        int retval = BLL_Infra_ShipSettings.Delete_Nav_Projects(Convert.ToInt32(e.CommandArgument.ToString()), Convert.ToInt32(Convert.ToInt32(Session["userid"].ToString())));

        BindProjects();
        BindEmptyModule();

        ClearProjectFields();
        ClearModuleFields();

        UpdProjectGrid.Update();
        UpdProjectEntry.Update();

        UpdModuleGrid.Update();
        UpdModuleEntry.Update();
    }
Exemplo n.º 5
0
    private void BindProjectList(int Project_ID)
    {
        DataTable dt = BLL_Infra_ShipSettings.Get_Nav_Projects(Project_ID);

        if (dt.Rows.Count > 0)
        {
            txtProject.Text = dt.Rows[0]["Name"].ToString();
            ddlProjectTemplete.SelectedValue = dt.Rows[0]["Screen_ID"].ToString();

            txtProjImagePath.Text = dt.Rows[0]["Image_Path"].ToString();

            lblProjectCreatedBy.Text  = dt.Rows[0]["CREATEDBY"].ToString();
            lblProjectModifiedBy.Text = dt.Rows[0]["MODIFIEDBY"].ToString();
            lblProjectDeletedBy.Text  = dt.Rows[0]["DELETEDBY"].ToString();
        }

        UpdProjectEntry.Update();
    }