|
|
@@ -213,7 +213,7 @@ namespace UAS_DeviceMonitor
|
|
|
{
|
|
|
if (PageCommandSet.PageVisible)
|
|
|
{
|
|
|
-
|
|
|
+
|
|
|
DataTable dt = (DataTable)SystemInf.dh.ExecuteSql("select * from devicebrand", "select");
|
|
|
BaseUtil.FillComBoxEditWidthDataTable(Brand, "db_name", "db_code", dt);
|
|
|
GridCommandSetting.Condition = " where dc_debrand='" + BaseUtil.GetComboxEditValue(Brand) + "' order by dc_id";
|
|
|
@@ -536,6 +536,7 @@ namespace UAS_DeviceMonitor
|
|
|
{
|
|
|
PanelDeviceStatus.Controls[i].Dispose();
|
|
|
}
|
|
|
+ ContextMenu ContextMenu = new ContextMenu();
|
|
|
for (int j = 0; j < RowCount; j++)
|
|
|
{
|
|
|
//如果是最后一行则循环尾数
|
|
|
@@ -548,6 +549,7 @@ namespace UAS_DeviceMonitor
|
|
|
PictureEditWithText pic = new PictureEditWithText();
|
|
|
pic.DeviceName = dt.Rows[j * CountPerRow + i]["de_name"].ToString();
|
|
|
pic.Picedit.ToolTipController = CommonTipController;
|
|
|
+ pic.Picedit.ContextMenu = ContextMenu;
|
|
|
pic.Picedit.Click += Pic_Click;
|
|
|
pic.Name = dt.Rows[j * CountPerRow + i]["de_code"].ToString() + i + j;
|
|
|
pic.Anchor = AnchorStyles.Left;
|