コード例 #1
0
ファイル: DoExport.cs プロジェクト: Yogeswaran66/Testing
        public Boolean InitialiseAllApiObj()
        {
            Boolean Ret;

            objLogin      = new Login(AppSupport.URL + WFConstants.API_LOGIN);
            objread       = new Read(AppSupport.URL + WFConstants.API_READ);
            objGetWI      = new GetWorkItem(AppSupport.URL + WFConstants.API_GETWORKITEM);
            objGetData    = new GetData(AppSupport.URL + WFConstants.API_GETDATA);
            objUpload     = new Upload(AppSupport.URL + WFConstants.API_UPLOADFILE);
            objDownload   = new Download(AppSupport.URL + WFConstants.API_DOWNLOADFILE);
            objwqu        = new WorkQUpdation(AppSupport.URL + WFConstants.API_WORKQUPDATE);
            objDocumentum = new Documentum(AppSupport.URL);
            objLogout     = new Logout(AppSupport.URL + WFConstants.API_LOGOUT);

            objLogin.LoginId  = AppConfiguration.GetValueFromAppConfig("LoginId", "");
            objLogin.Password = AppConfiguration.GetValueFromAppConfig("Password", "");

            Ret = objLogin.Initialise();
            if (!Ret)
            {
                return(Ret);
            }

            Ret = objread.Initialise();
            if (!Ret)
            {
                return(Ret);
            }

            Ret = objGetData.Initialise();
            if (!Ret)
            {
                return(Ret);
            }

            Ret = objUpload.Initialise();
            if (!Ret)
            {
                return(Ret);
            }

            Ret = objDownload.Initialise();
            if (!Ret)
            {
                return(false);
            }

            Ret = objwqu.Initialise();
            if (!Ret)
            {
                return(Ret);
            }

            Ret = objGetWI.Initialise();
            if (!Ret)
            {
                return(Ret);
            }

            Ret = objDocumentum.Initialise();
            if (!Ret)
            {
                return(Ret);
            }

            Ret = objLogout.Initialise();
            if (!Ret)
            {
                return(Ret);
            }

            return(Ret);
        }