Ejemplo n.º 1
0
 public bool DeliverProduct(string 产品编号, int 产品数量, string relatedPlanId)
 {
     try
     {
         ProductFlow proflow = new ProductFlow();
         proflow.ProductId      = 产品编号;
         proflow.OccurredTime   = DateTime.Now;
         proflow.Type           = "订单出库";
         proflow.RelatedOrderId = orderId;
         proflow.RelatedPlanId  = relatedPlanId;
         //proflow.UnqualifiedCount = 不合格产品数;
         proflow.Status = ProductionStatus.OUT;
         if (pdm.DeliverProduct(proflow, 产品数量))
         {
             //ppm.UpdatePlanStatus(ProductionPlanStatus.STORED, text编号.Text);
             MessageBox.Show("产品" + 产品编号 + "出库成功!!!");
             return(true);
         }
         else
         {
             MessageBox.Show("产品" + 产品编号 + "出库失败!!!");
         }
         return(false);
     }
     catch (Exception ex) { return(false); }
 }