Browse Source

需求单No.139900

master
wugang 7 years ago
parent
commit
ece254d5d6
3 changed files with 21 additions and 2 deletions
  1. +1
    -0
      CowOutputClient/OperateWindow.xaml
  2. +14
    -2
      CowOutputClient/OperateWindow.xaml.cs
  3. +6
    -0
      CowOutputClient/app.config

+ 1
- 0
CowOutputClient/OperateWindow.xaml View File

@ -45,6 +45,7 @@
<Label Content="分割一线" FontSize="20px" HorizontalAlignment="Left" Margin="500,20,0,0" VerticalAlignment="Top" /> <Label Content="分割一线" FontSize="20px" HorizontalAlignment="Left" Margin="500,20,0,0" VerticalAlignment="Top" />
<Label Content="用户:" FontSize="20px" HorizontalAlignment="Left" Margin="650,20,0,0" VerticalAlignment="Top" /> <Label Content="用户:" FontSize="20px" HorizontalAlignment="Left" Margin="650,20,0,0" VerticalAlignment="Top" />
<Label Content="张三" FontSize="20px" HorizontalAlignment="Left" Margin="710,20,0,0" VerticalAlignment="Top" />--> <Label Content="张三" FontSize="20px" HorizontalAlignment="Left" Margin="710,20,0,0" VerticalAlignment="Top" />-->
<Button Focusable="False" Content="是" Name="btnYesOrNo" Click="btnYesOrNo_Click_1" FontSize="20" HorizontalAlignment="Left" Margin="750,30,0,0" VerticalAlignment="Top" Width="50" Height="40"/>
<Button Focusable="False" Content="注销" Name="btnLogOut" Click="btnLogOut_Click_1" FontSize="20" HorizontalAlignment="Left" Margin="900,30,0,0" VerticalAlignment="Top" Width="100" Height="40"/> <Button Focusable="False" Content="注销" Name="btnLogOut" Click="btnLogOut_Click_1" FontSize="20" HorizontalAlignment="Left" Margin="900,30,0,0" VerticalAlignment="Top" Width="100" Height="40"/>
<Label Content="开始日期" FontSize="20px" HorizontalAlignment="Left" Margin="400,20,0,0" VerticalAlignment="Top" /> <Label Content="开始日期" FontSize="20px" HorizontalAlignment="Left" Margin="400,20,0,0" VerticalAlignment="Top" />
<TextBox x:Name="txtProduceStartDate" FontSize="18" TextAlignment="Justify" VerticalContentAlignment="Center" PreviewMouseDown="txtProduceStartDate_PreviewMouseDown_1" HorizontalAlignment="Left" Height="26" Margin="500,25,0,0" VerticalAlignment="Top" Width="220"/> <TextBox x:Name="txtProduceStartDate" FontSize="18" TextAlignment="Justify" VerticalContentAlignment="Center" PreviewMouseDown="txtProduceStartDate_PreviewMouseDown_1" HorizontalAlignment="Left" Height="26" Margin="500,25,0,0" VerticalAlignment="Top" Width="220"/>


+ 14
- 2
CowOutputClient/OperateWindow.xaml.cs View File

@ -39,7 +39,6 @@ namespace CowOutputClient
bool IsLoad = true; bool IsLoad = true;
decimal? tare = null; decimal? tare = null;
public OperateWindow() public OperateWindow()
{ {
InitializeComponent(); InitializeComponent();
@ -95,7 +94,12 @@ namespace CowOutputClient
details.Add(inputDetail); details.Add(inputDetail);
} }
output.Set("Details", details); 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) { if (list.Count() > 0) {
var outputId = list[0].Value; var outputId = list[0].Value;
WeightInfoBL.UpdateOutputId(selectedItems.Select(x => x.ID).ToArray(),outputId); WeightInfoBL.UpdateOutputId(selectedItems.Select(x => x.ID).ToArray(),outputId);
@ -596,5 +600,13 @@ namespace CowOutputClient
{ {
e.Handled = true; 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() == "是" ? "否" : "是";
}
}
} }
} }

+ 6
- 0
CowOutputClient/app.config View File

@ -40,5 +40,11 @@
<add key="ForeLeg" value="1.4,2.8" /> <add key="ForeLeg" value="1.4,2.8" />
<!--后腿勾重量配置--> <!--后腿勾重量配置-->
<add key="HindLeg" value="2.2,4.4" /> <add key="HindLeg" value="2.2,4.4" />
<!-- 存货ID -->
<add key="Goods_ID" value="2776" />
<!-- 入库类型ID1 -->
<add key="InStoreType_ID1" value="1" />
<!-- 入库类型ID2 -->
<add key="InStoreType_ID2" value="2" />
</appSettings> </appSettings>
</configuration> </configuration>

Loading…
Cancel
Save