Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Working on btnSubmit button making sure all availible information is …

…in place to save.
  • Loading branch information...
commit 057a07a5223b9a24e044b5b7c85cdc33f01dfa15 1 parent 74f6233
@Repo-Cat authored
Showing with 24 additions and 3 deletions.
  1. +24 −3 BuildingPermit/BuildingPermit/BuildingPermitTabs.cs
View
27 BuildingPermit/BuildingPermit/BuildingPermitTabs.cs
@@ -979,15 +979,36 @@ private void btnCancelNotes_Click(object sender, EventArgs e)
private void btnSubmit_Click(object sender, EventArgs e)
{
+ if (txtBasement.Text == null && txtBasement.Text == "")
+ {
+ this.building.basementExist = false;
+ }
+ else
+ {
+ this.building.basementExist = true;
+ }
+
+ this.building.basementSF = txtBasement.Text;
+ this.building.buildingType = cmboConstructionType.Text;
+ this.building.deckSF = txtDeck.Text;
+ this.building.estimatedCost = txtEstimatedCost.Text;
+ this.building.garageSF = txtGarageSF.Text;
+ this.building.heatedSF = txtHeatedSF.Text;
+ this.building.lrk = txtLRKNumber.Text;
+ this.building.numStories = txtNumStories.Text;
+ this.building.permitId = Convert.ToInt16(txtPermitNumber.Text);
+ this.building.porchSF = txtPorchSF.Text;
+ this.building.proposedUse = cmboProposedUse.Text;
+ this.building.totalSF = txtSquareFeet.Text;
- this.building.save(conStr, txtLRKNumber.Text);
+ this.building.save(conStr);
+
+
this.contact.save(conStr);
this.utilities.save(conStr);
this.contractor.save(conStr);
this.parcel.save(conStr);
-
-
}
private void clearAllFieldsForPermitNum()
Please sign in to comment.
Something went wrong with that request. Please try again.