C# Class Com.Aote.Utils.RunLib

Exp标记系统运行时所需库函数,比如Sum,Compare等。
ファイルを表示 Open project: DuBin1988/restv2

Public Methods

Method Description
AddM_ ( object list, object list2 ) : void
Add_ ( object list, object go ) : void
BringToDown ( FrameworkElement ui ) : void
BringToUp ( FrameworkElement ui, FrameworkElement parent ) : void
ColumnWidth ( Grid grid, int col, string width ) : void
Compare ( object obj1, object obj2 ) : bool
Concat ( object one, object two ) : string
Convert ( System.DateTime a ) : decimal
Convert ( decimal a ) : decimal
Convert ( double a ) : decimal
Convert ( int a ) : decimal
Convert ( long a ) : decimal
Convert ( object a ) : decimal
DayOfMonth ( System.DateTime date, int year, int month ) : int
Each ( IEnumerable list, Delegate d ) : void
Each ( IEnumerable list, Delegate d ) : void
EndItem ( IEnumerable list, Delegate d, decimal money ) : GeneralObject
First ( object list ) : object
Format ( int obj, string format ) : string
FormatToMoney ( decimal obj ) : string
FormatToMoney ( object obj ) : string
GetMaxNum ( IEnumerable list ) : double
GetMinNum ( IEnumerable list ) : double
GetProperty ( object o, string name ) : PropertyInfo
GetPropertyValue ( object o, PropertyInfo pi ) : object
GetPropertyValue ( object o, string name ) : object
GetTop ( System.Windows.Controls.Panel ui ) : string
IndexOf ( object one, object two ) : int
MathRound ( decimal value, int decimals ) : double
MathRound ( object value, int decimals ) : double
MathRoundO ( decimal value, int decimals ) : double
Max ( IEnumerable list, Delegate d ) : object
NewMethodCall ( object obj, string methodName ) : object
NewMethodCall ( object obj, string methodName, object param ) : object
NullToEmpty ( object o ) : object
Pos ( object go, object list ) : int
RemoveTop ( System.Windows.Controls.Panel ui ) : void
ReplaceStr ( object obj, string format ) : string
SetPropertyValue ( object o, PropertyInfo pi, bool value ) : void
SetPropertyValue ( object o, PropertyInfo pi, decimal value ) : void
SetPropertyValue ( object o, PropertyInfo pi, double value ) : void
SetPropertyValue ( object o, PropertyInfo pi, int value ) : void
SetPropertyValue ( object o, PropertyInfo pi, object value ) : void
SetSelected ( IEnumerable list, Delegate d, decimal money ) : IEnumerable
SetSource ( FrameworkElement c, string name ) : void
Split ( object a, object b, int i ) : object
Sum ( IEnumerable list, Delegate d ) : object
ToBool ( bool a ) : bool
ToBool ( object a ) : bool
ToChinaMoney ( object money ) : string
ToDate ( object obj ) : System.DateTime
ToDouble ( object obj ) : double
ToInt ( decimal obj ) : int
ToInt ( object obj ) : int
ToList ( object list, string childPropertyName ) : BaseObjectList
ToList2 ( object list ) : BaseObjectList
ToLong ( object obj ) : long
ToMonthEnd ( object obj ) : System.DateTime
ToObject ( System.DateTime a ) : object
ToObject ( bool a ) : object
ToObject ( decimal a ) : object
ToObject ( double a ) : object
ToObject ( int a ) : object
ToObject ( object a ) : object
ToObject ( string a ) : object
ToObjectList ( object list ) : BaseObjectList
ToString ( IEnumerable list, Delegate d ) : string
ToString ( IEnumerable list, Delegate d ) : string
ToString ( object obj ) : string
ToString ( object obj, string format ) : string
ToStringWithSQ ( IEnumerable list, Delegate d ) : string
ToStringWithSQ ( IEnumerable list, Delegate d ) : string
ToUri ( string str ) : Uri
ToVisibility ( object o ) : Visibility
ToWhere ( object list ) : string
Where ( object obj, Delegate where ) : IEnumerable

Method Details

AddM_() public static method

public static AddM_ ( object list, object list2 ) : void
list object
list2 object
return void

Add_() public static method

public static Add_ ( object list, object go ) : void
list object
go object
return void

BringToDown() public static method

public static BringToDown ( FrameworkElement ui ) : void
ui System.Windows.FrameworkElement
return void

BringToUp() public static method

public static BringToUp ( FrameworkElement ui, FrameworkElement parent ) : void
ui System.Windows.FrameworkElement
parent System.Windows.FrameworkElement
return void

ColumnWidth() public static method

public static ColumnWidth ( Grid grid, int col, string width ) : void
grid System.Windows.Controls.Grid
col int
width string
return void

Compare() public static method

public static Compare ( object obj1, object obj2 ) : bool
obj1 object
obj2 object
return bool

Concat() public static method

public static Concat ( object one, object two ) : string
one object
two object
return string

Convert() public static method

public static Convert ( System.DateTime a ) : decimal
a System.DateTime
return decimal

Convert() public static method

public static Convert ( decimal a ) : decimal
a decimal
return decimal

Convert() public static method

public static Convert ( double a ) : decimal
a double
return decimal

Convert() public static method

public static Convert ( int a ) : decimal
a int
return decimal

Convert() public static method

public static Convert ( long a ) : decimal
a long
return decimal

Convert() public static method

public static Convert ( object a ) : decimal
a object
return decimal

DayOfMonth() public static method

public static DayOfMonth ( System.DateTime date, int year, int month ) : int
date System.DateTime
year int
month int
return int

Each() public static method

public static Each ( IEnumerable list, Delegate d ) : void
list IEnumerable
d System.Delegate
return void

Each() public static method

public static Each ( IEnumerable list, Delegate d ) : void
list IEnumerable
d System.Delegate
return void

EndItem() public static method

public static EndItem ( IEnumerable list, Delegate d, decimal money ) : GeneralObject
list IEnumerable
d System.Delegate
money decimal
return Com.Aote.ObjectTools.GeneralObject

First() public static method

public static First ( object list ) : object
list object
return object

Format() public static method

public static Format ( int obj, string format ) : string
obj int
format string
return string

FormatToMoney() public static method

public static FormatToMoney ( decimal obj ) : string
obj decimal
return string

FormatToMoney() public static method

public static FormatToMoney ( object obj ) : string
obj object
return string

GetMaxNum() public static method

public static GetMaxNum ( IEnumerable list ) : double
list IEnumerable
return double

GetMinNum() public static method

public static GetMinNum ( IEnumerable list ) : double
list IEnumerable
return double

GetProperty() public static method

public static GetProperty ( object o, string name ) : PropertyInfo
o object
name string
return System.Reflection.PropertyInfo

GetPropertyValue() public static method

public static GetPropertyValue ( object o, PropertyInfo pi ) : object
o object
pi System.Reflection.PropertyInfo
return object

GetPropertyValue() public static method

public static GetPropertyValue ( object o, string name ) : object
o object
name string
return object

GetTop() public static method

public static GetTop ( System.Windows.Controls.Panel ui ) : string
ui System.Windows.Controls.Panel
return string

IndexOf() public static method

public static IndexOf ( object one, object two ) : int
one object
two object
return int

MathRound() public static method

public static MathRound ( decimal value, int decimals ) : double
value decimal
decimals int
return double

MathRound() public static method

public static MathRound ( object value, int decimals ) : double
value object
decimals int
return double

MathRoundO() public static method

public static MathRoundO ( decimal value, int decimals ) : double
value decimal
decimals int
return double

Max() public static method

public static Max ( IEnumerable list, Delegate d ) : object
list IEnumerable
d System.Delegate
return object

NewMethodCall() public static method

public static NewMethodCall ( object obj, string methodName ) : object
obj object
methodName string
return object

NewMethodCall() public static method

public static NewMethodCall ( object obj, string methodName, object param ) : object
obj object
methodName string
param object
return object

NullToEmpty() public static method

public static NullToEmpty ( object o ) : object
o object
return object

Pos() public static method

public static Pos ( object go, object list ) : int
go object
list object
return int

RemoveTop() public static method

public static RemoveTop ( System.Windows.Controls.Panel ui ) : void
ui System.Windows.Controls.Panel
return void

ReplaceStr() public static method

public static ReplaceStr ( object obj, string format ) : string
obj object
format string
return string

SetPropertyValue() public static method

public static SetPropertyValue ( object o, PropertyInfo pi, bool value ) : void
o object
pi System.Reflection.PropertyInfo
value bool
return void

SetPropertyValue() public static method

public static SetPropertyValue ( object o, PropertyInfo pi, decimal value ) : void
o object
pi System.Reflection.PropertyInfo
value decimal
return void

SetPropertyValue() public static method

public static SetPropertyValue ( object o, PropertyInfo pi, double value ) : void
o object
pi System.Reflection.PropertyInfo
value double
return void

SetPropertyValue() public static method

public static SetPropertyValue ( object o, PropertyInfo pi, int value ) : void
o object
pi System.Reflection.PropertyInfo
value int
return void

SetPropertyValue() public static method

public static SetPropertyValue ( object o, PropertyInfo pi, object value ) : void
o object
pi System.Reflection.PropertyInfo
value object
return void

SetSelected() public static method

public static SetSelected ( IEnumerable list, Delegate d, decimal money ) : IEnumerable
list IEnumerable
d System.Delegate
money decimal
return IEnumerable

SetSource() public static method

public static SetSource ( FrameworkElement c, string name ) : void
c System.Windows.FrameworkElement
name string
return void

Split() public static method

public static Split ( object a, object b, int i ) : object
a object
b object
i int
return object

Sum() public static method

public static Sum ( IEnumerable list, Delegate d ) : object
list IEnumerable
d System.Delegate
return object

ToBool() public static method

public static ToBool ( bool a ) : bool
a bool
return bool

ToBool() public static method

public static ToBool ( object a ) : bool
a object
return bool

ToChinaMoney() public static method

public static ToChinaMoney ( object money ) : string
money object
return string

ToDate() public static method

public static ToDate ( object obj ) : System.DateTime
obj object
return System.DateTime

ToDouble() public static method

public static ToDouble ( object obj ) : double
obj object
return double

ToInt() public static method

public static ToInt ( decimal obj ) : int
obj decimal
return int

ToInt() public static method

public static ToInt ( object obj ) : int
obj object
return int

ToList() public static method

public static ToList ( object list, string childPropertyName ) : BaseObjectList
list object
childPropertyName string
return BaseObjectList

ToList2() public static method

public static ToList2 ( object list ) : BaseObjectList
list object
return BaseObjectList

ToLong() public static method

public static ToLong ( object obj ) : long
obj object
return long

ToMonthEnd() public static method

public static ToMonthEnd ( object obj ) : System.DateTime
obj object
return System.DateTime

ToObject() public static method

public static ToObject ( System.DateTime a ) : object
a System.DateTime
return object

ToObject() public static method

public static ToObject ( bool a ) : object
a bool
return object

ToObject() public static method

public static ToObject ( decimal a ) : object
a decimal
return object

ToObject() public static method

public static ToObject ( double a ) : object
a double
return object

ToObject() public static method

public static ToObject ( int a ) : object
a int
return object

ToObject() public static method

public static ToObject ( object a ) : object
a object
return object

ToObject() public static method

public static ToObject ( string a ) : object
a string
return object

ToObjectList() public static method

public static ToObjectList ( object list ) : BaseObjectList
list object
return BaseObjectList

ToString() public static method

public static ToString ( IEnumerable list, Delegate d ) : string
list IEnumerable
d System.Delegate
return string

ToString() public static method

public static ToString ( IEnumerable list, Delegate d ) : string
list IEnumerable
d System.Delegate
return string

ToString() public static method

public static ToString ( object obj ) : string
obj object
return string

ToString() public static method

public static ToString ( object obj, string format ) : string
obj object
format string
return string

ToStringWithSQ() public static method

public static ToStringWithSQ ( IEnumerable list, Delegate d ) : string
list IEnumerable
d System.Delegate
return string

ToStringWithSQ() public static method

public static ToStringWithSQ ( IEnumerable list, Delegate d ) : string
list IEnumerable
d System.Delegate
return string

ToUri() public static method

public static ToUri ( string str ) : Uri
str string
return System.Uri

ToVisibility() public static method

public static ToVisibility ( object o ) : Visibility
o object
return Visibility

ToWhere() public static method

public static ToWhere ( object list ) : string
list object
return string

Where() public static method

public static Where ( object obj, Delegate where ) : IEnumerable
obj object
where System.Delegate
return IEnumerable