コード例 #1
0
        /// <summary>
        /// 绑定数据
        /// </summary>
        void BindValues()
        {
            string ECID = ViewState["ecid"].ToString();

            if (ECID == "")
            {
                btnAddScore.Enabled = false;

                return;
            }

            mEntity = ECTagDal.GetEntity(ECID);

            if (mEntity == null)
            {
                return;
            }

            lbl_ECCode.Text = "指标代码:" + mEntity.ECCode;
            lbl_ECName.Text = "指标名称:" + mEntity.ECName;

            cbx_ECIsSnapshot.Checked = mEntity.ECIsSnapshot == 1 ? true : false;

            BindScore(true);
        }
コード例 #2
0
        /// <summary>
        /// 绑定数据
        /// </summary>
        void BindValues()
        {
            string ECID = ViewState["ecid"].ToString();

            if (ECID == "")
            {
                return;
            }

            ECTagEntity mEntity = ECTagDal.GetEntity(ECID);

            ddl_UnitID.SelectedValue = mEntity.UnitID;
            ddl_SeqID.Value          = mEntity.SeqID;
            ddl_KpiID.SelectedValue  = mEntity.KpiID;
            ddl_EngunitID.Value      = mEntity.EngunitID;
            ddl_CycleID.Value        = mEntity.CycleID;

            ddl_ECIsValid.Value = mEntity.ECIsValid.ToString();
            ddl_ECIsCalc.Value  = mEntity.ECIsCalc.ToString();
            ddl_ECIsAsses.Value = mEntity.ECIsAsses.ToString();
            ddl_ECIsZero.Value  = mEntity.ECIsZero.ToString();

            ddl_ECIsDisplay.Value = mEntity.ECIsDisplay.ToString();
            ddl_ECIsTotal.Value   = mEntity.ECIsTotal.ToString();
            ddl_ECWeb.Value       = mEntity.ECWeb;

            txt_ECCode.Value   = mEntity.ECCode;
            txt_ECName.Value   = mEntity.ECName;
            txt_ECDesc.Value   = mEntity.ECDesc;
            txt_ECIndex.Value  = mEntity.ECIndex.ToString();
            txt_ECDesign.Value = mEntity.ECDesign;
            if (mEntity.ECMaxValue == decimal.MinValue)
            {
                txt_ECMaxValue.Value = "";
            }
            else
            {
                txt_ECMaxValue.Value = mEntity.ECMaxValue.ToString();
            }
            if (mEntity.ECMinValue == decimal.MinValue)
            {
                txt_ECMinValue.Value = "";
            }
            else
            {
                txt_ECMinValue.Value = mEntity.ECMinValue.ToString();
            }
            //txt_ECMinValue.Value = mEntity.ECMinValue.ToString();
            txt_ECWeight.Value    = mEntity.ECWeight.ToString();
            txt_ECDenom.Value     = mEntity.ECDenom.ToString();
            txt_ECCalcClass.Value = mEntity.ECCalcClass.ToString();

            txt_ECNote.Value = mEntity.ECNote;
        }
コード例 #3
0
        /// <summary>
        /// 绑定数据
        /// </summary>
        void BindValues()
        {
            string ECID = ViewState["ecid"].ToString();

            ECTagEntity mEntity = ECTagDal.GetEntity(ECID);

            lbl_ECCode.Text = "指标代码:" + mEntity.ECCode;
            lbl_ECName.Text = "指标名称:" + mEntity.ECName;

            //
            tbx_ECCalcExp.Text  = mEntity.ECCalcExp;
            tbx_ECCalcDesc.Text = mEntity.ECCalcDesc;
        }
コード例 #4
0
        /// <summary>
        /// 绑定数据
        /// </summary>
        void BindValues()
        {
            string ECID = ViewState["ecid"].ToString();

            if (ECID == "")
            {
                btnApply.Enabled = false;

                return;
            }


            ECTagEntity mEntity = ECTagDal.GetEntity(ECID);

            lbl_ECCode.Text = "指标代码:" + mEntity.ECCode;
            lbl_ECName.Text = "指标名称:" + mEntity.ECName;

            //if(mEntity.ECType
            ddl_ECType.SelectedValue = mEntity.ECType.ToString();
            ddl_ECSort.Value         = mEntity.ECSort.ToString();

            txt_ECExExp.Value   = mEntity.ECExExp;
            txt_ECExScore.Value = mEntity.ECExScore;
        }