public static FreightDataset GetTerminals() { //Returns a list of terminals FreightDataset terminals = new FreightDataset(); TLViewerService2Client client = new TLViewerService2Client(); try { DataSet ds = client.GetTerminals2(); if (ds != null && ds.Tables["TerminalTable"] != null && ds.Tables["TerminalTable"].Rows.Count > 0) { if (Program.TerminalCode.Length > 0) { terminals.Merge(ds.Tables["TerminalTable"].Select("TerminalID=" + Program.TerminalCode)); } else { terminals.Merge(ds); } } client.Close(); } catch (TimeoutException te) { client.Abort(); throw new ApplicationException(te.Message, te); } catch (FaultException <TLViewerFault> tle) { client.Abort(); throw new ApplicationException(tle.Detail.Message); } catch (FaultException fe) { client.Abort(); throw new ApplicationException(fe.Message, fe); } catch (CommunicationException ce) { client.Abort(); throw new ApplicationException(ce.Message, ce); } return(terminals); }
public void OnAutoRefreshCompleted(object sender, RunWorkerCompletedEventArgs e) { // try { FreightDataset ds = null; if (this.InvokeRequired) { this.Invoke(new RunWorkerCompletedEventHandler(OnAutoRefreshCompleted), new object[] { sender, e }); } else { ds = (FreightDataset)e.Result; if (this.grdShippers.ActiveCell == null || !this.grdShippers.ActiveCell.IsInEditMode) { reportStatus(new StatusEventArgs("Refreshing shippers...")); this.mGridSvc.CaptureState(); lock (this.mShippers) { this.mShippers.Clear(); this.mShippers.Merge(ds); } this.mGridSvc.RestoreState(); } } } catch { } }
//Interface static TsortGateway() { // _Zones = new FreightDataset(); _TLs = new FreightDataset(); TsortServiceClient client = new TsortServiceClient(); _state = true; _address = client.Endpoint.Address.Uri.AbsoluteUri; }
public bool CreateStationAssignment(int terminalID, string workStationID, string freightID, int sortTypeID) { // bool created = false; try { //Verify shipment exists at this terminal InboundShipment _shipment = GetInboundShipment(terminalID, freightID); if (_shipment == null) { throw new ApplicationException("Inbound shipment " + freightID + " could not be found at terminal " + terminalID.ToString() + "."); } //Verify shipment is sortable if (!_shipment.IsSortable) { throw new ApplicationException("Freight cannot be assigned because all TDS arrival information has not been entered."); } //Verify freight is assignable to the specified station at this terminals FreightDataset stations = new FreightDataset(); stations.Merge(GetAssignableSortStations(terminalID, freightID, sortTypeID)); if (stations.WorkstationTable.Select("WorkstationID ='" + workStationID + "'", "").Length == 0) { throw new ApplicationException("WorkstationID " + workStationID + " is not assignable for freight " + freightID + " at terminal " + terminalID.ToString() + "."); } //Create the TransactionScope to execute the commands, guaranteeing that both commands can commit or roll back as a single unit of work using (TransactionScope scope = new TransactionScope()) { // if (terminalID > 0) { bool unsorted = _shipment.Status.ToLower() == "unsorted"; bool sorting = _shipment.Status.ToLower() == "sorting"; bool sorted = _shipment.Status.ToLower() == "sorted"; if (unsorted) { sorting = new TsortGateway(terminalID).StartSort(freightID, DateTime.Now); } if (sorting || sorted) { created = new TsortGateway(terminalID).CreateStationAssignment(workStationID, freightID, sortTypeID); } } //Commits the transaction; if an exception is thrown, Complete is not called and the transaction is rolled back scope.Complete(); } } catch (Exception ex) { throw new FaultException <TsortFault>(new TsortFault(ex.Message), "Service Error"); } return(created); }
public static FreightDataset ViewLTLClients() { FreightDataset clients = new FreightDataset(); LTLAdminService2Client client = new LTLAdminService2Client(); try { DataSet ds = client.ViewLTLClientsForAdmin(); if (ds != null && ds.Tables["LTLClientTable"] != null && ds.Tables["LTLClientTable"].Rows.Count > 0) { clients.Merge(ds); } client.Close(); } catch (TimeoutException te) { client.Abort(); throw new ApplicationException(te.Message); } catch (FaultException <LTLFault> dfe) { client.Abort(); throw new ApplicationException(dfe.Detail.Message); } catch (FaultException fe) { client.Abort(); throw new ApplicationException(fe.Message); } catch (CommunicationException ce) { client.Abort(); throw new ApplicationException(ce.Message); } return(clients); }
public static FreightDataset ReadLTLConsigneesList(string clientNumber) { FreightDataset consignees = new FreightDataset(); LTLAdminService2Client client = new LTLAdminService2Client(); try { DataSet ds = client.ReadLTLConsigneesListForAdmin(clientNumber); if (ds != null && ds.Tables["LTLConsigneeTable"] != null && ds.Tables["LTLConsigneeTable"].Rows.Count > 0) { consignees.Merge(ds); } client.Close(); } catch (TimeoutException te) { client.Abort(); throw new ApplicationException(te.Message); } catch (FaultException <LTLFault> dfe) { client.Abort(); throw new ApplicationException(dfe.Detail.Message); } catch (FaultException fe) { client.Abort(); throw new ApplicationException(fe.Message); } catch (CommunicationException ce) { client.Abort(); throw new ApplicationException(ce.Message); } return(consignees); }
public static FreightDataset ReadPalletLabels(string shipmentNumber) { FreightDataset labels = new FreightDataset(); LTLAdminService2Client client = new LTLAdminService2Client(); try { DataSet ds = client.ReadPalletLabels(shipmentNumber); if (ds != null && ds.Tables["LTLPalletLabelTable"].Rows.Count > 0) { labels.Merge(ds); } client.Close(); } catch (TimeoutException te) { client.Abort(); throw new ApplicationException(te.Message); } catch (FaultException <LTLFault> dfe) { client.Abort(); throw new ApplicationException(dfe.Detail.Message); } catch (FaultException fe) { client.Abort(); throw new ApplicationException(fe.Message); } catch (CommunicationException ce) { client.Abort(); throw new ApplicationException(ce.Message); } return(labels); }
public static FreightDataset GetLanes() { // FreightDataset lanes = new FreightDataset(); ZoneClosingServiceClient client = new ZoneClosingServiceClient(); try { DataSet ds = client.GetLanes(int.Parse(Program.TerminalCode)); if (ds != null) { lanes.Merge(ds); } client.Close(); } catch (TimeoutException te) { client.Abort(); throw new ApplicationException(te.Message); } catch (FaultException <TsortFault> dfe) { client.Abort(); throw new ApplicationException(dfe.Detail.Message); } catch (FaultException fe) { client.Abort(); throw new ApplicationException(fe.Message); } catch (CommunicationException ce) { client.Abort(); throw new ApplicationException(ce.Message); } return(lanes); }
public DataSet GetUnassignedClosedTLs(int terminalID, int closedDays) { // DataSet tls = new DataSet(); try { if (terminalID > 0) { DataSet ds = new TsortGateway(terminalID).GetUnassignedClosedTLs(closedDays); FreightDataset _tls = new FreightDataset(); _tls.Merge(ds); if (_tls.ZoneTable.Rows.Count > 0) { tls.Merge(_tls); } } } catch (Exception ex) { throw new FaultException <TsortFault>(new TsortFault(ex.Message), "Service Error"); } return(tls); }
public InboundShipment GetInboundShipment(int terminalID, string freightID) { //Return the inbound shipment for the specified terminal and freightID InboundShipment shipment = null; try { if (terminalID > 0) { DataSet ds = new TsortGateway(terminalID).GetInboundShipment(freightID); if (ds != null) { FreightDataset freight = new FreightDataset(); freight.Merge(ds, false, MissingSchemaAction.Ignore); shipment = new InboundShipment(freight.InboundFreightTable[0]); } } } catch (Exception ex) { throw new FaultException <TsortFault>(new TsortFault(ex.Message), "Service Error"); } return(shipment); }
public static FreightDataset ViewLTLShipments(string clientNumber) { //View all LTL shipments for the specified client FreightDataset shipments = new FreightDataset(); LTLAdminService2Client client = new LTLAdminService2Client(); try { DataSet ds = client.ViewLTLShipmentsForDispatch(clientNumber); if (ds != null && ds.Tables["LTLShipmentTable"] != null && ds.Tables["LTLShipmentTable"].Rows.Count > 0) { shipments.Merge(ds); } client.Close(); } catch (TimeoutException te) { client.Abort(); throw new ApplicationException(te.Message); } catch (FaultException <LTLFault> dfe) { client.Abort(); throw new ApplicationException(dfe.Detail.Message); } catch (FaultException fe) { client.Abort(); throw new ApplicationException(fe.Message); } catch (CommunicationException ce) { client.Abort(); throw new ApplicationException(ce.Message); } return(shipments); }
public DataSet GetLanes(int terminalID) { //Get lists of all sort/small sort lanes for this terminal DataSet lanes = new DataSet(); try { if (terminalID > 0) { DataSet ds = new TsortGateway(terminalID).GetLanes(); FreightDataset _lanes = new FreightDataset(); _lanes.Merge(ds); if (_lanes.LaneTable.Rows.Count > 0) { lanes.Merge(_lanes); } } } catch (Exception ex) { throw new FaultException <TsortFault>(new TsortFault(ex.Message), "Service Error"); } return(lanes); }
public static FreightDataset GetAgentSummary(int terminalID) { //Get an agent summary view for the specified terminal FreightDataset tls = new FreightDataset(); TLViewerService2Client client = new TLViewerService2Client(); try { DataSet ds = client.GetAgentSummary2(terminalID); if (ds != null && ds.Tables["TLTable"] != null && ds.Tables["TLTable"].Rows.Count > 0) { tls.Merge(ds); } client.Close(); } catch (TimeoutException te) { client.Abort(); throw new ApplicationException(te.Message, te); } catch (FaultException <TLViewerFault> tle) { client.Abort(); throw new ApplicationException(tle.Detail.Message); } catch (FaultException fe) { client.Abort(); throw new ApplicationException(fe.Message, fe); } catch (CommunicationException ce) { client.Abort(); throw new ApplicationException(ce.Message, ce); } return(tls); }
public bool StopSort(InboundShipment shipment) { // bool stopped = false; try { //Shipment status = 'sorting' and no station assignments InboundShipment _shipment = GetInboundShipment(shipment.TerminalID, shipment.FreightID); if (_shipment == null) { throw new ApplicationException("Inbound shipment " + shipment.FreightID + " could not be found."); } if (_shipment.Status.ToLower() != "sorting") { throw new ApplicationException("Inbound shipment " + shipment.FreightID + " is currently not sorting."); } FreightDataset _assignments = new FreightDataset(); _assignments.Merge(GetStationAssignments(shipment.TerminalID)); if (_assignments.StationFreightAssignmentTable.Rows.Count > 0) { if (_assignments.StationFreightAssignmentTable.Select("FreightID = '" + shipment.FreightID + "'").Length > 0) { throw new ApplicationException("Inbound shipment " + shipment.FreightID + " currently has station assignments."); } } //Create the TransactionScope to execute the commands, guaranteeing that both commands can commit or roll back as a single unit of work using (TransactionScope scope = new TransactionScope()) { // if (shipment.TerminalID > 0) { stopped = new TsortGateway(shipment.TerminalID).StopSort(shipment.FreightID, DateTime.Now); } //Commits the transaction; if an exception is thrown, Complete is not called and the transaction is rolled back scope.Complete(); } } catch (Exception ex) { throw new FaultException <TsortFault>(new TsortFault(ex.Message), "Service Error"); } return(stopped); }
public FreightDataset GetInboundFreight(int terminalID, string freightType) { FreightDataset shipments = new FreightDataset(); FreightAssignServiceClient client = new FreightAssignServiceClient(); try { DataSet ds = client.GetInboundFreight(terminalID, DateTime.Today.AddDays(-this.mSortedDays)); if (ds != null) { FreightDataset _shipments = new FreightDataset(); _shipments.Merge(ds); shipments.Merge(_shipments.InboundFreightTable.Select("FreightType='" + freightType + "'", "TDSNumber ASC")); } client.Close(); } catch (TimeoutException te) { client.Abort(); throw new ApplicationException(te.Message); } catch (FaultException <TsortFault> dfe) { client.Abort(); throw new ApplicationException(dfe.Detail.Message); } catch (FaultException fe) { client.Abort(); throw new ApplicationException(fe.Message); } catch (CommunicationException ce) { client.Abort(); throw new ApplicationException(ce.Message); } return(shipments); }
public TLs GetAgentSummary(int terminalID) { //Get an agent summary view for the specified terminal TLs tls = null; try { tls = new TLs(); DataSet ds = new TLViewerGateway().GetAgentSummary(terminalID); if (ds != null) { FreightDataset tlDS = new FreightDataset(); tlDS.Merge(ds); for (int i = 0; i < tlDS.TLTable.Rows.Count; i++) { TL tl = new TL(tlDS.TLTable[i]); tls.Add(tl); } } } catch (Exception ex) { throw new ApplicationException(ex.Message, ex); } return(tls); }
public TLs GetTLDetail(int terminalID, string tlNumber) { //Get TL detail for the specified TL# TLs tls = null; try { tls = new TLs(); DataSet ds = new TLViewerGateway().GetTLDetail(terminalID, tlNumber); if (ds != null) { FreightDataset tlDS = new FreightDataset(); tlDS.Merge(ds); for (int i = 0; i < tlDS.TLTable.Rows.Count; i++) { TL tl = new TL(tlDS.TLTable[i]); tls.Add(tl); } } } catch (Exception ex) { throw new ApplicationException(ex.Message, ex); } return(tls); }
public static FreightDataset ReadLTLClientList(bool addAll = false) { FreightDataset clients = new FreightDataset(); LTLAdminService2Client client = new LTLAdminService2Client(); try { if (addAll) { clients.LTLClientTable.AddLTLClientTableRow(0, "", "All", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", DateTime.Today, "", DateTime.Today, "", 0, DateTime.Today, "", ""); } DataSet ds = client.ReadLTLClientListForAdmin(); if (ds != null && ds.Tables["LTLClientTable"] != null && ds.Tables["LTLClientTable"].Rows.Count > 0) { clients.Merge(ds); } client.Close(); } catch (TimeoutException te) { client.Abort(); throw new ApplicationException(te.Message); } catch (FaultException <LTLFault> dfe) { client.Abort(); throw new ApplicationException(dfe.Detail.Message); } catch (FaultException fe) { client.Abort(); throw new ApplicationException(fe.Message); } catch (CommunicationException ce) { client.Abort(); throw new ApplicationException(ce.Message); } return(clients); }
public static FreightDataset GetTLView(int terminalID) { //Get a view of TLs for the opertaing terminal FreightDataset tls = new FreightDataset(); TLViewerService2Client client = new TLViewerService2Client(); try { DataSet ds = client.GetTLView2(terminalID); if (ds != null && ds.Tables["TLTable"] != null && ds.Tables["TLTable"].Rows.Count > 0) { tls.Merge(ds); for (int i = 0; i < tls.TLTable.Rows.Count; i++) { tls.TLTable[i].TerminalID = terminalID; } } client.Close(); } catch (TimeoutException te) { client.Abort(); throw new ApplicationException(te.Message, te); } catch (FaultException <TLViewerFault> tle) { client.Abort(); throw new ApplicationException(tle.Detail.Message); } catch (FaultException fe) { client.Abort(); throw new ApplicationException(fe.Message, fe); } catch (CommunicationException ce) { client.Abort(); throw new ApplicationException(ce.Message, ce); } return(tls); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { Infragistics.Win.Appearance appearance1 = new Infragistics.Win.Appearance(); Infragistics.Win.UltraWinGrid.UltraGridBand ultraGridBand1 = new Infragistics.Win.UltraWinGrid.UltraGridBand("TLTable", -1); Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn22 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("TerminalID"); Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn23 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("Zone"); Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn24 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("AgentNumber"); Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn25 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("AgentName"); Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn26 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("TLNumber"); Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn27 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("TLDate"); Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn28 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("CloseNumber"); Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn29 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("ClientNumber"); Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn30 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("ClientName"); Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn31 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("ShipToLocationID"); Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn32 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("ShipToLocationName"); Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn33 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("Lane"); Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn34 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("SmallLane"); Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn35 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("Cartons"); Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn36 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("Pallets"); Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn37 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("Weight"); Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn38 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("Cube"); Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn39 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("WeightPercent"); Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn40 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("CubePercent"); Infragistics.Win.Appearance appearance2 = new Infragistics.Win.Appearance(); Infragistics.Win.Appearance appearance3 = new Infragistics.Win.Appearance(); Infragistics.Win.Appearance appearance4 = new Infragistics.Win.Appearance(); Infragistics.Win.Appearance appearance5 = new Infragistics.Win.Appearance(); Infragistics.Win.Appearance appearance6 = new Infragistics.Win.Appearance(); Infragistics.Win.Appearance appearance7 = new Infragistics.Win.Appearance(); Infragistics.Win.Appearance appearance8 = new Infragistics.Win.Appearance(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(dlgAgentSummary)); this.grdAgentSummary = new Infragistics.Win.UltraWinGrid.UltraGrid(); this.cmdPrint = new System.Windows.Forms.Button(); this.cmdClose = new System.Windows.Forms.Button(); this.mTLs = new Argix.FreightDataset(); ((System.ComponentModel.ISupportInitialize)(this.grdAgentSummary)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.mTLs)).BeginInit(); this.SuspendLayout(); // // grdAgentSummary // this.grdAgentSummary.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.grdAgentSummary.Cursor = System.Windows.Forms.Cursors.Default; this.grdAgentSummary.DataMember = "TLTable"; this.grdAgentSummary.DataSource = this.mTLs; appearance1.BackColor = System.Drawing.SystemColors.Window; appearance1.FontData.Name = "Verdana"; appearance1.FontData.SizeInPoints = 8F; appearance1.ForeColor = System.Drawing.SystemColors.WindowText; appearance1.TextHAlignAsString = "Left"; this.grdAgentSummary.DisplayLayout.Appearance = appearance1; ultraGridBand1.AddButtonCaption = "ClientViewTable"; ultraGridColumn22.Header.VisiblePosition = 0; ultraGridColumn22.Hidden = true; ultraGridColumn23.Header.VisiblePosition = 1; ultraGridColumn24.Header.VisiblePosition = 2; ultraGridColumn25.Header.VisiblePosition = 3; ultraGridColumn26.Header.VisiblePosition = 4; ultraGridColumn27.Header.VisiblePosition = 5; ultraGridColumn28.Header.VisiblePosition = 6; ultraGridColumn29.Header.VisiblePosition = 7; ultraGridColumn30.Header.VisiblePosition = 8; ultraGridColumn31.Header.VisiblePosition = 9; ultraGridColumn32.Header.VisiblePosition = 10; ultraGridColumn33.Header.VisiblePosition = 11; ultraGridColumn34.Header.VisiblePosition = 12; ultraGridColumn35.Header.VisiblePosition = 13; ultraGridColumn36.Header.VisiblePosition = 14; ultraGridColumn37.Header.VisiblePosition = 15; ultraGridColumn38.Header.VisiblePosition = 16; ultraGridColumn39.Header.VisiblePosition = 17; ultraGridColumn40.Header.VisiblePosition = 18; ultraGridBand1.Columns.AddRange(new object[] { ultraGridColumn22, ultraGridColumn23, ultraGridColumn24, ultraGridColumn25, ultraGridColumn26, ultraGridColumn27, ultraGridColumn28, ultraGridColumn29, ultraGridColumn30, ultraGridColumn31, ultraGridColumn32, ultraGridColumn33, ultraGridColumn34, ultraGridColumn35, ultraGridColumn36, ultraGridColumn37, ultraGridColumn38, ultraGridColumn39, ultraGridColumn40 }); appearance2.BackColor = System.Drawing.SystemColors.ActiveCaption; appearance2.FontData.Name = "Arial"; appearance2.FontData.SizeInPoints = 8F; appearance2.ForeColor = System.Drawing.SystemColors.ActiveCaptionText; ultraGridBand1.Override.ActiveRowAppearance = appearance2; appearance3.BackColor = System.Drawing.SystemColors.Control; appearance3.FontData.BoldAsString = "True"; appearance3.FontData.Name = "Arial"; appearance3.FontData.SizeInPoints = 8F; appearance3.ForeColor = System.Drawing.SystemColors.ControlText; appearance3.TextHAlignAsString = "Left"; ultraGridBand1.Override.HeaderAppearance = appearance3; appearance4.BackColor = System.Drawing.SystemColors.Window; appearance4.FontData.Name = "Arial"; appearance4.FontData.SizeInPoints = 8F; appearance4.ForeColor = System.Drawing.SystemColors.WindowText; ultraGridBand1.Override.RowAlternateAppearance = appearance4; appearance5.BackColor = System.Drawing.SystemColors.Window; appearance5.FontData.Name = "Arial"; appearance5.FontData.SizeInPoints = 8F; appearance5.ForeColor = System.Drawing.SystemColors.WindowText; appearance5.TextHAlignAsString = "Left"; ultraGridBand1.Override.RowAppearance = appearance5; this.grdAgentSummary.DisplayLayout.BandsSerializer.Add(ultraGridBand1); this.grdAgentSummary.DisplayLayout.BorderStyle = Infragistics.Win.UIElementBorderStyle.InsetSoft; appearance6.BackColor = System.Drawing.SystemColors.InactiveCaption; appearance6.FontData.BoldAsString = "True"; appearance6.FontData.Name = "Verdana"; appearance6.FontData.SizeInPoints = 8F; appearance6.ForeColor = System.Drawing.SystemColors.InactiveCaptionText; appearance6.TextHAlignAsString = "Left"; this.grdAgentSummary.DisplayLayout.CaptionAppearance = appearance6; this.grdAgentSummary.DisplayLayout.Override.AllowAddNew = Infragistics.Win.UltraWinGrid.AllowAddNew.No; this.grdAgentSummary.DisplayLayout.Override.AllowDelete = Infragistics.Win.DefaultableBoolean.False; this.grdAgentSummary.DisplayLayout.Override.AllowUpdate = Infragistics.Win.DefaultableBoolean.False; this.grdAgentSummary.DisplayLayout.Override.CellClickAction = Infragistics.Win.UltraWinGrid.CellClickAction.RowSelect; appearance7.BackColor = System.Drawing.SystemColors.Control; appearance7.FontData.BoldAsString = "True"; appearance7.FontData.Name = "Verdana"; appearance7.FontData.SizeInPoints = 8F; appearance7.TextHAlignAsString = "Left"; this.grdAgentSummary.DisplayLayout.Override.HeaderAppearance = appearance7; this.grdAgentSummary.DisplayLayout.Override.HeaderClickAction = Infragistics.Win.UltraWinGrid.HeaderClickAction.SortSingle; this.grdAgentSummary.DisplayLayout.Override.MaxSelectedRows = 1; appearance8.BorderColor = System.Drawing.SystemColors.ControlLight; this.grdAgentSummary.DisplayLayout.Override.RowAppearance = appearance8; this.grdAgentSummary.DisplayLayout.Override.RowSelectors = Infragistics.Win.DefaultableBoolean.False; this.grdAgentSummary.DisplayLayout.Override.SelectTypeRow = Infragistics.Win.UltraWinGrid.SelectType.Single; this.grdAgentSummary.DisplayLayout.ScrollBounds = Infragistics.Win.UltraWinGrid.ScrollBounds.ScrollToFill; this.grdAgentSummary.DisplayLayout.ScrollStyle = Infragistics.Win.UltraWinGrid.ScrollStyle.Immediate; this.grdAgentSummary.DisplayLayout.TabNavigation = Infragistics.Win.UltraWinGrid.TabNavigation.NextControl; this.grdAgentSummary.DisplayLayout.ViewStyle = Infragistics.Win.UltraWinGrid.ViewStyle.SingleBand; this.grdAgentSummary.Location = new System.Drawing.Point(0, 0); this.grdAgentSummary.Name = "grdAgentSummary"; this.grdAgentSummary.Size = new System.Drawing.Size(760, 305); this.grdAgentSummary.TabIndex = 1; this.grdAgentSummary.Text = "Agent Summary View for "; this.grdAgentSummary.UseOsThemes = Infragistics.Win.DefaultableBoolean.False; // // cmdPrint // this.cmdPrint.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.cmdPrint.Location = new System.Drawing.Point(550, 314); this.cmdPrint.Name = "cmdPrint"; this.cmdPrint.Size = new System.Drawing.Size(96, 24); this.cmdPrint.TabIndex = 2; this.cmdPrint.Text = "Print"; this.cmdPrint.Click += new System.EventHandler(this.OnCmdClick); // // cmdClose // this.cmdClose.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.cmdClose.DialogResult = System.Windows.Forms.DialogResult.Cancel; this.cmdClose.Location = new System.Drawing.Point(652, 314); this.cmdClose.Name = "cmdClose"; this.cmdClose.Size = new System.Drawing.Size(96, 24); this.cmdClose.TabIndex = 0; this.cmdClose.Text = "Close"; this.cmdClose.Click += new System.EventHandler(this.OnCmdClick); // // mTLs // this.mTLs.DataSetName = "FreightDataset"; this.mTLs.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema; // // dlgAgentSummary // this.AutoScaleBaseSize = new System.Drawing.Size(6, 14); this.CancelButton = this.cmdClose; this.ClientSize = new System.Drawing.Size(760, 350); this.Controls.Add(this.cmdClose); this.Controls.Add(this.cmdPrint); this.Controls.Add(this.grdAgentSummary); this.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.MaximizeBox = false; this.MinimizeBox = false; this.Name = "dlgAgentSummary"; this.ShowInTaskbar = false; this.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Show; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; this.Text = "TLViewer"; this.Load += new System.EventHandler(this.OnFormLoad); ((System.ComponentModel.ISupportInitialize)(this.grdAgentSummary)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.mTLs)).EndInit(); this.ResumeLayout(false); }