我需要解决这个问题的方法 [英] need a solution for this problem i have

查看:79
本文介绍了我需要解决这个问题的方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的应用中制作了部件和部件被拒绝的选项。我的客户给了我一个条件:



任何时候被拒绝的零件不应少于生产的零件



即使产生的零件是0 *你也应该可以保存。* b $ b我需要什么才能使条件成功?



生产/修改的零件是文本框名称



文本框中的数据我们可以从数据库中选择它

现在我有条件如



I have parts produced and parts rejected options in my app. My client gave me a condition to put:

At any time parts rejected should not be less than the parts produced
and
You should be able to save even if the parts produced is 0*
What do I need to put the condition there to make it successful?

Parts produced/rected those are textbox names

the data in the textboxes we can select it from database
now i have the condition like

if (partProduced <= _runtime.PartsRejected)
{
     errorMessage.Append("Parts rejected should not be greater than or equal to parts produced." + Environment.NewLine); 
}





这是我现在需要根据我的客户要求更改它的条件



this is the condition i have now i need to change it as my client requirement

推荐答案

使用< =只是使用<的insteat内部如果条件



Insteat of using <= just use < inside if condition

if (partProduced < _runtime.PartsRejected)
{
     errorMessage.Append("Parts rejected should not be greater than or equal to parts produced." + Environment.NewLine);
}


这篇关于我需要解决这个问题的方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆