コード例 #1
0
        public string GetOrganizationUser(string appPid)
        {
            SystemSetup ss = new SystemSetup();
            DataTable   dt = ss.GetOrganizationUser(appPid);

            return(JsonHelper.DataTableToJSON(dt));
        }
コード例 #2
0
        public string GetApproveProcesses()
        {
            SystemSetup ss = new SystemSetup();
            DataTable   dt = ss.GetApproveProcesses();

            return(JsonHelper.DataTableToJSON(dt));
        }
コード例 #3
0
        public string GetDepartmentUsers(string pageSize, string pageIndex)
        {
            string      did = Request["did"].ToString();
            SystemSetup ss  = new SystemSetup();

            return(ss.GetDepartmentUsers(did, pageSize, pageIndex));
        }
コード例 #4
0
ファイル: CommonController.cs プロジェクト: haifuge/cr16gd
        public string GetCompanyType()
        {
            SystemSetup ss = new SystemSetup();
            DataTable   dt = ss.GetCompanyBusinessTypes();

            return(JsonHelper.DataTableToJSON(dt));
        }
コード例 #5
0
        public string UpdateUserInfo()
        {
            string uid   = Request["uid"].ToString();
            string uname = Request["uname"].ToString();
            string tel   = Request["tel"].ToString();
            string psd;

            if (Request["psd"] != null)
            {
                psd = Request["psd"].ToString();
            }
            else
            {
                psd = "";
            }
            string      email   = Request["em"].ToString();
            string      account = Request["account"].ToString();
            string      roleid  = Request["roleid"].ToString();
            string      sn      = Request["sn"].ToString();
            string      sf      = Request["sf"].ToString();
            string      openid  = Request["openid"].ToString();
            SystemSetup ss      = new SystemSetup();

            return(ss.UpdateUserInfo(uid, account, uname, psd, tel, email, roleid, sn, sf, openid));
        }
コード例 #6
0
        public string GetApprovePrcess(string appPid)
        {
            SystemSetup ss = new SystemSetup();
            DataTable   dt = ss.GetApprovePrcess(appPid);

            return(JsonHelper.DataTableToJSON(dt));
        }
コード例 #7
0
        public string GetYearManagement()
        {
            SystemSetup ss = new SystemSetup();
            DataTable   dt = ss.GetYearManagement();

            return(JsonHelper.DataTableToJSON(dt));
        }
コード例 #8
0
        public string GetSystemTypes()
        {
            SystemSetup ss = new SystemSetup();
            DataTable   dt = ss.GetSystemTypes();

            return(JsonHelper.DataTableToJSON(dt));
        }
コード例 #9
0
        public string GetPersenalInfo()
        {
            string      uid = Session["UserId"].ToString();
            SystemSetup ss  = new SystemSetup();
            DataTable   dt  = ss.GetPersenalInfo(uid);

            return(JsonHelper.DataTableToJSON(dt));
        }
コード例 #10
0
        public string AddExistUserToDepartment()
        {
            string      uid = Request["uid"].ToString();
            string      did = Request["did"].ToString();
            SystemSetup ss  = new SystemSetup();

            return(ss.AddExistUserToDepartment(uid, did));
        }
コード例 #11
0
        public string GetAdmins()
        {
            SystemSetup ss       = new SystemSetup();
            string      page     = Request["PageIndex"].ToString();
            string      pagesize = Request["PageSize"].ToString();
            string      data     = ss.GetAdmins(page, pagesize);

            return(data);
        }
コード例 #12
0
        /// <summary>
        /// Installs any dependent software via a DOS command file before executing the configured file list.
        /// </summary>
        /// <param name="executionData"></param>
        public void Setup(PluginExecutionData executionData)
        {
            _activityData = executionData?.GetMetadata <ExecutorActivityData>();

            if (!string.IsNullOrEmpty(_activityData?.SetupFileName))
            {
                SystemSetup.Run(_activityData.SetupFileName, string.Empty, executionData?.Credential, _activityData.CopyDirectory);
            }
        }
コード例 #13
0
        /// <summary>
        /// Selects all of the Printing activities from the manifest and determines which (if any) use local print queues.
        /// Certificates are installed for each local print queue.
        /// </summary>
        protected virtual void InstallPrintingCertficates()
        {
            if (_manifest.ActivityPrintQueues.Values.OfType <DynamicLocalPrintQueueInfo>().Any())
            {
                NetworkCredential adminCredential = new NetworkCredential();
                adminCredential.UserName = GlobalSettings.Items[Setting.DomainAdminUserName];
                adminCredential.Password = GlobalSettings.Items[Setting.DomainAdminPassword];
                adminCredential.Domain   = Environment.UserDomainName;

                SystemSetup.Run(GlobalDataStore.Manifest.Settings[Framework.Settings.Setting.PrintingCertsInstaller], adminCredential, true);
            }
        }
コード例 #14
0
        public string SearchUsers()
        {
            string uname = "";

            if (Request["uname"] != null)
            {
                uname = Request["uname"].ToString();
            }
            SystemSetup ss = new SystemSetup();

            return(ss.SearchUsers(uname));
        }
コード例 #15
0
        public string CreateUser()
        {
            string      acc       = Request["acc"].ToString();
            string      pasd      = Request["pasd"].ToString();
            string      nam       = Request["nam"].ToString();
            string      telephone = Request["telephone"].ToString();
            string      em        = Request["em"].ToString();
            string      did       = Request["did"].ToString();
            string      roleid    = Request["roleid"].ToString();
            SystemSetup ss        = new SystemSetup();

            return(ss.CreateUser(acc, pasd, nam, telephone, em, did, roleid));
        }
コード例 #16
0
 private void Awake()
 {
     if (StaticInstance == null)
     {
         StaticInstance = this;
         DontDestroyOnLoad(this.gameObject);
         playerCameraTransforms = Camera.main.transform;
         inputSensitivityX      = 300 * sensMult;
         inputSensitivityY      = 2 * sensMult;
     }
     else
     {
         Destroy(this.gameObject);
     }
 }
コード例 #17
0
        public string UpdatePersonInfo()
        {
            string uname = Request["uname"].ToString();
            string tel   = Request["tel"].ToString();
            string psd;

            if (Request["psd"] != null)
            {
                psd = Request["psd"].ToString();
            }
            else
            {
                psd = "";
            }
            string      email   = Request["em"].ToString();
            string      account = Request["account"].ToString();
            string      roleid  = Request["roleid"].ToString();
            string      sname   = Request["sn"].ToString();
            string      sfile   = Request["sf"].ToString();
            SystemSetup ss      = new SystemSetup();

            return(ss.UpdatePersonInfo(account, uname, psd, tel, email, roleid, sname, sfile));
        }
コード例 #18
0
        public void RemoveDepartment(string id)
        {
            SystemSetup ss = new SystemSetup();

            ss.RemoveDepartment(id);
        }
コード例 #19
0
        public string SearchUsersByPage(string uname, string pageSize, string pageIndex)
        {
            SystemSetup ss = new SystemSetup();

            return(ss.SearchUsersByPage(uname, pageSize, pageIndex));
        }
コード例 #20
0
        public void UpdateCompanyBusinessType(string id, string name)
        {
            SystemSetup ss = new SystemSetup();

            ss.UpdateCompanyBusinessType(id, name);
        }
コード例 #21
0
        public string AddCompanyBusinessType(string bt)
        {
            SystemSetup ss = new SystemSetup();

            return(ss.AddCompanyBusinessType(bt));
        }
コード例 #22
0
        public void DeleteCompanyBusinessType(string id)
        {
            SystemSetup ss = new SystemSetup();

            ss.DeleteCompanyBusinessType(id);
        }
コード例 #23
0
        public void AddUserToDepartment(string did, string uid)
        {
            SystemSetup ss = new SystemSetup();

            ss.AddUserToDepartment(did, uid);
        }
コード例 #24
0
        public void DeleteUser(string uid, string did)
        {
            SystemSetup ss = new SystemSetup();

            ss.DeleteUser(uid, did);
        }
コード例 #25
0
        public void UpdateYearManagement(string id, string name)
        {
            SystemSetup ss = new SystemSetup();

            ss.UpdateYearManagement(id, name);
        }
コード例 #26
0
        public void UpdateDepartment(string id, string name, string level, string projectdp)
        {
            SystemSetup ss = new SystemSetup();

            ss.UpdateDepartment(id, name, level, projectdp);
        }
コード例 #27
0
        public void DeleteYearManagement(string id)
        {
            SystemSetup ss = new SystemSetup();

            ss.DeleteYearManagement(id);
        }
コード例 #28
0
        public string AddDepartment(string pid, string dname, string dl, string projectdp)
        {
            SystemSetup ss = new SystemSetup();

            return(ss.AddDepartment(pid, dname, dl, projectdp));
        }
コード例 #29
0
        /// <summary>
        /// Iterates through the list of installers to be executed.
        /// If a reboot is required, the location of the last executed installer is persisted to the registry.
        /// Upon restart, cycles through the list until the installer startup index is found,
        /// then resumes installation.
        /// </summary>
        protected virtual void InstallClientSoftware()
        {
            bool reboot = false;
            NetworkCredential adminCredential = null;

            if (_manifest.SoftwareInstallers.Count > 0)
            {
                TraceFactory.Logger.Debug("StartIndex: {0}".FormatWith(_installerStartIndex));
                adminCredential          = new NetworkCredential();
                adminCredential.UserName = GlobalSettings.Items[Setting.DomainAdminUserName];
                adminCredential.Password = GlobalSettings.Items[Setting.DomainAdminPassword];
                adminCredential.Domain   = Environment.UserDomainName;
            }
            else //No Installers.  Return immediately.
            {
                return;
            }

            // Execute the installers
            int index = -1;

            foreach (SoftwareInstallerDetail installer in _manifest.SoftwareInstallers.OrderBy(i => i.InstallOrderNumber))
            {
                index++;
                if (index >= _installerStartIndex)
                {
                    // Install the specified software, but send a status message back periodically to ensure
                    // the dispatcher doesn't think the client is hung and then tries to reboot it.

                    _installerMessage = "Installing {0}".FormatWith(installer.Description);
                    SendStatusMessage(_installerMessage);

                    using (System.Timers.Timer installerTimer = new System.Timers.Timer(TimeSpan.FromMinutes(1).TotalMilliseconds))
                    {
                        try
                        {
                            installerTimer.Elapsed += installerTimer_Elapsed;
                            installerTimer.Start();
                            SystemSetup.Run(installer.Path, installer.Arguments, adminCredential, installer.CopyDirectory);
                        }
                        finally
                        {
                            installerTimer.Stop();
                        }
                    }

                    reboot = RebootRequired(installer.RebootMode);
                    if (installer.RebootMode == RebootMode.Immediate)
                    {
                        break;
                    }
                }
            }

            //Check to see if we need to reboot
            //We may be rebooting because of an immediate reboot, or because we're finished and a deferred reboot was found.
            if (reboot)
            {
                SendStatusMessage("Install complete - rebooting");
                SetStartupRegistryValue(index);
                Reboot();
            }
        }
コード例 #30
0
        public string AddYearManagement(string bt)
        {
            SystemSetup ss = new SystemSetup();

            return(ss.AddYearManagement(bt));
        }