|
|
@@ -56,9 +56,6 @@ namespace UAS_DeviceMonitor
|
|
|
ButtonDeleteCommand.Grid = GridCommandSetting;
|
|
|
}
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
#region 界面通用事件
|
|
|
/// <summary>
|
|
|
/// 选项卡切换不同XPage
|
|
|
@@ -85,32 +82,6 @@ namespace UAS_DeviceMonitor
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- private void ItemComboBox_ParseEditValue(object sender, DevExpress.XtraEditors.Controls.ConvertEditValueEventArgs e)
|
|
|
- {
|
|
|
- e.Value = e.Value.ToString(); e.Handled = true;
|
|
|
- }
|
|
|
-
|
|
|
- /// <summary>
|
|
|
- /// Grid中的ComboBox的值设置
|
|
|
- /// </summary>
|
|
|
- /// <param name="sender"></param>
|
|
|
- /// <param name="e"></param>
|
|
|
- private void ItemComboBox_SelectedIndexChanged(object sender, EventArgs e)
|
|
|
- {
|
|
|
- ComboBoxEdit combox = sender as ComboBoxEdit;
|
|
|
- //ComboBoxData combodata = (ComboBoxData)(combox).SelectedItem;
|
|
|
- GridControl grid = combox.Parent as GridControl;
|
|
|
-
|
|
|
- combox.EditValue = "TEST";
|
|
|
-
|
|
|
- ////Console.WriteLine(combox.EditValue.GetType());
|
|
|
- GridView myView = (grid.MainView as GridView);
|
|
|
- myView.SetRowCellValue(myView.FocusedRowHandle, myView.FocusedColumn.Name, "123123");
|
|
|
- combox.Text = "1231";
|
|
|
- //DataTable dt = (DataTable)grid.DataSource;
|
|
|
- //dt.Rows[myView.FocusedRowHandle][myView.FocusedColumn.Name.ToUpper()] = combodata.Value;
|
|
|
- }
|
|
|
-
|
|
|
/// <summary>
|
|
|
/// 勾选Grid的CheckBox
|
|
|
/// </summary>
|
|
|
@@ -160,6 +131,16 @@ namespace UAS_DeviceMonitor
|
|
|
GridCommandSetting.RefreshData();
|
|
|
}
|
|
|
|
|
|
+ /// <summary>
|
|
|
+ /// 判断指令编号不能重复
|
|
|
+ /// </summary>
|
|
|
+ /// <param name="sender"></param>
|
|
|
+ /// <param name="e"></param>
|
|
|
+ private void ButtonSaveCommand_Click(object sender, EventArgs e)
|
|
|
+ {
|
|
|
+ ButtonSaveCommand.DoSave();
|
|
|
+ }
|
|
|
+
|
|
|
/// <summary>
|
|
|
/// 加载ComBox品牌数据
|
|
|
/// </summary>
|
|
|
@@ -194,6 +175,11 @@ namespace UAS_DeviceMonitor
|
|
|
|
|
|
}
|
|
|
|
|
|
+ /// <summary>
|
|
|
+ /// 设置GridView下拉框的值
|
|
|
+ /// </summary>
|
|
|
+ /// <param name="sender"></param>
|
|
|
+ /// <param name="e"></param>
|
|
|
private void PagePollingSetting_VisibleChanged(object sender, EventArgs e)
|
|
|
{
|
|
|
if (PagePollingSetting.PageVisible)
|