protected void LB_Redeploy_Click(object sender, EventArgs e) { SearchKey = string.Empty; StartTime = DateTime.MinValue; EndTime = DateTime.MinValue; RGGoodsOrder.Rebind(); }
/// <summary>搜索 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void RGGoodsOrder_ItemCommand(object sender, GridCommandEventArgs e) { if (e.CommandName == "Search") { FilialeId = new Guid(((RadComboBox)e.Item.FindControl("RCB_FilileF")).SelectedValue); WarehouseId = new Guid(((RadComboBox)e.Item.FindControl("RCB_InStockF")).SelectedValue); SearchKey = ((TextBox)e.Item.FindControl("TB_Search")).Text.Trim(); RGGoodsOrder.CurrentPageIndex = 0; RGGoodsOrder.Rebind(); } }
protected void LBSearch_Click(object sender, EventArgs e) { StartTime = R_StartTime.SelectedDate != null ? R_StartTime.SelectedDate.Value : DateTime.MinValue; EndTime = R_EndTime.SelectedDate != null ? R_EndTime.SelectedDate.Value : DateTime.MinValue; SearchKey = TB_Search.Text.Trim(); SearchGoods = string.IsNullOrEmpty(RCB_Goods.SelectedValue) ? Guid.Empty : new Guid(RCB_Goods.SelectedValue); if (SearchGoods != Guid.Empty) { var goodsValue = RCB_Goods.SelectedValue; if (goodsValue != Guid.Empty.ToString()) { SearchGoods = new Guid(goodsValue); } } RGGoodsOrder.Rebind(); }
/// <summary>搜索 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void LB_Search_Click(object sender, EventArgs e) { RGGoodsOrder.CurrentPageIndex = 0; if (string.IsNullOrEmpty(RCB_Goods.SelectedValue) || RCB_Goods.SelectedValue == Guid.Empty.ToString()) { RAM.Alert("请输入待查询的商品!"); return; } if (string.IsNullOrEmpty(RCB_Warehouse.SelectedValue) || RCB_Warehouse.SelectedValue == Guid.Empty.ToString()) { RAM.Alert("请选择待查询的仓库!"); return; } WarehouseId = new Guid(RCB_Warehouse.SelectedValue); if (!string.IsNullOrEmpty(RCB_Filile.SelectedValue) && RCB_Filile.SelectedValue != Guid.Empty.ToString()) { HostingFilialeId = new Guid(RCB_Filile.SelectedValue); } else { HostingFilialeId = Guid.Empty; } RGGoodsOrder.Rebind(); }
protected void LBRefresh_Refresh(object sender, EventArgs e) { RGGoodsOrder.Rebind(); }