1208-002-gaofei
This commit is contained in:
parent
a0c757ae2f
commit
92c5facf4d
|
@ -56,12 +56,13 @@
|
||||||
public static void getPojectInfo()
|
public static void getPojectInfo()
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
|
{
|
||||||
|
using (var db = new Model.SGGLDB(Funs.ConnString))
|
||||||
{
|
{
|
||||||
MCSService.WebService1SoapClient mscsC = new MCSService.WebService1SoapClient();
|
MCSService.WebService1SoapClient mscsC = new MCSService.WebService1SoapClient();
|
||||||
var details = mscsC.getPojectInfo();
|
var details = mscsC.getPojectInfo();
|
||||||
if (!string.IsNullOrEmpty(details))
|
if (!string.IsNullOrEmpty(details))
|
||||||
{
|
{
|
||||||
Model.SGGLDB db = Funs.DB;
|
|
||||||
JArray arr = JArray.Parse(details);
|
JArray arr = JArray.Parse(details);
|
||||||
foreach (var item in arr)
|
foreach (var item in arr)
|
||||||
{
|
{
|
||||||
|
@ -74,6 +75,7 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
ErrLogInfo.WriteLog(ex, "材料管理接口定时器", "MCSWebService.getPojectInfo");
|
ErrLogInfo.WriteLog(ex, "材料管理接口定时器", "MCSWebService.getPojectInfo");
|
||||||
|
@ -83,12 +85,13 @@
|
||||||
public static void getPoDetails(long projectId)
|
public static void getPoDetails(long projectId)
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
|
{
|
||||||
|
using (var db = new Model.SGGLDB(Funs.ConnString))
|
||||||
{
|
{
|
||||||
MCSService.WebService1SoapClient mscsC = new MCSService.WebService1SoapClient();
|
MCSService.WebService1SoapClient mscsC = new MCSService.WebService1SoapClient();
|
||||||
var details = mscsC.getPoDetails(projectId);
|
var details = mscsC.getPoDetails(projectId);
|
||||||
if (!string.IsNullOrEmpty(details))
|
if (!string.IsNullOrEmpty(details))
|
||||||
{
|
{
|
||||||
Model.SGGLDB db = Funs.DB;
|
|
||||||
var q = from x in db.CLGL_ContractQuantitySheet where x.ProjectId == projectId.ToString() select x;
|
var q = from x in db.CLGL_ContractQuantitySheet where x.ProjectId == projectId.ToString() select x;
|
||||||
if (q.Count() > 0)
|
if (q.Count() > 0)
|
||||||
{
|
{
|
||||||
|
@ -118,6 +121,7 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
ErrLogInfo.WriteLog(ex, "材料管理接口定时器", "MCSWebService.getPoDetails");
|
ErrLogInfo.WriteLog(ex, "材料管理接口定时器", "MCSWebService.getPoDetails");
|
||||||
|
@ -127,12 +131,13 @@
|
||||||
public static void getIssueDetails(long projectId)
|
public static void getIssueDetails(long projectId)
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
|
{
|
||||||
|
using (var db = new Model.SGGLDB(Funs.ConnString))
|
||||||
{
|
{
|
||||||
MCSService.WebService1SoapClient mscsC = new MCSService.WebService1SoapClient();
|
MCSService.WebService1SoapClient mscsC = new MCSService.WebService1SoapClient();
|
||||||
var details = mscsC.getIssueDetails(projectId);
|
var details = mscsC.getIssueDetails(projectId);
|
||||||
if (!string.IsNullOrEmpty(details))
|
if (!string.IsNullOrEmpty(details))
|
||||||
{
|
{
|
||||||
Model.SGGLDB db = Funs.DB;
|
|
||||||
var q = from x in db.CLGL_PickMaterialRecord where x.ProjectId == projectId.ToString() select x;
|
var q = from x in db.CLGL_PickMaterialRecord where x.ProjectId == projectId.ToString() select x;
|
||||||
if (q.Count() > 0)
|
if (q.Count() > 0)
|
||||||
{
|
{
|
||||||
|
@ -168,6 +173,7 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
ErrLogInfo.WriteLog(ex, "材料管理接口定时器", "MCSWebService.getIssueDetails");
|
ErrLogInfo.WriteLog(ex, "材料管理接口定时器", "MCSWebService.getIssueDetails");
|
||||||
|
@ -177,12 +183,13 @@
|
||||||
public static void getPartNoInfo(long projectId)
|
public static void getPartNoInfo(long projectId)
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
|
{
|
||||||
|
using (var db = new Model.SGGLDB(Funs.ConnString))
|
||||||
{
|
{
|
||||||
MCSService.WebService1SoapClient mscsC = new MCSService.WebService1SoapClient();
|
MCSService.WebService1SoapClient mscsC = new MCSService.WebService1SoapClient();
|
||||||
var details = mscsC.getPartNoInfo(projectId);
|
var details = mscsC.getPartNoInfo(projectId);
|
||||||
if (!string.IsNullOrEmpty(details))
|
if (!string.IsNullOrEmpty(details))
|
||||||
{
|
{
|
||||||
Model.SGGLDB db = Funs.DB;
|
|
||||||
var q = from x in db.CLGL_Material where x.ProjectId == projectId.ToString() select x;
|
var q = from x in db.CLGL_Material where x.ProjectId == projectId.ToString() select x;
|
||||||
if (q.Count() > 0)
|
if (q.Count() > 0)
|
||||||
{
|
{
|
||||||
|
@ -205,6 +212,7 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
ErrLogInfo.WriteLog(ex, "材料管理接口定时器", "MCSWebService.getPartNoInfo");
|
ErrLogInfo.WriteLog(ex, "材料管理接口定时器", "MCSWebService.getPartNoInfo");
|
||||||
|
@ -214,12 +222,13 @@
|
||||||
public static void getShelvesNo(long projectId)
|
public static void getShelvesNo(long projectId)
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
|
{
|
||||||
|
using (var db = new Model.SGGLDB(Funs.ConnString))
|
||||||
{
|
{
|
||||||
MCSService.WebService1SoapClient mscsC = new MCSService.WebService1SoapClient();
|
MCSService.WebService1SoapClient mscsC = new MCSService.WebService1SoapClient();
|
||||||
var details = mscsC.getShelvesNo(projectId);
|
var details = mscsC.getShelvesNo(projectId);
|
||||||
if (!string.IsNullOrEmpty(details))
|
if (!string.IsNullOrEmpty(details))
|
||||||
{
|
{
|
||||||
Model.SGGLDB db = Funs.DB;
|
|
||||||
var q = from x in db.CLGL_GoodsShelves where x.ProjectId == projectId.ToString() select x;
|
var q = from x in db.CLGL_GoodsShelves where x.ProjectId == projectId.ToString() select x;
|
||||||
if (q.Count() > 0)
|
if (q.Count() > 0)
|
||||||
{
|
{
|
||||||
|
@ -239,6 +248,7 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
ErrLogInfo.WriteLog(ex, "材料管理接口定时器", "MCSWebService.getPartNoInfo");
|
ErrLogInfo.WriteLog(ex, "材料管理接口定时器", "MCSWebService.getPartNoInfo");
|
||||||
|
@ -248,12 +258,13 @@
|
||||||
public static void getSubcontractor(long projectId)
|
public static void getSubcontractor(long projectId)
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
|
{
|
||||||
|
using (var db = new Model.SGGLDB(Funs.ConnString))
|
||||||
{
|
{
|
||||||
MCSService.WebService1SoapClient mscsC = new MCSService.WebService1SoapClient();
|
MCSService.WebService1SoapClient mscsC = new MCSService.WebService1SoapClient();
|
||||||
var details = mscsC.getSubcontractor(projectId);
|
var details = mscsC.getSubcontractor(projectId);
|
||||||
if (!string.IsNullOrEmpty(details))
|
if (!string.IsNullOrEmpty(details))
|
||||||
{
|
{
|
||||||
Model.SGGLDB db = Funs.DB;
|
|
||||||
var q = from x in db.CLGL_SubUnit where x.ProjectId == projectId.ToString() select x;
|
var q = from x in db.CLGL_SubUnit where x.ProjectId == projectId.ToString() select x;
|
||||||
if (q.Count() > 0)
|
if (q.Count() > 0)
|
||||||
{
|
{
|
||||||
|
@ -273,6 +284,7 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
ErrLogInfo.WriteLog(ex, "材料管理接口定时器", "MCSWebService.getSubcontractor");
|
ErrLogInfo.WriteLog(ex, "材料管理接口定时器", "MCSWebService.getSubcontractor");
|
||||||
|
@ -282,12 +294,13 @@
|
||||||
public static void getVendor()
|
public static void getVendor()
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
|
{
|
||||||
|
using (var db = new Model.SGGLDB(Funs.ConnString))
|
||||||
{
|
{
|
||||||
MCSService.WebService1SoapClient mscsC = new MCSService.WebService1SoapClient();
|
MCSService.WebService1SoapClient mscsC = new MCSService.WebService1SoapClient();
|
||||||
var details = mscsC.getVendor();
|
var details = mscsC.getVendor();
|
||||||
if (!string.IsNullOrEmpty(details))
|
if (!string.IsNullOrEmpty(details))
|
||||||
{
|
{
|
||||||
Model.SGGLDB db = Funs.DB;
|
|
||||||
var q = from x in db.CLGL_Supplier select x;
|
var q = from x in db.CLGL_Supplier select x;
|
||||||
if (q.Count() > 0)
|
if (q.Count() > 0)
|
||||||
{
|
{
|
||||||
|
@ -306,6 +319,7 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
ErrLogInfo.WriteLog(ex, "材料管理接口定时器", "MCSWebService.getVendor");
|
ErrLogInfo.WriteLog(ex, "材料管理接口定时器", "MCSWebService.getVendor");
|
||||||
|
@ -315,12 +329,13 @@
|
||||||
public static void getReqDetails(long projectId)
|
public static void getReqDetails(long projectId)
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
|
{
|
||||||
|
using (var db = new Model.SGGLDB(Funs.ConnString))
|
||||||
{
|
{
|
||||||
MCSService.WebService1SoapClient mscsC = new MCSService.WebService1SoapClient();
|
MCSService.WebService1SoapClient mscsC = new MCSService.WebService1SoapClient();
|
||||||
var details = mscsC.getReqDetails(projectId);
|
var details = mscsC.getReqDetails(projectId);
|
||||||
if (!string.IsNullOrEmpty(details))
|
if (!string.IsNullOrEmpty(details))
|
||||||
{
|
{
|
||||||
Model.SGGLDB db = Funs.DB;
|
|
||||||
var q = from x in db.CLGL_PurchaseRequisition where x.ProjectId == projectId.ToString() select x;
|
var q = from x in db.CLGL_PurchaseRequisition where x.ProjectId == projectId.ToString() select x;
|
||||||
if (q.Count() > 0)
|
if (q.Count() > 0)
|
||||||
{
|
{
|
||||||
|
@ -356,6 +371,7 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
ErrLogInfo.WriteLog(ex, "材料管理接口定时器", "MCSWebService.getVendor");
|
ErrLogInfo.WriteLog(ex, "材料管理接口定时器", "MCSWebService.getVendor");
|
||||||
|
|
Loading…
Reference in New Issue