Exemple #1
0
    private void LoadFinancialYear()
    {
        try
        {
            objBudgetYearActivation     = new BudgetYearActivationModel();
            objBudgetYearActivation.Ind = 11;

            string    uri             = string.Format("BudgetYearActivation/LoadFinancialYear");
            DataTable dtFinancialYear = CommonCls.ApiPostDataTable(uri, objBudgetYearActivation);
            if (dtFinancialYear.Rows.Count > 0)
            {
                txtOrderNo.Text              = dtFinancialYear.Rows[0]["BudgetOrderNumber"].ToString();
                txtOrderDate.Text            = CommonCls.ConvertDateDB(dtFinancialYear.Rows[0]["BudgetOrderDate"].ToString());
                ddlFinancialYr.SelectedValue = dtFinancialYear.Rows[0]["YearFromTo"].ToString();
            }
        }
        catch (Exception ex)
        {
            ShowMessage(ex.Message, false);
        }
    }