/// <summary>
    /// create new srr log file
    /// </summary>
    /// <param name="consignmentref">string</param>
    /// <returns></returns>
    protected int append_note(string consignmentref)
    {
        int _id = 0;

        try
        {
            //save
            DespatchNote _note = new DespatchNote();
            _note.DespatchRef = consignmentref;
            _note.CreatedBy   = Page.Session["user"] != null ? (string)((UserClass)Page.Session["user"]).UserName : "";
            _note.CreatedDate = DateTime.Now;
            _note.Save();
            //return ident
            _id = wwi_func.vint(_note.GetPrimaryKeyValue().ToString());
        }
        catch (Exception ex)
        {
            this.dxlblErr.Text          = ex.Message.ToString();
            this.dxpnlErr.ClientVisible = true;
        }

        return(_id);
    }
    /// <summary>
    /// create new srr log file
    /// </summary>
    /// <param name="consignmentref">string</param>
    /// <returns></returns>
    protected int append_note(string consignmentref)
    {
        int _id = 0;

        try
        {
            //save 
            DespatchNote _note = new DespatchNote();
            _note.DespatchRef = consignmentref;
            _note.CreatedBy = Page.Session["user"] != null ? (string)((UserClass)Page.Session["user"]).UserName : "";
            _note.CreatedDate = DateTime.Now;
            _note.Save();
            //return ident
            _id = wwi_func.vint(_note.GetPrimaryKeyValue().ToString());
        }
        catch (Exception ex)
        {
            this.dxlblErr.Text = ex.Message.ToString();
            this.dxpnlErr.ClientVisible = true;
        }

        return _id;
    }