Exemple #1
0
        public void AddToClose()
        {
            if (cbxRole.SelectedItem == null)
            {
                RoleMenu.T_SYS_ROLE = null;
            }
            else
            {
                RoleMenu.T_SYS_ROLE = new T_SYS_ROLE();
                var role = cbxRole.SelectedItem as T_SYS_ROLE;

                RoleMenu.T_SYS_ROLE.ROLEID   = role.ROLEID;
                RoleMenu.T_SYS_ROLE.ROLENAME = role.ROLENAME;
            }

            //RoleMenu.T_SYS_ENTITYMENU = cbxSysMenu.SelectedItem as PermissionService.T_SYS_ENTITYMENU;

            if (FormTypes.New == this.FormType)
            {
                RoleMenu.CREATEDATE = System.DateTime.Now;
                //RoleMenu.CREATEUSER = Common.CurrentLoginUserInfo.sysuserID;
                RoleMenu.CREATEUSER = Common.CurrentLoginUserInfo.SysUserID;

                ServiceClient.RoleEntityMenuAddAsync(this.RoleMenu);
            }
            else
            {
                RoleMenu.UPDATEDATE = System.DateTime.Now;
                //RoleMenu.UPDATEUSER = Common.CurrentLoginUserInfo. //Common.CurrentConfig.CurrentUser.SYSUSERID;
                ServiceClient.RoleEntityMenuUpdateAsync(this.RoleMenu);
            }
            saveType = "1";
            RefreshUI(RefreshedTypes.All);
        }