예제 #1
0
        private void BtnAdd_Click(object sender, EventArgs e)
        {
            ItemUtManage _Manage = new ItemUtManage();

            _Manage.Edit = "ADD";
            if (_Manage.ShowDialog() != DialogResult.OK)
            {
                QueryData("");
            }
        }
예제 #2
0
 private void BtnUpd_Click(object sender, EventArgs e)
 {
     if (this.dataGridView1 != null && this.dataGridView1.Rows.Count > 0)
     {
         if (dataGridView1.CurrentRow != null)
         {
             string          _ItemUt_Id = "";
             DataGridViewRow _dr        = this.dataGridView1.Rows[dataGridView1.CurrentRow.Index];
             if (_dr != null)
             {
                 _ItemUt_Id = string.IsNullOrEmpty((_dr.Cells["ItemUt_Id"].Value.ToString()).ToString()) ? "" : (_dr.Cells["ItemUt_Id"].Value.ToString()).ToString();
             }
             ItemUtManage _Manage = new ItemUtManage();
             _Manage.Edit      = "UPD";
             _Manage.ItemUt_Id = _ItemUt_Id;
             if (_Manage.ShowDialog() != DialogResult.OK)
             {
                 QueryData("");
             }
         }
     }
 }