优化菜单图标
This commit is contained in:
parent
093fb09983
commit
3f5ea7a5af
@ -48,7 +48,7 @@ namespace AIMS
|
||||
comboBoxEx2.Items.AddRange(MetroColorGeneratorParameters.GetAllPredefinedThemes().Cast<object>()
|
||||
.ToArray());
|
||||
|
||||
SetGridAlternatingRows(lv1);
|
||||
SetGridAlternatingRows(lv1);
|
||||
SetGridAlternatingRows(lv2);
|
||||
SetGridAlternatingRows(lv3);
|
||||
SetGridAlternatingRows(lv4);
|
||||
@ -100,15 +100,45 @@ namespace AIMS
|
||||
eStyle style = (eStyle)comboBoxEx1.SelectedItem;
|
||||
if (styleManager1.ManagerStyle != style)
|
||||
styleManager1.ManagerStyle = style;
|
||||
}
|
||||
}
|
||||
private void comboBoxEx2_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
if (comboBoxEx1.SelectedItem == null) return;
|
||||
var style = (MetroColorGeneratorParameters)comboBoxEx2.SelectedItem;
|
||||
//if (styleManager1.MetroColorParameters != style)
|
||||
styleManager1.MetroColorParameters = style;
|
||||
styleManager1.MetroColorParameters = style;
|
||||
//styleManager1.MetroColorParameters = MetroColorGeneratorParameters.Cherry;
|
||||
}
|
||||
|
||||
Dictionary<string, string> menuToSymbol = new()
|
||||
{
|
||||
{"手术申请", "\uf044"},
|
||||
{"手术排程", "\uf073"},
|
||||
{"麻醉记录", "\uf15b"},
|
||||
{"恢复记录", "\uf15c"},
|
||||
{"诱导记录", "\uf044"},
|
||||
{"镇痛记录", "\uf044"},
|
||||
{"内镜麻醉", "\uf044"},
|
||||
{"介入手术", "\uf044"},
|
||||
{"科室登记", "\uf044"},
|
||||
{"复苏记录", "\uf15c"},
|
||||
{"查询管理", "\uf00e"},
|
||||
{"收费管理", "\uf00e"},
|
||||
{"术后回顾", "\uf0cb"},
|
||||
{"病案管理", "\uf0cb"},
|
||||
{"排程查询", "\uf0c5"},
|
||||
{"医疗文书", "\uf14b"},
|
||||
{"人员管理", "\uf0f0"},
|
||||
{"系统管理", "\uf1de"},
|
||||
{"报表统计", "\uf080"},
|
||||
{"排班管理", "\uf03a"},
|
||||
{"中央监护", "\uf109"},
|
||||
{"大屏公告", "\uf022"},
|
||||
{"质控管理", "\uf200"},
|
||||
{"室外登记", "\uf183"},
|
||||
{"交班管理", "\uf18d"},
|
||||
{"手术清点", "\uf0ea"}
|
||||
};
|
||||
private void FormMainManage_Load(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
@ -169,58 +199,13 @@ namespace AIMS
|
||||
sideNavItem.Panel = sideNavPanel;
|
||||
sideNavItem.Text = menuSec.Name;
|
||||
sideNavItem.Tag = menuSec;
|
||||
if (menuSec.Name == "手术申请")
|
||||
sideNavItem.Symbol = "\uf044";
|
||||
if (menuSec.Name == "手术排程")
|
||||
sideNavItem.Symbol = "\uf073";
|
||||
if (menuSec.Name == "麻醉记录")
|
||||
sideNavItem.Symbol = "\uf15b";
|
||||
if (menuSec.Name == "恢复记录")
|
||||
sideNavItem.Symbol = "\uf15c";
|
||||
if (menuSec.Name == "诱导记录")
|
||||
sideNavItem.Symbol = "\uf044";
|
||||
if (menuSec.Name == "镇痛记录")
|
||||
sideNavItem.Symbol = "\uf044";
|
||||
if (menuSec.Name == "内镜麻醉")
|
||||
sideNavItem.Symbol = "\uf044";
|
||||
if (menuSec.Name == "介入手术")
|
||||
sideNavItem.Symbol = "\uf044";
|
||||
if (menuSec.Name == "科室登记")
|
||||
sideNavItem.Symbol = "\uf044";
|
||||
if (menuSec.Name == "复苏记录")
|
||||
sideNavItem.Symbol = "\uf15c";
|
||||
if (menuSec.Name == "查询管理")
|
||||
sideNavItem.Symbol = "\uf00e";
|
||||
if (menuSec.Name == "收费管理")
|
||||
sideNavItem.Symbol = "\uf00e";
|
||||
if (menuSec.Name == "术后回顾")
|
||||
sideNavItem.Symbol = "\uf0cb";
|
||||
if (menuSec.Name == "病案管理")
|
||||
sideNavItem.Symbol = "\uf0cb";
|
||||
if (menuSec.Name == "排程查询")
|
||||
sideNavItem.Symbol = "\uf0c5";
|
||||
if (menuSec.Name == "医疗文书")
|
||||
sideNavItem.Symbol = "\uf14b";
|
||||
if (menuSec.Name == "人员管理")
|
||||
sideNavItem.Symbol = "\uf0f0";
|
||||
if (menuSec.Name == "系统管理")
|
||||
sideNavItem.Symbol = "\uf1de";
|
||||
if (menuSec.Name == "报表统计")
|
||||
sideNavItem.Symbol = "\uf080";
|
||||
if (menuSec.Name == "排班管理")
|
||||
sideNavItem.Symbol = "\uf03a";
|
||||
if (menuSec.Name == "中央监护")
|
||||
sideNavItem.Symbol = "\uf109";
|
||||
if (menuSec.Name == "大屏公告")
|
||||
sideNavItem.Symbol = "\uf022";
|
||||
if (menuSec.Name == "质控管理")
|
||||
sideNavItem.Symbol = "\uf200";
|
||||
if (menuSec.Name == "室外登记")
|
||||
sideNavItem.Symbol = "\uf183";
|
||||
if (menuSec.Name == "交班管理")
|
||||
sideNavItem.Symbol = "\uf18d";
|
||||
if (menuSec.Name == "手术清点")
|
||||
sideNavItem.Symbol = "\uf0ea";
|
||||
|
||||
|
||||
if (menuToSymbol.ContainsKey(menuSec.Name))
|
||||
{
|
||||
sideNavItem.Symbol = menuToSymbol[menuSec.Name];
|
||||
}
|
||||
|
||||
this.sideNav1.Items.Add(sideNavItem);
|
||||
}
|
||||
|
||||
@ -373,7 +358,7 @@ namespace AIMS
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
logger.LogError(ex,"打开窗体时出错:@Menu",menu);
|
||||
logger.LogError(ex, "打开窗体时出错:@Menu", menu);
|
||||
if (path.Contains("MainFormManage"))
|
||||
{
|
||||
MainFormManage frm = new MainFormManage();
|
||||
@ -401,23 +386,30 @@ namespace AIMS
|
||||
|
||||
private void btnOk_Click(object sender, EventArgs e)
|
||||
{
|
||||
foreach (Form frm in Application.OpenForms)
|
||||
try
|
||||
{
|
||||
if (frm.Name != "FormLogin" && frm.Name != this.Name)
|
||||
foreach (Form frm in Application.OpenForms)
|
||||
{
|
||||
frm.Close();
|
||||
break;
|
||||
if (frm.Name != "frmLogin" && frm.Name != this.Name)
|
||||
{
|
||||
frm.Close();
|
||||
break;
|
||||
}
|
||||
}
|
||||
foreach (Form frm in Application.OpenForms)
|
||||
{
|
||||
if (frm.Name == "frmLogin")
|
||||
{
|
||||
frm.Show();
|
||||
isClose = true;
|
||||
this.Close();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
foreach (Form frm in Application.OpenForms)
|
||||
catch (Exception ex)
|
||||
{
|
||||
if (frm.Name == "FormLogin")
|
||||
{
|
||||
frm.Show();
|
||||
isClose = true;
|
||||
this.Close();
|
||||
break;
|
||||
}
|
||||
logger.LogError(ex, "关闭窗口出错");
|
||||
}
|
||||
}
|
||||
bool isClose = false;
|
||||
|
||||
BIN
AIMSControls/FormMainManage.designer.cs
generated
BIN
AIMSControls/FormMainManage.designer.cs
generated
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user