private void DeleteFile_Click(object sender, RoutedEventArgs e) { if (CurrentTendering.PermanentRecord == true) { ErrorHandler.NotifyUser(Errors.Permanented); return; } if (SaveBtn.IsEnabled == false) { ErrorHandler.ShowErrorMessage("امکان انجام این عملیات وجود ندارد"); return; } if (!UserData.CurrentAccessRight.TenderingDelete) { ErrorHandler.ShowErrorMessage(Errors.OperationNotAllowed); return; } var item = NoticeGrid.SelectedItem as Advertisement; if (item == null || item.AdvertisementId == 0) { ErrorHandler.ShowErrorMessage(ErrorHandler.ErrorMessages["NoFile"]); return; } FilingManager.DeleteTenderingFile(CurrentNotice.TenderingId, (TenderingIndex.Advertisement), null, null, this.layoutRoot, item.AdvertisementId); }
private void DelBtn_Click(object sender, RoutedEventArgs e) { if (CurrentTendering.TenderingId == 0) { ErrorHandler.ShowErrorMessage(ErrorHandler.ErrorMessages["NotSaved"]); return; } FilingManager.DeleteTenderingFile(CurrentTendering.TenderingId, TenderingIndex.WarrantyMeeting, null, null, this.layoutRoot); }
private void CommDelBtn_Click(object sender, RoutedEventArgs e) { if (CurrentMeeting.MeetingId == 0) { ErrorHandler.ShowErrorMessage(ErrorHandler.ErrorMessages["NotSaved"]); return; } FilingManager.DeleteTenderingFile(CurrentTendering.TenderingId, committee, null, null, this.layoutRoot, null, CurrentMeeting.MeetingId); }
private void DelBtn_Click(object sender, RoutedEventArgs e) { if (!UserData.CurrentAccessRight.TenderingDelete) { ErrorHandler.ShowErrorMessage("امکان انجام این عملیات وجود ندارد"); return; } FilingManager.DeleteTenderingFile(CurrentTendering.TenderingId, TenderingIndex.Bidding, null, null, this.layoutRoot); }
private void DeleteBtn_Click(object sender, RoutedEventArgs e) { if (CurrentTendering.RequestPermanentCheck == true) { ErrorHandler.NotifyUser("سند به تایید نهایی رسیده است"); return; } FilingManager.DeleteTenderingFile(CurrentTendering.TenderingId, TenderingIndex.CommitteDicision, null, null, this.layoutRoot); }
private void DelBtn_Click(object sender, RoutedEventArgs e) { if (!UserData.CurrentAccessRight.TenderingDelete) { ErrorHandler.ShowErrorMessage(Errors.OperationNotAllowed); return; } FilingManager.DeleteTenderingFile(CurrentTendering.TenderingId, TenderingIndex.CommitteDicision, null, null, this.layoutRoot); }
private void DeleteFile_Click(object sender, RoutedEventArgs e) { var o = Grid.SelectedItem as UI5GridItems; FilingManager.DeleteTenderingFile(CurrentTendering.TenderingId, (TenderingIndex)o.DocumentIndex, null, o.Version, this.layoutRoot); GridList.Remove(o); UpdateGridList(); Grid.Items.Refresh(); }
private void DelPicBtn_Click(object sender, RoutedEventArgs e) { if (CurrentTendering.RequestPermanentCheck == true) { ErrorHandler.NotifyUser("سند به تایید نهایی رسیده است"); return; } if (!UserData.CurrentAccessRight.TenderingDelete) { ErrorHandler.ShowErrorMessage("امکان انجام این عملیات وجود ندارد"); return; } FilingManager.DeleteTenderingFile(CurrentTendering.TenderingId, TenderingIndex.CreditControl, null, null, this.layoutRoot); }
private void DelPicBtn_Click(object sender, RoutedEventArgs e) { if (CurrentTendering.RequestPermanentCheck == true) { ErrorHandler.NotifyUser("سند به تایید نهایی رسیده است"); return; } if (!UserData.CurrentAccessRight.TenderingDelete) { ErrorHandler.ShowErrorMessage(Errors.OperationNotAllowed); return; } FilingManager.DeleteTenderingFile(CurrentTendering.TenderingId, TenderingIndex.CeoOrder, null, null, this.layoutRoot); }
private void DelBtn_Click(object sender, RoutedEventArgs e) { if (CurrentMeeting.MeetingId == 0) { ErrorHandler.ShowErrorMessage(ErrorHandler.ErrorMessages["NotSaved"]); return; } if (!UserData.CurrentAccessRight.TenderingDelete) { ErrorHandler.ShowErrorMessage(Errors.OperationNotAllowed); return; } FilingManager.DeleteTenderingFile(CurrentTendering.TenderingId, meeting, null, null, this.layoutRoot, null, CurrentMeeting.MeetingId); }
private void button6_Click(object sender, RoutedEventArgs e) { if (CurrentTendering.TenderingType != "محدود دو مرحله اي" && CurrentTendering.TenderingType != "عمومي دو مرحله اي" && CurrentTendering.HasQualityEvaluation == false) { ErrorHandler.ShowErrorMessage("این مناقصه ارزیابی کیفی ندارد"); return; } if (!UserData.CurrentAccessRight.TenderingDelete) { ErrorHandler.ShowErrorMessage(Errors.OperationNotAllowed); return; } FilingManager.DeleteTenderingFile(CurrentTendering.TenderingId, TenderingIndex.TechincalCommitteeMeeting, null, null, this.layoutRoot); }
private void button3_Click(object sender, RoutedEventArgs e) { if (CurrentTendering.TenderingType != "محدود دو مرحله اي" && CurrentTendering.TenderingType != "عمومي دو مرحله اي") { ErrorHandler.ShowErrorMessage("امکان انجام این عملیات وجود ندارد"); return; } if (!UserData.CurrentAccessRight.TenderingDelete) { ErrorHandler.ShowErrorMessage(Errors.OperationNotAllowed); return; } FilingManager.DeleteTenderingFile(CurrentTendering.TenderingId, TenderingIndex.BiddingCommitteeMeeting, null, null, this.layoutRoot); }
private void DelBtn1_Click(object sender, RoutedEventArgs e) { if (CurrentReq.ContractorRequestId == 0) { ErrorHandler.ShowErrorMessage(ErrorHandler.ErrorMessages["NotSaved"]); return; } if (!UserData.CurrentAccessRight.TenderingDelete) { ErrorHandler.ShowErrorMessage("امکان انجام این عملیات وجود ندارد"); return; } if (CurrentTendering.RequestPermanentCheck == true) { ErrorHandler.NotifyUser("سند به تایید نهایی رسیده است"); return; } FilingManager.DeleteTenderingFile(CurrentTendering.TenderingId, TenderingIndex.PrivateConditions, null, null, this.layoutRoot); }
private void DeleteFile_Click(object sender, RoutedEventArgs e) { if (!UserData.CurrentAccessRight.TenderingDelete) { ErrorHandler.ShowErrorMessage(Errors.OperationNotAllowed); return; } if (SaveBtn.IsEnabled == false || !UserData.CurrentAccessRight.TenderingDelete) { ErrorHandler.ShowErrorMessage("امکان انجام این عملیات وجود ندارد"); return; } var item = dataGrid.SelectedItem as ContractorTenderingSubmitPacket; if (item == null || item.ContractorSubmitingDocumentId == 0) { ErrorHandler.ShowErrorMessage(ErrorHandler.ErrorMessages["NotSaved"]); return; } FilingManager.DeleteTenderingFile(CurrentTendering.TenderingId, (TenderingIndex.PacketPresent), item.ContractorId, null, this.layoutRoot, null); }
private void DeleteFile_Click(object sender, RoutedEventArgs e) { if (button2.IsEnabled == false) { ErrorHandler.ShowErrorMessage("امکان انجام این عملیات وجود ندارد"); return; } if (!UserData.CurrentAccessRight.TenderingDelete) { ErrorHandler.ShowErrorMessage(Errors.OperationNotAllowed); return; } var o = Grid.SelectedItem as UI5GridItems; //FilingManager.DeleteTenderingFile(CurrentTendering.TenderingId, (TenderingIndex)o.DocumentIndex, null, o.Version, this.layoutRoot); FilingManager.DeleteTenderingFile(o.FileId, this.layoutRoot); GridList.Remove(o); //UpdateGridList(); Grid.Items.Refresh(); }
private void DelBtn_Click(object sender, RoutedEventArgs e) { FilingManager.DeleteTenderingFile(CurrentTendering.TenderingId, TenderingIndex.OpenPacketOne, null, null, this.layoutRoot, null, CurrentMeeting.MeetingId); }