Exemplo n.º 1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            page = ViewState["page"] == null ? 0 : (int)ViewState["page"];
            btnSelect_All.Text = "全选";
            if (!IsPostBack)
            {
                btn_AddPact.OnClientClick         = Window_AddPact.GetShowReference("Add_Pact.aspx", "新增合同信息");
                btnLibraryRecord.OnClientClick    = Window_LibraryRecord_Pact.GetShowReference("LibraryRecord_Pact.aspx", "查看合同借阅记录");
                btnAddLibraryRecord.OnClientClick = Window_Add_LibraryRecord.GetShowReference("Add_PactRecord.aspx", "新增合同借阅信息");

                reprotLibraryRecord.OnClientClick = Window_LibraryRecord_Pact.GetShowReference("~/Report/R_Pact_LibraryRecord.aspx", "借阅统计");
                report.OnClientClick = Window_LibraryRecord_Pact.GetShowReference("~/Report/R_Pact_addsub.aspx", "增减统计");
                //删除数据
                //btnDelete.OnClientClick = Grid_Pact.GetNoSelectionAlertReference("请至少选择一项!");
                //btn_UpdatePact.OnClientClick = Window_UpdatePact.GetShowReference("Update_Pact.aspx", "修改合同信息");
                BindData();
                //管理员登陆借阅按钮可见
                if (Convert.ToInt32(Session["SecrecyLevel"]) == 5)
                {
                    ContractRecordLibrary.Hidden = false;
                }
            }
        }
Exemplo n.º 2
0
 //合同借阅界面跳转
 protected string GetRecordUrlw(object PactID, string sort)
 {
     return(Window_Add_LibraryRecord.GetShowReference("NewAdd_PactRecord.aspx?id=" + PactID, "增加合同借阅记录"));
 }