private void ClearAddreeseesForcingStatus_Click(object sender, EventArgs e) { ForceAdressees lFrcAddr = new ForceAdressees(); lFrcAddr.ShowDialog(); if (lFrcAddr._isOk) { Application.UseWaitCursor = true; DataPackageTestClient.DataPackageServiceClient.TargetAddressType lTAType = new DataPackageTestClient.DataPackageServiceClient.TargetAddressType(); lTAType.Type = (DataPackageServiceClient.AddressTypeEnum)Enum.Parse(typeof(DataPackageServiceClient.AddressTypeEnum), (string)lFrcAddr.AddressTypeList.SelectedItem); lTAType.Id = lFrcAddr.AddressIdBox.Text; uint lReqTimeOut = UInt32.Parse(lFrcAddr.TimeOutBox.Text); DataPackageTestClient.DataPackageServiceClient.DataPackageResult lUpRes = _dataPkgServiceCl.clearAddreeseesForcingStatus(_sid, lTAType, lReqTimeOut);; string lTxt = "---------------------------------\n"; lTxt += "ClearAddreeseesForcingStatus (" + DateTime.Now.ToString() + ")\n"; lTxt += "---------------------------------\n"; lTxt += "Request Id : " + lUpRes.reqId + "\n"; lTxt += "Error Code : " + lUpRes.error_code + "\n"; lock (_logtxt) { _logtxt += lTxt; } Application.UseWaitCursor = false; } }
private void AssignCurrentBaselineToElement_Click(object sender, EventArgs e) { AssignCurrentBaselineForm lCBlBox = new AssignCurrentBaselineForm(); lCBlBox.ShowDialog(this); if (lCBlBox._isOk) { Application.UseWaitCursor = true; DataPackageTestClient.DataPackageServiceClient.TargetAddressType lTAType = new DataPackageTestClient.DataPackageServiceClient.TargetAddressType(); lTAType.Type = (DataPackageServiceClient.AddressTypeEnum)Enum.Parse(typeof(DataPackageServiceClient.AddressTypeEnum), (string)lCBlBox.AddressTypeList.SelectedItem); lTAType.Id = lCBlBox.AddressIdBox.Text; DataPackageTestClient.DataPackageServiceClient.DataPackageResult lUpRes = _dataPkgServiceCl.assignCurrentBaselineToElement(_sid, lTAType, lCBlBox.VersionBox.Text, lCBlBox.ExpirationPicker.Value); string lTxt = "---------------------------------\n"; lTxt += "AssignCurrentBaselineToElement (" + DateTime.Now.ToString() + ")\n"; lTxt += "---------------------------------\n"; lTxt += "Request Id : " + lUpRes.reqId + "\n"; lTxt += "Error Code : " + lUpRes.error_code + "\n"; lock (_logtxt) { _logtxt += lTxt; } Application.UseWaitCursor = false; } }
private void DistributeBaseline_Click(object sender, EventArgs e) { DistributeBaselineForm lDistrBl = new DistributeBaselineForm(); lDistrBl.ShowDialog(); if (lDistrBl._isOk) { Application.UseWaitCursor = true; DataPackageTestClient.DataPackageServiceClient.TargetAddressType lTAType = new DataPackageTestClient.DataPackageServiceClient.TargetAddressType(); lTAType.Type = (DataPackageServiceClient.AddressTypeEnum)Enum.Parse(typeof(DataPackageServiceClient.AddressTypeEnum), (string)lDistrBl.AddressTypeList.SelectedItem); lTAType.Id = lDistrBl.AddressIdBox.Text; DataPackageTestClient.DataPackageServiceClient.BaselineDistributionAttributes lBlDistrAttr = new DataPackageTestClient.DataPackageServiceClient.BaselineDistributionAttributes(); lBlDistrAttr.TransferMode = (DataPackageServiceClient.FileTransferMode)Enum.Parse(typeof(DataPackageServiceClient.FileTransferMode), (string)lDistrBl.TransferModeBox.SelectedItem); lBlDistrAttr.fileCompression = lDistrBl.FileCompressionBox.Checked; lBlDistrAttr.transferDate = lDistrBl.TransferDatePicker.Value; lBlDistrAttr.transferExpirationDate = lDistrBl.ExpirationDatePicker.Value; lBlDistrAttr.priority = SByte.Parse(lDistrBl.PriorityBox.Text); uint lReqTimeOut = UInt32.Parse(lDistrBl.RequestTimeOutBox.Text); bool lIncr = lDistrBl.IncrementalBox.Checked; DataPackageTestClient.DataPackageServiceClient.DataPackageResult lUpRes = _dataPkgServiceCl.distributeBaseline(_sid, lTAType, lBlDistrAttr, lReqTimeOut, lIncr); string lTxt = "---------------------------------\n"; lTxt += "DistributeBaseline (" + DateTime.Now.ToString() + ")\n"; lTxt += "---------------------------------\n"; lTxt += "Request Id : " + lUpRes.reqId + "\n"; lTxt += "Error Code : " + lUpRes.error_code + "\n"; lock (_logtxt) { _logtxt += lTxt; } Application.UseWaitCursor = false; } }
private void GetAdresseesDataPackageBaselinesButton_Click(object sender, EventArgs e) { DataPackageTestClient.DataPackageServiceClient.TargetAddressType lTAType = new DataPackageTestClient.DataPackageServiceClient.TargetAddressType(); TargetAdressTypeSelector lTATSel = new TargetAdressTypeSelector(); lTATSel.ShowDialog(this); if (lTATSel._isOk) { Application.UseWaitCursor = true; lTAType.Type = (DataPackageServiceClient.AddressTypeEnum)Enum.Parse(typeof(DataPackageServiceClient.AddressTypeEnum), (string)lTATSel.AddressTypeList.SelectedItem); lTAType.Id = lTATSel.AddressIdBox.Text; DataPackageTestClient.DataPackageServiceClient.GetAdresseesDataPackageBaselinesResult lElDescrRes = _dataPkgServiceCl.getAddresseesDataPackagesBaselines(_sid, lTAType); string lTxt = "-----------------------------------------------\n"; lTxt += "GetAdresseesDataPackageBaselines (" + DateTime.Now.ToString() + ")\n"; lTxt += "-----------------------------------------------\n"; lTxt += "Error Code : " + lElDescrRes.error_code + "\n"; if (lElDescrRes.error_code == DataPackageTestClient.DataPackageServiceClient.DataPackageErrorEnum.SUCCESS) { foreach (DataPackageServiceClient.ElementDescription lElDescr in lElDescrRes.ElementDesc) { lTxt += "\tElement Id : " + lElDescr.ElementID + "\n"; lTxt += "\t\tElement Archived Baseline : " + lElDescr.ElementArchivedBaseline.BaselineVersion + "\n"; lTxt += "\t\tElement Archived Baseline Expiration Date : " + lElDescr.ElementArchivedBaselineExpirationDate.ToString() + "\n"; lTxt += "\t\tElement Archived Baseline Validity : " + lElDescr.ElementArchivedBaseline.BaselineValidity.ToString() + "\n"; lTxt += "\t\tElement Archived Baseline PISBase Version : " + lElDescr.ElementArchivedBaseline.PISBaseDataPackageVersion + "\n"; lTxt += "\t\tElement Archived Baseline PISBase Validity : " + lElDescr.ElementArchivedBaseline.PISBaseDataPackageValidity.ToString() + "\n"; lTxt += "\t\tElement Archived Baseline PISMission Version : " + lElDescr.ElementArchivedBaseline.PISMissionDataPackageVersion + "\n"; lTxt += "\t\tElement Archived Baseline PISMission Validity : " + lElDescr.ElementArchivedBaseline.PISMissionDataPackageValidity.ToString() + "\n"; lTxt += "\t\tElement Archived Baseline PISInfotainment Version : " + lElDescr.ElementArchivedBaseline.PISInfotainmentDataPackageVersion + "\n"; lTxt += "\t\tElement Archived Baseline PISInfotainment Validity : " + lElDescr.ElementArchivedBaseline.PISInfotainmentDataPackageValidity.ToString() + "\n"; lTxt += "\t\tElement Archived Baseline LMT Version : " + lElDescr.ElementArchivedBaseline.LMTDataPackageVersion + "\n"; lTxt += "\t\tElement Archived Baseline LMT Validity : " + lElDescr.ElementArchivedBaseline.LMTDataPackageValidity.ToString() + "\n"; lTxt += "\t\tElement Current Baseline : " + lElDescr.ElementCurrentBaseline.BaselineVersion + "\n"; lTxt += "\t\tElement Current Baseline Expiration Date : " + lElDescr.ElementCurrentBaselineExpirationDate.ToString() + "\n"; lTxt += "\t\tElement Current Baseline is Forced? : " + lElDescr.isCurrentBaselineForced + "\n"; lTxt += "\t\tElement Current Baseline Validity : " + lElDescr.ElementCurrentBaseline.BaselineValidity.ToString() + "\n"; lTxt += "\t\tElement Current Baseline PISBase Version : " + lElDescr.ElementCurrentBaseline.PISBaseDataPackageVersion + "\n"; lTxt += "\t\tElement Current Baseline PISBase Validity : " + lElDescr.ElementCurrentBaseline.PISBaseDataPackageValidity.ToString() + "\n"; lTxt += "\t\tElement Current Baseline PISMission Version : " + lElDescr.ElementCurrentBaseline.PISMissionDataPackageVersion + "\n"; lTxt += "\t\tElement Current Baseline PISMission Validity : " + lElDescr.ElementCurrentBaseline.PISMissionDataPackageValidity.ToString() + "\n"; lTxt += "\t\tElement Current Baseline PISInfotainment Version : " + lElDescr.ElementCurrentBaseline.PISInfotainmentDataPackageVersion + "\n"; lTxt += "\t\tElement Current Baseline PISInfotainment Validity : " + lElDescr.ElementCurrentBaseline.PISInfotainmentDataPackageValidity.ToString() + "\n"; lTxt += "\t\tElement Current Baseline LMT Version : " + lElDescr.ElementCurrentBaseline.LMTDataPackageVersion + "\n"; lTxt += "\t\tElement Current Baseline LMT Validity : " + lElDescr.ElementCurrentBaseline.LMTDataPackageValidity.ToString() + "\n"; lTxt += "\t\tElement Future Baseline : " + lElDescr.ElementFutureBaseline.BaselineVersion + "\n"; lTxt += "\t\tElement Future Baseline Expiration Date : " + lElDescr.ElementFutureBaselineExpirationDate.ToString() + "\n"; lTxt += "\t\tElement Future Baseline Activation Date : " + lElDescr.ElementFutureBaselineActivationDate + "\n"; lTxt += "\t\tElement Future Baseline Validity : " + lElDescr.ElementFutureBaseline.BaselineValidity.ToString() + "\n"; lTxt += "\t\tElement Future Baseline PISBase Version : " + lElDescr.ElementFutureBaseline.PISBaseDataPackageVersion + "\n"; lTxt += "\t\tElement Future Baseline PISBase Validity : " + lElDescr.ElementFutureBaseline.PISBaseDataPackageValidity.ToString() + "\n"; lTxt += "\t\tElement Future Baseline PISMission Version : " + lElDescr.ElementFutureBaseline.PISMissionDataPackageVersion + "\n"; lTxt += "\t\tElement Future Baseline PISMission Validity : " + lElDescr.ElementFutureBaseline.PISMissionDataPackageValidity.ToString() + "\n"; lTxt += "\t\tElement Future Baseline PISInfotainment Version : " + lElDescr.ElementFutureBaseline.PISInfotainmentDataPackageVersion + "\n"; lTxt += "\t\tElement Future Baseline PISInfotainment Validity : " + lElDescr.ElementFutureBaseline.PISInfotainmentDataPackageValidity.ToString() + "\n"; lTxt += "\t\tElement Future Baseline LMT Version : " + lElDescr.ElementFutureBaseline.LMTDataPackageVersion + "\n"; lTxt += "\t\tElement Future Baseline LMT Validity : " + lElDescr.ElementFutureBaseline.LMTDataPackageValidity.ToString() + "\n"; lTxt += "\t\tElement Assigned Current Baseline : " + lElDescr.AssignedCurrentBaseline + "\n"; lTxt += "\t\tElement Assigned Current Baseline Expiration Date : " + lElDescr.AssignedCurrentBaselineExpirationDate.ToString() + "\n"; lTxt += "\t\tElement Assigned Future Baseline : " + lElDescr.AssignedFutureBaseline + "\n"; lTxt += "\t\tElement Assigned Future Baseline Expiration Date : " + lElDescr.AssignedFutureBaselineExpirationDate.ToString() + "\n"; lTxt += "\t\tElement Assigned Future Baseline Activation Date : " + lElDescr.AssignedFutureBaselineActivationDate + "\n"; } } lock (_logtxt) { _logtxt += lTxt; } Application.UseWaitCursor = false; } }