public override void Initialize()
 {
     session.Remove("RedirectListItem");
     view.OrganizationalUnits = service.GetOrganizationalUnits();
     view.Employees           = service.GetEmployees(view.OrganizationalUnitId);
     view.RedirectList        = itemList;
 }
Пример #2
0
        void ExecuteItemCommand(object sender, ExecutingCommandEventArgs e)
        {
            switch (e.CommandName)
            {
            case "edytuj":
                view.IsInEditState = true;
                getItemData();
                getDictionaries(true);
                break;

            case "anuluj":
                view.IsInPreviewState = true;
                getItemData();
                break;

            //case "zapisz":
            //  SaveItem();
            //  view.IsInPreviewState = true;
            //  getItemData();
            //  break;
            case "nowyInteresant":
                //	getItemData();
                //	getDictionaries(false);
                view.IsInCustomerInsertState = true;
                break;

            //case "zapiszNowegoInteresanta":
            //  //zapiszNowegoInteresanta();
            //  view.IsInEditState = true;
            //  getItemData();
            //  break;
            //case "listaInteresantow":
            //  view.IsInInsertState = true;
            //  getItemData();
            //  getDictionaries(false);
            //  break;
            case "zapiszZmianyInteresanta":
                //zapis
                view.IsInInsertState = true;
                getItemData();
                //	getDictionaries(false);
                break;

            case "ustawSlownik":
                if (e.CommandArgument.ToString() == "customer")
                {
                    view.Customers = service.GetCustomers(view.CustomerType);
                }
                if (e.CommandArgument.ToString() == "employee")
                {
                    view.Employees = service.GetEmployees(view.OrganizationalUnitId);
                }
                if (e.CommandArgument.ToString() == "documentTypes")
                {
                    view.DocumentTypes = service.GetDocumentTypes(view.DocumentCategory);
                }
                break;
            }
        }
Пример #3
0
 public override void Initialize()
 {
     view.OrganizationalUnits = service.GetOrganizationalUnits();
     view.Employees           = service.GetEmployees(view.OrganizationalUnitId);
 }