principalement du format de code

This commit is contained in:
2020-09-12 01:11:30 +01:00
parent 3a6f16e3bb
commit 2cd531c242
87 changed files with 510 additions and 550 deletions

View File

@ -34,19 +34,19 @@ namespace Yavsc.Models.HairCut
public string Sender { get; set; }
HairCutQuery query;
readonly HairCutQuery query;
private string invoiceId;
private string payerName;
private string phone;
private string payerEmail;
private string amount;
private HairCutGenders gender;
private string date;
private string lieu;
private string clientFinal;
private string token;
private string payerId;
private readonly string invoiceId;
private readonly string payerName;
private readonly string phone;
private readonly string payerEmail;
private readonly string amount;
private readonly HairCutGenders gender;
private readonly string date;
private readonly string lieu;
private readonly string clientFinal;
private readonly string token;
private readonly string payerId;
public string CreateBody()
{
@ -73,4 +73,4 @@ Le client final: {clientFinal}
";
}
}
}
}

View File

@ -140,7 +140,7 @@ Prestation.Gender == HairCutGenders.Women ?
bill.Add(new CommandLine
{
Name = name,
Description = name = name + shorthairsuffix,
Description = name + shorthairsuffix,
UnitaryCost = multicolor ? SelectedProfile.ShortMultiColorPrice : SelectedProfile.ShortColorPrice
});

View File

@ -36,6 +36,5 @@ namespace Yavsc.Models.Haircut
private set;
}
HairCutQuery Data { get; set; }
}
}

View File

@ -39,7 +39,7 @@ namespace Yavsc.Server.Models.IT
[ForeignKey("GitId")]
public virtual GitRepositoryReference Repository { get; set; }
List<IBillItem> bill = new List<IBillItem>();
readonly List<IBillItem> bill = new List<IBillItem>();
public void AddBillItem(IBillItem item)
{
bill.Add(item);

View File

@ -47,7 +47,7 @@ namespace Yavsc.Server.Models.IT.SourceCode
writer.WriteLine(process.StandardOutput.ReadLine());
}
}
if (ResultHandler!=null) ResultHandler(true);
ResultHandler?.Invoke(true);
}
}
}

View File

@ -36,8 +36,8 @@ namespace Yavsc.Server.Models.IT.SourceCode
writer.WriteLine(process.StandardOutput.ReadLine());
}
}
if (ResultHandler!=null) ResultHandler(true);
ResultHandler?.Invoke(true);
}
}
}
}

View File

@ -21,7 +21,7 @@ public class Announce : BaseEvent, IAnnounce, IOwned
public string Message { get; set; }
public override string CreateBody()
{
return $"Annonce de {Owner.UserName}: {For.ToString()}\n\n{Message}";
return $"Annonce de {Owner.UserName}: {For}\n\n{Message}";
}
}
}

View File

@ -24,13 +24,14 @@ namespace Yavsc.Models.Messaging
Sender = perfer.Performer.UserName;
_localizer = SR;
}
// TODO via e-mail only: Message = string.Format(
// SR["EstimationMessageToClient"],perfer.Performer.UserName, estimate.Title,estimate.Bill.Addition());
//
// TODO via e-mail only: Message = string.Format(
// SR["EstimationMessageToClient"],perfer.Performer.UserName, estimate.Title,estimate.Bill.Addition());
ProviderClientInfo ProviderInfo { get; set; }
Estimate Estimation { get; set; }
private PerformerProfile perfer;
private readonly PerformerProfile perfer;
public string Topic
{
@ -46,7 +47,7 @@ namespace Yavsc.Models.Messaging
public string CreateBody()
{
return string.Format( _localizer["EstimationMessageToClient"], perfer.Performer.UserName, this.Estimation.Bill.Addition());
return string.Format(_localizer["EstimationMessageToClient"], perfer.Performer.UserName, this.Estimation.Bill.Addition());
}
}
}