1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
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 = "恢复厂商询价参数设置";
                }
            }
        }
        /// <summary>
        /// 恢复事件
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        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);
            }
        }
    }
}