You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
101 lines
2.9 KiB
101 lines
2.9 KiB
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;
|
|
using System.Windows.Threading;
|
|
|
|
namespace formula_manage
|
|
{
|
|
/// <summary>
|
|
/// MainWindow.xaml 的交互逻辑
|
|
/// </summary>
|
|
public partial class MainWindow : Window
|
|
{
|
|
public MainWindow()
|
|
{
|
|
WindowStartupLocation = WindowStartupLocation.CenterScreen;
|
|
InitializeComponent();
|
|
}
|
|
public string INIPath = Convert.ToString(System.AppDomain.CurrentDomain.BaseDirectory) + "formula.ini";
|
|
|
|
string Prepose; //料单前置
|
|
|
|
private void Window_MIN(object sender, RoutedEventArgs e)
|
|
{
|
|
|
|
UserClass.IniFile.IniFiles Configini = new UserClass.IniFile.IniFiles(INIPath);
|
|
Prepose = Configini.IniReadvalue("SOFTWARE_SET", "L3"); //自定义料单前缀
|
|
Number.Text = Prepose + System.DateTime.Now.ToString("yyyyMMddHHmmss"); //生成料单号
|
|
|
|
}
|
|
private void SQL(object sender, RoutedEventArgs e)
|
|
{
|
|
Windows.Sql sql= new Windows.Sql();
|
|
sql.ShowDialog();//实例化并置顶打开数据库设置窗口
|
|
}
|
|
|
|
private void SQLBAK(object sender, RoutedEventArgs e)
|
|
{
|
|
Windows.SQL_BAK sqlbak = new Windows.SQL_BAK();
|
|
sqlbak.ShowDialog();//实例化并置顶打开数据库备份窗口
|
|
}
|
|
private void SOFTWARE_SET(object sender, RoutedEventArgs e)
|
|
{
|
|
Windows.APP_set APP_set = new Windows.APP_set();
|
|
APP_set.ShowDialog();//实例化并置顶打开设置窗口
|
|
}
|
|
|
|
private void HELP(object sender, RoutedEventArgs e)
|
|
{
|
|
Help help_page = new Help();
|
|
help_page.ShowDialog();//实例化并置顶打开信息窗口
|
|
}
|
|
|
|
private void STUFF(object sender, RoutedEventArgs e)
|
|
{
|
|
Windows.Stuff stuff = new Windows.Stuff();
|
|
stuff.ShowDialog();//实例化并置顶打开设置窗口
|
|
}
|
|
|
|
private void print(object sender, RoutedEventArgs e)
|
|
{
|
|
|
|
}
|
|
|
|
private void confirm(object sender, RoutedEventArgs e)
|
|
{
|
|
|
|
}
|
|
|
|
private void delete(object sender, RoutedEventArgs e)
|
|
{
|
|
|
|
}
|
|
|
|
private void save(object sender, RoutedEventArgs e)
|
|
{
|
|
|
|
}
|
|
|
|
private void Button_Click(object sender, RoutedEventArgs e)
|
|
{
|
|
Number.Text = Prepose + System.DateTime.Now.ToString("yyyyMMddHHmmss"); ;
|
|
}
|
|
|
|
private void Button_Click1(object sender, RoutedEventArgs e)
|
|
{
|
|
|
|
}
|
|
|
|
}
|
|
}
|
|
|