protected void Page_Load(object sender, EventArgs e) { page = ViewState["page"] == null ? 0 : (int)ViewState["page"]; btnSelect_All.Text = "全选"; if (dChoose.SelectedValue == "保密级别") { dCondition.Enabled = false; tCondition.Enabled = false; secrecyLevel.Enabled = true; } else if (dChoose.SelectedValue == "所属机构" || dChoose.SelectedValue == "发明人" || dChoose.SelectedValue == "成员") { dCondition.Enabled = false; tCondition.Enabled = true; secrecyLevel.Enabled = false; } else { dCondition.Enabled = true; tCondition.Enabled = false; secrecyLevel.Enabled = false; } if (!IsPostBack) { InitData(); btn_AddPatent.OnClientClick = Window_addPatent.GetShowReference("Add_Patent.aspx", "新增专利信息"); btnExcel.OnClientClick = Window_Import.GetShowReference("~/AcademicMeeting/ImportExcel.aspx?name=专利情况表", "工具"); //reprot1.OnClientClick = WindowReport.GetShowReference("~/Report/R_Agency_Patent.aspx", "分部门按专利名称统计专利情况"); } }
protected void Page_Load(object sender, EventArgs e) { page = ViewState["page"] == null ? 0 : (int)ViewState["page"]; btnSelect_All.Text = "全选"; if (!IsPostBack) { InitData(); btn_AddMonograph.OnClientClick = Window_addMonograph.GetShowReference("Add_Monograph.aspx", "新增专著信息"); btnExcel.OnClientClick = Window_Import.GetShowReference("~/AcademicMeeting/ImportExcel.aspx?name=专著情况表", "工具"); //reprot1.OnClientClick = WindowReport.GetShowReference("~/Report/R_Agency_Monograph.aspx", "分部门按著作名称统计专著情况"); } }
protected void Page_Load(object sender, EventArgs e) { if (Convert.ToBoolean(Session["IsLogin"]) && Session["LoginName"].ToString() != "") { if (!IsPostBack) { Response.Cache.SetCacheability(System.Web.HttpCacheability.NoCache); ButtonOption.OnClientClick = Window1.GetShowReference("~/WebForms/Pop_Option.aspx", "修改密码"); BtnUserInfo.OnClientClick = WindowADD.GetShowReference("~/Information/ManagerInformation.aspx", "管理员消息"); btnExcel.OnClientClick = Window_Import.GetShowReference("~/AcademicMeeting/ImportExcel.aspx", "工具"); //BtnHomepage.OnClientClick = Tab1.GetShowReference(); DatePicker1.SelectedDate = DateTime.Now; InitBtnUserfo(); People.Text = "欢迎," + bllUser.FindByLoginName(Session["LoginName"].ToString()).UserName + "!"; } } else { PageContext.RegisterStartupScript(ActiveWindow.GetConfirmHideReference()); Response.Redirect("login.aspx"); } }