Exemplo n.º 1
0
		private void SaveRecord()
		{
			Branch clsBranch = new Branch();
			BranchDetails clsDetails = new BranchDetails();

			clsDetails.BranchID = Convert.ToInt32(lblBranchID.Text);
			clsDetails.BranchCode = txtBranchCode.Text;
			clsDetails.BranchName = txtBranchName.Text;
			clsDetails.DBIP = txtDBIP.Text;
			clsDetails.DBPort = txtDBPort.Text;
			clsDetails.Address = txtAddress.Text;
			clsDetails.Remarks = txtRemarks.Text;
            clsDetails.IncludeIneSales = chkIncludeIneSales.Checked;

			clsBranch.Update(clsDetails);
			clsBranch.CommitAndDispose();
		}