protected void showAllItems() { gvItemList.DataSource = RequisitionControl.getList(id); //GridView1.DataSource = q.ToList(); gvItemList.DataBind(); gvItemListView.DataSource = RequisitionControl.getList(id); //GridView2.DataSource = q.ToList(); gvItemListView.DataBind(); }
public List <WCFRequisition_ItemList> getList(string id) { List <WCFRequisition_ItemList> iList = new List <WCFRequisition_ItemList>(); List <Requisition_ItemList> item = RequisitionControl.getList(Int32.Parse(id)); foreach (Requisition_ItemList i in item) { iList.Add(WCFRequisition_ItemList.Make(i.Description, i.RequestedQty, i.UnitOfMeasure, i.Status)); } return(iList); }
protected void showAllItems() { gvRequisitionDetailList.DataSource = RequisitionControl.getList(id); gvRequisitionDetailList.DataBind(); }