49 lines
1.6 KiB
C#
49 lines
1.6 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Configuration;
|
|
using System.Data;
|
|
using System.Drawing;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Windows.Forms;
|
|
using HZQR.Common;
|
|
|
|
namespace ThirdPartyClient
|
|
{
|
|
public partial class MainForm : Form
|
|
{
|
|
public MainForm()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
|
|
private void MainForm_Load(object sender, EventArgs e)
|
|
{
|
|
LogUtil.WriteLog("///------------【老乡鸡数据传输】开始执行------------///");
|
|
|
|
try
|
|
{
|
|
string OracleConnStr = ConfigurationManager.AppSettings["OracleConnStr"].ToString();
|
|
string OracleConnStrEx = ConfigurationManager.AppSettings["OracleConnStrEx"].ToString();
|
|
|
|
Method.OracleHelper oracleHelper = new Method.OracleHelper(OracleConnStr.Split(',')[0],
|
|
OracleConnStr.Split(',')[1], OracleConnStr.Split(',')[2], OracleConnStr.Split(',')[3]);
|
|
Method.OracleHelper oracleHelperEx = new Method.OracleHelper(OracleConnStrEx.Split(',')[0],
|
|
OracleConnStrEx.Split(',')[1], OracleConnStrEx.Split(',')[2], OracleConnStrEx.Split(',')[3]);
|
|
|
|
Method.LXJHelper.pushOrder(oracleHelper, oracleHelperEx);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
LogUtil.WriteLog(ex);
|
|
}
|
|
finally
|
|
{
|
|
LogUtil.WriteLog("///------------【老乡鸡数据传输】执行结束------------///");
|
|
}
|
|
|
|
Environment.Exit(0);
|
|
}
|
|
}
|
|
}
|