예제 #1
0
 /// <summary>
 /// Function to call frmEmployeePopup to view and select Employees
 /// </summary>
 /// <param name="frm"></param>
 /// <param name="decEmployeeId"></param>
 public void CallFromEmployeePopUp(frmEmployeePopup frm, decimal decEmployeeId)
 {
     try
     {
         base.Show();
         frmEmployeePopupObj       = frm;
         cmbEmployee.SelectedValue = decEmployeeId;
         cmbEmployee.Focus();
         frmEmployeePopupObj.Close();
         frmEmployeePopupObj = null;
     }
     catch (Exception ex)
     {
         MessageBox.Show("DAR:3" + ex.Message, "Open Miracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }
예제 #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)
     {
         MessageBox.Show("BDR5:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }