Exemplo n.º 1
0
 public void GetMaindata()
 {
     if (SortBy == null)
     {
         SortBy = "it.Iserial";
     }
     Loading = true;
     if (SelectedMainRow.FromDate != null)
     {
         if (SelectedMainRow.ToDate != null)
         {
             if (SelectedMainRow.TblCostCenter == 0)
             {
                 Glclient.GetIncomeStatmentDataAsync((DateTime)SelectedMainRow.FromDate, (DateTime)SelectedMainRow.ToDate, SelectedMainRow.CostCenterType, SelectedMainRow.TblCostCenter, LoggedUserInfo.DatabasEname, SelectedMainRow.Code);
             }
             else
             {
                 Glclient.GetIncomeStatmentDataCostCenterAsync((DateTime)SelectedMainRow.FromDate, (DateTime)SelectedMainRow.ToDate, SelectedMainRow.TblCostCenter, LoggedUserInfo.DatabasEname, SelectedMainRow.Code);
             }
         }
     }
 }