Exemplo n.º 1
0
 private void lstRig_TextChanged(object sender, EventArgs e)
 {
     if (lstRig.Text != "")
     {
         int RigId = Convert.ToInt32(lstRig.Properties.GetKeyValueByDisplayValue(lstRig.Text));
         CurrentOperationModel model = well.GetCurrentOperation(RigId);
         if (model != null)
         {
             txtWell.Text         = model.WellName;
             txtWellType.Text     = model.WellTypeName;
             txtSection.Text      = model.SectionName;
             txtPlanDepth.Text    = model.WellDepth.ToString();
             txtOperation.Text    = model.OperationsName;
             txtLocation.Text     = model.LocName;
             txtDaysOnWell.Text   = model.DaysOnWell.ToString();
             txtCurrentDepth.Text = model.CurrentDepth.ToString();
         }
     }
 }
Exemplo n.º 2
0
 private void lstRig_TextChanged(object sender, EventArgs e)
 {
     if (lstRig.Text != "")
     {
         int RigId = Convert.ToInt32(lstRig.Properties.GetKeyValueByDisplayValue(lstRig.Text));
         CurrentOperationModel model = well.GetCurrentOperation(RigId);
         RigModel rig = new RigMasterRepository().GetRig(RigId);
         List <CurrentOperationModel> wells = well.GetCurrentOperationOnWells(RigId);
         if (model != null)
         {
             txtCurrentWell.Text      = model.WellName;
             txtCurrentOperation.Text = model.OperationsName;
             txtCurrentLocation.Text  = model.LocName;
             txtOperatingDays.Text    = model.DaysOnWell.ToString();
             txtModelNo.Text          = rig.RigModelNo;
             txtManufacturer.Text     = rig.RigManufacturer;
             txtProject.Text          = rig.RigProject;
             txtRigSpecification.Text = rig.RigRemarks;
         }
         gridControl1.DataSource = wells;
     }
 }