|
|
@ -82,20 +82,20 @@ namespace QMAPP.FJC.TRACING.DAHandler |
|
|
|
if (data.OrderPlan == null) |
|
|
|
{ |
|
|
|
//BC316-MP4 装配首工位 进行计划强校验
|
|
|
|
//if ("AIRBAG_WELD_BC316".Contains(data.MachineCode))
|
|
|
|
//{
|
|
|
|
// // QDA3 装配1 强校验第一条计划
|
|
|
|
// var plan = new WorkOrderDAL().GetOrderInCell(data.WorkLocState.WORKCELL_CODE + "," + TYPE, 1, 1);
|
|
|
|
if ("AIRBAG_WELD_BC316".Contains(data.MachineCode)) |
|
|
|
{ |
|
|
|
// QDA3 装配1 强校验第一条计划
|
|
|
|
var plan = new WorkOrderDAL().GetOrderInCell(data.WorkLocState.WORKCELL_CODE , 1, 1); |
|
|
|
|
|
|
|
// if (plan.Count > 0)
|
|
|
|
// {
|
|
|
|
// DAL.FIS.OrderPlanDAL orderplandal = new DAL.FIS.OrderPlanDAL();
|
|
|
|
// data.OrderPlan = orderplandal.Get(new Entity.FIS.OrderPlan { PID = plan[0].ORDERPLANID });
|
|
|
|
if (plan.Count > 0) |
|
|
|
{ |
|
|
|
//DAL.FIS.OrderPlanDAL orderplandal = new DAL.FIS.OrderPlanDAL();
|
|
|
|
//data.OrderPlan = orderplandal.Get(new Entity.FIS.OrderPlan { PID = plan[0].ORDERPLANID });
|
|
|
|
|
|
|
|
// DAL.ProductionPlan.WorkOrderDAL workorderdal = new DAL.ProductionPlan.WorkOrderDAL();
|
|
|
|
// data.OrderPlan = workorderdal.GetOneByID(plan[0].ORDERPLANID);
|
|
|
|
// }
|
|
|
|
//}
|
|
|
|
DAL.ProductionPlan.WorkOrderDAL workorderdal = new DAL.ProductionPlan.WorkOrderDAL(); |
|
|
|
data.OrderPlan = workorderdal.GetOneByID(plan[0].ORDERPLANID); |
|
|
|
} |
|
|
|
} |
|
|
|
if (!string.IsNullOrWhiteSpace(data.WorkLocState.CurrentState.ORDERPLAN_PID)) |
|
|
|
{ |
|
|
|
//DAL.FIS.OrderPlanDAL orderplandal = new DAL.FIS.OrderPlanDAL();
|
|
|
|