示例#1
0
        public override void ChangeLanguage()
        {
            this.LabChanIP.Content      = CurrentApp.GetLanguageInfo("1110WIZ07002", "通道IP:");
            this.LabChanName.Content    = CurrentApp.GetLanguageInfo("1110WIZ07003", "通道名称:");
            this.LabStartupMode.Content = CurrentApp.GetLanguageInfo("1110WIZ07004", "启动方式:");

            this.ButnBack.Content     = CurrentApp.GetLanguageInfo("1110WIZB0003", "返回");
            this.ButnPrevious.Content = CurrentApp.GetLanguageInfo("1110WIZB0002", "上一页");
            this.ButnNext.Content     = CurrentApp.GetLanguageInfo("1110WIZB0001", "下一页");
            this.ButnAdd.Content      = CurrentApp.GetLanguageInfo("1110WIZB0004", "Add");
            this.ButnBatch.Content    = CurrentApp.GetLanguageInfo("1110WIZB0005", "Batch");
            MainPage.PopupPanel.Title = CurrentApp.GetLanguageInfo("1110WIZ07001", "录音通道");

            for (int i = 0; i < ListStartupItems.Count; i++)
            {
                PropertyValueEnumItem item          = ListStartupItems[i];
                BasicInfoData         basicInfoData = item.Info as BasicInfoData;
                if (basicInfoData != null)
                {
                    item.Display =
                        CurrentApp.GetLanguageInfo(
                            string.Format("BID{0}{1}", basicInfoData.InfoID, basicInfoData.SortID.ToString("000")),
                            basicInfoData.Icon);
                }
            }
        }
示例#2
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="sc"></param>
        /// <param name="sc"></param>
        /// <param name="cancellationToken"></param>
        /// <returns>A <see cref="Task{TResult}"/> representing the result of the asynchronous operation.</returns>
        public async Task <DialogTurnResult> ConfirmBeforeSave(WaterfallStepContext sc, CancellationToken cancellationToken = default(CancellationToken))
        {
            ////try
            ////{
            var name          = sc.ActiveDialog.State["name"];
            var primaryMail   = sc.ActiveDialog.State["primaryMail"];
            var secondaryMail = sc.ActiveDialog.State["secondaryMail"];
            var location      = sc.ActiveDialog.State["location"] = sc.Result;

            var informationCard = new BasicInfoData
            {
                NameInfo           = "Name: " + name,
                LocationInfo       = "Location: " + location,
                PrimaryEmailInfo   = "PrimaryEmail: " + primaryMail,
                SecondaryEmailInfo = "SecondaryEmail: " + secondaryMail,
            };
            var replyMessage = sc.Context.Activity.CreateAdaptiveCardReply(CommonResponses.ConfirmUserInfo, "Resources/Cards/OnboardInfoCard.json", informationCard, commonResponseBuilder);

            return(await sc.PromptAsync(CONFIRM_PROMPT, new PromptOptions { Prompt = replyMessage, RetryPrompt = sc.Context.Activity.CreateReply(CommonResponses.ConfirmUserInfo, commonResponseBuilder), }));

            ////}
            ////catch
            ////{
            ////    await sc.Context.SendActivityAsync(sc.Context.Activity.CreateReply(CommonResponses.ErrorMessage, this.commonResponseBuilder));
            ////    return await sc.CancelAllDialogsAsync();
            ////}
        }
示例#3
0
        public BasicInfoData load(int parent)
        {
            string        condition = " parent=" + parent;
            BasicInfoData ds        = new BasicInfoData();

            dp.loadToDataSet(BasicInfoData.basicInfo_TABLE, ds, condition);
            fillRadif(ds);
            return(ds);
        }
示例#4
0
        public override void GetNameAndDescription()
        {
            base.GetNameAndDescription();

            string name = string.Format("[{0}] {1}", ID, Number);

            if (ListAllBasicInfos != null)
            {
                BasicInfoData info =
                    ListAllBasicInfos.FirstOrDefault(b => b.InfoID == S1110Consts.SOURCEID_CONCURRENTNUMBER && b.Value == Number.ToString());
                if (info != null)
                {
                    name = string.Format("[{0}] {1}", ID,
                                         CurrentApp.GetLanguageInfo(string.Format("BID{0}{1}", S1110Consts.SOURCEID_CONCURRENTNUMBER, info.SortID.ToString("000")), info.Icon));
                }
            }

            Name        = name;
            Description = name;
        }
示例#5
0
        public override void GetNameAndDescription()
        {
            base.GetNameAndDescription();

            Name        = string.Format("[{0}] {1} {2}", ID, CTIType, DeviceName);
            Description = string.Format("{0}({1})", Name, ObjectID);

            if (ListAllBasicInfos == null)
            {
                return;
            }
            BasicInfoData info = ListAllBasicInfos.FirstOrDefault(b => b.InfoID == S1110Consts.SOURCEID_CTITYPE && b.Value == CTIType.ToString());

            if (info == null)
            {
                return;
            }
            Name        = string.Format("[{0}] {1} {2}", ID, CurrentApp.GetLanguageInfo(string.Format("BID{0}{1}", S1110Consts.SOURCEID_CTITYPE, CTIType.ToString("000")), info.Icon), DeviceName);
            Description = string.Format("{0}({1})", Name, ObjectID);
        }
示例#6
0
        public override void ChangeLanguage()
        {
            this.LabLicenseNumber.Content = CurrentApp.GetLanguageInfo("1110WIZ06003", "License数量:");
            this.LabNumber.Content = CurrentApp.GetLanguageInfo("1110WIZ06002", "Number:");

            this.ButnBack.Content = CurrentApp.GetLanguageInfo("1110WIZB0003", "返回");
            this.ButnPrevious.Content = CurrentApp.GetLanguageInfo("1110WIZB0002", "上一页");
            this.ButnNext.Content = CurrentApp.GetLanguageInfo("1110WIZB0001", "下一页");
            MainPage.PopupPanel.Title = CurrentApp.GetLanguageInfo("1110WIZ06001", "配置向导");

            for (int i = 0; i < ListConcurrencyItems.Count; i++)
            {
                PropertyValueEnumItem item = ListConcurrencyItems[i];
                BasicInfoData basicInfoData = item.Info as BasicInfoData;
                if (basicInfoData != null)
                {
                    item.Display =
                        CurrentApp.GetLanguageInfo(
                            string.Format("BID{0}{1}", basicInfoData.InfoID, basicInfoData.SortID.ToString("000")),
                            basicInfoData.Icon);
                }
            }
        }
示例#7
0
        public override void GetNameAndDescription()
        {
            base.GetNameAndDescription();

            Name        = string.Format("[{0}] [{1}]", ID, CTIType);
            Description = string.Format("{0} {1}", Name, ObjectID);
            if (TypeParam != null)
            {
                Name = string.Format("[{0}] [{1}]", ID,
                                     CurrentApp.GetLanguageInfo(string.Format("OBJ{0}", ObjectType), TypeParam.Description));
                Description = string.Format("{0} {1}", Name, ObjectID);
                if (ListAllBasicInfos != null)
                {
                    BasicInfoData info =
                        ListAllBasicInfos.FirstOrDefault(b => b.InfoID == S1110Consts.SOURCEID_CTITYPE && b.Value == CTIType.ToString());
                    if (info != null)
                    {
                        Name = string.Format("[{0}] {1}", ID,
                                             CurrentApp.GetLanguageInfo(string.Format("BID{0}{1}", S1110Consts.SOURCEID_CTITYPE, info.SortID.ToString("000")), info.Icon));
                        Description = string.Format("{0} {1}", Name, ObjectID);
                    }
                }
            }
        }
示例#8
0
        public override void ChangeLanguage()
        {
            this.ButnAdd.Content      = CurrentApp.GetLanguageInfo("1110WIZB0004", "添加");
            this.ButnBack.Content     = CurrentApp.GetLanguageInfo("1110WIZB0003", "返回");
            this.ButnPrevious.Content = CurrentApp.GetLanguageInfo("1110WIZB0002", "上一页");
            this.ButnNext.Content     = CurrentApp.GetLanguageInfo("1110WIZB0001", "下一页");
            MainPage.PopupPanel.Title = CurrentApp.GetLanguageInfo("1110WIZ04001", "网卡:IP");

            this.LabCapture.Content     = CurrentApp.GetLanguageInfo("1110WIZ04002", "抓包模式:");
            this.LabNetworkName.Content = CurrentApp.GetLanguageInfo("1110WIZ04003", "网卡名称:");

            for (int i = 0; i < ListCaptureItems.Count; i++)
            {
                PropertyValueEnumItem item          = ListCaptureItems[i];
                BasicInfoData         basicInfoData = item.Info as BasicInfoData;
                if (basicInfoData != null)
                {
                    item.Display =
                        CurrentApp.GetLanguageInfo(
                            string.Format("BID{0}{1}", basicInfoData.InfoID, basicInfoData.SortID.ToString("000")),
                            basicInfoData.Icon);
                }
            }
        }