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.

63 lines
1.6 KiB
C#

using CommonFunc;
using CommonFunc.Tools;
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.Data.DBService;
using XGL.Dats.DBServiceFinishProd;
using XGL.Models.Model.FoamingMac;
namespace XGLFinishPro.Views
{
/// <summary>
/// LanJu_Complete.xaml 的交互逻辑
/// </summary>
public partial class LanJu_Complete : UserControl
{
FinishProdDBService userDbWareHouse = new FinishProdDBService();
public LanJu_Complete()
{
InitializeComponent();
}
private void UserControl_Loaded(object sender, RoutedEventArgs e)
{
GetInfo();
}
private void GetInfo()
{
try
{
DataTable dt = userDbWareHouse.GetCompleteHistoryList(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();
}
}
}