|
using System;
|
using System.Collections.Generic;
|
using System.ComponentModel;
|
using System.Data;
|
using System.Drawing;
|
using System.Linq;
|
using System.Text;
|
using System.Threading.Tasks;
|
using System.Windows.Forms;
|
//using HH.WMS.Common.RabbitMQ;
|
using HH.WMS.CoreServer.MQ.Subscribe;
|
using HH.WMS.Entitys.Basic;
|
using Newtonsoft.Json;
|
using HH.WMS.Entitys.Algorithm;
|
using HH.WMS.Entitys;
|
using HH.WMS.Entitys.Common;
|
using MongoDB.Bson;
|
using DataAynchronization;
|
|
namespace HH.WMS.CoreServer
|
{
|
public partial class CoreMain : Form
|
{
|
public static CoreMain thisMain;
|
public static CoreMain GetInstance()
|
{
|
if (thisMain == null)
|
thisMain = new CoreMain();
|
return thisMain;
|
}
|
|
public CoreMain()
|
{
|
CheckForIllegalCrossThreadCalls = false;
|
InitializeComponent();
|
|
this.IsMdiContainer=true;//设置父窗体是容器
|
DataMove mySon = new DataMove();//实例化子窗体
|
mySon.TopLevel = false;
|
mySon.MdiParent=this;//设置窗体的父子关系
|
mySon.Parent=panel1;//设置子窗体的容器为父窗体中的Panel
|
panel1.Controls.Add(mySon);
|
mySon.Dock = DockStyle.Fill;
|
mySon.Show();//显示子窗体,此句很重要,否则子窗体不会显示
|
|
//DataMove dm = new DataMove();
|
//dm.Show();
|
}
|
|
//private void btnStartMqConsumer_Click(object sender, EventArgs e)
|
//{
|
// OpLogProcessMessage order = new OpLogProcessMessage();
|
// HH.WMS.Common.RabbitMQ.Message msg = new HH.WMS.Common.RabbitMQ.Message();
|
// msg.MessageID = "1";
|
// msg.MessageRouter = "hh.wms.orderOpLog";
|
|
// MQHelper.Subscribe(msg, order);
|
|
//}
|
|
private void button1_Click(object sender, EventArgs e)
|
{
|
U8DataTrans.DataTrans da = new U8DataTrans.DataTrans();
|
da.Start();
|
}
|
|
public enum TableName
|
{
|
Inventory, //物料档案表
|
Warehouse, //仓库档案表
|
Customer, //客户档案表
|
Vendnr, //供应商表
|
|
Rdrecord01, //采购入库单主表
|
Rdrecords01, //采购入库单子表
|
Rdrecord08, //其他入库单主表
|
Rdrecords08, //其他入库单子表
|
Rdrecord10, //产成品入库单主表
|
Rdrecords10, //产成品入库单子表
|
|
Rdrecord09, //其他出库单主表
|
Rdrecords09, //其他出库单子表
|
Rdrecord32, //销售出库单主表
|
Rdrecords32, //销售出库单子表
|
|
TransVouch, //调拨单主表
|
TransVouchs //调拨单子表
|
}
|
|
}
|
}
|