protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { RadGrid1.DataSource = ""; RadGrid1.DataBind(); DivAlert.Visible = false; btnModificar.Visible = false; DivError.Visible = false; List <APA_Clientes> clientes = xml.ClientesMetrics(); ddlCliente.DataSource = clientes; ddlCliente.DataTextField = "Cliente"; ddlCliente.DataValueField = "Cliente"; ddlCliente.DataBind(); ddlCliente.Items.Insert(0, new ListItem("Seleccione...", "0")); if (Request.QueryString["admin"] == null) { txtNombreOT.Visible = false; ddlCliente.Visible = false; txtOT.Visible = true; txtOTNueva.Visible = false; lblNombreOT.Visible = true; btnBuscar.Visible = true; btnBuscarNueva.Visible = false; //OT nueva campos habilitados lblDiferencia.Text = ""; } else { txtOT.Visible = false; txtOTNueva.Visible = true; txtNombreOT.Visible = true; lblNombreOT.Visible = false; btnBuscar.Visible = false; btnBuscarNueva.Visible = true; //OT nueva campos habilitados lblDiferencia.Text = "*Encargados"; ddlCliente.Visible = true; } } }
public void cargarDatos(int procedimiento) { Controller_Liquidacion controlliqui = new Controller_Liquidacion(); string OT = txtOT.Text.ToString(); string NombreOT = txtNombreOT.Text.ToString(); string Cliente = txtCliente.Text.ToString(); string FechaInicio = ""; string FechaTermino = ""; if (txtFechaInicio.Text.Trim() != "" && txtFechaTermino.Text.Trim() != "") { string[] str = txtFechaInicio.Text.Split('-'); FechaInicio = str[2] + str[1] + str[0]; string[] str2 = txtFechaTermino.Text.Split('-'); FechaTermino = str2[2] + "-" + str2[1] + "-" + str2[0] + " 23:59:59"; string MesInicio = ""; if (str[1].Length == 1) { MesInicio = "0" + str[1]; } else { MesInicio = str[1]; } string NombreMes = ""; try { System.Threading.Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo(Request.UserLanguages[0]); } catch { System.Threading.Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo("es-CL"); } NombreMes = Convert.ToDateTime(txtFechaInicio.Text).ToString("MMMM");; lblTotal.Text = controlliqui.TotalNetoFacturamesActual(MesInicio, str[2], NombreMes); } int EstadoOT = 2; if (CheckBox1.Checked) { EstadoOT -= 1; procedimiento += 2; } RadGrid1.DataSource = controlliqui.ListarOTLiquidadas(OT, NombreOT, Cliente, FechaInicio, FechaTermino, EstadoOT, procedimiento); RadGrid1.DataBind(); }
protected void AjaxManager_Request(object sender, AjaxRequestEventArgs e) { RadTreeNodeEventArgs tne;// = new RadTreeNodeEventArgs(RadTreeView1.SelectedNode); switch (e.Argument) { case "XoaNV": var dt = _entities.DeleteEmployeeByIDNhanVien((Int32)Session["idNV"]); RadGrid1.Rebind(); tne = new RadTreeNodeEventArgs(RadTreeView1.SelectedNode); RadTreeView1_Nodeclick(sender, tne); break; case "RebindGrid": var dtRebind = new object(); RadTreeNode tn = RadTreeView1.SelectedNode; if (tn.Level.Equals(0)) { dtRebind = _entities.GetAllCV(); } else { dtRebind = _entities.GetCVByIDToChuc(Int32.Parse(tn.Value)); } RadGrid1.DataSource = dtRebind; RadGrid1.DataBind(); //if (RadGrid1.Items.Count > 0) { FillCurrentEmployeeDetail((int)Session["idNV"]); } //foreach (GridDataItem item in RadGrid1.Items) //{ // if (item.RowIndex == 2) // { // item.Selected = true; // } //} break; } }
protected void RefreshGrid(bool rebind) { if (pat == null && cus == null) { RadGrid1.DataSource = ctx.Payments; } else { //if (pat != null) // RadGrid1.DataSource = cus; ////if (cus != null) //// RadGrid1.DataSource = CntAriCli.GetTicketsNotInvoiced(cus, ctx); RadGrid1.DataSource = CntAriCli.GetPayments(cus, ctx); } if (rebind) { RadGrid1.Rebind(); } }
private void BindContacts(int id) { DBconnection obj = new DBconnection(); obj.SetCommandQry = "SELECT * FROM project_contact_tbl WHERE project_id = " + id + " ORDER BY [id] DESC"; DataTable dt = new DataTable(); dt = obj.ExecuteTable(); if (dt.Rows.Count > 0) { RadGrid1.Visible = true; RadGrid1.DataSource = dt; RadGrid1.DataBind(); } else { RadGrid1.Visible = false; } }
public void HienSystem() { // string UserID = (string)Session["UserID"]; string UserID = "27276"; string GSBH = conty; DataTable dt = dalSystem.QryProjectTheoNgayThang(UserID, GSBH); if (dt.Rows.Count > 0) { RadGrid1.DataSource = dt; RadGrid1.DataBind(); } else { RadGrid1.DataSource = null; RadGrid1.DataBind(); } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { var dt = _entities.GetAllCVUngVien(); RadGrid1.DataSource = dt; RadGrid1.DataBind(); RadGrid1.Items[0].Selected = true; GridDataItem item = RadGrid1.Items[0]; Int32 IDNhanVien = Int32.Parse(item["IDNhanVien"].Text); FillCurrentEmployeeDetail(IDNhanVien); var TreeData = _entities.GetDotTuyenDung(); RadTreeView1.DataTextField = "TenDotTuyenDung"; RadTreeView1.DataFieldID = "IDDotTuyenDung"; RadTreeView1.DataFieldParentID = "IDParent"; RadTreeView1.DataSource = TreeData; RadTreeView1.DataBind(); } }
protected void RefreshGrid(bool rebind) { if (usuario != null) { RadGrid1.DataSource = CntLainsaSci.GetInstalaciones(usuario, ctx); } else { RadGrid1.DataSource = CntLainsaSci.GetInstalaciones(ctx); } if (empresa != null) { RadGrid1.DataSource = empresa.Instalaciones; } if (rebind) { RadGrid1.Rebind(); } }
protected void RefreshGrid(bool rebind) { if (empresa == null && instalacion == null) { RadGrid1.DataSource = CntLainsaSci.GetUsuariosExtranet(ctx); } if (empresa != null) { RadGrid1.DataSource = empresa.UsuarioExtranets; } if (instalacion != null) { RadGrid1.DataSource = instalacion.UsuarioExtranets; } if (rebind) { RadGrid1.Rebind(); } }
protected void UpdatePromotionBut_Click(object sender, EventArgs e) { if (Session["promotionid"] != null) { int promotionid = (int)Session["promotionid"]; string filename = ""; if (Session["Promofilename"] != null) { filename = Session["Promofilename"].ToString(); } else { filename = PromotionImage.ImageUrl.Remove(0, Config.UploadPromoVirtualPath.Length); } bool success = ClientManager.updatePromotion(promotionid, int.Parse(clientDDL.SelectedValue), (DateTime)startDateTB.SelectedDate, (DateTime)endDateTB.SelectedDate, DateTime.Today, PrefixTB.Text.Trim(), NameTB.Text.Trim(), BriefTB.Text.Trim(), DescriptionTB.Text.Trim(), filename, int.Parse(TypeRBL.SelectedValue)); //bool success = ClientManager.updatePromotion(promotionid, // int.Parse(clientDDL.SelectedValue), (DateTime)startDateTB.SelectedDate, // (DateTime)endDateTB.SelectedDate, (DateTime)graceDateTB.SelectedDate, // PrefixTB.Text.Trim(), NameTB.Text.Trim(), BriefTB.Text.Trim(), // DescriptionTB.Text.Trim(), filename, // int.Parse(TypeRBL.SelectedValue)); Session.Remove("Promofilename"); if (success) { Logger.LogInfo(Membership.GetUser().UserName + "- update promotion ID:" + promotionid , this.GetType()); ClientDetailPnl.Visible = false; ShowCreatePromotionBut.Visible = true; promotionDetailErrorLit.Text = ""; RadGrid1.Rebind(); } else { promotionDetailErrorLit.Text = "Error Occurred updating Promotion."; } } }
protected void _btnRun_Click(object sender, EventArgs e) { var db = new Urban.Data.UrbanDataContext(); var startDate = _rdpStart.SelectedDate; var endDate = _rdpEnd.SelectedDate; if (startDate != null) { startDate = ((DateTime)startDate).AddHours(0); } if (endDate != null) { endDate = ((DateTime)endDate).AddHours(23); } apptList = AppointmentUtilities.GetAppointmentObjectsByDateRangeAndRoomId(ref db, (DateTime)startDate, (DateTime)endDate, 1).ToList(); RadGrid1.Rebind(); }
public void CargarBobina() { Bobina_Controller controlbo = new Bobina_Controller(); string codigo = "0"; if (txtCodigoB.Text != "") { codigo = txtCodigoB.Text; } Bobina bob = controlbo.BuscarBobinaCodigo(codigo); List <Bobina> lista = new List <Bobina>(); lista.Add(bob); RadGrid1.DataSource = lista; RadGrid1.DataBind(); Validacion.Visible = false; RadGrid1.Visible = true; lblBobina.Text = bob.Ubicacion; }
protected void hdnGetIPbtn_Click(object sender, EventArgs e) { int i = 0; dt = (DataTable)Session[SessionContents.FPS_AddProspect_DataTable]; string IPAddress = string.Empty; foreach (ListItem Li in chklistIPPools.Items) { if (Li.Selected) { IPAddress = Li.Text; DataRow dr = dt.NewRow(); dr["A_AdviserId"] = advisorVo.advisorId; dr["AIPP_IP"] = IPAddress; dt.Rows.Add(dr); i++; } } if (i == 0) { ScriptManager.RegisterClientScriptBlock(this.Page, this.GetType(), "pageloadscript", "alert('Please select one checkbox atleast..!!');", true); } Session[SessionContents.FPS_AddProspect_DataTable] = dt; Rebind(false); RadGrid1.Rebind(); RadGrid1.MasterTableView.ClearEditItems(); RadGrid1.MasterTableView.Rebind(); System.Web.HttpBrowserCapabilities browser = Request.Browser; string name = browser.Browser; if (name == "IE") { Page.ClientScript.RegisterStartupScript(this.GetType(), "Message", "showmessage();", true); //RadGrid1.MasterTableView.Rebind(); //Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "AdviserIPPool", "loadlinks('AdviserIPPool','login');", true); } }
private void BindGrid() { DataTable dt = new DataTable(); BodBll obj = new BodBll(); dt = obj.GetBodDesignationList(); if (dt.Rows.Count > 0) { lblMsg.Visible = false; RadGrid1.Visible = true; RadGrid1.DataSource = dt; RadGrid1.Rebind(); } else { lblMsg.Visible = true; RadGrid1.Visible = false; } }
protected void Page_Load(object sender, EventArgs e) { txtCantidad.Attributes.Add("onkeypress", "return solonumeros(event);"); txtEjemplares.Attributes.Add("onkeypress", "return solonumeros(event);"); Button1.Attributes.Add("onclick", "window.open('infOperario.aspx','Procesar Documento','toolbar=no, location=yes,status=no,menubar=no,scrollbars=no,resizable=no, width=380,height=300,left=340,top=200')"); if (!IsPostBack) { btnImprimir.Attributes.Add("onclick", "window.open('EtiquetaProductosTerminados.aspx?Cod=" + txtCodigo.Text + "','Procesar Documento','toolbar=no, location=yes,status=no,menubar=no,scrollbars=no,resizable=no, width=730,height=650,left=340,top=200')"); RadGrid1.DataSource = ""; RadGrid1.DataBind(); } //programacion usuario Session["Usuario"] = Session["Usuario"].ToString(); //string r = enc.infMaquinaBobina(Session["Usuario"].ToString()); /*[cjerias_11/12/2018] Comentado Unificacion despacho Impresion y ENC * string r = enc.infMaquinaBobina(Session["Usuario"].ToString()); * * //valor = valor.AddDays(+1); * DateTime hoy = DateTime.Now; * if (r != "0") * { * DateTime valor = Convert.ToDateTime(r); * TimeSpan a = hoy - valor; * int b = a.Days; * if (b > 0) * { * * string popupScript = "<script language='JavaScript'> onload(window.open('infOperario.aspx','Procesar Documento','toolbar=no, location=yes,status=no,menubar=no,scrollbars=no,resizable=no, width=380,height=300,left=340,top=200'));</script>"; * Page.RegisterStartupScript("PopupScript", popupScript); * } * * } * else * { * * string popupScript = "<script language='JavaScript'> onload(window.open('infOperario.aspx','Procesar Documento','toolbar=no, location=yes,status=no,menubar=no,scrollbars=no,resizable=no, width=380,height=300,left=340,top=200'));</script>"; * Page.RegisterStartupScript("PopupScript", popupScript); * } */ }
private void BindGrid() { Class.clsDB DB = new Class.clsDB(); string sql = "select po.doc_id,po.doc_name,po.content,po.create_by,po.create_date,po.secure_prepare,po.paper_type,po.page_count,"; sql += " po.step1,po.step2,po.step3,po.step4,po.secure_approve,po.approve_problem,po.attach_file_name,pr.supplier_name"; sql += " From po_document as po,document as pr"; sql += " where po.step1 = 1 and po.doc_id = pr.doc_id order by po.doc_id desc"; DataTable dt; dt = DB.ExecuteDataTable(sql); DB.Close(); DB.Dispose(); RadGrid1.DataSource = dt; RadGrid1.DataBind(); Session["DT"] = dt; }
protected void btnEliminar_Click(object sender, EventArgs e) { try { long id = long.Parse(RadGrid1.SelectedValue.ToString()); EntidadesConosud dc = new EntidadesConosud(); Entidades.Legajos LegEliminar = (from L in dc.Legajos where L.IdLegajos == id select L).FirstOrDefault <Entidades.Legajos>(); dc.DeleteObject(LegEliminar); dc.SaveChanges(); RadGrid1.Rebind(); } catch { ScriptManager.RegisterStartupScript(Page, typeof(Page), "eliminacino", "alert('El legajo no puede ser eliminado ya que es parte de algún contrato.');", true); } }
protected void Page_Load(object sender, EventArgs e) { try { if (Session["CCFNUser"] == null) { Response.Redirect("~/login.aspx"); } if (!IsPostBack) { GetDataSourceInvoices(); RadGrid1.DataBind(); } } catch (Exception ex) { Response.Write("Error: " + ex.Message); } }
protected void RadGrid1_ItemCommand(object sender, Telerik.Web.UI.GridCommandEventArgs e) { int id = 0; if (e.CommandName == "Delete") { id = Int32.Parse(e.CommandArgument.ToString()); DBconnection obj = new DBconnection(); obj.SetCommandSP = "z_DeleteColors"; obj.AddParam("@id", id); int exe = obj.ExecuteNonQuery(); if (exe > 0) { RadGrid1.DataBind(); } } }
protected void load_grid_Click(object sender, EventArgs e) { string strLabelVal = lbl_selected_dep.Value; dt.Clear(); if (strLabelVal == "1") { lbl_Deparament_Name.Text = "Organigramma Stiro"; } else if (strLabelVal == "2") { lbl_Deparament_Name.Text = "Organigramma Confezione A"; } else if (strLabelVal == "14") { lbl_Deparament_Name.Text = "Organigramma Confezione B"; } else if (strLabelVal == "3") { lbl_Deparament_Name.Text = "Organigramma Tessitura"; } else if (strLabelVal == "5") { lbl_Deparament_Name.Text = "Organigramma Amministrazione"; } using (SqlConnection conn = new SqlConnection(WebConfigurationManager.ConnectionStrings["WbmOlimpiasConnectionString"].ConnectionString)) { using (SqlCommand cmd = new SqlCommand("SELECT DISTINCT ROW_NUMBER() OVER (ORDER BY dbo.AngajatiViewLastMonth.CodAngajat) AS [IDs] ,dbo.AngajatiViewLastMonth.CodAngajat AS [Id], dbo.AngajatiViewLastMonth.Prenume AS [Cognome], dbo.AngajatiViewLastMonth.Nume AS [Nome], CONVERT(VARCHAR(10), dbo.AngajatiViewLastMonth.DataAngajarii, 103) AS [Data Nascita], dbo.AngajatiViewLastMonth.DYear,dbo.AngajatiViewLastMonth.DMonth, dbo.PosturiDeLucru.PostDeLucru AS [Mansione],dbo.Linii.Linie AS [Linea], dbo.AngajatiViewLastMonth.Note FROM dbo.AngajatiViewLastMonth INNER JOIN dbo.Departamente ON dbo.AngajatiViewLastMonth.IdDepartament = dbo.Departamente.Id INNER JOIN dbo.Linii ON dbo.AngajatiViewLastMonth.IdLinie = dbo.Linii.Id INNER JOIN dbo.PosturiDeLucru ON dbo.AngajatiViewLastMonth.IdPostDeLucru = dbo.PosturiDeLucru.Id WHERE dbo.AngajatiViewLastMonth.IdDepartament='" + strLabelVal + "'", conn)) { using (SqlDataAdapter da = new SqlDataAdapter(cmd)) { da.Fill(dt); } } } RadGrid1.DataSource = dt; RadGrid1.DataBind(); ScriptManager.RegisterClientScriptBlock(this, GetType(), "none", "<script>$('#shade').show();$('#tbl_grid').hide();</script>", false); }
protected void Page_Load(object sender, EventArgs e) { if (IsPostBack) { return; } try { ConsultasController consultasController = new ConsultasController(); SessionInfoModel session = new SessionInfoModel(); if (Session["SessionInfo"] == null || Session["SessionInfo"].ToString() == "") { Response.Redirect("../Identity/Account/Login/Default.aspx", false); } else { txtDate1.Text = Convert.ToDateTime(DateTime.Now.Year.ToString() + "-" + DateTime.Now.Month.ToString() + "-01").ToShortDateString(); txtDate2.Text = Convert.ToDateTime(DateTime.DaysInMonth(DateTime.Now.Year, DateTime.Now.Month).ToString() + "-" + DateTime.Now.Month.ToString() + "-" + DateTime.Now.Year.ToString()).ToShortDateString(); session = (SessionInfoModel)Session["SessionInfo"]; IEnumerable <PagosTdPagos> pagos; pagos = consultasController.GetPagosEfectuados(session.cardcode, Convert.ToDateTime(txtDate1.Text), Convert.ToDateTime(txtDate2.Text)); if (pagos != null) { RadGrid1.DataSource = pagos; RadGrid1.DataBind(); } else { RadGrid1.DataSource = null; RadGrid1.DataBind(); } } } catch (Exception ex) { lblMessageError.Text = ex.Message; } }
protected void Page_Load(object sender, EventArgs e) { if (IsPostBack) { return; } try { lblMessageError.Text = ""; ConsultasController consultasController = new ConsultasController(); SessionInfoModel session = new SessionInfoModel(); if (Session["SessionInfo"] == null || Session["SessionInfo"].ToString() == "") { Response.Redirect("../Identity/Account/Login/Default.aspx", false); } else { session = (SessionInfoModel)Session["SessionInfo"]; IEnumerable <EntradasTdModel> entradas; entradas = consultasController.GetEntradasAbiertos(session.cardcode); if (entradas != null) { RadGrid1.DataSource = entradas; RadGrid1.DataBind(); } else { RadGrid1.DataSource = null; RadGrid1.DataBind(); } } } catch (Exception ex) { lblMessageError.Text = ex.Message; } }
protected void LinkButton2_Click(object sender, EventArgs e) { string RemoveLock = " DELETE FROM BlockedUsers WHERE (IDUsers = @UserID) UPDATE [l-kabinet] SET on_delete = NULL WHERE (ID = @UserID)"; SqlCommand RL = new SqlCommand(RemoveLock, con); RL.Parameters.AddWithValue("@UserID", IDAccount.Value); try { con.Open(); RL.ExecuteNonQuery(); con.Close(); AlertNotif("Успех", "Блокировка удалена у пользователя с ID " + IDAccount.Value); RadGrid1.DataBind(); } catch (Exception ex) { con.Close(); AlertNotif("Ошибка", ex.Message); } }
protected void RadGrid1_ItemCommand(object sender, Telerik.Web.UI.GridCommandEventArgs e) { string id = e.CommandArgument.ToString(); if (e.CommandName == "Delete") { //if (bllFathertype.GetRecordCount(" GoodsFatherID ='" + id + "' ") != 0 && bllSonType.GetRecordCount(" GoodsFatherID ='" + id + "' ") != 0) //{ // RadAjaxManager1.Alert("删除失败!"); //} //else //{ // bllFathertype.Delete(id); // RadGrid1.Rebind(); //} bllPartUseRecord.Delete(id); //删除 DataLoad(); //绑定数据源方法 RadGrid1.Rebind(); //重绑数据源 } }
private void BindGrid() { DataTable dt = new DataTable(); DBconnection obj = new DBconnection(); obj.SetCommandQry = "SELECT ROW_NUMBER () OVER (ORDER BY event_date desc) AS RowNumber, * FROM [upcoming_events_tbl]"; dt = obj.ExecuteTable(); if (dt.Rows.Count > 0) { lblMsg.Visible = false; RadGrid1.Visible = true; RadGrid1.DataSource = dt; RadGrid1.DataBind(); } else { lblMsg.Visible = true; RadGrid1.Visible = false; } }
protected void RefreshGrid(bool rebind) { //if (uex.Global) //{ // IList<Categoria> categorias = new List<Categoria>(); // foreach (PermisoCategoria pcat in uex.PermisoCategorias) // { // categorias.Add(pcat.Categoria); // } // RadGrid1.DataSource = categorias; //} //else //{ RadGrid1.DataSource = CntLainsaSci.GetCategorias(ctx); //} if (rebind) { RadGrid1.Rebind(); } }
protected void Page_Load(object sender, EventArgs e) { txtAncho.Attributes.Add("onkeypress", "return solonumeros(event);"); txtLargo.Attributes.Add("onkeypress", "return solonumeros(event);"); txtPliegos.Attributes.Add("onkeypress", "return solonumeros(event);"); if (!IsPostBack) { string sku = Request.QueryString["sku"]; lblSKU.Text = sku; lblPaperStock.Text = Request.QueryString["Papel"]; lblGramStock.Text = Convert.ToInt32(Convert.ToDouble(Request.QueryString["Gramaje"])).ToString(); lblAnchStock.Text = Convert.ToInt32(Convert.ToDouble(Request.QueryString["Ancho"])).ToString(); RadGrid1.DataSource = d.ListaStockDisponibleDetalle(sku, "", 0, 0, "", "", 1); RadGrid1.DataBind(); bool r = d.EliminaPendientes(Session["Usuario"].ToString(), 0); //eliminar registros pendientes lblSKUStock.Text = sku; } }
private void BindGrid() { DistrictClub dc = new DistrictClub(); DataTable dt = new DataTable(); dt = dc.GetAllClubs(); if (dt.Rows.Count > 0) { lblMsg.Visible = false; RadGrid1.Visible = true; RadGrid1.DataSourceID = string.Empty; RadGrid1.DataSource = dt; RadGrid1.Rebind(); } else { lblMsg.Visible = true; RadGrid1.Visible = false; } }
protected void DrawGridList() { try { if (ViewState["Action"].ToString().Equals("null")) { return; } if (ViewState["Action"].ToString().Equals("org")) { RadGrid1.DataSource = Data.eesAssociatedwithORGCode(txtOrg.Text); } else { RadGrid1.DataSource = Data.eesAssociatedwithAdmin(ddlAdmin.SelectedValue); } RadGrid1.DataBind(); } catch { } }
}//40.76487640472525,-73.97274971008301 protected void btnFiltro_Click1(object sender, EventArgs e) { if (txtOT.Text.Trim() != "") { InformeProduccion_Controller controlpro = new InformeProduccion_Controller(); string Maquina = ddlMaquina.SelectedItem.Text.ToString().Replace("Seleccione...", ""); RadGrid1.DataSource = controlpro.Listar_TeoricoRealComparativoPro(txtOT.Text, "", "", "", 2);//1 RadGrid1.DataBind(); } else { InformeProduccion_Controller controlpro = new InformeProduccion_Controller(); string[] splt = txtFechaInicio.Text.Split('/'); string Sector = ddlSeccion.SelectedValue.ToString().Replace("Todas", ""); DateTime fechaAsignada = Convert.ToDateTime(splt[2] + "-" + splt[1] + "-" + splt[0] + " 23:59:59"); string Maquina = ddlMaquina.SelectedValue.ToString().Replace("Seleccione...", ""); RadGrid1.DataSource = controlpro.Listar_TeoricoRealComparativoPro(Maquina, Sector, fechaAsignada.ToString("yyyy-MM-dd 00:00:00"), fechaAsignada.ToString("yyyy-MM-dd HH:mm:ss"), 3); RadGrid1.DataBind(); } }