Esempio n. 1
0
    /// <summary>
    /// Load Space Info Function
    /// </summary>
    /// <param name="spaceid"></param>

    public void LoadSpaces(int pageNo, int spaceid)
    {
        try
        {
            int pageSize = 5;
            gvLane.PageSize = pageSize;
            CurrentPageR2   = pageNo;
            int count = 0;
            gvLane.DataSource = LotSpace.getLane(pageNo, pageSize, out count, spaceid);
            gvLane.DataBind();
            this.TotalItemsR2 = count;
            this.pgrSpaces.DrawPager(pageNo, this.TotalItemsR2, pageSize, MaxPagesToShow);
        }
        catch (Exception ex)
        {
            new SqlLog().InsertSqlLog(0, "AddLot.aspx loadLaneText", ex);
        }
    }
Esempio n. 2
0
 public void loadLaneText(int spaceid)
 {
     try
     {
         int count = 0;
         hdnrowIds.Value   = spaceid.ToString();
         pnlLane.Visible   = true;
         gvLane.DataSource = LotSpace.getLane(1, 0, out count, spaceid);
         gvLane.DataBind();
     }
     catch (Exception ex)
     {
         new SqlLog().InsertSqlLog(0, "Facility/Controls/LotSpace.ascx.cs loadLaneText", ex);
     }
     //if (gvLane.Rows.Count == 0)
     //{
     //    PanelLaneValue.Visible = true;
     //}
     //else
     //{
     //    PanelLaneValue.Visible = false;
     //}
 }