56 lines
1.8 KiB
C#
56 lines
1.8 KiB
C#
|
|
using System;
|
|||
|
|
using System.Net;
|
|||
|
|
using System.Windows.Forms;
|
|||
|
|
using WMS.Business;
|
|||
|
|
using WMS.Business.Base;
|
|||
|
|
|
|||
|
|
|
|||
|
|
namespace WMS.Frm
|
|||
|
|
{
|
|||
|
|
static class Program
|
|||
|
|
{
|
|||
|
|
/// <summary>
|
|||
|
|
/// 应用程序的主入口点。
|
|||
|
|
/// </summary>
|
|||
|
|
[STAThread]
|
|||
|
|
static void Main()
|
|||
|
|
{
|
|||
|
|
// IBussFactory<BussStorageAreaLocation>.Instance().InsertLocationInfo(20, 107, 6, 110);
|
|||
|
|
|
|||
|
|
DevExpress.UserSkins.BonusSkins.Register();
|
|||
|
|
DevExpress.Skins.SkinManager.EnableFormSkins();
|
|||
|
|
Application.EnableVisualStyles();
|
|||
|
|
Application.SetCompatibleTextRenderingDefault(false);
|
|||
|
|
string errText = string.Empty;
|
|||
|
|
try
|
|||
|
|
{
|
|||
|
|
|
|||
|
|
using (FormLogin login = new FormLogin())
|
|||
|
|
{
|
|||
|
|
|
|||
|
|
DialogResult dia = login.ShowDialog();
|
|||
|
|
if (dia ==DialogResult.OK)
|
|||
|
|
{
|
|||
|
|
WMS.Ctrl.LoadForm load = new WMS.Ctrl.LoadForm();
|
|||
|
|
FrmSysFrame frame = new WMS.Frm.FrmSysFrame();
|
|||
|
|
DevExpress.XtraSplashScreen.SplashScreenManager.ShowForm(load, load.GetType(), false, true, false, 70);
|
|||
|
|
DevExpress.XtraSplashScreen.SplashScreenManager.Default.SetWaitFormCaption("");//设置标题
|
|||
|
|
DevExpress.XtraSplashScreen.SplashScreenManager.Default.SetWaitFormDescription("努力加载中...");//设置加载信息
|
|||
|
|
|
|||
|
|
FrmSysFrame.userData = login.userData;
|
|||
|
|
Application.Run(frame);
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
catch (Exception ex)
|
|||
|
|
{
|
|||
|
|
|
|||
|
|
WMS.Common.LogWriteText.WriteLog("登录异常:" + ex.Message.ToString());
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|