コード例 #1
0
        /// <summary>
        /// 提示清空
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void ibtnDeleteAll_Click(object sender, ImageClickEventArgs e)
        {
            string str = "";

            if (cbAnnouncement.Checked == true)
            {
                AnnouncementInfoManager.Clear();
                ClearAuditAndJobflow("04");
                str += "公告管理清空完成;\\n";
            }
            if (cbCalendar.Checked == true)
            {
                CalendarsManager.Clear();
                str += "日程管理清空完成;\\n";
            }
            if (cbCompany.Checked == true)
            {
                FactoryManager.Clear();

                str += "付款单位清空完成;\\n";
            }
            if (cbCustomer.Checked == true)
            {
                CustomerManager.Clear();
                ClearAuditAndJobflow("03");
                str += "收款单位清空完成;\\n";
            }
            if (cbFinancial.Checked == true)
            {
                To_CollectingManager.Clear();

                str += "收款管理清空完成;\\n";
            }
            if (cbInfomation.Checked == true)
            {
                InformationManager.Clear();

                str += "消息管理清空完成;\\n";
            }
            if (cbInvocie.Checked == true)
            {
                To_InvoiceManager.Clear();

                str += "发票管理清空完成;\\n";
            }
            if (cbLinkInfo.Checked == true)
            {
                AddressListInfoManager.Clear();

                str += "通讯录清空完成;\\n";
            }
            if (cbPicture.Checked == true)
            {
                PictureInfoManager.Clear();

                str += "图片管理清空完成;\\n";
            }
            if (cbPolicy.Checked == true)
            {
                To_OrderInfoManager.Clear();
                // ClearAuditAndJobflow("02");
                str += "保单管理清空完成;\\n";
            }
            if (cbReimbursed.Checked == true)
            {
                ClearAuditAndJobflow("01");
                AusRottenInfoManager.Clear();
                str += "报销管理清空完成;\\n";
            }
            // ClientScript.RegisterStartupScript(this.GetType(), "", " <script lanuage=javascript> alert('"+ str +"');</script>");
            ClientScript.RegisterClientScriptBlock(this.GetType(), "page", string.Format("alert('{0}');", str), true);
        }