コード例 #1
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            frmLocationNoAdd myfrmLocationAdd = new frmLocationNoAdd();

            if (myfrmLocationAdd.ShowDialog() == DialogResult.Yes)
            {
                btnSearch_Click(sender, e);
            }
        }
コード例 #2
0
        private void btnUserMod_Click(object sender, EventArgs e)
        {
            int count = this.gdvInfo.SelectedRowsCount;

            if (count == 0)
            {
                MessageBox.Show("请先搜索/刷新并选择需要修改的行", "错误!", MessageBoxButtons.OK, MessageBoxIcon.Error);
                return;
            }
            string LocationID    = this.gdvInfo.GetFocusedRowCellValue("id").ToString();
            string StoreHouse_ID = this.gdvInfo.GetFocusedRowCellValue("store_house_id").ToString();
            string LocationNo    = this.gdvInfo.GetFocusedRowCellValue("location_no").ToString();

            frmLocationNoAdd myfrmLocationAdd = new frmLocationNoAdd(LocationID, StoreHouse_ID, LocationNo);

            if (myfrmLocationAdd.ShowDialog() == DialogResult.Yes)
            {
                GetAllData();
            }
        }