C# Class Sconit_CS.Utility

Mostrar archivo Open project: Novthirteen/yfkey-scms

Public Methods

Method Description
CancelOperation ( Resolver resolver ) : void

分步取消

DataGridViewDecimalFilter ( object sender, KeyPressEventArgs e ) : void
DataGridViewIntFilter ( object sender, KeyPressEventArgs e ) : void
FormatExMessage ( string message ) : string
GetBarcodeCode128BByStr ( string str ) : string
GetRowIndex ( Resolver resolver, string compareString ) : int

得到当前行号,没有匹配上返回-1

IsDecimal ( string str ) : bool
IsHasTransformer ( Resolver resolver ) : bool
IsHasTransformerDetail ( Resolver resolver ) : bool
Log ( string logstr ) : void
Md5 ( string originalPassword ) : string
MergeResolver ( Resolver resolver, Resolver originalResolver ) : Resolver
PrintOrder ( string fileUrl, IWin32Window win32Window, string printer ) : void
ProcessOriginalResolver ( Resolver resolver, Resolver originalResolver ) : Resolver
RemoveLot ( Resolver resolver ) : void
RenderDataGridViewBackColor ( System.Windows.Forms.DataGridView dataGrid ) : System.Windows.Forms.DataGridView
SumCurrentQty ( Transformer transformerArray ) : Transformer[]
TextBoxDecimalFilter ( object sender, KeyPressEventArgs e ) : void
TextBoxIntFilter ( object sender, KeyPressEventArgs e ) : void

Private Methods

Method Description
AccumlationCurrentQty ( Resolver resolver ) : decimal
AccumlationCurrentQty ( TransformerDetail transformerDetails ) : decimal
AddTransformerDetail ( Resolver resolver, TransformerDetail transformerDetail ) : void
AddTransformerDetail ( Transformer transformer, TransformerDetail transformerDetail ) : void
CancelRepackOperation ( Resolver resolver ) : void

翻箱取消操作

CheckMatchHuExist ( Resolver resolver ) : void
CheckMatchHuExist ( Resolver resolver, string huId ) : void
CopyProperty ( object sourceObj, object targetObj ) : void
DeepCopyResolver ( Resolver sourceResolver, Resolver targetResolver ) : void
FindMaxSeq ( Transformer transformers ) : int
FindMaxSeqTransformerDetailRowAndColumnIndex ( Transformer transformerList ) : int[]

查找最大序号的TransformerDetail所在的行和列

GetSumCartons ( TransformerDetail transformerDetails ) : int
KillProcess ( string processName ) : void
ProcessTransformer ( Transformer transformerList ) : void

Method Details

CancelOperation() public static method

分步取消
public static CancelOperation ( Resolver resolver ) : void
resolver System.Resolver
return void

DataGridViewDecimalFilter() public static method

public static DataGridViewDecimalFilter ( object sender, KeyPressEventArgs e ) : void
sender object
e System.Windows.Forms.KeyPressEventArgs
return void

DataGridViewIntFilter() public static method

public static DataGridViewIntFilter ( object sender, KeyPressEventArgs e ) : void
sender object
e System.Windows.Forms.KeyPressEventArgs
return void

FormatExMessage() public static method

public static FormatExMessage ( string message ) : string
message string
return string

GetBarcodeCode128BByStr() public static method

public static GetBarcodeCode128BByStr ( string str ) : string
str string
return string

GetRowIndex() public static method

得到当前行号,没有匹配上返回-1
public static GetRowIndex ( Resolver resolver, string compareString ) : int
resolver System.Resolver
compareString string
return int

IsDecimal() public static method

public static IsDecimal ( string str ) : bool
str string
return bool

IsHasTransformer() public static method

public static IsHasTransformer ( Resolver resolver ) : bool
resolver System.Resolver
return bool

IsHasTransformerDetail() public static method

public static IsHasTransformerDetail ( Resolver resolver ) : bool
resolver System.Resolver
return bool

Log() public static method

public static Log ( string logstr ) : void
logstr string
return void

Md5() public static method

public static Md5 ( string originalPassword ) : string
originalPassword string
return string

MergeResolver() public static method

public static MergeResolver ( Resolver resolver, Resolver originalResolver ) : Resolver
resolver System.Resolver
originalResolver System.Resolver
return System.Resolver

PrintOrder() public static method

public static PrintOrder ( string fileUrl, IWin32Window win32Window, string printer ) : void
fileUrl string
win32Window IWin32Window
printer string
return void

ProcessOriginalResolver() public static method

public static ProcessOriginalResolver ( Resolver resolver, Resolver originalResolver ) : Resolver
resolver System.Resolver
originalResolver System.Resolver
return System.Resolver

RemoveLot() public static method

public static RemoveLot ( Resolver resolver ) : void
resolver System.Resolver
return void

RenderDataGridViewBackColor() public static method

public static RenderDataGridViewBackColor ( System.Windows.Forms.DataGridView dataGrid ) : System.Windows.Forms.DataGridView
dataGrid System.Windows.Forms.DataGridView
return System.Windows.Forms.DataGridView

SumCurrentQty() public static method

public static SumCurrentQty ( Transformer transformerArray ) : Transformer[]
transformerArray Transformer
return Transformer[]

TextBoxDecimalFilter() public static method

public static TextBoxDecimalFilter ( object sender, KeyPressEventArgs e ) : void
sender object
e System.Windows.Forms.KeyPressEventArgs
return void

TextBoxIntFilter() public static method

public static TextBoxIntFilter ( object sender, KeyPressEventArgs e ) : void
sender object
e System.Windows.Forms.KeyPressEventArgs
return void