SVN r692
SVN-Revision: r692
This commit is contained in:
@@ -346,7 +346,30 @@ namespace Lskj.Control
|
||||
}
|
||||
this.ModuleGridObj.OnExportCallBack += new EventHandler(SetExportGridView);
|
||||
this.InitializeTab();
|
||||
|
||||
bool isLoadGridSplit = false;
|
||||
|
||||
if (sysModel.DynamicPrompt)
|
||||
{
|
||||
this.ModuleGridObj.VisibleSearchPanel = false;
|
||||
this.ModuleGridObj.scc_container.PanelVisibility = SplitPanelVisibility.Both;
|
||||
this.ModuleGridObj.InitlizeSpiltLocation();
|
||||
//代码的方式创建,直接拖的控件会提示线程问题
|
||||
this.ModuleGridObj.TipsobjPanel.Controls.Clear();
|
||||
this.ModuleGridObj.PromptBox = new LabelRichEdit();
|
||||
this.ModuleGridObj.PromptBox.Dock = DockStyle.Fill;
|
||||
this.ModuleGridObj.PromptBox.Padding = new Padding(3, 5, 0, 8);
|
||||
this.ModuleGridObj.PromptBox.FontSize = this.SysModel.PromptFontSize;//ForceSize;
|
||||
this.ModuleGridObj.PromptBox.LabelText = "";
|
||||
if (!string.IsNullOrWhiteSpace(this.SysModel.PromptForceColor))
|
||||
{
|
||||
this.ModuleGridObj.PromptBox.TextEdit.ForeColor = ColorTranslator.FromHtml(this.SysModel.PromptForceColor);
|
||||
}
|
||||
// 重点:针对 TextEdit 绑定
|
||||
this.ModuleGridObj.PromptBox.TextEdit.KeyDown += PromptBox_KeyDown;
|
||||
this.ModuleGridObj.PromptBox.TextEdit.ReadOnly = true;
|
||||
if (string.IsNullOrWhiteSpace(this.ModuleGridObj.PromptBox.EditText)) this.ModuleGridObj.PromptBox.EditText = "请点击左侧查看备注信息!";
|
||||
this.ModuleGridObj.TipsobjPanel.Controls.Add(this.ModuleGridObj.PromptBox);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -361,6 +384,20 @@ namespace Lskj.Control
|
||||
}
|
||||
|
||||
}
|
||||
/// <summary>
|
||||
/// 当前模块直接保存操作
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
private void PromptBox_KeyDown(object sender, KeyEventArgs e)
|
||||
{
|
||||
if (e.Modifiers.CompareTo(Keys.Control) == 0 && e.KeyCode == Keys.S)
|
||||
{
|
||||
e.Handled = true; // 阻止控件继续处理
|
||||
e.SuppressKeyPress = true; // 阻止dev功能
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
@@ -597,18 +634,28 @@ namespace Lskj.Control
|
||||
}
|
||||
else
|
||||
{
|
||||
// bool isLoadGridSplit = false;
|
||||
// 左侧gridView时,需要替换sql参数(包含查询条件、表格选中行).
|
||||
if (this.gridLeft.Visible)
|
||||
{
|
||||
DataRow rowitem = this.gridLeft.GridView.GetFocusedDataRow();
|
||||
sqlValue = this._leftGridSearchObj != null ? this._leftGridSearchObj.ReplaceParentControlValue(sqlValue) : sqlValue;
|
||||
sqlValue = ReplaceHelper.ReplaceRowParam(this.gridLeft.GridView.GetFocusedDataRow(), sqlValue);
|
||||
sqlValue = ReplaceHelper.ReplaceRowParam(rowitem, sqlValue);
|
||||
//isLoadGridSplit = rowitem != null && rowitem.Table.Columns.Contains("ReminderInformation");
|
||||
}
|
||||
if (this.treeGridLeft.Visible)
|
||||
{
|
||||
DataRow rowitem = this.treeGridLeft.GetViewFocusedDataRow();
|
||||
sqlValue = this._leftGridSearchObj != null ? this._leftGridSearchObj.ReplaceParentControlValue(sqlValue) : sqlValue;
|
||||
sqlValue = ReplaceHelper.ReplaceRowParam(this.treeGridLeft.GetViewFocusedDataRow(), sqlValue);
|
||||
//isLoadGridSplit = rowitem != null && rowitem.Table.Columns.Contains("ReminderInformation");
|
||||
}
|
||||
|
||||
//if (isLoadGridSplit)
|
||||
//{
|
||||
// this.ModuleGridObj.VisibleSearchPanel = false;
|
||||
// this.ModuleGridObj.scc_container.PanelVisibility = SplitPanelVisibility.Both;
|
||||
// this.ModuleGridObj.InitlizeSpiltLocation();
|
||||
//}
|
||||
this.ModuleGridObj.SearchObj.SearchGrid(sqlValue);
|
||||
if (!this.IsDragDetail)
|
||||
this.ModuleGridDetailObj.SetDetailGridDataSource();
|
||||
@@ -1026,7 +1073,7 @@ namespace Lskj.Control
|
||||
DataRow dataRow = this.gridLeft.GetViewFocusedDataRow();
|
||||
if (dataRow != null && dataRow.Table.Columns.Contains("ReminderInformation"))
|
||||
{
|
||||
this.ModuleGridObj.SetDisplayColumns(dataRow["ReminderInformation"] + "", this.SysModel.PromptFontSize, this.SysModel.PromptForceColor);
|
||||
this.ModuleGridObj.SetDisplayColumns(dataRow["ReminderInformation"] + "");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1155,7 +1202,7 @@ namespace Lskj.Control
|
||||
DataRow dataRow = this.treeGridLeft.GetViewFocusedDataRow();
|
||||
if (dataRow != null && dataRow.Table.Columns.Contains("ReminderInformation"))
|
||||
{
|
||||
this.ModuleGridObj.SetDisplayColumns(dataRow["ReminderInformation"] + "", this.SysModel.PromptFontSize, this.SysModel.PromptForceColor);
|
||||
this.ModuleGridObj.SetDisplayColumns(dataRow["ReminderInformation"] + "");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1484,7 +1531,7 @@ namespace Lskj.Control
|
||||
DataRow[] dataRows = this.treeLeft.DataSource.Select(this.treeLeft.TreeNodeKeyField + "='" + e.Node.Name + "'");
|
||||
if (dataRows != null && dataRows[0].Table.Columns.Contains("ReminderInformation"))
|
||||
{
|
||||
this.ModuleGridObj.SetDisplayColumns(dataRows[0]["ReminderInformation"] + "", this.SysModel.PromptFontSize, this.SysModel.PromptForceColor);
|
||||
this.ModuleGridObj.SetDisplayColumns(dataRows[0]["ReminderInformation"] + "");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+271
-246
@@ -28,96 +28,64 @@
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.components = new System.ComponentModel.Container();
|
||||
this.btnSave = new DevExpress.XtraEditors.SimpleButton();
|
||||
this.btnDel = new DevExpress.XtraEditors.SimpleButton();
|
||||
this.btnAdd = new DevExpress.XtraEditors.SimpleButton();
|
||||
this.pm_print = new DevExpress.XtraBars.PopupMenu(this.components);
|
||||
this.barManager1 = new DevExpress.XtraBars.BarManager(this.components);
|
||||
this.pm_print = new DevExpress.XtraBars.PopupMenu();
|
||||
this.barManager1 = new DevExpress.XtraBars.BarManager();
|
||||
this.barDockControlTop = new DevExpress.XtraBars.BarDockControl();
|
||||
this.barDockControlBottom = new DevExpress.XtraBars.BarDockControl();
|
||||
this.barDockControlLeft = new DevExpress.XtraBars.BarDockControl();
|
||||
this.barDockControlRight = new DevExpress.XtraBars.BarDockControl();
|
||||
this.pm_oper = new DevExpress.XtraBars.PopupMenu(this.components);
|
||||
this.pm_oper = new DevExpress.XtraBars.PopupMenu();
|
||||
this.pm_common = new DevExpress.XtraBars.PopupMenu();
|
||||
this.grouptip = new System.Windows.Forms.GroupBox();
|
||||
this.TipsPanel = new System.Windows.Forms.Panel();
|
||||
this.scc_container = new DevExpress.XtraEditors.SplitContainerControl();
|
||||
this.panelControl1 = new DevExpress.XtraEditors.PanelControl();
|
||||
this.gcMain = new Lskj.Control.GridControlEx();
|
||||
this.pl_buttom = new DevExpress.XtraEditors.PanelControl();
|
||||
this.dpbTools = new DevExpress.XtraEditors.DropDownButton();
|
||||
this.pm_common = new DevExpress.XtraBars.PopupMenu(this.components);
|
||||
this.btnSave = new DevExpress.XtraEditors.SimpleButton();
|
||||
this.btnUpdate = new DevExpress.XtraEditors.SimpleButton();
|
||||
this.btnPrint = new DevExpress.XtraEditors.SimpleButton();
|
||||
this.btnExport = new DevExpress.XtraEditors.SimpleButton();
|
||||
this.btnImport = new DevExpress.XtraEditors.SimpleButton();
|
||||
this.btnAttach = new DevExpress.XtraEditors.SimpleButton();
|
||||
this.pl_top = new DevExpress.XtraEditors.PanelControl();
|
||||
this.TipsPanel = new System.Windows.Forms.Panel();
|
||||
this.pl_top_right = new DevExpress.XtraEditors.PanelControl();
|
||||
this.btnRefresh = new DevExpress.XtraEditors.SimpleButton();
|
||||
this.btnHelp = new DevExpress.XtraEditors.SimpleButton();
|
||||
this.ddbPrint = new DevExpress.XtraEditors.DropDownButton();
|
||||
this.ddbOper = new DevExpress.XtraEditors.DropDownButton();
|
||||
this.btnDel = new DevExpress.XtraEditors.SimpleButton();
|
||||
this.btnAdd = new DevExpress.XtraEditors.SimpleButton();
|
||||
this.pl_top_RightMenus = new DevExpress.XtraEditors.PanelControl();
|
||||
this.pl_top_search = new DevExpress.XtraEditors.PanelControl();
|
||||
this.pl_top_fix_search = new DevExpress.XtraEditors.PanelControl();
|
||||
this.cbField = new System.Windows.Forms.ComboBox();
|
||||
this.btnFixSearch = new DevExpress.XtraEditors.SimpleButton();
|
||||
this.txtFixKey = new System.Windows.Forms.TextBox();
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
this.pl_top_RightMenus = new DevExpress.XtraEditors.PanelControl();
|
||||
this.panelControl1 = new DevExpress.XtraEditors.PanelControl();
|
||||
this.gcMain = new Lskj.Control.GridControlEx();
|
||||
this.txtFixKey = new System.Windows.Forms.TextBox();
|
||||
this.btnFixSearch = new DevExpress.XtraEditors.SimpleButton();
|
||||
this.cbField = new System.Windows.Forms.ComboBox();
|
||||
this.pl_top_right = new DevExpress.XtraEditors.PanelControl();
|
||||
this.ddbOper = new DevExpress.XtraEditors.DropDownButton();
|
||||
this.ddbPrint = new DevExpress.XtraEditors.DropDownButton();
|
||||
this.btnHelp = new DevExpress.XtraEditors.SimpleButton();
|
||||
this.btnAttach = new DevExpress.XtraEditors.SimpleButton();
|
||||
this.btnRefresh = new DevExpress.XtraEditors.SimpleButton();
|
||||
this.pl_top = new DevExpress.XtraEditors.PanelControl();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pm_print)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.barManager1)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pm_oper)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pm_common)).BeginInit();
|
||||
this.grouptip.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.scc_container)).BeginInit();
|
||||
this.scc_container.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.panelControl1)).BeginInit();
|
||||
this.panelControl1.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pl_buttom)).BeginInit();
|
||||
this.pl_buttom.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pm_common)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pl_top)).BeginInit();
|
||||
this.pl_top.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pl_top_right)).BeginInit();
|
||||
this.pl_top_right.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pl_top_RightMenus)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pl_top_search)).BeginInit();
|
||||
this.pl_top_search.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pl_top_fix_search)).BeginInit();
|
||||
this.pl_top_fix_search.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pl_top_RightMenus)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.panelControl1)).BeginInit();
|
||||
this.panelControl1.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pl_top_right)).BeginInit();
|
||||
this.pl_top_right.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pl_top)).BeginInit();
|
||||
this.pl_top.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// btnSave
|
||||
//
|
||||
this.btnSave.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.btnSave.Appearance.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.btnSave.Appearance.Options.UseFont = true;
|
||||
this.btnSave.Location = new System.Drawing.Point(533, 6);
|
||||
this.btnSave.Name = "btnSave";
|
||||
this.btnSave.Size = new System.Drawing.Size(72, 26);
|
||||
this.btnSave.TabIndex = 37;
|
||||
this.btnSave.Text = "保存(&S)";
|
||||
this.btnSave.Click += new System.EventHandler(this.OnSaveClick);
|
||||
//
|
||||
// btnDel
|
||||
//
|
||||
this.btnDel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.btnDel.Appearance.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.btnDel.Appearance.Options.UseFont = true;
|
||||
this.btnDel.Location = new System.Drawing.Point(377, 6);
|
||||
this.btnDel.Name = "btnDel";
|
||||
this.btnDel.Size = new System.Drawing.Size(72, 26);
|
||||
this.btnDel.TabIndex = 36;
|
||||
this.btnDel.Text = "删除(&D)";
|
||||
this.btnDel.Click += new System.EventHandler(this.OnDelClick);
|
||||
//
|
||||
// btnAdd
|
||||
//
|
||||
this.btnAdd.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.btnAdd.Appearance.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.btnAdd.Appearance.Options.UseFont = true;
|
||||
this.btnAdd.Location = new System.Drawing.Point(299, 6);
|
||||
this.btnAdd.Name = "btnAdd";
|
||||
this.btnAdd.Size = new System.Drawing.Size(72, 26);
|
||||
this.btnAdd.TabIndex = 35;
|
||||
this.btnAdd.Text = "增加(&A)";
|
||||
this.btnAdd.Click += new System.EventHandler(this.OnAddClick);
|
||||
//
|
||||
// pm_print
|
||||
//
|
||||
this.pm_print.Manager = this.barManager1;
|
||||
@@ -137,34 +105,101 @@
|
||||
this.barDockControlTop.CausesValidation = false;
|
||||
this.barDockControlTop.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.barDockControlTop.Location = new System.Drawing.Point(0, 0);
|
||||
this.barDockControlTop.Size = new System.Drawing.Size(843, 0);
|
||||
this.barDockControlTop.Size = new System.Drawing.Size(1778, 0);
|
||||
//
|
||||
// barDockControlBottom
|
||||
//
|
||||
this.barDockControlBottom.CausesValidation = false;
|
||||
this.barDockControlBottom.Dock = System.Windows.Forms.DockStyle.Bottom;
|
||||
this.barDockControlBottom.Location = new System.Drawing.Point(0, 460);
|
||||
this.barDockControlBottom.Size = new System.Drawing.Size(843, 0);
|
||||
this.barDockControlBottom.Location = new System.Drawing.Point(0, 695);
|
||||
this.barDockControlBottom.Size = new System.Drawing.Size(1778, 0);
|
||||
//
|
||||
// barDockControlLeft
|
||||
//
|
||||
this.barDockControlLeft.CausesValidation = false;
|
||||
this.barDockControlLeft.Dock = System.Windows.Forms.DockStyle.Left;
|
||||
this.barDockControlLeft.Location = new System.Drawing.Point(0, 0);
|
||||
this.barDockControlLeft.Size = new System.Drawing.Size(0, 460);
|
||||
this.barDockControlLeft.Size = new System.Drawing.Size(0, 695);
|
||||
//
|
||||
// barDockControlRight
|
||||
//
|
||||
this.barDockControlRight.CausesValidation = false;
|
||||
this.barDockControlRight.Dock = System.Windows.Forms.DockStyle.Right;
|
||||
this.barDockControlRight.Location = new System.Drawing.Point(843, 0);
|
||||
this.barDockControlRight.Size = new System.Drawing.Size(0, 460);
|
||||
this.barDockControlRight.Location = new System.Drawing.Point(1778, 0);
|
||||
this.barDockControlRight.Size = new System.Drawing.Size(0, 695);
|
||||
//
|
||||
// pm_oper
|
||||
//
|
||||
this.pm_oper.Manager = this.barManager1;
|
||||
this.pm_oper.Name = "pm_oper";
|
||||
//
|
||||
// pm_common
|
||||
//
|
||||
this.pm_common.Manager = this.barManager1;
|
||||
this.pm_common.Name = "pm_common";
|
||||
//
|
||||
// grouptip
|
||||
//
|
||||
this.grouptip.Controls.Add(this.TipsPanel);
|
||||
this.grouptip.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.grouptip.Location = new System.Drawing.Point(0, 0);
|
||||
this.grouptip.Name = "grouptip";
|
||||
this.grouptip.Size = new System.Drawing.Size(0, 0);
|
||||
this.grouptip.TabIndex = 12;
|
||||
this.grouptip.TabStop = false;
|
||||
this.grouptip.Text = "备注提示:";
|
||||
//
|
||||
// TipsPanel
|
||||
//
|
||||
this.TipsPanel.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.TipsPanel.Location = new System.Drawing.Point(3, 25);
|
||||
this.TipsPanel.Name = "TipsPanel";
|
||||
this.TipsPanel.Size = new System.Drawing.Size(0, 0);
|
||||
this.TipsPanel.TabIndex = 12;
|
||||
this.TipsPanel.Visible = true;
|
||||
//
|
||||
// scc_container
|
||||
//
|
||||
this.scc_container.CollapsePanel = DevExpress.XtraEditors.SplitCollapsePanel.Panel2;
|
||||
this.scc_container.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.scc_container.Horizontal = false;
|
||||
this.scc_container.Location = new System.Drawing.Point(0, 0);
|
||||
this.scc_container.Name = "scc_container";
|
||||
this.scc_container.Panel1.AutoScroll = true;
|
||||
this.scc_container.Panel1.Controls.Add(this.grouptip);
|
||||
this.scc_container.Panel1.Text = "Panel1";
|
||||
this.scc_container.Panel2.Controls.Add(this.panelControl1);
|
||||
this.scc_container.Panel2.Controls.Add(this.pl_buttom);
|
||||
this.scc_container.Panel2.Controls.Add(this.pl_top);
|
||||
this.scc_container.Panel2.Controls.Add(this.pl_top_RightMenus);
|
||||
this.scc_container.Panel2.Text = "Panel2";
|
||||
this.scc_container.PanelVisibility = DevExpress.XtraEditors.SplitPanelVisibility.Panel2;
|
||||
this.scc_container.Size = new System.Drawing.Size(1778, 695);
|
||||
this.scc_container.SplitterPosition = 97;
|
||||
this.scc_container.TabIndex = 1;
|
||||
this.scc_container.SplitterMoved += new System.EventHandler(this.OnSplitterMoved);
|
||||
//
|
||||
// panelControl1
|
||||
//
|
||||
this.panelControl1.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
|
||||
this.panelControl1.Controls.Add(this.gcMain);
|
||||
this.panelControl1.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.panelControl1.Location = new System.Drawing.Point(0, 69);
|
||||
this.panelControl1.Name = "panelControl1";
|
||||
this.panelControl1.Size = new System.Drawing.Size(1778, 590);
|
||||
this.panelControl1.TabIndex = 23;
|
||||
//
|
||||
// gcMain
|
||||
//
|
||||
this.gcMain.AdapterObj = null;
|
||||
this.gcMain.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.gcMain.Location = new System.Drawing.Point(0, 0);
|
||||
this.gcMain.Margin = new System.Windows.Forms.Padding(5, 6, 5, 6);
|
||||
this.gcMain.Name = "gcMain";
|
||||
this.gcMain.SiftEnumObj = Lskj.Control.GridControlEx.HeaderSiftEnum.Sum;
|
||||
this.gcMain.Size = new System.Drawing.Size(1778, 590);
|
||||
this.gcMain.TabIndex = 0;
|
||||
//
|
||||
// pl_buttom
|
||||
//
|
||||
this.pl_buttom.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
|
||||
@@ -177,10 +212,10 @@
|
||||
this.pl_buttom.Controls.Add(this.btnDel);
|
||||
this.pl_buttom.Controls.Add(this.btnAdd);
|
||||
this.pl_buttom.Dock = System.Windows.Forms.DockStyle.Bottom;
|
||||
this.pl_buttom.Location = new System.Drawing.Point(0, 424);
|
||||
this.pl_buttom.Location = new System.Drawing.Point(0, 659);
|
||||
this.pl_buttom.Name = "pl_buttom";
|
||||
this.pl_buttom.Size = new System.Drawing.Size(843, 36);
|
||||
this.pl_buttom.TabIndex = 8;
|
||||
this.pl_buttom.Size = new System.Drawing.Size(1778, 36);
|
||||
this.pl_buttom.TabIndex = 22;
|
||||
//
|
||||
// dpbTools
|
||||
//
|
||||
@@ -189,164 +224,102 @@
|
||||
this.dpbTools.Appearance.Options.UseFont = true;
|
||||
this.dpbTools.DropDownArrowStyle = DevExpress.XtraEditors.DropDownArrowStyle.Show;
|
||||
this.dpbTools.DropDownControl = this.pm_common;
|
||||
this.dpbTools.Location = new System.Drawing.Point(219, 6);
|
||||
this.dpbTools.Location = new System.Drawing.Point(1154, 6);
|
||||
this.dpbTools.Name = "dpbTools";
|
||||
this.dpbTools.Size = new System.Drawing.Size(72, 26);
|
||||
this.dpbTools.TabIndex = 39;
|
||||
this.dpbTools.Text = "常用工具";
|
||||
//
|
||||
// pm_common
|
||||
// btnSave
|
||||
//
|
||||
this.pm_common.Manager = this.barManager1;
|
||||
this.pm_common.Name = "pm_common";
|
||||
this.btnSave.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.btnSave.Appearance.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.btnSave.Appearance.Options.UseFont = true;
|
||||
this.btnSave.Location = new System.Drawing.Point(1468, 6);
|
||||
this.btnSave.Name = "btnSave";
|
||||
this.btnSave.Size = new System.Drawing.Size(72, 26);
|
||||
this.btnSave.TabIndex = 37;
|
||||
this.btnSave.Text = "保存(&S)";
|
||||
//
|
||||
// btnUpdate
|
||||
//
|
||||
this.btnUpdate.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.btnUpdate.Appearance.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.btnUpdate.Appearance.Options.UseFont = true;
|
||||
this.btnUpdate.Location = new System.Drawing.Point(455, 6);
|
||||
this.btnUpdate.Location = new System.Drawing.Point(1390, 6);
|
||||
this.btnUpdate.Name = "btnUpdate";
|
||||
this.btnUpdate.Size = new System.Drawing.Size(72, 26);
|
||||
this.btnUpdate.TabIndex = 38;
|
||||
this.btnUpdate.Text = "修改(&U)";
|
||||
this.btnUpdate.Visible = false;
|
||||
this.btnUpdate.Click += new System.EventHandler(this.OnUpdateClick);
|
||||
//
|
||||
// btnPrint
|
||||
//
|
||||
this.btnPrint.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.btnPrint.Appearance.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.btnPrint.Appearance.Options.UseFont = true;
|
||||
this.btnPrint.Location = new System.Drawing.Point(767, 6);
|
||||
this.btnPrint.Location = new System.Drawing.Point(1702, 6);
|
||||
this.btnPrint.Name = "btnPrint";
|
||||
this.btnPrint.Size = new System.Drawing.Size(72, 26);
|
||||
this.btnPrint.TabIndex = 37;
|
||||
this.btnPrint.Text = "打印(&P)";
|
||||
this.btnPrint.Visible = false;
|
||||
this.btnPrint.Click += new System.EventHandler(this.OnPrintClick);
|
||||
//
|
||||
// btnExport
|
||||
//
|
||||
this.btnExport.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.btnExport.Appearance.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.btnExport.Appearance.Options.UseFont = true;
|
||||
this.btnExport.Location = new System.Drawing.Point(689, 6);
|
||||
this.btnExport.Location = new System.Drawing.Point(1624, 6);
|
||||
this.btnExport.Name = "btnExport";
|
||||
this.btnExport.Size = new System.Drawing.Size(72, 26);
|
||||
this.btnExport.TabIndex = 37;
|
||||
this.btnExport.Text = "导出(&E)";
|
||||
this.btnExport.Visible = false;
|
||||
this.btnExport.Click += new System.EventHandler(this.OnExportClick);
|
||||
//
|
||||
// btnImport
|
||||
//
|
||||
this.btnImport.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.btnImport.Appearance.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.btnImport.Appearance.Options.UseFont = true;
|
||||
this.btnImport.Location = new System.Drawing.Point(611, 6);
|
||||
this.btnImport.Location = new System.Drawing.Point(1546, 6);
|
||||
this.btnImport.Name = "btnImport";
|
||||
this.btnImport.Size = new System.Drawing.Size(72, 26);
|
||||
this.btnImport.TabIndex = 37;
|
||||
this.btnImport.Text = "导入(&I)";
|
||||
this.btnImport.Visible = false;
|
||||
this.btnImport.Click += new System.EventHandler(this.OnImportClick);
|
||||
//
|
||||
// btnAttach
|
||||
// btnDel
|
||||
//
|
||||
this.btnAttach.Appearance.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.btnAttach.Appearance.Options.UseFont = true;
|
||||
this.btnAttach.Location = new System.Drawing.Point(9, 4);
|
||||
this.btnAttach.Name = "btnAttach";
|
||||
this.btnAttach.Size = new System.Drawing.Size(75, 24);
|
||||
this.btnAttach.TabIndex = 40;
|
||||
this.btnAttach.TabStop = false;
|
||||
this.btnAttach.Text = "附件管理";
|
||||
this.btnAttach.Visible = false;
|
||||
this.btnAttach.Click += new System.EventHandler(this.OnBtnAttachClick);
|
||||
this.btnDel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.btnDel.Appearance.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.btnDel.Appearance.Options.UseFont = true;
|
||||
this.btnDel.Location = new System.Drawing.Point(1312, 6);
|
||||
this.btnDel.Name = "btnDel";
|
||||
this.btnDel.Size = new System.Drawing.Size(72, 26);
|
||||
this.btnDel.TabIndex = 36;
|
||||
this.btnDel.Text = "删除(&D)";
|
||||
//
|
||||
// pl_top
|
||||
// btnAdd
|
||||
//
|
||||
this.pl_top.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
|
||||
this.pl_top.Controls.Add(this.TipsPanel);
|
||||
this.pl_top.Controls.Add(this.pl_top_right);
|
||||
this.pl_top.Controls.Add(this.pl_top_search);
|
||||
this.pl_top.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.pl_top.Location = new System.Drawing.Point(0, 35);
|
||||
this.pl_top.Name = "pl_top";
|
||||
this.pl_top.Size = new System.Drawing.Size(843, 34);
|
||||
this.pl_top.TabIndex = 6;
|
||||
this.btnAdd.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.btnAdd.Appearance.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.btnAdd.Appearance.Options.UseFont = true;
|
||||
this.btnAdd.Location = new System.Drawing.Point(1234, 6);
|
||||
this.btnAdd.Name = "btnAdd";
|
||||
this.btnAdd.Size = new System.Drawing.Size(72, 26);
|
||||
this.btnAdd.TabIndex = 35;
|
||||
this.btnAdd.Text = "增加(&A)";
|
||||
//
|
||||
// TipsPanel
|
||||
// pl_top_RightMenus
|
||||
//
|
||||
this.TipsPanel.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.TipsPanel.Location = new System.Drawing.Point(0, 0);
|
||||
this.TipsPanel.Name = "TipsPanel";
|
||||
this.TipsPanel.Size = new System.Drawing.Size(441, 34);
|
||||
this.TipsPanel.TabIndex = 10;
|
||||
this.TipsPanel.Visible = false;
|
||||
//
|
||||
// pl_top_right
|
||||
//
|
||||
this.pl_top_right.Appearance.BackColor = System.Drawing.Color.Transparent;
|
||||
this.pl_top_right.Appearance.Options.UseBackColor = true;
|
||||
this.pl_top_right.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
|
||||
this.pl_top_right.Controls.Add(this.btnRefresh);
|
||||
this.pl_top_right.Controls.Add(this.btnAttach);
|
||||
this.pl_top_right.Controls.Add(this.btnHelp);
|
||||
this.pl_top_right.Controls.Add(this.ddbPrint);
|
||||
this.pl_top_right.Controls.Add(this.ddbOper);
|
||||
this.pl_top_right.Dock = System.Windows.Forms.DockStyle.Right;
|
||||
this.pl_top_right.Location = new System.Drawing.Point(441, 0);
|
||||
this.pl_top_right.Name = "pl_top_right";
|
||||
this.pl_top_right.Size = new System.Drawing.Size(402, 34);
|
||||
this.pl_top_right.TabIndex = 7;
|
||||
//
|
||||
// btnRefresh
|
||||
//
|
||||
this.btnRefresh.Appearance.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.btnRefresh.Appearance.Options.UseFont = true;
|
||||
this.btnRefresh.Location = new System.Drawing.Point(319, 4);
|
||||
this.btnRefresh.Name = "btnRefresh";
|
||||
this.btnRefresh.Size = new System.Drawing.Size(75, 24);
|
||||
this.btnRefresh.TabIndex = 41;
|
||||
this.btnRefresh.Text = "刷新列数据";
|
||||
this.btnRefresh.Click += new System.EventHandler(this.btnRefresh_Click);
|
||||
//
|
||||
// btnHelp
|
||||
//
|
||||
this.btnHelp.Appearance.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.btnHelp.Appearance.Options.UseFont = true;
|
||||
this.btnHelp.Location = new System.Drawing.Point(250, 4);
|
||||
this.btnHelp.Name = "btnHelp";
|
||||
this.btnHelp.Size = new System.Drawing.Size(63, 24);
|
||||
this.btnHelp.TabIndex = 34;
|
||||
this.btnHelp.Text = "帮助文档";
|
||||
this.btnHelp.Click += new System.EventHandler(this.OnBtnHelpClick);
|
||||
//
|
||||
// ddbPrint
|
||||
//
|
||||
this.ddbPrint.Appearance.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.ddbPrint.Appearance.Options.UseFont = true;
|
||||
this.ddbPrint.DropDownArrowStyle = DevExpress.XtraEditors.DropDownArrowStyle.Show;
|
||||
this.ddbPrint.DropDownControl = this.pm_print;
|
||||
this.ddbPrint.Location = new System.Drawing.Point(169, 4);
|
||||
this.ddbPrint.Name = "ddbPrint";
|
||||
this.ddbPrint.Size = new System.Drawing.Size(75, 24);
|
||||
this.ddbPrint.TabIndex = 12;
|
||||
this.ddbPrint.Text = "常用打印";
|
||||
//
|
||||
// ddbOper
|
||||
//
|
||||
this.ddbOper.Appearance.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.ddbOper.Appearance.Options.UseFont = true;
|
||||
this.ddbOper.DropDownArrowStyle = DevExpress.XtraEditors.DropDownArrowStyle.Show;
|
||||
this.ddbOper.DropDownControl = this.pm_oper;
|
||||
this.ddbOper.Location = new System.Drawing.Point(88, 4);
|
||||
this.ddbOper.Name = "ddbOper";
|
||||
this.ddbOper.Size = new System.Drawing.Size(75, 24);
|
||||
this.ddbOper.TabIndex = 13;
|
||||
this.ddbOper.Text = "常用操作";
|
||||
this.pl_top_RightMenus.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
|
||||
this.pl_top_RightMenus.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.pl_top_RightMenus.Location = new System.Drawing.Point(0, 0);
|
||||
this.pl_top_RightMenus.Name = "pl_top_RightMenus";
|
||||
this.pl_top_RightMenus.Size = new System.Drawing.Size(1778, 35);
|
||||
this.pl_top_RightMenus.TabIndex = 20;
|
||||
this.pl_top_RightMenus.Visible = false;
|
||||
//
|
||||
// pl_top_search
|
||||
//
|
||||
@@ -357,7 +330,7 @@
|
||||
this.pl_top_search.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.pl_top_search.Location = new System.Drawing.Point(0, 0);
|
||||
this.pl_top_search.Name = "pl_top_search";
|
||||
this.pl_top_search.Size = new System.Drawing.Size(843, 34);
|
||||
this.pl_top_search.Size = new System.Drawing.Size(1778, 34);
|
||||
this.pl_top_search.TabIndex = 8;
|
||||
//
|
||||
// pl_top_fix_search
|
||||
@@ -373,15 +346,21 @@
|
||||
this.pl_top_fix_search.Size = new System.Drawing.Size(392, 34);
|
||||
this.pl_top_fix_search.TabIndex = 9;
|
||||
//
|
||||
// cbField
|
||||
// label1
|
||||
//
|
||||
this.cbField.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||
this.cbField.FormattingEnabled = true;
|
||||
this.cbField.Location = new System.Drawing.Point(38, 6);
|
||||
this.cbField.Name = "cbField";
|
||||
this.cbField.Size = new System.Drawing.Size(107, 22);
|
||||
this.cbField.TabIndex = 1;
|
||||
this.cbField.Tag = "";
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.Location = new System.Drawing.Point(7, 10);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new System.Drawing.Size(46, 22);
|
||||
this.label1.TabIndex = 0;
|
||||
this.label1.Text = "查询";
|
||||
//
|
||||
// txtFixKey
|
||||
//
|
||||
this.txtFixKey.Location = new System.Drawing.Point(149, 6);
|
||||
this.txtFixKey.Name = "txtFixKey";
|
||||
this.txtFixKey.Size = new System.Drawing.Size(154, 29);
|
||||
this.txtFixKey.TabIndex = 32;
|
||||
//
|
||||
// btnFixSearch
|
||||
//
|
||||
@@ -392,97 +371,138 @@
|
||||
this.btnFixSearch.Size = new System.Drawing.Size(63, 24);
|
||||
this.btnFixSearch.TabIndex = 33;
|
||||
this.btnFixSearch.Text = "查询(&Q)";
|
||||
this.btnFixSearch.Click += new System.EventHandler(this.OnFixSearchClick);
|
||||
//
|
||||
// txtFixKey
|
||||
// cbField
|
||||
//
|
||||
this.txtFixKey.Location = new System.Drawing.Point(149, 6);
|
||||
this.txtFixKey.Name = "txtFixKey";
|
||||
this.txtFixKey.Size = new System.Drawing.Size(154, 22);
|
||||
this.txtFixKey.TabIndex = 32;
|
||||
this.cbField.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||
this.cbField.FormattingEnabled = true;
|
||||
this.cbField.Location = new System.Drawing.Point(38, 6);
|
||||
this.cbField.Name = "cbField";
|
||||
this.cbField.Size = new System.Drawing.Size(107, 30);
|
||||
this.cbField.TabIndex = 1;
|
||||
this.cbField.Tag = "";
|
||||
//
|
||||
// label1
|
||||
// pl_top_right
|
||||
//
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.Location = new System.Drawing.Point(7, 10);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new System.Drawing.Size(31, 14);
|
||||
this.label1.TabIndex = 0;
|
||||
this.label1.Text = "查询";
|
||||
this.pl_top_right.Appearance.BackColor = System.Drawing.Color.Transparent;
|
||||
this.pl_top_right.Appearance.Options.UseBackColor = true;
|
||||
this.pl_top_right.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
|
||||
this.pl_top_right.Controls.Add(this.btnRefresh);
|
||||
this.pl_top_right.Controls.Add(this.btnAttach);
|
||||
this.pl_top_right.Controls.Add(this.btnHelp);
|
||||
this.pl_top_right.Controls.Add(this.ddbPrint);
|
||||
this.pl_top_right.Controls.Add(this.ddbOper);
|
||||
this.pl_top_right.Dock = System.Windows.Forms.DockStyle.Right;
|
||||
this.pl_top_right.Location = new System.Drawing.Point(1376, 0);
|
||||
this.pl_top_right.Name = "pl_top_right";
|
||||
this.pl_top_right.Size = new System.Drawing.Size(402, 34);
|
||||
this.pl_top_right.TabIndex = 7;
|
||||
//
|
||||
// pl_top_RightMenus
|
||||
// ddbOper
|
||||
//
|
||||
this.pl_top_RightMenus.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
|
||||
this.pl_top_RightMenus.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.pl_top_RightMenus.Location = new System.Drawing.Point(0, 0);
|
||||
this.pl_top_RightMenus.Name = "pl_top_RightMenus";
|
||||
this.pl_top_RightMenus.Size = new System.Drawing.Size(843, 35);
|
||||
this.pl_top_RightMenus.TabIndex = 19;
|
||||
this.pl_top_RightMenus.Visible = false;
|
||||
this.ddbOper.Appearance.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.ddbOper.Appearance.Options.UseFont = true;
|
||||
this.ddbOper.DropDownArrowStyle = DevExpress.XtraEditors.DropDownArrowStyle.Show;
|
||||
this.ddbOper.DropDownControl = this.pm_oper;
|
||||
this.ddbOper.Location = new System.Drawing.Point(88, 4);
|
||||
this.ddbOper.Name = "ddbOper";
|
||||
this.ddbOper.Size = new System.Drawing.Size(75, 24);
|
||||
this.ddbOper.TabIndex = 13;
|
||||
this.ddbOper.Text = "常用操作";
|
||||
//
|
||||
// panelControl1
|
||||
// ddbPrint
|
||||
//
|
||||
this.panelControl1.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
|
||||
this.panelControl1.Controls.Add(this.gcMain);
|
||||
this.panelControl1.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.panelControl1.Location = new System.Drawing.Point(0, 69);
|
||||
this.panelControl1.Name = "panelControl1";
|
||||
this.panelControl1.Size = new System.Drawing.Size(843, 355);
|
||||
this.panelControl1.TabIndex = 20;
|
||||
this.ddbPrint.Appearance.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.ddbPrint.Appearance.Options.UseFont = true;
|
||||
this.ddbPrint.DropDownArrowStyle = DevExpress.XtraEditors.DropDownArrowStyle.Show;
|
||||
this.ddbPrint.DropDownControl = this.pm_print;
|
||||
this.ddbPrint.Location = new System.Drawing.Point(169, 4);
|
||||
this.ddbPrint.Name = "ddbPrint";
|
||||
this.ddbPrint.Size = new System.Drawing.Size(75, 24);
|
||||
this.ddbPrint.TabIndex = 12;
|
||||
this.ddbPrint.Text = "常用打印";
|
||||
//
|
||||
// gcMain
|
||||
// btnHelp
|
||||
//
|
||||
this.gcMain.AdapterObj = null;
|
||||
this.gcMain.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.gcMain.Location = new System.Drawing.Point(0, 0);
|
||||
this.gcMain.Margin = new System.Windows.Forms.Padding(5, 6, 5, 6);
|
||||
this.gcMain.Name = "gcMain";
|
||||
this.gcMain.SiftEnumObj = Lskj.Control.GridControlEx.HeaderSiftEnum.Sum;
|
||||
this.gcMain.Size = new System.Drawing.Size(843, 355);
|
||||
this.gcMain.TabIndex = 0;
|
||||
this.btnHelp.Appearance.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.btnHelp.Appearance.Options.UseFont = true;
|
||||
this.btnHelp.Location = new System.Drawing.Point(250, 4);
|
||||
this.btnHelp.Name = "btnHelp";
|
||||
this.btnHelp.Size = new System.Drawing.Size(63, 24);
|
||||
this.btnHelp.TabIndex = 34;
|
||||
this.btnHelp.Text = "帮助文档";
|
||||
//
|
||||
// btnAttach
|
||||
//
|
||||
this.btnAttach.Appearance.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.btnAttach.Appearance.Options.UseFont = true;
|
||||
this.btnAttach.Location = new System.Drawing.Point(9, 4);
|
||||
this.btnAttach.Name = "btnAttach";
|
||||
this.btnAttach.Size = new System.Drawing.Size(75, 24);
|
||||
this.btnAttach.TabIndex = 40;
|
||||
this.btnAttach.TabStop = false;
|
||||
this.btnAttach.Text = "附件管理";
|
||||
this.btnAttach.Visible = false;
|
||||
//
|
||||
// btnRefresh
|
||||
//
|
||||
this.btnRefresh.Appearance.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.btnRefresh.Appearance.Options.UseFont = true;
|
||||
this.btnRefresh.Location = new System.Drawing.Point(319, 4);
|
||||
this.btnRefresh.Name = "btnRefresh";
|
||||
this.btnRefresh.Size = new System.Drawing.Size(75, 24);
|
||||
this.btnRefresh.TabIndex = 41;
|
||||
this.btnRefresh.Text = "刷新列数据";
|
||||
//
|
||||
// pl_top
|
||||
//
|
||||
this.pl_top.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
|
||||
this.pl_top.Controls.Add(this.pl_top_right);
|
||||
this.pl_top.Controls.Add(this.pl_top_search);
|
||||
this.pl_top.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.pl_top.Location = new System.Drawing.Point(0, 35);
|
||||
this.pl_top.Name = "pl_top";
|
||||
this.pl_top.Size = new System.Drawing.Size(1778, 34);
|
||||
this.pl_top.TabIndex = 21;
|
||||
//
|
||||
// ModuleGridEx
|
||||
//
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
|
||||
this.BackColor = System.Drawing.Color.Transparent;
|
||||
this.Controls.Add(this.panelControl1);
|
||||
this.Controls.Add(this.pl_buttom);
|
||||
this.Controls.Add(this.pl_top);
|
||||
this.Controls.Add(this.pl_top_RightMenus);
|
||||
this.Controls.Add(this.scc_container);
|
||||
this.Controls.Add(this.barDockControlLeft);
|
||||
this.Controls.Add(this.barDockControlRight);
|
||||
this.Controls.Add(this.barDockControlBottom);
|
||||
this.Controls.Add(this.barDockControlTop);
|
||||
this.Name = "ModuleGridEx";
|
||||
this.Size = new System.Drawing.Size(843, 460);
|
||||
this.Size = new System.Drawing.Size(1778, 695);
|
||||
((System.ComponentModel.ISupportInitialize)(this.pm_print)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.barManager1)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pm_oper)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pm_common)).EndInit();
|
||||
this.grouptip.ResumeLayout(false);
|
||||
((System.ComponentModel.ISupportInitialize)(this.scc_container)).EndInit();
|
||||
this.scc_container.ResumeLayout(false);
|
||||
((System.ComponentModel.ISupportInitialize)(this.panelControl1)).EndInit();
|
||||
this.panelControl1.ResumeLayout(false);
|
||||
((System.ComponentModel.ISupportInitialize)(this.pl_buttom)).EndInit();
|
||||
this.pl_buttom.ResumeLayout(false);
|
||||
((System.ComponentModel.ISupportInitialize)(this.pm_common)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pl_top)).EndInit();
|
||||
this.pl_top.ResumeLayout(false);
|
||||
((System.ComponentModel.ISupportInitialize)(this.pl_top_right)).EndInit();
|
||||
this.pl_top_right.ResumeLayout(false);
|
||||
((System.ComponentModel.ISupportInitialize)(this.pl_top_RightMenus)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pl_top_search)).EndInit();
|
||||
this.pl_top_search.ResumeLayout(false);
|
||||
((System.ComponentModel.ISupportInitialize)(this.pl_top_fix_search)).EndInit();
|
||||
this.pl_top_fix_search.ResumeLayout(false);
|
||||
this.pl_top_fix_search.PerformLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pl_top_RightMenus)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.panelControl1)).EndInit();
|
||||
this.panelControl1.ResumeLayout(false);
|
||||
((System.ComponentModel.ISupportInitialize)(this.pl_top_right)).EndInit();
|
||||
this.pl_top_right.ResumeLayout(false);
|
||||
((System.ComponentModel.ISupportInitialize)(this.pl_top)).EndInit();
|
||||
this.pl_top.ResumeLayout(false);
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private DevExpress.XtraEditors.SimpleButton btnSave;
|
||||
private DevExpress.XtraEditors.SimpleButton btnDel;
|
||||
private DevExpress.XtraEditors.SimpleButton btnAdd;
|
||||
private DevExpress.XtraBars.PopupMenu pm_oper;
|
||||
private DevExpress.XtraBars.BarManager barManager1;
|
||||
private DevExpress.XtraBars.BarDockControl barDockControlTop;
|
||||
@@ -490,11 +510,16 @@
|
||||
private DevExpress.XtraBars.BarDockControl barDockControlLeft;
|
||||
private DevExpress.XtraBars.BarDockControl barDockControlRight;
|
||||
private DevExpress.XtraBars.PopupMenu pm_print;
|
||||
private DevExpress.XtraBars.PopupMenu pm_common;
|
||||
public DevExpress.XtraEditors.SplitContainerControl scc_container;
|
||||
private System.Windows.Forms.GroupBox grouptip;
|
||||
private System.Windows.Forms.Panel TipsPanel;
|
||||
private DevExpress.XtraEditors.PanelControl panelControl1;
|
||||
private GridControlEx gcMain;
|
||||
private DevExpress.XtraEditors.PanelControl pl_buttom;
|
||||
private DevExpress.XtraEditors.DropDownButton dpbTools;
|
||||
private DevExpress.XtraEditors.SimpleButton btnSave;
|
||||
private DevExpress.XtraEditors.SimpleButton btnUpdate;
|
||||
private DevExpress.XtraEditors.SimpleButton btnImport;
|
||||
private DevExpress.XtraEditors.SimpleButton btnPrint;
|
||||
private DevExpress.XtraEditors.SimpleButton btnExport;
|
||||
private DevExpress.XtraBars.PopupMenu pm_common;
|
||||
private DevExpress.XtraEditors.DropDownButton dpbTools;
|
||||
private DevExpress.XtraEditors.PanelControl pl_top;
|
||||
private DevExpress.XtraEditors.Pane
|
||||
private DevExpress.XtraEditors.SimpleButton btnImport;
|
||||
|
||||
@@ -206,6 +206,14 @@ namespace Lskj.Control
|
||||
}
|
||||
|
||||
}
|
||||
/// <summary>
|
||||
/// 搜索界面
|
||||
/// </summary>
|
||||
public Panel TipsobjPanel
|
||||
{
|
||||
get { return this.TipsPanel; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 搜索界面
|
||||
/// </summary>
|
||||
@@ -5368,47 +5376,16 @@ namespace Lskj.Control
|
||||
/// 设置动态列提示信息
|
||||
/// </summary>
|
||||
/// <param name="ColumnName"></param>
|
||||
public void SetDisplayColumns(string text,int ForceSize, string ForceColor)
|
||||
public void SetDisplayColumns(string text)
|
||||
{
|
||||
if (!this.SysModel.SearchEnable)
|
||||
{
|
||||
|
||||
//不能搜索,并且传入提示值
|
||||
this.pl_top_fix_search.Visible = false;
|
||||
this.pl_top_right.Visible = false;
|
||||
this.TipsPanel.Visible = true;
|
||||
|
||||
|
||||
|
||||
if (!CreatePromptBox)
|
||||
{
|
||||
this.TopHeight = this.pl_top.Height;
|
||||
//代码的方式创建,直接拖的控件会提示线程问题
|
||||
this.TipsPanel.Controls.Clear();
|
||||
this.PromptBox = new LabelRichEdit();
|
||||
this.PromptBox.Dock = DockStyle.Fill;
|
||||
this.PromptBox.Padding = new Padding(3, 5, 0, 8);
|
||||
this.PromptBox.FontSize = ForceSize;//ForceSize;
|
||||
this.PromptBox.LabelText = "";
|
||||
//this.PromptBox.TextEdit.Properties.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
|
||||
//this.PromptBox.TextEdit.BackColor = Color.FromArgb(173, 216, 230);
|
||||
//this.TipsPanel.BackColor = Color.FromArgb(173, 216, 230);
|
||||
if (!string.IsNullOrWhiteSpace(ForceColor))
|
||||
{
|
||||
this.PromptBox.TextEdit.ForeColor = ColorTranslator.FromHtml(ForceColor);
|
||||
}
|
||||
this.PromptBox.TextEdit.ReadOnly = true;
|
||||
this.TipsPanel.Controls.Add(this.PromptBox);
|
||||
|
||||
CreatePromptBox = true;
|
||||
}
|
||||
PromptBox.EditText = text;
|
||||
// 获取文档对象
|
||||
Document document = this.PromptBox.TextEdit.Document;
|
||||
document.BeginUpdate();
|
||||
try
|
||||
{
|
||||
|
||||
// 获取段落属性并设置行间距
|
||||
ParagraphProperties pp = document.BeginUpdateParagraphs(document.Range);
|
||||
// 设置行间距为1.2倍
|
||||
@@ -5422,18 +5399,72 @@ namespace Lskj.Control
|
||||
}
|
||||
|
||||
//前4行高度
|
||||
int textHeight = (int)Math.Round(this.GetFirstThreeLinesHeight(PromptBox.TextEdit)*1.2) +20;
|
||||
if (textHeight > this.TopHeight)
|
||||
//int textHeight = (int)Math.Round(this.GetFirstThreeLinesHeight(PromptBox.TextEdit)*1.2) +20;
|
||||
//if (textHeight > this.TopHeight)
|
||||
//{
|
||||
// this.pl_top.Height = textHeight;
|
||||
//}
|
||||
//else
|
||||
//{
|
||||
// this.pl_top.Height = this.TopHeight;
|
||||
//}
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// <para>说明:设置分割条位置</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2018-02-01 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="sender">The source of the event.</param>
|
||||
/// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
|
||||
protected void OnSplitterMoved(object sender, EventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
if (this.Model != null)
|
||||
{
|
||||
this.pl_top.Height = textHeight;
|
||||
IniHelper.Write(string.Format("base_grid_height_{0}", this.Model.ModuleCode), this.scc_container.SplitterPosition + "");
|
||||
}
|
||||
else
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
string Message = ErrorMessage.PromptErrorMessage(ex);
|
||||
MessageUtil.Show(Message, ex.Message);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// <para>说明:设置分割条位置</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2018-02-01 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
public void InitlizeSpiltLocation()
|
||||
{
|
||||
try
|
||||
{
|
||||
string htight = IniHelper.Read(string.Format("base_grid_height_{0}", this.Model.ModuleCode));
|
||||
if (!string.IsNullOrEmpty(htight))
|
||||
{
|
||||
this.pl_top.Height = this.TopHeight;
|
||||
this.scc_container.SplitterPosition = Convert.ToInt32(htight);
|
||||
}
|
||||
else {
|
||||
this.scc_container.SplitterPosition = 250;
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
LogHelper.Instance.WriteError(ex);
|
||||
string Message = ErrorMessage.PromptErrorMessage(ex);
|
||||
MessageUtil.Show(Message, ex.Message);
|
||||
}
|
||||
}
|
||||
|
||||
public int GetFirstThreeLinesHeight(RichEditControl richEdit)
|
||||
{
|
||||
if (string.IsNullOrEmpty(richEdit.Text)) return 0;
|
||||
|
||||
Reference in New Issue
Block a user