Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
if (!
string.IsNullOrEmpty(cmbstatus.Text) &&
string.IsNullOrEmpty(txtBLONO.Text) &&
string.IsNullOrEmpty(txtDesc.Text) &&
string.IsNullOrEmpty(txtUnitModel.Text) &&
string.IsNullOrEmpty(txtExcludeWOTO.Text) &&
rdGroupbyWOTO.Checked == false &&
rd_Charge2Me.Checked == false && rdGrpBLONO.Checked
== false)
{
if (AllOpen == "ALL OPEN")
{
myshow = "All work orders but
Closed and Cancel"; TabFld = "W.ISSUEDT_E";
MessageBox.Show("All Open and
rest of all is null ");
}
else if (cmbstatus.Text == "Closed"
|| cmbstatus.Text == "CANCEL")
{
myshow = "All work orders with
Closed and Cancel"; TabFld = "W.CLSDT_E";
MessageBox.Show("All Closed or
CANCEL and rest of all is null ");
}
else if (cmbstatus.Text != "Closed"
&& cmbstatus.Text != "CANCEL" && cmbstatus.Text !=
"ALL OPEN")
{
myshow = "All work orders but
Closed+Cancel+ALL OPEN"; TabFld = "W.ISSUEDT_E";
myshow = "Single-Status";
TabFld = "W.CLSDT_E";
MessageBox.Show(" With BLONO +
Closed or CANCEL Status and rest is null ");
}
else if (cmbstatus.Text != "Closed"
&& cmbstatus.Text != "CANCEL" && cmbstatus.Text !=
"ALL OPEN")
{
myshow = "Single-Status";
TabFld = "W.ISSUEDT_E";
MessageBox.Show(" With BLONO +
Other than ALL OPEN,Closed,CANCEL Status and rest
is null ");
}
}
else if (!
string.IsNullOrEmpty(txtBLONO.Text) && !
string.IsNullOrEmpty(cmbstatus.Text) &&
string.IsNullOrEmpty(txtDesc.Text) &&
string.IsNullOrEmpty(txtUnitModel.Text) &&
string.IsNullOrEmpty(txtExcludeWOTO.Text) &&
rdGroupbyWOTO.Checked == true)
{
if (AllOpen == "ALL OPEN")
{
myshow = "GroupBy WOTO";
TabFld = "W.ISSUEDT_E";
MessageBox.Show(" With
BLONO + ALL OPEN Status + Group by WOTO and rest
is null ");
}
else if (cmbstatus.Text ==
"Closed" || cmbstatus.Text == "CANCEL")
{
myshow = "Single-Status";
TabFld = "W.CLSDT_E";
MessageBox.Show(" With
BLONO + Closed or CANCEL Status + Group by WOTO and
rest is null ");
}
else if (cmbstatus.Text !=
"Closed" && cmbstatus.Text != "CANCEL" &&
cmbstatus.Text != "ALL OPEN")
{
myshow = "Single-Status";
TabFld = "W.ISSUEDT_E";
MessageBox.Show(" With
BLONO + Other than ALL OPEN,Closed,CANCEL Status +
Group by WOTO and rest is null ");
}
}
else if (!
string.IsNullOrEmpty(txtBLONO.Text) && !
string.IsNullOrEmpty(cmbstatus.Text) &&
string.IsNullOrEmpty(txtDesc.Text) &&
string.IsNullOrEmpty(txtUnitModel.Text) &&
string.IsNullOrEmpty(txtExcludeWOTO.Text) &&
rd_Charge2Me.Checked == true)
{
if (AllOpen == "ALL OPEN")
{
myshow = "GroupBy
ChargeCode"; TabFld = "W.ISSUEDT_E";
MessageBox.Show(" With
BLONO + ALL OPEN Status + Group by ChargeCode and
rest is null ");
}
else if (cmbstatus.Text ==
"Closed" || cmbstatus.Text == "CANCEL")
{
myshow = "GroupBy
ChargeCode"; TabFld = "W.CLSDT_E";
MessageBox.Show(" With
BLONO + Closed or CANCEL Status + Group by
ChargeCode and rest is null ");
}
else if (cmbstatus.Text !=
"Closed" && cmbstatus.Text != "CANCEL" &&
cmbstatus.Text != "ALL OPEN")
{
myshow = "GroupBy
ChargeCode"; TabFld = "W.ISSUEDT_E";
MessageBox.Show(" With
BLONO + Other than ALL OPEN,Closed,CANCEL Status +
Group by ChargeCode and rest is null ");
}
//
MessageBox.Show(" With
BLONO + Status + Group by ChargeCode and rest is
null ");
}
else if (!
string.IsNullOrEmpty(txtBLONO.Text) && !
string.IsNullOrEmpty(cmbstatus.Text) &&
string.IsNullOrEmpty(txtDesc.Text) &&
string.IsNullOrEmpty(txtUnitModel.Text) &&
string.IsNullOrEmpty(txtExcludeWOTO.Text) &&
rdGrpBLONO.Checked == true)
{
if (AllOpen == "ALL OPEN")
{
myshow = "GroupBy BLONO";
TabFld = "W.ISSUEDT_E";
MessageBox.Show(" With
BLONO + ALL OPEN Status + Group by BLONO and rest
is null ");
}
else if (cmbstatus.Text ==
"Closed" || cmbstatus.Text == "CANCEL")
{
myshow = "GroupBy BLONO";
TabFld = "W.CLSDT_E";
MessageBox.Show(" With
BLONO + Closed or CANCEL Status + Group by BLONO
and rest is null ");
}
else if (cmbstatus.Text !=
"Closed" && cmbstatus.Text != "CANCEL" &&
cmbstatus.Text != "ALL OPEN")
{
myshow = "GroupBy BLONO";
TabFld = "W.ISSUEDT_E";
MessageBox.Show(" With
BLONO + Other than ALL OPEN,Closed,CANCEL Status +
Group by BLONO and rest is null ");
}
//
MessageBox.Show(" With
BLONO + Status + Group by BLONO and rest is null
");
}
// **************
here ************************
Part - II starts
else if (!
string.IsNullOrEmpty(txtDesc.Text) &&
string.IsNullOrEmpty(txtBLONO.Text) &&
string.IsNullOrEmpty(cmbstatus.Text) &&
string.IsNullOrEmpty(txtUnitModel.Text) &&
string.IsNullOrEmpty(txtExcludeWOTO.Text) &&
rdGroupbyWOTO.Checked == false &&
rd_Charge2Me.Checked == false && rdGrpBLONO.Checked
== false)
{
myshow = "Desc+Like"; TabFld =
"W.ISSUEDT_E";
MessageBox.Show(" Description with
Like command and rest is null");
}
else if (!
string.IsNullOrEmpty(txtDesc.Text) && !
string.IsNullOrEmpty(cmbstatus.Text) &&
string.IsNullOrEmpty(txtBLONO.Text) &&
string.IsNullOrEmpty(txtUnitModel.Text) &&
string.IsNullOrEmpty(txtExcludeWOTO.Text) &&
rdGroupbyWOTO.Checked == false &&
string.IsNullOrEmpty(txtExcludeWOTO.Text) &&
rdGroupbyWOTO.Checked == false &&
rd_Charge2Me.Checked == false && rdGrpBLONO.Checked
== false)
{
MessageBox.Show(" UnitModel with
Like command and rest is null");
}
else if (!
string.IsNullOrEmpty(txtUnitModel.Text) && !
string.IsNullOrEmpty(cmbstatus.Text) &&
string.IsNullOrEmpty(txtBLONO.Text) &&
string.IsNullOrEmpty(txtDesc.Text) &&
string.IsNullOrEmpty(txtExcludeWOTO.Text) &&
rdGroupbyWOTO.Checked == false &&
rd_Charge2Me.Checked == false && rdGrpBLONO.Checked
== false)
{
MessageBox.Show(" UnitModel with
Like command + Status and rest is null");
}
else if (!
string.IsNullOrEmpty(txtUnitModel.Text) && !
string.IsNullOrEmpty(cmbstatus.Text) &&
string.IsNullOrEmpty(txtBLONO.Text) &&
string.IsNullOrEmpty(txtDesc.Text) &&
string.IsNullOrEmpty(txtExcludeWOTO.Text) &&
rdGroupbyWOTO.Checked == true &&
rd_Charge2Me.Checked == false && rdGrpBLONO.Checked
== false)
{
MessageBox.Show(" UnitModel with
Like command + Status + Group by WOTO and rest is
null");
}
else if (!
string.IsNullOrEmpty(txtUnitModel.Text) && !
string.IsNullOrEmpty(cmbstatus.Text) &&
string.IsNullOrEmpty(txtBLONO.Text) &&
string.IsNullOrEmpty(txtDesc.Text) &&
string.IsNullOrEmpty(txtExcludeWOTO.Text) &&
rdGroupbyWOTO.Checked == false &&
rd_Charge2Me.Checked == true && rdGrpBLONO.Checked
== false)
{
MessageBox.Show(" UnitModel with
Like command + Status + Group by ChargeCode and
rest is null");
}
else if (!
string.IsNullOrEmpty(txtUnitModel.Text) && !
string.IsNullOrEmpty(cmbstatus.Text) &&
string.IsNullOrEmpty(txtBLONO.Text) &&
string.IsNullOrEmpty(txtDesc.Text) &&
string.IsNullOrEmpty(txtExcludeWOTO.Text) &&
rdGroupbyWOTO.Checked == false &&
rd_Charge2Me.Checked == false && rdGrpBLONO.Checked
== true)
{
MessageBox.Show(" UnitModel with
Like command + Status + Group by BLONO and rest is
null");
}
here -- A
else if (!
string.IsNullOrEmpty(txtExcludeWOTO.Text) &&
string.IsNullOrEmpty(txtBLONO.Text) &&
string.IsNullOrEmpty(cmbstatus.Text) &&
string.IsNullOrEmpty(txtDesc.Text) &&
string.IsNullOrEmpty(txtUnitModel.Text) &&
rdGroupbyWOTO.Checked == false &&
rd_Charge2Me.Checked == false && rdGrpBLONO.Checked
== false)
{
MessageBox.Show(" WOTO and rest is
null");
}
else if (!
string.IsNullOrEmpty(txtExcludeWOTO.Text) && !
string.IsNullOrEmpty(cmbstatus.Text) &&
string.IsNullOrEmpty(txtBLONO.Text) &&
string.IsNullOrEmpty(txtDesc.Text) &&
string.IsNullOrEmpty(txtUnitModel.Text) &&
rdGroupbyWOTO.Checked == true &&
rd_Charge2Me.Checked == false && rdGrpBLONO.Checked
== false)
{
MessageBox.Show(" WOTO + Status +
Groupby WOTO and rest is null");
}
else if (!
string.IsNullOrEmpty(txtExcludeWOTO.Text) && !
string.IsNullOrEmpty(cmbstatus.Text) &&
string.IsNullOrEmpty(txtBLONO.Text) &&
string.IsNullOrEmpty(txtDesc.Text) &&
string.IsNullOrEmpty(txtUnitModel.Text) &&
rdGroupbyWOTO.Checked == false &&
rd_Charge2Me.Checked == true && rdGrpBLONO.Checked
== false)
{
MessageBox.Show(" WOTO + Status +
Groupby ChargeCode and rest is null");
}
else if (!
string.IsNullOrEmpty(txtExcludeWOTO.Text) && !
string.IsNullOrEmpty(cmbstatus.Text) &&
string.IsNullOrEmpty(txtBLONO.Text) &&
string.IsNullOrEmpty(txtDesc.Text) &&
string.IsNullOrEmpty(txtUnitModel.Text) &&
rdGroupbyWOTO.Checked == false &&
rd_Charge2Me.Checked == false && rdGrpBLONO.Checked
== true)
{
MessageBox.Show(" WOTO + Status +
Groupby BLONO and rest is null");
}