You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
64 lines
1.6 KiB
C#
64 lines
1.6 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using System.Windows;
|
|
using System.Windows.Controls;
|
|
using System.Windows.Data;
|
|
using System.Windows.Documents;
|
|
using System.Windows.Input;
|
|
using System.Windows.Media;
|
|
using System.Windows.Media.Imaging;
|
|
using System.Windows.Navigation;
|
|
using System.Windows.Shapes;
|
|
|
|
namespace XGLFinishPro.Tools
|
|
{
|
|
/// <summary>
|
|
/// ModuleUC.xaml 的交互逻辑
|
|
/// </summary>
|
|
public partial class ModuleUC : UserControl
|
|
{
|
|
string rfid = string.Empty;
|
|
string order = string.Empty;
|
|
string material = string.Empty;
|
|
int time = 0;
|
|
string boardID = string.Empty;
|
|
|
|
public ModuleUC()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
public ModuleUC(string bID, string rfid, string orderCode, string materialCode, int times)
|
|
{
|
|
InitializeComponent();
|
|
//temp = t;
|
|
boardID = bID;
|
|
this.TBID.Text = boardID + "#";
|
|
this.TBOrderCode.Text = orderCode;
|
|
this.TBMaterialCode.Text = materialCode;
|
|
this.TBRFID.Text = rfid;
|
|
this.TBTime.Text = times.ToString();
|
|
time = times;
|
|
|
|
//if (string.IsNullOrEmpty(rfid))
|
|
//{
|
|
// this.Background = Brushes.LightGray;
|
|
// return;
|
|
//}
|
|
//if (Convert.ToInt32(time) >= 7)
|
|
//{
|
|
// this.Background = Brushes.LightGray;
|
|
//}
|
|
//else
|
|
//{
|
|
// this.Background = Brushes.LightGray;
|
|
//}
|
|
|
|
}
|
|
|
|
|
|
}
|
|
}
|