void view_OnSelect(object sender, Views.Web.QueryPatientArgs e) { DataTable recordData = Model.QueryPatient(e.Patient); DataTable applyData = Model.GetApply(e.UserData.Rows[0]["USER_ID"].ToString()); if (recordData != null && applyData == null) { DataColumn dc = new DataColumn("FLAG", typeof(String)); DataColumn dc1 = new DataColumn("ENABLE", typeof(Boolean)); recordData.Columns.Add(dc); recordData.Columns.Add(dc1); foreach (DataRow dr in recordData.Rows) { dr["ENABLE"] = true; dr["FLAG"] = ""; } View.ExeBindSelectRecord(recordData); } else if (recordData != null && applyData != null) { View.ExeBindSelectRecord(isApply(recordData, applyData)); } else { View.ExeBindSelectRecord(null); } }
void view_OnProviceChanged(object sender, Views.Web.QueryPatientArgs e) { DataTable data = Model.QueryCity(e.ProviceID); View.ExeBindCity(data); }
void view_OnDeptChanged(object sender, Views.Web.QueryPatientArgs e) { DataTable data = Model.QueryDoctor(e.DeptID); View.ExeBIndDoctor(data, e.i); }