Esempio n. 1
0
 protected void btnPass_Click(object sender, EventArgs e)
 {
     if (ProductHelper.AuditProducts(this.productIds, this.tbxReson.Text, true))
     {
         this.ShowMsg("审核成功,商品已默认上架!", true);
         this.btnFailed.Enabled = false;
         this.btnPass.Enabled   = false;
     }
     else
     {
         this.ShowMsg("操作失败,可能商品没有设置一口价,或者供应商状态错误!", false);
     }
 }
Esempio n. 2
0
 protected void btnFailed_Click(object sender, EventArgs e)
 {
     if (string.IsNullOrEmpty(this.tbxReson.Text))
     {
         this.ShowMsg("拒绝时必须填写拒绝理由", false);
     }
     else if (ProductHelper.AuditProducts(this.productIds, this.tbxReson.Text, false))
     {
         this.ShowMsg("操作成功!", true);
         this.btnFailed.Enabled = false;
         this.btnPass.Enabled   = false;
         this.CloseWindow();
     }
     else
     {
         this.ShowMsg("操作失败", false);
     }
 }