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.
56 lines
1.7 KiB
56 lines
1.7 KiB
using System;
|
|
using System.Collections.Generic;
|
|
using System.Windows.Forms;
|
|
using Stone.Common;
|
|
|
|
namespace Stone.WinForm
|
|
{
|
|
static class Program
|
|
{
|
|
/// <summary>
|
|
/// 应用程序的主入口点。
|
|
/// </summary>
|
|
[STAThread]
|
|
static void Main(string[] args)
|
|
{
|
|
|
|
try
|
|
{
|
|
if (args.Length == 0)
|
|
{
|
|
Application.EnableVisualStyles();
|
|
Application.SetCompatibleTextRenderingDefault(false);
|
|
|
|
if (Stone.User.UserInfo.Login() == DialogResult.OK)
|
|
{
|
|
Application.Run(new frmMain());
|
|
}
|
|
}
|
|
else
|
|
{
|
|
Gm_WMS.DataAccess.DataService.LocalDBService.m_conn = User.UserInfo.sqlconnstring();
|
|
|
|
if (args[0] == "启动看板=装配看板")
|
|
{
|
|
Application.EnableVisualStyles();
|
|
Application.SetCompatibleTextRenderingDefault(false);
|
|
Application.Run(new Stone.WinModule.AssembleAdmin.frmViewAssemblyNew());
|
|
}
|
|
|
|
if (args[0] == "启动看板=预排序看板")
|
|
{
|
|
Application.EnableVisualStyles();
|
|
Application.SetCompatibleTextRenderingDefault(false);
|
|
Application.Run(new Stone.WinModule.AssembleAdmin.frmSortView());
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
MyMessageBox.ShowErrorMessage(ex.Message);
|
|
}
|
|
}
|
|
}
|
|
}
|