优化web查询 新增学员数据 尝试64位软件
This commit is contained in:
1 parent
30beb00fc4
commit
caba307ed1
44 files changed
+738
-1769
No files matched your search
+42
-11
@@ -1,15 +1,17 @@
|
||||
using System;
|
||||
using AllBase;
|
||||
using AllBase.Helper;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Diagnostics;
|
||||
using System.Drawing;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
using AllBase;
|
||||
using AllBase.Helper;
|
||||
//using TemuKJD.ChatForms;
|
||||
//using TemuKJD.DashBoardForms;
|
||||
using TemuKJD.BaseForms;
|
||||
@@ -62,6 +64,11 @@ namespace TemuKJD
|
||||
pnlChat.Visible = false;
|
||||
//pnlUpload_Click(null, null);
|
||||
}
|
||||
if (BaseClass.ForbiddenPage.Contains("拍单"))
|
||||
{
|
||||
pnlPurchase.Visible = false;
|
||||
//pnlUpload_Click(null, null);
|
||||
}
|
||||
}
|
||||
this.pnlChat.StyleMouseOver.BorderColor.Color = GlobalConfig.BorderColor;
|
||||
this.pnlUploadGoods.StyleMouseOver.BorderColor.Color = GlobalConfig.BorderColor;
|
||||
@@ -87,21 +94,45 @@ namespace TemuKJD
|
||||
Hide();
|
||||
}
|
||||
|
||||
[DllImport("user32.dll")]
|
||||
[return: MarshalAs(UnmanagedType.Bool)]
|
||||
static extern bool SetForegroundWindow(IntPtr hWnd);
|
||||
private void panel3_Click(object sender, EventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
Process p = new Process();
|
||||
p.StartInfo.FileName = "FindLittleRabbitOrder.exe";
|
||||
p.StartInfo.Arguments = BaseClass.UserName + " " + BaseClass.PassWord;
|
||||
p.StartInfo.UseShellExecute = true;
|
||||
p.StartInfo.Verb = "runas";
|
||||
p.Start();
|
||||
Process.GetCurrentProcess().Kill();
|
||||
if (File.Exists("29WxFindOrder.exe"))
|
||||
{
|
||||
Process p = new Process();
|
||||
p.StartInfo.FileName = "29WxFindOrder.exe";
|
||||
//p.StartInfo.Arguments = "user_name:" + BaseClass.UserName + " " + "user_name:" + BaseClass.PassWord;
|
||||
p.StartInfo.Arguments = BaseClass.UserName + " " + BaseClass.PassWord;
|
||||
// 新版cef不能使用管理员权限启动,否则win10下会报错
|
||||
//p.StartInfo.UseShellExecute = true;
|
||||
p.StartInfo.UseShellExecute = false;
|
||||
// "runas" 权限继承主程序
|
||||
//p.StartInfo.Verb = "runas";
|
||||
|
||||
p.Start();
|
||||
|
||||
// 强制客服窗口打开时在最上层,win10可能会导致错误
|
||||
p.WaitForInputIdle();
|
||||
IntPtr hWnd = p.MainWindowHandle;
|
||||
if (hWnd != IntPtr.Zero)
|
||||
{
|
||||
// 尝试将窗口设为最顶层窗口
|
||||
SetForegroundWindow(hWnd);
|
||||
}
|
||||
|
||||
Process.GetCurrentProcess().Kill();
|
||||
}
|
||||
else
|
||||
{
|
||||
BaseMsgForm.ShowInfo("未找到拍单程序启动文件");
|
||||
}
|
||||
}
|
||||
catch
|
||||
{
|
||||
BaseMsgForm.ShowInfo("未找到拍单王启动文件");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user