/// <summary>
 /// 保存
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void btnSave_Click(object sender, RoutedEventArgs e)
 {
     this.DataVerify();
     if (this.IsVerify)
     {
         PfmIaeDetailedMDL detMdl = new PfmIaeDetailedMDL();
         detMdl.DetAddTime = DateTime.Now;
         detMdl.MbrId      = TypeHelper.TypeToInt32(this.cboxMember.SelectedValue, 0);
         detMdl.AccId      = TypeHelper.TypeToInt32(this.cboxAccounts.SelectedValue, 0);
         detMdl.CatId      = TypeHelper.TypeToInt32(this.cboxCategory.SelectedValue, 0);
         detMdl.DetName    = this.txtName.Text;
         decimal tmpMoney = 0;
         decimal.TryParse(this.txtMoney.Text, out tmpMoney);
         detMdl.DetMoney       = tmpMoney * TypeHelper.TypeToInt32(this.cboxType.SelectedValue, 1);
         detMdl.DetAddress     = string.IsNullOrEmpty(this.txtAddress.Text) ? null : this.txtAddress.Text;
         detMdl.DetDescription = string.IsNullOrEmpty(this.txtDescription.Text) ? null : this.txtDescription.Text;
         detMdl.DetMemo        = string.IsNullOrEmpty(this.txtMemo.Text) ? null : this.txtMemo.Text;
         detMdl.DetStatus      = 1;
         PfmIaeDetailedBLL.Insert(detMdl);
         MessageBoxResult boxResult = MessageBox.Show("新数据添加成功!是否继续添加?", "提示:", MessageBoxButton.YesNo, MessageBoxImage.Information, MessageBoxResult.No);
         if (boxResult == MessageBoxResult.Yes)
         {
             this.InitializeData();
         }
         else
         {
             if (ModuleExtend != null)
             {
                 this.ModuleExtend(false, Library.Transit.NameItems.IaeDetailed);
             }
         }
     }
 }
 /// <summary>
 /// 向数据表PfmIaeDetailed修改一条记录
 /// </summary>
 /// <param name="pfmIaeDetailed">PfmIaeDetailed实体对象</param>
 /// <returns></returns>
 public static int Update(PfmIaeDetailedMDL pfmIaeDetailed)
 {
     if (pfmIaeDetailed == null)
     {
         return(0);
     }
     return(PfmIaeDetailedBLL._dal.Update(pfmIaeDetailed));
 }
 /// <summary>
 /// 向数据表PfmIaeDetailed中插入一条新记录
 /// </summary>
 /// <param name="pfmIaeDetailed">PfmIaeDetailed实体对象</param>
 /// <returns></returns>
 public static int Insert(PfmIaeDetailedMDL pfmIaeDetailed)
 {
     if (pfmIaeDetailed == null)
     {
         return(0);
     }
     return(PfmIaeDetailedBLL._dal.Insert(pfmIaeDetailed));
 }
 /// <summary>
 /// 删除数据表PfmIaeDetailed中的一条记录
 /// </summary>
 /// <param name="pfmIaeDetailed">PfmIaeDetailed实体对象</param>
 /// <returns></returns>
 public static int Delete(PfmIaeDetailedMDL pfmIaeDetailed)
 {
     return(PfmIaeDetailedBLL._dal.Delete(pfmIaeDetailed));
 }