public string GetOrganizationUser(string appPid) { SystemSetup ss = new SystemSetup(); DataTable dt = ss.GetOrganizationUser(appPid); return(JsonHelper.DataTableToJSON(dt)); }
public string GetApproveProcesses() { SystemSetup ss = new SystemSetup(); DataTable dt = ss.GetApproveProcesses(); return(JsonHelper.DataTableToJSON(dt)); }
public string GetDepartmentUsers(string pageSize, string pageIndex) { string did = Request["did"].ToString(); SystemSetup ss = new SystemSetup(); return(ss.GetDepartmentUsers(did, pageSize, pageIndex)); }
public string GetCompanyType() { SystemSetup ss = new SystemSetup(); DataTable dt = ss.GetCompanyBusinessTypes(); return(JsonHelper.DataTableToJSON(dt)); }
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)); }
public string GetApprovePrcess(string appPid) { SystemSetup ss = new SystemSetup(); DataTable dt = ss.GetApprovePrcess(appPid); return(JsonHelper.DataTableToJSON(dt)); }
public string GetYearManagement() { SystemSetup ss = new SystemSetup(); DataTable dt = ss.GetYearManagement(); return(JsonHelper.DataTableToJSON(dt)); }
public string GetSystemTypes() { SystemSetup ss = new SystemSetup(); DataTable dt = ss.GetSystemTypes(); return(JsonHelper.DataTableToJSON(dt)); }
public string GetPersenalInfo() { string uid = Session["UserId"].ToString(); SystemSetup ss = new SystemSetup(); DataTable dt = ss.GetPersenalInfo(uid); return(JsonHelper.DataTableToJSON(dt)); }
public string AddExistUserToDepartment() { string uid = Request["uid"].ToString(); string did = Request["did"].ToString(); SystemSetup ss = new SystemSetup(); return(ss.AddExistUserToDepartment(uid, did)); }
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); }
/// <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); } }
/// <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); } }
public string SearchUsers() { string uname = ""; if (Request["uname"] != null) { uname = Request["uname"].ToString(); } SystemSetup ss = new SystemSetup(); return(ss.SearchUsers(uname)); }
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)); }
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); } }
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)); }
public void RemoveDepartment(string id) { SystemSetup ss = new SystemSetup(); ss.RemoveDepartment(id); }
public string SearchUsersByPage(string uname, string pageSize, string pageIndex) { SystemSetup ss = new SystemSetup(); return(ss.SearchUsersByPage(uname, pageSize, pageIndex)); }
public void UpdateCompanyBusinessType(string id, string name) { SystemSetup ss = new SystemSetup(); ss.UpdateCompanyBusinessType(id, name); }
public string AddCompanyBusinessType(string bt) { SystemSetup ss = new SystemSetup(); return(ss.AddCompanyBusinessType(bt)); }
public void DeleteCompanyBusinessType(string id) { SystemSetup ss = new SystemSetup(); ss.DeleteCompanyBusinessType(id); }
public void AddUserToDepartment(string did, string uid) { SystemSetup ss = new SystemSetup(); ss.AddUserToDepartment(did, uid); }
public void DeleteUser(string uid, string did) { SystemSetup ss = new SystemSetup(); ss.DeleteUser(uid, did); }
public void UpdateYearManagement(string id, string name) { SystemSetup ss = new SystemSetup(); ss.UpdateYearManagement(id, name); }
public void UpdateDepartment(string id, string name, string level, string projectdp) { SystemSetup ss = new SystemSetup(); ss.UpdateDepartment(id, name, level, projectdp); }
public void DeleteYearManagement(string id) { SystemSetup ss = new SystemSetup(); ss.DeleteYearManagement(id); }
public string AddDepartment(string pid, string dname, string dl, string projectdp) { SystemSetup ss = new SystemSetup(); return(ss.AddDepartment(pid, dname, dl, projectdp)); }
/// <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(); } }
public string AddYearManagement(string bt) { SystemSetup ss = new SystemSetup(); return(ss.AddYearManagement(bt)); }