Compare commits
No commits in common. "f9823ff108cd16d3e23652b9566cc60b8a51c136" and "0e66fec5163081744db817a0b8aa4cda319237a1" have entirely different histories.
f9823ff108
...
0e66fec516
|
@ -32,8 +32,7 @@
|
||||||
AutoReset = true
|
AutoReset = true
|
||||||
};
|
};
|
||||||
messageTimer.Elapsed += new ElapsedEventHandler(GetCLData);
|
messageTimer.Elapsed += new ElapsedEventHandler(GetCLData);
|
||||||
//messageTimer.Interval = 1000 * 60 * 60 * 24;// 60分钟 60000 * adTimeJ;
|
messageTimer.Interval = 1000 * 60 * 60 * 24;// 60分钟 60000 * adTimeJ;
|
||||||
messageTimer.Interval = 1000 * 60;// 60分钟 60000 * adTimeJ;
|
|
||||||
messageTimer.Start();
|
messageTimer.Start();
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
@ -45,149 +44,22 @@
|
||||||
var projects = from x in Funs.DB.Base_Project where x.CLProjectCode != null select x;
|
var projects = from x in Funs.DB.Base_Project where x.CLProjectCode != null select x;
|
||||||
foreach (var project in projects)
|
foreach (var project in projects)
|
||||||
{
|
{
|
||||||
|
//getPoDetails(project.CLProjectCode ?? 0);
|
||||||
|
//getIssueDetails(project.CLProjectCode ?? 0);
|
||||||
|
//getPartNoInfo(project.CLProjectCode ?? 0);
|
||||||
getShelvesNo(project.CLProjectCode ?? 0);
|
getShelvesNo(project.CLProjectCode ?? 0);
|
||||||
getSubcontractor(project.CLProjectCode ?? 0);
|
getSubcontractor(project.CLProjectCode ?? 0);
|
||||||
getPipelineMaterialSumListInfo(project.CLProjectCode ?? 0);
|
//getReqDetails(project.CLProjectCode ?? 0);
|
||||||
getContractListInfo(project.CLProjectCode ?? 0);
|
|
||||||
using (var db = new Model.SGGLDB(Funs.ConnString))
|
|
||||||
{
|
|
||||||
Model.Sys_Log syslog = new Model.Sys_Log
|
|
||||||
{
|
|
||||||
LogId = SQLHelper.GetNewID(),
|
|
||||||
HostName = "本地4",
|
|
||||||
OperationTime = DateTime.Now,
|
|
||||||
UserId = BLL.Const.sysglyId,
|
|
||||||
MenuId = BLL.Const.sysglyId,
|
|
||||||
OperationName = "材料软件定时",
|
|
||||||
DataId = "材料软件定时",
|
|
||||||
LogSource = 1,
|
|
||||||
};
|
|
||||||
db.Sys_Log.InsertOnSubmit(syslog);
|
|
||||||
db.SubmitChanges();
|
|
||||||
}
|
|
||||||
getContractListSumInfo(project.CLProjectCode ?? 0);
|
|
||||||
using (var db = new Model.SGGLDB(Funs.ConnString))
|
|
||||||
{
|
|
||||||
Model.Sys_Log syslog = new Model.Sys_Log
|
|
||||||
{
|
|
||||||
LogId = SQLHelper.GetNewID(),
|
|
||||||
HostName = "本地5",
|
|
||||||
OperationTime = DateTime.Now,
|
|
||||||
UserId = BLL.Const.sysglyId,
|
|
||||||
MenuId = BLL.Const.sysglyId,
|
|
||||||
OperationName = "材料软件定时",
|
|
||||||
DataId = "材料软件定时",
|
|
||||||
LogSource = 1,
|
|
||||||
};
|
|
||||||
db.Sys_Log.InsertOnSubmit(syslog);
|
|
||||||
db.SubmitChanges();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
foreach (var project in projects)
|
|
||||||
{
|
|
||||||
getPipelineMaterialListInfo(project.CLProjectCode ?? 0);
|
|
||||||
using (var db = new Model.SGGLDB(Funs.ConnString))
|
|
||||||
{
|
|
||||||
Model.Sys_Log syslog = new Model.Sys_Log
|
|
||||||
{
|
|
||||||
LogId = SQLHelper.GetNewID(),
|
|
||||||
HostName = "本地6",
|
|
||||||
OperationTime = DateTime.Now,
|
|
||||||
UserId = BLL.Const.sysglyId,
|
|
||||||
MenuId = BLL.Const.sysglyId,
|
|
||||||
OperationName = "材料软件定时",
|
|
||||||
DataId = "材料软件定时",
|
|
||||||
LogSource = 1,
|
|
||||||
};
|
|
||||||
db.Sys_Log.InsertOnSubmit(syslog);
|
|
||||||
db.SubmitChanges();
|
|
||||||
}
|
|
||||||
getPipelineMaterialCodeListInfo(project.CLProjectCode ?? 0);
|
|
||||||
using (var db = new Model.SGGLDB(Funs.ConnString))
|
|
||||||
{
|
|
||||||
Model.Sys_Log syslog = new Model.Sys_Log
|
|
||||||
{
|
|
||||||
LogId = SQLHelper.GetNewID(),
|
|
||||||
HostName = "本地7",
|
|
||||||
OperationTime = DateTime.Now,
|
|
||||||
UserId = BLL.Const.sysglyId,
|
|
||||||
MenuId = BLL.Const.sysglyId,
|
|
||||||
OperationName = "材料软件定时",
|
|
||||||
DataId = "材料软件定时",
|
|
||||||
LogSource = 1,
|
|
||||||
};
|
|
||||||
db.Sys_Log.InsertOnSubmit(syslog);
|
|
||||||
db.SubmitChanges();
|
|
||||||
}
|
|
||||||
getPipelineSupplierListInfo(project.CLProjectCode ?? 0);
|
|
||||||
using (var db = new Model.SGGLDB(Funs.ConnString))
|
|
||||||
{
|
|
||||||
Model.Sys_Log syslog = new Model.Sys_Log
|
|
||||||
{
|
|
||||||
LogId = SQLHelper.GetNewID(),
|
|
||||||
HostName = "本地8",
|
|
||||||
OperationTime = DateTime.Now,
|
|
||||||
UserId = BLL.Const.sysglyId,
|
|
||||||
MenuId = BLL.Const.sysglyId,
|
|
||||||
OperationName = "材料软件定时",
|
|
||||||
DataId = "材料软件定时",
|
|
||||||
LogSource = 1,
|
|
||||||
};
|
|
||||||
db.Sys_Log.InsertOnSubmit(syslog);
|
|
||||||
db.SubmitChanges();
|
|
||||||
}
|
|
||||||
getArrivalDetailListInfo(project.CLProjectCode ?? 0);
|
|
||||||
using (var db = new Model.SGGLDB(Funs.ConnString))
|
|
||||||
{
|
|
||||||
Model.Sys_Log syslog = new Model.Sys_Log
|
|
||||||
{
|
|
||||||
LogId = SQLHelper.GetNewID(),
|
|
||||||
HostName = "本地9",
|
|
||||||
OperationTime = DateTime.Now,
|
|
||||||
UserId = BLL.Const.sysglyId,
|
|
||||||
MenuId = BLL.Const.sysglyId,
|
|
||||||
OperationName = "材料软件定时",
|
|
||||||
DataId = "材料软件定时",
|
|
||||||
LogSource = 1,
|
|
||||||
};
|
|
||||||
db.Sys_Log.InsertOnSubmit(syslog);
|
|
||||||
db.SubmitChanges();
|
|
||||||
}
|
|
||||||
getCheckOutDetailListInfo(project.CLProjectCode ?? 0);
|
|
||||||
using (var db = new Model.SGGLDB(Funs.ConnString))
|
|
||||||
{
|
|
||||||
Model.Sys_Log syslog = new Model.Sys_Log
|
|
||||||
{
|
|
||||||
LogId = SQLHelper.GetNewID(),
|
|
||||||
HostName = "本地10",
|
|
||||||
OperationTime = DateTime.Now,
|
|
||||||
UserId = BLL.Const.sysglyId,
|
|
||||||
MenuId = BLL.Const.sysglyId,
|
|
||||||
OperationName = "材料软件定时",
|
|
||||||
DataId = "材料软件定时",
|
|
||||||
LogSource = 1,
|
|
||||||
};
|
|
||||||
db.Sys_Log.InsertOnSubmit(syslog);
|
|
||||||
db.SubmitChanges();
|
|
||||||
}
|
|
||||||
getRequestDetailListInfo(project.CLProjectCode ?? 0);
|
|
||||||
getMTODetailInfo(project.CLProjectCode ?? 0);
|
getMTODetailInfo(project.CLProjectCode ?? 0);
|
||||||
using (var db = new Model.SGGLDB(Funs.ConnString))
|
getContractListInfo(project.CLProjectCode ?? 0);
|
||||||
{
|
getContractListSumInfo(project.CLProjectCode ?? 0);
|
||||||
Model.Sys_Log syslog = new Model.Sys_Log
|
getPipelineMaterialListInfo(project.CLProjectCode ?? 0);
|
||||||
{
|
getPipelineMaterialCodeListInfo(project.CLProjectCode ?? 0);
|
||||||
LogId = SQLHelper.GetNewID(),
|
getPipelineSupplierListInfo(project.CLProjectCode ?? 0);
|
||||||
HostName = "本地3",
|
getArrivalDetailListInfo(project.CLProjectCode ?? 0);
|
||||||
OperationTime = DateTime.Now,
|
getCheckOutDetailListInfo(project.CLProjectCode ?? 0);
|
||||||
UserId = BLL.Const.sysglyId,
|
getPipelineMaterialSumListInfo(project.CLProjectCode ?? 0);
|
||||||
MenuId = BLL.Const.sysglyId,
|
getRequestDetailListInfo(project.CLProjectCode ?? 0);
|
||||||
OperationName = "材料软件定时",
|
|
||||||
DataId = "材料软件定时",
|
|
||||||
LogSource = 1,
|
|
||||||
};
|
|
||||||
db.Sys_Log.InsertOnSubmit(syslog);
|
|
||||||
db.SubmitChanges();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -266,7 +138,7 @@
|
||||||
var details = mscsC.getPipeMaterilalByType(projectId);
|
var details = mscsC.getPipeMaterilalByType(projectId);
|
||||||
if (!string.IsNullOrEmpty(details))
|
if (!string.IsNullOrEmpty(details))
|
||||||
{
|
{
|
||||||
var q = from x in db.CLGL_PipelineMaterialSumList where x.ProjectId == projectId.ToString() && x.Type == "M" select x;
|
var q = from x in db.CLGL_PipelineMaterialSumList where x.ProjectId == projectId.ToString() && x.Type=="M" select x;
|
||||||
if (q.Count() > 0)
|
if (q.Count() > 0)
|
||||||
{
|
{
|
||||||
db.CLGL_PipelineMaterialSumList.DeleteAllOnSubmit(q);
|
db.CLGL_PipelineMaterialSumList.DeleteAllOnSubmit(q);
|
||||||
|
|
|
@ -37,18 +37,10 @@
|
||||||
ErrLogInfo.WriteLog(string.Empty, ex);
|
ErrLogInfo.WriteLog(string.Empty, ex);
|
||||||
//AppDomain.Unload(AppDomain.CurrentDomain);
|
//AppDomain.Unload(AppDomain.CurrentDomain);
|
||||||
}
|
}
|
||||||
////焊接软件定时
|
|
||||||
try
|
|
||||||
{
|
|
||||||
BLL.MonitorService.StartGetPipelineWeldingQuantities();
|
|
||||||
}
|
|
||||||
catch (Exception ex)
|
|
||||||
{
|
|
||||||
ErrLogInfo.WriteLog("焊接软件定时器启动失败!", ex);
|
|
||||||
}
|
|
||||||
////材料软件定时
|
////材料软件定时
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
BLL.MonitorService.StartGetPipelineWeldingQuantities();
|
||||||
BLL.MCSWebService.StartMonitor();
|
BLL.MCSWebService.StartMonitor();
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
|
@ -62,7 +54,7 @@
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
BLL.RealNameMonitorService.StartMonitor();
|
BLL.RealNameMonitorService.StartMonitor();
|
||||||
// BLL.RealNameMonitorService.StartMonitorProject();
|
// BLL.RealNameMonitorService.StartMonitorProject();
|
||||||
SynchroSetService.InsertRealNamePushLog(null, null, "实名制定时器开始启动", "sucess", "200", null, "成功", null);
|
SynchroSetService.InsertRealNamePushLog(null, null, "实名制定时器开始启动", "sucess", "200", null, "成功", null);
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
|
|
Loading…
Reference in New Issue