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; }
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"); }