Beispiel #1
0
    protected override void Fire(object sender, EventArgs e)
    {
        if (!UserInfo.isMriOperator(Session))
        {
            alertAndGoback("you are not a MRI operator. Please login");
            return;
        }
        //DBC dbc = new DBC();
        //dbc.open();
        String hId = Param.getString("hId");
        Data data = new Data();
        data.add("doctorId", UserInfo.getId(Session));

        //Data result = dbc.select("Select * From Users WHERE JobCode = 0 and UserID in (SELECT patientId FROM history WHERE staffId = @doctorId)", data);
        //dbc.close();
        DoctorPatientsBiz biz = new DoctorPatientsBiz();

        if (!"".Equals(hId))
        {
            data.add("hId", hId);
            biz.done(data);
        }
        Data result = biz.list(Param.getString("searchField"), Param.getString("searchValue"), data);
        Patientlist.DataSource = result.Source;
        Patientlist.DataBind();
        //error.Text = result.ErrorMessage;
    }
Beispiel #2
0
 protected void onComplete(object sender, EventArgs e)
 {
     Data data = new Data();
     DoctorPatientsBiz dBiz = new DoctorPatientsBiz();
     data.add("hId", Param.getString("historyId"));
     dBiz.done(data);
     go("~/aspx/xray/patients/list.aspx");
 }
Beispiel #3
0
 protected void onSearch(object sender, EventArgs e)
 {
     DoctorPatientsBiz biz = new DoctorPatientsBiz();
     Data data = Param;
     data.add("doctorId", UserInfo.getId(Session));
     Data list = biz.list(Param.getString("searchField"), Param.getString("searchValue"), data);
     for (int i = 0; i < list.Count; i++)
     {
         list.add(i, "date", list.getString(i, "date").Substring(0, 10));
     }
     Patientlist.DataSource = list.Source;
     Patientlist.DataBind();
 }