Пример #1
0
            public static jsonCommon uBuildLuLists(string argUrl, string argUser, string argPassword)
            {
                uWebServiceInfo myWsi       = uWebServiceInfo.uWebServiceInfoHandler;
                MppHelper       myMppHelper = new MppHelper();
                string          url         = argUrl;
                //string urlParm = @"/api/126085/umppmgr/lulist/1";
                //string urlParm = @"/api/x_126085_umppmgr/uimport/lulist/1";
                string urlParm = myWsi.uWebLuLists;
                string user    = argUser;
                string pwd     = argPassword;

                myMppHelper.getLuLists(argUrl, urlParm, argUser, argPassword);
                PortfolioDict           = new lvlDict(uHttpResultJsonListRoot.result.portfolio);
                ProgramDict             = new lvlDict(uHttpResultJsonListRoot.result.program);
                ProjMgrDict             = new lvlDict(uHttpResultJsonListRoot.result.projmgr);
                AssignedToDict          = new lvlDict(uHttpResultJsonListRoot.result.assignedto);
                PhaseDict               = new lvlDict(uHttpResultJsonListRoot.result.phase);
                PhaseTypeDict           = new lvlDict(uHttpResultJsonListRoot.result.phasetype);
                CalculationTypeDict     = new lvlDict(uHttpResultJsonListRoot.result.calculationtype);
                ScheduleDict            = new lvlDict(uHttpResultJsonListRoot.result.schedule);
                StateDict               = new lvlDict(uHttpResultJsonListRoot.result.state);
                PriorityDict            = new lvlDict(uHttpResultJsonListRoot.result.priority);
                RiskDict                = new lvlDict(uHttpResultJsonListRoot.result.risk);
                ConstraintDict          = new lvlDict(uHttpResultJsonListRoot.result.constraint);
                CmdbciDict              = new lvlDict(uHttpResultJsonListRoot.result.cmdbci);
                ImpactDict              = new lvlDict(uHttpResultJsonListRoot.result.pmtimpact);
                TaskTypeDict            = new lvlDict(uHttpResultJsonListRoot.result.pmttasktype);
                TaskAssignmentGroupDict = new lvlDict(uHttpResultJsonListRoot.result.pmtassignmentgroup);
                TaskAssignedToDict      = new lvlDict(uHttpResultJsonListRoot.result.pmtassignedto);
                return(new jsonCommon(uHttpResultJsonListRoot, uHttpResultJsonListString));
            }
Пример #2
0
            public static string uBuildHtml(string argFile)
            {
                MppHelper  myMppHelper  = new MppHelper();
                MppProject myMppProject = myMppHelper.LoadProjectFile(argFile);

                return(uBuildHtml(myMppProject));
            }
Пример #3
0
            public static void uUploadSnowUpdate(string argJson, string argUrl, string argUser, string argPassword)
            {
                uWebServiceInfo myWsi       = uWebServiceInfo.uWebServiceInfoHandler;
                MppHelper       myMppHelper = new MppHelper();
                string          url         = argUrl;
                //string urlParm = @"/api/126085/umppmgr/update/1";
                //string urlParm = @"/api/x_126085_umppmgr/uimport/update/1";
                string urlParm = myWsi.uWebUpdate;
                string user    = argUser;
                string pwd     = argPassword;

                myMppHelper.putSnowProj(argJson, url, urlParm, user, pwd);
            }
Пример #4
0
            public static jsonRoot uUploadMpp(string argJson, string argUrl, string argUser, string argPassword)
            {
                uWebServiceInfo myWsi       = uWebServiceInfo.uWebServiceInfoHandler;
                MppHelper       myMppHelper = new MppHelper();
                string          url         = argUrl;
                //string urlParm = @"/api/126085/umppmgr/create";
                //string urlParm = @"/api/x_126085_umppmgr/uimport/create";
                string urlParm = myWsi.uWebCreate;
                string user    = argUser;
                string pwd     = argPassword;

                myMppHelper.exportMpp(argJson, url, urlParm, user, pwd);
                return(uHttpResultJsonRoot);
            }
Пример #5
0
            public static bool uValidateUser(string argUrl, string argUser, string argPassword)
            {
                uWebServiceInfo myWsi       = uWebServiceInfo.uWebServiceInfoHandler;
                MppHelper       myMppHelper = new MppHelper();
                string          url         = argUrl;
                //string urlParam = String.Format(@"/api/126085/umppmgr/uvaliduser/{0}", argUser);
                //string urlParam = String.Format(@"/api/x_126085_umppmgr/uimport/uvaliduser/{0}", argUser);
                string urlParam = String.Format(myWsi.uWebValidate, argUser);
                string user     = argUser;
                string pwd      = argPassword;

                myMppHelper.basicValidateUser(url, urlParam, user, pwd);
                return(uIsValidUser);
            }
Пример #6
0
            public static string uGetSnowProj(string argUrl, string argUser, string argPassword, string argSysId)
            {
                string          jsonStr     = String.Empty;
                string          htmlStr     = String.Empty;
                uWebServiceInfo myWsi       = uWebServiceInfo.uWebServiceInfoHandler;
                MppHelper       myMppHelper = new MppHelper();
                string          url         = argUrl;
                //string urlParm = String.Format(@"/api/126085/umppmgr/read/{0}", argSysId);
                //string urlParm = String.Format(@"/api/x_126085_umppmgr/uimport/read/{0}", argSysId);
                string urlParm = String.Format(myWsi.uWebRead, argSysId);
                string user    = argUser;
                string pwd     = argPassword;

                myMppHelper.getSnowProj(argUrl, urlParm, argUser, argPassword);
                htmlStr = uBuildHtmlSnowProj(uHttpResultJsonSnowProjListRoot);
                return(htmlStr);
            }
Пример #7
0
            public static string uGetProjList(string argUrl, string argUser, string argPassword)
            {
                string          jsonStr     = String.Empty;
                string          htmlStr     = String.Empty;
                uWebServiceInfo myWsi       = uWebServiceInfo.uWebServiceInfoHandler;
                MppHelper       myMppHelper = new MppHelper();
                string          url         = argUrl;
                //string urlParm = @"/api/126085/umppmgr/projlist/1";
                //string urlParm = @"/api/x_126085_umppmgr/uimport/projlist/1";
                string urlParm = myWsi.uWebProjLists;
                string user    = argUser;
                string pwd     = argPassword;

                myMppHelper.getProjList(argUrl, urlParm, argUser, argPassword);
                jsonStr = uHttpResultJsonProjListString;
                //htmlStr = uBuildHtmlProj(uHttpResultJsonProjListString);
                return(jsonStr);
            }