Browse Source

修改验质时修改磅单头数,同时更新排宰顺序头数。

master
yibo 8 years ago
parent
commit
8d285df190
2 changed files with 7 additions and 4 deletions
  1. +2
    -2
      BO/Utils/BillRpc/HouseAndSanctionRpc.cs
  2. +5
    -2
      QualityAndOrder/QualityOrderForm.cs

+ 2
- 2
BO/Utils/BillRpc/HouseAndSanctionRpc.cs View File

@ -19,12 +19,12 @@ namespace BO.Utils.BillRpc
return serializer.Deserialize<List<HouseAndSanctionList>>(json); return serializer.Deserialize<List<HouseAndSanctionList>>(json);
} }
public static void UpdateInsertHouseAndSanction(HouseAndSanctionEdit bo)
public static bool UpdateInsertHouseAndSanction(HouseAndSanctionEdit bo)
{ {
const string method = "/MainSystem/B3ClientService/Rpcs/BillRpc/HouseAndSanctionRpc/UpdateInsertHouseAndSanction"; const string method = "/MainSystem/B3ClientService/Rpcs/BillRpc/HouseAndSanctionRpc/UpdateInsertHouseAndSanction";
bo.Inspector_ID = ButcherAppContext.Context.UserConfig.Employee_ID; bo.Inspector_ID = ButcherAppContext.Context.UserConfig.Employee_ID;
bo.Inspector_Name = ButcherAppContext.Context.UserConfig.Employee_Name; bo.Inspector_Name = ButcherAppContext.Context.UserConfig.Employee_Name;
RpcFacade.Call<int>(method, serializer.Serialize(bo));
return RpcFacade.Call<bool>(method, serializer.Serialize(bo));
} }
public static int GetDetailTotalNumber(DateTime date) public static int GetDetailTotalNumber(DateTime date)


+ 5
- 2
QualityAndOrder/QualityOrderForm.cs View File

@ -368,13 +368,16 @@ namespace QualityAndOrder
private void commitBtn_Click(object sender, EventArgs e) private void commitBtn_Click(object sender, EventArgs e)
{ {
GetDataFromUI(); GetDataFromUI();
HouseAndSanctionRpc.UpdateInsertHouseAndSanction(Dmo);
bool multilOrder = HouseAndSanctionRpc.UpdateInsertHouseAndSanction(Dmo);
Dmo = null; Dmo = null;
weightBills = HouseAndSanctionRpc.GetHouseAndSanctionList(testTimeInput.Date.Value); weightBills = HouseAndSanctionRpc.GetHouseAndSanctionList(testTimeInput.Date.Value);
BindWeightBillGrid(); BindWeightBillGrid();
BindNumberLabel(); BindNumberLabel();
ResetTab1Controls(); ResetTab1Controls();
UMessageBox.Show("提交成功!");
if (multilOrder)
UMessageBox.Show(string.Format("提交完毕!{0} 磅单出现多次排宰", Environment.NewLine), "注意");
else
UMessageBox.Show("提交成功!");
} }
private void syncBtn_Click(object sender, EventArgs e) private void syncBtn_Click(object sender, EventArgs e)


Loading…
Cancel
Save