Ejemplo n.º 1
0
 private void BindData()
 {
     Model.Config _con = new Model.Config();
     _con = _con.GetConfiguration();
     if (_con != null)
     {
         ViewState["__confid"] = _con.ID;
         var config = ViewState["__scorelist"] as Configuration;
         config         = config.Deserialize(_con.Scoring);
         txtTime.Text   = config.AllowedTime.ToString();
         txtWfName.Text = config.TimeUpStepID;
         drpSystemType.SelectedIndex = drpSystemType.Items.IndexOf(drpSystemType.Items.FindByValue(config.SystemType.ToString()));
         ViewState["__scorelist"]    = config;
         grdConfig.DataBind();
     }
 }