private void BindNotificationDetailsData() { Pager pg = gvpDetails.Pager; gvDetails.DataSource = StocktakeDetails.FindAllByPage(pg, string.Empty); gvDetails.DataBind(); gvpDetails.SetPager(pg); }
public void AddDetailsTest1() { StocktakeDetailBLL target = new StocktakeDetailBLL(); // TODO: Initialize to an appropriate value StocktakeDetails details = null; // TODO: Initialize to an appropriate value target.AddDetails(details); Assert.Inconclusive("A method that does not return a value cannot be verified."); }
public void QueryDetailsTest() { StocktakeDetailBLL target = new StocktakeDetailBLL(); // TODO: Initialize to an appropriate value StocktakeDetails details = null; // TODO: Initialize to an appropriate value Nullable <DateTime> dateStart = new Nullable <DateTime>(); // TODO: Initialize to an appropriate value Nullable <DateTime> dateEnd = new Nullable <DateTime>(); // TODO: Initialize to an appropriate value List <StocktakeDetails> expected = null; // TODO: Initialize to an appropriate value List <StocktakeDetails> actual; actual = target.QueryDetails(details, dateStart, dateEnd); Assert.AreEqual(expected, actual); Assert.Inconclusive("Verify the correctness of this test method."); }
public StocktakeRequest ConvertToRequest() { StocktakeRequest request = new StocktakeRequest() { IsStatic = this.IsStatic, RequestBy = new User { UserID = this.RequestBy.Value }, Plant = new Plant { PlantID = PlantID.Value } }; if (RequestID != null) { request.RequestID = RequestID.Value; } request.StocktakeDetails = new System.Data.Objects.DataClasses.EntityCollection <StocktakeDetails>(); foreach (NewStocktakeDetails item in this.Details) { StocktakeDetails details = new StocktakeDetails() { Part = new Part { PartID = int.Parse(item.PartID) }, StocktakeType = new StocktakeType { TypeID = item.StocktakeTypeID }, StocktakePriority = new StocktakePriority { PriorityID = item.StocktakePriority }, Description = item.Description, PreDynamicNoticeCode = item.PreDynamicNoticeCode, PreDynamicNotiTime = item.PreDynamicNotiTime, PreStaticNoticeCode = item.PreStaticNoticeCode, PreStaticNotiTime = item.PreStaticNotiTime }; request.StocktakeDetails.Add(details); } return(request); }