public static void afterLineDeleteEvent(object sender, SaleEventArgs Args, ref ApplicationDbContext db) { if (_afterLineDelete != null) { _afterLineDelete(sender, Args, ref db); } }
public static void afterHeaderSaveEvent(object sender, SaleEventArgs Args, ref ApplicationDbContext db) { if (_afterHeaderSave != null) { _afterHeaderSave(sender, Args, ref db); } }
public static void onHeaderReviewEvent(object sender, SaleEventArgs Args, ref ApplicationDbContext db) { if (_onHeaderReview != null) { _onHeaderReview(sender, Args, ref db); } }
public static void onLineSaveBulkEvent(object sender, SaleEventArgs Args, ref ApplicationDbContext db) { if (_onLineSaveBulk != null) { _onLineSaveBulk(sender, Args, ref db); } }
void SaleDispatchEvents__onHeaderSubmit(object sender, SaleEventArgs EventArgs, ref ApplicationDbContext db) { int Id = EventArgs.DocId; string ConnectionString = (string)System.Web.HttpContext.Current.Session["DefaultConnectionString"]; try { using (SqlConnection sqlConnection = new SqlConnection(ConnectionString)) { sqlConnection.Open(); using (SqlCommand cmd = new SqlCommand("Web.sp_CreatePurchaseOnBranch")) { cmd.CommandType = CommandType.StoredProcedure; cmd.Connection = sqlConnection; cmd.Parameters.AddWithValue("@SaleDispatchHeaderId", Id); cmd.CommandTimeout = 1000; cmd.ExecuteNonQuery(); } } } catch (Exception ex) { throw ex; } }
public static bool beforeLineSaveBulkEvent(object sender, SaleEventArgs Args, ref ApplicationDbContext db) { if (_beforeLineSaveBulk != null) { return(_beforeLineSaveBulk(sender, Args, ref db)); } else { return(true); } }
public static bool beforeHeaderDeleteEvent(object sender, SaleEventArgs Args, ref ApplicationDbContext db) { if (_beforeHeaderDelete != null) { return(_beforeHeaderDelete(sender, Args, ref db)); } else { return(true); } }
void SalesDocument_ItemSold(object sender, SaleEventArgs e) { display.ChangeDocumentStatus((ISalesDocument)sender, DisplayDocumentStatus.OnStart); }
void PackingEvents__onHeaderSave(object sender, SaleEventArgs EventArgs, ref ApplicationDbContext db) { }
bool PackingEvents__beforeLineSaveBylkDataValidation(object sender, SaleEventArgs EventArgs, ref ApplicationDbContext db) { return(true); }
bool SaleDispatchEvents__beforeLineDeleteDataValidation(object sender, SaleEventArgs EventArgs, ref ApplicationDbContext db) { return(true); }
void SaleDeliveryEvents__onHeaderSave(object sender, SaleEventArgs EventArgs, ref ApplicationDbContext db) { }
void SaleDeliveryEvents__onLineSaveBulk(object sender, SaleEventArgs EventArgs, ref ApplicationDbContext db) { }
bool SaleDeliveryEvents__beforeLineSaveDataValidation(object sender, SaleEventArgs EventArgs, ref ApplicationDbContext db) { return(true); }
private void SaleDeliveryEvents_afterHeaderSubmitEvent(object sender, SaleEventArgs EventArgs, ref ApplicationDbContext db) { }
private void PackingEvents_afterHeaderSubmitEvent(object sender, SaleEventArgs EventArgs, ref ApplicationDbContext db) { throw new NotImplementedException(); }
void SaleDispatchEvents__onHeaderDelete(object sender, SaleEventArgs EventArgs, ref ApplicationDbContext db) { }
void PackingEvents__onLineSaveBulk(object sender, SaleEventArgs EventArgs, ref ApplicationDbContext db) { }
void SaleDispatchEvents__onLineSave(object sender, SaleEventArgs EventArgs, ref ApplicationDbContext db) { }
void SalesDocument_ItemSold(object sender, SaleEventArgs e) { ISalesDocument doc = sender as ISalesDocument; display.ChangeDocumentStatus(doc, DisplayDocumentStatus.OnStart); }
void SaleInvoiceEvents__onLineDelete(object sender, SaleEventArgs EventArgs, ref ApplicationDbContext db) { }