Exemple #1
0
        public MarketingClientsForm(LightStartForm tLightStartForm)
        {
            InitializeComponent();
            LightStartForm = tLightStartForm;

            this.MaximumSize = Screen.PrimaryScreen.WorkingArea.Size;

            Initialize();

            Clients.GetPermissions(Security.CurrentUserID, this.Name);
            if (Clients.PermissionGranted(iAdmin))
            {
                btnDeleteClient.Visible = true;
                bPriceGroup             = true;
            }
            if (Clients.PermissionGranted(iMarket))
            {
            }
            if (Clients.PermissionGranted(iDirector))
            {
                btnDeleteClient.Visible = true;
                bPriceGroup             = true;
            }
            if (!Clients.PermissionGranted(iAdmin) && !Clients.PermissionGranted(iMarket) && !Clients.PermissionGranted(iDirector))
            {
                ClientsClientAreaPanel.Height = this.Height - NavigatePanel.Height - 10;
                ToolsPanel.Visible            = false;
            }

            while (!SplashForm.bCreated)
            {
                ;
            }
        }
Exemple #2
0
        //bool bNeedNewsSplash = false;

        //bool bNewProjectsSelected = false;
        //bool bNewMessagesSelected = false;

        public FilesForm(LightStartForm tLightStartForm)
        {
            InitializeComponent();

            LightStartForm = tLightStartForm;

            this.MaximumSize = Screen.PrimaryScreen.WorkingArea.Size;

            Initialize();

            InfiniumDocumentsMenu.ItemsDataTable = InfiniumFiles.CategoriesDataTable;
            InfiniumDocumentsMenu.InitializeItems();

            InfiniumDocumentsMenu.Selected = 0;
            InfiniumDocumentsMenu_ItemClicked(this, 2, "Общие файлы");

            ProjectsForm_ANSUpdate(this);

            ActiveNotifySystem.ClearSubscribesRecords(Security.CurrentUserID, this.Name);


            while (!SplashForm.bCreated)
            {
                ;
            }
        }
Exemple #3
0
        public MarketingOrdersForm(LightStartForm tLightStartForm)
        {
            InitializeComponent();
            LightStartForm = tLightStartForm;


            this.MaximumSize = Screen.PrimaryScreen.WorkingArea.Size;

            Initialize();

            RolePermissionsDataTable = OrdersManager.GetPermissions(Security.CurrentUserID, this.Name);

            if (!PermissionGranted(iMarketing) && !PermissionGranted(iAdmin))
            {
                tableLayoutPanel1.Height = this.Height - NavigatePanel.Height - 10;
                ToolsPanel.Visible       = false;
            }
            if (PermissionGranted(iMarketing))
            {
                RoleType = RoleTypes.Marketing;
            }
            if (PermissionGranted(iAdmin))
            {
                RoleType = RoleTypes.Admin;
            }

            while (!SplashForm.bCreated)
            {
                ;
            }
        }
        public AdminClientsJournalDetailForm(LightStartForm tLightStartForm)
        {
            InitializeComponent();

            LightStartForm = tLightStartForm;


            this.MaximumSize = Screen.PrimaryScreen.WorkingArea.Size;

            Initialize();

            OnTopBitmap = new Bitmap(Properties.Resources.OnTop);

            OnlinerTimer_Tick(null, null);

            PaymentsClientsDataGrid.DataSource = AdminClientsJournalDetail.ClientsNameDT;
            PaymentsClientsDataGrid.Columns["ClientID"].Visible = false;

            PaymentsGrid.DataSource = AdminClientsJournalDetail.PaymentsDataTable;

            while (!SplashForm.bCreated)
            {
                ;
            }
        }
        public SamplesOrdersForm(LightStartForm tLightStartForm)
        {
            InitializeComponent();
            LightStartForm = tLightStartForm;


            this.MaximumSize = Screen.PrimaryScreen.WorkingArea.Size;

            Initialize();

            RolePermissionsDataTable = OrdersManager.GetPermissions(Security.CurrentUserID, this.Name);

            //if (!PermissionGranted(iMarketing) && !PermissionGranted(iDirector) && !PermissionGranted(iAdmin))
            //{
            //    tableLayoutPanel1.Height = this.Height - NavigatePanel.Height - 10;
            //}
            //if (PermissionGranted(iMarketing))
            //{
            //    RoleType = RoleTypes.Marketing;
            //}
            //if (PermissionGranted(iAdmin))
            //{
            //    RoleType = RoleTypes.Admin;
            //}
            //if (PermissionGranted(iDirector))
            //{
            //    RoleType = RoleTypes.Director;
            //}

            while (!SplashForm.bCreated)
            {
            }
        }
        public ClientPaymentsForm(LightStartForm tLightStartForm)
        {
            TableCurrency = new DataTable();
            TableClients  = new DataTable();
            TableContract = new DataTable();
            TableFactory  = new DataTable();

            InitializeComponent();
            ClientPayments = new ClientPayments();
            LightStartForm = tLightStartForm;


            this.MaximumSize = Screen.PrimaryScreen.WorkingArea.Size;
            CreateAttachments();
            Initialize();

            nfi1 = new System.Globalization.NumberFormatInfo()
            {
                NumberGroupSeparator   = " ",
                NumberDecimalDigits    = 2,
                NumberDecimalSeparator = ","
            };
            while (!SplashForm.bCreated)
            {
                ;
            }
        }
        public ZOVMessagesForm(LightStartForm tLightStartForm)
        {
            InitializeComponent();

            LightStartForm = tLightStartForm;

            this.MaximumSize = Screen.PrimaryScreen.WorkingArea.Size;


            Initialize();

            messagesContainer1.CurrentUserName   = Security.GetUserNameByID(Security.CurrentUserID);
            messagesContainer1.MessagesDataTable = ZOVMessages.MessagesDataTable;

            UsersListDataGrid.DataSource = ZOVMessages.ManagersBindingSource;
            UsersListDataGrid.Columns["ManagerID"].Visible = false;
            //UsersListDataGrid.Columns["ClientID"].Visible = false;

            //SelectedUsersGrid.Columns["ClientID"].Visible = false;
            SelectedUsersGrid.Columns["ManagerID"].Visible    = false;
            SelectedUsersGrid.Columns["UpdatesCount"].Visible = false;

            GetNewMessages();

            OnlineTimer_Tick(null, null);

            kryptonCheckSet1_CheckedButtonChanged(null, null);

            while (!SplashForm.bCreated)
            {
                ;
            }
        }
Exemple #8
0
        public LightNewsForm(LightStartForm tLightStartForm)
        {
            InitializeComponent();

            LightStartForm = tLightStartForm;

            this.MaximumSize = Screen.PrimaryScreen.WorkingArea.Size;

            LightNews = new Infinium.LightNews();

            //ActiveNotifySystem.ClearSubscribesRecords(Security.CurrentUserID, this.Name);

            Initialize();



            //LightNewsContainer.PageChanged(null);

            ActiveNotifySystem.ClearSubscribesRecords(Security.CurrentUserID, this.Name);

            //OnANSUpdate();



            while (!SplashForm.bCreated)
            {
                ;
            }
        }
Exemple #9
0
        public AdminModulesForm(LightStartForm tLightStartForm)
        {
            InitializeComponent();

            LightStartForm = tLightStartForm;

            this.MaximumSize = Screen.PrimaryScreen.WorkingArea.Size;

            Initialize();

            while (!SplashForm.bCreated) ;
        }
Exemple #10
0
        //RoleTypes RoleType = RoleTypes.OrdinaryRole;
        //public enum RoleTypes
        //{
        //    OrdinaryRole = 0,
        //    AdminRole = 1,
        //    LogisticsRole = 2
        //}

        public UserProfilesForm(LightStartForm tLightStartForm)
        {
            InitializeComponent();



            this.MaximumSize = Screen.PrimaryScreen.WorkingArea.Size;

            UserProfile    = new Infinium.UserProfile();
            LightStartForm = tLightStartForm;


            UserComboBox.DataSource    = UserProfile.UsersBindingSource;
            UserComboBox.DisplayMember = "Name";
            UserComboBox.ValueMember   = "UserID";

            Initialize();

            SaveContactsButton.Enabled = false;
            SavePersonalButton.Enabled = false;
            btnSaveUsers.Enabled       = false;
            btnAddUser.Enabled         = false;

            UserProfile.GetPermissions(Security.CurrentUserID, this.Name);
            if (UserProfile.PermissionGranted(iAdminRole))
            {
                SaveContactsButton.Enabled = true;
                SavePersonalButton.Enabled = true;
                btnSaveUsers.Enabled       = true;
                btnAddUser.Enabled         = true;
                //RoleType = RoleTypes.AdminRole;
            }
            if (UserProfile.PermissionGranted(iEditUsers))
            {
                SaveContactsButton.Enabled = true;
                SavePersonalButton.Enabled = true;
                btnSaveUsers.Enabled       = true;
                btnAddUser.Enabled         = true;
                //RoleType = RoleTypes.LogisticsRole;
            }

            TabNameLabel.Text = MainSelectPanelCheckSet.CheckedButton.Text;

            UserComboBox_SelectionChangeCommitted(null, null);

            UserComboBox_SelectionChangeCommitted(null, null);

            while (!SplashForm.bCreated)
            {
                ;
            }
        }
Exemple #11
0
        public DoubleOrdersStatisticsForm(LightStartForm tLightStartForm)
        {
            InitializeComponent();

            LightStartForm = tLightStartForm;

            this.MaximumSize = Screen.PrimaryScreen.WorkingArea.Size;

            while (!SplashForm.bCreated)
            {
                ;
            }
        }
        public MachinesPermitsForm(LightStartForm tLightStartForm)
        {
            InitializeComponent();
            LightStartForm = tLightStartForm;

            this.MaximumSize = Screen.PrimaryScreen.WorkingArea.Size;

            Initialize();
            while (!SplashForm.bCreated)
            {
                ;
            }
        }
        public AccessDeniedForm(LightStartForm tLightStartForm)
        {
            InitializeComponent();

            LightStartForm = tLightStartForm;

            this.MaximumSize = Screen.PrimaryScreen.WorkingArea.Size;

            while (!SplashForm.bCreated)
            {
                ;
            }
        }
        public CatalogZOVPriceForm(LightStartForm tLightStartForm)
        {
            InitializeComponent();
            LightStartForm   = tLightStartForm;
            this.MaximumSize = Screen.PrimaryScreen.WorkingArea.Size;

            Initialize();

            while (!SplashForm.bCreated)
            {
                ;
            }
        }
Exemple #15
0
        public PalleteLabelCheckForm(LightStartForm tLightStartForm)
        {
            InitializeComponent();

            LightStartForm = tLightStartForm;

            this.MaximumSize = Screen.PrimaryScreen.WorkingArea.Size;

            while (!SplashForm.bCreated)
            {
                ;
            }
        }
Exemple #16
0
        public IncomeMonthMarketingForm(LightStartForm tLightStartForm)
        {
            InitializeComponent();
            LightStartForm = tLightStartForm;

            this.MaximumSize = Screen.PrimaryScreen.WorkingArea.Size;

            Initialize();
            while (!SplashForm.bCreated)
            {
                ;
            }
        }
Exemple #17
0
        public ZOVPackagesPrintProfilForm(LightStartForm tLightStartForm)
        {
            InitializeComponent();
            LightStartForm = tLightStartForm;


            this.MaximumSize = Screen.PrimaryScreen.WorkingArea.Size;

            Initialize();
            while (!SplashForm.bCreated)
            {
                ;
            }
        }
Exemple #18
0
        public ScaningDyeingAssignmentsForm(LightStartForm tLightStartForm)
        {
            InitializeComponent();
            LightStartForm = tLightStartForm;

            this.MaximumSize = Screen.PrimaryScreen.WorkingArea.Size;

            Initialize();

            while (!SplashForm.bCreated)
            {
                ;
            }
        }
Exemple #19
0
        public SellerForm(LightStartForm tLightStartForm)
        {
            InitializeComponent();
            LightStartForm = tLightStartForm;


            this.MaximumSize         = Screen.PrimaryScreen.WorkingArea.Size;
            RolePermissionsDataTable = RolesAndPermissionsManager.GetPermissions(Security.CurrentUserID, this.Name);
            Initialize();
            while (!SplashForm.bCreated)
            {
                ;
            }
        }
        public MarketingDiscountManagementForm(LightStartForm tLightStartForm)
        {
            InitializeComponent();

            LightStartForm = tLightStartForm;


            this.MaximumSize = Screen.PrimaryScreen.WorkingArea.Size;


            while (!SplashForm.bCreated)
            {
                ;
            }
        }
        public StoreLabelsPrintForm(LightStartForm tLightStartForm)
        {
            InitializeComponent();

            this.MaximumSize = Screen.PrimaryScreen.WorkingArea.Size;

            LightStartForm = tLightStartForm;

            Initialize();

            while (!SplashForm.bCreated)
            {
                ;
            }
        }
        public ControlResponsibilitiesForm(LightStartForm tLightStartForm)
        {
            InitializeComponent();

            LightStartForm = tLightStartForm;

            this.MaximumSize = Screen.PrimaryScreen.WorkingArea.Size;

            Initialize();

            while (!SplashForm.bCreated)
            {
                ;
            }
        }
Exemple #23
0
        public ReportCalculationsForm(LightStartForm tLightStartForm)
        {
            InitializeComponent();

            LightStartForm = tLightStartForm;

            this.MaximumSize = Screen.PrimaryScreen.WorkingArea.Size;

            Initialize();

            while (!SplashForm.bCreated)
            {
                ;
            }
        }
Exemple #24
0
        public ClientErrorsWriteOffsForm(LightStartForm tLightStartForm)
        {
            InitializeComponent();

            LightStartForm = tLightStartForm;

            this.MaximumSize = Screen.PrimaryScreen.WorkingArea.Size;

            Initialize();

            while (!SplashForm.bCreated)
            {
                ;
            }
        }
        public MarketingExpeditionStatisticsForm(LightStartForm tLightStartForm)
        {
            InitializeComponent();

            LightStartForm = tLightStartForm;

            this.MaximumSize = Screen.PrimaryScreen.WorkingArea.Size;

            Initialize();

            while (!SplashForm.bCreated)
            {
                ;
            }
        }
        public FunctionsManagementForm(LightStartForm tLightStartForm)
        {
            InitializeComponent();

            LightStartForm = tLightStartForm;


            this.MaximumSize = Screen.PrimaryScreen.WorkingArea.Size;

            AdminFunctionsEdit = new AdminFunctionsEdit();

            while (!SplashForm.bCreated)
            {
                ;
            }
        }
Exemple #27
0
        public PatinaEditForm(LightStartForm tLightStartForm)
        {
            InitializeComponent();

            LightStartForm = tLightStartForm;


            this.MaximumSize = Screen.PrimaryScreen.WorkingArea.Size;

            PManager = new PatinaManager();

            while (!SplashForm.bCreated)
            {
                ;
            }
        }
        public DateRatesEditForm(LightStartForm tLightStartForm)
        {
            InitializeComponent();

            LightStartForm = tLightStartForm;


            this.MaximumSize = Screen.PrimaryScreen.WorkingArea.Size;

            DateRatesEdit = new DateRatesEdit();

            while (!SplashForm.bCreated)
            {
                ;
            }
        }
        public ClientStatisticsZOVSelectDateForm(LightStartForm tLightStartForm)
        {
            InitializeComponent();

            LightStartForm = tLightStartForm;


            this.MaximumSize = Screen.PrimaryScreen.WorkingArea.Size;

            Initialize();

            while (!SplashForm.bCreated)
            {
                ;
            }
        }
Exemple #30
0
        public UsersResponsibilitiesForm(LightStartForm tLightStartForm)
        {
            InitializeComponent();

            LightStartForm = tLightStartForm;


            this.MaximumSize = Screen.PrimaryScreen.WorkingArea.Size;

            AdminFunctionsEdit    = new AdminFunctionsEdit();
            UsersResponsibilities = new UsersResponsibilities();

            while (!SplashForm.bCreated)
            {
                ;
            }
        }