the Internet Windows Android

The structure of the program module in 1C consists of. Common modules

The module is intended for integration with solutions containing the configuration "ERP Enterprise Management 2". Indispensable for design and oriented enterprises and organizations!

Functionality Systems:
  • Project management
  • Planning the content and timing of the project
  • Planning volume and project shipments
  • Planning subcontracts and material costs of the project
  • Personnel planning and project work
  • Manage download and working time for projects
  • Registration of actual data and project events
  • Financial management projects
  • Description of design work
  • Project Versionation
  • Plan-Fact Project Analysis
  • Project Communication Management
  • Knowledge management
  • Project assessment and calculation of the contract price
  • Management of project contracts
  • Document management project
  • Project risk management
  • Management of portfolio and project programs
  • Project Management Resource Management

Project data can be entered into a system in several ways:

  1. manually through the Project Management Panel;
  2. load / unload data from / to MS Project;
  3. download data from the template stored in the system;
  4. combined way: part manually, part of MS Project.

You can plan work in different ways:

  • so that the project manager ruled the project plan, and the functional is to perform work. Labor resources are distributed taking into account the roles performed;
  • the project manager manages the project plan and work. Labor resources are appointed without roles.

The visual system toolkit allows the manager to receive information about the project in different views: tabular, data tree, Ganta diagrams, design milestone, network schedule. The system allows you to assign the head of a specific design task, and automatically its subtasks other than the project manager as a whole.

The decision is intended for the owners of commercial real estate, managers, construction and development organizations. The product allows you to improve the efficiency of the business of companies through the automation of processes for maintaining the registering of real estate objects, the management of lease agreements and calculations with tenants, the operation of real estate facilities. The program ensures the solution of the tasks of accounting, managerial, legal and administrative accounting.

Solutions:
  • maintaining settlements with tenants based on invoices (planned debt), monitoring billing accounts with analytics on facilities, services and periods;
  • separate purpose and control of payment timing for a constant and variable part of the rent;
  • the possibility of calculating the penny for the delay in payment on the basis of both the actual (by acts) and the planned (on accounts) of the debt;
  • the use of arbitrary formulas for calculating the cost of the services of the variable part (for example, the accrual of interest from the trading turnover of the tenant in various algorithms);
  • the use of several consumption volume counters for one unit of the variable part;
  • the possibility of appointing both individual and uniform tariffs for the services of the variable part;
  • management of real estate inspections;
  • opportunity sharing With preparing for the release of solutions "ERP Management of the Construction Organization 2.0" and "Module 1C: Realtor. Real estate sales management for 1C: ERP" within a single configuration.
Solution Opportunities "Module 1C: Motive Transportation for 1C: ERP & RAQUO:
  • Accounting of orders for vehicles;
  • Extract and processing of travel sheets;
  • Calculation of the regulatory and actual fuel consumption. All algorithms for calculating the regulatory fuel consumption are implemented in accordance with the order of the Ministry of Transport dated July 142015 N on-80-p. The solution allows you to record fuel consumption for cars with an unlimited number of equipment and trailers.
  • Accounting for the receipt, consumption and write-off fuel;
  • Accounting of license tires and batteries;
  • Integration with satellite monitoring systems.
  • Calculation of development in travel sheets in various parameters. The main parameters (mileage, weight of cargo, cargo turnover, time in the dress, simple, etc.) are predetermined in the system. Using directories, you can configure any arbitrary generation parameters and to further analyze this information;

Today we will deal with the common modules what it is why they are needed and how to use them. IN common module You can make functions that are used in several documents. For example, the calculation of the amount in the tabular part of the document.

For example, we take our old configuration that I used in previous articles. We have two documents in it. This is the arrival of the goods to the warehouse and the holidays of the goods on the warehouse. In both documents there are procedures that calculate the amount in the table part line.

Each document is written the same code for calculating the amount.

Material procedure (element)
Strfewarbly \u003d elements. Materials. Typed;
Strfotypes. Summum \u003d strfewarbly. Number * strfotypes. Price;
Extrudresses

Today we will transfer it to a common module, and we will call it from the document.

Create a common module for calculating the amount

And so start to start you need to create a common module. To do this, we go into the configurator are looking for a general modules with the right button with the right button and add new we write the name of the workshops. Enter into it the following code.

Also, install the checkmark in front of the client (managed application) and the server in the properties window.

Now you need to change the code slightly in the document form module. On the left in the configuration, we are looking for a document. The arrival of the goods turns the windows to the form by clicking the form by clicking twice the form of the document and in the form window that opens, go to the module tab. We have such a code.

This procedure works when changing the number in the table part of the document, the arrival of the goods and counts the amount.

& Svalette



Extrudresses

And this procedure begins to work when the price is changed in the tabular part of the document, the arrival of the goods and calculates the amount.

& Svalette

Strfewarbly \u003d elements. Materials. Typed;
Strfotypes. Summum \u003d strfewarbly. Number * strfotypes. Price;
Extrudresses

We replace it with this

& Svalette
Procedure of MaterialColy Description (Element)
Strfewarbly \u003d elements. Materials. Typed;

Extrudresses
& Svalette
Material procedure (element)
Strfewarbly \u003d elements. Materials. Typed;
Workshops. Discussummum (strfewar);
Extrudresses

As you notice, it changes only one line at first glance it may seem that one line was replaced with another. But do not forget that this is an example. In fact, the number of code can be much more if you, for example, made calculations for the complex formula in this case, the code is noticeably reduced.

We are also doing the vacation of goods from the warehouse for the document, we launch and check the efficiency of the code. Here we are with you and made the first general module I hope to someone use my article.

Any program consists of a program code, that is, actually written in any language of the sequence of actions that must be completed.

However, this program must be somewhere written, that is, somewhere to be. In most cases, the program code is written in ordinary text files. The only difference is that the expansion of them is not.txt, A.CPP or.PHP.

Where is the 1C program writes?

What is 1C module?

Of course, 1C code could also be written in some text file. However, there is a Configuration Configuration 1C - which includes not only the list of settings, form templates, etc., but also 1C software code. Therefore, 1c code is stored in the configuration.

The configuration consists of 1C objects, as we have already considered in previous lessons. Each 1C object contains invested objects, such as the directory has several forms.

Each object 1C, including some nested, has its own module - a certain text file that contains the program code.

Also, there are independent modules from objects in which a program code that is independent of a particular object can be written.

Thus, in 1C there is no "unified" program. There is a set of modules for writing a program code for each 1c configuration object.

How are 1C modules used?

The entire program can be roughly divided into two types:

  • Object method
  • Reaction to events.

Methods. As we have already spoken earlier - the 1C object is a one-piece structure, which includes both data and methods for processing. These ways are a set of actions (methods) that can be called for data processing. An example of such actions Directory object. Record () - writes an element of the reference to the database.

Methods of many objects 1C can be standard (i.e., programmed in 1c platform) and written by a programmer in 1C. Using the second - you can expand the functionality of 1C objects at your own desire.

Events. Events are in many other means of development. The goal of the program is not only something to calculate when starting, but also support the user.

User events - user pressed a button. In response, some part of the code will be completed by following the response to the user actions.

System Events - We recorded the 1C object to the database. There was a system event "Recording Object". It is possible to configure the reaction that will arise on events caused by the user (which pressed the button or did something else), but the system itself. A vivid example of such an event - when starting the program.

The procedure for performing modules 1c

In many languages \u200b\u200bthere is such a concept as a "entry point". This is the very first line or function that will be performed when the program is started.

In 1C of such input points somewhat - for each type of client. That is, when you start a thick client, the entry point is one, when starting thin client - Other. This allows you to program features, different in different types of customers.

The entry point in the corresponding module is the system event handlers in front of the protrusion () and the receivers (), respectively (i.e. in order). These functions are performed first, they can run something automatically.

If nothing has been running automatically, then the user opens 1c interface and then it all depends on it. It presses the button - the handler is executed by pressing this button (which in turn can also run something automatically).

Working with 1C modules

Performed in the configurator. You can open the module using the Configuration window.

The structure of the software module can be divided into the following sections:

  • section of variable definitions;
  • section of procedures and functions;
  • section of the main program.

In a specific software module, any of the sections may be absent.

Section of variables It is placed from the beginning of the text of the module to the first operator procedure or operator function or any executable operator. In this section, there can be only CC camera statements.

Section procedures and functions It is placed from the first operator procedure or operator function to any executable operator outside the body description of procedures or functions.

Section of the main program It is located on the first executable operator outside the body procedures or functions until the end of the module. This section may contain only executable operators. The main program section is executed at the time of starting the module for execution (see "Software Modules"). Usually, in the main program section, it makes sense to place the initialization operators of variables by any specific values \u200b\u200bthat need to be carried out before the first call of any of the procedures or functions of the module.

Special characters used in the source text

// Two signs "oblique traits" comment begins. The comment is considered all the text from the sign "//" until the end of the current line.
| The vertical feature at the beginning of the line is used only in string constants and means that this line It is a continuation of the previous one (row transfer), (see "String Constants").
~ Tilda sign begins the operator label.
: The colon ends the operator label.
; A semicolon is a symbol of separation of operators.
() Round brackets are a list of method parameters, procedures and functions.
Square brackets are the dimension of arrays.
, The comma shares the parameters in the list of methods, procedures and functions.
" " IN double quotes String constants are concluded.
" " Date constants consist in single quotes.
. Decimal point in numerical constants. The separator used in the descriptions of aggregate data types.
+ The "plus" symbol denotes the operation of addition.
The "minus" symbol denotes the subtraction operation.
* The "asterisk" symbol denotes the operation of multiplication.
/ The symbol "oblique feature" denotes the operation of the division.
> The right angular bracket denotes the logical operation "More".
>= Logical operation "greater than or equal."
< The left corner bracket denotes the "less" logical operation.
<= The logical operation "less or equal".
= The equal sign indicates the assignment or logical operation "equal".
<> Two angular brackets indicate the logical operation "not equal."

1c platform modules: Enterprise 8.3, 8.2

Common modules

Functions that are declared with the "Export" flag in such a module can be called from any configuration places. The challenge is done through the names of the value. Mixifunctions ().

In such modules there is no section of variables.

The execution of general modules depends on the settings set in their properties:

Flag "Global"

If this flag is installed, the context of this module becomes global. That is, when accessing its export functions, you do not need to specify the name of the module. But the names of its export functions should be unique within the global configuration context.

Flag "Server"

The functions of this module can be performed on the server.

Flag "Client (Normal Appendix)"

The functions of this module can be performed on the client in a normal application mode.

Flag "Client (managed application)"

The functions of this module can be performed on the client in the managed application mode.

Flag "Server Call"

The flag is available for modules with the "Server" flag. Allows the call on the export functions of this module on the client (which will be performed on the server).

Flag "External Union"

Export functions of such a module can be called when connected from an external source.

Flag "Privileged"

In the module with such a flag, the validation will be turned off. Suitable for improving performance or administration actions.

Parameter "Reuse"

If you enable this parameter, the returned values \u200b\u200bof the export functions will be cached immediately after the first call. Caching is possible for a call time (time execution of a specific procedure) or for a user session.

Application module

Designed for processing startup events and completing the application. There are two types: for regular and managed applications.

Do not overload it, as it affects the startup time of the application.

Session module

A special module that is used to initialize the session parameters. Need to not duplicate the code in various application modules.

It should be used carefully, since the module can be executed several times, as well as run without further startup. Performs to application modules.

Regards, (teacher and developer).