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(); }
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(); }
protected void imgProjectSearch_Click(object sender, ImageClickEventArgs e) { BindProjects(); BindEmptyModule(); ClearProjectFields(); ClearModuleFields(); UpdProjectGrid.Update(); UpdProjectEntry.Update(); UpdModuleGrid.Update(); UpdModuleEntry.Update(); }
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(); }
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(); }