using CommonFunc.Tools; using CommonFunc; using System; using System.Collections.Generic; using System.Data; 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; using XGL.Dats.DBServiceFinishProd; namespace XGLFinishPro.Views { /// /// firstInspection.xaml 的交互逻辑 /// public partial class firstInspection : UserControl { FinishProdDBService userDbWareHouse = new FinishProdDBService(); public firstInspection() { InitializeComponent(); } private void UserControl_Loaded(object sender, RoutedEventArgs e) { GetInfo(); } private void GetInfo() { try { DataTable dt = userDbWareHouse.GetOperationShouJian(LoginUser.WorkDate, Utils.GetAppSetting("DeviceCode")); if (dt == null) return; this.datagrid1.ItemsSource = dt.DefaultView; } catch (Exception ex) { LogHelper.instance.log.Error("获取完成记录信息时发生异常:" + ex.Message); } } private void datagrid1_LoadingRow(object sender, DataGridRowEventArgs e) { e.Row.Header = (e.Row.GetIndex() + 1).ToString(); } } }