private void gv_deptInfo_RowCellClick(object sender, RowCellClickEventArgs e) { GridView gv = sender as GridView; CurrentrowItem = gv_BlackList.GetRow(e.RowHandle) as BlackListEntity; // 弹出加载提示框 //DevExpress.XtraSplashScreen.SplashScreenManager.ShowForm(typeof(WaitingForm)); cmd.ShowOpaqueLayer(225, true); // 开始异步 BackgroundWorkerUtil.start_run(bw_DoWorkGetPatientList, bw_RunWorkerGetPatientListCompleted, null, false); }
private void simpleButton1_Click(object sender, EventArgs e) { //string value = ""; //string strSelected = ""; List <BlackListEntity> itemList = new List <BlackListEntity>(); for (int i = 0; i < gv_BlackList.RowCount; i++) { // 获取选中行的check的值 string dr = gv_BlackList.GetRowCellValue(i, "check").ToString(); if (dr != String.Empty) { if (dr == "1") { BlackListEntity rowItem = gv_BlackList.GetRow(i) as BlackListEntity; itemList.Add(rowItem); //bandedGvList.Columns["euDrugtype"].FilterInfo = new ColumnFilterInfo("[euDrugtype] LIKE '0'"); } } } if (itemList.Count > 0) { if (MessageBoxUtils.Show("确认解冻选中的黑名单吗?", MessageBoxButtons.OKCancel, MessageBoxIcon.Question, MessageBoxDefaultButton.Button1, MainForm) == DialogResult.OK) { foreach (var item in itemList) { String param = "id={0}"; param = String.Format( param, item.id); String url = AppContext.AppConfig.serverUrl + "sch/blackList/unlock?" + param; string res = HttpClass.httpPost(url); } QueryInfo(1, pageControl1.PageSize); } } else { //MessageBox.Show("请选择要解冻的数据行"); MessageBoxUtils.Show("请选择要解冻的数据行", MessageBoxButtons.OK, MessageBoxIcon.Information, MessageBoxDefaultButton.Button1, MainForm); } }