Ejemplo n.º 1
0
 private void bSPUNSavePru_Click(object sender, System.EventArgs e)
 {
     if (this.ValidatePeriod(this.datePeriodSPUN))
     {
         System.Windows.Forms.FolderBrowserDialog dialog = new System.Windows.Forms.FolderBrowserDialog();
         dialog.set_SelectedPath(this.ServNachDirectorySid);
         if (dialog.ShowDialog() == System.Windows.Forms.DialogResult.OK)
         {
             int processType = this.cbSPUNDelOld.get_Checked() ? ((int) 2) : ((int) 1);
             Mappers.ExportMapper.Export_SPUN(this.datePeriodSPUN.DateBegin.Date, this.datePeriodSPUN.DateEnd.Date, dialog.get_SelectedPath(), "P", 0x23, processType, false, "exec dbo.sid$export_pru", "Реестр приборов учета");
         }
     }
 }