diff --git a/BO/Utils/BillRpc/WeightBillRpc.cs b/BO/Utils/BillRpc/WeightBillRpc.cs index 2c8502e..351934e 100644 --- a/BO/Utils/BillRpc/WeightBillRpc.cs +++ b/BO/Utils/BillRpc/WeightBillRpc.cs @@ -106,5 +106,11 @@ namespace BO.Utils.BillRpc obj = obj.ESerializeDateTime(); return serializer.Deserialize(obj); } + + public static void DoCheck(long b3ID) + { + const string method = "/MainSystem/B3ClientService/Rpcs/BillRpc/WeightBillRpc/DoCheck"; + RpcFacade.Call(method, b3ID,ButcherAppContext.Context.UserConfig.UserName); + } } } diff --git a/ButcherWeight/WeightForm.cs b/ButcherWeight/WeightForm.cs index 1c126be..36af00b 100644 --- a/ButcherWeight/WeightForm.cs +++ b/ButcherWeight/WeightForm.cs @@ -529,6 +529,8 @@ namespace ButcherWeight var entity = WeightBillRpc.GetPrintWeightBill(Dmo.ID); ClientPrint.BwpClientPrint print = new ClientPrint.BwpClientPrint("WeightBillPrint.xaml", entity, new DocumentRenderer()); print.PrintDirect(); + if (Dmo.B3ID.HasValue) + WeightBillRpc.DoCheck(Dmo.B3ID.Value); } } } \ No newline at end of file