Repository navigation
Expand file tree
/
Copy pathProgram.cs
More file actions
106 lines (75 loc) · 2.72 KB
/
Copy pathProgram.cs
File metadata and controls
106 lines (75 loc) · 2.72 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
using GoumangToolKit;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
using IronPython;
using IronPython.Hosting;
using Microsoft.Scripting.Hosting;
namespace AUTORIVET_KAOHE
{
static class Program
{
public static bool ManagerActived = false;
private static string userid;
// private static string infopath;
public static System.Data.DataTable prodTable;
public static frmClient fff;
public static Dictionary<string, string> procDic = new Dictionary<string, string>();
// public static PRODLIST prodTable;
public static string userID
{
get
{
return userid;
}
set
{
var ftchID = DbHelperSQL.getlist("select PRIVILEGE from People where ID='" + value + "';");
if (ftchID.Count() > 0)
{
if (ftchID.First() == "0")
{
Program.ManagerActived = true;
//MainTeamForm f = (MainTeamForm)FormMethod.GetForm("Form1");
//f.ActiveManager();
}
}
// FormMethod.get_Form("")
userid = value;
}
}
public static string InfoPath
{
get {
ScriptEngine engine = Python.CreateEngine();
ScriptScope scope = engine.CreateScope();
engine.ExecuteFile(@"\\192.168.3.32\softwareTools\Autorivet_team_manage\settings\configuration.py", scope);
return scope.GetVariable("InfoPath");
}
set
{
ScriptEngine engine = Python.CreateEngine();
ScriptScope scope = engine.CreateScope();
engine.ExecuteFile(@"\\192.168.3.32\softwareTools\Autorivet_team_manage\settings\configuration.py", scope);
scope.SetVariable("InfoPath",value);
}
}
/// <summary>
/// 应用程序的主入口点。
/// </summary>
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
//向客户机添加凭据
FormMethod.creatCredential();
Program.prodTable = AutorivetDB.fullname_table("图号,名称,站位号,程序编号");
Program.userID = FormMethod.GetMachineName();
Application.Run(new MainTeamForm());
//Application.Run(new AO());
}
}
}