public static void FillterSql(String tableName, String action, String jsonKeys) { Task.Factory.StartNew(() => { if (Enum.TryParse(tableName, out TableName table) && Enum.TryParse(action, out TableAction tableAction)) { UtilsSystimeCore.ResolverIntanceFromTable <IManager>(table).FillterAccionSql(new Config(false, false), jsonKeys, tableAction); } }); Task.Factory.StartNew(() => { if (Enum.TryParse(tableName, out TableName table) && Enum.TryParse(action, out TableAction tableAction)) { UtilsSystimeCore.ResolverIntanceFromTable <IManager>(table).FillterAccionSql(new Config(true, false), jsonKeys, tableAction); } }); Task.Factory.StartNew(() => { if (Enum.TryParse(tableName, out TableName table) && Enum.TryParse(action, out TableAction tableAction)) { UtilsSystimeCore.ResolverIntanceFromTable <IManager>(table).FillterAccionSql(new Config(false, true), jsonKeys, tableAction); } }); }
public static void RefreshWorkORderTest(String tableName, DateTime dateTime) { if (Enum.TryParse(tableName, out TableName table)) { UtilsSystimeCore.ResolverIntanceFromTable <IManager>(table).RefresgFromTime(new Config(false, false), dateTime); } }
public static void RefreshSql(String tableName, DateTime dateTime) { Task.Factory.StartNew(() => { if (Enum.TryParse(tableName, out TableName table)) { UtilsSystimeCore.ResolverIntanceFromTable <IManager>(table).RefresgFromTime(new Config(false, false), dateTime); } }); }
public static void FillterTestSql(String tableName, String action, String jsonKeys) { if (Enum.TryParse(tableName, out TableName table) && Enum.TryParse(action, out TableAction tableAction)) { //SqlContext.Pipe?.Send("aquui1111"+ tableName+","+ action+","+ jsonKeys); //UtilsSystimeCore.ResolverIntanceFromTable<IManager>(table).FillterAccionSql(new Config(false, false), jsonKeys, tableAction); UtilsSystimeCore.ResolverIntanceFromTable <IManager>(table).FillterAccionSql(new Config(true, false), jsonKeys, tableAction); //UtilsSystimeCore.ResolverIntanceFromTable<IManager>(table).FillterAccionSql(new Config(false, true), jsonKeys, tableAction); //SqlContext.Pipe?.Send("aquui"); } }
public static void MigrateErpToSystimeSqlTest(String tableName, String year) { //Task.Factory.StartNew(() => //{ // if (Enum.TryParse(tableName, out TableName table) && int.TryParse(year, out int yea)) // UtilsSystimeCore.ResolverIntanceFromTable<IManager>(table).MigrateAll(new Config(false, true), null, yea); //}); //Task.Factory.StartNew(() => //{ // if (Enum.TryParse(tableName, out TableName table) && int.TryParse(year, out int yea)) // UtilsSystimeCore.ResolverIntanceFromTable<IManager>(table).MigrateAll(new Config(true, false), null, yea); //}); Task.Factory.StartNew(() => { if (Enum.TryParse(tableName, out TableName table) && int.TryParse(year, out int yea)) { UtilsSystimeCore.ResolverIntanceFromTable <IManager>(table).MigrateAll(new Config(true, false), null, yea); } }).Wait(); }
public bool SyncNotifyItemErp(Config.Config config, NotificationSystimeIntegrate itemNotify) { ParamsIntegrateErp configIntegrateErp = config.GetConfigIntegrate(); Boolean? SupoortItem = null; Object objectResponseSync = null; if (Enum.TryParse(itemNotify.TableName, out TableName table) && Enum.TryParse(itemNotify.Event, out TableAction actionTable)) { SupoortItem = UtilsSystimeCore.ResolverIntanceFromTable <IManager>(table).SuportItemData(config, itemNotify.JsonKeys, actionTable); if (SupoortItem.HasValue && SupoortItem.Value) { objectResponseSync = UtilsSystimeCore.ResolverIntanceFromTable <IManager>(table).FillterAccionSql(config, itemNotify.JsonKeys, actionTable); } } else { SupoortItem = false; } if ((Enum.TryParse(configIntegrateErp.DllType, out ErpsTypes dllType) && objectResponseSync != null) || (SupoortItem.HasValue && !SupoortItem.Value)) { return(DataAccesErpContract.DeleteNotificationSystime(itemNotify.IdNotification, configIntegrateErp.ConfigParamsToErp, dllType)); } return(false); }