private void DataToFace(CrmDictionary value) { if (value != null) { this.KeyID.Text = value.Key; this.ValueID.Text = value.Value; this.DepictID.Text = value.Depict; } }
/// <summary> /// 定时发送消息 /// </summary> public void AutoSendInfo() { var messageServie = DependencyResolver.Resolver <IMessageContentService>(); var messageList = messageServie.GetAllNoSend(); CrmDictionary crmDictionary = DependencyResolver.Resolver <ICrmDictionaryService>().FindByKey("SendMobileInfo"); if (crmDictionary == null || string.IsNullOrEmpty(crmDictionary.Value)) { this._log.Error("发送消息Key=SendMobileInfo 未配置"); return; } foreach (MessageContent messageContent in messageList) { messageContent.IsSend = this.GenerateMessageInfo(crmDictionary.Value, messageContent.ToNumber, messageContent.MsgContent); messageContent.SendCount = messageContent.SendCount + 1; messageServie.Update(messageContent); } }
private void FaceToData(ref CrmDictionary value) { value.Key = this.KeyID.Text; value.Value = this.ValueID.Text; value.Depict = this.DepictID.Text; }