| | |
| | | using Gs.DevApp.Entity; |
| | | using DevExpress.XtraGrid.Views.Base.ViewInfo; |
| | | using Gs.DevApp.Entity; |
| | | using Gs.DevApp.ToolBox; |
| | | using Gs.DevApp.UserControl; |
| | | using Newtonsoft.Json; |
| | |
| | | { |
| | | Gs.DevApp.ToolBox.MsgHelper.ShowInformation("该窗体不支持查询,若想更新页面,请点击 刷新"); |
| | | } |
| | | |
| | | |
| | | /// <summary> |
| | | /// 刷新事件 |
| | | /// </summary> |
| | |
| | | gcMain.BindingContext = new BindingContext(); |
| | | gcMain.DataSource = dt; |
| | | gcMain.ForceInitialize(); |
| | | //gridColumnSex.GroupIndex = 0;//性别列为第一组 |
| | | //gridColumndateofbirth.GroupIndex = 1;//出生日期列为第二组 |
| | | gridView1.ExpandAllGroups();//展开所有组 |
| | | } |
| | | else |
| | |
| | | ToolBox.MsgHelper.Warning("提示:" + ex.Message); |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 上传按钮事件 |
| | | /// </summary> |
| | | /// <param name="sender"></param> |
| | | /// <param name="e"></param> |
| | | private void repositoryItemButtonEdit3_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e) |
| | | { |
| | | var rowhandle = gridView1.FocusedRowHandle; |
| | |
| | | Gs.DevApp.UserControl.ShowUp frm = new Gs.DevApp.UserControl.ShowUp(mxGuid); |
| | | frm.UpdateParent += (ss, ee) => |
| | | { |
| | | Gs.DevApp.ToolBox.MsgHelper.ShowInformation("上传成功!"); |
| | | getPageList(1); |
| | | Gs.DevApp.ToolBox.MsgHelper.ShowInformation("上传成功!"); |
| | | int rowHandle = gridView1.LocateByValue(1, gridView1.Columns["guid"], mxGuid); |
| | | gridView1.FocusedRowHandle = rowHandle; |
| | | }; |
| | | frm.ShowDialog(); |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 预览按钮事件 |
| | | /// </summary> |
| | | /// <param name="sender"></param> |
| | | /// <param name="e"></param> |
| | | private void repositoryItemButtonEdit1_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e) |
| | | { |
| | | var rowhandle = gridView1.FocusedRowHandle; |
| | |
| | | } |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 下载事件 |
| | | /// </summary> |
| | | /// <param name="sender"></param> |
| | | /// <param name="e"></param> |
| | | private void repositoryItemButtonEdit2_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e) |
| | | { |
| | | var rowhandle = gridView1.FocusedRowHandle; |