public UI_CostControl(CLDC_Comm.Enum.Cus_TaiType Ttype, CLDC_DataCore.Model.Plan.Plan_CostControl FaItem)
     : base(Ttype, FaItem.Name)
 {
     InitializeComponent();
     this.InitUI();
     this.LoadFA(FaItem);
 }
 public override void LoadFA(CLDC_DataCore.Model.Plan.Plan_CostControl FaItem)
 {
     base.LoadFA(FaItem);
     if (base.Parm == string.Empty)
     {
         return;
     }
     this.Parm = base.Parm;
 }
 /// 重新加载控件内容
 /// <summary>
 /// 重新加载控件内容
 /// </summary>
 /// <param name="FaItem"></param>
 public override void LoadFA(CLDC_DataCore.Model.Plan.Plan_CostControl FaItem)
 {
     base.LoadFA(FaItem);
     if (base.Parm == string.Empty)
     {
         return;
     }
     Parm      = base.Parm;
     stepCount = dataGridViewX1.Rows.Count;
 }
            /// <summary>
            /// 拷贝需要检定的方案
            /// </summary>
            /// <param name="TaiType"></param>
            /// <param name="FaName"></param>
            /// <returns></returns>
            public CLDC_DataCore.Model.Plan.Plan_CostControl Copy(CLDC_Comm.Enum.Cus_TaiType TaiType, string FaName)
            {
                CLDC_DataCore.Model.Plan.Plan_CostControl Function = new CLDC_DataCore.Model.Plan.Plan_CostControl((int)TaiType, "");           //创建一个新的多功能方案

                for (int i = 0; i < CostControlControls.Count; i++)
                {
                    PrjUI.PrjCostControl.CostControlBase Item = CostControlControls[i];
                    if (Item.IsCheck)
                    {
                        Function.Add(Item.CostControlID, Item.CostControlName, Item.CostControlPlanPrj.OutPramerter.Jion(), Item.Parm);
                    }
                }
                Function.SetPram((int)TaiType, FaName);
                return(Function);
            }
        /// <summary>
        /// 方案加载
        /// </summary>
        /// <param name="FaItem">方案项目</param>
        public void LoadFA(CLDC_DataCore.Model.Plan.Plan_CostControl FaItem)
        {
            base.FaName = FaItem.Name;

            try
            {
                Cmb_Fa.Text = FaItem.Name;
            }
            catch
            {
                Cmb_Fa.SelectedIndex = 0;
            }

            this.CostControlUI.LoadFA(FaItem);
        }
 /// <summary>
 /// 加载方案
 /// </summary>
 /// <param name="FaItem"></param>
 public virtual void LoadFA(CLDC_DataCore.Model.Plan.Plan_CostControl FaItem)
 {
     for (int i = 0; i < FaItem.Count; i++)
     {
         if (this._CostControlItem.CostControlPrjID == FaItem.getCostControlPrj(i).CostControlPrjID)
         {
             this.SetCheck(true);
             this._Parm = FaItem.getCostControlPrj(i).PrjParm;
             if (this.PrjSort != null)
             {
                 PrjSort(this, i);
             }
             return;
         }
     }
 }
            /// <summary>
            /// 方案加载
            /// </summary>
            /// <param name="FaItem"></param>
            public void LoadFA(CLDC_DataCore.Model.Plan.Plan_CostControl FaItem)
            {
                CostControlsSort = new SortedDictionary <int, CLDC_MeterUI.UI_FA.FAPrj.PrjUI.PrjCostControl.CostControlBase>();
                for (int i = 0; i < CostControlControls.Count; i++)
                {
                    CostControlControls[i].LoadFA(FaItem);
                }


                foreach (int i in CostControlsSort.Keys)
                {
                    CostControlControls.Remove(CostControlsSort[i]);
                    CostControlControls.Insert(i, CostControlsSort[i]);
                }
                this.Sort();
                CostControlsSort = null;
            }
        /// <summary>
        /// 方案加载
        /// </summary>
        /// <param name="faname">方案名称</param>
        public void LoadFA(string faname)
        {
            CLDC_DataCore.Model.Plan.Plan_CostControl _CostControl = new CLDC_DataCore.Model.Plan.Plan_CostControl((int)base.TaiType, faname);

            this.LoadFA(_CostControl);
        }