Example #1
0
    protected void onChange(object sender, EventArgs e)
    {
        Data data = new Data();
        data.add("doctorId", UserInfo.getId(Session));
        data.add("pID", Param.get("pId"));
        data.add("pre", pre.SelectedValue);
        DoctorBiz doctor = new DoctorBiz();
        Data result = doctor.list(Param.getString("searchFiled"), Param.getString("searchValue"), data);

        pId.Value = data.getString("pID");
        DoctorID.Value = data.getString("doctorId");
        int count = result.Count;
        for (int i = 0; i < count; i++)
        {
            result.add(i, "date", result.getString(i, "date").Substring(0, 10));
        }
        patienthistory.DataSource = result.Source;
        patienthistory.DataBind();
        userNameLabel.Text = result.getString("UserSurName") + "," + result.getString("UserFirstName") + ",ID:" + result.getString("UserID");
    }
Example #2
0
    protected override void Fire(object sender, EventArgs e)
    {
        if (!UserInfo.isDoctor(Session))
        {
            alertAndGoback("you are not a doctor. Please login");
            return;
        }

        Data data = new Data();
        data.add("doctorId", UserInfo.getId(Session));
        data.add("pID", Param.get("pId"));

        DoctorBiz doctor = new DoctorBiz();
        Data result = doctor.list(Param.getString("searchFiled"), Param.getString("searchValue"), data);

        pId.Value = data.getString("pID");
        DoctorID.Value = data.getString("doctorId");
        patienthistory.DataSource = result.Source;
        patienthistory.DataBind();
        userNameLabel.Text = result.getString("UserSurName") + "," + result.getString("UserFirstName") + ",ID:" + result.getString("UserID");
    }