/// <summary>
 /// 保存对照信息
 /// </summary>
 private void SaveCorpMap()
 {
     if (this.getCorpInput())
     {
         try
         {
             if (flag == "ADD")
             {
                 if (bll.JudgeHIScode(this.enterprise.CorpCode, this.enterprise.MapOrgId) < 1)
                 {
                     bll.InsertHisErpCorpMap(this.enterprise);
                     EmedMessageBox.ShowInformation("保存成功!");
                     this.ClearAll();
                     this.IsSave = true;
                     this.bindingDsEmedCorpList();
                     searchInput.SearchSendName = tb_sendName.Text;
                     filterDsEmedCorpList(searchInput);
                 }
                 else
                 {
                     EmedMessageBox.ShowInformation("此买方编码已存在!");
                 }
             }
             else if (flag == "MODIFY")
             {
                 bll.UpdateHisErpCorpMap(this.enterprise);
                 EmedMessageBox.ShowInformation("保存成功!");
                 this.IsSave = true;
                 this.bindingDsEmedCorpList();
                 searchInput.SearchSendName = tb_sendName.Text;
                 filterDsEmedCorpList(searchInput);
             }
         }
         catch (Exception ex)
         {
             EmedMessageBox.ShowError("保存时发送错误:" + ex.Message.ToString());
         }
     }
 }