예제 #1
0
 public override void GetConvertHash()
 {
     AreaMasterBL _areaMasterBL =new BLL.Impl.HBPMS.Master.AreaMasterBL();
     var areas = _areaMasterBL.SearchRecords(new AreaMaster_amr_Info());
     foreach (AreaMaster_amr_Info item in areas)
     {
         _hash.Add(item.amr_cRecordID.ToString(), item.amr_cAreaName);
     }
 }
예제 #2
0
        public override void GetConvertHash()
        {
            AreaMasterBL areaMasterBL;

            try
            {
                areaMasterBL = new AreaMasterBL();
                var returnSource = areaMasterBL.SearchRecords(new AreaMaster_amr_Info());

                if (returnSource != null && returnSource.Count > 0)
                {
                    foreach (AreaMaster_amr_Info item in returnSource)
                    {
                        _hash.Add(item.amr_cRecordID.ToString(), item.amr_cAreaName);
                    }
                }
            }
            catch (Exception Ex)
            {
                MessageBox.Show(Ex.Message);

            }
        }