Exemplo n.º 1
0
        private void toolStripButton1_Click(object sender, EventArgs e)//新增
        {
            AskBuy_Add ks = new AskBuy_Add(null, true);

            ks.AskB = this;
            ks.ShowDialog();
        }
Exemplo n.º 2
0
        private void dataGView_Main_DoubleClick(object sender, EventArgs e)
        {
            DataRow r = this.dataGView_Main.GetRowData();

            if (r != null)
            {
                rowid = this.dataGView_Main.CurrentRow.Index;
                AskBuy_Add ks = new AskBuy_Add(r, false, "CK");
                ks.AskB = this;
                ks.ShowDialog();
            }

            else
            {
                WJs.alert("请选择请购信息");
            }
        }
Exemplo n.º 3
0
        private void toolStripButton5_Click(object sender, EventArgs e)//修改
        {
            DataRow r = this.dataGView_Main.GetRowData();

            if (r != null)
            {
                if (r["STATUS"].ToString() == "1" || r["STATUS"].ToString() == "2")
                {
                    rowid = this.dataGView_Main.CurrentRow.Index;
                    AskBuy_Add ks = new AskBuy_Add(r, false);
                    ks.AskB = this;
                    ks.ShowDialog();
                }
                else
                {
                    WJs.alert("状态错误,只能修改状态为等待审核或者审核被拒的数据!");
                }
            }

            else
            {
                WJs.alert("请选择要编辑的请购信息");
            }
        }
Exemplo n.º 4
0
        private void toolStripButton7_Click(object sender, EventArgs e)//审核
        {
            DataRow r = this.dataGView_Main.GetRowData();

            if (r != null)
            {
                if (r["STATUS"].ToString() == "1")
                {
                    rowid = this.dataGView_Main.CurrentRow.Index;
                    AskBuy_Add ks = new AskBuy_Add(r, false, "SH");
                    ks.AskB = this;
                    ks.ShowDialog();
                }
                else
                {
                    WJs.alert("状态错误,只能对状态为待审核的数据进行审核!");
                }
            }

            else
            {
                WJs.alert("请选择要审核的请购信息");
            }
        }