CN111368546A - Configurable dynamic drawing uploading method and device in digital examination drawing - Google Patents

Configurable dynamic drawing uploading method and device in digital examination drawing Download PDF

Info

Publication number
CN111368546A
CN111368546A CN202010145987.1A CN202010145987A CN111368546A CN 111368546 A CN111368546 A CN 111368546A CN 202010145987 A CN202010145987 A CN 202010145987A CN 111368546 A CN111368546 A CN 111368546A
Authority
CN
China
Prior art keywords
uploaded
uploading
name
variable
drawings
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010145987.1A
Other languages
Chinese (zh)
Inventor
张成杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Binzhou Construction Engineering Construction Drawing Review Center
Original Assignee
Binzhou Construction Engineering Construction Drawing Review Center
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Binzhou Construction Engineering Construction Drawing Review Center filed Critical Binzhou Construction Engineering Construction Drawing Review Center
Priority to CN202010145987.1A priority Critical patent/CN111368546A/en
Publication of CN111368546A publication Critical patent/CN111368546A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/24Classification techniques
    • G06F18/241Classification techniques relating to the classification model, e.g. parametric or non-parametric approaches
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/10Office automation; Time management

Landscapes

  • Engineering & Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Strategic Management (AREA)
  • Human Resources & Organizations (AREA)
  • Entrepreneurship & Innovation (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Evolutionary Computation (AREA)
  • Evolutionary Biology (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Artificial Intelligence (AREA)
  • General Engineering & Computer Science (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Operations Research (AREA)
  • Quality & Reliability (AREA)
  • Tourism & Hospitality (AREA)
  • General Business, Economics & Management (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention provides a method and a device for uploading configurable dynamic drawings in a digital examination drawing, wherein the method comprises the following steps: acquiring the corresponding relation between the type of the drawing and the drawing uploading rule; acquiring the classification information of a drawing to be uploaded; judging the categories of all the drawings to be uploaded according to the classification information; for any drawing to be uploaded in each category, finding out a drawing uploading rule corresponding to the drawing from the corresponding relation between the drawing belonging category and the drawing uploading rule according to the belonging category of the drawing to be uploaded; and for any drawing to be uploaded, checking whether the drawing to be uploaded meets the uploading standard according to a drawing uploading rule corresponding to the drawing, and if so, allowing the drawing to be uploaded. In the drawing uploading process, different drawing naming modes of different design houses or different drawing naming modes in the same design house correspond to different drawing uploading rules, and the application range of drawing uploading in different naming modes is greatly widened.

Description

Configurable dynamic drawing uploading method and device in digital examination drawing
Technical Field
The disclosure relates to the technical field of computers, in particular to a configurable dynamic drawing uploading method and a configurable dynamic drawing uploading device in a digital examination drawing.
Background
The digital map review is to convert the traditional way of reviewing the paper construction map into reviewing the electronic blueprint, the whole process of reviewing the construction map comprises the processes of drawing, transmitting, storing, reviewing, supervising and the like, and the process is usually carried out on a network. In this process, a series of related problems such as uploading of design drawings are inevitable. How to adapt to various drawing naming modes of a design institute for detection uploading and reduce the defects in the drawing uploading process becomes a technical problem to be solved urgently.
Disclosure of Invention
The present disclosure is directed to solving at least one of the technical problems of the related art or related art.
Therefore, the purpose of the disclosure is to provide a configurable dynamic drawing uploading method in a digital review.
Another object of the present disclosure is to provide a configurable dynamic drawing uploading apparatus in digital review.
In order to achieve the above object, the present disclosure provides a configurable dynamic drawing uploading method in a digital review, including: acquiring the corresponding relation between the type of the drawing and the drawing uploading rule; acquiring the classification information of a drawing to be uploaded; judging the categories of all the drawings to be uploaded according to the classification information; for any drawing to be uploaded in each category, finding out a drawing uploading rule corresponding to the drawing from the corresponding relation between the drawing belonging category and the drawing uploading rule according to the belonging category of the drawing to be uploaded; and for any drawing to be uploaded, checking whether the drawing to be uploaded meets the uploading standard according to a drawing uploading rule corresponding to the drawing, and if so, allowing the drawing to be uploaded.
In at least one embodiment of the present disclosure, the classification information includes at least one time partition point; according to the classification information, judging the categories of all the drawings to be uploaded, including: traversing the time of all the drawings to be uploaded entering the drawing uploading stage, and dividing the classes of the drawings to be uploaded according to the front-back relation between the time of each drawing to be uploaded entering the drawing uploading stage and at least one time division point.
In at least one embodiment of the present disclosure, the drawing uploading rule includes: acquiring a preset separator; dividing the name of each drawing to be uploaded according to a preset separator, wherein the divided names sequentially comprise N section names of a first position and an Nth position of a second position … … from left to right, wherein N is a natural number greater than or equal to 1; for any one of the names of the at least one location, performing the following steps: defining variables corresponding to the names of the positions; detecting whether the variable is in a preset array or not; if not, returning error information.
In at least one embodiment of the present disclosure, after separating the name of each drawing to be uploaded according to a preset separator, the drawing uploading rule further includes: defining the number of segment bits included in the divided name as a variable numNamelengh; detecting whether the variable numNamelengh is equal to a preset value; if not, returning to the 'naming section digits do not accord' and ending.
In at least one embodiment of the present disclosure, in the divided naming, the name of the first location includes the drawing number information; for the name of the first location, the following steps are performed: defining the name of the first position as variable titlefirst; detecting whether a variable titlefirst is a number by applying an isNaN method in a jquery library; if not, returning the information that the figure number is not a number and the confirmation is requested to the corresponding client, and ending.
In at least one embodiment of the present disclosure, in the divided naming, the name of the pth location includes professional name information; wherein P is more than 1 and less than or equal to N, and P is a natural number; for the name of the pth location, the following steps are performed: defining the name of the P-th position as a variable titlemofession; detecting whether the variable titlerEprofessions is in a preset array zhuanye or not by applying an indexon method in a jquery library; if not, returning to the step of 'the professional name of the uploaded drawing is different from the professional name, please confirm' and ending.
In at least one embodiment of the present disclosure, in the divided naming, the name of the qth location includes engineering name information; wherein Q is more than 1 and less than or equal to N, P is not equal to Q, and Q is a natural number; for the name of the Q-th position, the following steps are performed: defining the name of the Q position as variable title; detecting whether a variable title is in a preset array dd by applying an indexon method in a jquery library; if not, returning to the step of 'the project name of the uploaded drawing is different from the project name, please confirm', and ending.
In at least one embodiment of the present disclosure, the drawing uploading rule further includes: adding all variables titlefirst of the drawings to be uploaded in an uploading queue into an array allnamefirst in a for loop, and simultaneously forming a natural number array newallnamefirst accumulated by taking a first number added into the array allnamefirst as a starting point in sequence, wherein the number of the natural number array newallnamefirst is the same as that of the array allnamefirst; defining the first number in the names of all to-be-uploaded drawings in the obtained uploading queue as allnamefirstnew, wherein the allnamefirstnew belongs to a variable titlefirst; defining the last number in the names of the uploaded drawing papers in the uploaded queue as a drawingno, wherein the drawingno belongs to a variable titlefirst, and the initial value of the drawingno is 0; detecting whether the allnamefirstnew minus 1 is equal to drawingno; if not, returning the information of 'no first page number, please close the uploading window and reselect' to the corresponding client, and ending; ordering the array allnamefirst from small to large; detecting whether the array allnamefirst is the same as the natural number array newallnamefirst; if not, returning information that the page number of the uploaded file must be reselected according to the sequence from small to large of the pages to the corresponding client, and ending; and if so, uploading the drawing to be uploaded in the uploading queue.
In at least one embodiment of the disclosure, before obtaining the corresponding relationship between the category to which the drawing belongs and the drawing uploading rule, the configurable dynamic drawing uploading method in the digital review further includes at least one of the following steps: presetting a corresponding relation between the category of the drawing and a drawing uploading rule; presetting a separator; presetting an array zhuanye; and, presetting an array dd.
The present disclosure also provides a configurable dynamic drawing uploading apparatus in digital review, including: the receiving unit 10 is configured to obtain a corresponding relation between a category to which the drawing belongs and a drawing uploading rule, and obtain classification information of the drawing to be uploaded; the classification unit 20 connected with the receiving unit 10 is configured to judge the category of all the drawings to be uploaded according to the classification information; the detection unit 30 is respectively connected to the receiving unit 10 and the classifying unit 20, and is configured to, for any drawing to be uploaded in each category, find out a drawing uploading rule corresponding to the drawing from a corresponding relationship between the category to which the drawing belongs and the drawing uploading rule according to the category to which the drawing to be uploaded belongs; and for any drawing to be uploaded, checking whether the drawing to be uploaded meets the uploading standard according to a drawing uploading rule corresponding to the drawing, and if so, allowing the drawing to be uploaded.
In at least one embodiment of the present disclosure, the classification information includes at least one time partition point; the classification unit 20 is configured to traverse the time when all the drawings to be uploaded enter the drawing uploading stage, and classify the category to which each drawing to be uploaded belongs according to the front-back relationship between the time when each drawing to be uploaded enters the drawing uploading stage and at least one time division point.
In at least one embodiment of the present disclosure, the receiving unit 10 is further configured to obtain a preset delimiter; the detection unit 30 is further configured to separate the names of the drawings to be uploaded according to preset separators, and the separated names sequentially include the names of N segment positions including a first position and an nth position of a second position … … from left to right, where N is a natural number greater than or equal to 1; for any one of the names of the at least one location, performing the following steps: defining variables corresponding to the names of the positions; detecting whether the variable is in a preset array or not; if not, returning error information.
In at least one embodiment of the present disclosure, the detection unit 30 is configured to obtain a preset delimiter; dividing the name of each drawing to be uploaded according to a preset separator, wherein the divided names sequentially comprise N section names of a first position and an Nth position of a second position … … from left to right, wherein N is a natural number greater than or equal to 1; for any one of the names of the at least one location, performing the following steps: defining variables corresponding to the names of the positions; detecting whether the variable is in a preset array or not; if not, returning error information.
In at least one embodiment of the present disclosure, the detecting unit 30 is further configured to, after partitioning the name of each drawing to be uploaded according to a preset partition symbol, define the number of segment bits included in the partitioned name as a variable numNamelengh; detecting whether the variable numNamelengh is equal to a preset value; if not, returning to the 'naming section digits do not accord' and ending.
In at least one embodiment of the present disclosure, in the divided naming, the name of the first location includes the drawing number information; the detection unit 30 is further configured to, for the name of the first location, perform the following steps: defining the name of the first position as variable titlefirst; detecting whether a variable titlefirst is a number by applying an isNaN method in a jquery library; if not, returning the information that the figure number is not a number and the confirmation is requested to the corresponding client, and ending.
In at least one embodiment of the present disclosure, in the divided naming, the name of the pth location includes professional name information; wherein P is more than 1 and less than or equal to N, and P is a natural number; the detection unit 30 is further configured to, for the name of the pth location, perform the following steps: defining the name of the P-th position as a variable titlemofession; detecting whether the variable titlerEprofessions is in a preset array zhuanye or not by applying an indexon method in a jquery library; if not, returning to the step of 'the professional name of the uploaded drawing is different from the professional name, please confirm' and ending.
In at least one embodiment of the present disclosure, in the divided naming, the name of the qth location includes engineering name information; wherein Q is more than 1 and less than or equal to N, P is not equal to Q, and Q is a natural number; the detection unit 30 is further configured to, for the name of the Q-th location, perform the following steps: defining the name of the Q position as variable title; detecting whether a variable title is in a preset array dd by applying an indexon method in a jquery library; if not, returning to the step of 'the project name of the uploaded drawing is different from the project name, please confirm', and ending.
In at least one embodiment of the present disclosure, the detecting unit 30 is further configured to add the variable titlefirst of all the to-be-uploaded drawings in the upload queue to the array allnamefirst in the for loop, and simultaneously form a natural number array newallnamefirst that is sequentially accumulated with a first number added in the array allnamefirst as a starting point, where the number of the natural number array newallnamefirst is the same as the number of the array allnamefirst; defining the first number in the names of all to-be-uploaded drawings in the obtained uploading queue as allnamefirstnew, wherein the allnamefirstnew belongs to a variable titlefirst; defining the last number in the names of the uploaded drawing papers in the uploaded queue as a drawingno, wherein the drawingno belongs to a variable titlefirst, and the initial value of the drawingno is 0; detecting whether the allnamefirstnew minus 1 is equal to drawingno; if not, returning the information of 'no first page number, please close the uploading window and reselect' to the corresponding client, and ending; ordering the array allnamefirst from small to large; detecting whether the array allnamefirst is the same as the natural number array newallnamefirst; if not, returning information that the page number of the uploaded file must be reselected according to the sequence from small to large of the pages to the corresponding client, and ending; and if so, uploading the drawing to be uploaded in the uploading queue.
In at least one embodiment of the present disclosure, the configurable dynamic drawing uploading apparatus in a digital review drawing further includes: the storage unit is respectively connected with the receiving unit, the classifying unit and the detecting unit and is configured to store at least one of the following information: the corresponding relation between the type of the drawing and the drawing uploading rule is preset with a separator, the classification information of the drawing to be uploaded is preset with an array zhuanye and an array dd.
The present disclosure also provides a computer product including one or more processors configured to execute computer instructions to perform one or more steps of the uploading method of configurable dynamic drawing in digital review drawing described in any of the above embodiments.
The present disclosure also provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the method for uploading configurable dynamic drawing in digital review of any of the above embodiments of the present disclosure.
Additional aspects and advantages of the disclosure will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the disclosure.
Drawings
The accompanying drawings, which are included to provide a further understanding of the disclosure and are incorporated in and constitute a part of this specification, illustrate exemplary embodiments of the disclosure and together with the description serve to explain the principles of the disclosure.
FIG. 1 shows a schematic flow diagram of a configurable dynamic drawing uploading method in a digital review, according to some embodiments of the present disclosure;
fig. 2 shows a schematic structural diagram of a configurable dynamic drawing uploading device in a digital review drawing according to some embodiments of the disclosure.
Detailed Description
The present disclosure will be described in further detail with reference to the drawings and embodiments. It is to be understood that the specific embodiments described herein are for purposes of illustration only and are not to be construed as limitations of the present disclosure. It should be further noted that, for the convenience of description, only the portions relevant to the present disclosure are shown in the drawings.
It should be noted that the embodiments and features of the embodiments in the present disclosure may be combined with each other without conflict. The present disclosure will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.
As shown in fig. 1, a configurable dynamic drawing uploading method in a digital review drawing according to an embodiment of the present disclosure includes:
s101, acquiring a corresponding relation between the type of the drawing and a drawing uploading rule;
s102, obtaining the classification information of the drawing to be uploaded;
s103, judging the categories of all the drawings to be uploaded according to the classification information;
s104, for any drawing to be uploaded in each category, finding out a drawing uploading rule corresponding to the drawing from the corresponding relation between the drawing belonging category and the drawing uploading rule according to the belonging category of the drawing to be uploaded;
and S105, for any drawing to be uploaded, checking whether the drawing to be uploaded meets the uploading standard according to the drawing uploading rule corresponding to the drawing, and if so, allowing the drawing to be uploaded.
The method for uploading the configurable dynamic drawings in the digital drawings comprises the steps of taking classification information of the drawings to be uploaded as a variable control element, dividing the categories of the drawings to be uploaded, selecting a proper drawing uploading rule by utilizing the corresponding relation between the categories of the drawings to be uploaded and the drawing uploading rule, checking whether the drawings to be uploaded meet the uploading standard, enabling different drawing naming modes of different design houses or different drawing naming modes in the same design house to correspond to different drawing uploading rules in the drawing uploading process, solving the problem that only a single drawing naming rule is available in the existing drawing uploading mode (each drawing to be uploaded only allows one naming rule but cannot simultaneously exist in multiple rules), and greatly widening the application range of the drawing uploading in different naming modes.
The classification information may include various information, for example, a certain design house changes the naming rule of the drawings after a certain time, in this case, the time point is used as the classification information, all drawings to be uploaded, which are to enter the drawing uploading stage earlier than the time point, are classified into one type, and all drawings to be uploaded, which are to enter the drawing uploading stage later than or equal to the time point, are classified into another type. For another example, when the drawing files corresponding to the first construction address, the second construction address and the third construction address are named in different manners, the classification information is the construction address information, the drawings belonging to the first construction address are classified into the same category, the drawings belonging to the second construction address are classified into the same category, and the drawings belonging to the third construction address are classified into the same category according to the construction address information included in the naming of the drawings to be uploaded.
An example in which the time division point is used as classification information will be described below.
In at least one embodiment of the present disclosure, the classification information includes at least one time partition point; according to the classification information, judging the categories of all the drawings to be uploaded, including: traversing the time of all the drawings to be uploaded entering the drawing uploading stage, and dividing the classes of the drawings to be uploaded according to the front-back relation between the time of each drawing to be uploaded entering the drawing uploading stage and at least one time division point.
For example, the user selects 11 months and 11 days as a time division point, and before the time division point, the naming mode of the drawing to be uploaded entering the drawing uploading stage is "drawing number _ drawing sheet _ professional _ project name _ drawing name", for example: "11 _ a2 establishes _ XXX cell _ total plan", and after the time division point, the naming mode of the to-be-uploaded drawing entering the drawing uploading stage is as follows: "drawing number _ profession _ engineering name _ drawing sheet", for example: "11 _ construction _ XXX cell _ overall plan view _ a 2". Therefore, the drawings to be uploaded are divided into two categories according to the time division point of 11 months and 11 days. The two types of drawing paper correspond to different drawing paper uploading rules respectively.
In at least one embodiment of the present disclosure, the drawing uploading rule includes: acquiring a preset separator; dividing the name of each drawing to be uploaded according to a preset separator, wherein the divided names sequentially comprise N section names of a first position and an Nth position of a second position … … from left to right, wherein N is a natural number greater than or equal to 1; for any one of the names of the at least one location, performing the following steps: defining variables corresponding to the names of the positions; detecting whether the variable is in a preset array or not; if not, returning error information.
Here, the preset delimiter may be a symbol for separating different categories or item names in the drawing designation such as "_" - "+". The preset array may be a preset name array representing a specific meaning, or an array of a specific category such as a number.
In at least one embodiment of the present disclosure, after separating the name of each drawing to be uploaded according to a preset separator, the drawing uploading rule further includes: defining the number of segment bits included in the divided name as a variable numNamelengh; detecting whether the variable numNamelengh is equal to a preset value; if not, returning to the 'naming section digits do not accord' and ending.
For example, the naming mode of the drawing to be uploaded is "drawing number _ drawing width _ professional _ project name _ drawing name", after the naming of each drawing to be uploaded is divided by taking "_" as a preset separator, the number of the segment bits included in the divided naming is defined as a variable numNamelengh; and if the detection variable numNamelengh is 5 and is equal to the preset value of 5, the number of the named sections of the drawing to be uploaded is consistent with the preset value.
In the embodiment, the drawing uploading rule can realize the detection of the named segment digit, and the detection accuracy is further ensured.
In at least one embodiment of the present disclosure, in the divided naming, the name of the first location includes the drawing number information; for the name of the first location, the following steps are performed: defining the name of the first position as variable titlefirst; detecting whether a variable titlefirst is a number by applying an isNaN method in a jquery library; if not, returning the information that the figure number is not a number and the confirmation is requested to the corresponding client, and ending.
In the embodiment, the drawing uploading rule can realize the detection of whether the name of the position of the first representation drawing number is a number, and provides a basis for the subsequent detection and sequencing of the drawing number according to the drawing number.
In at least one embodiment of the present disclosure, in the divided naming, the name of the pth location includes professional name information; wherein P is more than 1 and less than or equal to N, and P is a natural number; for the name of the pth location, the following steps are performed: defining the name of the P-th position as a variable titlemofession; detecting whether the variable titlerEprofessions is in a preset array zhuanye or not by applying an indexon method in a jquery library; if not, returning to the step of 'the professional name of the uploaded drawing is different from the professional name, please confirm' and ending.
In the embodiment, the drawing uploading rule can detect whether the specialty of the drawing meeting the required standard and the drawing selected in the uploading process are the same specialty, so that detection items are increased, and the detection accuracy is further improved.
In at least one embodiment of the present disclosure, in the divided naming, the name of the qth location includes engineering name information; wherein Q is more than 1 and less than or equal to N, P is not equal to Q, and Q is a natural number; for the name of the Q-th position, the following steps are performed: defining the name of the Q position as variable title; detecting whether a variable title is in a preset array dd by applying an indexon method in a jquery library; if not, returning to the step of 'the project name of the uploaded drawing is different from the project name, please confirm', and ending.
In the embodiment, the drawing uploading rule can detect whether the drawing meeting the required standard is the same as the drawing selected in the uploading process, so that the detection items are further increased, and the detection result is more accurate.
In the above embodiment, a plurality of professional names used in the digital examination map, such as construction and the like, are preset in the preset array zhuanye, and a plurality of project names used in the digital examination map, such as XXX cells, are preset in the preset array dd.
Several examples of the above-described drawing upload rules are described in detail below.
In an example one, after the name of each drawing to be uploaded is divided according to a preset separator, in the divided names, the name of a first position comprises drawing number information; defining the name of a first position in a drawing name as a variable titlefirst; detecting whether a variable titlefirst is a number by applying an isNaN method in a jquery library; if not, returning the information that the figure number is not a number and the confirmation is requested to the corresponding client, and ending.
In the required standard drawing, the name of the third position in the divided name should be professional name information. Defining the name of a third position in the name of the drawing to be uploaded as a variable titleprofession; detecting whether the variable titlerEprofessions is in a preset array zhuanye or not by applying an indexon method in a jquery library; if not, returning to the step of 'the professional name of the uploaded drawing is different from the professional name, please confirm' and ending.
In the required standard drawing, the name of the fourth position in the divided name should be the project name information. Defining the name of a fourth position in the name of the drawing to be uploaded as a variable title; detecting whether a variable title is in a preset array dd by applying an indexon method in a jquery library; if not, returning to the step of 'the project name of the uploaded drawing is different from the project name, please confirm', and ending.
Example two, after the name of each drawing to be uploaded is divided according to a preset separator, in the divided names, the name of the first position comprises drawing number information; defining the name of a first position in a drawing name as a variable titlefirst; detecting whether a variable titlefirst is a number by applying an isNaN method in a jquery library; if not, returning the information that the figure number is not a number and the confirmation is requested to the corresponding client, and ending.
In the required standard drawing, the name of the second position in the divided name should be professional name information. Defining the name of a second position in the name of the drawing to be uploaded as a variable titleprofession; detecting whether the variable titlerEprofessions is in a preset array zhuanye or not by applying an indexon method in a jquery library; if not, returning to the step of 'the professional name of the uploaded drawing is different from the professional name, please confirm' and ending.
In the required standard drawing, the name of the third position in the divided name should be the project name information. Defining the name of a third position in the name of the drawing to be uploaded as a variable title; detecting whether a variable title is in a preset array dd by applying an indexon method in a jquery library; if not, returning to the step of 'the project name of the uploaded drawing is different from the project name, please confirm', and ending.
After the name of each drawing to be uploaded is divided according to a preset separator, in the divided names, the name of the first position comprises drawing number information; defining the name of a first position in a drawing name as a variable titlefirst; detecting whether a variable titlefirst is a number by applying an isNaN method in a jquery library; if not, returning the information that the figure number is not a number and the confirmation is requested to the corresponding client, and ending.
In the required standard drawing, the name of the fourth position in the divided name should be professional name information. Defining the name of a fourth position in the name of the drawing to be uploaded as a variable titleprofession; detecting whether the variable titlerEprofessions is in a preset array zhuanye or not by applying an indexon method in a jquery library; if not, returning to the step of 'the professional name of the uploaded drawing is different from the professional name, please confirm' and ending.
In the required standard drawing, the name of the fifth position in the divided name should be the project name information. Defining the name of a fifth position in the name of the drawing to be uploaded as a variable title; detecting whether a variable title is in a preset array dd by applying an indexon method in a jquery library; if not, returning to the step of 'the project name of the uploaded drawing is different from the project name, please confirm', and ending.
In the embodiment, three different drawing uploading rules are provided for adapting to different drawing naming modes, and more different drawing uploading rules can be preset according to actual requirements in actual application.
For example, the user selects 11 months and 11 days as a time division point, and before the time division point, the naming mode of the drawing to be uploaded entering the drawing uploading stage is "drawing number _ drawing sheet _ professional _ project name _ drawing name", for example: "11 _ a2 establishes _ XXX cell _ total plan", the naming method corresponds to the drawing uploading rule in the first example. After the time division point, the naming mode of the to-be-uploaded drawing entering the drawing uploading stage is as follows: "drawing number _ profession _ engineering name _ drawing sheet", for example: "11 _ construction _ XXX cell _ total plan _ a 2", the naming method corresponds to the drawing upload rule in example two above.
In at least one embodiment of the present disclosure, the drawing uploading rule further includes: adding all variables titlefirst of the drawings to be uploaded in an uploading queue into an array allnamefirst in a for loop, and simultaneously forming a natural number array newallnamefirst accumulated by taking a first number added into the array allnamefirst as a starting point in sequence, wherein the number of the natural number array newallnamefirst is the same as that of the array allnamefirst; defining the first number in the names of all to-be-uploaded drawings in the obtained uploading queue as allnamefirstnew, wherein the allnamefirstnew belongs to a variable titlefirst; defining the last number in the names of the uploaded drawing papers in the uploaded queue as a drawingno, wherein the drawingno belongs to a variable titlefirst, and the initial value of the drawingno is 0; detecting whether the allnamefirstnew minus 1 is equal to drawingno; if not, returning the information of 'no first page number, please close the uploading window and reselect' to the corresponding client, and ending; ordering the array allnamefirst from small to large; detecting whether the array allnamefirst is the same as the natural number array newallnamefirst; if not, returning information that the page number of the uploaded file must be reselected according to the sequence from small to large of the pages to the corresponding client, and ending; and if so, uploading the drawing to be uploaded in the uploading queue.
In the embodiment, the continuity of the page numbers of the uploaded drawings in the uploading queue is detected, the page number sequence detection of the batch uploaded files is effectively realized, and the drawing missing phenomenon in the drawing uploading process is reduced.
In at least one embodiment of the disclosure, before obtaining the corresponding relationship between the category to which the drawing belongs and the drawing uploading rule, the configurable dynamic drawing uploading method in the digital review further includes at least one of the following steps: presetting a corresponding relation between the category of the drawing and a drawing uploading rule; presetting a separator; presetting an array zhuanye; and, presetting an array dd. The following drawing uploading rule codes corresponding to the drawing naming mode 'drawing number _ drawing sheet _ professional _ project name _ drawing name':
Figure BDA0002400736420000121
Figure BDA0002400736420000131
Figure BDA0002400736420000141
the following is a drawing uploading rule code corresponding to the drawing naming mode "drawing number _ professional _ project name _ drawing sheet" comprising:
Figure BDA0002400736420000142
Figure BDA0002400736420000151
Figure BDA0002400736420000161
Figure BDA0002400736420000171
as shown in fig. 2, the present disclosure further provides an apparatus 100 for uploading configurable dynamic drawing in digital review, including: the receiving unit 10 is configured to obtain a corresponding relation between a category to which the drawing belongs and a drawing uploading rule, and obtain classification information of the drawing to be uploaded; the classification unit 20 connected with the receiving unit 10 is configured to judge the category of all the drawings to be uploaded according to the classification information; the detection unit 30 is respectively connected to the receiving unit 10 and the classifying unit 20, and is configured to, for any drawing to be uploaded in each category, find out a drawing uploading rule corresponding to the drawing from a corresponding relationship between the category to which the drawing belongs and the drawing uploading rule according to the category to which the drawing to be uploaded belongs; and for any drawing to be uploaded, checking whether the drawing to be uploaded meets the uploading standard according to a drawing uploading rule corresponding to the drawing, and if so, allowing the drawing to be uploaded.
In at least one embodiment of the present disclosure, the classification information includes at least one time partition point; the classification unit 20 is configured to traverse the time when all the drawings to be uploaded enter the drawing uploading stage, and classify the category to which each drawing to be uploaded belongs according to the front-back relationship between the time when each drawing to be uploaded enters the drawing uploading stage and at least one time division point.
In at least one embodiment of the present disclosure, the receiving unit 10 is further configured to obtain a preset delimiter; the detection unit 30 is further configured to separate the names of the drawings to be uploaded according to preset separators, and the separated names sequentially include the names of N segment positions including a first position and an nth position of a second position … … from left to right, where N is a natural number greater than or equal to 1; for any one of the names of the at least one location, performing the following steps: defining variables corresponding to the names of the positions; detecting whether the variable is in a preset array or not; if not, returning error information.
In at least one embodiment of the present disclosure, the detection unit 30 is configured to obtain a preset delimiter; dividing the name of each drawing to be uploaded according to a preset separator, wherein the divided names sequentially comprise N section names of a first position and an Nth position of a second position … … from left to right, wherein N is a natural number greater than or equal to 1; for any one of the names of the at least one location, performing the following steps: defining variables corresponding to the names of the positions; detecting whether the variable is in a preset array or not; if not, returning error information.
In at least one embodiment of the present disclosure, the detecting unit 30 is further configured to, after partitioning the name of each drawing to be uploaded according to a preset partition symbol, define the number of segment bits included in the partitioned name as a variable numNamelengh; detecting whether the variable numNamelengh is equal to a preset value; if not, returning to the 'naming section digits do not accord' and ending.
In at least one embodiment of the present disclosure, in the divided naming, the name of the first location includes the drawing number information; the detection unit 30 is further configured to, for the name of the first location, perform the following steps: defining the name of the first position as variable titlefirst; detecting whether a variable titlefirst is a number by applying an isNaN method in a jquery library; if not, returning the information that the figure number is not a number and the confirmation is requested to the corresponding client, and ending.
In at least one embodiment of the present disclosure, in the divided naming, the name of the pth location includes professional name information; wherein P is more than 1 and less than or equal to N, and P is a natural number; the detection unit 30 is further configured to, for the name of the pth location, perform the following steps: defining the name of the P-th position as a variable titlemofession; detecting whether the variable titlerEprofessions is in a preset array zhuanye or not by applying an indexon method in a jquery library; if not, returning to the step of 'the professional name of the uploaded drawing is different from the professional name, please confirm' and ending.
In at least one embodiment of the present disclosure, in the divided naming, the name of the qth location includes engineering name information; wherein Q is more than 1 and less than or equal to N, P is not equal to Q, and Q is a natural number; the detection unit 30 is further configured to, for the name of the Q-th location, perform the following steps: defining the name of the Q position as variable title; detecting whether a variable title is in a preset array dd by applying an indexon method in a jquery library; if not, returning to the step of 'the project name of the uploaded drawing is different from the project name, please confirm', and ending.
In at least one embodiment of the present disclosure, the detecting unit 30 is further configured to add the variable titlefirst of all the to-be-uploaded drawings in the upload queue to the array allnamefirst in the for loop, and simultaneously form a natural number array newallnamefirst that is sequentially accumulated with a first number added in the array allnamefirst as a starting point, where the number of the natural number array newallnamefirst is the same as the number of the array allnamefirst; defining the first number in the names of all to-be-uploaded drawings in the obtained uploading queue as allnamefirstnew, wherein the allnamefirstnew belongs to a variable titlefirst; defining the last number in the names of the uploaded drawing papers in the uploaded queue as a drawingno, wherein the drawingno belongs to a variable titlefirst, and the initial value of the drawingno is 0; detecting whether the allnamefirstnew minus 1 is equal to drawingno; if not, returning the information of 'no first page number, please close the uploading window and reselect' to the corresponding client, and ending; ordering the array allnamefirst from small to large; detecting whether the array allnamefirst is the same as the natural number array newallnamefirst; if not, returning information that the page number of the uploaded file must be reselected according to the sequence from small to large of the pages to the corresponding client, and ending; and if so, uploading the drawing to be uploaded in the uploading queue.
In at least one embodiment of the present disclosure, the configurable dynamic drawing uploading apparatus 100 for digital review further includes: the storage unit 40 is connected to the receiving unit 10, the classifying unit 20 and the detecting unit 30, and is configured to store at least one of the following information: the corresponding relation between the type of the drawing and the drawing uploading rule is preset with a separator, the classification information of the drawing to be uploaded is preset with an array zhuanye and an array dd.
The embodiment of the disclosure may perform functional component division on the configurable dynamic drawing uploading device 100 in the digital review drawing according to the above method example, for example, each functional component may be divided corresponding to each function (such as the receiving unit 10, the detecting unit 30, and the like), or two or more functional components may be integrated into one processing module. The integrated components or modules may be implemented in the form of hardware or software functional modules. It should be noted that the division of each unit component in the embodiments of the present disclosure is schematic, and is only a logical function division, and another division manner may be available in actual implementation.
In addition, all relevant contents of each step related to the above method embodiment may be referred to the functional description of the corresponding unit component, and corresponding parts thereof may be referred to one another, which is not described herein again.
The beneficial effects that can be achieved by the configurable dynamic drawing uploading device 100 in the digital examination drawing provided by the embodiment of the present disclosure are the same as those achieved by the configurable dynamic drawing uploading method in the digital examination drawing provided by the above, and are not described herein again.
The steps in the disclosed method may be sequentially adjusted, combined, and pruned as needed.
The units in the device of the present disclosure can be combined, divided and deleted according to actual needs.
Some embodiments of the present disclosure also provide a computer product comprising one or more processors configured to execute computer instructions to perform one or more steps of the method for uploading configurable dynamic drawings in a digital review drawing according to any of the embodiments.
The processor is a controller or a processing element or a combination of multiple processing elements, and includes at least one of a cloud server, a Central Processing Unit (CPU), a general purpose processor, a Digital Signal Processor (DSP), an application-specific integrated circuit (ASIC), a Field Programmable Gate Array (FPGA), and a transistor logic device, or a combination of at least two of them.
In implementation, the steps of the above method may be performed by integrated logic circuits of hardware in a processor or instructions in the form of software. The steps of a method disclosed in connection with the embodiments of the present disclosure may be embodied directly in a hardware processor, or in a combination of hardware and software modules. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in a memory, and a processor reads information in the memory and completes the steps of the method in combination with hardware of the processor.
Some embodiments of the present disclosure also provide a computer non-transitory readable storage medium storing computer instructions configured to perform the method for uploading configurable dynamic drawing in digital review drawing according to any of the above embodiments.
Some embodiments of the disclosure may be implemented, in whole or in part, by software, hardware, firmware, or any combination thereof. When implemented using a software program, may take the form of a computer program product, either entirely or partially. The computer program product includes one or more computer instructions. The procedures or functions described in accordance with the embodiments of the disclosure are, in whole or in part, generated when the computer program instructions are loaded and executed on a computer. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer-readable storage medium, which may include Read-Only Memory (ROM), Random Access Memory (RAM), Programmable Read-Only Memory (PROM), Erasable Programmable Read-Only Memory (EPROM), One-time Programmable Read-Only Memory (OTPROM), Electrically Erasable Programmable Read-Only Memory (EEPROM), a Compact Disc Read-Only Memory (CD-ROM) or other optical disk storage, magnetic disk storage, tape storage, or any other medium capable of carrying or storing data. Alternatively, the computer instructions may be transmitted from one computer-readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.).
In the description herein, reference to the description of the terms "one embodiment/mode," "some embodiments/modes," "example," "specific example," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment/mode or example is included in at least one embodiment/mode or example of the application. In this specification, the schematic representations of the terms used above are not necessarily intended to be the same embodiment/mode or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments/modes or examples. Furthermore, the various embodiments/aspects or examples and features of the various embodiments/aspects or examples described in this specification can be combined and combined by one skilled in the art without conflicting therewith.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present disclosure, "a plurality" means at least two, e.g., two, three, etc., unless explicitly specifically limited otherwise. Meanwhile, in the description of the present disclosure, unless otherwise explicitly specified or limited, the terms "connected" and "connected" should be interpreted broadly, e.g., as being fixedly connected, detachably connected, or integrally connected; the connection can be mechanical connection or electrical connection; may be directly connected or indirectly connected through an intermediate. The specific meaning of the above terms in the present disclosure can be understood by those of ordinary skill in the art as appropriate.
It will be understood by those skilled in the art that the foregoing embodiments are merely for clarity of illustration of the disclosure and are not intended to limit the scope of the disclosure. Other variations or modifications may occur to those skilled in the art, based on the foregoing disclosure, and are still within the scope of the present disclosure.

Claims (10)

1. A configurable dynamic drawing uploading method in digital examination drawings is characterized by comprising the following steps:
acquiring the corresponding relation between the type of the drawing and the drawing uploading rule;
acquiring the classification information of a drawing to be uploaded;
judging the categories of all the drawings to be uploaded according to the classification information;
for any drawing to be uploaded in each category, finding out a drawing uploading rule corresponding to the drawing from the corresponding relation between the category of the drawing and the drawing uploading rule according to the category of the drawing to be uploaded;
and for any drawing to be uploaded, checking whether the drawing to be uploaded meets the uploading standard according to a drawing uploading rule corresponding to the drawing, and if so, allowing the drawing to be uploaded.
2. The method for uploading configurable dynamic drawing in digital examination drawing according to claim 1, wherein the classification information comprises at least one time division point; the judging the category of all the drawings to be uploaded according to the classification information comprises the following steps:
traversing the time of all the drawings to be uploaded entering the drawing uploading stage, and dividing the category of each drawing to be uploaded according to the front-back relationship between the time of each drawing to be uploaded entering the drawing uploading stage and the at least one time division point.
3. The method for uploading configurable dynamic drawing in digital review of claim 1, wherein the drawing uploading rules comprise:
acquiring a preset separator;
dividing the name of each drawing to be uploaded according to the preset separator, wherein the divided names sequentially comprise N section names of a first position and an Nth position of a second position … … from left to right, wherein N is a natural number greater than or equal to 1;
for any one of the names of the at least one location, performing the following steps: defining variables corresponding to the names of the positions; detecting whether the variable is in a preset array or not; if not, returning error information.
4. The method for uploading configurable dynamic drawings in digital drawings according to claim 3, wherein after separating the name of each drawing to be uploaded according to the preset separator, the drawing uploading rule further comprises:
defining the number of segment bits included in the divided name as a variable numNamelengh;
detecting whether the variable numNamelengh is equal to a preset value;
if not, returning to the 'naming section digits do not accord' and ending.
5. The method for uploading configurable dynamic drawings in digital drawings according to claim 3, wherein in the divided names, the name of the first position comprises drawing number information; for the name of the first location, the following steps are performed:
defining the name of the first position as variable titlefirst;
detecting whether the variable titlefirst is a number or not by applying an isNaN method in a jquery library;
if not, returning the information that the figure number is not a number and the confirmation is requested to the corresponding client, and ending.
6. The method for uploading configurable dynamic drawings in digital charts in examinations according to claim 5, wherein in the names after division, the name of the P-th position includes professional name information; wherein P is more than 1 and less than or equal to N, and P is a natural number; for the name of the pth location, the following steps are performed:
defining the name of the P-th position as a variable titlemofession;
detecting whether the variable titlerEprofessions is in a preset array zhuanye or not by using an indexof method in a jquery library;
if not, returning to the step of 'the professional name of the uploaded drawing is different from the professional name, please confirm' and ending.
7. The method for uploading configurable dynamic drawings in digital charts in examinations according to claim 6, wherein in the names after division, the name of the Q-th position includes project name information; wherein Q is more than 1 and less than or equal to N, P is not equal to Q, and Q is a natural number; for the name of the Q-th position, the following steps are performed:
defining the name of the Q position as variable title;
detecting whether the variable title is in a preset array dd.title or not by applying an indexof method in a jquery library;
if not, returning to the step of 'the project name of the uploaded drawing is different from the project name, please confirm', and ending.
8. The method for uploading configurable dynamic drawing in digital review of claim 7, wherein the drawing uploading rules further comprise:
adding the variable titlefirst of all the drawings to be uploaded in the uploading queue into an array allnamefirst in a for loop, and simultaneously forming a natural number array newallnamefirst accumulated by taking a first number added into the array allnamefirst as a starting point in sequence, wherein the number of the natural number array newallnamefirst is the same as that of the array allnamefirst;
defining the first number in the names of all to-be-uploaded drawings in the obtained uploading queue as allnamefirstnew, wherein the allnamefirstnew belongs to the variable titlefirst;
defining the last number in the obtained names of the uploaded drawing papers in the uploaded queue as a drawingno, wherein the drawingno belongs to the variable titlefirst, and the initial value of the drawingno is 0;
detecting if said allnamefirstnew minus 1 is equal to said drawingno;
if not, returning the information of 'no first page number, please close the uploading window and reselect' to the corresponding client, and ending;
the array allnamefirst is sorted from small to large;
detecting whether the array allnamefirst is the same as the natural number array newallnamefirst;
if not, returning information that the page number of the uploaded file must be reselected according to the sequence from small to large of the pages to the corresponding client, and ending;
and if so, uploading the drawing to be uploaded in the uploading queue.
9. An uploading device for configurable dynamic drawings in digital examination drawings is characterized by comprising:
the receiving unit (10) is configured to acquire the corresponding relation between the type of the drawing and the drawing uploading rule and acquire the classification information of the drawing to be uploaded;
the classification unit (20) is connected with the receiving unit (10) and is configured to judge the category of all the drawings to be uploaded according to the classification information;
the detection unit (30) is respectively connected with the receiving unit (10) and the classifying unit (20) and is configured to find out a drawing uploading rule corresponding to any drawing to be uploaded in each category from the corresponding relation between the category of the drawing and the drawing uploading rule according to the category of the drawing to be uploaded; and for any drawing to be uploaded, checking whether the drawing to be uploaded meets the uploading standard according to a drawing uploading rule corresponding to the drawing, and if so, allowing the drawing to be uploaded.
10. A computer product comprising one or more processors, wherein the one or more processors are configured to execute computer instructions to perform one or more steps of the method for uploading configurable dynamic drawing in digital review of any of claims 1-8.
CN202010145987.1A 2020-03-05 2020-03-05 Configurable dynamic drawing uploading method and device in digital examination drawing Pending CN111368546A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010145987.1A CN111368546A (en) 2020-03-05 2020-03-05 Configurable dynamic drawing uploading method and device in digital examination drawing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010145987.1A CN111368546A (en) 2020-03-05 2020-03-05 Configurable dynamic drawing uploading method and device in digital examination drawing

Publications (1)

Publication Number Publication Date
CN111368546A true CN111368546A (en) 2020-07-03

Family

ID=71208539

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010145987.1A Pending CN111368546A (en) 2020-03-05 2020-03-05 Configurable dynamic drawing uploading method and device in digital examination drawing

Country Status (1)

Country Link
CN (1) CN111368546A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102968349A (en) * 2012-09-06 2013-03-13 北京吉威时代软件技术有限公司 Method and system for file completeness verification of remote sensing image data
CN105574167A (en) * 2015-12-17 2016-05-11 惠州Tcl移动通信有限公司 Mobile terminal-based automatic photograph naming processing method and system
CN109800392A (en) * 2019-01-11 2019-05-24 滨州建筑工程施工图审查中心 Digitize the Multifunctional graph paper method for uploading and device in check of drawings

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102968349A (en) * 2012-09-06 2013-03-13 北京吉威时代软件技术有限公司 Method and system for file completeness verification of remote sensing image data
CN105574167A (en) * 2015-12-17 2016-05-11 惠州Tcl移动通信有限公司 Mobile terminal-based automatic photograph naming processing method and system
CN109800392A (en) * 2019-01-11 2019-05-24 滨州建筑工程施工图审查中心 Digitize the Multifunctional graph paper method for uploading and device in check of drawings

Similar Documents

Publication Publication Date Title
CN112487150B (en) File management method, system, storage medium and electronic equipment
CN111460773A (en) Data processing method, device and system, electronic equipment and storage medium
CN107203265B (en) Information interaction method and device
CN115858831B (en) Data storage method for database
CN110688134A (en) Method and device for gray scale publishing
CN114490786B (en) Data sorting method and device
CN114356893A (en) Metadata tuning method, device, equipment and storage medium based on machine learning
CN111368546A (en) Configurable dynamic drawing uploading method and device in digital examination drawing
CN111400516B (en) Label determining method, electronic device and storage medium
CN115098362B (en) Page test method, page test device, electronic equipment and storage medium
CN117194322A (en) File classification management method, system and computing device
CN116821218A (en) Parameter receiving method and device based on general format analysis
CN115495420A (en) Project file integrity checking method, device, equipment and storage medium
CN115587115A (en) Database query optimization method and system
CN113656575B (en) Training data generation method and device, electronic equipment and readable medium
CN110109892B (en) Data migration method and device and electronic equipment
CN115469915A (en) Method, device, equipment and medium for managing API (application program interface) based on tree structure classification
CN108764314B (en) Structured data classification method and device, electronic equipment and storage medium
CN108197321B (en) File memory method and system
CN110717109A (en) Method and device for recommending data, electronic equipment and storage medium
CN112748945B (en) Data storage method and device and electronic equipment
CN117372210B (en) Legal service consultation system
CN110705928B (en) Data processing method, device, medium and electronic equipment
CN117278490B (en) Internet of things gateway data rapid transmission method and system
CN112579336B (en) Database exception recovery method and device, computing device and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200703