Browse Source

修改。

master
yibo 8 years ago
parent
commit
8b6a8594e6
2 changed files with 10 additions and 3 deletions
  1. +6
    -0
      BO/Utils/BillRpc/OrderDetailRpc.cs
  2. +4
    -3
      QualityAndOrder/QualityOrderFormForTab2.cs

+ 6
- 0
BO/Utils/BillRpc/OrderDetailRpc.cs View File

@ -135,5 +135,11 @@ namespace BO.Utils.BillRpc
const string method = "/MainSystem/B3ClientService/Rpcs/BillRpc/OrderDetailRpc/InsertByHurryRecord"; const string method = "/MainSystem/B3ClientService/Rpcs/BillRpc/OrderDetailRpc/InsertByHurryRecord";
orderDetail.ID = RpcFacade.Call<long>(method, serializer.Serialize(orderDetail),hurryOrderID); orderDetail.ID = RpcFacade.Call<long>(method, serializer.Serialize(orderDetail),hurryOrderID);
} }
public static int GetCurrentOrderPlanNumber(long orderID)
{
const string method = "/MainSystem/B3ClientService/Rpcs/BillRpc/OrderDetailRpc/GetCurrentOrderPlanNumber";
return RpcFacade.Call<int>(method, orderID);
}
} }
} }

+ 4
- 3
QualityAndOrder/QualityOrderFormForTab2.cs View File

@ -239,7 +239,7 @@ namespace QualityAndOrder
BindOrderGrid(); BindOrderGrid();
} }
else else
OrderDetailRpc.ChangeShowType((long)preOrderGrid.CurrentRow.Cells["P_WeightBill_ID"].Value, (bool)preOrderGrid.CurrentRow.Cells["P_Show"].Value);
OrderDetailRpc.ChangeShowType((long)preOrderGrid.CurrentRow.Cells["P_WeightBill_ID"].Value, !(bool)preOrderGrid.CurrentRow.Cells["P_Show"].Value);
BindPreOrderGrid(); BindPreOrderGrid();
} }
@ -282,8 +282,9 @@ namespace QualityAndOrder
var lastNumber = OrderDetailRpc.GetLastNumber(lastOrderDetail.WeightBill_ID, lastOrderDetail.ID); var lastNumber = OrderDetailRpc.GetLastNumber(lastOrderDetail.WeightBill_ID, lastOrderDetail.ID);
if (lastOrderDetail.PlanNumber > lastNumber) if (lastOrderDetail.PlanNumber > lastNumber)
throw new Exception("排宰总头数多余过磅头数");
if (lastOrderDetail.PlanNumber == lastNumber)
throw new Exception("排宰总头数多于过磅头数");
var dbCurrentNumber = OrderDetailRpc.GetCurrentOrderPlanNumber(lastOrderDetail.ID);
if (lastOrderDetail.PlanNumber == dbCurrentNumber)
return; return;
if (lastOrderDetail.PlanNumber == 0) if (lastOrderDetail.PlanNumber == 0)
{ {


Loading…
Cancel
Save