sync
This commit is contained in:
@@ -7,8 +7,8 @@ using IronIntel.Contractor.MapView;
|
||||
using IronIntel.Contractor.Users;
|
||||
using IronIntel.Contractor.Machines;
|
||||
using IronIntel.Contractor;
|
||||
using IronIntel.DataModel;
|
||||
using IronIntel.DataModel.Admin.Customers;
|
||||
using FI.FIC.Extention;
|
||||
|
||||
|
||||
namespace ConsoleApplication1
|
||||
{
|
||||
@@ -16,42 +16,30 @@ namespace ConsoleApplication1
|
||||
{
|
||||
static void Main(string[] args)
|
||||
{
|
||||
// IronIntelHostEnvironment.InitHost(new IronIntelDebugHost());
|
||||
string fn = "IronIntel.Contractor.FICExtDataTable.AssetTripsDataTable,iicontractorbl";
|
||||
|
||||
// Test1();
|
||||
Type intftype = typeof(IExtDataTable);
|
||||
Type tp = Type.GetType(fn);
|
||||
if (!tp.IsAbstract && tp.IsClass &&tp.IsPublic&& tp.GetInterface(intftype.FullName) != null)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
IExtDataTable ext = Activator.CreateInstance(tp) as IExtDataTable;
|
||||
|
||||
Console.WriteLine(ext.ID);
|
||||
|
||||
Guid gd = new Guid("10000000-0000-0000-0000-100000000001");
|
||||
|
||||
ContractorHost.Init();
|
||||
|
||||
|
||||
testdemo();
|
||||
Console.ReadLine();
|
||||
}
|
||||
|
||||
private static void Test1()
|
||||
{
|
||||
var cm = IronIntelHostEnvironment.GetCustomerManager();
|
||||
var db= cm.GetCustomerDatabaseInfo("Foresight", "IRONINTEL_ADMINDB");
|
||||
Console.WriteLine(db.ToString());
|
||||
//var loc = cm.GetLocationManager("IRONDEV");
|
||||
|
||||
//var locs = loc.GetCustomerLocations();
|
||||
//Console.WriteLine(locs.ToString());
|
||||
}
|
||||
|
||||
private static void testlogin()
|
||||
{
|
||||
var lm = IronIntelHostEnvironment.GetLoginManager();
|
||||
|
||||
lm.DeleteUser("6D3A02C7-FC25-47C0-A7A4-97D470EA4CC5", true);
|
||||
|
||||
// Console.WriteLine(r.ToString());
|
||||
}
|
||||
|
||||
private static void testdemo()
|
||||
{
|
||||
var usermanager = ContractorHost.Instance.GetContractorManager<IronIntel.DataModel.Contractor.Users.UserManager>();
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user