示例#1
0
    /// <summary>
    /// 修改字典项信息
    /// </summary>
    /// <param name="AttrValId"></param>
    protected void updateAttrVal(string AttrValId)
    {
        if (AttrValId != "")
        {
            Hi.Model.BD_DefDoc_B attrValModel = AttrValBLL.GetModel(Convert.ToInt32(AttrValId));
            if (attrValModel != null)
            {
                ViewState["attrValId"] = AttrValId;

                this.txtAtVal.Text     = attrValModel.AtVal;
                this.txtSortIndex.Text = attrValModel.SortIndex.ToString();

                //项目扩展
                this.btnUp.Visible     = false;
                this.btnDown.Visible   = false;
                this.btnAddNew.Visible = false;

                this.btnSave.Visible   = true;
                this.btnDelete.Visible = true;

                //this.table.Visible = true;
                this.val.Visible          = true;
                this.Sorh.Visible         = true;
                this.txtAtVal.Visible     = true;
                this.txtSortIndex.Visible = true;


                this.lblMsg.Visible     = false;
                this.lblAttrValMsg.Text = "";
            }
            else
            {
                JScript.AlertMsgOne(this, "数据不存在!", JScript.IconOption.错误, 2500);
            }
        }
    }