示例#1
0
        protected void Page_Init(object sender, EventArgs e)
        {
            if (Request["Action"] == null)
            {
                if (Request["Acc"] == null || Request["Svc"] == null || !ThirdParameterIsValid())
                    Response.Redirect("Default.aspx");

                IsAll = Convert.ToBoolean(Request["IsAll"]);
                Svc = Request["Svc"];
                F = new Filters();
                SelectFilters();
                Path = new StringBuilder();
                C = new OrdersController();
                Ords = C.GetOrders(F);
                Path.AppendFormat("{0} > {1} > {2}", F.SelectedWorkShop.Name, F.SelectedAccess.Name, GetSelectedAccessOption());

                if (Ords.TotalOrders == 0)
                {
                    Response.Redirect("Default.aspx?NoDataFound=True");
                }
            }
        }
示例#2
0
 public Orders GetOrders(Filters filters)
 {
     return new OrdersData().GetOrders(filters);
 }
 public static int GetTotalOrders(Filters filters)
 {
     return new ActiveOrdersData().GetTotalOrders(filters);
 }
 public static SummaryOrders GetSummaryOrders(bool first, Filters filters)
 {
     return new ActiveOrdersData().GetSummaryPage(first, filters);
 }
 public static ActiveOrders GetActiveOrdersPage(int pagenumber, int pagination, Filters filters)
 {
     return new ActiveOrdersData().GetOrdersPage(pagenumber, pagination, filters);
 }
示例#6
0
 public FiltersController()
 {
     F = new Filters();
 }
示例#7
0
        protected void Page_Init(object seder, EventArgs e)
        {
            if (Request["Acc"] == null || Request["Svc"] == null || !ThirdParameterIsValid())
               Response.Redirect("Default.aspx");

            Pagination = Int32.Parse(ConfigurationManager.AppSettings["Pagination"]);
            IsAll = Convert.ToBoolean(Request["IsAll"]);
            Svc = Request["Svc"];
            AsessorsHtml = new StringBuilder();
            AsesorsHeadersHtml = new StringBuilder();
            OrderTypeHeadersHtml = new StringBuilder();
            Path = new StringBuilder();
            F = new Filters();
            SelectFilters();
            CurrentPage = 0;
            IsFirstSummary = true;
            GetHtmlAssesors();
            GetAsesorsHeaders();
            GetOrdersHeaders();
            AmountAsssors =  F.Assesors.FindAll(Asr => Asr.WorkShop == 1).Count;
            Path.AppendFormat("{0} > {1} > {2}", F.SelectedWorkShop.Name, F.SelectedAccess.Name, GetSelectedAccessOption());

            if (ActiveOrdersController.GetTotalOrders(F) == 0)
            {
                Response.Redirect("Default.aspx?NoDataFound=True");
            }
        }