public static string AjaxSaveQuery(string SubmissionID, string VersionNo, /*string DeptCode, string DeptPriorStatus,*/ string QueryType)
        {
            Valuation val = new Valuation();
            if (val.validate(QueryType))
            {
                if (DeptPriorStatus >= 1) { Query.Log(Convert.ToInt32(SubmissionID), Convert.ToInt16(VersionNo), Convert.ToInt16(DeptCode), Convert.ToInt32(DeptPriorStatus), Convert.ToInt32(QueryType)); val.errorMessage = "Saved"; }

                //this.Close();
                val.errorMessage = "Error";
            }
            return val.errorMessage;
        }