From 8d285df1906fcfb0191d27ca3a0004f9ab458342 Mon Sep 17 00:00:00 2001 From: yibo <361071264@qq.com> Date: Thu, 16 Nov 2017 11:37:21 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=AA=8C=E8=B4=A8=E6=97=B6?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=A3=85=E5=8D=95=E5=A4=B4=E6=95=B0=EF=BC=8C?= =?UTF-8?q?=E5=90=8C=E6=97=B6=E6=9B=B4=E6=96=B0=E6=8E=92=E5=AE=B0=E9=A1=BA?= =?UTF-8?q?=E5=BA=8F=E5=A4=B4=E6=95=B0=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- BO/Utils/BillRpc/HouseAndSanctionRpc.cs | 4 ++-- QualityAndOrder/QualityOrderForm.cs | 7 +++++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/BO/Utils/BillRpc/HouseAndSanctionRpc.cs b/BO/Utils/BillRpc/HouseAndSanctionRpc.cs index 7c2f098..83faa56 100644 --- a/BO/Utils/BillRpc/HouseAndSanctionRpc.cs +++ b/BO/Utils/BillRpc/HouseAndSanctionRpc.cs @@ -19,12 +19,12 @@ namespace BO.Utils.BillRpc return serializer.Deserialize>(json); } - public static void UpdateInsertHouseAndSanction(HouseAndSanctionEdit bo) + public static bool UpdateInsertHouseAndSanction(HouseAndSanctionEdit bo) { const string method = "/MainSystem/B3ClientService/Rpcs/BillRpc/HouseAndSanctionRpc/UpdateInsertHouseAndSanction"; bo.Inspector_ID = ButcherAppContext.Context.UserConfig.Employee_ID; bo.Inspector_Name = ButcherAppContext.Context.UserConfig.Employee_Name; - RpcFacade.Call(method, serializer.Serialize(bo)); + return RpcFacade.Call(method, serializer.Serialize(bo)); } public static int GetDetailTotalNumber(DateTime date) diff --git a/QualityAndOrder/QualityOrderForm.cs b/QualityAndOrder/QualityOrderForm.cs index 0296e7e..dcc41fd 100644 --- a/QualityAndOrder/QualityOrderForm.cs +++ b/QualityAndOrder/QualityOrderForm.cs @@ -368,13 +368,16 @@ namespace QualityAndOrder private void commitBtn_Click(object sender, EventArgs e) { GetDataFromUI(); - HouseAndSanctionRpc.UpdateInsertHouseAndSanction(Dmo); + bool multilOrder = HouseAndSanctionRpc.UpdateInsertHouseAndSanction(Dmo); Dmo = null; weightBills = HouseAndSanctionRpc.GetHouseAndSanctionList(testTimeInput.Date.Value); BindWeightBillGrid(); BindNumberLabel(); ResetTab1Controls(); - UMessageBox.Show("提交成功!"); + if (multilOrder) + UMessageBox.Show(string.Format("提交完毕!{0} 磅单出现多次排宰", Environment.NewLine), "注意"); + else + UMessageBox.Show("提交成功!"); } private void syncBtn_Click(object sender, EventArgs e)