/// <summary> /// Function to call frmEmployeePopup form 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("ER5" + ex.Message, "Open Miracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } }
/// <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); } }
/// <summary> /// Function to call frmEmployeePopup to view and select Employee details /// </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 = "APR:3 " + ex.Message; } }
//POP UP /// <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) { 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); } }
/// <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); } }
/// <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; } }
// Employee pop up form /// <summary> /// Function to call frmEmployeePopup form to select and view Employee /// </summary> /// <param name="frmEmployeePopup"></param> /// <param name="decId"></param> public void CallEmployeePopup(frmEmployeePopup frmEmployeePopup, decimal decId) { try { this.Enabled = true; this.frmEmployeePopupObj = frmEmployeePopup; SalesmanComboFill(); cmbSalesman.SelectedValue = decId; cmbSalesman.Focus(); frmEmployeePopupObj.Close(); frmEmployeePopupObj = null; } catch (Exception ex) { MessageBox.Show("SV 16 : " + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } }
/// <summary> /// Function to call frmEmployeePopup form to select and view Employee /// </summary> /// <param name="frmEmployeePopup"></param> /// <param name="decId"></param> public void CallEmployeePopUp(frmEmployeePopup frmEmployeePopup, decimal decId) //PopUp { try { base.Show(); this.frmEmployeePopUpObj = frmEmployeePopup; salesManComboFill(); cmbSalesMan.SelectedValue = decId; cmbSalesMan.Focus(); frmEmployeePopUpObj.Close(); frmEmployeePopUpObj = null; } catch (Exception ex) { MessageBox.Show("SI: 58" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } }