protected void gridRoomList_OnPreRowDataBound(object sender, FineUI.GridPreRowEventArgs e) { DateTime nowDate = SeatManage.Bll.ServiceDateTime.Now; DataRowView row = e.DataItem as DataRowView; string roomSet = row[5].ToString(); LinkButtonField lbf = gridRoomList.FindColumn("seatUsedView") as LinkButtonField; if (string.IsNullOrEmpty(roomSet)) { lbf.Icon = Icon.BulletCross; lbf.ToolTip = "该阅览室没有配置"; lbf.EnablePostBack = false; lbf.Enabled = false; return; } try { SeatManage.ClassModel.ReadingRoomSetting set = new SeatManage.ClassModel.ReadingRoomSetting(roomSet); if (Code.NowReadingRoomState.ReadingRoomOpenState(set.RoomOpenSet, nowDate) == SeatManage.EnumType.ReadingRoomStatus.Close) { lbf.Icon = Icon.BulletCross; lbf.ToolTip = "阅览室没有开放"; lbf.EnablePostBack = false; lbf.Enabled = false; return; } if (!set.SeatBespeak.Used || !set.SeatBespeak.NowDayBespeak) { lbf.Icon = Icon.BulletCross; lbf.ToolTip = "阅览室没有开放预约"; lbf.EnablePostBack = false; lbf.Enabled = false; return; } int canBespeakAmount = int.Parse(row[4].ToString()); if (canBespeakAmount <= 0) { lbf.Icon = Icon.BulletCross; lbf.ToolTip = "没有空余座位"; lbf.Enabled = false; } else { lbf.Icon = Icon.Zoom; lbf.ToolTip = "预约座位"; lbf.Enabled = true; } } catch (Exception ex) { FineUI.Alert.Show(string.Format("阅览室设置不正确:{0}", ex.Message)); } string roomNum = row[0].ToString().Trim(); lbf.EnablePostBack = false; lbf.OnClientClick = WindowEdit.GetShowReference(string.Format("BespeakNowDaySeatLayout.aspx?roomId={0}", roomNum), "座位视图"); }
/// <summary> /// 行绑定事件 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void gridStudyLog_OnPreRowDataBound(object sender, FineUI.GridPreRowEventArgs e) { LinkButtonField lbf = gridStudyLog.FindColumn("StudyDelete") as LinkButtonField; LinkButtonField lbf1 = gridStudyLog.FindColumn("StudyUpdate") as LinkButtonField; DataRowView row = e.DataItem as DataRowView; string logStatus = row[7].ToString(); // string status = row["BsepeakState"].ToString(); if (logStatus != "通过审核" && logStatus != "取消审核") { lbf.Enabled = true; lbf.ToolTip = "取消预约"; lbf.Icon = FineUI.Icon.Delete; lbf.OnClientClick = WindowCancel.GetShowReference(string.Format("BeskpeakCancel.aspx?id={0}", row[0].ToString()), "取消申请"); lbf1.Enabled = true; lbf1.ToolTip = "修改申请"; lbf1.Icon = FineUI.Icon.Pencil; lbf1.OnClientClick = WindowEdit.GetShowReference(string.Format("BeskpeakStudyRoom.aspx?id={0}&flag=edit", row[0].ToString()), "修改申请"); } else { lbf.Enabled = false; lbf.ToolTip = "不可操作"; lbf.Icon = FineUI.Icon.None; lbf1.Enabled = true; lbf1.ToolTip = "查看申请"; lbf1.Icon = FineUI.Icon.Zoom; lbf1.OnClientClick = WindowEdit.GetShowReference(string.Format("../StudyRoomManage/StudyBookingLogCheck.aspx?id={0}", row[0].ToString()), "查看申请"); } }
public override bool EditingEntity(TestingSystemEntities db) { int idQuestion = Convert.ToInt32(this.Tag); var editQuestion = db.Question .Where(x => x.Id == idQuestion) .FirstOrDefault(); WindowEdit windowEdit = new WindowEdit(editQuestion); windowEdit.gridEditQuestion.Visibility = Visibility.Visible; windowEdit.textBoxQuestionName.Focus(); windowEdit.textBoxQuestionName.MaxLength = 500; // Заполняем поле вопроса windowEdit.QuestionName = editQuestion.QuestionText; bool?result = windowEdit.ShowDialog(); if (result == true) { editQuestion.QuestionText = windowEdit.QuestionName; db.SaveChanges(); return(true); } return(false); }
protected void gridRoomList_OnPreRowDataBound(object sender, FineUI.GridPreRowEventArgs e) { DateTime nowDate = SeatManage.Bll.ServiceDateTime.Now; DataRowView row = e.DataItem as DataRowView; LinkButtonField lbf = gridRoomList.FindColumn("appTable") as LinkButtonField; string roomNum = row[0].ToString().Trim(); bool IsUseStudyRoom = bool.Parse(row[7].ToString()); if (IsUseStudyRoom) { lbf.IconUrl = "/Images/Hand.png"; lbf.EnablePostBack = false; lbf.Enabled = true; lbf.OnClientClick = WindowEdit.GetShowReference(string.Format("BeskpeakStudyRoom.aspx?roomNo={0}", roomNum), "申请表"); } else { lbf.IconUrl = "/Images/HandDisable.png"; lbf.ToolTip = "研习间暂未开放"; lbf.EnablePostBack = false; lbf.Enabled = false; } gridRoomList.AutoHeight = true; divremark.InnerHtml = row[2].ToString(); //divRemaFacilitiesRenmarkrk.InnerHtml = row[3].ToString(); //divPrecautions.InnerHtml = row[4].ToString(); //divApplicationInfo.InnerHtml = row[5].ToString(); //remark = row[4].ToString().Replace("\r\n", "<br/>"); }
//行预绑定事件 protected void GridRole_PreRowDataBound(object sender, FineUI.GridPreRowEventArgs e) { DataRowView row = e.DataItem as DataRowView; string roleId = row[0].ToString(); string roleName = Server.UrlEncode(row[1].ToString()); LinkButtonField lnkbtnField = GridRole.FindColumn("lnkbtnEdit") as LinkButtonField; LinkButtonField lnkbtnColDel = GridRole.FindColumn("ColDel") as LinkButtonField; lnkbtnField.OnClientClick = WindowEdit.GetShowReference("RoleEdit.aspx?flag=edit&roleId=" + roleId + "&roleName=" + roleName, "修改角色"); FineUI.CheckBoxField cbxField = GridRole.FindColumn("CheckBoxField1") as FineUI.CheckBoxField; if (row[2].ToString() == "True") { lnkbtnField.Enabled = false; lnkbtnField.Icon = Icon.Lock; lnkbtnField.ToolTip = "不可编辑"; lnkbtnColDel.Enabled = false; lnkbtnColDel.Icon = Icon.Lock; lnkbtnColDel.ToolTip = "不可删除"; } else { lnkbtnField.Enabled = true; lnkbtnField.Icon = Icon.Pencil; lnkbtnField.ToolTip = "编辑"; lnkbtnColDel.Enabled = true; lnkbtnColDel.Icon = Icon.Delete; lnkbtnColDel.ToolTip = "删除"; } }
public override bool AddEntity(TestingSystemEntities db) { WindowEdit windowAdd = new WindowEdit(this.TestId); windowAdd.gridEditQuestion.Visibility = Visibility.Visible; windowAdd.textBoxQuestionName.Focus(); windowAdd.buttonOk.Content = "Добавить"; windowAdd.Title = "Добавление вопроса"; windowAdd.textBoxQuestionName.MaxLength = 500; bool?result = windowAdd.ShowDialog(); if (result == true) { Question addQuestion = new Question(); addQuestion.QuestionText = windowAdd.QuestionName; addQuestion.TestId = Convert.ToInt16(this.TestId); db.Question.Add(addQuestion); db.SaveChanges(); return(true); } return(false); }
public override bool AddEntity(TestingSystemEntities db) { WindowEdit windowAdd = new WindowEdit(); windowAdd.gridEditCategory.Visibility = Visibility.Visible; windowAdd.textBoxCategoryName.Focus(); windowAdd.buttonOk.Content = "Добавить"; windowAdd.Title = "Добавление категории"; windowAdd.textBoxCategoryName.MaxLength = 30; bool?result = windowAdd.ShowDialog(); if (result == true) { Category category = new Category(); category.Name = windowAdd.CategoryName; db.Category.Add(category); db.SaveChanges(); return(true); } return(false); }
public override bool EditingEntity(TestingSystemEntities db) { int idCategory = Convert.ToInt32(this.Tag); var editCategory = db.Category .Where(x => x.Id == idCategory) .FirstOrDefault(); WindowEdit windowEdit = new WindowEdit(editCategory); windowEdit.gridEditCategory.Visibility = Visibility.Visible; windowEdit.textBoxCategoryName.Focus(); windowEdit.CategoryName = editCategory.Name; windowEdit.textBoxCategoryName.MaxLength = 30; bool?result = windowEdit.ShowDialog(); if (result == true) { // Запишем в базу editCategory.Name = windowEdit.CategoryName; db.SaveChanges(); return(true); } return(false); }
/// <summary> /// 行绑定事件 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void BlacklistGrid_OnPreRowDataBound(object sender, FineUI.GridPreRowEventArgs e) { LinkButtonField lbfshow = BlacklistGrid.FindColumn("BlacklistInfo") as LinkButtonField; DataRowView row = e.DataItem as DataRowView; string status = row[5].ToString(); lbfshow.OnClientClick = WindowEdit.GetShowReference("../LogManage/BlacklistInfo.aspx?id=" + row[0].ToString() + "", "黑名单详情"); }
/// <summary> /// 行绑定事件 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void gridReaderList_OnPreRowDataBound(object sender, GridPreRowEventArgs e) { LinkButtonField lbf = gridReaderList.FindColumn("seatReaderList") as LinkButtonField; DataRowView row = e.DataItem as DataRowView; string seatNum = row[3].ToString(); string shortNum = row[4].ToString(); lbf.OnClientClick = WindowEdit.GetShowReference(string.Format("SeatHandle.aspx?seatNo={0}&seatShortNo={1}&used={2}", seatNum, shortNum, "1"), "座位视图"); }
public override bool AddEntity(TestingSystemEntities db) { WindowEdit windowAdd = new WindowEdit(this.CategoryId); windowAdd.gridEditTest.Visibility = Visibility.Visible; windowAdd.textBoxTestName.Focus(); windowAdd.buttonOk.Content = "Добавить"; windowAdd.Title = "Добавление теста"; // Настройка comboBox названия категорий. // узнаем существующие категории var categoriesTest = ( from category in db.Category select category ) .ToList(); // Заполняем названия доступных категорий. windowAdd.comboBoxTestCategories.ItemsSource = categoriesTest; // Выводим только имена категорий. windowAdd.comboBoxTestCategories.DisplayMemberPath = "Name"; // Выбираем категорию соответствующую // тесту который редактируем. windowAdd.comboBoxTestCategories.SelectedItem = categoriesTest .Where(x => x.Id == this.CategoryId) .FirstOrDefault(); windowAdd.comboBoxTestCategories.IsEnabled = false; windowAdd.textBoxTestName.MaxLength = 60; bool?result = windowAdd.ShowDialog(); if (result == true) { Test addTest = new Test(); addTest.Name = windowAdd.TestName; addTest.CategoryId = (windowAdd.comboBoxTestCategories .SelectedItem as Category).Id; db.Test.Add(addTest); db.SaveChanges(); return(true); } return(false); }
protected void gridRoomList_OnPreRowDataBound(object sender, FineUI.GridPreRowEventArgs e) { LinkButtonField lbf = gridRoomList.FindColumn("seatUsedView") as LinkButtonField; DataRowView row = e.DataItem as DataRowView; string roomNum = row[0].ToString(); lbf.OnClientClick = WindowEdit.GetShowReference("SeatGraph.aspx?roomId=" + roomNum + "", "座位视图"); LinkButtonField lbfReaderList = gridRoomList.FindColumn("seatReaderList") as LinkButtonField; lbfReaderList.OnClientClick = windowSeatUsedList.GetShowReference("MonitorListMode.aspx?roomId=" + roomNum + "", "在座读者列表"); }
private void bttnEdit_Click(object sender, EventArgs e) { DataGridViewRow dgvr; dgvr = dgv_Clientes.CurrentRow; int id = Convert.ToInt32(dgv_Clientes.Rows[dgvr.Index].Cells[5].Value); WindowEdit windowEdit = new WindowEdit(); Clients clients = new Clients(); windowEdit.SelectClientID(clients.connextion, id); windowEdit.Show(); }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { if (!OpVerifiction()) { Response.Write("请使用正常方式访问网站!"); Response.End(); } btnAddLibrary.OnClientClick = WindowEdit.GetShowReference("LibraryEdit.aspx?flag=add", "添加图书馆"); BindGrid(); } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { if (!OpVerifiction()) { Response.Write("请使用正常方式访问网站!"); Response.End(); } BindStudyRoom(); btnAddStudyRoom.OnClientClick = WindowEdit.GetShowReference("StudyRoomEdit.aspx?flag=add", "添加功能页");//为btnAddStudyRoom新增点击事件 } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { if (!OpVerifiction()) { Response.Write("请使用正常方式访问网站!"); Response.End(); } btnUpdate.OnClientClick = WindowEdit.GetShowReference("SyncReader.aspx", "同步读者信息"); DataBind(); } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { if (!OpVerifiction()) { Response.Write("请使用正常方式访问网站!"); Response.End(); } BindRoleGrid(); btnAddRole.OnClientClick = WindowEdit.GetShowReference("RoleEdit.aspx?flag=add", "添加角色");//为btnAddMenu新增点击事件 } }
public override bool EditingEntity(TestingSystemEntities db) { int idTest = Convert.ToInt32(this.Tag); var editTest = db.Test .Where(x => x.Id == idTest) .FirstOrDefault(); WindowEdit windowEdit = new WindowEdit(editTest); windowEdit.gridEditTest.Visibility = Visibility.Visible; windowEdit.textBoxTestName.Focus(); windowEdit.textBoxTestName.MaxLength = 60; var categoriesTest = ( from category in db.Category select category ) .ToList(); // Заполняем название теста. windowEdit.TestName = editTest.Name; // Заполняем названия доступных категорий. windowEdit.comboBoxTestCategories.ItemsSource = categoriesTest; // Выводим только имена категорий. windowEdit.comboBoxTestCategories.DisplayMemberPath = "Name"; // Выбираем категорию соответствующую // тесту который редактируем. windowEdit.comboBoxTestCategories.SelectedItem = editTest.Category; bool?result = windowEdit.ShowDialog(); if (result == true) { editTest.Name = windowEdit.TestName; editTest.CategoryId = (windowEdit.comboBoxTestCategories .SelectedItem as Category).Id; db.SaveChanges(); return(true); } return(false); }
/// <summary> /// 行绑定事件 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void SchoolGrid_OnPreRowDataBound(object sender, FineUI.GridPreRowEventArgs e) { LinkButtonField lbf = SchoolGrid.FindColumn("Schooledit") as LinkButtonField; DataRowView row = e.DataItem as DataRowView; string schoolno = row[0].ToString(); lbf.OnClientClick = WindowEdit.GetShowReference("SchoolEdit.aspx?flag=edit&id=" + schoolno + "", "校区编辑"); LinkButtonField lbfx = SchoolGrid.FindColumn("Schooldelete") as LinkButtonField; DataRowView rowx = e.DataItem as DataRowView; string schoolnox = rowx[0].ToString(); lbfx.OnClientClick = WindowDelete.GetShowReference("../SystemSet/DeletePassword.aspx?Type=School&id=" + schoolnox + "", "校区删除"); }
/// <summary> /// 行绑定事件 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void LibraryGrid_OnPreRowDataBound(object sender, FineUI.GridPreRowEventArgs e) { LinkButtonField lbf = LibraryGrid.FindColumn("Libraryedit") as LinkButtonField; DataRowView row = e.DataItem as DataRowView; string librarylno = row[0].ToString(); lbf.OnClientClick = WindowEdit.GetShowReference("libraryEdit.aspx?flag=edit&id=" + librarylno + "", "图书馆编辑"); LinkButtonField lbfx = LibraryGrid.FindColumn("Librarydelete") as LinkButtonField; DataRowView rowx = e.DataItem as DataRowView; string librarylnox = rowx[0].ToString(); lbfx.OnClientClick = WindowDelete.GetShowReference("../SystemSet/DeletePassword.aspx?Type=Library&id=" + librarylno + "", "图书馆删除"); }
private void BtnEdit_OnClick(object sender, RoutedEventArgs e) { var obj = DataGridEnterprise.SelectedCells; enterprises ent = new enterprises(); ent.fullname = ((DataRowView)obj[0].Item).Row.ItemArray[1].ToString(); //WARNING! DO NOT UNCOMMIT //ent.shortname = new ForeignKeyModel() { name = ((DataRowView)obj[0].Item).Row.ItemArray[2].ToString(), nameForeignColumn = "_type_name", nameForeignTable = "type_premises" }; ent.shortname = ((DataRowView)obj[0].Item).Row.ItemArray[2].ToString(); int id = int.Parse(((DataRowView)obj[0].Item).Row.ItemArray[0].ToString()); string condition = " code = " + id; WindowEdit windowEdit = new WindowEdit(ent, new List<string>() { "Полное название", "Краткое название" }, condition); if(windowEdit.ShowDialog() == true) loadData(); }
private void BtnEdit_Click(object sender, RoutedEventArgs e) { if (dttWorker.SelectedItems.Count > 0) { tWorker worker = dttWorker.SelectedItem as tWorker; if (worker == null) { return; } WindowEdit windowEdit = new WindowEdit(worker, db); windowEdit.ShowDialog(); db.Dispose(); LoadData(); } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { if (!OpVerifiction()) { Response.Write("请使用正常方式访问网站!"); Response.End(); } BindDDLReadingRoom(); dpStartDate.SelectedDate = DateTime.Now.AddDays(-7); dpEndDate.SelectedDate = DateTime.Now; btnAdd.OnClientClick = WindowEdit.GetShowReference("AddViolateDiscipline.aspx", "添加违规记录"); btnDeleteBySearch.OnClientClick = WindowEdit.GetShowReference("DelViolateDisciplineBySearch.aspx", "按条件删除违规记录"); } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { if (!string.IsNullOrEmpty(Request.QueryString["id"])) { DataBind(); btnSetBespeakSeat.OnClientClick = WindowEdit.GetShowReference(string.Format("BespeakSeatSetting.aspx?roomId={0}", Request.QueryString["id"]), "指定预约座位"); } else { FineUI.PageContext.RegisterStartupScript(FineUI.ActiveWindow.GetHidePostBackReference()); FineUI.Alert.ShowInTop("阅览室设置获取错误!"); } } }
public override bool EditingEntity(TestingSystemEntities db) { int idAnswer = Convert.ToInt32(this.Tag); var editAnswer = db.Answer .Where(x => x.Id == idAnswer) .FirstOrDefault(); WindowEdit windowEdit = new WindowEdit(editAnswer); windowEdit.gridEditAnswer.Visibility = Visibility.Visible; windowEdit.textBoxAnswerText.Focus(); windowEdit.textBoxAnswerText.MaxLength = 300; // Заполняем поле ответа windowEdit.textBoxAnswerText.Text = editAnswer.ResponseText; // Ставим значение windowEdit.comboBoxAnswerValue.SelectedIndex = editAnswer.CorrectAnswer == true ? (int)Result.Correct : (int)Result.NotCorrect; bool?result = windowEdit.ShowDialog(); if (result == true) { this.SwitchingOtherAnswersToWrong(db, windowEdit.comboBoxAnswerValue.SelectedIndex, editAnswer.QuestionId); editAnswer.ResponseText = windowEdit.textBoxAnswerText.Text; editAnswer.CorrectAnswer = windowEdit.comboBoxAnswerValue.SelectedIndex == (int)Result.Correct ? true : false; db.SaveChanges(); this.EntityActivitySwitching(db, editAnswer); return(true); } return(false); }
public override bool AddEntity(TestingSystemEntities db) { WindowEdit windowAdd = new WindowEdit(this.QuestionId); windowAdd.gridEditAnswer.Visibility = Visibility.Visible; windowAdd.textBoxAnswerText.Focus(); windowAdd.buttonOk.Content = "Добавить"; windowAdd.Title = "Добавление ответа"; windowAdd.textBoxAnswerText.MaxLength = 300; // Ставим значение по умолчанию windowAdd.comboBoxAnswerValue.SelectedIndex = (int)Result.NotCorrect; bool?result = windowAdd.ShowDialog(); if (result == true) { this.SwitchingOtherAnswersToWrong(db, windowAdd.comboBoxAnswerValue.SelectedIndex, this.QuestionId); Answer addAnswer = new Answer(); addAnswer.ResponseText = windowAdd.AnswerName; addAnswer.CorrectAnswer = windowAdd .comboBoxAnswerValue.SelectedIndex == (int)Result.Correct ? true : false; addAnswer.QuestionId = this.QuestionId; db.Answer.Add(addAnswer); db.SaveChanges(); // Установка Active this.EntityActivitySwitching(db, addAnswer); return(true); } return(false); }
/// <summary> /// 行绑定事件 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void BlacklistGrid_OnPreRowDataBound(object sender, FineUI.GridPreRowEventArgs e) { LinkButtonField lbf = BlacklistGrid.FindColumn("Blacklistdelete") as LinkButtonField; LinkButtonField lbfshow = BlacklistGrid.FindColumn("BlacklistInfo") as LinkButtonField; DataRowView row = e.DataItem as DataRowView; string status = row[6].ToString(); lbfshow.OnClientClick = WindowEdit.GetShowReference("BlacklistInfo.aspx?id=" + row[0].ToString() + "", "黑名单详情"); if (status == "已过期") { lbf.Enabled = false; lbf.Icon = FineUI.Icon.None; lbf.ToolTip = "此记录已过期"; } else { lbf.Enabled = true; lbf.Icon = FineUI.Icon.Delete; lbf.ToolTip = "读者移出黑名单"; } }
protected void UsersGrid_OnPreRowDataBound(object sender, FineUI.GridPreRowEventArgs e) { LinkButtonField lbf = UsersGrid.FindColumn("userdelete") as LinkButtonField; LinkButtonField wf = UsersGrid.FindColumn("useredit") as LinkButtonField; DataRowView row = e.DataItem as DataRowView; string loginid = row[1].ToString(); string usertype = row[2].ToString(); if (loginid == "admin" || loginid == "user" || loginid == "reader") { lbf.Enabled = false; lbf.Icon = FineUI.Icon.Lock; lbf.ToolTip = "默认用户锁定操作"; wf.Enabled = false; wf.Icon = FineUI.Icon.Lock; wf.ToolTip = "默认用户锁定操作"; } else { lbf.Enabled = true; lbf.Icon = FineUI.Icon.Delete; lbf.ToolTip = "删除用户"; //if (usertype == "读者") //{ // wf.Enabled = false; // wf.Icon = FineUI.Icon.Lock; // wf.ToolTip = "读者锁定操作"; //} //else //{ wf.Enabled = true; wf.Icon = FineUI.Icon.Pencil; wf.ToolTip = "编辑用户"; wf.OnClientClick = WindowEdit.GetShowReference("UserEdit.aspx?flag=edit&id=" + loginid + "", "用户编辑"); //} } }
/// <summary> /// 行绑定事件 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void gridStudyLog_OnPreRowDataBound(object sender, FineUI.GridPreRowEventArgs e) { LinkButtonField lbf = gridStudyLog.FindColumn("StudyWatch") as LinkButtonField; DataRowView row = e.DataItem as DataRowView; string logStatus = row[8].ToString(); // string status = row["BsepeakState"].ToString(); if (logStatus == "等待审核") { lbf.Enabled = true; lbf.ToolTip = "审核申请"; lbf.Icon = FineUI.Icon.PageEdit; lbf.OnClientClick = WindowEdit.GetShowReference(string.Format("StudyBookingLogCheck.aspx?id={0}&flag=edit", row[0].ToString()), "审核申请"); } else { lbf.Enabled = true; lbf.ToolTip = "查看申请"; lbf.Icon = FineUI.Icon.Zoom; lbf.OnClientClick = WindowEdit.GetShowReference(string.Format("StudyBookingLogCheck.aspx?id={0}", row[0].ToString()), "查看申请"); } }
private void Edit_Click(object sender, RoutedEventArgs e) { WindowEdit edit = new WindowEdit(main1); edit.Show(); }