Пример #1
0
 private void frmQuerKalculation_Load(object sender, EventArgs e)
 {
     try
     {
         if (objBGAEB == null)
         {
             objBGAEB = new BGAEB();
         }
         DataTable dtLVSection = new DataTable();
         dtLVSection = objBGAEB.GetLVSection(ProjectID);
         if (Utility.LVSectionEditAccess == "7")
         {
             DataTable dttemp = dtLVSection.Copy();
             DataView  dv     = dttemp.DefaultView;
             dv.RowFilter = "LVSectionName = 'HA'";
             dtLVSection  = new DataTable();
             dtLVSection  = dv.ToTable();
         }
         cmbLVSection.Properties.DataSource    = dtLVSection;
         cmbLVSection.Properties.DisplayMember = "LVSectionName";
         cmbLVSection.Properties.ValueMember   = "LVSectionID";
         Utility.SetCheckedComboexitValue(cmbLVSection, "HA");
     }
     catch (Exception ex) {}
 }
Пример #2
0
 private void frmGAEBExport_Load(object sender, EventArgs e)
 {
     try
     {
         if (Utility.LVDetailsAccess == "7")
         {
             layoutControl1.Enabled = false;
         }
         string[] _D_formats = { "D81", "D84", "D86", "P81", "P84", "P86", "X81", "X84", "X86" };
         string[] _P_formats = { "P81", "P84", "P86", "X81", "X84", "X86" };
         if (_Raster > 9)
         {
             foreach (string p in _P_formats)
             {
                 cmbFormatType.Properties.Items.Add(p);
             }
             cmbFormatType.SelectedIndex = cmbFormatType.Properties.Items.IndexOf("P86");
         }
         else
         {
             foreach (string d in _D_formats)
             {
                 cmbFormatType.Properties.Items.Add(d);
             }
             cmbFormatType.SelectedIndex = cmbFormatType.Properties.Items.IndexOf("D86");
         }
         txtFilePath.Text = Environment.GetFolderPath(Environment.SpecialFolder.Desktop);
         if (ObjBGAEB == null)
         {
             ObjBGAEB = new BGAEB();
         }
         cmbLVSection.Enabled = true;
         DataTable dtLVSection = new DataTable();
         dtLVSection = ObjBGAEB.GetLVSection(_ProjectID);
         if (rtnOldRaster)
         {
             DataView dvLVSection = dtLVSection.DefaultView;
             dvLVSection.RowFilter = "LVSectionName =  'HA'";
         }
         cmbLVSection.Properties.DataSource    = dtLVSection;
         cmbLVSection.Properties.DisplayMember = "LVSectionName";
         cmbLVSection.Properties.ValueMember   = "LVSectionID";
         Utility.SetCheckedComboexitValue(cmbLVSection, "HA");
     }
     catch (Exception ex)
     {
         Utility.ShowError(ex);
     }
 }
Пример #3
0
 private void frmGAEBImport_Load(object sender, EventArgs e)
 {
     try
     {
         if (Utility.LVDetailsAccess == "7")
         {
             layoutControl1.Enabled = false;
         }
         cmbLVSection.Enabled       = true;
         cmbLVSection.DataSource    = ObjBGAEB.GetLVSection(ProjectID);
         cmbLVSection.DisplayMember = "LVSectionName";
         cmbLVSection.ValueMember   = "LVSectionID";
     }
     catch (Exception ex)
     {
         Utility.ShowError(ex);
     }
 }