Example #1
0
 private void btnReturn_Click(object sender, System.EventArgs e)
 {
     if (!SubsiteSalesHelper.CanPurchaseReturn(this.hidPurchaseOrderId.Value))
     {
         this.ShowMsg("已有待确认的申请!", false);
         return;
     }
     if (SubsiteSalesHelper.ApplyForPurchaseReturn(this.hidPurchaseOrderId.Value, this.txtReturnRemark.Text, int.Parse(this.dropReturnRefundType.SelectedValue)))
     {
         this.BindPurchaseOrders();
         this.ShowMsg("成功的申请了退货", true);
         return;
     }
     this.ShowMsg("申请退货失败", false);
 }