public CProfitShare(CommonLiquidationEntity entity, int iSiteID, int iBatchNo) : this(entity) { _objCommonLiquidation = entity; SiteId = iSiteID; string sSettingValue = string.Empty; CommonLiquidationDataContext objCommonLiquidation = new CommonLiquidationDataContext(BMC.Business.CashDeskOperator.CommonUtilities.ExchangeConnectionString); if (!Settings.ExpenseShare) { txtblkExpenseShareAmount.Visibility = Visibility.Collapsed; txtExpenseShareAmount.Visibility = Visibility.Collapsed; txtblkExpenseShareGroup.Visibility = Visibility.Collapsed; cboExpenseShareGroup.Visibility = Visibility.Collapsed; } if (!Settings.WriteOffShare) { txtblkWriteOffExpense.Visibility = Visibility.Collapsed; txtWriteOffExpense.Visibility = Visibility.Collapsed; } LoadProfitShareGroup(); LoadExpenseShareGroup(); LoadPayPeriods(); LoadAmounts(); EnableDisableControls(); }
//private void CalculateCarriedForwardAmount() //{ // try // { // Entity.CarriedForwardExpense = Entity.Retailer_Share.GetValueOrDefault() >= 0 ? 0 : Math.Abs(Entity.Retailer_Share.GetValueOrDefault()); // } // catch (Exception ex) // { // ExceptionManager.Publish(ex); // } //} private void FetchLiquidation() { CommonLiquidationDataContext objCommonLiquidation = new CommonLiquidationDataContext(CommonUtilities.ExchangeConnectionString); List <CommonCollectionLiquidation> details = objCommonLiquidation.GetLiquidationSummary(_BatchNo, null).ToList(); foreach (var liquiddetail in details) { if (_entity != null) { _entity.Liquidation_Date = liquiddetail.Liquidation_Date; _entity.Retailer_Name = liquiddetail.Retailer_Name; _entity.Net = liquiddetail.Net; _entity.Net_Percentage = liquiddetail.Net_Percentage; _entity.Balance_Due = liquiddetail.Balance_Due; _entity.Retailer = liquiddetail.Retailer; _entity.Retailer_Negative_Net = liquiddetail.Retailer_Negative_Net; _entity.Tickets_Expected = liquiddetail.Tickets_Expected; _entity.Tickets_Paid = liquiddetail.Tickets_Paid; _entity.Advance_To_Retailer = liquiddetail.Advance_To_Retailer; _entity.Retailer_Share = liquiddetail.Retailer_Share; _entity.RetailerExpenseShareAmount = liquiddetail.RetailerExpenseShareAmount; _entity.FixedExpenseAmount = liquiddetail.FixedExpenseAmount; _entity.CarriedForwardExpense = liquiddetail.CarriedForwardExpense; _entity.PrevCarriedForwardExpense = liquiddetail.PrevCarriedForwardExpense; _entity.RetailerShareBeforeFixedExpense = liquiddetail.RetailerShareBeforeFixedExpense; } else { _entity = liquiddetail; } } }
public CProfitShare(CommonLiquidationEntity objCommonReadLiquidation) { this.objCommonLiquidation = objCommonReadLiquidation; InitializeComponent(); LoadProfitShareGroup(); LoadExpenseShareGroup(); LoadPayPeriods(); LoadAmounts(); EnableDisableControls(); }
public CReadLiquidation(List <CommonLiquidationEntity> lstCommonLiquidation, string ReadDate) { try { objCommonLiquidation = lstCommonLiquidation[0]; sReadDate = ReadDate; InitializeComponent(); } catch (Exception ex) { ExceptionManager.Publish(ex); } }
public CReadLiquidation(List<CommonLiquidationEntity> lstCommonLiquidation,string ReadDate) { try { objCommonLiquidation = lstCommonLiquidation[0]; sReadDate = ReadDate; InitializeComponent(); } catch (Exception ex) { ExceptionManager.Publish(ex); } }
private void btnProfitShare_Click(object sender, RoutedEventArgs e) { try { var objProfitShare = new CProfitShare(objCommonLiquidation); objProfitShare.Owner = this; objProfitShare.ShowDialog(); this.objCommonLiquidation = objProfitShare.objCommonLiquidation; LoadLiquidationDetails(); } catch (Exception ex) { ExceptionManager.Publish(ex); } }
public int SaveLiquidation(CommonLiquidationEntity objCommonLiquidationEntity) { return(oReadLiquidationbusiness.SaveLiquidation(objCommonLiquidationEntity)); }
public int SaveLiquidation(CommonLiquidationEntity objCommonLiquidationEntity) { return oLiquidationUtility.SaveLiquidation(CommonDataAccess.ExchangeConnectionString, null, objCommonLiquidationEntity); }
//private void CalculateCarriedForwardAmount() //{ // try // { // Entity.CarriedForwardExpense = Entity.Retailer_Share.GetValueOrDefault() >= 0 ? 0 : Math.Abs(Entity.Retailer_Share.GetValueOrDefault()); // } // catch (Exception ex) // { // ExceptionManager.Publish(ex); // } //} private void FetchLiquidation() { CommonLiquidationDataContext objCommonLiquidation = new CommonLiquidationDataContext(CommonUtilities.ExchangeConnectionString); List<CommonCollectionLiquidation> details = objCommonLiquidation.GetLiquidationSummary(_BatchNo, null).ToList(); foreach (var liquiddetail in details) { if (_entity != null) { _entity.Liquidation_Date = liquiddetail.Liquidation_Date; _entity.Retailer_Name = liquiddetail.Retailer_Name; _entity.Net = liquiddetail.Net; _entity.Net_Percentage = liquiddetail.Net_Percentage; _entity.Balance_Due = liquiddetail.Balance_Due; _entity.Retailer = liquiddetail.Retailer; _entity.Retailer_Negative_Net = liquiddetail.Retailer_Negative_Net; _entity.Tickets_Expected = liquiddetail.Tickets_Expected; _entity.Tickets_Paid = liquiddetail.Tickets_Paid; _entity.Advance_To_Retailer = liquiddetail.Advance_To_Retailer; _entity.Retailer_Share = liquiddetail.Retailer_Share; _entity.RetailerExpenseShareAmount = liquiddetail.RetailerExpenseShareAmount; _entity.FixedExpenseAmount = liquiddetail.FixedExpenseAmount; _entity.CarriedForwardExpense = liquiddetail.CarriedForwardExpense; _entity.PrevCarriedForwardExpense = liquiddetail.PrevCarriedForwardExpense; _entity.RetailerShareBeforeFixedExpense = liquiddetail.RetailerShareBeforeFixedExpense; } else { _entity = liquiddetail; } } }
public int SaveLiquidation(CommonLiquidationEntity objCommonLiquidationEntity) { return(oLiquidationUtility.SaveLiquidation(CommonDataAccess.ExchangeConnectionString, null, objCommonLiquidationEntity)); }
public int SaveLiquidation(CommonLiquidationEntity objCommonLiquidationEntity) { return oReadLiquidationbusiness.SaveLiquidation(objCommonLiquidationEntity); }