Пример #1
0
        private void ModifyButton_Click(object sender, EventArgs e)
        {
            Dictionary <string, ObjItem> dr = this.dataGView1.getRowData();

            if (dr != null)
            {
                if (dr["状态"].ToInt() == 1 || dr["状态"].ToInt() == 2)
                {
                    EQIn_Add form = new EQIn_Add(dr, 2, app);//编辑
                    form.ShowDialog();
                    this.InStatus_ytComboBox.SelectedIndex = 0;
                    Search_button_Click(null, null);
                }
                if (dr["状态"].ToInt() == 0)
                {
                    WJs.alert("该入库信息已作废,不能再修改!");
                }
                if (dr["状态"].ToInt() == 7)
                {
                    WJs.alert("该入库信息已冲销,不能再修改!");
                }
                if (dr["状态"].ToInt() == 6)
                {
                    WJs.alert("该入库信息已审核,不能再修改!");
                }
            }
            else
            {
                WJs.alert("请选择要修改的入库信息!");
            }
        }
Пример #2
0
        private void add_toolStripButton_Click(object sender, EventArgs e)
        {
            if (this.InWare_selTextInpt.Value == null)
            {
                WJs.alert("请选择入库库房!");
                return;
            }
            EQIn_Add form = new EQIn_Add(this.InWare_selTextInpt.Value, this.InWare_selTextInpt.Text, app);

            form.ShowDialog();
            this.InStatus_ytComboBox.SelectedIndex = 0;
            Search_button_Click(null, null);
        }
Пример #3
0
        private void scan_toolStripButton_Click(object sender, EventArgs e)
        {
            Dictionary <string, ObjItem> dr = this.dataGView1.getRowData();

            if (dr != null)
            {
                EQIn_Add form = new EQIn_Add(dr, 3, app);//浏览
                form.ShowDialog();
                //this.InStatus_ytComboBox.SelectedIndex = 0;
                Search_button_Click(null, null);
            }
            else
            {
                WJs.alert("请选择要浏览的入库信息!");
            }
        }
Пример #4
0
        private void check_toolStripButton_Click(object sender, EventArgs e)//审核
        {
            Dictionary <string, ObjItem> dr = this.dataGView1.getRowData();

            //  List<Dictionary<string, ObjItem>> list = this.dataGView2.GetData();
            if (dr != null)
            {
                if (dr["状态"].ToInt() == 1)
                {
                    EQIn_Add form = new EQIn_Add(dr, 4, app);//编辑
                    form.Main = this;
                    form.ShowDialog();

                    this.InStatus_ytComboBox.SelectedIndex = status;

                    // this.InStatus_ytComboBox.SelectedIndex = 2;
                    //WJs.alert("入库信息id=" + dr["入库ID"].ToString() + "审核成功!");
                    Search_button_Click(null, null);
                }
                if (dr["状态"].ToInt() == 0)
                {
                    WJs.alert("该入库信息已作废,不能再审核!");
                }
                if (dr["状态"].ToInt() == 2)
                {
                    WJs.alert("该入库信息已审核,不能再次审核!");
                }
                if (dr["状态"].ToInt() == 6)
                {
                    WJs.alert("该入库信息已入库,不能再审核!");
                }
            }
            else
            {
                WJs.alert("请选择要审核的入库信息!");
            }
        }