public void LoadDelete() { Delete e = new Delete(); if (DeleteID == 0) { imgOrder.ImageUrl = "none"; btnOk.Enabled = true; } else { e = DeleteBLL.Get(DeleteID); imgOrder.ImageUrl = BarcodeBLL.Url4Delete(e.ID); btnOk.Enabled = false; } txtNote.Text = e.Note; txtDate.Text = e.Date.ToStringVN_Hour(); PackList = e.Packs.Select(r => r.ID).ToList(); GridViewPack.DataBind(); CurrentDIN = ""; imgCurrentDIN.ImageUrl = "none"; }
public void LoadDelete() { Delete e = new Delete(); if (DeleteID == 0) { imgOrder.ImageUrl = "none"; btnOk.Enabled = true; } else { e = DeleteBLL.Get(DeleteID); imgOrder.ImageUrl = BarcodeBLL.Url4Delete(e.ID); btnOk.Enabled = false; } txtNote.Text = e.Note; txtDate.Text = e.Date.ToStringVN_Hour(); PackList = e.Packs.Select(r => r.ID).ToList(); GridViewPack.DataBind(); CurrentDIN = ""; imgCurrentDIN.ImageUrl = "none"; urlPrint.NavigateUrl = ResolveClientUrl(string.Format("~/Store/PrintDelete.aspx?DeleteID={0}", e.ID)); GridViewSum.DataBind(); }
public void LoadOrder() { if (delete != null) { imgBarcode.ImageUrl = BarcodeBLL.Url4Delete(delete.ID); txtNote.Text = delete.Note; lblActor.Text = delete.Actor; if (delete.Date != null) { txtDate.Text = delete.Date.ToStringVN_Hour(); } } }