public static bool dgRowDeleting(int _OpCode, string SpName, string _RecFieldID, ref GridView dg, ref GridViewDeleteEventArgs e, ref HtmlGenericControl DivError, ref Label _LblError) { bool _isretval = false; try { string g_strErrorMessage = ""; if (GeneralBL.isEmptyorNull(dg.DataKeys[e.RowIndex].Value) != "") { GeneralBL.Delete(_OpCode, SpName, _RecFieldID, Convert.ToInt32(dg.DataKeys[e.RowIndex].Value), ref g_strErrorMessage, ""); if (g_strErrorMessage.Length > 0) { DivError.Visible = true; _LblError.Text = g_strErrorMessage.Replace("Error : ", ""); } else { _isretval = true; } } else { DivError.Visible = true; _LblError.Text = "No Record Found to delete."; } } catch (Exception exp) { DivError.Visible = true; _LblError.Text = exp.Message; } return(_isretval); }
public static bool dgRowDeleting(int _OpCode, string SpName, string _RecFieldID, string _RecFieldValue, ref HtmlGenericControl DivError, ref Label _LblError) { bool _isretval = false; try { string g_strErrorMessage = ""; GeneralBL.Delete(_OpCode, SpName, _RecFieldID, _RecFieldValue, ref g_strErrorMessage, ""); if (g_strErrorMessage.Length > 0) { DivError.Visible = true; _LblError.Text = g_strErrorMessage.Replace("Error : ", ""); } else { _isretval = true; } } catch (Exception exp) { DivError.Visible = true; _LblError.Text = exp.Message; } return(_isretval); }
public static string DeleteCustomer(string CustomerID) { try { strErrorMessage = strErrorType = ""; GeneralBL.Delete(3, "SPR_Customers", "@CustomerID", CustomerID, ref strErrorMessage, strErrorType); if (strErrorMessage.Length < 1) { return(strErrorMessage); } else { return(strErrorMessage); } } catch (Exception exp) { return(strErrorMessage = exp.Message); } }
public static string DeleteAllCustomer(string checkAll) { try { strErrorMessage = strErrorType = ""; GeneralBL.Delete(13, "SPR_Customers", "@CustomerDel", checkAll, ref strErrorMessage, strErrorType); if (strErrorMessage.Length < 1) { return(strErrorMessage); } else { return(strErrorMessage); } } catch (Exception exp) { return(strErrorMessage = exp.Message); } }
public static string DeleteCategory(string CategoryID) { try { strErrorMessage = strErrorType = ""; GeneralBL.Delete(3, "SPR_ItemsCategory", "@CategoryID", CategoryID, ref strErrorMessage, strErrorType); if (strErrorMessage.Length < 1) { return(strErrorMessage); } else { return(strErrorMessage); } } catch (Exception exp) { return(strErrorMessage = exp.Message); } }
public static string DeleteSuppliers(string SuppliersID) { try { strErrorMessage = strErrorType = ""; GeneralBL.Delete(3, "SPR_Suppliers", "@SuppliersID", SuppliersID, ref strErrorMessage, strErrorType); if (strErrorMessage.Length < 1) { return(strErrorMessage); } else { return(strErrorMessage); } } catch (Exception exp) { return(strErrorMessage = exp.Message); } }