/// <summary> /// 寄存时间修正 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void barButtonItem16_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { //权限检查 if (!AppAction.CheckRight("寄存时间修正")) { return; } int rowHandle = gridView1.FocusedRowHandle; string s_rc001 = string.Empty; if (rowHandle >= 0) { if (register_ds.Rc01.Rows[gridView1.GetDataSourceRowIndex(rowHandle)]["SOURCE"].ToString() != "2") { MessageBox.Show("只有原始寄存可以调整寄存日期!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); return; } s_rc001 = gridView1.GetRowCellValue(rowHandle, "RC001").ToString(); if (RegisterAction.GetRegPayRecordNum(s_rc001) > 1) { MessageBox.Show("原始登记已经缴费,不能继续!", "", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); return; } Frm_AdjustRegisterDate frm_1 = new Frm_AdjustRegisterDate(); frm_1.swapdata["AC001"] = s_rc001; frm_1.ShowDialog(); frm_1.Dispose(); } }