using Newtonsoft.Json;
using Oracle.ManagedDataAccess.Client;
using System;
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
using System.IO;
using System.Net;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace Gs.DevApp.DevFrm.Sys
{
public partial class EasyCode : DevExpress.XtraEditors.XtraForm
{
//this.txt_sqlconn.Text = "Data Source=2kn4sh70028.vicp.fun,26144;Initial Catalog=gs_Mes;User ID=sa;Password =admin110";
string sqlCon = "Data Source=192.168.1.146;Initial Catalog=GS_MES;User ID=sa;Password =qixi123";
string oracleCon = "User Id=system;Password=admin110;Data Source=localhost:1521/MYTEST2;";
public EasyCode()
{
InitializeComponent();
getTable();
this.btnPathSelect.Click += (s, e) =>
{
string _GetfilePath = FileSelector.BrowseFilePathForSave();
txtPath.Text = _GetfilePath;
};
this.btnUpSelect.Click += BtnUpSelect_Click;
this.btnUp.Click += BtnUp_Click;
}
#region 代码生成
///
/// 确定生成
///
///
///
private void btnOk_Click(object sender, EventArgs e)
{
if (txt_table.EditValue == null || string.IsNullOrEmpty(txt_table.EditValue.ToString()))
{
MessageBox.Show("请选择表");
return;
}
if (txtPath.Text.Trim() == "")
{
MessageBox.Show("请选择生成路径");
return;
}
string _strName = _getClassName();
List