예제 #1
0
        private int Save()
        {
            int ret = -1;

            GetValue();
            if (Check())
            {
                PrivilegeService proxy = Common.Util.CreateProxy();
                using (proxy as IDisposable)
                {
                    try
                    {
                        FrameWork.Management.PublicTrans.BeginTransaction();
                        ret = proxy.SaveAuthorityRoleOrg(currentUser, roleOrgDictionary);
                        FrameWork.Management.PublicTrans.Commit();
                    }
                    catch (Exception e)
                    {
                        FrameWork.Management.PublicTrans.RollBack();
                        ret = -1;
                    }
                }
            }
            return(ret);
        }