Home > Back-end >  How about when click submit to check whether mandatory complete set
How about when click submit to check whether mandatory complete set

Time:09-29




Realize functions:
Information input, save employees leave
Information query staff leave
Modify leave the employee information in the form
Thinking:
Under the name: brace binding employee in the database table
Department: according to fill in the employee name column names automatically fill in the employee's department
Leave types: radio! Choose to leave type is only fill in the leave reasons in choosing a private affair leave
Time: select start and end time can not ask for leave is less than the day!
Leave time can't more than 3 months
The leaders signing: comprehensive management department and general manager can not sign the
Commit: click on the submit query name off in the form begins to end time is already in the database if there is a hint with users in the employee has ask for leave or checking whether the column with * in the table is complete without prompting the user complete mandatory not complete or submit to the database to store!




I think when click submit to check with * are complete and give feedback to perform inspection in the form to fill in the names of the time information is against a database of repetition and then give feedback



O great god teach

CodePudding user response:

Don't have to do is check whether there is the control data, such as the first drop-down box, "please select the database table" employees, called GetCurSel () should get is 0, if detection curSel is 0, is missing

CodePudding user response:

Only when complete, "submit" Button to Enable

CodePudding user response:

Judge control string is not empty line ah,

CodePudding user response:

Edit - & gt; The Text. The Trim ()=="";//text text box didn't fill out
ComboBox - & gt; ItemIndex==1;//not select options
ComboBox - & gt; Text=="";//not fill in the text
  • Related