提交代码
This commit is contained in:
parent
b58beb2472
commit
6aff0e6af8
|
@ -32,7 +32,8 @@
|
||||||
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
|
||||||
|
@ -44,22 +45,149 @@
|
||||||
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);
|
||||||
//getReqDetails(project.CLProjectCode ?? 0);
|
|
||||||
getMTODetailInfo(project.CLProjectCode ?? 0);
|
|
||||||
getContractListInfo(project.CLProjectCode ?? 0);
|
|
||||||
getContractListSumInfo(project.CLProjectCode ?? 0);
|
|
||||||
getPipelineMaterialListInfo(project.CLProjectCode ?? 0);
|
|
||||||
getPipelineMaterialCodeListInfo(project.CLProjectCode ?? 0);
|
|
||||||
getPipelineSupplierListInfo(project.CLProjectCode ?? 0);
|
|
||||||
getArrivalDetailListInfo(project.CLProjectCode ?? 0);
|
|
||||||
getCheckOutDetailListInfo(project.CLProjectCode ?? 0);
|
|
||||||
getPipelineMaterialSumListInfo(project.CLProjectCode ?? 0);
|
getPipelineMaterialSumListInfo(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);
|
getRequestDetailListInfo(project.CLProjectCode ?? 0);
|
||||||
|
getMTODetailInfo(project.CLProjectCode ?? 0);
|
||||||
|
using (var db = new Model.SGGLDB(Funs.ConnString))
|
||||||
|
{
|
||||||
|
Model.Sys_Log syslog = new Model.Sys_Log
|
||||||
|
{
|
||||||
|
LogId = SQLHelper.GetNewID(),
|
||||||
|
HostName = "本地3",
|
||||||
|
OperationTime = DateTime.Now,
|
||||||
|
UserId = BLL.Const.sysglyId,
|
||||||
|
MenuId = BLL.Const.sysglyId,
|
||||||
|
OperationName = "材料软件定时",
|
||||||
|
DataId = "材料软件定时",
|
||||||
|
LogSource = 1,
|
||||||
|
};
|
||||||
|
db.Sys_Log.InsertOnSubmit(syslog);
|
||||||
|
db.SubmitChanges();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -138,7 +266,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,10 +37,18 @@
|
||||||
ErrLogInfo.WriteLog(string.Empty, ex);
|
ErrLogInfo.WriteLog(string.Empty, ex);
|
||||||
//AppDomain.Unload(AppDomain.CurrentDomain);
|
//AppDomain.Unload(AppDomain.CurrentDomain);
|
||||||
}
|
}
|
||||||
////材料软件定时
|
////焊接软件定时
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
BLL.MonitorService.StartGetPipelineWeldingQuantities();
|
BLL.MonitorService.StartGetPipelineWeldingQuantities();
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
ErrLogInfo.WriteLog("焊接软件定时器启动失败!", ex);
|
||||||
|
}
|
||||||
|
////材料软件定时
|
||||||
|
try
|
||||||
|
{
|
||||||
BLL.MCSWebService.StartMonitor();
|
BLL.MCSWebService.StartMonitor();
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
|
@ -54,7 +62,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