public bool AddTCashSlipDetails(TCashSlipDetails TCashSlipdetails) { SqlCommand cmd; cmd = new SqlCommand(); cmd.CommandType = CommandType.StoredProcedure; cmd.CommandText = "AddTCashSlipDetails"; cmd.Parameters.AddWithValue("@CashSlipDetailsNo", TCashSlipdetails.CashSlipDetailsNo); // cmd.Parameters.AddWithValue("@CashSlipNo", TCashSlipdetails.CashSlipNo); cmd.Parameters.AddWithValue("@Note", TCashSlipdetails.Note); cmd.Parameters.AddWithValue("@RSType", TCashSlipdetails.RSType); cmd.Parameters.AddWithValue("@Pieces", TCashSlipdetails.Pieces); cmd.Parameters.AddWithValue("@Amount", TCashSlipdetails.Amount); cmd.Parameters.AddWithValue("@IsActive", TCashSlipdetails.IsActive); cmd.Parameters.AddWithValue("@UserID", TCashSlipdetails.UserID); // cmd.Parameters.AddWithValue("@UserDate", TCashSlipdetails.UserDate); cmd.Parameters.AddWithValue("@CompanyNo", TCashSlipdetails.CompanyNo); commandcollection.Add(cmd); return(true); }
public bool DeleteTCashSlipDetails(TCashSlipDetails TCashSlipdetails) { SqlCommand cmd; cmd = new SqlCommand(); cmd.CommandType = CommandType.StoredProcedure; cmd.CommandText = "DeleteTCashSlipDetails"; cmd.Parameters.AddWithValue("@CashSlipDetailsNo", TCashSlipdetails.CashSlipDetailsNo); commandcollection.Add(cmd); return(true); }