protected void btnCloseMatter_Click(object sender, EventArgs e) { string Mode = "UPDATE"; if (ddlCloseMatter.SelectedIndex != 0) { if (ddlcMatterStatusdata.SelectedIndex != 0) { string parameter2 = ""; int i = MV.MatterClose(ddlCloseMatter.SelectedItem.ToString(), Convert.ToInt32(ddlcMatterStatusdata.SelectedValue), Mode, out parameter2); if (i > 0) { ddlCloseMatter.SelectedIndex = 0; ddlcMatterStatusdata.SelectedIndex = 0; int j = SV.AuditMatter(Convert.ToInt32(ddlCloseMatter.SelectedValue.ToString()), Mode, USERID); MyMessageBoxInfo.Show(MyMessageBox.MessageType.Success, commessage.UpdatedRecord, 125, 300); } else { MyMessageBoxInfo.Show(MyMessageBox.MessageType.Warning, parameter2, 125, 300); } } else { MyMessageBoxInfo.Show(MyMessageBox.MessageType.Info, "Please Select status.", 125, 300); } } else { MyMessageBoxInfo.Show(MyMessageBox.MessageType.Info, "Please Select Matter number.", 125, 300); } }
protected void btnCloseMatter_Click(object sender, EventArgs e) { string Mode = "UPDATE"; if (ddlcMatterStatusdata.SelectedIndex != 0) { string Warning = ""; int i = MV.MatterClose(lblCloseMatterNo.Text, Convert.ToInt32(ddlcMatterStatusdata.SelectedValue), Mode, out Warning); if (i > 0) { int j = SV.AuditMatter(Convert.ToInt32(lblCloseMatterNo.Text), Mode, USERID); ddlcMatterStatusdata.SelectedIndex = 0; MyMessageBoxInfo.Show(MyMessageBox.MessageType.Success, commessage.UpdatedRecord, 125, 300); } else { MyMessageBoxInfo.Show(MyMessageBox.MessageType.Warning, Warning, 125, 300); } } else { MyMessageBoxInfo.Show(MyMessageBox.MessageType.Success, "Please Select Status.", 125, 300); } }