private void FormInit() { this.esiTitle.Text = $@"{FromDate.ToShortDateString()} - {ToDate.ToShortDateString()} [{AccountInfo}] - [{StockCode} - {StockName}] "; if (LoginInfo.CurrentUser.IsAdmin) { //实际受益人 var dealers = _accountService.GetAccountOperatorsByAccountId(AccountId); this.luBeneficiary.Initialize(dealers, "Code", "Name", showHeader: false, showFooter: false); //交易类别 var tradeTypes = this._dictionaryService.GetDictionaryInfoByTypeId((int)EnumLibrary.DictionaryType.TradeType) .Select(x => new ComboBoxItemModel { Text = x.Name, Value = x.Code.ToString(), }).ToList(); this.cbTradeType.Initialize(tradeTypes); } else { lcgLeft.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Never; lcgRight.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Never; } this.btnCopy.Enabled = false; this.btnDelete_L.Enabled = false; this.btnDelete_R.Enabled = false; this.gridView1.SetLayout(showAutoFilterRow: false, showCheckBoxRowSelect: LoginInfo.CurrentUser.IsAdmin, rowIndicatorWidth: 40); this.gridView2.SetLayout(showAutoFilterRow: false, showCheckBoxRowSelect: LoginInfo.CurrentUser.IsAdmin, rowIndicatorWidth: 40); }
public override string ToString() { return(Name.ToString() + "\n" + "Id".PadRight(15) + Id + "\n" + "Site Id".PadRight(15) + SiteId + "\n" + "Check-in".PadRight(15) + FromDate.ToShortDateString() + "\n" + "Check-out".PadRight(15) + ToDate.ToShortDateString() + "\n" + "Creation Date".PadRight(15) + CreateDate + "\n"); }
public List <string> GetHeader() { List <string> list = new List <string>(); list.Add(string.Format("за сметка : {0}", CurrenAcc)); list.Add(string.Format("за период : {0} до {1}", FromDate.ToShortDateString(), ToDate.ToShortDateString())); list.Add(string.Format("Дата на извлечението : {0}", DateTime.Now.ToShortDateString())); list.Add(string.Format("за фирма : {0}", ConfigTempoSinglenton.GetInstance().CurrentFirma.Name)); list.Add(string.Format("Счетоводител : {0}", Config.CurrentUser.Name)); list.Add(string.Format("за папка : {0}", Folder)); list.Add(string.Format("за обекта : {0}", ObjectName)); list.Add(string.Format("вид валута : {0}", VidVal)); if (!string.IsNullOrWhiteSpace(CodeClient)) { list.Add(string.Format("Клиент : {0} {1}", CodeClient, Client)); } return(list); }
public override string ToString() { return(ReservationId.ToString().PadRight(9) + SiteId.ToString().PadRight(24) + Name.ToString().PadRight(32) + FromDate.ToShortDateString().PadRight(15) + ToDate.ToShortDateString().PadRight(17) + CreateDate.ToShortDateString().PadRight(10)); }
public List <string> GetHeader() { List <string> list = new List <string>(); list.Add(string.Format("за : {0}", Currentfilter)); list.Add(string.Format("за период : {0} до {1}", FromDate.ToShortDateString(), ToDate.ToShortDateString())); list.Add(string.Format("Дата на извлечението : {0}", DateTime.Now.ToShortDateString())); list.Add(string.Format("за фирма : {0}", ConfigTempoSinglenton.GetInstance().CurrentFirma.Name)); list.Add(string.Format("Счетоводител : {0}", Config.CurrentUser.Name)); return(list); }
private void SaveInExcel() { if (DealNumbersList.Count > 0) { // Variables info string path = ""; string templateFile = ""; string templatePath = @"\\192.168.11.5\Archive\Templates\ForAll\FinalReport.xlsx"; // Get path to save template try { path = Service.GetDirectory().FullName; } catch { path = ""; } if (!string.IsNullOrEmpty(path)) { // Get template file templateFile = path + "\\Финальный отчет с " + FromDate.ToShortDateString() + " по " + ToDate.ToShortDateString() + ".xlsx"; if (Service.CopyFile(templatePath, templateFile, true)) { // Fill template file with info try { FinalReportService.FormateDocument(templateFile, DealNumbersList); // Open folder with file FolderExplorer.OpenFolder(path + "\\"); } catch (Exception ex) { MessagesService.Show("Оповещение", "Произошла ошибка во время формирования отчета\n" + ex.ToString()); } } else { MessagesService.Show("Оповещение", "Произошла ошибка во время копирования шаблона"); } } } else { MessagesService.Show("Оповещение", "Нет данных для формирования"); } }
public OborotkiViewModel() { ToDate = DateTime.Now; FromDate = DateTime.Now.AddMonths(-1); //ReportItems= new List<ReportItem>{ // new ReportItem{IsShow=true, Width=20, Name="Номер Сметка",Height=20}, // new ReportItem{IsShow=true, Width=50, Name="Име на Сметка",Height=20}, // new ReportItem{IsShow=true, Width=15, Name="Начално салдо дебит",Height=20,Sborno = true}, // new ReportItem{IsShow=true, Width=15, Name="Начално салдо кредит",Height=20,Sborno = true}, // new ReportItem{IsShow=true, Width=15, Name="Оборот дебит",Height=20,Sborno = true}, // new ReportItem{IsShow=true, Width=15, Name="Оборот кредит",Height=20,Sborno = true}, // new ReportItem{IsShow=true, Width=15, Name="Крайно салдо дебит",Height=20,Sborno = true}, // new ReportItem{IsShow=true, Width=15, Name="Крайно салдо кредит",Height=20,Sborno = true} // }; //if (FullReport == 1) //{ ReportItems = new List <ReportItem> { new ReportItem { IsShow = true, Width = 7, Name = "Сметка", Height = 20 }, new ReportItem { IsShow = true, Width = 50, Name = "Име на Сметка", Height = 20 }, new ReportItem { IsShow = true, Width = 15, Name = "НС дт", Height = 20, Sborno = true }, new ReportItem { IsShow = true, Width = 15, Name = "НС кт", Height = 20, Sborno = true }, new ReportItem { IsShow = true, Width = 15, Name = "ДО", Height = 20, Sborno = true }, new ReportItem { IsShow = true, Width = 15, Name = "КО", Height = 20, Sborno = true }, new ReportItem { IsShow = true, Width = 15, Name = "КС дт", Height = 20, Sborno = true }, new ReportItem { IsShow = true, Width = 15, Name = "КС кт", Height = 20, Sborno = true }, //new ReportItem{IsShow = true, Width = 15, Name = "НС дебит валута", Height = 20, Sborno = true }, //new ReportItem{IsShow = true, Width = 15, Name = "НС кредит валута", Height = 20, Sborno = true }, //new ReportItem{IsShow = true, Width = 15, Name = "Оборот дебит валута", Height = 20, Sborno = true }, //new ReportItem{IsShow = true, Width = 15, Name = "Оборот кредит валута", Height = 20, Sborno = true }, //new ReportItem{IsShow = true, Width = 15, Name = "КС дебит валута", Height = 20, Sborno = true }, //new ReportItem{IsShow = true, Width = 15, Name = "КС кредит валута", Height = 20, Sborno = true }, //new ReportItem{IsShow = true, Width = 15, Name = "НС дебит количество", Height = 20, Sborno = true }, //new ReportItem{IsShow = true, Width = 15, Name = "НС кредит количество", Height = 20, Sborno = true }, //new ReportItem{IsShow = true, Width = 15, Name = "Оборот дебит количество", Height = 20, Sborno = true }, //new ReportItem{IsShow = true, Width = 15, Name = "Оборот кредит количество", Height = 20, Sborno = true }, //new ReportItem{IsShow = true, Width = 15, Name = "КС дебит количество", Height = 20, Sborno = true }, //new ReportItem{IsShow = true, Width = 15, Name = "КС кредит количество", Height = 20, Sborno = true }, //} }; title = string.Format("на фирма {0} от {1} до {2}", ConfigTempoSinglenton.GetInstance().CurrentFirma.Name, FromDate.ToShortDateString(), ToDate.ToShortDateString()); if (FullReport == 1) { title = string.Format("на фирма {0} от {1} до {2}", ConfigTempoSinglenton.GetInstance().CurrentFirma.Name, FromDate.ToShortDateString(), ToDate.ToShortDateString()); } }
public override string ToString() { return("From " + CityFrom + " at " + FromDate.ToShortDateString() + " " + FromDate.ToShortTimeString() + " to " + CityTo + " at " + ToDate.ToShortDateString() + " " + ToDate.ToShortTimeString()); }
public String ToString() { return(FromDate.ToShortDateString() + " - " + ToDate.ToShortDateString() + " : " + TimeLine.ToString() + " diff= " + (ToTicks - FromTicks).ToString("0,0")); }
private async void SearchCommandRecieverAsync() { try { await _navigationService.NavigateAsync("PalletSearchedListView", new NavigationParameters { { "GetPalletSearchAsync", PartnerModel?.PartnerId }, { "FromDate", FromDate.ToShortDateString() }, { "ToDate", ToDate.ToShortDateString() } }, animated : false); } catch (Exception ex) { Crashes.TrackError(ex); } }
public override string ToString() { return(String.Format("Name: {0}\nFrom: {1} to {2}\nNumber of players: {3}" + "\nNumber of initial matches: {4}\n\nGamemaster: \n{5}", Name, FromDate.ToShortDateString(), ToDate.ToShortDateString(), NumOfPlayers, NumOfMatches, Gamemaster)); }
public override string ToString() { return(ReservationID.ToString().PadRight(10) + "Site ID: " + SiteID.ToString().PadRight(10) + Name.PadRight(10) + "Start Date: " + FromDate.ToShortDateString().PadRight(10) + "End Date: " + ToDate.ToShortDateString().PadRight(10) + "Reservation Created: " + CreateDate.ToShortDateString()); }