private void SaveFile_Click(object sender, RoutedEventArgs e)
        {
            if (CurrentTendering.PermanentRecord == true)
            {
                ErrorHandler.NotifyUser(Errors.Permanented);
                return;
            }
            if (SaveBtn.IsEnabled == false)
            {
                ErrorHandler.ShowErrorMessage("امکان انجام این عملیات وجود ندارد");
                return;
            }
            if (!UserData.CurrentAccessRight.TenderingWrite)
            {
                ErrorHandler.ShowErrorMessage(Errors.OperationNotAllowed);
                return;
            }
            var item = NoticeGrid.SelectedItem as Advertisement;

            if (item == null || item.AdvertisementId == 0)
            {
                ErrorHandler.ShowErrorMessage(ErrorHandler.ErrorMessages["NotSaved"]);
                return;
            }
            FilingManager.UploadTenderingFile(CurrentNotice.TenderingId, (TenderingIndex.Advertisement), null, null, this.layoutRoot, item.AdvertisementId);
        }
Exemple #2
0
        private void SaveFile_Click(object sender, RoutedEventArgs e)
        {
            var o = Grid.SelectedItem as UI5GridItems;

            FilingManager.UploadTenderingFile(CurrentTendering.TenderingId, (TenderingIndex)o.DocumentIndex, null, o.Version, this.layoutRoot);
            Grid.Items.Refresh();
        }
Exemple #3
0
 private void AppReqAddBtn_Click(object sender, RoutedEventArgs e)
 {
     if (CurrentMeeting.MeetingId == 0)
     {
         ErrorHandler.ShowErrorMessage(ErrorHandler.ErrorMessages["NotSaved"]);
         return;
     }
     FilingManager.UploadTenderingFile(CurrentTendering.TenderingId, applicant, null, null, this.layoutRoot, null, CurrentMeeting.MeetingId);
 }
 private void SesionRecordAddBtn_Click(object sender, RoutedEventArgs e)
 {
     if (!UserData.CurrentAccessRight.TenderingWrite)
     {
         ErrorHandler.ShowErrorMessage(Errors.OperationNotAllowed);
         return;
     }
     FilingManager.UploadTenderingFile(CurrentTendering.TenderingId, TenderingIndex.Bidding, null, null, this.layoutRoot);
 }
Exemple #5
0
 private void AddPicBtn_Click(object sender, RoutedEventArgs e)
 {
     if (CurrentTendering.RequestPermanentCheck == true)
     {
         ErrorHandler.NotifyUser("سند به تایید نهایی رسیده است");
         return;
     }
     if (!UserData.CurrentAccessRight.TenderingWrite)
     {
         ErrorHandler.ShowErrorMessage(Errors.OperationNotAllowed);
         return;
     }
     FilingManager.UploadTenderingFile(CurrentTendering.TenderingId, TenderingIndex.CreditControl, null, null, this.layoutRoot);
 }
 private void button4_Click(object sender, RoutedEventArgs e)
 {
     if (CurrentTendering.TenderingType != "محدود دو مرحله اي" && CurrentTendering.TenderingType != "عمومي دو مرحله اي" && CurrentTendering.HasQualityEvaluation == false)
     {
         ErrorHandler.ShowErrorMessage("این مناقصه ارزیابی کیفی ندارد");
         return;
     }
     if (!UserData.CurrentAccessRight.TenderingWrite)
     {
         ErrorHandler.ShowErrorMessage(Errors.OperationNotAllowed);
         return;
     }
     FilingManager.UploadTenderingFile(CurrentTendering.TenderingId, TenderingIndex.TechincalCommitteeMeeting, null, null, this.layoutRoot);
 }
 private void button1_Click(object sender, RoutedEventArgs e)
 {
     if (CurrentTendering.TenderingType != "محدود دو مرحله اي" && CurrentTendering.TenderingType != "عمومي دو مرحله اي")
     {
         ErrorHandler.ShowErrorMessage("امکان انجام این عملیات وجود ندارد");
         return;
     }
     if (!UserData.CurrentAccessRight.TenderingWrite)
     {
         ErrorHandler.ShowErrorMessage(Errors.OperationNotAllowed);
         return;
     }
     FilingManager.UploadTenderingFile(CurrentTendering.TenderingId, TenderingIndex.BiddingCommitteeMeeting, null, null, this.layoutRoot);
 }
Exemple #8
0
 private void AddFileBtn_Click(object sender, RoutedEventArgs e)
 {
     if (VersionTxt.Text.Trim() != "")
     {
         FilingManager.UploadTenderingFile(CurrentTendering.TenderingId, (TenderingIndex)DocTypesCom.SelectedValue, null, VersionTxt.Text, this.layoutRoot);
         if (CurrentTendering.TenderingType == "محدود يک مرحله اي" || CurrentTendering.TenderingType == "محدود دو مرحله اي" || CurrentTendering.TenderingType == "ترک تشريفات" || CurrentTendering.TenderingType == "انحصاري")
         {
             DataManagement.UpdateTenderingStage(CurrentTendering, Stages.Notice);
         }
         else
         {
             DataManagement.UpdateTenderingStage(CurrentTendering, Stages.Documents);
         }
         UpdateGridList();
     }
 }
Exemple #9
0
        private void SaveFile_Click(object sender, RoutedEventArgs e)
        {
            if (button2.IsEnabled == false)
            {
                ErrorHandler.ShowErrorMessage("امکان انجام این عملیات وجود ندارد");
                return;
            }
            if (!UserData.CurrentAccessRight.TenderingWrite)
            {
                ErrorHandler.ShowErrorMessage(Errors.OperationNotAllowed);
                return;
            }
            var o = Grid.SelectedItem as UI5GridItems;

            FilingManager.UploadTenderingFile(CurrentTendering.TenderingId, (TenderingIndex)o.DocumentIndex, null, o.Version, this.layoutRoot);
            Grid.Items.Refresh();
        }
 private void AddFileBtn2_Click(object sender, RoutedEventArgs e)
 {
     if (CurrentReq.ContractorRequestId == 0)
     {
         ErrorHandler.ShowErrorMessage(ErrorHandler.ErrorMessages["NotSaved"]);
         return;
     }
     if (CurrentTendering.RequestPermanentCheck == true)
     {
         ErrorHandler.NotifyUser("سند به تایید نهایی رسیده است");
         return;
     }
     if (!UserData.CurrentAccessRight.TenderingWrite)
     {
         ErrorHandler.ShowErrorMessage(Errors.OperationNotAllowed);
         return;
     }
     FilingManager.UploadTenderingFile(CurrentTendering.TenderingId, TenderingIndex.PrivateConditions, null, null, this.layoutRoot);
 }
Exemple #11
0
        private void SaveFile_Click(object sender, RoutedEventArgs e)
        {
            if (!UserData.CurrentAccessRight.TenderingWrite)
            {
                ErrorHandler.ShowErrorMessage(Errors.OperationNotAllowed);
                return;
            }
            if (SaveBtn.IsEnabled == false)
            {
                ErrorHandler.ShowErrorMessage("امکان انجام این عملیات وجود ندارد");
                return;
            }
            var item = dataGrid.SelectedItem as ContractorTenderingSubmitPacket;

            if (item == null || item.ContractorSubmitingDocumentId == 0)
            {
                ErrorHandler.ShowErrorMessage(ErrorHandler.ErrorMessages["NotSaved"]);
                return;
            }
            FilingManager.UploadTenderingFile(CurrentTendering.TenderingId, (TenderingIndex.PacketPresent), item.ContractorId, null, this.layoutRoot, null);
        }
 private void SesionRecordAddBtn_Click(object sender, RoutedEventArgs e)
 {
     FilingManager.UploadTenderingFile(CurrentTendering.TenderingId, TenderingIndex.WarrantyMeeting, null, null, this.layoutRoot);
 }
 private void SesionRecordAddBtn_Click(object sender, RoutedEventArgs e)
 {
     FilingManager.UploadTenderingFile(CurrentTendering.TenderingId, TenderingIndex.OpenPacketOne, null, null, this.layoutRoot, null, CurrentMeeting.MeetingId);
 }