Пример #1
0
        private void GetPharmacies()
        {
            DataSet dsTemp       = null;
            DataSet dsPharmacies = null;

            DataRow[] _dr = null;
            try
            {
                CommonFunctions.Event_Trap(this);
                Session["PharmacyId"] = null;
                dsTemp                  = new DataSet();
                dsPharmacies            = new DataSet();
                objectClientMedications = new ClientMedication();
                dsTemp                  = objectClientMedications.GetPharmaciesData();
                _dr = dsTemp.Tables["Pharmacies"].Select("Active = 'Y' And IsNull(RecordDeleted,'N')<>'Y'", "PharmacyName asc");
                dsPharmacies.Merge(_dr);
                ScriptManager.RegisterStartupScript(Label1, Label1.GetType(), "key", "PharmacyManagement.FillPharmacies();", true);
            }
            catch (Exception ex)
            {
                throw;
            }
            finally
            {
                _dsPharmacies = null;
                dsTemp        = null;
            }
        }
Пример #2
0
 public override void Activate()
 {
     try
     {
         CommonFunctions.Event_Trap(this);
         _dsPharmacies          = new Streamline.UserBusinessServices.DataSets.DataSetPharmacies();
         CheckBoxActive.Checked = true;
         FillStates();
         HiddenRadioButtonValue.Value = "Activate";
         ScriptManager.RegisterStartupScript(this.Label1, Label1.GetType(), "", "SetDefaultFocus('" + TextBoxName.ClientID + "');", true);
     }
     catch (Exception ex)
     {
         if (ex.Data["CustomExceptionInformation"] == null)
         {
             ex.Data["CustomExceptionInformation"] = "";
         }
         else
         {
             ex.Data["CustomExceptionInformation"] = "";
         }
         if (ex.Data["DatasetInfo"] == null)
         {
             ex.Data["DatasetInfo"] = null;
         }
         Streamline.BaseLayer.LogManager.LogException(ex, LogManager.LoggingCategory.General, LogManager.LoggingLevel.Error, this);
     }
     finally
     {
     }
 }