Exemplo n.º 1
0
 protected void Button2_Click(object sender, EventArgs e)
 {
     SearchSideEffectsfirst();
     if (sidem == 0)
     {
     }
     if (sidem == 1)
     {
         try
         {
             double x = double.Parse(TextBox2.Text.Length.ToString());
             if (x > 0)
             {
                 ClassDataManager v = new ClassDataManager();
                 v.AddDrugsideEFFECTS("•" + TextBox2.Text, double.Parse(Label11.Text));
                 I();
                 v.AdddrugsEffects_Transactions(double.Parse(Label14.Text), double.Parse(Label12.Text), double.Parse(Label11.Text));
                 Response.Redirect("AddDrugSpecifications.aspx?AdminID=" + double.Parse(Label11.Text) + "&DrugCode=" + double.Parse(Label12.Text));
             }
         }
         catch (Exception)
         {
             Response.Redirect("AddDrugSpecifications.aspx?AdminID=" + double.Parse(Label11.Text) + "&DrugCode=" + double.Parse(Label12.Text));
         }
     }
 }
Exemplo n.º 2
0
 protected void Button2_Click(object sender, EventArgs e)
 {
     SearchSideEffectsfirst();
     if (sidem == 0)
     {
     }
     if (sidem == 1)
     {
         try
         {
             Label            lblAdminID = ArticleMedicine.ContentPlaceholder.Controls[0].FindControl("lblAdminID") as Label;
             ClassDataManager v          = new ClassDataManager();
             v.AddDrugsideEFFECTS("•" + TextBox2.Text, double.Parse(lblAdminID.Text));
             I();
             v.AdddrugsEffects_Transactions(double.Parse(Label11.Text), double.Parse(Label4.Text), double.Parse(lblAdminID.Text));
             Response.Redirect("AddDrugsSpecifications.aspx?DrugCode=" + double.Parse(Label4.Text));
         }
         catch (Exception)
         {
             Response.Redirect("AddDrugsSpecifications.aspx?DrugCode=" + double.Parse(Label4.Text));
         }
     }
 }
    protected void Button2_Click(object sender, EventArgs e)
    {
        SearchSideEffectsfirst();
        if (sidem == 0)
        {

        }
        if (sidem == 1)
        {

            try
            {
                Label lblAdminID = ArticleMedicine.ContentPlaceholder.Controls[0].FindControl("lblAdminID") as Label;
                    ClassDataManager v = new ClassDataManager();
                    v.AddDrugsideEFFECTS("•" + TextBox2.Text, double.Parse(lblAdminID.Text));
                    I();
                    v.AdddrugsEffects_Transactions(double.Parse(Label11.Text), double.Parse(Label4.Text), double.Parse(lblAdminID.Text));
                    Response.Redirect("AddDrugsSpecifications.aspx?DrugCode=" + double.Parse(Label4.Text));
            }
            catch (Exception)
            {
                Response.Redirect("AddDrugsSpecifications.aspx?DrugCode=" + double.Parse(Label4.Text));
            }
        }
    }