Ejemplo n.º 1
0
        private void DecreaseTicketNo(object sender, EventArgs e)
        {
            if (TicketNumbers > 1)
            {
                TicketNumbers--;
                NoOfTickets.Text   = TicketNumbers.ToString();
                TotalAmount        = (TicketAmount * TicketNumbers);
                AmountPayable.Text = TotalAmount.ToString();
                TaazaRedemed       = TicketNumbers * TaazaCashPerTicket;

                if (TaazaRedemed <= WalletBalance && TaazaRedemed <= TaazaCashLimit)
                {
                    TaazaPayable.Text = TaazaRedemed.ToString();
                }
                else
                {
                    TaazaRedemed      = (WalletBalance < TaazaCashLimit) ? WalletBalance : TaazaCashLimit;
                    TaazaPayable.Text = TaazaRedemed.ToString();
                }

                if ((TotalAmount - TaazaRedemed) >= 0)
                {
                    NetPayable.Text = (TotalAmount - TaazaRedemed).ToString();
                }
            }
        }
Ejemplo n.º 2
0
        public override FileInfo GenerateBankFile()
        {
            string[] bankFileHeader = new string[2];
            bankFileHeader[0] = "H";
            bankFileHeader[1] = "P";

            string bankFileHeaderDetail = string.Join(FIELD_DELIMITER, bankFileHeader);
            //if (bankFileHeaderDetail.Length != 11)
            //    throw new Exception("Incorrect Bank File Header Length:\r\n" + bankFileHeaderDetail);
            string bankFileData = bankFileHeaderDetail + RECORD_DELIMITER;

            foreach (GenericBankFileDetail bankFileDetail in BankFileDetails)
            {
                bankFileData += GenerateBankFileDetail(bankFileDetail) + RECORD_DELIMITER;
            }

            string[] bankFileFooter = new string[3];
            bankFileFooter[0] = "T";
            bankFileFooter[1] = RecordCount.ToString("0");
            bankFileFooter[2] = TotalAmount.ToString("0.00");
            string bankFileFooterDetail = string.Join(FIELD_DELIMITER, bankFileFooter);

            //if (bankFileFooterDetail.Length != 34)
            //    throw new Exception("Incorrect Bank File Header Length:\r\n" + bankFileFooterDetail);
            bankFileData += bankFileFooterDetail + RECORD_DELIMITER;

            FileInfo     result = GenerateTempFileName();
            StreamWriter writer = new StreamWriter(result.OpenWrite());

            writer.Write(bankFileData);
            writer.Close();
            return(result);
        }
Ejemplo n.º 3
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (Session["ClientID"] == null)
     {
         Session["FromOrder"] = true;
         Response.Redirect("ServiceLogin.aspx");
     }
     if (!IsPostBack)
     {
         InitPage();
         binddata();
         var       DC         = new DataClassesDataContext();
         tblClient ClientData = DC.tblClients.Single(ob => ob.ClientID == Convert.ToInt32(Session["ClientID"]));
         txtfnm.Text     = ClientData.FirstName;
         txtlnm.Text     = ClientData.LastName;
         txtcontact.Text = ClientData.ContactNo;
         txtemail.Text   = ClientData.Email;
         tblAddress AddressData = DC.tblAddresses.Single(ob => ob.AddressID == ClientData.AddressID);
         txtShippingAddress.Text         = AddressData.Address;
         txtShippingAddressLandmark.Text = AddressData.Landmark;
         txtBillingAddress.Text          = AddressData.Address;
         txtBillingAddressLandmark.Text  = AddressData.Landmark;
         //hdnAddress.Value = AddressData.Address + ", " + AddressData.Landmark;
         bindCheckOutData();
         ltrTotalAmount.Text    = TotalAmount.ToString();
         ltrTotalQty.Text       = TotalQuentity.ToString();
         ltrTotalAmountO.Text   = TotalAmount.ToString();
         ltrTotalQtyO.Text      = TotalQuentity.ToString();
         Session["TotalAmount"] = TotalAmount;
     }
 }
Ejemplo n.º 4
0
        public override int GetHashCode()
        {
            var hashCode = -710035858;

            hashCode = hashCode * -1521134295 + LotteryId.GetHashCode();
            hashCode = hashCode * -1521134295 + DateRealized.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(City);

            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(UF);

            hashCode = hashCode * -1521134295 + Winners5.GetHashCode();
            hashCode = hashCode * -1521134295 + Average5.GetHashCode();
            hashCode = hashCode * -1521134295 + IsAcumlated5.GetHashCode();
            hashCode = hashCode * -1521134295 + Acumulated5.GetHashCode();
            hashCode = hashCode * -1521134295 + Winners4.GetHashCode();
            hashCode = hashCode * -1521134295 + Average4.GetHashCode();
            hashCode = hashCode * -1521134295 + IsAcumlated4.GetHashCode();
            hashCode = hashCode * -1521134295 + Acumulated4.GetHashCode();
            hashCode = hashCode * -1521134295 + Winners3.GetHashCode();
            hashCode = hashCode * -1521134295 + Average3.GetHashCode();
            hashCode = hashCode * -1521134295 + IsAcumlated3.GetHashCode();
            hashCode = hashCode * -1521134295 + Acumulated3.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <List <string> > .Default.GetHashCode(Dozens);

            hashCode = hashCode * -1521134295 + TotalAmount.GetHashCode();
            hashCode = hashCode * -1521134295 + EstimatedPrize.GetHashCode();
            return(hashCode);
        }
Ejemplo n.º 5
0
        public override void Encode()
        {
            encodeBuf.Clear();

            base.Decode();

            encodeBuf.AddRange(AddString(TxnType, 2));
            encodeBuf.AddRange(AddString(DeviceId, 8));

            encodeBuf.AddRange(AddString(OperatorId, 6));
            encodeBuf.AddRange(AddString(ShiftId.PadLeft(10, '0'), 10));
            encodeBuf.AddRange(AddString(SerialNumber.PadLeft(4, '0'), 4));

            encodeBuf.AddRange(AddString(TxnTime, 14));

            encodeBuf.AddRange(AddString(StationId, 4));

            encodeBuf.AddRange(AddString(DestinationStationId, 4));

            encodeBuf.AddRange(AddString(ReportDate, 8));

            encodeBuf.AddRange(AddString(TicketMainType, 2));

            encodeBuf.AddRange(AddString(TicketSubType, 2));

            encodeBuf.AddRange(AddString(UnitPrice.PadLeft(16, '0'), 16));

            encodeBuf.AddRange(AddString(TotalAmount.PadLeft(4, '0'), 4));

            encodeBuf.AddRange(AddString(TxTotalAmt.PadLeft(16, '0'), 16));

            encodeBuf.AddRange(AddString(ManualId, 10));

            encodeBuf.AddRange(AddString(Spare.PadLeft(4, '0'), 4));
        }
Ejemplo n.º 6
0
        public override int GetHashCode()
        {
            var hashCode = 1711522462;

            hashCode = hashCode * -1521134295 + LotteryId.GetHashCode();
            hashCode = hashCode * -1521134295 + DateRealized.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <List <int> > .Default.GetHashCode(Dozens);

            hashCode = hashCode * -1521134295 + TotalAmount.GetHashCode();
            hashCode = hashCode * -1521134295 + Winners15.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(City);

            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(UF);

            hashCode = hashCode * -1521134295 + Winners14.GetHashCode();
            hashCode = hashCode * -1521134295 + Winners13.GetHashCode();
            hashCode = hashCode * -1521134295 + Winners12.GetHashCode();
            hashCode = hashCode * -1521134295 + Winners11.GetHashCode();
            hashCode = hashCode * -1521134295 + AverageAmount15.GetHashCode();
            hashCode = hashCode * -1521134295 + AverageAmount14.GetHashCode();
            hashCode = hashCode * -1521134295 + AverageAmount13.GetHashCode();
            hashCode = hashCode * -1521134295 + AverageAmount12.GetHashCode();
            hashCode = hashCode * -1521134295 + AverageAmount11.GetHashCode();
            hashCode = hashCode * -1521134295 + Accumulated15.GetHashCode();
            hashCode = hashCode * -1521134295 + EstimatedPrize.GetHashCode();
            hashCode = hashCode * -1521134295 + SpecialAmount.GetHashCode();
            return(hashCode);
        }
Ejemplo n.º 7
0
        private void bDelete_Click(object sender, EventArgs e)
        {
            var result = Product.RemoveProductById(product.Id);

            if (!result)
            {
                MessageBox.Show("Couldn't resresh the data.");
            }
            else
            {
                TotalAmount total = TotalAmount.GetTotalAmount();
                total = TotalAmount.GetTotalAmount();

                if (product.CategoryId != 25)
                {
                    total.Amount += product.Price;
                }
                else
                {
                    total.Amount -= product.Price;
                }

                TotalAmount.ChangeTotalAmount(total);


                this.Close();
            }
        }
Ejemplo n.º 8
0
        protected override string GenerateBankFileFooter()
        {
            string[] bankFileFooter = new string[7];
            bankFileFooter[0] = "CI";
            bankFileFooter[1] = BankCode.PadRight(3).Substring(0, 3) + BranchCode.PadRight(3).Substring(0, 3) + AccountNo.PadRight(8).Substring(0, 8);
            bankFileFooter[2] = this.AccountHolderName.ToUpper().PadRight(50).Substring(0, 50);
            if (FileType == FileTypeEnum.Autopay)
            {
                bankFileFooter[3] = "CR";
                bankFileFooter[4] = ValueDate.ToString("yyyyMMdd");
                bankFileFooter[5] = RecordCount.ToString("00000");
                bankFileFooter[6] = TotalAmount.ToString("0.00").PadLeft(12);

                string bankFileFooterData = string.Join(FIELD_DELIMITER, bankFileFooter);
                if (bankFileFooterData.Length != 93)
                {
                    throw (new Exception("Incorrect Detail Length of Payment for Footer"));
                }
                return(bankFileFooterData);
            }
            else
            {
                bankFileFooter[3] = ValueDate.ToString("yyyyMMdd");
                bankFileFooter[4] = RecordCount.ToString("00000");
                bankFileFooter[5] = TotalAmount.ToString("0.00").PadLeft(12);
                bankFileFooter[6] = string.Empty.PadLeft(7);

                string bankFileFooterData = string.Join(FIELD_DELIMITER, bankFileFooter);
                if (bankFileFooterData.Length != 98)
                {
                    throw (new Exception("Incorrect Detail Length of Payment for Footer"));
                }
                return(bankFileFooterData);
            }
        }
Ejemplo n.º 9
0
        public override int GetHashCode()
        {
            var hashCode = -32890929;

            hashCode = hashCode * -1521134295 + LotteryId.GetHashCode();
            hashCode = hashCode * -1521134295 + DateRealized.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <List <int> > .Default.GetHashCode(Dozens);

            hashCode = hashCode * -1521134295 + TotalAmount.GetHashCode();
            hashCode = hashCode * -1521134295 + Winners5.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(City);

            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(UF);

            hashCode = hashCode * -1521134295 + Average5Numbers.GetHashCode();
            hashCode = hashCode * -1521134295 + Winners4.GetHashCode();
            hashCode = hashCode * -1521134295 + Average4Numbers.GetHashCode();
            hashCode = hashCode * -1521134295 + Winners3.GetHashCode();
            hashCode = hashCode * -1521134295 + Average3Numbers.GetHashCode();
            hashCode = hashCode * -1521134295 + Winners2.GetHashCode();
            hashCode = hashCode * -1521134295 + Average2Numbers.GetHashCode();
            hashCode = hashCode * -1521134295 + IsAccumulated.GetHashCode();
            hashCode = hashCode * -1521134295 + AccumulatedValue.GetHashCode();
            hashCode = hashCode * -1521134295 + EstimatePrize.GetHashCode();
            hashCode = hashCode * -1521134295 + AccumulatedSorteioSaoJoao.GetHashCode();
            return(hashCode);
        }
Ejemplo n.º 10
0
 /// <summary>
 /// Builds a plain text formatted receipt string
 /// </summary>
 /// <returns>A plain text Receipt string</returns>
 public string PrintReceipt()
 {
     ReceiptResult.Append(string.Format("Order Receipt for {0}{1}", Order.Company, Environment.NewLine));
     PrintLines();
     ReceiptResult.AppendLine(string.Format("Sub-Total: {0}", TotalAmount.ToString("C")));
     ReceiptResult.AppendLine(string.Format("Tax: {0}", CalculateTax().ToString("C")));
     ReceiptResult.Append(string.Format("Total: {0}", TotalAmount.ToString("C")));
     return(ReceiptResult.ToString());
 }
Ejemplo n.º 11
0
        protected virtual string GenerateBankFileFooter()
        {
            string[] bankFileFooter = new string[3];
            bankFileFooter[0] = BankCode + BranchCode + AccountNo;
            bankFileFooter[1] = TotalAmount.ToString("0.00");
            bankFileFooter[2] = ValueDate.ToString("yyyyMMdd");

            return(string.Join(FIELD_DELIMITER, bankFileFooter));
        }
Ejemplo n.º 12
0
        public void Register()
        {
            string data = string.Format("{0},{1},{2},{3},{4},{5},{6},{7},{8},{9},{10},{11},{12},{13}", Id, OrderTicketNumber,
                                        Customer, Title, Description, Category, TotalAmount.ToString(), TotalPrePaid.ToString(),
                                        PrePaidTicketNumber.ToString(), DateTime.Now.ToString(), TotalDue.ToString(), CurrencyType.ToString(), ImageName, DueDate.ToString())
                          + Environment.NewLine;

            File.AppendAllText(DbPath, data);
        }
Ejemplo n.º 13
0
 void CalculateTotal()
 {
     lblTotal.Text         = Convert.ToString(TotalRows);
     lblGrossWeight.Text   = Convert.ToString(GrossWeight);
     lblNetWeight.Text     = Convert.ToString(NetWeight);
     lblDiamondWeight.Text = Convert.ToString(DiamondWeight);
     lblDiamondPieces.Text = Convert.ToString(DiamondPieces);
     txtNetAmount.Text     = TotalAmount.ToString(CultureInfo.InvariantCulture);
 }
Ejemplo n.º 14
0
 public void MergeFrom(ClosedMerchantBatch other)
 {
     if (other == null)
     {
         return;
     }
     if (other.entityId_ != null)
     {
         if (entityId_ == null)
         {
             entityId_ = new global::HOLMS.Types.Money.Cards.Transactions.ClosedMerchantBatchIndicator();
         }
         EntityId.MergeFrom(other.EntityId);
     }
     if (other.merchantId_ != null)
     {
         if (merchantId_ == null)
         {
             merchantId_ = new global::HOLMS.Types.Money.Cards.CardMerchantIndicator();
         }
         MerchantId.MergeFrom(other.MerchantId);
     }
     if (other.MerchantName.Length != 0)
     {
         MerchantName = other.MerchantName;
     }
     if (other.Result != 0)
     {
         Result = other.Result;
     }
     if (other.ProcessorBatchId != 0)
     {
         ProcessorBatchId = other.ProcessorBatchId;
     }
     if (other.TransactionCount != 0)
     {
         TransactionCount = other.TransactionCount;
     }
     if (other.totalAmount_ != null)
     {
         if (totalAmount_ == null)
         {
             totalAmount_ = new global::HOLMS.Types.Primitive.MonetaryAmount();
         }
         TotalAmount.MergeFrom(other.TotalAmount);
     }
     if (other.createdAt_ != null)
     {
         if (createdAt_ == null)
         {
             createdAt_ = new global::Google.Protobuf.WellKnownTypes.Timestamp();
         }
         CreatedAt.MergeFrom(other.CreatedAt);
     }
     captures_.Add(other.captures_);
     refunds_.Add(other.refunds_);
 }
Ejemplo n.º 15
0
 /// <summary>
 /// Builds and returns an HTML formated receipt
 /// </summary>
 /// <returns>An HTML formatted receipt</returns>
 public string PrintReceipt()
 {
     ReceiptResult.Append(string.Format("<html><body><h1>Order Receipt for {0}</h1>", Order.Company));
     PrintLines();
     ReceiptResult.Append(string.Format("<h3>Sub-Total: {0}</h3>", TotalAmount.ToString("C")));
     ReceiptResult.Append(string.Format("<h3>Tax: {0}</h3>", CalculateTax().ToString("C")));
     ReceiptResult.Append(string.Format("<h2>Total: {0}</h2>", TotalAmount.ToString("C")));
     ReceiptResult.Append("</body></html>");
     return(ReceiptResult.ToString());
 }
Ejemplo n.º 16
0
        /// <summary>
        /// 获取事件数量
        /// </summary>
        /// <returns></returns>
        public string GetTotalAmount()
        {
            List <Filter> filters      = new List <Filter>();
            TotalAmount   model        = new TotalAmount();
            int           EventsNumber = scmodel.GetAllCitizenServices(filters);
            int           CasesNumber  = dal.GetAllCaseCountApi(filters) + cwdal.GetAllCaseWtajsCount(filters);
            string        json         = "[{'type': 'EventsNumber','value': '" + EventsNumber + "'},{'type': 'CasesNumber','value': '" + CasesNumber + "'}]";

            return(json);
        }
Ejemplo n.º 17
0
 public void ToString(StringBuilder builder)
 {
     builder.Append(ItemRecordTypes.CashLetterHeaderRecord);
     builder.Append(CashLetterId.PadRight(8));
     builder.Append(CashLetterStatus.PadRight(25));
     builder.Append(TotalCount.ToString("D8"));
     builder.Append(TotalAmount.ToString("D14"));
     builder.Append(Reserved.PadRight(23));
     builder.AppendLine();
 }
Ejemplo n.º 18
0
 public override void ToStream(Stream output)
 {
     output.Write(TLUtils.SignatureToBytes(Signature));
     Flags.ToStream(output);
     Currency.ToStream(output);
     TotalAmount.ToStream(output);
     Payload.ToStream(output);
     ToStream(output, _info, Flags, (int)MessageActionPaymentSentMeFlags.Info);
     ToStream(output, _shippingOptionId, Flags, (int)MessageActionPaymentSentMeFlags.ShippingOptionId);
     Charge.ToStream(output);
 }
Ejemplo n.º 19
0
 public void ToString(StringBuilder builder)
 {
     builder.Append(ItemRecordTypes.FileControlRecord);
     builder.Append(TotalCashLetterCount.ToString("D6"));
     builder.Append(TotalRecordsCount.ToString("D8"));
     builder.Append(TotalItemsCount.ToString("D8"));
     builder.Append(TotalAmount.ToString("D16"));
     builder.Append(TotalRejectedAdjustmentsCount.ToString("D8"));
     builder.Append(TotalRejectedAdjustmentsAmount.ToString("D14"));
     builder.Append(Reserved.PadRight(18));
     builder.AppendLine();
 }
Ejemplo n.º 20
0
        private MahalluManager.Model.Expense GetExpense()
        {
            var expense = new MahalluManager.Model.Expense();

            if (!ExpenseCategory.DetailsRequired)
            {
                expense.ToatalAmount = Convert.ToDecimal(TotalAmount?.Trim());
            }
            expense.BillNo       = ExpenseBillNo?.Trim();
            expense.CategoryName = ExpenseCategory.Name?.Trim();
            expense.CreatedOn    = CreatedOn;
            return(expense);
        }
Ejemplo n.º 21
0
        private MahalluManager.Model.Contribution GetContribution()
        {
            var contribution = new MahalluManager.Model.Contribution();

            if (!Category.DetailsRequired)
            {
                contribution.ToatalAmount = Convert.ToDecimal(TotalAmount?.Trim());
            }
            contribution.ReceiptNo    = ContributionReceiptNumber?.Trim();
            contribution.CategoryName = Category.Name?.Trim();
            contribution.CreatedOn    = CreatedOn;
            return(contribution);
        }
Ejemplo n.º 22
0
        public CTable CreateCTableObject()
        {
            CTable o = new CTable("");

            o.SetFieldValue("EXT_FLAG", "A");
            o.SetFieldValue("SELECTION_TYPE", SelectionType);
            o.SetFieldValue("ITEM_ID", ItemID);
            o.SetFieldValue("ITEM_NAME_THAI", ItemName);
            o.SetFieldValue("ITEM_CODE", ItemCode);
            o.SetFieldValue("ITEM_CATEGORY_ID", ItemCategoryID);
            o.SetFieldValue("SERVICE_ID", ServiceID);
            o.SetFieldValue("SERVICE_NAME", ServiceName);
            o.SetFieldValue("SERVICE_CODE", ServiceCode);
            o.SetFieldValue("CODE", Code);
            o.SetFieldValue("NAME", Name);

            o.SetFieldValue("VOUCHER_ID", si.VoucherID);
            o.SetFieldValue("VOUCHER_NAME", si.VoucherName);
            o.SetFieldValue("VOUCHER_CODE", si.VoucherNo);
            o.SetFieldValue("FREE_TEXT", si.FreeText);

            String flag = "N";

            if (IsTray)
            {
                flag = "Y";
            }
            o.SetFieldValue("IS_TRAY", flag);

            String pricedFlag = "N";

            if (IsPriced)
            {
                pricedFlag = "Y";
            }
            o.SetFieldValue("IS_PRICED", pricedFlag);

            o.SetFieldValue("TOTAL_AMOUNT", TotalAmount.ToString());
            o.SetFieldValue("DISCOUNT", Discount.ToString());
            o.SetFieldValue("AMOUNT", Amount.ToString());
            o.SetFieldValue("QUANTITY", Quantity.ToString());
            o.SetFieldValue("BASKET_TYPE", ((int)BasketType).ToString());
            o.SetFieldValue("BUNDLE_AMOUNT", BundledAmount.ToString());
            o.SetFieldValue("GROUP_NO", GroupNo.ToString());
            o.SetFieldValue("SEQUENCE", Sequence.ToString());
            o.SetFieldValue("PROMOTION_CODE", Sequence.ToString());
            o.SetFieldValue("PROMOTION_NAME", Sequence.ToString());
            o.SetFieldValue("DISPLAY_CATEGORY", DisplayCategory.ToString());

            return(o);
        }
        public virtual int _GetUniqueIdentifier()
        {
            var hashCode = 399326290;

            hashCode = hashCode * -1521134295 + (Id?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (TotalAmount?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (Year?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (Month?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (TotalAmountFunded?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (TotalTransactions?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (TotalCreditNotes?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (CNAmount?.GetHashCode() ?? 0);
            return(hashCode);
        }
Ejemplo n.º 24
0
        protected override string GenerateBankFileFooter()
        {
            string[] bankFileFooter = new string[9];
            bankFileFooter[0] = "T";
            bankFileFooter[1] = RecordCount.ToString("00000");
            bankFileFooter[2] = TotalAmount.ToString(string.Empty.PadLeft(13, '0') + ".00").Replace(".", string.Empty);
            bankFileFooter[3] = string.Empty.PadRight(3479);

            string bankFileFooterData = string.Join(FIELD_DELIMITER, bankFileFooter);

            if (bankFileFooterData.Length != 3500)
            {
                throw (new Exception("Incorrect Header Length:" + bankFileFooterData.Length));
            }
            return(bankFileFooterData);
        }
Ejemplo n.º 25
0
    protected void btnpurchase_Click(object sender, EventArgs e)
    {
        int TotalAmount;

        TotalAmount = 0;

        //if (validateControls() == false)
        //    return;

        TotalAmount              = Convert.ToInt32(txtusd.Text) + ((System.Convert.ToInt32(txtusd.Text) * 2) / 100);
        Session["AmtInUsd"]      = Convert.ToString(txtusd.Text);
        Session["AmtInCC"]       = Convert.ToString(txtcoin.Text);
        Session["CCurrency"]     = Convert.ToString(ddrCurrrency.SelectedValue);
        Session["AmtTotalInUSD"] = TotalAmount.ToString();
        Response.Redirect("/Order.aspx");
    }
Ejemplo n.º 26
0
        protected override string GenerateBankFileFooter()
        {
            string[] bankFileFooter = new string[3];
            bankFileFooter[0] = "BULKCSVTRAILER";
            bankFileFooter[1] = RecordCount.ToString();
            bankFileFooter[2] = TotalAmount.ToString("0.00").Replace(".", string.Empty);
            //bankFileFooter[3] = string.Empty.PadRight(3479);

            string bankFileFooterData = "\"" + string.Join(FIELD_DELIMITER, bankFileFooter) + "\"";

            bankFileFooterData = bankFileFooterData.Replace("\"\"", string.Empty);

            //if (bankFileFooterData.Length > 41)
            //    throw (new Exception("Incorrect footer Length:" + bankFileFooterData.Length));
            return(bankFileFooterData);
        }
Ejemplo n.º 27
0
    public List <TotalAmount> AsyncGet_TotalAmount()
    {
        BLL_TRV_TravelRequest objtr          = new BLL_TRV_TravelRequest();
        DataTable             dt_TotalAmount = objtr.Get_TotalAmount();
        List <TotalAmount>    dataList       = new List <TotalAmount>();

        foreach (DataRow dtrow in dt_TotalAmount.Rows)
        {
            TotalAmount details = new TotalAmount();

            details.MonthName = dtrow[1].ToString();

            details.totalAmount = UDFLib.ConvertDecimalToNull(dtrow[4]);

            dataList.Add(details);
        }
        return(dataList);
    }
        public override int GetHashCode()
        {
            int hash = 1;

            if (entityId_ != null)
            {
                hash ^= EntityId.GetHashCode();
            }
            if (merchantId_ != null)
            {
                hash ^= MerchantId.GetHashCode();
            }
            if (MerchantName.Length != 0)
            {
                hash ^= MerchantName.GetHashCode();
            }
            if (Result != 0)
            {
                hash ^= Result.GetHashCode();
            }
            if (ProcessorBatchId != 0)
            {
                hash ^= ProcessorBatchId.GetHashCode();
            }
            if (TransactionCount != 0)
            {
                hash ^= TransactionCount.GetHashCode();
            }
            if (totalAmount_ != null)
            {
                hash ^= TotalAmount.GetHashCode();
            }
            if (createdAt_ != null)
            {
                hash ^= CreatedAt.GetHashCode();
            }
            hash ^= captures_.GetHashCode();
            hash ^= refunds_.GetHashCode();
            if (SequenceNumber != 0)
            {
                hash ^= SequenceNumber.GetHashCode();
            }
            return(hash);
        }
        public string GetOrderInfo(string type)
        {
            string strInfo = "";
            //获取合同信息
            ContractInfo contractInfo = Core.Container.Instance.Resolve <IServiceContractInfo>().GetEntity(OrderID);

            switch (type)
            {
            case "1":
                strInfo = contractInfo.ContractNO;
                break;

            case "2":
                strInfo = ConfigHelper.StoreName;
                break;

            case "3":
                strInfo = ConfigHelper.ContractPhone;
                break;

            case "4":
                strInfo = contractInfo.ProjectName;
                break;

            case "5":
                strInfo = contractInfo.ContactPhone;
                break;

            case "6":
                strInfo = string.Format("安装售后:{0} 量尺设计:{1} 投诉电话:{2} 地址:{3}"
                                        , ConfigHelper.InstallPhone
                                        , ConfigHelper.DesignPhone
                                        , ConfigHelper.ComplaintPhone
                                        , ConfigHelper.Address);
                break;

            case "7":
                strInfo = TotalAmount.ToString();
                break;
            }

            return(strInfo);
        }
Ejemplo n.º 30
0
        public override int GetHashCode()
        {
            int hashCode = 2056600616;

            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Id);

            hashCode = hashCode * -1521134295 + EqualityComparer <User> .Default.GetHashCode(From);

            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Currency);

            hashCode = hashCode * -1521134295 + TotalAmount.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(InvoicePayload);

            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(ShippingOptionId);

            hashCode = hashCode * -1521134295 + EqualityComparer <OrderInfo> .Default.GetHashCode(OrderInfo);

            return(hashCode);
        }