private void btnAdd_Click(object sender, EventArgs e)
        {
            GetEmedCorpList();
            hospHisCorpCreate frm1 = new hospHisCorpCreate(dsEmedCorpList0);

            frm1.flag = "ADD";
            frm1.ShowDialog();
            bindingDsEnterPriseMapList();
            ItemFilter();
        }
 private void btnEdit_Click(object sender, EventArgs e)
 {
     if (this.dgvEPIDCompare.CurrentRow != null)
     {
         GetEmedCorpList();
         hospHisCorpCreate frm1 = new hospHisCorpCreate(dsEmedCorpList0);
         frm1.flag     = "MODIFY";
         frm1.code     = this.dgvEPIDCompare.CurrentCell == null ? "" : this.dgvEPIDCompare.CurrentRow.Cells["CODE"].Value.ToString();
         frm1.fullname = this.dgvEPIDCompare.CurrentCell == null ? "" : this.dgvEPIDCompare.CurrentRow.Cells["FULL_NAME"].Value.ToString();
         frm1.easyname = this.dgvEPIDCompare.CurrentCell == null ? "" : this.dgvEPIDCompare.CurrentRow.Cells["EASY_NAME"].Value.ToString();
         frm1.orgid    = this.dgvEPIDCompare.CurrentCell == null ? "" : this.dgvEPIDCompare.CurrentRow.Cells["org_id"].Value.ToString();
         frm1.process  = this.dgvEPIDCompare.CurrentCell == null ? "" : this.dgvEPIDCompare.CurrentRow.Cells["PROCESS_FLAG"].Value.ToString();
         frm1.ShowDialog();
         bindingDsEnterPriseMapList();
         ItemFilter();
         foreach (DataGridViewRow row in this.dgvEPIDCompare.Rows)
         {
             if (row.Cells["CODE"].Value.ToString() == frm1.code)
             {
                 this.dgvEPIDCompare.CurrentCell = this.dgvEPIDCompare["CODE", row.Index];
             }
         }
     }
 }