public GetOrderMainDataTable ( int restaurantId = null, string type = null ) : |
||
restaurantId | int | |
type | string | |
Результат |
private void BindTableData() { var type = this.hOrderStatus.Value; if (string.IsNullOrEmpty(type)) type = "1"; this.lType.InnerText = GetTypeName(type); if (type == "0") type = null; int? restaurantId = base.ParseInt(this.ddlRestaurant.SelectedValue); if (restaurantId == 0) restaurantId = null; IOrder biz = new OrderBiz(); DataTable dt = (bool)base.CurEmployeeEntity.IS_ADMIN ? biz.GetOrderMainDataTable(restaurantId, type) : biz.GetOrderMainDataTable(base.CurEmployeeEntity.RESTAURANT_ID, type); repeater1.DataSource = GetPagedDataSource(dt.DefaultView); repeater1.DataBind(); }