File manager - Edit - G:/PleskVhosts/indiaminerals.in/tlt.INFOFIXDEVELOPERS.COM/admin/Printdoc/changesoprintdirect.aspx.cs
Back
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using WebApp.LIBS; using Business; using System.Data; namespace WebApp.admin.Printdoc { public partial class changesoprintdirect : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { string poId = HttpContext.Current.Session["PoId"] as string; string vehicleNo = HttpContext.Current.Session["VehicleNo"] as string; string supplierId = HttpContext.Current.Session["SupplierId"] as string; DateTime date = TimeZoneInfo.ConvertTimeFromUtc(DateTime.UtcNow, TimeZoneInfo.FindSystemTimeZoneById("India Standard Time")); string invoiceNo = HttpContext.Current.Session["InvoiceNo"] as string; string hamalId = HttpContext.Current.Session["HamalId"] as string; string hamalis = HttpContext.Current.Session["Hamalis"] as string; string locationId = HttpContext.Current.Session["LocationId"] as string; string totalAmount = HttpContext.Current.Session["TotalAmount"] as string; string totalAmounttotal = HttpContext.Current.Session["TotalAmountTotal"] as string; List<SaleItem> biltyArray = HttpContext.Current.Session["BiltyList"] as List<SaleItem>; string customerName = HttpContext.Current.Session["CustomerName"] as string; if (!string.IsNullOrEmpty(invoiceNo)) { GSTNO.Text = SiteSession.CompnayName.GSTNO; CompnayName.Text = SiteSession.CompnayName.CompnayName; AddressData.Text = SiteSession.CompnayName.Address; Phono.Text = SiteSession.CompnayName.PhoneNo.Replace("~", "<br/>"); InvoiceDate.Text = date.ToString("dd-MM-yyyy"); CustomerId.Text = customerName; if (biltyArray != null && biltyArray.Count > 0) { LoopItem.DataSource = biltyArray; LoopItem.DataBind(); TotalSaman.Text = biltyArray.Sum(item => Convert.ToInt32(item.Quantity)).ToString(); TotalBill.Text = biltyArray.Sum(item => Convert.ToDecimal(item.Amount)).ToString(); } else { Response.Write("No items found in BiltyArray."); } } else { Response.Write("No sale data found in session."); } } } private List<SaleItem> ParseBiltyArray(string biltyArray) { return Newtonsoft.Json.JsonConvert.DeserializeObject<List<SaleItem>>(biltyArray); } } }
| ver. 1.4 |
Github
|
.
| PHP 7.3.33 | Generation time: 0.08 |
proxy
|
phpinfo
|
Settings