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);
     }
 }
Example #5
0
        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);
     }
 }
Example #8
0
 void SalesDocument_ItemSold(object sender, SaleEventArgs e)
 {
     display.ChangeDocumentStatus((ISalesDocument)sender, DisplayDocumentStatus.OnStart);
 }
Example #9
0
 void PackingEvents__onHeaderSave(object sender, SaleEventArgs EventArgs, ref ApplicationDbContext db)
 {
 }
Example #10
0
 bool PackingEvents__beforeLineSaveBylkDataValidation(object sender, SaleEventArgs EventArgs, ref ApplicationDbContext db)
 {
     return(true);
 }
Example #11
0
 bool SaleDispatchEvents__beforeLineDeleteDataValidation(object sender, SaleEventArgs EventArgs, ref ApplicationDbContext db)
 {
     return(true);
 }
Example #12
0
 void SaleDeliveryEvents__onHeaderSave(object sender, SaleEventArgs EventArgs, ref ApplicationDbContext db)
 {
 }
Example #13
0
 void SaleDeliveryEvents__onLineSaveBulk(object sender, SaleEventArgs EventArgs, ref ApplicationDbContext db)
 {
 }
Example #14
0
 bool SaleDeliveryEvents__beforeLineSaveDataValidation(object sender, SaleEventArgs EventArgs, ref ApplicationDbContext db)
 {
     return(true);
 }
Example #15
0
 private void SaleDeliveryEvents_afterHeaderSubmitEvent(object sender, SaleEventArgs EventArgs, ref ApplicationDbContext db)
 {
 }
Example #16
0
 private void PackingEvents_afterHeaderSubmitEvent(object sender, SaleEventArgs EventArgs, ref ApplicationDbContext db)
 {
     throw new NotImplementedException();
 }
Example #17
0
 void SaleDispatchEvents__onHeaderDelete(object sender, SaleEventArgs EventArgs, ref ApplicationDbContext db)
 {
 }
Example #18
0
 void PackingEvents__onLineSaveBulk(object sender, SaleEventArgs EventArgs, ref ApplicationDbContext db)
 {
 }
Example #19
0
 void SaleDispatchEvents__onLineSave(object sender, SaleEventArgs EventArgs, ref ApplicationDbContext db)
 {
 }
Example #20
0
        void SalesDocument_ItemSold(object sender, SaleEventArgs e)
        {
            ISalesDocument doc = sender as ISalesDocument;

            display.ChangeDocumentStatus(doc, DisplayDocumentStatus.OnStart);
        }
Example #21
0
 void SaleInvoiceEvents__onLineDelete(object sender, SaleEventArgs EventArgs, ref ApplicationDbContext db)
 {
 }