Exemple #1
0
        /// <summary>
        /// 购墓登记
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void barButtonItem1_ItemClick(object sender, ItemClickEventArgs e)
        {
            Frm_checkin frm_checkin = new Frm_checkin();

            if (frm_checkin.ShowDialog() == DialogResult.OK)
            {
            }
            frm_checkin.Dispose();
        }
Exemple #2
0
        /// <summary>
        /// 购墓登记
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void barButtonItem23_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            int    rowHandle = gridView1.FocusedRowHandle;
            string s_bk001   = string.Empty;

            if (rowHandle >= 0)
            {
                if (gridView1.GetRowCellValue(rowHandle, "STATUS").ToString() != "1")
                {
                    Tools.msg(MessageBoxIcon.Warning, "提示", "只有未到期的预定记录才可以进行登记!");
                    return;
                }
                s_bk001 = gridView1.GetRowCellValue(rowHandle, "BK001").ToString();
                Frm_checkin frm_1 = new Frm_checkin();
                frm_1.swapdata["action"] = "bookin";
                frm_1.swapdata["bk001"]  = s_bk001;
                if (frm_1.ShowDialog() == DialogResult.OK)
                {
                    this.RefreshData();
                }
                frm_1.Dispose();
            }
        }