예제 #1
0
        //删除订单
        protected void btndel_Click(object sender, EventArgs e)
        {
            rptList.DataSource = null;
            rptList.DataBind();

            try
            {
                for (int i = 0; i < rptSale.Items.Count; i++)
                {
                    HtmlInputRadioButton rdoselect = (HtmlInputRadioButton)rptSale.Items[i].FindControl("rdoselect");
                    if (rdoselect.Checked)
                    {
                        if (tmo_order.DelNCSalePlan(rdoselect.Value))
                        {
                            if (tmo_order.DelSalePlan(rdoselect.Value))
                            {
                                WebMsg.MessageBox("删除成功");
                                GetSale();
                            }
                        }
                        else
                        {
                            WebMsg.MessageBox("请先同步删除NC订单号与计划号");
                        }
                    }
                }
            }
            catch (Exception ex)
            {
                WebMsg.MessageBox(ex.Message);
            }
        }