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.

86 lines
2.3 KiB
C#

using CommonFunc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
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.Shapes;
using XGL.Data;
using XGL.Models;
using CentralControl.BaseData;
using CentralControl.DBDAO;
namespace XGL.FormItem
{
/// <summary>
/// FormBoard.xaml 的交互逻辑
/// </summary>
public partial class FormBoard : Window
{
public FormBoard()
{
InitializeComponent();
}
private void Window_Loaded(object sender, RoutedEventArgs e)
{
try
{
}
catch (Exception ex)
{
MethodInfo method = (MethodInfo)MethodBase.GetCurrentMethod();
Common.Log.Error(method.DeclaringType.FullName + "-" + method.Name + "\r\n" + ex.Message + "\r\n" + ex.StackTrace);
}
}
private void btnExit_Click(object sender, RoutedEventArgs e)
{
try
{
}
catch (Exception ex)
{
MethodInfo method = (MethodInfo)MethodBase.GetCurrentMethod();
Common.Log.Error(method.DeclaringType.FullName + "-" + method.Name + "\r\n" + ex.Message + "\r\n" + ex.StackTrace);
}
}
private void BindPlan()
{
try
{
using (basedata_orderplanDb orderplanDb = new basedata_orderplanDb())
{
List<vbasedata_orderplanModel> models = orderplanDb.GetVList("");
gridPlan.ItemsSource = models;
gridPlan.Items.Refresh();
}
}
catch (Exception ex)
{
MethodInfo method = (MethodInfo)MethodBase.GetCurrentMethod();
Common.Log.Error(method.DeclaringType.FullName + "-" + method.Name + "\r\n" + ex.Message + "\r\n" + ex.StackTrace);
}
}
/// <summary>
/// 绑定实时库存
/// </summary>
private void BindKC()
{
}
}
}