Beispiel #1
0
        /// <summary>
        /// 本馆火化寄存
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void barButtonItem2_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            if (!AppAction.CheckRight("寄存登记"))
            {
                return;
            }

            Frm_fromFire frm_fromFire = new Frm_fromFire();

            frm_fromFire.swapdata["BusinessObject"] = this;
            if (frm_fromFire.ShowDialog() == DialogResult.OK)
            {
                string s_ac001 = this.swapdata["AC001"].ToString();
                frm_fromFire.Dispose();

                Frm_Register regform = new Frm_Register();
                regform.swapdata["dataset"] = register_ds;
                regform.swapdata["source"]  = "0";
                regform.swapdata["AC001"]   = s_ac001;
                if (regform.ShowDialog() == DialogResult.OK)
                {
                    this.RefreshData();
                }
                regform.Dispose();
            }
            frm_fromFire.Dispose();
        }
Beispiel #2
0
        /// <summary>
        /// 骨灰寄存
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void barButtonItem19_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            ////检查火化是否办理并且结算///////
            if (FireAction.FireIsSettled(s_ac001))
            {
                XtraMessageBox.Show("该逝者已经办理火化并且结算,不能再办理业务!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
                return;
            }

            ///要先检测该逝者是否已经办理过寄存业务
            if (Convert.ToInt32(SqlHelper.ExecuteScalar("select count(*) from v_sa01 where sa002 = '08' and ac001 = '" + s_ac001 + "'")) > 0)
            {
                XtraMessageBox.Show("该逝者已经办理了骨灰寄存业务!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
                return;
            }

            Frm_Register frm_1 = new Frm_Register();

            frm_1.swapdata["source"] = "8";               //来源 8-待缴费
            frm_1.swapdata["rc001"]  = s_ac001;
            if (frm_1.ShowDialog() == DialogResult.OK)
            {
                this.RefreshData();
            }
            frm_1.Dispose();
        }
Beispiel #3
0
        /// <summary>
        /// 外来寄存
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void barButtonItem3_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            Frm_Register frm_1 = new Frm_Register();

            frm_1.swapdata["source"] = "1";               //来源 1-外来寄存
            if (frm_1.ShowDialog() == DialogResult.OK)
            {
                this.RefreshData();
            }
            frm_1.Dispose();
        }
Beispiel #4
0
        /// <summary>
        /// 外来寄存
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void barButtonItem3_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            if (!AppAction.CheckRight("寄存登记"))
            {
                return;
            }

            Frm_Register frm_reg = new Frm_Register();

            frm_reg.swapdata["dataset"] = register_ds;
            frm_reg.swapdata["source"]  = "1";
            if (frm_reg.ShowDialog() == DialogResult.OK)
            {
                this.RefreshData();
            }
            frm_reg.Dispose();
        }
Beispiel #5
0
        /// <summary>
        /// 本馆火化寄存
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void barButtonItem2_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            Frm_RegFromFire frm_1 = new Frm_RegFromFire();

            if (frm_1.ShowDialog() == DialogResult.OK)
            {
                string       s_ac001 = frm_1.swapdata["ac001"].ToString();
                Frm_Register frm_reg = new Frm_Register();
                frm_reg.swapdata["source"] = "0";                     //来源为 本馆火化
                frm_reg.swapdata["rc001"]  = s_ac001;                 //逝者编号
                if (frm_reg.ShowDialog() == DialogResult.OK)
                {
                    this.RefreshData();
                }
                frm_reg.Dispose();
            }
            frm_1.Dispose();
        }