zoukankan      html  css  js  c++  java
  • winfrom中的弹出询问消息框提示

    if (dgvgood.Rows.Count > 0)
                    {
                        switch (MessageBox.Show("单据已经修改,要保存吗?", "询问", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Question, MessageBoxDefaultButton.Button2))
                        {
                            case DialogResult.Cancel:
                                break;
                            case DialogResult.Yes:
                                {
                                    //if (string.IsNullOrEmpty(cbperson.Text))
                                    //{
                                    //    MessageShow.ShowMessage("提示", "请填写经办人");
                                    //    return;
                                    //}
                                    if (string.IsNullOrEmpty(cbwarehouse.Text))
                                    {
                                        MessageShow.ShowMessage("提示", "请先选择仓库");
                                        return;
                                    }
                                    if (string.IsNullOrEmpty(cbsupplier.Text))
                                    {
                                        MessageShow.ShowMessage("提示", "请先选择供货商");
                                        return;
                                    }

                                    tspconfirm_Click(null, null);
                                    this.Close();


                                }
                                break;
                            case DialogResult.No:
                                {
                                    FrmGoodsBLL.al_InGoods.Clear();
                                    DataBind();
                                    this.Close();
                                }
                                break;

                        }
                    }
                    else
                    {
                        this.Close();
                    }

  • 相关阅读:
    PHP Jquery
    PHP TPinfo表的增删改查
    PHP TP验证码
    PHP TP表单验证
    PHP TP增删改
    8月21日 仿163邮箱中遇到的问题及解决(三)
    8月20日 仿163邮箱中遇到的问题及解决(二)
    8月12日 仿163邮箱中遇到的问题及解决(一)
    8月7日 使用Jquery做表格的隔行变色,点击事件
    6月17日 TP表单验证
  • 原文地址:https://www.cnblogs.com/wuhuisheng/p/2087870.html
Copyright © 2011-2022 走看看