public WelfareProvisionChildWindows(FormTypes action, string welfareInfoId)
 {
     InitializeComponent();
     this.actions       = action;
     this.welfareInfoID = welfareInfoId;
     this.Loaded       += (sender, args) =>
     {
         #region 原来的
         InitEvent();
         InitData();
         BenefitsAdministration.GetWelfareInformationAsync();//获取福利项目
         if (action == FormTypes.New)
         {
             this.StartTime.Text = string.Empty;                      //生效时间
             this.EndTime.Text   = string.Empty;                      //失效时间
             //this.audit.Visibility = Visibility.Collapsed;
             this.DaGrs.Columns[4].Visibility = Visibility.Collapsed; //隐藏操作列
         }
         if (action == FormTypes.Edit || action == FormTypes.Audit || action == FormTypes.Browse)
         {
             this.cbWelfareID.IsEnabled      = false;
             this.btnLookUpPartya.IsEnabled  = false;
             this.StartTime.IsEnabled        = false;
             this.welfareItem.Visibility     = Visibility.Collapsed;
             this.tbcContainer.SelectedIndex = 1;
         }
         if (action == FormTypes.Audit || action == FormTypes.Browse)//审批,查看
         {
             ShieldedControl();
         }
         #endregion
     };
 }