public string SelectDocTypeAssociations(int PgID, int ObjID, string DocTypeCode, int iType, int ByID)
        {
            Commands cmd     = new Commands();
            string   s       = string.Empty;
            int      iResult = 0;

            try
            {
                DocsForms df = new DocsForms();
                DataTable dt = df.SelectDocTypeAssociations(DocTypeCode, iType, ByID);
                s       = GenUtilities.JSON(dt);
                iResult = cmd.LogAjaxCall(PgID, ObjID, 1, "SelectDocTypeAssociations", s.Length, ByID);
                return(s);
            }
            catch (Exception ex)
            {
                iResult = cmd.LogApplicationError("Doc Type Assocs", 0, ByID, ex.Message, 0, "SelectDocTypeAssociations function", ByID);
                JavaScriptSerializer js = new JavaScriptSerializer();
                var response            = new { success = "false", message = ex.Message };
                return(response.ToJSON());
            }
        }
        public string SelectDocumentStatusChangeList(int PgID, int ObjID, int ReqID, int InvReqID, int Sort, int ByID)
        {
            Commands cmd     = new Commands();
            string   s       = string.Empty;
            int      iResult = 0;

            try
            {
                DocsForms df = new DocsForms();
                DataTable dt = df.SelectDocumentStatusChangeList(ReqID, InvReqID, Sort, ByID);
                s       = GenUtilities.JSON(dt);
                iResult = cmd.LogAjaxCall(PgID, ObjID, 1, "SelectDocumentStatusChangeList", s.Length, ByID);
                return(s);
            }
            catch (Exception ex)
            {
                iResult = cmd.LogApplicationError("Mill Cmt Date Range", 0, ByID, ex.Message, 0, "SelectDocumentStatusChangeList function", ByID);
                JavaScriptSerializer js = new JavaScriptSerializer();
                var response            = new { success = "false", message = ex.Message };
                return(response.ToJSON());
            }
        }
Example #3
0
        public string DeleteInvRequestLine(int PgID, int ObjID, int InvRequestID, int ItemNbr, int LineID, int ByID)
        {
            Commands cmd     = new Commands();
            string   s       = string.Empty;
            int      iResult = 0;

            try
            {
                DocsForms df = new DocsForms();
                DataTable dt = df.DeleteInvRequestLine(InvRequestID, ItemNbr, LineID, ByID);
                s       = GenUtilities.JSON(dt);
                iResult = cmd.LogAjaxCall(PgID, ObjID, 1, "DeleteInvRequestLine", s.Length, ByID);
                return(s);
            }
            catch (Exception ex)
            {
                iResult = cmd.LogApplicationError("Del InvReq Line", LineID, ByID, ex.Message, 0, "DeleteInvRequestLine function", ByID);
                JavaScriptSerializer js = new JavaScriptSerializer();
                var response            = new { success = "false", message = ex.Message };
                return(response.ToJSON());
            }
        }