SVN r885
SVN-Revision: r885
This commit is contained in:
+12
-12
@@ -31,8 +31,8 @@ namespace Lskj.Main.Control
|
||||
{
|
||||
this.topTipsPanel = new System.Windows.Forms.Panel();
|
||||
this.tipsLab = new System.Windows.Forms.Label();
|
||||
this.whiteLab = new System.Windows.Forms.Label();
|
||||
this.menuMainPanel = new System.Windows.Forms.Panel();
|
||||
this.whiteLab = new System.Windows.Forms.Label();
|
||||
this.topTipsPanel.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
@@ -52,24 +52,24 @@ namespace Lskj.Main.Control
|
||||
this.tipsLab.BackColor = System.Drawing.Color.White;
|
||||
this.tipsLab.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.tipsLab.Font = new System.Drawing.Font("Microsoft YaHei UI", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.tipsLab.Location = new System.Drawing.Point(10, 0);
|
||||
this.tipsLab.Location = new System.Drawing.Point(20, 0);
|
||||
this.tipsLab.Name = "tipsLab";
|
||||
this.tipsLab.Size = new System.Drawing.Size(747, 26);
|
||||
this.tipsLab.Size = new System.Drawing.Size(737, 26);
|
||||
this.tipsLab.TabIndex = 3;
|
||||
this.tipsLab.Text = "默认分组";
|
||||
this.tipsLab.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
||||
//
|
||||
// menuMainPanel
|
||||
//
|
||||
this.menuMainPanel.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.menuMainPanel.Location = new System.Drawing.Point(0, 42);
|
||||
this.menuMainPanel.Name = "menuMainPanel";
|
||||
this.menuMainPanel.Size = new System.Drawing.Size(757, 281);
|
||||
this.menuMainPanel.TabIndex = 4;
|
||||
//
|
||||
// whiteLab
|
||||
//
|
||||
this.whiteLab.BackColor = System.Drawing.Color.White;
|
||||
this.whiteLab.Dock = System.Windows.Forms.DockStyle.Left;
|
||||
this.whiteLab.Location = new System.Drawing.Point(0, 0);
|
||||
this.whiteLab.Name = "whiteLab";
|
||||
this.whiteLab.Size = new System.Drawing.Size(10, 26);
|
||||
this.whiteLab.TabIndex = 1;
|
||||
//
|
||||
// menuMainPanel
|
||||
//
|
||||
this.menuMainPanel.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.menuMainPanel.Location = new System.Drawing.Point(0, 42);
|
||||
this.menuMainPanel.Name = "menuMainPane
|
||||
this.whiteLab.Nam
|
||||
Binary file not shown.
+19
-19
@@ -352,7 +352,7 @@
|
||||
this.pl_center_main_middle.Location = new System.Drawing.Point(0, 0);
|
||||
this.pl_center_main_middle.Margin = new System.Windows.Forms.Padding(0);
|
||||
this.pl_center_main_middle.Name = "pl_center_main_middle";
|
||||
this.pl_center_main_middle.Padding = new System.Windows.Forms.Padding(15);
|
||||
this.pl_center_main_middle.Padding = new System.Windows.Forms.Padding(10);
|
||||
this.pl_center_main_middle.Size = new System.Drawing.Size(896, 584);
|
||||
this.pl_center_main_middle.TabIndex = 1;
|
||||
//
|
||||
@@ -361,10 +361,10 @@
|
||||
this.allPanel.Controls.Add(this.allMenuPanel);
|
||||
this.allPanel.Controls.Add(this.botTipsPanel);
|
||||
this.allPanel.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.allPanel.Location = new System.Drawing.Point(15, 242);
|
||||
this.allPanel.Location = new System.Drawing.Point(10, 237);
|
||||
this.allPanel.Margin = new System.Windows.Forms.Padding(0);
|
||||
this.allPanel.Name = "allPanel";
|
||||
this.allPanel.Size = new System.Drawing.Size(866, 327);
|
||||
this.allPanel.Size = new System.Drawing.Size(876, 337);
|
||||
this.allPanel.TabIndex = 9;
|
||||
//
|
||||
// allMenuPanel
|
||||
@@ -374,7 +374,7 @@
|
||||
this.allMenuPanel.Location = new System.Drawing.Point(0, 26);
|
||||
this.allMenuPanel.Margin = new System.Windows.Forms.Padding(0);
|
||||
this.allMenuPanel.Name = "allMenuPanel";
|
||||
this.allMenuPanel.Size = new System.Drawing.Size(866, 301);
|
||||
this.allMenuPanel.Size = new System.Drawing.Size(876, 311);
|
||||
this.allMenuPanel.TabIndex = 6;
|
||||
//
|
||||
// botTipsPanel
|
||||
@@ -385,7 +385,7 @@
|
||||
this.botTipsPanel.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.botTipsPanel.Location = new System.Drawing.Point(0, 0);
|
||||
this.botTipsPanel.Name = "botTipsPanel";
|
||||
this.botTipsPanel.Size = new System.Drawing.Size(866, 26);
|
||||
this.botTipsPanel.Size = new System.Drawing.Size(876, 26);
|
||||
this.botTipsPanel.TabIndex = 5;
|
||||
//
|
||||
// allTipsLab
|
||||
@@ -393,9 +393,9 @@
|
||||
this.allTipsLab.BackColor = System.Drawing.Color.White;
|
||||
this.allTipsLab.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.allTipsLab.Font = new System.Drawing.Font("Microsoft YaHei UI", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.allTipsLab.Location = new System.Drawing.Point(8, 0);
|
||||
this.allTipsLab.Location = new System.Drawing.Point(20, 0);
|
||||
this.allTipsLab.Name = "allTipsLab";
|
||||
this.allTipsLab.Size = new System.Drawing.Size(858, 26);
|
||||
this.allTipsLab.Size = new System.Drawing.Size(856, 26);
|
||||
this.allTipsLab.TabIndex = 3;
|
||||
this.allTipsLab.Text = "全部应用";
|
||||
this.allTipsLab.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
||||
@@ -406,7 +406,7 @@
|
||||
this.label4.Dock = System.Windows.Forms.DockStyle.Left;
|
||||
this.label4.Location = new System.Drawing.Point(0, 0);
|
||||
this.label4.Name = "label4";
|
||||
this.label4.Size = new System.Drawing.Size(8, 26);
|
||||
this.label4.Size = new System.Drawing.Size(20, 26);
|
||||
this.label4.TabIndex = 1;
|
||||
//
|
||||
// panelSplit
|
||||
@@ -414,11 +414,11 @@
|
||||
this.panelSplit.Controls.Add(this.labelSplit);
|
||||
this.panelSplit.Controls.Add(this.labelSplitTop);
|
||||
this.panelSplit.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.panelSplit.Location = new System.Drawing.Point(15, 235);
|
||||
this.panelSplit.Location = new System.Drawing.Point(10, 230);
|
||||
this.panelSplit.Margin = new System.Windows.Forms.Padding(0);
|
||||
this.panelSplit.Name = "panelSplit";
|
||||
this.panelSplit.Padding = new System.Windows.Forms.Padding(13, 0, 13, 0);
|
||||
this.panelSplit.Size = new System.Drawing.Size(866, 7);
|
||||
this.panelSplit.Size = new System.Drawing.Size(876, 7);
|
||||
this.panelSplit.TabIndex = 7;
|
||||
//
|
||||
// labelSplit
|
||||
@@ -429,7 +429,7 @@
|
||||
this.labelSplit.ForeColor = System.Drawing.Color.Black;
|
||||
this.labelSplit.Location = new System.Drawing.Point(13, 3);
|
||||
this.labelSplit.Name = "labelSplit";
|
||||
this.labelSplit.Size = new System.Drawing.Size(840, 1);
|
||||
this.labelSplit.Size = new System.Drawing.Size(850, 1);
|
||||
this.labelSplit.TabIndex = 0;
|
||||
//
|
||||
// labelSplitTop
|
||||
@@ -437,7 +437,7 @@
|
||||
this.labelSplitTop.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.labelSplitTop.Location = new System.Drawing.Point(13, 0);
|
||||
this.labelSplitTop.Name = "labelSplitTop";
|
||||
this.labelSplitTop.Size = new System.Drawing.Size(840, 3);
|
||||
this.labelSplitTop.Size = new System.Drawing.Size(850, 3);
|
||||
this.labelSplitTop.TabIndex = 1;
|
||||
//
|
||||
// collectPanel
|
||||
@@ -445,10 +445,10 @@
|
||||
this.collectPanel.Controls.Add(this.collectMenuPanel);
|
||||
this.collectPanel.Controls.Add(this.topTipsPanel);
|
||||
this.collectPanel.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.collectPanel.Location = new System.Drawing.Point(15, 15);
|
||||
this.collectPanel.Location = new System.Drawing.Point(10, 10);
|
||||
this.collectPanel.Margin = new System.Windows.Forms.Padding(0);
|
||||
this.collectPanel.Name = "collectPanel";
|
||||
this.collectPanel.Size = new System.Drawing.Size(866, 220);
|
||||
this.collectPanel.Size = new System.Drawing.Size(876, 220);
|
||||
this.collectPanel.TabIndex = 8;
|
||||
//
|
||||
// collectMenuPanel
|
||||
@@ -458,7 +458,7 @@
|
||||
this.collectMenuPanel.Location = new System.Drawing.Point(0, 26);
|
||||
this.collectMenuPanel.Margin = new System.Windows.Forms.Padding(0);
|
||||
this.collectMenuPanel.Name = "collectMenuPanel";
|
||||
this.collectMenuPanel.Size = new System.Drawing.Size(866, 194);
|
||||
this.collectMenuPanel.Size = new System.Drawing.Size(876, 194);
|
||||
this.collectMenuPanel.TabIndex = 7;
|
||||
//
|
||||
// topTipsPanel
|
||||
@@ -469,7 +469,7 @@
|
||||
this.topTipsPanel.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.topTipsPanel.Location = new System.Drawing.Point(0, 0);
|
||||
this.topTipsPanel.Name = "topTipsPanel";
|
||||
this.topTipsPanel.Size = new System.Drawing.Size(866, 26);
|
||||
this.topTipsPanel.Size = new System.Drawing.Size(876, 26);
|
||||
this.topTipsPanel.TabIndex = 5;
|
||||
//
|
||||
// collectTipsLab
|
||||
@@ -477,9 +477,9 @@
|
||||
this.collectTipsLab.BackColor = System.Drawing.Color.White;
|
||||
this.collectTipsLab.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.collectTipsLab.Font = new System.Drawing.Font("Microsoft YaHei UI", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.collectTipsLab.Location = new System.Drawing.Point(8, 0);
|
||||
this.collectTipsLab.Location = new System.Drawing.Point(20, 0);
|
||||
this.collectTipsLab.Name = "collectTipsLab";
|
||||
this.collectTipsLab.Size = new System.Drawing.Size(858, 26);
|
||||
this.collectTipsLab.Size = new System.Drawing.Size(856, 26);
|
||||
this.collectTipsLab.TabIndex = 3;
|
||||
this.collectTipsLab.Text = "我的收藏";
|
||||
this.collectTipsLab.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
||||
@@ -490,7 +490,7 @@
|
||||
this.whiteLab.Dock = System.Windows.Forms.DockStyle.Left;
|
||||
this.whiteLab.Location = new System.Drawing.Point(0, 0);
|
||||
this.whiteLab.Name = "whiteLab";
|
||||
this.whiteLab.Size = new System.Drawing.Size(8, 26);
|
||||
this.whiteLab.Size = new System.Drawing.Size(20, 26);
|
||||
this.whiteLab.TabIndex = 1;
|
||||
//
|
||||
// pl_center_main_middle_FlowLayout
|
||||
|
||||
@@ -167,7 +167,7 @@ namespace Lskj.Main.Control
|
||||
/// <summary>
|
||||
/// 快捷窗口圆角
|
||||
/// </summary>
|
||||
private Dictionary<string, CornerLab> _quickPageHeaders = new Dictionary<string, CornerLab>();
|
||||
private Dictionary<string, Lskj.Control.CircleButton> _quickPageHeaders = new Dictionary<string, Lskj.Control.CircleButton>();
|
||||
/// <summary>
|
||||
/// 默认模块(右上角)圆角
|
||||
/// </summary>
|
||||
@@ -651,6 +651,12 @@ namespace Lskj.Main.Control
|
||||
/// </summary>
|
||||
private void SetMenus()
|
||||
{
|
||||
FontFamily fontFamily = FontUtil.Fonts.Families.Where(n => n.Name.Equals("MiSans")).FirstOrDefault();
|
||||
if (fontFamily != null)
|
||||
{
|
||||
collectTipsLab.Font = new Font(fontFamily, 10.5f, FontStyle.Regular);
|
||||
allTipsLab.Font = new Font(fontFamily, 10.5f, FontStyle.Regular);
|
||||
}
|
||||
string[] menuFiles = null;
|
||||
if (Directory.Exists(PubUtil.ModuleDefaultPath))
|
||||
{
|
||||
@@ -697,8 +703,16 @@ namespace Lskj.Main.Control
|
||||
{
|
||||
GroupControl baseGroupControl = new GroupControl();
|
||||
baseGroupControl.TipsLabel.ForeColor = Color.DimGray;
|
||||
if (fontFamily != null)
|
||||
{
|
||||
baseGroupControl.TipsLabel.Font = new Font(fontFamily, 10.5f, FontStyle.Regular);
|
||||
}
|
||||
GroupControl reportGroupControl = new GroupControl();
|
||||
reportGroupControl.TipsLabel.ForeColor = Color.DimGray;
|
||||
if (fontFamily != null)
|
||||
{
|
||||
baseGroupControl.TipsLabel.Font = new Font(fontFamily, 10.5f, FontStyle.Regular);
|
||||
}
|
||||
FlowLayoutPanel baseFlowPanel = new FlowLayoutPanel();
|
||||
FlowLayoutPanel reportFlowPanel = new FlowLayoutPanel();
|
||||
baseFlowPanel.Padding = new Padding(menuLeft, 0, 0, 0);
|
||||
@@ -717,6 +731,12 @@ namespace Lskj.Main.Control
|
||||
string hoverImg = PubUtil.MainMenuDefaultImage + dataRow["MouseOverImg1"] + "";
|
||||
string[] menuTag = new string[] { dataRow["DllFileName"] + "", dataRow["PurviewId"] + "", dataRow["LMenuId"] + "", dataRow["UrlParams"] + "", dataRow["LSubSysId"] + "", dataRow["dllShowCaption"] + "" };
|
||||
Menu_ItemNew menu = new Menu_ItemNew();
|
||||
if (fontFamily != null)
|
||||
{
|
||||
menu.GetLabelTitle().Font = new Font(fontFamily, 9.75f, FontStyle.Bold);
|
||||
menu.GetLabelTitleSub().Font = new Font(fontFamily, 8.5f, FontStyle.Regular);
|
||||
}
|
||||
menu.GetLabelTitle().ForeColor = Color.FromArgb(71, 73, 79);
|
||||
menu.Margin = new Padding(0, 0, 20, 0);
|
||||
menu.Name = groupMenuId;
|
||||
menu.Size = new Size(menuWidth, menuHeight);
|
||||
@@ -766,6 +786,12 @@ namespace Lskj.Main.Control
|
||||
string hoverImg = PubUtil.MainMenuDefaultImage + dataRow["MouseOverImg1"] + "";
|
||||
string[] menuTag = new string[] { dataRow["DllFileName"] + "", dataRow["PurviewId"] + "", dataRow["LMenuId"] + "", dataRow["UrlParams"] + "", dataRow["LSubSysId"] + "", dataRow["dllShowCaption"] + "" };
|
||||
Menu_ItemNew menu = new Menu_ItemNew();
|
||||
if (fontFamily != null)
|
||||
{
|
||||
menu.GetLabelTitle().Font = new Font(fontFamily, 9.75f, FontStyle.Bold);
|
||||
menu.GetLabelTitleSub().Font = new Font(fontFamily, 8.5f, FontStyle.Regular);
|
||||
}
|
||||
menu.GetLabelTitle().ForeColor = Color.FromArgb(71, 73, 79);
|
||||
menu.Margin = new Padding(0, 0, 20, 0);
|
||||
menu.Name = groupMenuId;
|
||||
menu.Size = new Size(menuWidth, menuHeight);
|
||||
@@ -1050,7 +1076,12 @@ namespace Lskj.Main.Control
|
||||
groupIndex = groupByDataRows.Where(n => !n.Key.Equals(99)).Count() > 0 ? groupByDataRows.Where(n => !n.Key.Equals(99)).Max(n => n.Key) + 1 : 1;
|
||||
}
|
||||
Menu_ItemNew menu = new Menu_ItemNew();
|
||||
menu.GetLabelTitle().ForeColor = Color.FromArgb(88, 85, 85);
|
||||
if (fontFamily != null)
|
||||
{
|
||||
menu.GetLabelTitle().Font = new Font(fontFamily, 9.75f, FontStyle.Bold);
|
||||
menu.GetLabelTitleSub().Font = new Font(fontFamily, 8.5f, FontStyle.Regular);
|
||||
}
|
||||
menu.GetLabelTitle().ForeColor = Color.FromArgb(71, 73, 79);
|
||||
menu.menuRow = dataRow.Table.Columns.Contains("menuRow") && !string.IsNullOrEmpty(dataRow["menuRow"] + "") ? Convert.ToInt32(dataRow["menuRow"] + "") : 1;
|
||||
menu.menuGroup = groupIndex;
|
||||
if ((menu.menuRow - minMenuRow + 1) > nowRowCount + 1)
|
||||
@@ -1833,7 +1864,7 @@ namespace Lskj.Main.Control
|
||||
{
|
||||
string groupMenuId = items["LMenuId"] + "";
|
||||
Menu_ItemNew menuItem = this._menuItemList.Cast<Menu_ItemNew>().FirstOrDefault(x => x.Name == groupMenuId);
|
||||
CornerLab corLab = _quickPageHeaders[key];
|
||||
Lskj.Control.CircleButton corLab = _quickPageHeaders[key];
|
||||
corLab.Visible = true;
|
||||
string number = items["amount"] + "";
|
||||
|
||||
|
||||
+1
-1
@@ -59,7 +59,7 @@
|
||||
this.lbl_sub.AutoSize = true;
|
||||
this.lbl_sub.Font = new System.Drawing.Font("Microsoft YaHei UI", 8.5F);
|
||||
this.lbl_sub.ForeColor = System.Drawing.Color.DimGray;
|
||||
this.lbl_sub.Location = new System.Drawing.Point(78, 39);
|
||||
this.lbl_sub.Location = new System.Drawing.Point(76, 39);
|
||||
this.lbl_sub.Name = "lbl_sub";
|
||||
this.lbl_sub.Size = new System.Drawing.Size(91, 17);
|
||||
this.lbl_sub.TabIndex = 4;
|
||||
|
||||
@@ -111,10 +111,10 @@ namespace Lskj.Main.Control
|
||||
this.BackgroundImage = _imgBorderHover;
|
||||
}
|
||||
Cursor = Cursors.Hand;
|
||||
Invalidate();
|
||||
//Invalidate();
|
||||
}
|
||||
private void HoverLeave(object s, EventArgs e)
|
||||
{
|
||||
if (ClientRectangle.Contains(PointToClient(System.Windows.Forms.Control.MousePosition))) return;
|
||||
_isHover = false;
|
||||
//BackCol
|
||||
//BackColor
|
||||
+21
-37
@@ -30,8 +30,8 @@ namespace Lskj.Main.Control
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.picBox = new System.Windows.Forms.PictureBox();
|
||||
this.circleButton = new Lskj.Control.CircleButton();
|
||||
this.label = new System.Windows.Forms.Label();
|
||||
this.cornerLab = new Lskj.Main.Control.CornerLab();
|
||||
((System.ComponentModel.ISupportInitialize)(this.picBox)).BeginInit();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
@@ -45,42 +45,26 @@ namespace Lskj.Main.Control
|
||||
this.picBox.TabIndex = 0;
|
||||
this.picBox.TabStop = false;
|
||||
//
|
||||
// circleButton
|
||||
//
|
||||
this.circleButton.BackColor = System.Drawing.Color.Red;
|
||||
this.circleButton.BorderColor = System.Drawing.Color.Transparent;
|
||||
this.circleButton.BorderThickness = 1F;
|
||||
this.circleButton.Dock = System.Windows.Forms.DockStyle.Right;
|
||||
this.circleButton.FlatAppearance.BorderSize = 0;
|
||||
this.circleButton.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||
this.circleButton.ForeColor = System.Drawing.Color.White;
|
||||
this.circleButton.ImageHover = null;
|
||||
this.circleButton.ImageNormal = null;
|
||||
this.circleButton.Location = new System.Drawing.Point(162, 0);
|
||||
this.circleButton.Name = "circleButton";
|
||||
this.circleButton.Number = 0;
|
||||
this.circleButton.Radius = 9;
|
||||
this.circleButton.TabIndex = 4;
|
||||
this.circleButton.Text = "circleButton1";
|
||||
this.circleButton.UseVisualStyleBackColor = false;
|
||||
//
|
||||
// label
|
||||
//
|
||||
this.label.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.label.Location = new System.Drawing.Point(41, 0);
|
||||
this.label.Name = "label";
|
||||
this.label.Size = new System.Drawing.Size(139, 42);
|
||||
this.label.TabIndex = 3;
|
||||
this.label.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
||||
//
|
||||
// cornerLab
|
||||
//
|
||||
this.cornerLab.BackColor = System.Drawing.SystemColors.Control;
|
||||
this.cornerLab.Dock = System.Windows.Forms.DockStyle.Right;
|
||||
this.cornerLab.Location = new System.Drawing.Point(180, 0);
|
||||
this.cornerLab.Name = "cornerLab";
|
||||
this.cornerLab.Size = new System.Drawing.Size(24, 42);
|
||||
this.cornerLab.TabIndex = 2;
|
||||
//
|
||||
// SimpleControl
|
||||
//
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
|
||||
this.AutoSize = true;
|
||||
this.Controls.Add(this.label);
|
||||
this.Controls.Add(this.cornerLab);
|
||||
this.Controls.Add(this.picBox);
|
||||
this.Name = "SimpleControl";
|
||||
this.Size = new System.Drawing.Size(204, 42);
|
||||
((System.ComponentModel.ISupportInitialize)(this.picBox)).EndInit();
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.PictureBox picBox;
|
||||
private CornerLab cornerLab;
|
||||
private System.Windows.Forms.Label label;
|
||||
}
|
||||
}
|
||||
thi
|
||||
Binary file not shown.
Reference in New Issue
Block a user