stringupdateSql=string.Format("update "+TableNames.客户端产品分类+" set Sequence = {0} where ProductCatalog_ID ={1}",catalog.Sequence==null?"null":catalog.Sequence.ToString(),catalog.ProductCatalog_ID);
varsql="select a.Goods_ID, a.Goods_Name,a.Goods_Spec,a.Goods_MainUnit,a.PlanNumber,a.DetailID,e.FinishNumber,a.Department_Name,a.Remark from {0} a inner join {1} b on a.ProductPlan_ID = b.ProductPlan_ID inner join {2} c on c.Goods_ID = a.Goods_ID inner join {3} d on c.ProductTeam_ID = d.ProductTeam_ID left outer join {4} e on a.DetailID = e.DetailID where a.IsFinish = 0 and d.ProductTeam_ID = {5}".FormatWith(TableNames.生产计划分割明细,TableNames.生产计划,TableNames.生产班组产出明细,TableNames.生产班组,TableNames.生产计划分割明细完工数量,planTeamID);
varsql="select a.Goods_ID, a.Goods_Name,a.Goods_Spec,a.Goods_MainUnit,a.PlanNumber,a.DetailID,e.FinishNumber,a.Department_Name,a.Remark,a.DeliveryDate from {0} a inner join {1} b on a.ProductPlan_ID = b.ProductPlan_ID inner join {2} c on c.Goods_ID = a.Goods_ID inner join {3} d on c.ProductTeam_ID = d.ProductTeam_ID left outer join {4} e on a.DetailID = e.DetailID where a.IsFinish = 0 and d.ProductTeam_ID = {5} order by a.DeliveryDate asc".FormatWith(TableNames.生产计划分割明细,TableNames.生产计划,TableNames.生产班组产出明细,TableNames.生产班组,TableNames.生产计划分割明细完工数量,planTeamID);