/// <summary> /// 删除复消报单 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void linkbtnDelete_Click(object sender, CommandEventArgs e) { int maxEcept = CommonDataBLL.GetMaxqishu(); string[] args = e.CommandArgument.ToString().Split(':'); if (PublicClass.OrderDefrayState(args[0])) { ScriptHelper.SetAlert(Page, this.GetTran("000000", "该订单已支付,不能删除!")); return; } Model.MemberOrderModel model = MemberOrderBLL.GetMemberOrder(args[0]); AuditingMemberagainBLL aml = new AuditingMemberagainBLL(); string result = ""; if (model.IsAgain == 1) { result = aml.DelMembersDeclaration(args[0], Convert.ToDouble(model.TotalPv), model.Number, model.OrderExpect, model.StoreId, Convert.ToDouble(model.TotalMoney)); } else { result = new BrowseMemberOrdersBLL().DelMembersDeclaration(model.Number, model.OrderExpect, model.OrderId, model.StoreId, Convert.ToDouble(model.LackProductMoney)); } result = result == null ? (this.GetTran("000008", "删除成功")) : (result);//删除成功 ScriptHelper.SetAlert(Page, result); GetShopList(); }
protected void BindData() { string strSotreId = ""; string strOrderId = ""; try { strSotreId = Request.QueryString["storeId"].ToString(); strOrderId = Request.QueryString["orderId"].ToString(); } catch (Exception) { Response.Redirect("BrowseMemberOrders.aspx"); } gv_orderDetails.DataSource = BrowseMemberOrdersBLL.DeclarationProduct(strSotreId, strOrderId); gv_orderDetails.DataBind(); }