Esempio n. 1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     /*try
      * {
      *  if (Session["user"].ToString() != "")
      *      SignLbl.Text = Session["user"].ToString();
      * }
      * catch (Exception ex)
      * {
      *  Response.Redirect("LoginReg.aspx");
      * }*/
     if (!IsPostBack)
     {
         string query = "select MedicineId,MedicineName from Medicine";
         all.DrpDownData(MedicineDrpdwn, query, "MedicineId", "MedicineName", "--Select Medicine--");
         query = "select LabTestId,LabTestName from PathologyTests";
         all.DrpDownData(LabTestDrpdwn, query, "LabTestId", "LabTestName", "--Select Test--");
         query = "select DoseId,Dose from Doses";
         all.DrpDownData(DoseDrpdwn, query, "DoseId", "Dose", "--Select Dose--");
         query = "select UserId,PathologyName from LabDetails";
         all.DrpDownData(PathologyNameDrpdwn, query, "UserId", "PathologyName", "--Select Lab--");
         query = "select UserId,PharmacyName from PharmacyDetails";
         all.DrpDownData(PharmacyNameDrpdwn, query, "UserId", "PharmacyName", "--Select Pharmacy--");
     }
 }
Esempio n. 2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     Session["user"] = "";
     if (!this.IsPostBack)
     {
         string query = "select CityName, CityId from City";
         all.DrpDownData(CityDrpdwn, query, "CityId", "CityName", "---Select City---");
         query = "select Speciality,Speciality_id from Speciality";
         all.DrpDownData(SpecialityDrpdwn, query, "Speciality_id", "Speciality", "---Select Speciality---");
     }
     if (Session["user"].ToString() != "")
     {
         SignLbl.Text = Session["user"].ToString();
     }
 }
Esempio n. 3
0
    protected void CheckApp_Click(object sender, EventArgs e)
    {
        string query  = "select DoctorId from BookingDetails where PatientId = 10001 and Date = '" + datepicker.Text + "'";
        string Did    = all.ExeScalar(query).ToString();
        string query1 = "select Name  from DoctorDetails where UserId = " + Did + " ";

        DocNamelbl.Text = "DR  " + all.ExeScalar(query1).ToString();
        string query2 = "select Name  from PatientDetails where UserId = 10001 ";

        PatientNameLbl.Text = all.ExeScalar(query2).ToString();
        string query3 = "select TestId, TestName from PathologyTestDetail where PatientId = 10001 and Date = '" + datepicker.Text + "'";

        all.DrpDownData(LRTestNameDrpdwn, query3, "TestId", "TestName", "--select Test --");
    }
Esempio n. 4
0
    protected void Page_Load(object sender, EventArgs e)
    {
        try
        {
            if (Session["user"].ToString() == "")
            {
                DropDownLbl.Text = "SIGNIN";
            }
            else
            {
                SignLbl.Text = Session["user"].ToString();
            }
        }
        catch (Exception ex)
        {
            DropDownLbl.Text = "SIGNIN";
        }

        if (!this.IsPostBack)
        {
            if (Request.QueryString["speciality"] != null)
            {
                string query = "Select * from DoctorDetails where Specialization='" + Request.QueryString["speciality"] + "' and Region='" + Request.QueryString["location"] + "'";
                all.Repeater(BookingRptr, query);
            }
            string query1 = "select CityName, CityId from City";
            all.DrpDownData(FindCityDrpDwn, query1, "CityId", "CityName", "---Select City---");
            query1 = "select Speciality,Speciality_id from Speciality";
            all.DrpDownData(FindSpecialtyDrpDwn, query1, "Speciality_id", "Speciality", "---Select Speciality---");
            MorningSlotRptr.Visible    = false;
            EveningSlotRptr.Visible    = false;
            head1.Visible              = false;
            head2.Visible              = false;
            BookAppointmentBtn.Enabled = false;
        }
    }
    protected void LabReportBtn_Click(object sender, EventArgs e)
    {
        MedicalPrescriptionBtn.Attributes.Add("style", "background-color:none;color:white;");
        LabReportBtn.Attributes.Add("style", "background-color:white;color:#28465A;");
        DocReviewBtn.Attributes.Add("style", "background-color:none;color:white;");
        AppointmentBtn.Attributes.Add("style", "background-color:none;color:white;");
        LabReport.Visible           = true;
        Review.Visible              = false;
        Appointment.Visible         = false;
        MedicalPrescription.Visible = false;

        LRDocNameLbl.Text = AppDocNameLbl.Text;

        string query = "select TestId, TestName from PathologyTestDetail where PatientId = " + Session["userid"] + " and Date = '" + datepicker.Text + "'";

        all.DrpDownData(LRTestNameDrpdwn, query, "TestId", "TestName", "--select Test --");
    }