Exemplo n.º 1
0
        /// <summary>
        /// 休息室
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void barButtonItem4_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            if (FireAction.FireIsSettled(AC001) == "1")
            {
                XtraMessageBox.Show("已经办理火化且结算完成,不能继续办理业务!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Warning);
                return;
            }

            Frm_business03 frm_xxs = new Frm_business03();

            frm_xxs.swapdata["dataset"]   = business_ds;
            frm_xxs.swapdata["AC001"]     = AC001;
            frm_xxs.swapdata["SALESTYPE"] = "0";


            if (frm_xxs.ShowDialog() == DialogResult.OK)
            {
                List <string> itemIdList = frm_xxs.swapdata["xxs"] as List <string>;
                int           result     = 0;
                foreach (string s in itemIdList)
                {
                    result = FireAction.FireSales_03(AC001,
                                                     s,
                                                     Envior.cur_userId
                                                     );
                }
                RefreshSalesData();
            }
            frm_xxs.Dispose();
        }