Ejemplo n.º 1
0
        private void AddSave()
        {
            if (string.IsNullOrEmpty(StrCompanyID))
            {
                Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("CAUTION"), Utility.GetResourceStr("SELECTCOMPANY"));
                return;
            }
            if (string.IsNullOrEmpty(StrPositionID))
            {
                Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("CAUTION"), Utility.GetResourceStr("SELECTPOSITION"));
                return;
            }

            AddUserRole();
            if (ViewInfosList.Count > 0)
            {
                if (StrAction == "0")
                {
                    string Isresult = "";
                    ServiceClient.BatchAddUserRoleAsync(ViewInfosList, Isresult);
                }
                else
                {
                    //修改某条具体的用户角色信息
                }
            }
            else
            {
                Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("PLEASESELECTEDROLE"));
                return;
            }
        }