示例#1
0
 private void SetAccountInfo()
 {
     if (!this.blNewFlag)
     {
         RanageFormula info = modelObj as RanageFormula;
         this.SetDataBind(info);
     }
 }
示例#2
0
        private void BtnAddGt_Click(object sender, EventArgs e)
        {
            FmSzcFormula fm = new FmSzcFormula();

            fm.SelectValue += (obj) =>
            {
                RanageFormula info = obj as RanageFormula;
                mDataGridGt.AddItem <RanageFormula>(info);
            };
            fm.ShowDialog();
        }
示例#3
0
        private void BtnEditGt_Click(object sender, EventArgs e)
        {
            if (mDataGridGt.CurrentRow == null)
            {
                return;
            }
            RanageFormula old = mDataGridGt.GetCurrentEntity() as RanageFormula;

            FmSzcFormula fm = new FmSzcFormula(old);

            fm.SelectValue += (obj) =>
            {
                RanageFormula info = obj as RanageFormula;
                mDataGridGt.EditCurrentItem <RanageFormula>(info);
            };
            fm.ShowDialog();
        }
示例#4
0
        protected override bool BtnOkClick()
        {
            Dictionary <Control, string> dicEmptyCtrs = this.GetValidEmptyCtrs();

            if (dicEmptyCtrs.Count > 0)
            {
                foreach (var ctr in dicEmptyCtrs.Keys)
                {
                    Miles.Framework.UI.Function.MForm.SetToolTip(ctr, dicEmptyCtrs[ctr], 1000);
                    return(false);
                }
            }

            RanageFormula info = this.GetDataBind <RanageFormula>();

            this.DoSelectValueEvent(info);

            return(true);
        }
示例#5
0
 public FmSzcFormula(RanageFormula info)
     : base(info)
 {
     InitializeComponent();
 }