Skip to content

Instantly share code, notes, and snippets.

View Macadoshis's full-sized avatar

Saad BENBOUZID Macadoshis

View GitHub Profile
export interface HubProxyCreationResponse {
on(event: string, callback: (serverMessage: string) => void);
}
export interface HubConnectionRepsonse {
createHubProxy(name: string): HubProxyCreationResponse;
}
/**
* jQuery custom plugins
#region using
using CMSS.Domain.Base;
using CMSS.Domain.UserManagement;
using System;
using System.Collections.Generic;
using System.Linq.Expressions;
#endregion
public IPaginatorRespDom<StringPairItemDom> OnLazyReference(string pattern, int start, int rows)
{
var withTranslationQuery = AsLabelTranslationsTranslatedQuery(x => x.Description, pattern);
Expression<Func<WithTranslation<MDMaterial, int>, bool>> filter = null;
if (isValidPattern(pattern))
{
filter = x => x.MdEntity.Name.ToUpper().Contains(pattern.ToUpper());
}
[*]
charset=utf-8
end_of_line=crlf
trim_trailing_whitespace=false
insert_final_newline=false
indent_style=space
indent_size=4
# Microsoft .NET properties
csharp_new_line_before_members_in_object_initializers=false
Index: CMSS.Client/src/app/component/affiliate-management/label-translation-configuration/label-translation-configuration.component.ts
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- CMSS.Client/src/app/component/affiliate-management/label-translation-configuration/label-translation-configuration.component.ts (revision 2437c32707b82def0e4f7a077d441cbfc51a0cb7)
+++ CMSS.Client/src/app/component/affiliate-management/label-translation-configuration/label-translation-configuration.component.ts (date 1561463127412)
@@ -8,6 +8,7 @@
import { IResponseItem } from '../../../models/core/i-response-item';
import { FileUpload } from 'primeng/primeng';
using CMSS.Domain.ServiceFolderManagement;
namespace CMSS.Application.StateMachine.Base
{
public class TransitionServiceFolderPair
{
public TransitionServiceFolderPair(ServiceFolderStatus source, ServiceFolderStatus target, bool changeRequest = false)
{
Source = source;
Target = target;
protected bool Equals(InvoicingFeeJournalGatewayDom other)
{
return string.Equals(JournalId, other.JournalId) && string.Equals(WorkInstruction, other.WorkInstruction) && string.Equals(WorkInstructionDescription, other.WorkInstructionDescription) && SalesAmount == other.SalesAmount && PublicSalesAmount == other.PublicSalesAmount && UnitSalesPrice == other.UnitSalesPrice && UnitPublicPrice == other.UnitPublicPrice && DiscountInPercent == other.DiscountInPercent && DiscountInFixedValue == other.DiscountInFixedValue && IsFreeOfCharge == other.IsFreeOfCharge && DoNotPrint == other.DoNotPrint && IsUnderSalesWarranty == other.IsUnderSalesWarranty && IsUnderServiceWarranty == other.IsUnderServiceWarranty;
}
public override bool Equals(object obj)
{
if (ReferenceEquals(null, obj)) return false;
if (ReferenceEquals(this, obj)) return true;
if (obj.GetType() != this.GetType()) return false;
Index: CMSS.Client/src/app/utils/router/cmss.router.types.ts
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- CMSS.Client/src/app/utils/router/cmss.router.types.ts (date 1558607972000)
+++ CMSS.Client/src/app/utils/router/cmss.router.types.ts (date 1555529891368)
@@ -10,7 +10,7 @@
protected _permissions: Permission[];
[HttpGet]
[Route("CanLoadServiceFolderOnBatch/{batchId:int}/{serviceFolderId:int}")]
public IResponseItem<IBatchServiceFolderInfo> CanLoadServiceFolderOnBatch([FromRoute] int batchId, [FromRoute] int serviceFolderId, [FromUri] int? jobContainerId)
{
return this.CreateResponse(() =>
{
var canParse = false;
if (!canParse)
{
throw new CmssValidationException(CmssMessageManager.GetMessage(Messages.MissingEntity, serviceFolderId)),
export class CmssCalendar extends Calendar {
constructor(el: ElementRef, domHandler: DomHandler, renderer: Renderer2, cd: ChangeDetectorRef,
private primeNgService: PrimeNgService,
@Inject(APP_CONFIG) private appConfig: CMSSAppConfig) {
super(el, domHandler, renderer, cd);
if (this.primeNgService.calendarSettingsLoaded) {
this.locale = this.primeNgService.calendarLocaleSettings;
this.dateFormat = this.primeNgService.calendarDateFormat;