Ejemplo n.º 1
0
        protected void btnSave_Click(object sender, EventArgs e)
        {
            var type = (Enums.SystemType)Enum.Parse(typeof(Enums.SystemType), drpSystemType.SelectedValue);

            Model.Config _entity = new Model.Config();
            var          conf    = ViewState["__scorelist"] as Configuration;

            conf.AllowedTime  = txtTime.Text.ToInt32();
            conf.TimeUpStepID = txtWfName.Text;
            conf.SystemType   = type;
            _entity.Scoring   = conf.SerializeToXML();
            _entity.ID        = ViewState["__confid"] != null ? ViewState["__confid"].ToInt32() : -1;
            _entity.AddUpdate();
        }