Esempio n. 1
0
 private void btnCOASearch_Click(object sender, EventArgs e)
 {
     try
     {
         frmSearch search = new frmSearch();
         search.getattributes("GetCOASearch", null, "Chart Of Accounts");
         search.ShowDialog();
         if (!string.IsNullOrEmpty(MainForm.Searched_Id))
         {
             txtCOACode.Text      = MainForm.Searched_Id;
             MainForm.Searched_Id = string.Empty;
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }
Esempio n. 2
0
 private void btnDeliveredBySearch_Click(object sender, EventArgs e)
 {
     try
     {
         frmSearch search = new frmSearch();
         search.getattributes("GetEmployeeSearch", null, "Employee");
         search.ShowDialog();
         if (!string.IsNullOrEmpty(MainForm.Searched_Id))
         {
             txtDeliveredByCode.Text = MainForm.Searched_Id;
             MainForm.Searched_Id    = string.Empty;
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }
Esempio n. 3
0
 private void btnSNo_Click(object sender, EventArgs e)
 {
     try
     {
         frmSearch search = new frmSearch();
         search.getattributes("GetSearchSalesOrdersAllYear", null, "Sales Orders");
         search.ShowDialog();
         if (!string.IsNullOrEmpty(MainForm.Searched_Id))
         {
             txtSONo.Text         = MainForm.Searched_Id;
             MainForm.Searched_Id = string.Empty;
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }
Esempio n. 4
0
 private void btnSearch_Click(object sender, EventArgs e)
 {
     try
     {
         frmSearch search = new frmSearch();
         search.getattributes("GetWTSearch", null, "Warehouse Transfer");
         search.ShowDialog();
         if (!string.IsNullOrEmpty(MainForm.Searched_Id))
         {
             txtWTCode.Text       = MainForm.Searched_Id;
             MainForm.Searched_Id = string.Empty;
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }
Esempio n. 5
0
 private void btnSearch_Click(object sender, EventArgs e)
 {
     try
     {
         frmSearch search = new frmSearch();
         search.getattributes("sp_GetUserSearch", null, "User");
         search.ShowDialog();
         if (!string.IsNullOrEmpty(MainForm.Searched_Id))
         {
             LoadUserById(Convert.ToInt32(MainForm.Searched_Id));
             MainForm.Searched_Id = string.Empty;
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }
Esempio n. 6
0
 private void btnSearch_Click(object sender, EventArgs e)
 {
     try
     {
         frmSearch search = new frmSearch();
         search.getattributes("GetSearchStockRequisition", null, "Stock Requisitions");
         search.ShowDialog();
         if (!string.IsNullOrEmpty(MainForm.Searched_Id))
         {
             txtRequisitionNo.Text = MainForm.Searched_Id;
             MainForm.Searched_Id  = string.Empty;
             //LoadInvoice();
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }
Esempio n. 7
0
 private void btnSearch_Click(object sender, EventArgs e)
 {
     try
     {
         frmSearch search = new frmSearch();
         Smartworks.ColumnField[] gREQ = new Smartworks.ColumnField[1];
         gREQ[0] = new Smartworks.ColumnField("@IsApproved", false);
         search.getattributes("GetSearchStockRequisition", gREQ, "Stock Requisitions");
         search.ShowDialog();
         if (!string.IsNullOrEmpty(MainForm.Searched_Id))
         {
             txtRequisitionNo.Text = MainForm.Searched_Id;
             MainForm.Searched_Id  = string.Empty;
             //LoadInvoice();
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }
Esempio n. 8
0
 private void btnSearch_Click(object sender, EventArgs e)
 {
     try
     {
         frmSearch search = new frmSearch();
         search.getattributes("GetProductSearch", null, "Products");
         search.ShowDialog();
         if (!string.IsNullOrEmpty(MainForm.Searched_Id))
         {
             txtProductCode.Text  = MainForm.Searched_Id;
             MainForm.Searched_Id = string.Empty;
         }
         else
         {
             //txtProductCode.Text = string.Empty;
             //txtProductCode.Focus();
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }
Esempio n. 9
0
 private void btnSearch_Click(object sender, EventArgs e)
 {
     try
     {
         frmSearch search = new frmSearch();
         search.getattributes("GetExpenseCatagorySearch", null, "ExpenseCatagory");
         search.ShowDialog();
         if (!string.IsNullOrEmpty(MainForm.Searched_Id))
         {
             txtCategoryId.Text   = MainForm.Searched_Id;
             MainForm.Searched_Id = string.Empty;
         }
         else
         {
             txtCategoryId.Text = string.Empty;
             txtCategoryId.Focus();
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }