using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace SlMesDbIterface
{
    static class Program
    {
        public static int WebSvrPort = Convert.ToInt32(ConfigurationManager.AppSettings["WebSvrPort"]);
        public static string ConnectionString = ConfigurationManager.AppSettings["ConnectionString"];
        public static string MySqlConnectString = ConfigurationManager.AppSettings["MySqlConnectString"];

        public static string interfaceIDField = ConfigurationManager.AppSettings["interfaceIDField"];
        public static string messageIDField = ConfigurationManager.AppSettings["messageIDField"];
        public static string receiverField = ConfigurationManager.AppSettings["receiverField"];
        public static string senderField = ConfigurationManager.AppSettings["senderField"];
        public static string transIDField = ConfigurationManager.AppSettings["transIDField"];
        public static string changeUploadUrl = ConfigurationManager.AppSettings["changeUploadUrl"];
        public static string reportUploadUrl = ConfigurationManager.AppSettings["HL_urlStr"];
        public static string andonAbnormalUploadUr = ConfigurationManager.AppSettings["HL_urlStr"];
        public static string emptyContainerRecoveryUploadUr = ConfigurationManager.AppSettings["HL_urlStr"];
        public static string temporaryChangeUploadUrl = ConfigurationManager.AppSettings["HL_urlStr"];

        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        [STAThread]
        static void Main()
        {
            bool bCanRun = false;
            System.Threading.Mutex mutex = new System.Threading.Mutex(true, "InterfaceUpLoad", out bCanRun);
            if (!bCanRun)
            {
                MessageBox.Show("接口数据上传 程序 正在运行！不可重复启动！");
                return;
            }
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new Form_MoveSqlTable());
        }











    }
}
