Ejemplo n.º 1
0
        /// <summary>
        /// 重写获取详细事件
        /// </summary>

        private Hi.Model.BasParam SetDetail()
        {
            Hi.Model.BasParam model = new Hi.Model.BasParam();
            model.Id         = this.IdValue;
            model.Title      = this.txtName.Text.Trim();
            model.Code       = this.txtCode.Text.Trim();
            model.EnableFlag = this.rdo2.Checked ? "2" : (this.rdo1.Checked?"1":"0");

            if (this.cmbParent.SelectedIndex > -1)
            {
                Ctrls.CbbItem item = (Ctrls.CbbItem) this.cmbParent.SelectedItem;
                model.ParentId = item.Value;
                model.Grade    = "2";
            }
            else
            {
                model.ParentId = "0";
                model.Grade    = "1";
            }

            return(model);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// 重写获取详细事件
        /// </summary>
        private Hi.Model.BasParam SetDetail()
        {
            Hi.Model.BasParam model = new Hi.Model.BasParam();
            model.Id = this.IdValue;
            model.Title = this.txtName.Text.Trim();
            model.Code = this.txtCode.Text.Trim();
            model.EnableFlag = this.rdo2.Checked ? "2" : (this.rdo1.Checked?"1":"0");

            if (this.cmbParent.SelectedIndex > -1)
            {
                Ctrls.CbbItem item = (Ctrls.CbbItem)this.cmbParent.SelectedItem;
                model.ParentId = item.Value;
                model.Grade = "2";
            }
            else
            {
                model.ParentId = "0";
                model.Grade = "1";
            }

            return model;
        }