//Interface protected void Page_Load(object sender, EventArgs e) { // if (!Page.IsPostBack) { //Display local terminal name Argix.Kronos kronos = new Argix.Kronos(); Argix.TerminalInfo info = kronos.GetTerminalInfo(); this.mTerminal = info.Description + " (" + info.Number + ") : " + info.Connection; ViewState["Terminal"] = this.mTerminal; // this.cboType.DataBind(); if (this.cboType.Items.Count > 0) { this.cboType.SelectedIndex = 0; } OnTypeChanged(this.cboType, EventArgs.Empty); setServices(); } else { this.mTerminal = ViewState["Terminal"].ToString(); } }
protected void OnOk(object sender, EventArgs e) { //Event handler for export button clicked Argix.Employee employee = new Argix.Employee(); employee.LastName = this.txtLastName.Text; employee.FirstName = this.txtFirstName.Text; employee.Middle = this.txtMiddle.Text; employee.Suffix = this.txtSuffix.Text; employee.Location = this.cdoLocation.SelectedValue; Argix.Kronos kronos = new Argix.Kronos(); bool res = kronos.AddEmployee("Helpers", employee); Response.Redirect("HelpersEditor.aspx"); }