提交代码
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
using FineUIPro;
|
||||
|
||||
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
@@ -75,7 +75,7 @@ namespace BLL
|
||||
IQueryable<Model.HJGL_PackagingManage> q1 = (from x in db.HJGL_PackagingManage
|
||||
join y in db.HJGL_Pipeline_Component on x.PipelineComponentId equals y.PipelineComponentId
|
||||
join z in db.HJGL_Pipeline on y.PipelineId equals z.PipelineId
|
||||
select x
|
||||
select x
|
||||
);
|
||||
if (!string.IsNullOrEmpty(name))
|
||||
{
|
||||
@@ -121,7 +121,7 @@ namespace BLL
|
||||
}
|
||||
return PlanStartDate;
|
||||
}
|
||||
public static List<PackagingManageItem> GetPackagingManageList(string projectId,string PackagingCode)
|
||||
public static List<PackagingManageItem> GetPackagingManageList(string projectId, string PackagingCode)
|
||||
{
|
||||
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
|
||||
{
|
||||
@@ -131,7 +131,7 @@ namespace BLL
|
||||
join m in db.Person_Persons on x.ReceiveMan equals m.PersonId into tt
|
||||
from t in tt.DefaultIfEmpty()
|
||||
where x.ProjectId == projectId
|
||||
&&(string.IsNullOrEmpty(PackagingCode)|| x.PackagingCode.Contains(PackagingCode) )
|
||||
&& (string.IsNullOrEmpty(PackagingCode) || x.PackagingCode.Contains(PackagingCode))
|
||||
select new PackagingManageItem
|
||||
{
|
||||
PackagingManageId = x.PackagingManageId,
|
||||
@@ -142,7 +142,7 @@ namespace BLL
|
||||
StackingPosition = x.StackingPosition,
|
||||
State = x.State,
|
||||
ReceiveMan = t.PersonName,
|
||||
ReceiveDate = string.Format("{0:g}", x.ReceiveDate),
|
||||
ReceiveDate = x.ReceiveDate.HasValue ? string.Format("{0:g}", x.ReceiveDate) : "",
|
||||
PlanStartDate = GetMinPlanStartDate(x.PackagingManageId),
|
||||
|
||||
}).Distinct();
|
||||
@@ -156,8 +156,8 @@ namespace BLL
|
||||
/// <param name="PackagingManageId"></param>
|
||||
public static void PutOutOrder(string PackagingManageId)
|
||||
{
|
||||
var model= GetHJGL_PackagingManageById(PackagingManageId);
|
||||
if (model.State==state_0)
|
||||
var model = GetHJGL_PackagingManageById(PackagingManageId);
|
||||
if (model.State == state_0)
|
||||
{
|
||||
model.State = state_1;
|
||||
UpdateHJGL_PackagingManage(model);
|
||||
@@ -173,7 +173,7 @@ namespace BLL
|
||||
{
|
||||
DataTable tb = new DataTable();
|
||||
var model = GetHJGL_PackagingManageById(PackagingManageId);
|
||||
if (!string .IsNullOrEmpty(model.PipelineComponentId))
|
||||
if (!string.IsNullOrEmpty(model.PipelineComponentId))
|
||||
{
|
||||
var PipelineComponentIds = model.PipelineComponentId.Split(',');
|
||||
string strSql = @"select com.PipelineComponentId, com.PipelineComponentCode,pipe.PlanStartDate,unitwork.UnitWorkName,'1' as num ,'个' as CU
|
||||
@@ -185,7 +185,7 @@ namespace BLL
|
||||
strSql += string.Format("where com.PipelineComponentId in ( {0}) ", "'" + string.Join("','", PipelineComponentIds) + "'");
|
||||
SqlParameter[] parameter = listStr.ToArray();
|
||||
tb = SQLHelper.GetDataTableRunText(strSql, parameter);
|
||||
}
|
||||
}
|
||||
return tb;
|
||||
|
||||
}
|
||||
@@ -195,7 +195,7 @@ namespace BLL
|
||||
/// </summary>
|
||||
/// <param name="projectid"></param>
|
||||
/// <returns></returns>
|
||||
public static List<string > GetPackagingCode(string projectid)
|
||||
public static List<string> GetPackagingCode(string projectid)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
var q = (from x in db.HJGL_PackagingManage
|
||||
@@ -244,8 +244,8 @@ namespace BLL
|
||||
table.ContactName = newtable.ContactName;
|
||||
table.ContactPhone = newtable.ContactPhone;
|
||||
table.Remark = newtable.Remark;
|
||||
table.ReceiveMan=newtable.ReceiveMan;
|
||||
table.ReceiveDate=newtable.ReceiveDate;
|
||||
table.ReceiveMan = newtable.ReceiveMan;
|
||||
table.ReceiveDate = newtable.ReceiveDate;
|
||||
db.SubmitChanges();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user