File manager - Edit - G:/PleskVhosts/indiaminerals.in/tlt.INFOFIXDEVELOPERS.COM/admin/PurchaseList.aspx.cs
Back
using Business; using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using WebApp.LIBS; namespace WebApp.admin { public partial class PurchaseList : BasePageClass { protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { fromDate.Text = Common.DateTimeNow().ToString("dd/MM/yyyy"); ToDate.Text = Common.DateTimeNow().ToString("dd/MM/yyyy"); if (fromDate.Text.Length > 0 && ToDate.Text.Length > 0) { var fdate = Common.DateConvertMultimatch(fromDate.Text); var tdate = Common.DateConvertMultimatch(ToDate.Text); int CompId = SiteSession.CompnayId; var Sale = Global.Context.Purchases.AsEnumerable().Where(s => s.Date.Value >= fdate && s.Date.Value <= tdate && s.CompnayId == CompId).OrderByDescending(p => p.PurchaseId).ToList(); Common.BindControl(gvcompnay, Sale.ToList()); } } } protected void savecompnay_Click(object sender, EventArgs e) { if (fromDate.Text.Length > 0 && ToDate.Text.Length > 0) { var fdate = Common.DateConvertMultimatch(fromDate.Text); var tdate = Common.DateConvertMultimatch(ToDate.Text); int CompId = SiteSession.CompnayId; var Sale = Global.Context.Purchases.AsEnumerable().Where(s => s.Date.Value >= fdate && s.Date.Value <= tdate && s.CompnayId == CompId).OrderByDescending(p => p.PurchaseId).ToList(); Common.BindControl(gvcompnay, Sale.ToList()); } } } }
| ver. 1.4 |
Github
|
.
| PHP 7.3.33 | Generation time: 0.04 |
proxy
|
phpinfo
|
Settings