Exemplo n.º 1
0
 /// <summary>
 /// Function to call frmEmployeePopup to view and select the Employee
 /// </summary>
 /// <param name="frm"></param>
 /// <param name="decEmployeeId"></param>
 public void CallFromEmployeePopUp(frmEmployeePopup frm, decimal decEmployeeId)
 {
     try
     {
         base.Show();
         frmEmployeePopupObj           = frm;
         cmbEmployeeCode.SelectedValue = decEmployeeId;
         cmbEmployeeCode.Focus();
         frmEmployeePopupObj.Close();
         frmEmployeePopupObj = null;
     }
     catch (Exception ex)
     {
         formMDI.infoError.ErrorString = "DSR1" + ex.Message;
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// Function to call frmEmployeePopup form to select and view Employee
 /// </summary>
 /// <param name="frmEmployee"></param>
 /// <param name="decId"></param>
 public void CallFromEmployee(frmEmployeePopup frmEmployee, decimal decId) //POP UP
 {
     try
     {
         base.Show();
         this.frmEmployeeObj = frmEmployee;
         EmployeeNameComboFill();
         cmbEmployeeName.SelectedValue = decId;
         cmbEmployeeName.Focus();
         frmEmployeeObj.Close();
         frmEmployeeObj = null;
     }
     catch (Exception ex)
     {
         formMDI.infoError.ErrorString = "BDR5:" + ex.Message;
     }
 }