| | |
| | | using System.Windows.Forms; |
| | | using DevExpress.XtraBars; |
| | | using DevExpress.XtraEditors; |
| | | using DevExpress.XtraEditors.TextEditController; |
| | | using DevExpress.XtraGrid; |
| | | using DevExpress.XtraGrid.Views.Grid; |
| | | using DevExpress.XtraLayout; |
| | | using Gs.DevApp.DevFrm.QC.Models; |
| | | using Gs.DevApp.DevFrm.Rpt; |
| | | using Gs.DevApp.DevFrm.Sys; |
| | | using Gs.DevApp.Entity; |
| | |
| | | } |
| | | foreach (GridView gv in gvList) |
| | | { |
| | | |
| | | |
| | | JToken john = array.FirstOrDefault(t => t["controlId"].ToString().ToUpper() == gv.Name.ToString().Trim().ToUpper()); |
| | | if (john != null) |
| | | { |
| | |
| | | { |
| | | string controlId = john["controlId"].ToString(); |
| | | string controlXml = john["controlXml"].ToString(); |
| | | // string splitterPosition = john["splitterPosition"].ToString(); |
| | | byte[] byteArray = Encoding.UTF8.GetBytes(controlXml); |
| | | using (var stream = new MemoryStream(byteArray)) |
| | | { |
| | | spt.RestoreLayoutFromStream(stream); |
| | | } |
| | | spt.Horizontal = false; |
| | | spt.Panel1.AutoScroll = false; |
| | | spt.Panel2.AutoScroll = false; |
| | | spt.ShowSplitGlyph = DevExpress.Utils.DefaultBoolean.True; |
| | | // spt.SplitterPosition = int.Parse( splitterPosition); |
| | | } |
| | | } |
| | | } |