Program.cs 3.26 KB
using System;
using System.Collections.Generic;
using System.Linq;

namespace HHECS.Test
{
    class Program
    {
        static void Main(string[] args)
        {
            try
            {
                //DALHelper.Constr = "server=172.16.29.45;user id=root;password=hhsoftware;persistsecurityinfo=True;database=huahengwcs4;SslMode=none;Charset=utf8mb4;Allow User Variables=True";
                ////DALHelper.SyncTable();
                ////生成设备类型 -- 示例
                //GenTools.GenEquipmentType_PLCHeartbeat(true);
                //GenTools.GenEquipmentType_SingleForkSRM(true);//单叉堆垛机
                //GenTools.GenEquipmentType_DoubleForkSRM(true);//双叉堆垛机
                //GenTools.GenEquipmentType_SingleForkSSRM(true);//单叉高速堆垛机

                //GenTools.GenEquipmentType_Station(EquipmentTypeConst.StationForPortIn, needRequest: true, delete: true);
                //GenTools.GenEquipmentType_Station(EquipmentTypeConst.StationForPortOut, needArrive: true, delete: true);
                //GenTools.GenEquipmentType_Station(EquipmentTypeConst.StationForPortInOrOut, needRequest: true, needArrive: true, delete: true);

                //GenTools.GenEquipmentType_Station(EquipmentTypeConst.StationForSRMIn, needArrive: true, delete: true);
                //GenTools.GenEquipmentType_Station(EquipmentTypeConst.StationForSRMOut, needRequest: true, delete: true);
                //GenTools.GenEquipmentType_Station(EquipmentTypeConst.StationForSRMInOrOut, needRequest: true, needArrive: true, delete: true);

                //GenTools.GenEquipmentType_StationMonitor(true);

                ////生成PLC及设备数据 -- 示例

                ////添加PLC
                //GenTools.GenPLC(GenModelProvider.TestGenPLCModels(), true);
                ////添加堆垛机
                //GenTools.GenSRM(GenModelProvider.TestGenStockers(), true);
                ////入库口、分拣口、出口库、接入接触站台
                //GenTools.GenStation(GenModelProvider.TestGetStationGenModels(), "192.168.10.30", "CS0001", true);
                ////站台监控
                //GenTools.GenStationMonitor(3002, 1001, 1020, new int[] { 1005, 1009 }, "192.168.10.30", "W0001", delete: true, offsetstart: 0);
                //GenTools.GenStationMonitor(3002, "192.168.10.30", "W0001", delete: true, offsetstart: 0, new int[] { 1001, 1006, 1008, 1004, 1003, 2001, 2009 });
                ////字典刷新
                //GenTools.GenDictDetail(GenModelProvider.TestGetDictDetailGenModels(), true);
                ////添加路由
                //GenTools.GenABCRoute(GenModelProvider.TestGetABCRouteModels(), true);

                ////库位
                //LocationTools.CreateLocations(GenModelProvider.GetLocationAddModels(), true);

                //LocationTools.DeleteLocations(rowBeging:5, rowEnd:5, columnBeging:11, columnEnd:12, layerBeging:1, layerEnd:7, "W0001");
                //LocationTools.DeleteLocations(rowBeging: 1, rowEnd: 8, columnBeging: 27, columnEnd: 27, layerBeging: 1, layerEnd: 7, "W0001");

                Console.WriteLine("生成成功!");
                Console.Read();
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex);
            }
        }

    }


}