Exemplo n.º 1
0
        void Search()
        {
            try
            {
                Mouse.OverrideCursor = System.Windows.Input.Cursors.Wait;

                string _code = txtCode.Text.ToUpper();
                if (_code == "")
                {
                    _code = CommonData.c_All_Value;
                }

                string _Building = "-1";
                if (cboBuilding.Text != CommonData.c_All_Content)
                {
                    _Building = cboBuilding.SelectedValue.ToString();
                }

                string _customer_name = txtCustomer_Name.Text;
                if (_customer_name == "")
                {
                    _customer_name = CommonData.c_All_Value;
                }

                c_lst = c_Contract_Controller.Contract_Render_Search(_code, cboStatus.SelectedValue.ToString(),
                                                                     cboStatusPay.SelectedValue.ToString(), _Building, _customer_name);

                Mouse.OverrideCursor    = null;
                dgrContract.ItemsSource = c_lst;
                DataGridHelper.NVSFocus(dgrContract, 0, 0);
            }
            catch (Exception ex)
            {
                Mouse.OverrideCursor = null;
                ErrorLog.log.Error(ex.ToString());
            }
        }
Exemplo n.º 2
0
        void Search()
        {
            try
            {
                Mouse.OverrideCursor = System.Windows.Input.Cursors.Wait;

                string _code = txtCode.Text.ToUpper();
                if (_code == "")
                {
                    _code = CommonData.c_All_Value;
                }

                c_lst = c_Contract_Controller.Contract_Render_Search(_code, CommonData.c_All_Value, ((decimal)Enum_Fee_Status.No_Pay).ToString(), "-1", CommonData.c_All_Value);

                Mouse.OverrideCursor    = null;
                dgrContract.ItemsSource = c_lst;
                DataGridHelper.NVSFocus(dgrContract, 0, 0);
            }
            catch (Exception ex)
            {
                Mouse.OverrideCursor = null;
                ErrorLog.log.Error(ex.ToString());
            }
        }