|
|
|
@ -39,7 +39,6 @@ namespace CowOutputClient |
|
|
|
bool IsLoad = true; |
|
|
|
decimal? tare = null; |
|
|
|
|
|
|
|
|
|
|
|
public OperateWindow() |
|
|
|
{ |
|
|
|
InitializeComponent(); |
|
|
|
@ -95,7 +94,12 @@ namespace CowOutputClient |
|
|
|
details.Add(inputDetail); |
|
|
|
} |
|
|
|
output.Set("Details", details); |
|
|
|
var list = RpcFacade.Call<List<long?>>("/MainSystem/B3_HaoYue/Rpcs/B3CowButcherManageRpc/CreateOutput", output,mTeam.ProductTeam_ID,false,null,mTeam.Name); |
|
|
|
long? inStoreTypeId = null; |
|
|
|
if (btnYesOrNo.Content.ToString() == "是") |
|
|
|
inStoreTypeId = long.Parse(ConfigurationManager.AppSettings["InStoreType_ID1"]); |
|
|
|
else |
|
|
|
inStoreTypeId = long.Parse(ConfigurationManager.AppSettings["InStoreType_ID2"]); |
|
|
|
var list = RpcFacade.Call<List<long?>>("/MainSystem/B3_HaoYue/Rpcs/B3CowButcherManageRpc/CreateOutput", output,mTeam.ProductTeam_ID,false,null,mTeam.Name,inStoreTypeId); |
|
|
|
if (list.Count() > 0) { |
|
|
|
var outputId = list[0].Value; |
|
|
|
WeightInfoBL.UpdateOutputId(selectedItems.Select(x => x.ID).ToArray(),outputId); |
|
|
|
@ -596,5 +600,13 @@ namespace CowOutputClient |
|
|
|
{ |
|
|
|
e.Handled = true; |
|
|
|
} |
|
|
|
|
|
|
|
private void btnYesOrNo_Click_1(object sender, RoutedEventArgs e) |
|
|
|
{ |
|
|
|
if (MessageBox.Show("确定更改吗?确定后入库仓库会变更", "提示:", MessageBoxButton.OKCancel) == MessageBoxResult.OK) { |
|
|
|
var btn = sender as Button; |
|
|
|
btn.Content = btn.Content.ToString() == "是" ? "否" : "是"; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |