/// <summary> /// /// </summary> /// <returns>int</returns> public static int usp_Init() { SqlCommand cmd = DC.NewCmd_usp_Init(); SQLHelper.ExecuteNonQuery(cmd); string s = cmd.Parameters["RETURN_VALUE"].Value.ToString(); if (string.IsNullOrEmpty(s)) { return(0); } return(int.Parse(s)); }
/// <summary> /// /// </summary> /// <returns>int</returns> public static int usp_Init(DI.usp_InitParameters p) { SqlCommand cmd = DC.NewCmd_usp_Init(p); SQLHelper.ExecuteNonQuery(cmd); string s = cmd.Parameters["RETURN_VALUE"].Value.ToString(); if (string.IsNullOrEmpty(s)) { p.SetReturnValue(0); return(0); } else { p.SetReturnValue(int.Parse(s)); return(p._ReturnValue); } }