using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using CY.BLL.Inquiry;
namespace CY.WebForm.Pages.sysInquiry
{
public partial class RecoverySysInquiryData : BasePage
{
RecoverySysInquiryDataBLL _recoverySysInquiryDataBLL = new RecoverySysInquiryDataBLL();
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
if (InquiryConditionObj.CustomerId != Guid.Empty)
{
cbkIsAllRecovery.Visible = false;
this.btnRecovery.Text = "恢复厂商询价参数设置";
}
}
}
///
/// 恢复事件
///
///
///
protected void btnRecovery_click(object sender, EventArgs e)
{
bool isSuccess = true;
bool isAllRecovery=false;
isAllRecovery=cbkIsAllRecovery.Checked;
isSuccess = _recoverySysInquiryDataBLL.RecoverySysInquiryData(InquiryConditionObj, isAllRecovery);
if (isSuccess)
{
JavaScript.MessageBox("保存成功", this);
}
else
{
JavaScript.MessageBox("保存失败", this);
}
}
}
}