protected void AspxMenu1_itemClick(object source, DevExpress.Web.MenuItemEventArgs e)
        {
            if (!ValidarConexionYUsuarioLogueado(source))
            {
                return;
            }
            try
            {
                switch (e.Item.Name)
                {
                case "btnFind":
                    ScriptManager.RegisterStartupScript(this, GetType(), "llamarCall", "DoCallback();", true);
                    break;

                case "btnReport":
                    ReportView();
                    ASPxPopupControl1.ShowOnPageLoad = true;
                    break;

                case "btnExcel":
                    ASPxGridViewExporter1.WriteXlsxToResponse();
                    break;
                }
            }
            catch (Exception ex)
            {
                ScriptManager.RegisterStartupScript(this, GetType(), "ErrorText", "CallError('Error: " + ex.Message + "');", true);
            }
        }
        protected void AspxMenu1_itemClick(object source, DevExpress.Web.MenuItemEventArgs e)
        {
            try
            {
                switch (e.Item.Name)
                {
                case "btnFind":
                    GetDelivery(ASPxDateEdit2.Date, ASPxDateEdit1.Date);
                    break;

                case "btnReport":
                    ReportView();
                    ASPxPopupControl1.ShowOnPageLoad = true;
                    break;

                case "btnExcel":
                    ASPxGridViewExporter1.WriteXlsxToResponse();
                    break;
                }
            }
            catch (Exception ex)
            {
                ScriptManager.RegisterStartupScript(this, GetType(), "ErrorText", "CallError('Error: " + ex.Message + "');", true);
            }
        }
Beispiel #3
0
 protected void mMain_ItemClick(object source, DevExpress.Web.MenuItemEventArgs e)
 {
     if (e.Item.Name == "mitBack")
     {
         Response.Redirect(Session["fromwhere"].ToString());
     }
 }
Beispiel #4
0
        protected void ASPxMenu1_ItemClick(object source, DevExpress.Web.MenuItemEventArgs e)
        {
            //if (e.Item.Name == "ServerDetailsPage")
            //{
            //    Response.Redirect("~/DashBoard/DominoServerDetailsPage2.aspx", false);
            //    Context.ApplicationInstance.CompleteRequest();
            //}

            DataTable dt;

            Session["Submenu"] = "LotusDomino";
            //if (Request.QueryString["Name"] != "" && Request.QueryString["Name"] != null)
            //{
            //    id = (VSWebBL.SecurityBL.ServersBL.Ins.GetServerIDbyServerName(Request.QueryString["Name"].ToString())).ToString();
            //    Response.Redirect("~/Dashboard/DominoServerDetailsPage2.aspx?Key=" + id, false);//Mukund, 05Aug14, VSPLUS-844:Page redirect on callback
            //    Context.ApplicationInstance.CompleteRequest();
            //}
            if (Request.QueryString["Key"] != "" && Request.QueryString["Key"] != null)
            {
                dt = (VSWebBL.SecurityBL.ServersBL.Ins.GetServerDetailsByID(Convert.ToInt32(Request.QueryString["Key"])));
                if (dt.Rows.Count > 0)
                {
                    Response.Redirect("~/Dashboard/BlackBerryServerDetailsPage2.aspx?Name=" + dt.Rows[0]["ServerName"].ToString() + "&Type=" + dt.Rows[0]["Type"].ToString() + "&LastDate=" + dt.Rows[0]["LastUpdate"].ToString(), false);                    //Mukund, 05Aug14, VSPLUS-844:Page redirect on callback
                    Context.ApplicationInstance.CompleteRequest();
                }
            }
        }
Beispiel #5
0
 protected void ASPxMenu1_ItemClick(object source, DevExpress.Web.MenuItemEventArgs e)
 {
     if (e.Item.Name == "ExportXLSItem")
     {
         ServerGridViewExporter.ExportXlsToResponse("DailyMemoryUsed.xls");
     }
     else if (e.Item.Name == "ExportXLSXItem")
     {
         ServerGridViewExporter.ExportXlsxToResponse("DailyMemoryUsed.xlsx");
     }
     else if (e.Item.Name == "ExportPDFItem")
     {
         //ServerGridViewExporter.Landscape = true;
         using (MemoryStream ms = new MemoryStream())
         {
             PrintableComponentLink pcl = new PrintableComponentLink(new PrintingSystem());
             pcl.Component    = ServerGridViewExporter;
             pcl.Margins.Left = pcl.Margins.Right = 50;
             pcl.Landscape    = true;
             pcl.CreateDocument(false);
             pcl.PrintingSystem.Document.AutoFitToPagesWidth = 1;
             pcl.ExportToPdf(ms);
             WriteResponse(this.Response, ms.ToArray(), System.Net.Mime.DispositionTypeNames.Attachment.ToString());
             //ServerGridViewExporter.WritePdfToResponse();
         }
     }
 }
Beispiel #6
0
        protected void ASPxMenu3_ItemClick(object source, DevExpress.Web.MenuItemEventArgs e)
        {
            if (ValidarConexionYUsuarioLogueado(source))
            {
                switch (e.Item.Name)
                {
                case "btnGmap":
                    Session["codeRoute"]             = ASPxTextBox4.Text;
                    ASPxPopupControl6.ShowOnPageLoad = true;
                    break;

                case "btnUpdate":
                    if (ASPxTextBox1.Text == "")
                    {
                        try
                        {
                            var rowHandle = ASPxGridView1.FocusedRowIndex;
                            var id        = ASPxGridView1.GetDataRow(rowHandle).ItemArray[0].ToString();
                            _result = _objRoute.UpdateRoute(Session["connectionString"].ToString(), id, ASPxTextBox2.Text, ASPxTextBox3.Text, ASPxMemo1.Text, "10/10/2010", _user);
                            if (_result != "OK")
                            {
                                ScriptManager.RegisterStartupScript(this, GetType(), "ErrorText", "CallError('Error: " + _result + "');", true);
                            }
                            GetRoute();
                            Clean();
                        }
                        catch (Exception ex)
                        {
                            ScriptManager.RegisterStartupScript(this, GetType(), "ErrorText", "CallError('Error: " + ex.Message + "');", true);
                        }
                    }
                    else
                    {
                        try
                        {
                            if (GetIdentity(ASPxTextBox1.Text) == false)
                            {
                                ScriptManager.RegisterStartupScript(this, GetType(), "ErrorText", "CallError('Error: DATO YA EXISTE');", true);
                            }
                            else
                            {
                                _result = _objRoute.InsertRoute(Session["connectionString"].ToString(), ASPxTextBox1.Text, ASPxTextBox2.Text, ASPxTextBox3.Text, ASPxMemo1.Text, "10/10/2010", Session["LOGIN"].ToString());
                                if (_result != "OK")
                                {
                                    ScriptManager.RegisterStartupScript(this, GetType(), "ErrorText", "CallError('Error: " + _result + "');", true);
                                }
                                GetRoute();
                                Clean();
                            }
                        }
                        catch (Exception ex)
                        {
                            ScriptManager.RegisterStartupScript(this, GetType(), "ErrorText", "CallError('Error: " + ex.Message + "');", true);
                        }
                    }
                    break;
                }
            }
        }
Beispiel #7
0
 protected void MenuForKey_ItemClick(object source, DevExpress.Web.MenuItemEventArgs e)
 {
     if (e.Item.Name == "ChangeKey")
     {
         Response.Redirect("~/Configurator/UserPreferences.aspx");
         Context.ApplicationInstance.CompleteRequest();
     }
 }
Beispiel #8
0
        protected void mMain_ItemClick(object source, DevExpress.Web.MenuItemEventArgs e)
        {
            if (e.Item.Name == "mitNew")
            {
                divLogin.Visible = true;
            }

            UpdatePanelStaff.Update();
        }
Beispiel #9
0
        protected void ASPxMenu1_ItemClick1(object source, DevExpress.Web.MenuItemEventArgs e)
        {
            if (e.Item.Text == "Diler Holding")
            {
                Response.Write("<script>");
                Response.Write("window.open('http://www.dilerhld.com/','_blank')");
                Response.Write("</script>");
            }

            if (e.Item.Text == "ENVIDAS")
            {
                Response.Write("<script>");
                Response.Write("window.open('http://81.214.137.169','_blank')");
                Response.Write("</script>");
            }

            if (e.Item.Text == "Holding Raporları")
            {
                Response.Write("<script>");
                Response.Write("window.open('http://192.168.198.192/Dlrrapor/default.aspx','_blank')");
                Response.Write("</script>");
            }

            if (e.Item.Text == "ÇIKIŞ")
            {
                Response.Write("<script>");
                Response.Redirect("Login.aspx", false);
                Response.Write("</script>");
            }


            if (e.Item.Text == "DUSWEB")
            {
                Response.Write("<script>");
                Response.Write("window.open('http://192.168.199.242:9080/dusWeb?view=TalepView&user='******'_blank')");
                Response.Write("</script>");
            }


            if (e.Item.Text == "BOYS")
            {
                Response.Write("<script>");
                Response.Write("window.open('http://192.168.198.1/boysweb2/default.aspx','_blank')");
                Response.Write("</script>");
            }
            if (e.Item.Text == "ENTEGRE POLİTİKAMIZ")
            {
                Response.Write("<script>");
                Response.Write("window.open('../../entegrePolitika/ENTEGRE POLİTİKA 2018.pdf','_blank')");

                Response.Write("</script>");
            }
        }
Beispiel #10
0
    protected void LeftMenu_ItemClick(object source, DevExpress.Web.MenuItemEventArgs e)
    {
        String itemName = e.Item.Name;

        switch (itemName)
        {
        case "个人中心":
            MainFrame.Attributes["src"] = "~/ViewAdmin/UserCenter.aspx";
            break;

        case "教师管理":
            MainFrame.Attributes["src"] = "~/ViewAdmin/UserModfity.aspx";
            break;
        }
    }
 protected void ASPxMenu1_ItemClick(object source, DevExpress.Web.MenuItemEventArgs e)
 {
     switch (e.Item.Name)
     {
     case "btnExcel":
         try
         {
             ASPxGridViewExporter1.WriteXlsxToResponse();
         }
         catch (Exception ex)
         {
             ScriptManager.RegisterStartupScript(this, GetType(), "ErrorText", "CallError('Error: " + ex.Message + "');", true);
         }
         break;
     }
 }
 protected void mMain_ItemClick(object source, DevExpress.Web.MenuItemEventArgs e)
 {
     if (e.Item.Name == "mitNew")
     {
         clearfields();
         div_FeesBatch.Visible = true;
         loadPrograms();
         uPanel.Update();
     }
     else if (e.Item.Name == "mitCancel")
     {
         clearfields();
         div_FeesBatch.Visible = false;
         uPanel.Update();
     }
 }
Beispiel #13
0
        protected void mMain_ItemClick(object source, DevExpress.Web.MenuItemEventArgs e)
        {
            switch (e.Item.Name)
            {
            case "mitExportxls":
                dataExporter.WriteCsvToResponse(new CsvExportOptionsEx()
                {
                    ExportType = ExportType.WYSIWYG
                });
                break;

            case "mitReport":
                Session["fromwhere"] = "~/feespaymentlist.aspx";
                Session["report"]    = new mySmis.reports.rptFeesPayments();
                Response.Redirect("~/documentviewer.aspx");
                break;
            }
        }
Beispiel #14
0
 protected void UiMenuOpcionesMapa_ItemClick(object source, DevExpress.Web.MenuItemEventArgs e)
 {
     if (!ValidarConexionYUsuarioLogueado(source))
     {
         return;
     }
     try
     {
         switch (e.Item.Name)
         {
         case "btnExcel":
             UIVistaExportar.WriteXlsxToResponse();
             break;
         }
     }
     catch (Exception ex)
     {
         ScriptManager.RegisterStartupScript(this, GetType(), "ErrorText", "CallError('Error: " + ex.Message + "');", true);
     }
 }
Beispiel #15
0
        protected void ASPxMenu1_ItemClick(object source, DevExpress.Web.MenuItemEventArgs e)
        {
            if (!ValidarConexionYUsuarioLogueado(source))
            {
                return;
            }
            try
            {
                switch (e.Item.Name)
                {
                case "btnFind":
                    ScriptManager.RegisterStartupScript(this, GetType(), "llamarCall2", "UsuarioDeseaObtenerReporte();", true);
                    break;

                case "UiBotonGenerarReporte":
                    GenerarReporte();
                    ASPxPopupControl1.ShowOnPageLoad = true;
                    break;

                case "btnExcel":
                    UIVistaReporteExportar.WriteXlsxToResponse();
                    break;

                case "btnPdf":
                    UIVistaReporteExportar.WritePdfToResponse();
                    break;

                case "btnCsv":
                    UIVistaReporteExportar.WriteCsvToResponse();
                    break;
                }
            }
            catch (Exception ex)
            {
                ScriptManager.RegisterStartupScript(this, GetType(), "ErrorText", "CallError('Error: " + ex.Message + "');", true);
            }
        }
 protected void ASPxMenu3_ItemClick(object source, DevExpress.Web.MenuItemEventArgs e)
 {
     if (ValidarConexionYUsuarioLogueado(source))
     {
         switch (e.Item.Name)
         {
         case "btnUpdate":
             try
             {
                 string result;
                 if (txtBranchPK.Text == "")
                 {
                     result = _objBranch.InsertBranch(Session["connectionString"].ToString(), txtBranchCode.Text, ASPxGridLookup1.Value.ToString(), spinPDE.Text, txtBranchName.Text, txtBranchAddress.Text, ASPxGridLookup2.Text, txtGPS.Text, txtPhone.Text, txtDeliveryEmail.Text, txtRecollectEmail.Text, cmbStatus.Value.ToString(), txtContact.Text, cmbIsDefault.Value.ToString(), Session["USER"].ToString());
                     if (result != "OK")
                     {
                         ScriptManager.RegisterStartupScript(this, GetType(), "ErrorText", "CallError('Error: " + result + "');", true);
                     }
                 }
                 else
                 {
                     result = _objBranch.UpdateBranch(Session["connectionString"].ToString(), txtBranchCode.Text, ASPxGridLookup1.Value.ToString(), spinPDE.Text, txtBranchName.Text, txtBranchAddress.Text, ASPxGridLookup2.Text, txtGPS.Text, txtPhone.Text, txtDeliveryEmail.Text, txtRecollectEmail.Text, cmbStatus.Value.ToString(), txtContact.Text, cmbIsDefault.Value.ToString(), Session["USER"].ToString(), txtBranchPK.Text);
                     if (result != "OK")
                     {
                         ScriptManager.RegisterStartupScript(this, GetType(), "ErrorText", "CallError('Error: " + result + "');", true);
                     }
                 }
                 GetBranches();
                 Clean();
             }
             catch (Exception ex)
             {
                 ScriptManager.RegisterStartupScript(this, GetType(), "ErrorText", "CallError('Error: " + ex.Message + "');", true);
             }
             break;
         }
     }
 }
Beispiel #17
0
        protected void UiMenuVistaGeneral_ItemClick(object source, DevExpress.Web.MenuItemEventArgs e)
        {
            if (!ValidarConexionYUsuarioLogueado(source))
            {
                return;
            }
            try
            {
                switch (e.Item.Name)
                {
                case "UiBotonGenerarReporteVistaGeneral":
                    UiPopupReporteVistaGeneral.ShowOnPageLoad = true;
                    break;

                case "UiBotonGenerarExcelVistaGeneral":
                    UiExportarVista.WriteXlsxToResponse();
                    break;
                }
            }
            catch (Exception ex)
            {
                UiVistaTareasSinGestion.JSProperties.Add("cpError", ex.Message);
            }
        }
        protected void ASPxMenu1_ItemClick(object source, DevExpress.Web.MenuItemEventArgs e)
        {
            if (e.Item.Name == "BackItem")
            {
                if (Session["BackURL"] != "" && Session["BackURL"] != null)
                {
                    Response.Redirect(Session["BackURL"].ToString());
                    Session["BackURL"] = "";
                }
            }
            else if (e.Item.Name == "ScanItem")
            {
                try
                {
                    Status StatusObj = new Status();
                    StatusObj.Name = Request.QueryString["Name"];
                    //9/29/2015 NS modified for VSPLUS-2212
                    string type = "";
                    if (Request.QueryString["Type"] == "Traveler")
                    {
                        type = "Domino";
                    }
                    else
                    {
                        type = Request.QueryString["Type"];
                    }
                    StatusObj.Type = type;

                    bool bl = VSWebBL.StatusBL.StatusTBL.Ins.UpdateforScan(StatusObj);
                    //9/29/2015 NS modified for VSPLUS-2212
                    if (Request.QueryString["Type"] == "Domino" || Request.QueryString["Type"] == "Traveler")
                    {
                        bl = VSWebBL.SettingBL.SettingsBL.Ins.UpdateScanvalue("ScanDominoASAP", StatusObj.Name, VSWeb.Constants.Constants.SysString);
                    }
                    else if (Request.QueryString["Type"] == "Mail")
                    {
                        bl = VSWebBL.SettingBL.SettingsBL.Ins.UpdateScanvalue("ScanMailServiceASAP", StatusObj.Name, VSWeb.Constants.Constants.SysString);
                    }
                    else if (Request.QueryString["Type"] == "Network Device")
                    {
                        bl = VSWebBL.SettingBL.SettingsBL.Ins.UpdateScanvalue("ScanNetworkDeviceASAP", StatusObj.Name, VSWeb.Constants.Constants.SysString);
                    }
                    else if (Request.QueryString["Type"] == "Sametime Server")
                    {
                        bl = VSWebBL.SettingBL.SettingsBL.Ins.UpdateScanvalue("ScanSametimeASAP", StatusObj.Name, VSWeb.Constants.Constants.SysString);
                    }
                    else if (Request.QueryString["Type"] == "BES")
                    {
                        bl = VSWebBL.SettingBL.SettingsBL.Ins.UpdateScanvalue("ScanBlackBerryASAP", StatusObj.Name, VSWeb.Constants.Constants.SysString);
                    }
                    else if (Request.QueryString["Type"] == "URL")
                    {
                        bl = VSWebBL.SettingBL.SettingsBL.Ins.UpdateScanvalue("ScanURLASAP", StatusObj.Name, VSWeb.Constants.Constants.SysString);
                    }
                    else if (Request.QueryString["Type"] == "Exchange")
                    {
                        bl = VSWebBL.SettingBL.SettingsBL.Ins.UpdateScanvalue("ScanExchangeASAP", StatusObj.Name, VSWeb.Constants.Constants.SysString);
                    }
                    else if (Request.QueryString["Type"] == "SharePoint")
                    {
                        bl = VSWebBL.SettingBL.SettingsBL.Ins.UpdateScanvalue("ScanSharePointASAP", StatusObj.Name, VSWeb.Constants.Constants.SysString);
                    }
                    else if (Request.QueryString["Type"] == "Skype for Business")
                    {
                        bl = VSWebBL.SettingBL.SettingsBL.Ins.UpdateScanvalue("LyncASAP", StatusObj.Name, VSWeb.Constants.Constants.SysString);
                    }
                    else if (Request.QueryString["Type"] == "IBM Connections")
                    {
                        bl = VSWebBL.SettingBL.SettingsBL.Ins.UpdateScanvalue("ScanIBMConnectionsASAP", StatusObj.Name, VSWeb.Constants.Constants.SysString);
                    }
                }
                catch (Exception ex)
                {
                    Log.Entry.Ins.WriteHistoryEntry(DateTime.Now.ToString() + " Exception - " + ex);
                    throw ex;
                }
            }
            else if (e.Item.Name == "EditConfigItem")
            {
                string id = "";
                Session["Submenu"] = "IBMConnections";
                if (Request.QueryString["Name"] != "" && Request.QueryString["Name"] != null)
                {
                    id = (VSWebBL.SecurityBL.ServersBL.Ins.GetServerIDbyServerName(Request.QueryString["Name"].ToString())).ToString();
                    Response.Redirect("~/Configurator/IBMConnections.aspx?ID=" + id, false);//Mukund, 05Aug14, VSPLUS-844:Page redirect on callback
                    Context.ApplicationInstance.CompleteRequest();
                }
            }
        }
 protected void ASPxMenu1_ItemClick(object source, DevExpress.Web.MenuItemEventArgs e)
 {
 }
Beispiel #20
0
        protected void ASPxPopupMenu1_ItemClick(object source, DevExpress.Web.MenuItemEventArgs e)
        {
            string txt = e.Item.Name;

            Session["id_dzialu"] = txt;
        }
Beispiel #21
0
 protected void ASPxMenu1_ItemClick(object source, DevExpress.Web.MenuItemEventArgs e)
 {
     if (e.Item.Name == "OpenDBItem")
     {
         if (AllDBGridView.FocusedRowIndex > -1)
         {
             DataTable dt = new DataTable();
             int       index;
             if (AllDBGridView.FocusedRowIndex > -1)
             {
                 index = AllDBGridView.FocusedRowIndex;
             }
             else
             {
                 index = 0;
             }
             string    HostName  = "Nohost";
             string    Server    = AllDBGridView.GetRowValues(index, "Server").ToString();
             DataTable servertab = VSWebBL.DashboardBL.DatabaseHealthBL.Ins.GetIPfromServers(Server);
             if (servertab.Rows.Count > 0)
             {
                 HostName = servertab.Rows[0]["IPAddress"].ToString();
             }
             string filepath = AllDBGridView.GetRowValues(index, "Folder").ToString();
             string fileName = AllDBGridView.GetRowValues(index, "FileName").ToString();
             filepath = filepath.Replace("'\'", "'/'");
             if (filepath == "")
             {
                 Page.ClientScript.RegisterStartupScript(this.GetType(), "Script", "PopupCenter('http://" + HostName + "/" + fileName + "?OpenDatabase');", true);
             }
             else
             {
                 Page.ClientScript.RegisterStartupScript(this.GetType(), "Script", "PopupCenter('http://" + HostName + "/" + filepath + "/" + fileName + "?OpenDatabase');", true);
             }
             //if (filepath == "")
             //{
             //    Response.Write("<script>window.open('http://" + HostName + "/" + fileName + "?OpenDatabase','Open Database','width=500px height=50px left=(screen.width/2)-(500/2) top=(screen.height/2)-(50/2)',1)</script>");
             //}
             //else
             //{
             //    Response.Write("<script>window.open('http://" + HostName + "/" + filepath + "/" + fileName + "?OpenDatabase','Open Database','width=500px height=50px',1)</script>");
             //}
         }
         else
         {
             msglbl.Text = "Please select a database in the All Databases grid.";
             msgPopupControl.ShowOnPageLoad = true;
         }
     }
     else if (e.Item.Name == "CompactItem")
     {
         popuptextBox.Text             = "";
         DBPopupControl.HeaderText     = "Compact Options";
         ASPxLabel1.Text               = "Please enter the desired COMPACT options.";
         ASPxLabel2.Text               = "Use -c for corrupt databases and -B for in place compaction with file size reduction.";
         ASPxLabel3.Text               = "Google 'IBM domino compact switches' for the full list of options.";
         ASPxLabel4.Visible            = false;
         DBPopupControl.ShowOnPageLoad = true;
         Session["ActBtn"]             = "CompactButton";
     }
     else if (e.Item.Name == "FixupItem")
     {
         popuptextBox.Text             = "";
         DBPopupControl.HeaderText     = "Fixup Options";
         ASPxLabel1.Text               = "Please enter the desired FIXUP options.";
         ASPxLabel2.Text               = "For example, use -Q to check more quickly but less thoroughly.";
         ASPxLabel3.Text               = "Google 'IBM fixup compact switches' for the full list of options.";
         ASPxLabel4.Visible            = true;
         ASPxLabel4.Text               = "Use -V to prevent Fixup from running on views. This option reduces the time it takes Fixup to run.";
         DBPopupControl.ShowOnPageLoad = true;
         Session["ActBtn"]             = "Fixup";
     }
     else if (e.Item.Name == "UpdallItem")
     {
         popuptextBox.Text             = "";
         DBPopupControl.HeaderText     = "Updall Options";
         ASPxLabel1.Text               = "Please enter the desired UPDALL options.";
         ASPxLabel2.Text               = "For example, use -R to rebuild all used views (resource intensive).";
         ASPxLabel3.Text               = "Use -X to rebuild the full text index.";
         ASPxLabel4.Visible            = false;
         DBPopupControl.ShowOnPageLoad = true;
         Session["ActBtn"]             = "Updall";
     }
 }