Beispiel #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     RegisterOEMSkins("form.css");
     RegisterOEMSkins("page.css");
     RegisterOEMSkins("register.css");
     if (!IsPostBack)
     {
         InitDataBind();
         string policySettingId = Request.QueryString["Id"];
         if (!string.IsNullOrWhiteSpace(policySettingId))
         {
             hidAddOrUpdate.Value = "0";
             PolicySettingInfo policySettingInfo = PolicyManageService.GetPolicySetting(Guid.Parse(policySettingId));
             this.ddlAirLine.SelectedValue = policySettingInfo.Airline;
             this.txtDeparture.Code        = policySettingInfo.Departure;
             this.AirLines.AirportsCode    = policySettingInfo.Arrivals.Split('/');
             this.txtStartTime.Text        = policySettingInfo.EffectiveTimeStart.ToString("yyyy-MM-dd");
             this.txtEndTime.Text          = policySettingInfo.EffectiveTimeEnd.ToString("yyyy-MM-dd");
             this.txtRemark.InnerText      = policySettingInfo.Remark;
             radEnable.Checked             = policySettingInfo.Enable;
             radDisable.Checked            = !policySettingInfo.Enable;
             //取满足航空公司条件的舱位
             BindBunks(policySettingInfo);
             //获取区域值
             BindRanges(policySettingInfo);
             sel.Visible = false;
             //txtTiedianStart.Text = policySettingInfo.MountStart.HasValue ? policySettingInfo.MountStart.Value.ToString("hh:mm") : "";
             //txtTiedianEnd.Text = policySettingInfo.MountEnd.HasValue ? policySettingInfo.MountEnd.Value.ToString("hh:mm") : "";
         }
     }
 }