Ejemplo n.º 1
0
        private void btnVoucherSearch_Click(object sender, EventArgs e)
        {
            try
            {
                frmSearch search = new frmSearch();
                Smartworks.ColumnField[] sVoucher = new Smartworks.ColumnField[1];
                sVoucher[0] = new Smartworks.ColumnField("@Type", "CP");

                search.getattributes("sp_GetVoucherSearch", sVoucher, "VoucherMaster");
                search.ShowDialog();
                if (!string.IsNullOrEmpty(MainForm.Searched_Id))
                {
                    txtCashPaymentCode.Text = MainForm.Searched_Id;
                    MainForm.Searched_Id    = string.Empty;
                }
                else
                {
                    txtCashPaymentCode.Text = string.Empty;
                    txtCashPaymentCode.Focus();
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }
Ejemplo n.º 2
0
 private void btnPSearch_Click(object sender, EventArgs e)
 {
     try
     {
         if (string.IsNullOrEmpty(txtSONo.Text))
         {
             MessageBox.Show("Please Select Sale Order Number.", "Sale Order is Required.", MessageBoxButtons.OK, MessageBoxIcon.Warning);
             return;
         }
         frmSearch search = new frmSearch();
         Smartworks.ColumnField[] gSalesOrderProduct = new Smartworks.ColumnField[1];
         gSalesOrderProduct[0] = new Smartworks.ColumnField("@SaleOrderNo", txtSONo.Text);
         search.getattributes("GetProductSearchForSalesOrder", gSalesOrderProduct, "Products");
         search.ShowDialog();
         if (!string.IsNullOrEmpty(MainForm.Searched_Id))
         {
             txtPCode.Text        = MainForm.Searched_Id;
             MainForm.Searched_Id = string.Empty;
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }
Ejemplo n.º 3
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);
     }
 }
Ejemplo n.º 4
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);
     }
 }
Ejemplo n.º 5
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);
     }
 }
Ejemplo n.º 6
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);
     }
 }
Ejemplo n.º 7
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);
     }
 }
Ejemplo n.º 8
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);
     }
 }
Ejemplo n.º 9
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);
     }
 }
Ejemplo n.º 10
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);
     }
 }
Ejemplo n.º 11
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);
     }
 }