当前位置: 首页>>代码示例>>C#>>正文


C# LG类代码示例

本文整理汇总了C#中LG的典型用法代码示例。如果您正苦于以下问题:C# LG类的具体用法?C# LG怎么用?C# LG使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


LG类属于命名空间,在下文中一共展示了LG类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: UpdateEligibilityInfo

     UpdateEligibilityInfo(LG.Data.Models.Clients.EligibilitySettings entity)
 {
     var client = ClientConnection.GetCmsConnection();
     try
     {
         client.Open();
         var response = await client.UpdateEligibilityDataConfigurationAsync(
             new UpdateEligibilityDataConfigurationRequest()
             {
                 MessageGuid = entity.MessageGuid,
                 HavingFMEN = entity.HavingFMEN,
                 HavingPMEN = entity.HavingPMEN,
                 ClientRID = entity.ClientRID,
                 IsSendingFMData = entity.IsSendingFMData,
                 PropBag = entity.PropBag
             });
         client.Close();
         entity.IsError = false;
         entity.Message = response.ReturnStatus.GeneralMessage;
         return entity;
     }
     catch (Exception ex)
     {
         client.Close();
         entity.IsError = false;
         entity.Message = ex.Message;
         return entity;
     }
 }
开发者ID:vmfdesign,项目名称:Services,代码行数:29,代码来源:ClientDataService.cs

示例2: ClientWithGroupTask

        static async Task<CreateClientWithDefaultGroupResponse> ClientWithGroupTask(
              LG.Services.CMS.ClientInfoInput entity)
        {
            var client = ClientConnection.GetCmsConnection();
            return await client.CreateClientWithDefaultGroupAsync(
                new CreateClientWithDefaultGroupRequest()
                {
                    MessageGuid = Guid.NewGuid(),
                    CorporationRID = ClientConnection.CorporationId,
                    Client = new ClientInfoInput()
                    {
                        Name = entity.Name,
                        WebsiteURL = entity.WebsiteURL,
                        Addresses = entity.Addresses,
                        ClientContacts = entity.ClientContacts,
                        Phones = new List<Services.CMS.PhoneInput>(),
                        EmailAddresses = new List<Services.CMS.EmailAddressInput>(),
                        IsActive = entity.IsActive,
                        IsTesting = entity.IsTesting,
                        EligibilityDataConfiguration = entity.EligibilityDataConfiguration,

                    },
                    PropBag = Helpers.Settings.PropBag
                });
        }
开发者ID:vmfdesign,项目名称:Services,代码行数:25,代码来源:ClientDataService.cs

示例3: CreateRequest

 internal static StoreBusinessSettingRequest CreateRequest(LG.Data.Models.Clients.BusinessSettings entity,
     LG.Data.Models.Enums.BusinessLevel level)
 {
     switch (level)
     {
         case BusinessLevel.Client:
             return new StoreBusinessSettingRequest()
             {
                 MessageGuid = Guid.NewGuid(),
                 ClientRID = entity.ClientRID,
                 PropBag = entity.ProgBag,
                 IsActive = entity.IsActive,
                 FMPM = entity.FMPM,
                 PMPM = entity.PMPM,
                 BillingType =entity.BillingType,
                 CorporationRID = entity.CorporationRID,
             };
         case BusinessLevel.Group:
             return new StoreBusinessSettingRequest()
             {
                 MessageGuid = Guid.NewGuid(),
                 ClientRID = entity.ClientRID,
                 PropBag = entity.ProgBag,
                 IsActive = entity.IsActive,
                 FMPM = entity.FMPM,
                 PMPM = entity.PMPM,
                 BillingType = entity.BillingType,
                 CorporationRID = entity.CorporationRID,
                 GroupRID = entity.GroupRID
             };
         case BusinessLevel.Membership:
             return new StoreBusinessSettingRequest()
             {
                 MessageGuid = Guid.NewGuid(),
                 ClientRID = entity.ClientRID,
                 PropBag = entity.ProgBag,
                 IsActive = entity.IsActive,
                 FMPM = entity.FMPM,
                 PMPM = entity.PMPM,
                 BillingType = entity.BillingType,
                 CorporationRID = entity.CorporationRID,
                 GroupRID = entity.GroupRID,
                 MembershipPlanID = entity.MembershipPlanID
             };
         default:
             return new StoreBusinessSettingRequest()
             {
                 MessageGuid = Guid.NewGuid(),
                 ClientRID = entity.ClientRID,
                 PropBag = entity.ProgBag,
                 IsActive = entity.IsActive,
                 FMPM = entity.FMPM,
                 PMPM = entity.PMPM,
                 BillingType = entity.BillingType,
                 CorporationRID = entity.CorporationRID,
                 GroupRID = entity.GroupRID,
                 MembershipPlanID = entity.MembershipPlanID
             };
     }
 }
开发者ID:vmfdesign,项目名称:Services,代码行数:60,代码来源:BusinessSettings.cs

示例4: Store

 public static async Task<LG.Data.Models.Clients.BusinessSettings> Store(
      LG.Data.Models.Clients.BusinessSettings entity)
 {
     var client = LG.Services.ClientConnection.GetBscsConnection();
     var response = await client.StoreBusinessSettingAsync(new StoreBusinessSettingRequest()
     {
         MessageGuid = new Guid(),
         ClientRID = entity.ClientRID,
         PropBag = entity.ProgBag,
         IsActive = entity.IsActive,
         FMPM = entity.FMPM,
         PMPM = entity.PMPM,
         BillingType = entity.BillingType,
         CorporationRID = entity.CorporationRID,
         GroupRID = entity.GroupRID,
         MembershipPlanID = entity.MembershipPlanID
     });
     return new LG.Data.Models.Clients.BusinessSettings()
     {
         ClientRID = entity.ClientRID,
         GroupRID = entity.GroupRID,
         MembershipPlanID = entity.MembershipPlanID,
         CorporationRID = entity.CorporationRID,
         BillingType = entity.BillingType,
         FMPM = entity.FMPM,
         PMPM = entity.PMPM,
         IsActive = entity.IsActive,
         IsError = response.ReturnStatus.IsError,
         Message = response.ReturnStatus.GeneralMessage
     };
 }
开发者ID:vmfdesign,项目名称:Services,代码行数:31,代码来源:BusinessSettings.cs

示例5: GetFiles

        public static async Task<LG.Data.Models.Orders.FilesAssociatedWithConsultation> GetFiles(LG.Data.Models.Orders.FilesAssociatedWithConsultation entity)
        {
            var client = ClientConnection.GetCDMS_Connection();
            try
            {
                client.Open();
                var response
                    = await client.GetFilesAssociatedWithConsultationAsync(new GetFilesAssociatedWithConsultationRequest()
                    {
                        MessageGuid = Guid.NewGuid(),
                        ConsultationID = entity.ConsultationID
                    });
                entity.IsError = response.ReturnStatus.IsError;
                entity.Files = response.ListOfFilesAssociatedWithConsultation;
            }
            catch (Exception ex)
            {
                client.Abort();
                entity.IsError = true;
                entity.Message = ex.ToString();
            }
            finally
            {
                if (client.State != CommunicationState.Closed)
                {
                    client.Close();

                }
            }
            return entity;
        }
开发者ID:vmfdesign,项目名称:Services,代码行数:31,代码来源:OrderDataService.cs

示例6: AccountLoadTask

        public static async Task<LG.Data.Models.Members.Entity> AccountLoadTask(LG.Data.Models.Members.Entity entity)
        {
            var client = ClientConnection.GetAcsConnection();
            try
            {
                client.Open();
                switch (entity.Events.AccountAction)
                {
                    case AccountAction.LoadCreditCard:
                        #region [@  Method     @]

                        var response = await client.GetCreditCardsOnTheAccountAsync(new GetCreditCardsOnTheAccountRequest()
                        {
                            AccountID = entity.AccountInfo.AccountID,
                            MessageGuid = Guid.NewGuid()
                        });

                        client.Close();
                        entity.IsError = false;
                        entity.Events.AccountActionResult = ActionResult.Success;
                        entity.CreditCards = response.CreditCards;

                        return entity;

                        #endregion
                        break;
                    case AccountAction.LoadDependents:
                        #region [@  Method     @]

                        var response2 = await client.GetPrimaryAndDependentAccountsAsync(new GetPrimaryAndDependentAccountsRequest()
                        {
                            AccountID = entity.AccountInfo.AccountID,
                            MessageGuid = Guid.NewGuid()
                        });
                        client.Close();
                        entity.IsError = false;
                        entity.Events.AccountActionResult = ActionResult.Success;
                        entity.Accounts = response2.Accounts;
                        return entity;

                        #endregion
                        break;
                    default:
                        client.Close();
                        entity.IsError = true;
                        entity.Message = "Failed to Declare AccountAction";
                        entity.Events.AccountActionResult = ActionResult.Failed;
                        return entity;
                }
            }
            catch (Exception ex)
            {
                client.Close();
                entity.IsError = true;
                entity.Message = ex.ToString();
                entity.Events.EventActionResult = ActionResult.Failed;
                return entity;
            }

        }
开发者ID:vmfdesign,项目名称:Services,代码行数:60,代码来源:AccountDataService.cs

示例7: Update

        public static async Task<LG.Data.Models.Users.UserModel> Update(LG.Data.Models.Shared.Contact contact)
        {

            var phones = new List<PhoneBase>();


            var user = new UserModel()
            {
                CorporationRID = 10,
                ClientRID = contact.ContactForRID,
                EventAction = Action.Update,
                GeneralInfo = new PersonInfo()
                {
                    FName = contact.PersonInfo.FName,
                    MName = contact.PersonInfo.MName,
                    LName = contact.PersonInfo.LName
                }
            };

            user.EventAction = Models.Enums.Action.Update;

            contact.EventAction = ContactAction.Update;
            for (var i = 0; i < contact.Phones.Count; i++)
            {
               await LG.Data.Shared.ContactInfoService.SavePhone(contact, i);
            }
            var r3 = LG.Data.Shared.ContactInfoService.SavePersonInfo(user);
            await r3;
            if (r3.IsCompleted)
            {
                return user;
            }
            return null;
        }
开发者ID:vmfdesign,项目名称:Services,代码行数:34,代码来源:ContactService.cs

示例8: Search

 public static async Task<Results> Search(LG.Data.Models.Shared.ValueItem item)
 {
     var client = ClientConnection.GetCmsConnection();
     try
     {
         client.Open();
         var response = await client.SearchClientAsync(new SearchClientRequest()
         {
             SearchInput = item.Value,
             IsIncludeStartsWith = true,
             IsIncludeContains = true,
             MessageGuid = Guid.NewGuid()
         });
         client.Close();
         var results = new Results();
         response.Clients.ForEach(record => results.List.Add(
             ParseClient(record)));
         return results;
     }
     catch (Exception ex)
     {
         client.Close();
         return new LG.Data.Models.Clients.Results
         {
             IsError = true,
             Message = ex.Message.ToString(CultureInfo.InvariantCulture)
         };
     }
 }
开发者ID:vmfdesign,项目名称:Services,代码行数:29,代码来源:SearchDataService.cs

示例9: catch

 public async static Task<LG.Data.Models.Clinical.AudioRecording>EnsureLocalCopyOfIVRCallRecording(LG.Data.Models.Clinical.AudioRecording entityAudioRecording)
 {
     var client = ClientConnection.GetIVRAudio_Connection();
     try
     {
         client.Open();
         var response
             = await client.EnsureLocalCopyOfIVRAudioRecordingAsync(new EnsureLocalCopyOfIVRAudioRecordingRequest()
             {
                 MessageGuid = Guid.NewGuid(),
                 CallSid = entityAudioRecording.CallSid,
                 IVRProvider = IVRProvidersEnum.Twilio
             });
         entityAudioRecording.IsError = response.ReturnStatus.IsError;
     }
     catch (Exception ex)
     {
         client.Abort();
         entityAudioRecording.IsError = true;
         entityAudioRecording.Message = ex.ToString();
     }
     finally
     {
         if (client.State != CommunicationState.Closed)
         {
             client.Close();
         }
     }
     return entityAudioRecording;
 }
开发者ID:vmfdesign,项目名称:Services,代码行数:30,代码来源:AudioManagementDataService.cs

示例10: AddDiagnosis

        /// <summary>
        /// Diagnosis
        /// </summary>
        /// <param name="entity"></param>
        /// <returns></returns>
        public static async Task<LG.Data.Models.Doctors.ConsultWizard.Diagnosis> AddDiagnosis(LG.Data.Models.Doctors.ConsultWizard.Diagnosis entity)
        {
            var client = ClientConnection.GetCDMS_Connection();
            try
            {
                client.Open();
                var response = await client.AddDiagnosisToConsultationAsync(new AddDiagnosisToConsultationRequest()
                {
                    PropBag = PropBag,
                    MessageGuid = Guid.NewGuid(),
                    Diagnosis = entity.Input
                });
                entity.ID = response.ID;
                entity.IsError = response.ReturnStatus.IsError;
                entity.Message = response.ReturnStatus.IsError ?  response.ReturnStatus.ErrorMessage : response.ReturnStatus.GeneralMessage;
            }
            catch (Exception ex)
            {
                client.Abort();
                entity.IsError = true;
                entity.Message = ex.ToString();
            }
            finally
            {
                if (client.State != CommunicationState.Closed)
                {
                    client.Close();

                }
            }
            return entity;
        }
开发者ID:vmfdesign,项目名称:Services,代码行数:37,代码来源:ConsultationWizardServicing.cs

示例11: GetInfo

 public static async Task<LG.Data.Models.Clinical.ActiveConsultation> GetInfo(LG.Data.Models.Clinical.ActiveConsultation entity)
 {
     try
     {
         var response = GetOrderProcessingData(entity);
         await response;
         if (response.IsCompleted)
         {
             return await GetEncounterlInfo(response.Result);
         }
         if (response.IsFaulted)
         {
             response.Result.IsError = true;
             response.Result.Message = response.Result.Message + "|@|response.IsFaulted";
             return response.Result;
         }
         if (response.IsCanceled)
         {
             response.Result.IsError = true;
             response.Result.Message = response.Result.Message + "|@|response.IsFaulted";
             return response.Result;
         }
     }
     catch (Exception ex)
     {
         entity.IsError = true;
         entity.Message = ex.Message + "|@|Exception ex";
         return entity;
     }
     return null;
 }
开发者ID:vmfdesign,项目名称:Services,代码行数:31,代码来源:OrderDetailServices.cs

示例12: Login

            Login(LG.Data.Models.Auth.SecurityInfo eInput)
        {
             var client = LG.Services.ClientConnection.GetAmsConnection();
             var response = client.AuthenticateUserAsync(new AuthenticateUserRequest()
             {
                 MessageGuid = Guid.NewGuid(),
                 UserName = eInput.UserName,
                 Password = eInput.PlainPassword
             });
            try
            {
                
                await response;
                if (response.IsCompleted)
                {
                    return response.Result;
                }


            }
            catch (Exception ex)
            {
                return response.Result;
                
            }
            return null;
        }
开发者ID:vmfdesign,项目名称:Services,代码行数:27,代码来源:AuthDataService.cs

示例13: GetDiagnosis

        public static async Task<LG.Data.Models.Doctors.ConsultWizard.DiagnosisList> GetDiagnosis(
            LG.Data.Models.Doctors.ConsultWizard.DiagnosisList entity)
        {
            var client = ClientConnection.GetCDMS_Connection();
            try
            {
                client.Open();
                var response
                    = await client.GetDiagnosisRecordsAsync(new GetDiagnosisRecordsRequest()
                    {
                        MessageGuid = Guid.NewGuid(),
                        ConsultationID = entity.ConsultationID
                    });
                entity.Result = response.ListOfDiagnosisRecords;
                entity.IsError = response.ReturnStatus.IsError;
            }
            catch (Exception ex)
            {
                client.Abort();
                entity.IsError = true;
                entity.Message = ex.ToString();
            }
            finally
            {
                if (client.State != CommunicationState.Closed)
                {
                    client.Close();

                }
            }
            return entity;
        }
开发者ID:vmfdesign,项目名称:Services,代码行数:32,代码来源:ConsultationWizardServicing.cs

示例14: SearchGroupTask

 public static async Task<LG.Data.Models.Clients.GroupSearch> SearchGroupTask(LG.Data.Models.Clients.GroupSearch entity)
 {
     var client = ClientConnection.GetGmsConnection();
     try
     {
         client.Open();
         var response = await client.SearchGroupAsync(
             new SearchGroupRequest()
             {
                 MessageGuid = Guid.NewGuid(),
                 SearchInput = entity.SearchText,
                 IsIncludeContains = entity.IsIncludeContains,
                 IsIncludeStartsWith = entity.IsIncludeStartsWith
             });
         client.Close();
         entity.Results = response.Groups.ToList();
     }
     catch (Exception ex)
     {
         client.Close();
         entity.IsError = true;
         entity.Message = ex.ToString();
     }
     return entity;
 }
开发者ID:vmfdesign,项目名称:Services,代码行数:25,代码来源:GroupDataService.cs

示例15: Save

 public static async Task<LG.Data.Models.Doctors.OperationResponses> Save(
     LG.Data.Models.Doctors.Inputs eInputs)
 {
     switch (eInputs.EventAction)
     {
         case DoctorActions.DoctorAdd:
             return await SavePractioner(eInputs);
             break;
         case DoctorActions.DoctorUpdate:
             return await SavePractioner(eInputs);
             break;
         case DoctorActions.DoctorUpdatePrintedName:
             return await SavePractioner(eInputs);
             break;
         case DoctorActions.DoctorUpdateMedicalInformation:
             return await SavePractioner(eInputs);
             break;
         case DoctorActions.LicenseAdd:
             return await SaveLicense(eInputs);
             break;
         case DoctorActions.LicenseUpdate:
             return await SaveLicense(eInputs);
             break;
         default:
             return null;
     }
 }
开发者ID:vmfdesign,项目名称:Services,代码行数:27,代码来源:DoctorsDataService.cs


注:本文中的LG类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。