Symbianize Forum

Most of our features and services are available only to members, so we encourage you to login or register a new account. Registration is free, fast and simple. You only need to provide a valid email. Being a member you'll gain access to all member forums and features, post a message to ask question or provide answer, and share or find resources related to mobile phones, tablets, computers, game consoles, and multimedia.

All that and more, so what are you waiting for, click the register button and join us now! Ito ang website na ginawa ng pinoy para sa pinoy!

Help me rebuilding my system for re-defense. tulong po :(

gaudianoa

Proficient
Advanced Member
Messages
289
Reaction score
0
Points
26
Papatulong lang po sana ako sa inyo, Restaurant management system ang system na nagawa namin, kaso may gusto ipakuha na feature si sir sa system.
Yung sa required time , na foor example ilang minutes maluluto ang dish, gusto kasi ipatanggal, nag modify na ako sa codes kaso ayaw parin. Yung iabang code is from my friends at sa internet , pero this time di ko talaga ma kuha paano matanggal ang required time.
pa help po, sa monday na po ang re.defense namin, tsaka last enrol na sa monday :(

ito po ang code, and ang tatanggalin is txtrequired.txt, this is under register button, kung ssan e register niya ang dish na gianawa.
Private Sub btnregister_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnregister.Click
Dim Filesource As String
Dim directory As String
Dim destination As String = ""
Dim filename As String = FileBrowser.SafeFileName
Try
'DataGridView1.Rows(n).Cells(0).Value = txtid.Text
'DataGridView1.Rows(n).Cells(1).Value = txtname.Text
'DataGridView1.Rows(n).Cells(2).Value = cmbtype.Text
'DataGridView1.Rows(n).Cells(3).Value = txtorigin.Text
'DataGridView1.Rows(n).Cells(4).Value = txtmv.Text
'DataGridView1.Rows(n).Cells(5).Value = txtsp.Text
'DataGridView1.Rows(n).Cells(6).Value = nudquality.Value
'DataGridView1.Rows(n).Cells(7).Value = txtrequired.Text
'DataGridView1.Rows(n).Cells(8).Value = checkgas.CheckState
'DataGridView1.Rows(n).Cells(9).Value = checkmicro.CheckState
'DataGridView1.Rows(n).Cells(10).Value = checkgrill.CheckState
'DataGridView1.Rows(n).Cells(11).Value = checkfp.CheckState
'DataGridView1.Rows(n).Cells(12).Value = picbox1.ImageLocation



'Checks whether required fields are filled with valid value
If txtname.Text <> "" And txtmv.Text <> "" And txtsp.Text <> "" And cmbtype.SelectedItem <> "" Then
Dim errorcount As Integer
' Checking whether the name and address information contains "'" or not. If it exists, errorcount increases by one, which leads to encounter error
For i = 1 To Len(txtname.Text)
Dim value As String
value = Mid(txtname.Text, i, 1)
If value = "'" Then
errorcount = errorcount + 1 'If any field includes " ' " then increase the vlaue of errorcount by 1

End If
Next
For i = 1 To Len(txtorigin.Text)
Dim value As String
value = Mid(txtorigin.Text, i, 1)
If value = "'" Then
errorcount = errorcount + 1

End If
Next

Dim originnumericcount As Integer = 0
'Checking whether the non-numeric field contains number or not
For i = 1 To Len(txtorigin.Text)
Dim value As String
value = Mid(txtorigin.Text, i, 1)
If IsNumeric(value) = True Then
originnumericcount = originnumericcount + 1

End If
Next

If errorcount = 0 Then
'Validating numeric and non-numeric fields
If originnumericcount = 0 And IsNumeric(txtmv.Text) = True And IsNumeric(txtsp.Text) = True And IsNumeric(txtrequired.Text) = True Then
If txtmv.Text >= 0 And txtsp.Text >= 0 And txtrequired.Text >= 0 Then
Dim imagelocation As String
imagelocation = picbox1.ImageLocation
If imagelocation <> "" Then
Dim picturedirectory As New DirectoryInfo("C:\RMS")
' Checks whether the directory exists.
If picturedirectory.Exists Then
'Copies the selected picture file to the created directory "C:\RMS"
directory = picturedirectory.FullName
Filesource = FileBrowser.FileName
destination = (directory) & "\" & ((txtid.Text) & filename)
FileCopy(Filesource, destination)
Else
'Creates the directory "C:\RMS"
picturedirectory.Create()
'Copies the selected picture file to the created directory "C:\RMS"
directory = picturedirectory.FullName
Filesource = FileBrowser.FileName
destination = (directory) & "\" & ((txtid.Text) & filename)
FileCopy(Filesource, destination)

End If

End If

'Adds new record in related data table and updates the database
dbconnection.Open()
Dim Sql As String
Sql = "Insert into Dishdetails values ('" & txtid.Text & "','" & txtname.Text & "','" & cmbtype.Text & "','" & txtorigin.Text & "','" & txtmv.Text & "','" & txtsp.Text & "','" & nudquality.Value & "','" & txtrequired.Text & "','" & checkgas.CheckState & "','" & checkmicro.CheckState & "','" & checkgrill.CheckState & "','" & checkfp.CheckState & "','" & destination & "')"
Dim dt As OleDbCommand
dt = New OleDbCommand(Sql, dbconnection)
dt.ExecuteNonQuery()
dbconnection.Close()
MsgBox("New Record added", MsgBoxStyle.Information, "Success")
txtid.Text = txtid.Text + 1
txtmv.Clear()
txtname.Clear()
txtorigin.Clear()
txtrequired.Clear()
txtsp.Clear()
picbox1.Image = My.Resources._default
checkfp.CheckState = CheckState.Unchecked
checkgas.CheckState = CheckState.Unchecked
checkgrill.CheckState = CheckState.Unchecked
checkmicro.CheckState = CheckState.Unchecked
nudquality.Value = 0
Else
'displays error message
MsgBox("Negative value not accepted", MsgBoxStyle.Critical, "NEGATIVE INTEGER")
End If
Else
'Displays error message
MsgBox(" Some fields(Market value, Selling Price and Required Time) accept numbers only and Originaton accept only alphabets, please re-check your records", MsgBoxStyle.Exclamation, "Validation Error")
End If
Else
'Displays error message
MsgBox("Something wrong either in field name or origination, may be there is presence of " & "(') in entered value" & Chr(13) & "Remove that sign if present", MsgBoxStyle.Critical, "ERROR")

End If

Else
'Displays error message
MsgBox("Some of the required fields are left empty", MsgBoxStyle.Critical, "Validation Error")
End If

Catch ex As Exception
'Displays error message
MsgBox(ex.Message, MsgBoxStyle.Critical, "ERROR")
If dbconnection.State = ConnectionState.Open Then
dbconnection.Close() ' ensures that the connection is closed
End If
End Try



End Sub

nung una sinubukan ko na gawing optionala nalang ang required time, kasi pag di ka nag input sa required time ay di mag sisave. Kung marunong kayo, plss help.
or tanggalin nalang ang function ng required time. Ay nako. d talaga ako magaling sa ganito, gamit din kasi kami ng code generator. hahay.


sa may mga mabubuting loob jan, ito po yung system ko >> Restaurant management system username : bonbon pasword: bonbon
pls po, paitulungan po ako.di ko na kaya e debug.
 
Last edited:
Papatulong lang po sana ako sa inyo, Restaurant management system ang system na nagawa namin, kaso may gusto ipakuha na feature si sir sa system.
Yung sa required time , na foor example ilang minutes maluluto ang dish, gusto kasi ipatanggal, nag modify na ako sa codes kaso ayaw parin. Yung iabang code is from my friends at sa internet , pero this time di ko talaga ma kuha paano matanggal ang required time.
pa help po, sa monday na po ang re.defense namin, tsaka last enrol na sa monday :(

ito po ang code, and ang tatanggalin is txtrequired.txt, this is under register button, kung ssan e register niya ang dish na gianawa.


nung una sinubukan ko na gawing optionala nalang ang required time, kasi pag di ka nag input sa required time ay di mag sisave. Kung marunong kayo, plss help.
or tanggalin nalang ang function ng required time. Ay nako. d talaga ako magaling sa ganito, gamit din kasi kami ng code generator. hahay.


- - - Updated - - -

up up up up up up

ano ba database mo? MySQL? SQL Server?
 
BRO...

E HIDE mo nalang yan.. para di makita ng users....

tapos sa reporting hide mo yan.. dont display..

solve problema mo...

- - - Updated - - -

bro... screenshot ng system mo.. we need visual of ur system
 
View attachment 292515
ito po yung ss ng add new dish, ang problem ko kasi is hindi sya optional. I mean, kung hindi na lalagyan ng data ang required time hindi sya nag pro proceed into next step. tsaka error talaga puro ng nag debug ako.. kaya kung may katangian kayo sa mga ganito. tulong po naman :praise::praise::praise:

- - - Updated - - -

ano ba database mo? MySQL? SQL Server?

ms access po database ko

- - - Updated - - -

BRO...

E HIDE mo nalang yan.. para di makita ng users....

tapos sa reporting hide mo yan.. dont display..

solve problema mo...

- - - Updated - - -

bro... screenshot ng system mo.. we need visual of ur system

ito pa ss bro , patulong naman po
View attachment 292518
 

Attachments

  • 1111111111111111111.JPG
    1111111111111111111.JPG
    61 KB · Views: 19
  • 121313.JPG
    121313.JPG
    153.9 KB · Views: 22
View attachment 1163791
ito po yung ss ng add new dish, ang problem ko kasi is hindi sya optional. I mean, kung hindi na lalagyan ng data ang required time hindi sya nag pro proceed into next step. tsaka error talaga puro ng nag debug ako.. kaya kung may katangian kayo sa mga ganito. tulong po naman :praise::praise::praise:

- - - Updated - - -



ms access po database ko

- - - Updated - - -



ito pa ss bro , patulong naman po
View attachment 1163793

bro.. paki add yung sa txtbox=1 para fix na para my value yan.. tapos hide mo txtbox.hide?... para hindi pa fill-out.. para set nayan "1" para di mag error system mo

- - - Updated - - -

suggest lang yong color red dapat same color lang lahat ng botton.
para uniform.

delete background

wag madaming colors bro.. make it profesional..

ung font same dapat.

RED means = Warning or BECAREFUL...

dont use red if not danger to click...
 
Back
Top Bottom