void ReleaseDesignerOutlets()
        {
            if (AlarmTableView != null)
            {
                AlarmTableView.Dispose();
                AlarmTableView = null;
            }

            if (MedicineName != null)
            {
                MedicineName.Dispose();
                MedicineName = null;
            }

            if (MedicineStrength != null)
            {
                MedicineStrength.Dispose();
                MedicineStrength = null;
            }

            if (SaveButton != null)
            {
                SaveButton.Dispose();
                SaveButton = null;
            }
        }
Beispiel #2
0
    protected void Page_Load(object sender, EventArgs e)
    {
        ArticleAvailableForms.DataBind();
        ArticleMedicine.DataBind();
        MedicineName.DataBind();

        if (!IsPostBack)
        {
            Label lblAdminID = ArticleMedicine.ContentPlaceholder.Controls[0].FindControl("lblAdminID") as Label;

            if (Request.QueryString["DrugCode"] != null)
            {
                drugi = double.Parse(Request.QueryString["DrugCode"]);
            }
            Label4.Text = drugi.ToString();//drug code

            if (Session["Administration"] != null)
            {
                lblAdminID.Text = (string)(Session["Administration"]);
            }
            if (Session["Administration"] == null)
            {
                Response.Redirect("Default.aspx?");
            }

            PostDrugClass();
            Availableformz();
            PostEffects();
            PostDoosage();
            Medicine();
        }
    }
Beispiel #3
0
    protected void Page_Load(object sender, EventArgs e)
    {
        MedicineName.DataBind();
        if (!IsPostBack)
        {
            try
            {
                if (Request.QueryString["DrugCode"] != null)
                {
                    drugi = double.Parse(Request.QueryString["DrugCode"]);
                }
            }
            catch (Exception)
            {
                Response.Redirect("Default.aspx?");
            }

            Medicine();
            PostEffects();
            PostDrugClass();
            Availableformz();
            PostWarnings();
            PostDoosage();
        }
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        MedicineName.DataBind();
        if (!IsPostBack)
        {
            if (Request.QueryString["IllnessCode"] != null)
            {
                illnessc = double.Parse(Request.QueryString["IllnessCode"]);
            }
            AdminStatus.Text = illnessc.ToString();

            SampleIllness();
            PostSymptoms();
            PostTreatment();
            PostMedicine();

            if (Session["clients"] == null)
            {
                GridView5.Visible = false;
                Label3.Visible    = false;
                TextBox1.Visible  = false;
                Button1.Visible   = false;
                logins.Visible    = true;
            }
            if (Session["clients"] != null)
            {
                logins.Visible    = false;
                GridView5.Visible = true;
                Label3.Visible    = true;
                TextBox1.Visible  = true;
                Button1.Visible   = true;
            }
        }
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        MedicineName.DataBind();
        if (!IsPostBack)
        {
            if (Request.QueryString["IllnessCode"] != null)
            {
                illnessc = double.Parse(Request.QueryString["IllnessCode"]);
            }
            Label6z.Text = illnessc.ToString();

            if (Session["Administration"] != null)
            {
                lblAdminID.Text = (string)(Session["Administration"]);
            }
            if (Session["Administration"] == null)
            {
                Response.Redirect("Default.aspx?");
            }
            PostSymptoms();
            SampleIllness();
            PostTreatment();
            PostMedicine();
        }
    }
Beispiel #6
0
 private void CheckMedicineName()
 {
     if (MedicineName.Trim().Length > 0)
     {
         MedicineNameCheckingStatus = 1;
     }
     else
     {
         MedicineNameCheckingStatus = -1;
     }
     Invalidate("MedicineNameCheckingStatus");
 }
Beispiel #7
0
        void ReleaseDesignerOutlets()
        {
            if (MedicineName != null)
            {
                MedicineName.Dispose();
                MedicineName = null;
            }

            if (SelectCheckBox != null)
            {
                SelectCheckBox.Dispose();
                SelectCheckBox = null;
            }
        }
Beispiel #8
0
    protected void Page_Load(object sender, EventArgs e)
    {
        MedicineName.DataBind();
        if (!IsPostBack)
        {
            if (Request.QueryString["DrugClassID"] != null)
            {
                drugClassId = double.Parse(Request.QueryString["DrugClassID"]);
            }
            Label1.Text = drugClassId.ToString();

            drug_byClasses();
            Medicine();
        }
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        MedicineName.DataBind();
        if (!IsPostBack)
        {
            if (Request.QueryString["DrugClassID"] != null)
            {
                drugClassId = double.Parse(Request.QueryString["DrugClassID"]);
            }

            if (Request.QueryString["DrugCode"] != null)
            {
                drugi = double.Parse(Request.QueryString["DrugCode"]);
            }
            PostEffects();
            Availableformz();
            PostDrugClass();
            PostDoosage();
            Medicine();
            PostWarnings();
        }
    }