Ejemplo n.º 1
0
    public void LoadReturn()
    {
        Return e = new Return();

        if (ReturnID == 0)
        {
            imgOrder.ImageUrl = "none";
            btnOk.Enabled     = true;
        }
        else
        {
            e = ReturnBLL.Get(ReturnID);
            imgOrder.ImageUrl = BarcodeBLL.Url4Return(e.ID);
            btnOk.Enabled     = false;
        }

        txtNote.Text = e.Note;

        txtDate.Text = e.Date.ToStringVN_Hour();

        PackOrderList = e.PackOrders.Select(r => r.ID).ToList();

        urlPrint.NavigateUrl = ResolveClientUrl(string.Format("~/Store/PrintReturn.aspx?ReturnID={0}", e.ID));

        GridViewPack.DataBind();

        CurrentDIN             = "";
        imgCurrentDIN.ImageUrl = "none";

        GridViewSum.DataBind();
    }
Ejemplo n.º 2
0
    public void LoadReturn()
    {
        Return e = new Return();

        if (ReturnID == 0)
        {
            imgOrder.ImageUrl = "none";
            btnOk.Enabled     = true;
        }
        else
        {
            e = ReturnBLL.Get(ReturnID);
            imgOrder.ImageUrl = BarcodeBLL.Url4Return(e.ID);
            btnOk.Enabled     = false;
        }

        txtNote.Text = e.Note;

        txtDate.Text = e.Date.ToStringVN_Hour();

        PackOrderList = e.PackOrders.Select(r => r.ID).ToList();

        GridViewPack.DataBind();

        CurrentDIN             = "";
        imgCurrentDIN.ImageUrl = "none";
    }
Ejemplo n.º 3
0
    public void LoadReturn()
    {
        if (returnObj != null)
        {
            imgBarcode.ImageUrl = BarcodeBLL.Url4Return(returnObj.ID);

            txtNote.Text  = returnObj.Note;
            lblActor.Text = returnObj.Actor;

            if (returnObj.Date != null)
            {
                txtDate.Text = returnObj.Date.ToStringVN_Hour();
            }
        }
    }