public AscmWmsMtlRequisitionDetail Get(int id)
        {
            AscmWmsMtlRequisitionDetail ascmWmsMtlRequisitionDetail = null;

            try
            {
                ascmWmsMtlRequisitionDetail = YnDaoHelper.GetInstance().nHibernateHelper.Get <AscmWmsMtlRequisitionDetail>(id);
            }
            catch (Exception ex)
            {
                YnBaseClass2.Helper.LogHelper.GetLog().Error("查询失败(Get AscmWmsMtlRequisitionDetail)", ex);
                throw ex;
            }
            return(ascmWmsMtlRequisitionDetail);
        }
 public void Save(AscmWmsMtlRequisitionDetail ascmWmsMtlRequisitionDetail)
 {
     try
     {
         using (ITransaction tx = YnDaoHelper.GetInstance().nHibernateHelper.GetCurrentSession().BeginTransaction())
         {
             try
             {
                 YnDaoHelper.GetInstance().nHibernateHelper.Save(ascmWmsMtlRequisitionDetail);
                 tx.Commit();//正确执行提交
             }
             catch (Exception ex)
             {
                 tx.Rollback();//回滚
                 throw ex;
             }
         }
     }
     catch (Exception ex)
     {
         YnBaseClass2.Helper.LogHelper.GetLog().Error("保存失败(Save AscmWmsMtlRequisitionDetail)", ex);
         throw ex;
     }
 }