张松男 9 months ago
parent
commit
098e233106
  1. 4
      APPQ5/QMAPP.FJC.DAL/ProductionPlan/WorkOrderDAL.cs
  2. 2
      APPQ5/QMAPP.FJC.TRACING/DataValidators/PlanValidator.cs
  3. 2
      APPQ5/QMAPP.WinForm/App.config
  4. 4
      APPQ5/QMAPP.WinForm/Forms/Operation/OperationForm_316.cs

4
APPQ5/QMAPP.FJC.DAL/ProductionPlan/WorkOrderDAL.cs

@ -879,8 +879,8 @@ namespace QMAPP.FJC.DAL.ProductionPlan
sql.AppendFormat(" LEFT JOIN [T_PP_ORDERPLAN] AS P ");
sql.AppendFormat(" ON P.[PID]=W.[ORDERPLANID] ");
sql.AppendFormat(" LEFT JOIN [T_MD_MATERIAL] AS M ");
sql.AppendFormat(" ON W.[MATERIAL_CODE]=M.[MATERIAL_CODE] ");
sql.AppendFormat(" WHERE W.[PID]=@orderplan_pid ");
sql.AppendFormat(" ON W.[MATERIAL_CODE]=M.[MATERIAL_CODE] WHERE 1 = 1");
sql.AppendFormat(" and W.[PID]=@orderplan_pid ");
sql.AppendLine(" AND W.[STATE]<>'4' ");
sql.AppendFormat(" ORDER BY W.[PRI],W.[PLAN_DATE],P.PLAN_SEQ,W.[SEQ],W.[MATERIAL_CODE] ");

2
APPQ5/QMAPP.FJC.TRACING/DataValidators/PlanValidator.cs

@ -25,7 +25,7 @@ namespace QMAPP.FJC.TRACING.DataValidators
//--------------------BC316总成装配工位----------------------------------------------------------
if (data.WorkLocState.WORKCELL_CODE == "ASSEMBLE_BC316")
if (data.WorkLocState.WORKCELL_CODE == "ASSEMBLE_BC316" && !string.IsNullOrEmpty(data.WorkLocState.CurrentState.ORDERPLAN_PID))
{
//20220501 DQzhang 用pid 获取重新排序后的第一条派工单
workorder = workorderdal.GetNewFirstOrderInLoc(data.WorkLocState.CurrentState.ORDERPLAN_PID, data.MouldCode);

2
APPQ5/QMAPP.WinForm/App.config

@ -247,7 +247,7 @@
-->
<endpoint address="net.tcp://10.111.144.102:4444/OpcService" binding="netTcpBinding" bindingConfiguration="NetTcpBinding_IOpcService" contract="ServiceOpc.IOpcService" name="NetTcpBinding_IOpcService" />
<endpoint address="net.tcp://10.111.144.97:4444/OpcService" binding="netTcpBinding" bindingConfiguration="NetTcpBinding_IOpcService" contract="ServiceOpc.IOpcService" name="NetTcpBinding_IOpcService" />

4
APPQ5/QMAPP.WinForm/Forms/Operation/OperationForm_316.cs

@ -641,7 +641,9 @@ namespace QMAPP.WinForm.Forms.Operation
if (fisPlanTable.Rows.Count < 1)
{
throw new Exception("没有fis计划,请创建计划!");
//throw new Exception("没有fis计划,请创建计划!");
MessageBox.Show("没有fis计划,请创建计划!");
return;
}
DataRow fisPlanRow = fisPlanTable.Rows[0];
var orderid = this.dgvPlan.SelectedRows[0].Cells[1].Value.ToString();

Loading…
Cancel
Save