예제 #1
0
        public void DeleteDocument(CouchVo sourceVO, string docID, out string msg, out bool deleted)
        {
            msg     = "";
            deleted = false;
            setCouchValues(sourceVO);
            var CouchConnectorObj = new SecuredCouchConnector(hostname, portName, secWebPort, dbName, userid, pass, isSec);

            deleted = CouchConnectorObj.Document_Delete(docID);
            msg     = CouchConnectorObj.Message;
        }
예제 #2
0
        public CouchVo couchLogin(CouchVo vo1)
        {
            setCouchValues(vo1);
            bool   result   = false;
            string msg      = string.Empty;
            string fileName = "C:\\Program Files\\Phase2App\\templates\\Report031620110858461303709.pdf";
            string docID    = null;

            try
            {
                docID = couchLoginVerification(fileName, out msg, out result);
            }
            catch (Exception)
            {
                vo1.errorMSG = msg;
                vo1.isError  = result;
                return(vo1);
            }
            if (!result)
            {
                vo1.errorMSG = msg;
                vo1.isError  = true;
                return(vo1);
            }

            Console.WriteLine("Added doc :" + docID);
            SecuredCouchConnector CouchConnectorObj = new SecuredCouchConnector(hostname, portName, secWebPort, dbName, userid, pass, isSec);

            result = CouchConnectorObj.Document_Delete(GldocName);
            //CouchVo vo = new CouchVo();
            vo1.errorMSG = "";
            if (!result)
            {
                vo1.isError = true;
            }
            return(vo1);
        }