예제 #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     RegisterOEMSkins("form.css");
     RegisterOEMSkins("page.css");
     if (!IsPostBack)
     {
         InitData();
         string ariline = Request.QueryString["airline"];
         if (!string.IsNullOrWhiteSpace(ariline))
         {
             this.lblAddOrUpdate.Text = "修改";
             var defaultPolicy = PolicyManageService.GetNormalDefaultPolicy(ariline);
             ddlAirlines.SelectedValue = defaultPolicy.Airline;
             ddlAirlines.Enabled       = false;
             AdultAgentCompany.SetCompanyName(defaultPolicy.AdultProviderId);
             ChildAgentCompany.SetCompanyName(defaultPolicy.ChildProviderId);
             txtAdult.Text = double.Parse((defaultPolicy.AdultCommission * 100).ToString()).ToString();
             txtChild.Text = double.Parse((defaultPolicy.ChildCommission * 100).ToString()).ToString();
         }
     }
 }