|
|
@ -278,25 +278,6 @@ namespace SunlightCentralizedControlManagement_SCCM_.View |
|
|
|
|
|
|
|
}//工艺修改事件
|
|
|
|
|
|
|
|
private void color_color_MouseDoubleClick(object sender, MouseButtonEventArgs e)//颜色
|
|
|
|
{ |
|
|
|
System.Windows.Forms.ColorDialog colorDialog = new System.Windows.Forms.ColorDialog();//使用调色盘控件ColorDialog
|
|
|
|
if (colorDialog.ShowDialog() == System.Windows.Forms.DialogResult.OK)//打开调色盘
|
|
|
|
{ |
|
|
|
|
|
|
|
System.Drawing.Color DColor = colorDialog.Color;////获取选中色彩信息
|
|
|
|
//System.Windows.Media.Color MColor = new System.Windows.Media.Color();//转换
|
|
|
|
System.Windows.Media.Color MColor = System.Windows.Media.Color.FromArgb(DColor.A, DColor.R, DColor.G, DColor.B);//转换并配置ARGB参数
|
|
|
|
// color_color.Background = new SolidColorBrush(MColor);//ARGB参数输出至Color的背景色
|
|
|
|
//string colorCode = string.Format("{0:X2}", DColor.B) + string.Format("{0:X2}", DColor.G) + string.Format("{0:X2}", DColor.R);//反向十六进制RGB
|
|
|
|
//string colorCode = string.Format("{0:X2}", DColor.R) + string.Format("{0:X2}", DColor.G) + string.Format("{0:X2}", DColor.B);//正向十六进制RGB
|
|
|
|
//ColorCode_SQL = Convert.ToInt32(colorCode, 16);//十六进制RGB转存储数值
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
//string ProgramID;
|
|
|
|
//string ProgramNAME;
|
|
|
|
string Numder = null; |
|
|
|
string ID = null; |
|
|
|
string P1, P2, P3, P4, P5; |
|
|
@ -390,6 +371,21 @@ namespace SunlightCentralizedControlManagement_SCCM_.View |
|
|
|
|
|
|
|
Grid_data.ItemsSource = dat.DefaultView; |
|
|
|
} |
|
|
|
|
|
|
|
private void comboBoxWorkOrder_KeyDown(object sender, KeyEventArgs e) |
|
|
|
{ |
|
|
|
if (e.Key == Key.Enter) |
|
|
|
{ |
|
|
|
try |
|
|
|
{ |
|
|
|
//do what you want
|
|
|
|
} |
|
|
|
catch (Exception ex) |
|
|
|
{ |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
public void Dat()//行号刷新
|
|
|
|
{ |
|
|
|
int a = dat.Rows.Count; |
|
|
|