public override NameValueCollection ToNameValueCollection()
 {
     base.ToNameValueCollection();
     if (AutoReply)
     {
         Nv.Add("autoReply", "true");
     }
     return(Nv);
 }
Exemple #2
0
 public override NameValueCollection ToNameValueCollection()
 {
     base.ToNameValueCollection();
     if (ViewBy.HasValue)
     {
         Nv.Add("viewBy", ((DataResolution)ViewBy).ToString().FirstCharacterToLower());
     }
     return(Nv);
 }
        public override NameValueCollection ToNameValueCollection()
        {
            base.ToNameValueCollection();
            if (Page.HasValue)
            {
                Nv.Add("page", Page.ToString());
            }

            return(Nv);
        }
        private void NvEditShowHex_Click(object sender, RoutedEventArgs e)
        {
            MenuItem s      = (MenuItem)sender;
            Nv       nvEdit = (Nv)s.CommandParameter;

            nvEdit.DisplayData = nvEdit.DataHex;
            var nv = cdmaTerm.thePhone.NvItems;

            cdmaTerm.thePhone.NvItems = null;
            cdmaTerm.thePhone.NvItems = nv;
        }
 public override NameValueCollection ToNameValueCollection()
 {
     base.ToNameValueCollection();
     if (PreviousStart.HasValue)
     {
         Nv.Add("start", PreviousStart.Value.ToIso8601());
     }
     if (PreviousEnd.HasValue)
     {
         Nv.Add("end", PreviousEnd.Value.ToIso8601());
     }
     return(Nv);
 }
 public override NameValueCollection ToNameValueCollection()
 {
     base.ToNameValueCollection();
     if (Folders != null && Folders.Any())
     {
         Nv.Add("types", string.Join(",", Folders));
     }
     if (User >= 0)
     {
         Nv.Add("user", User.ToString());
     }
     return(Nv);
 }
        public override NameValueCollection ToNameValueCollection()
        {
            base.ToNameValueCollection();

            if (!string.IsNullOrEmpty(Status))
            {
                Nv.Add("status", Status);
            }
            if (!ModifiedSince.HasValue)
            {
                Nv.Add("modifiedSince", ModifiedSince.Value.ToIso8601());
            }

            return(Nv);
        }
 public override NameValueCollection ToNameValueCollection()
 {
     base.ToNameValueCollection();
     if (Rating.HasValue)
     {
         Nv.Add("rating", ((int)Rating).ToString());
     }
     if (SortField.HasValue)
     {
         Nv.Add("sortField", ((SortField)SortField).ToString().FirstCharacterToLower());
     }
     if (SortOrder.HasValue)
     {
         Nv.Add("sortOrder", ((SortOrder)SortOrder).ToString().FirstCharacterToLower());
     }
     return(Nv);
 }
        public override NameValueCollection ToNameValueCollection()
        {
            base.ToNameValueCollection();
            if (!string.IsNullOrEmpty(Query))
            {
                Nv.Add("query", Query);
            }

            if (SortField.HasValue)
            {
                Nv.Add("sortField", ((SortField)SortField).ToString().FirstCharacterToLower());
            }

            if (SortField.HasValue)
            {
                Nv.Add("SortOrder", ((SortOrder)SortOrder).ToString().FirstCharacterToLower());
            }

            return(Nv);
        }
 public override NameValueCollection ToNameValueCollection()
 {
     base.ToNameValueCollection();
     if (Page.HasValue)
     {
         Nv.Add("page", Page.ToString());
     }
     if (Rating.HasValue)
     {
         Nv.Add("rating", Rating.ToString());
     }
     if (!string.IsNullOrEmpty(SortField))
     {
         Nv.Add("sortfield", SortField.ToString());
     }
     if (!string.IsNullOrEmpty(SortOrder))
     {
         Nv.Add("sortorder", SortOrder.ToString());
     }
     return(Nv);
 }
Exemple #11
0
        public override NameValueCollection ToNameValueCollection()
        {
            base.ToNameValueCollection();
            if (!string.IsNullOrEmpty(FirstName))
            {
                Nv.Add("firstName", FirstName);
            }
            if (!string.IsNullOrEmpty(LastName))
            {
                Nv.Add("lastName", LastName);
            }
            if (!string.IsNullOrEmpty(Email))
            {
                Nv.Add("email", Email);
            }
            if (ModifiedSince.HasValue)
            {
                Nv.Add("modifiedSince", ModifiedSince.Value.ToIso8601());
            }

            return(Nv);
        }
 public FrmDangNhap()
 {
     _nv = new Nv();
     InitializeComponent();
     CenterInForm();
 }
 public static bool NhanVien_KiemTraDangNhap(Nv obj)
 {
     return(NvDao.NhanVien_KiemTraDangNhap(obj));
 }
        public void SelecionarNivel(int Nivel, Niveis Nvs)
        {
            _wait.Until(SeleniumExtras.WaitHelpers.ExpectedConditions.ElementToBeClickable(cadastroNivelPage.Nivel1));
            SelectElement Nv = new SelectElement(cadastroNivelPage.Nivel1);

            if (Nivel == 1)
            {
                Nv.SelectByText("Inserir nesse nível");
            }
            else if (Nivel == 2)
            {
                Nv.SelectByText(Nvs.nivel1);

                _wait.Until(SeleniumExtras.WaitHelpers.ExpectedConditions.ElementToBeClickable(cadastroNivelPage.Nivel2));
                Nv = new SelectElement(cadastroNivelPage.Nivel2);
                Nv.SelectByText("Inserir nesse nível");
            }
            else if (Nivel == 3)
            {
                Nv.SelectByText(Nvs.nivel1);

                _wait.Until(SeleniumExtras.WaitHelpers.ExpectedConditions.ElementToBeClickable(cadastroNivelPage.Nivel2));
                Nv = new SelectElement(cadastroNivelPage.Nivel2);
                Nv.SelectByText(Nvs.nivel2);

                _wait.Until(SeleniumExtras.WaitHelpers.ExpectedConditions.ElementToBeClickable(cadastroNivelPage.Nivel3));
                Nv = new SelectElement(cadastroNivelPage.Nivel3);
                Nv.SelectByText("Inserir nesse nível");
            }
            else if (Nivel == 4)
            {
                Nv.SelectByText(Nvs.nivel1);

                _wait.Until(SeleniumExtras.WaitHelpers.ExpectedConditions.ElementToBeClickable(cadastroNivelPage.Nivel2));
                Nv = new SelectElement(cadastroNivelPage.Nivel2);
                Nv.SelectByText(Nvs.nivel2);

                _wait.Until(SeleniumExtras.WaitHelpers.ExpectedConditions.ElementToBeClickable(cadastroNivelPage.Nivel3));
                Nv = new SelectElement(cadastroNivelPage.Nivel3);
                Nv.SelectByText(Nvs.nivel3);

                _wait.Until(SeleniumExtras.WaitHelpers.ExpectedConditions.ElementToBeClickable(cadastroNivelPage.Nivel4));
                Nv = new SelectElement(cadastroNivelPage.Nivel4);
                Nv.SelectByText("Inserir nesse nível");
            }
            else if (Nivel == 5)
            {
                Nv.SelectByText(Nvs.nivel1);

                _wait.Until(SeleniumExtras.WaitHelpers.ExpectedConditions.ElementToBeClickable(cadastroNivelPage.Nivel2));
                Nv = new SelectElement(cadastroNivelPage.Nivel2);
                Nv.SelectByText(Nvs.nivel2);

                _wait.Until(SeleniumExtras.WaitHelpers.ExpectedConditions.ElementToBeClickable(cadastroNivelPage.Nivel3));
                Nv = new SelectElement(cadastroNivelPage.Nivel3);
                Nv.SelectByText(Nvs.nivel3);

                _wait.Until(SeleniumExtras.WaitHelpers.ExpectedConditions.ElementToBeClickable(cadastroNivelPage.Nivel4));
                Nv = new SelectElement(cadastroNivelPage.Nivel4);
                Nv.SelectByText(Nvs.nivel4);

                _wait.Until(SeleniumExtras.WaitHelpers.ExpectedConditions.ElementToBeClickable(cadastroNivelPage.Nivel5));
                Nv = new SelectElement(cadastroNivelPage.Nivel5);
                Nv.SelectByText("Inserir nesse nível");
            }
            else if (Nivel == 6)
            {
                Nv.SelectByText(Nvs.nivel1);

                _wait.Until(SeleniumExtras.WaitHelpers.ExpectedConditions.ElementToBeClickable(cadastroNivelPage.Nivel2));
                Nv = new SelectElement(cadastroNivelPage.Nivel2);
                Nv.SelectByText(Nvs.nivel2);

                _wait.Until(SeleniumExtras.WaitHelpers.ExpectedConditions.ElementToBeClickable(cadastroNivelPage.Nivel3));
                Nv = new SelectElement(cadastroNivelPage.Nivel3);
                Nv.SelectByText(Nvs.nivel3);

                _wait.Until(SeleniumExtras.WaitHelpers.ExpectedConditions.ElementToBeClickable(cadastroNivelPage.Nivel4));
                Nv = new SelectElement(cadastroNivelPage.Nivel4);
                Nv.SelectByText(Nvs.nivel4);

                _wait.Until(SeleniumExtras.WaitHelpers.ExpectedConditions.ElementToBeClickable(cadastroNivelPage.Nivel5));
                Nv = new SelectElement(cadastroNivelPage.Nivel5);
                Nv.SelectByText(Nvs.nivel5);
            }
        }
        public static bool NhanVien_KiemTraDangNhap(Nv obj)
        {
            var db = new QLBH_WinDBContext();

            return(db.Nvs.Any(m => m.MaNv == obj.MaNv && m.Mk == obj.Mk));
        }