| | |
| | | cmd.Parameters.Add(parameter); |
| | | |
| | | cmd.ExecuteNonQuery(); |
| | | |
| | | |
| | | _strMsg = parameters[2].Value?.ToString() ?? ""; |
| | | _status = Convert.ToInt32(parameters[3].Value ?? -1); |
| | | |
| | | if (int.TryParse(parameters[3].Value?.ToString(), out int status)) |
| | | _status = status; |
| | | else |
| | | _status = -1; |
| | | |
| | | if (_status <= 0) throw new Exception(_strMsg); |
| | | |
| | | return new { |
| | |
| | | cmd.ExecuteNonQuery(); |
| | | |
| | | _strMsg = parameters[3].Value?.ToString() ?? ""; |
| | | _status = Convert.ToInt32(parameters[4].Value ?? -1); |
| | | if (int.TryParse(parameters[4].Value?.ToString(), out int status)) |
| | | _status = status; |
| | | else |
| | | _status = -1; |
| | | |
| | | if (_status <= 0) throw new Exception(_strMsg); |
| | | |
| | |
| | | cmd.ExecuteNonQuery(); |
| | | |
| | | _strMsg = parameters[2].Value?.ToString() ?? ""; |
| | | _status = Convert.ToInt32(parameters[3].Value ?? -1); |
| | | if (int.TryParse(parameters[3].Value?.ToString(), out int status)) |
| | | _status = status; |
| | | else |
| | | _status = -1; |
| | | _weight = parameters[4].Value?.ToString() ?? "0"; |
| | | |
| | | if (_status <= 0) throw new Exception(_strMsg); |
| | |
| | | cmd.ExecuteNonQuery(); |
| | | |
| | | _strMsg = parameters[3].Value?.ToString() ?? ""; |
| | | _status = Convert.ToInt32(parameters[4].Value ?? -1); |
| | | if (int.TryParse(parameters[4].Value?.ToString(), out int status)) |
| | | _status = status; |
| | | else |
| | | _status = -1; |
| | | |
| | | if (_status <= 0) throw new Exception(_strMsg); |
| | | |