/// <summary>
        /// 保存产品对照信息
        /// </summary>
        private void SaveProductHis()
        {
            try
            {
                ArrayList list1 = new ArrayList();
                for (int num1 = 0; num1 < this.dataGridView.RowCount; num1++)
                {
                    DataGridViewRow row1 = this.dataGridView.Rows[num1];
                    Emedchina.TradeAssistant.Model.User.LogedInUser usr = ClientSession.GetInstance().CurrentUser;

                    string boolstr;
                    if (row1.Cells[0].Value != null && row1.Cells[0].Value.ToString().ToLower() == "true")
                    {
                        boolstr = "True";
                    }
                    else
                    {
                        boolstr = "False";
                    }


                    string orgId = row1.Cells["ORG_ID"].Value.ToString();
                    if (boolstr == "True") //&& !string.IsNullOrEmpty(orgId)
                    {
                        if (bll.IsExistCode(row1.Cells["CODE"].Value.ToString(), usr.UserOrg.Reg_org_id.ToString()))
                        {
                            list1.Add(bll.UpdateHisEnterpriseMapSQL(row1, row1.Cells["CODE"].Value.ToString(), base.CurrentUserId, usr.UserOrg.Reg_org_id.ToString()));
                        }
                        else
                        {
                            list1.Add(bll.InsertHisEnterpriseMapSQL(row1, base.CurrentUserId, usr.UserOrg.Reg_org_id.ToString()));
                        }
                    }
                }
                if (list1.Count < 1)
                {
                    return;
                }
                string[] textArray1 = new string[list1.Count];
                list1.CopyTo(textArray1);
                if (bll.HisOperation(textArray1))
                {
                    //this.IsSave = true;
                    EmedMessageBox.ShowInformation("保存成功!");
                }
                else
                {
                    EmedMessageBox.ShowInformation("保存失败!");
                }
            }
            catch (Exception exception1)
            {
                EmedErrorLog.SaveLog("保存失败", exception1);
            }
        }