protected void TeacherSalaryConfirm_Click(object sender, EventArgs e)
        {
            DalOperationAboutTeacherSalary dal = new DalOperationAboutTeacherSalary();
            string teacherSalaryId = this.TeacherSalaryId.Value;
            dal.confirmTeacherSalary(int.Parse(teacherSalaryId));

            Javascript.RefreshParentWindowReload(Page);
        }
Esempio n. 2
0
 protected void TeacherSalaryManage_ItemCommand(object source, DataListCommandEventArgs e)
 {
     DalOperationAboutTeacherSalary dal = new DalOperationAboutTeacherSalary();
     if (e.CommandName == "confirm")
     {
         string teacherSalaryId = TeacherSalaryList.DataKeys[e.Item.ItemIndex].ToString();
         dal.confirmTeacherSalary(int.Parse(teacherSalaryId));
         Javascript.AlertAndRedirect("确认成功", "/Teacher/SalaryView.aspx?fragment=1&page=" + pageIndex, Page);
     }
 }