|
|
@ -34,11 +34,19 @@ namespace CK.SCP.GrupUniApi.Controller |
|
|
|
{ |
|
|
|
public static void GetNewCtrlList() |
|
|
|
{ |
|
|
|
List<string> _lst = new List<string>(); |
|
|
|
_lst.Add("xxqad_pt_mstr"); |
|
|
|
_lst.Add("xxqad_vd_mstr"); |
|
|
|
_lst.Add("xxqad_vp_mstr"); |
|
|
|
_lst.Add("xxqad_pod_det"); |
|
|
|
_lst.Add("xxqad_prh_det"); |
|
|
|
_lst.Add("xxqad_pprice_det"); |
|
|
|
_lst.Add("xxqad_ppod_det"); |
|
|
|
UniApiEntities idb = EntitiesFactory.CreateUniApiInstance(); |
|
|
|
idb.Database.CommandTimeout = 60 * 20; |
|
|
|
var tableNameList = EnumHelper.EnumToList<QadTableName>(); |
|
|
|
// var qadCtrlList = idb.xxqad_ctrl.Where(p => p.xxqad_domain == ScpCache.Config.QADÓò && p.xxqad_scm == "0").ToList();
|
|
|
|
var qadCtrlList = idb.xxqad_ctrl.Where(p => p.xxqad_scm == "0" ).ToList(); |
|
|
|
var qadCtrlList = idb.xxqad_ctrl.Where(p => p.xxqad_scm == "0" && _lst.Contains(p.xxqad_table)).ToList(); |
|
|
|
foreach (var qadCtrl in qadCtrlList) |
|
|
|
{ |
|
|
|
if (tableNameList.All(p => p.Name != qadCtrl.xxqad_table)) continue; |
|
|
|