/// <summary> /// 按钮点击事件-模具添库 /// </summary> /// <param name="sender">事件源</param> /// <param name="e">事件参数</param> private void OKBtn_Click(object sender, RoutedEventArgs e) { if (string.IsNullOrWhiteSpace(MoldNRTB.Text) || string.IsNullOrWhiteSpace(WarehouseNRTB.Text) || string.IsNullOrWhiteSpace(PositionNRTB.Text)) { MessageBox.Show("请将数据填写完整"); } else { ConditionServiceClient conditionclient = new ConditionServiceClient(); if (!conditionclient.MoldExist(MoldNRTB.Text)) { MessageBox.Show("此磨具不存在"); return; } StorageManageServiceClient client = new StorageManageServiceClient(); Message msg = client.MoldInStore(MoldNRTB.Text, OperatorTB.Text, WarehouseNRTB.Text, PositionNRTB.Text); MessageBox.Show(msg.Content); } }