This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const listType = Object.keys(AppointmentListEnum) | |
.filter(o => o !== AppointmentListEnum.Ready) | |
.map(k => AppointmentListEnum[k as any]) | |
.map(v => v as AppointmentListEnum); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections.Generic; | |
using System.Data; | |
using ServiceStack; | |
using ServiceStack.OrmLite; | |
using ServiceStack.DataAnnotations; | |
using System; | |
[Alias("WarehouseTransferDetails")] | |
public class WarehouseTransferDetail | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// data.cs | |
// Created by quangquy87 on 2018/12/09 | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Trim String | |
String.prototype.trim = function(){ | |
return this.replace(/^\s+|\s+$/g, ""); | |
}; | |
To Camel Case | |
String.prototype.toCamel = function(){ | |
return this.replace(/(\-[a-z])/g, function($1){return $1.toUpperCase().replace('-','');}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var MyApp = angular.module('MyApp'); | |
MyApp.factory('msgBus', ['$rootScope', function($rootScope) { | |
var msgBus = {}; | |
msgBus.emitMsg = function(msg, data) { | |
data = data || {}; | |
$rootScope.$emit(msg, data); | |
}; | |
msgBus.onMsg = function(msg, func, scope) { | |
var unbind = $rootScope.$on(msg, func); | |
if (scope) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<link rel="import" href="../../salesforce/s1-elements/scaffold/s1DetailView.html"> | |
<link rel="import" href="../../salesforce/s1-elements/s1MdplauncherOverflow.html"> | |
<link rel="import" href="../../salesforce/s1-elements/scaffold/s1AppScaffold.html"> | |
<link rel="import" href="../../salesforce/s1-elements/scaffold/s1PageContainer.html"> | |
<link rel="import" href="../../salesforce/s1-elements/s1AnchorLightLabelonBottom.html"> | |
<link rel="import" href="../../salesforce/s1-elements/s1ListWithLabels.html"> | |
<link rel="import" href="../../salesforce/s1-elements/s1StagedNavigationStageLeft.html"> | |
<link rel="import" href="../../salesforce/s1-elements/s1StagedNavigationNotifications.html"> | |
<polymer-element name="my-element"> |
NewerOlder