Browse Source

调整。

master
yibo 7 years ago
parent
commit
d6572ca045
3 changed files with 360 additions and 1419 deletions
  1. +1
    -2
      ButcherManage.BO/Utils/FormUtil.cs
  2. +9
    -1
      ButcherManage.Tools/MainWindow.xaml.cs
  3. +350
    -1416
      Setup/Setup.vdproj

+ 1
- 2
ButcherManage.BO/Utils/FormUtil.cs View File

@ -12,8 +12,7 @@ namespace ButcherManage.BO.Utils
{
public static Form CreateFrom()
{
//var dll = Path.Combine(Environment.CurrentDirectory, "ButcherManage.Form.dll");
var dll = Path.Combine(@"C:\BwpB3Project\src\B3ButcherManageClient\ButcherManage.Form\bin\Debug", "ButcherManage.Form.dll");
var dll = Path.Combine(Directory.GetCurrentDirectory(), "ButcherManage.Form.dll");
if (!File.Exists(dll))
throw new Exception("缺少必要的程序集文件 ButcherManage.Form.dll");


+ 9
- 1
ButcherManage.Tools/MainWindow.xaml.cs View File

@ -41,7 +41,15 @@ namespace ButcherManage.Tools
{
if (!AppContext.ConnectInfo.LocalOffline)
throw new Exception("非离线模式无需升级数据库");
DbUtil.UpdateDatabase(AppContext.ConnectInfo.SqlConnection);
try
{
DbUtil.UpdateDatabase(AppContext.ConnectInfo.SqlConnection);
}
catch (Exception ex)
{
MessageBox.Show(string.Format("错误:{0}。详情:{1}", ex.Message, ex.StackTrace));
return;
}
MessageBox.Show("数据库升级成功");
}


+ 350
- 1416
Setup/Setup.vdproj
File diff suppressed because it is too large
View File


Loading…
Cancel
Save