рдЗрд╕ рд▓реЗрдЦ рдореЗрдВ, рдореИрдВ рдХрд╕реНрдЯрдо рд╡реНрдпрд╡рд╕рд╛рдп рддрд░реНрдХ рдХреЛ рдбрд┐рдЬрд╛рдЗрди рдХрд░рдиреЗ рдореЗрдВ рдЕрдкрдиреЗ рдЕрдиреБрднрд╡ рдХреЛ рд╕рд╛рдЭрд╛ рдХрд░рдиреЗ рдХрд╛ рдкреНрд░рдпрд╛рд╕ рдХрд░реВрдВрдЧрд╛ред рдпрд╣ рд╕реНрдкрд╖реНрдЯ рд░реВрдк рд╕реЗ рдПрдХ рдкреВрд░реНрдг рд╢реИрдХреНрд╖рд┐рдХ рдХрд╛рд░реНрдпрдХреНрд░рдо рд╣реЛрдиреЗ рдХрд╛ рджрд┐рдЦрд╛рд╡рд╛ рдирд╣реАрдВ рдХрд░рддрд╛ рд╣реИ, рдХреНрдпреЛрдВрдХрд┐ рдореБрдЭреЗ рдмрд╕ рдпрд╣ рдпрд╛рдж рд╣реИ рдХрд┐ рдореИрдВрдиреЗ рд╡реНрдпрдХреНрддрд┐рдЧрдд рд░реВрдк рд╕реЗ рдХреНрдпрд╛ рдХрд┐рдпрд╛, рдореИрдВрдиреЗ рдХреМрди рд╕реА рдЧрд▓рддрд┐рдпрд╛рдБ рдХреАрдВ, рдФрд░ рднрд╡рд┐рд╖реНрдп рдореЗрдВ рдЙрдиреНрд╣реЗрдВ рдареАрдХ рдХрд░рдиреЗ рдореЗрдВ рдореИрдВ рдХреИрд╕реЗ (рдпрд╛ рдЕрд╕рдлрд▓) рд░рд╣рд╛ред рдирд┐рд╢реНрдЪрд┐рдд рд░реВрдк рд╕реЗ, рдЕрдиреБрднрд╡реА рд╕рд┐рд╕реНрдЯрдо рдЖрд░реНрдХрд┐рдЯреЗрдХреНрдЯ рдкрд╣рд▓реЗ рд╕реЗ рд╣реА рд╕рдм рдХреБрдЫ рдкрд╛рд╕ рдХрд░ рдЪреБрдХреЗ рд╣реИрдВ рдФрд░ рдЬрд╛рдирддреЗ рд╣реИрдВ, рд▓реЗрдХрд┐рди рдореБрдЭреЗ рдЙрдореНрдореАрдж рд╣реИ рдХрд┐ рдХреБрдЫ рд╕реБрдЭрд╛рд╡ рдЕрднреА рднреА рдЙрдкрдпреЛрдЧреА рд╣реЛрдВрдЧреЗред
рд╣рдордиреЗ WPF / Silverlight, WCF рд╕реЗрд╡рд╛рдУрдВ рдФрд░ DBMS Oracle, Postrges, MsSQL рдкрд░ рдХреНрд▓рд╛рдЗрдВрдЯ рднрд╛рдЧ рдХрд╛ рдЙрдкрдпреЛрдЧ (рдФрд░ рдЙрдкрдпреЛрдЧ) рдХрд┐рдпрд╛ рд╣реИред рдХреЛрдб MVVM рджреНрд╡рд╛рд░рд╛ рд▓рд┐рдЦрд╛ рдЬрд╛рддрд╛ рд╣реИ, рдкреНрд░рд┐рдЬрд╝реНрдо рджреНрд╡рд╛рд░рд╛ рдкреНрд░рддрд┐рд░реВрдкрдХрддрд╛ рдФрд░ рдиреЗрд╡рд┐рдЧреЗрд╢рди рдХреЗ рд▓рд┐рдП рдЙрдкрдпреЛрдЧ рдХрд┐рдпрд╛ рдЬрд╛рддрд╛ рд╣реИред рдореИрдВ рдпрд╣ рдирд╣реАрдВ рдХрд╣ рд╕рдХрддрд╛ рдХрд┐ рдЕрдиреНрдп рдкреНрд▓реЗрдЯрдлрд╛рд░реНрдореЛрдВ рдФрд░ рднрд╛рд╖рд╛рдУрдВ рдХреЗ рд▓рд┐рдП рдХреМрди рд╕рд╛ рд╢реЛрдз рдЙрдкрдпреБрдХреНрдд рд╣реИред
рдРрд╕рд╛ рд╣реБрдЖ рдХрд┐ рдХреБрдЫ рдмрд┐рдВрджреБ рдкрд░, рдЙрд╕ рд╕рдордп рдПрдХ рдкреВрд░реА рддрд░рд╣ рд╕реЗ рд╕рд╛рдзрд╛рд░рдг рдкреНрд░реЛрдЧреНрд░рд╛рдорд░, рдХреЗ рдкрд╛рд╕ рдмрдбрд╝реА рд╕рдВрдЦреНрдпрд╛ рдореЗрдВ рдкрд░рд┐рд╕реНрдерд┐рддрд┐рдпреЛрдВ, рдмрджрд▓рд╛рд╡реЛрдВ, рдХрд╛рдо рдХреЗ рдЪрд░рдгреЛрдВ рдХреЗ рд╕рд╛рде рдПрдХ рдмрдбрд╝реЗ рдФрд░ рдЬрдЯрд┐рд▓ рдбреЗрдЯрд╛ рдЕрдХрд╛рдЙрдВрдЯрд┐рдВрдЧ рд╕рд┐рд╕реНрдЯрдо рдХреЛ рдбрд┐рдЬрд╛рдЗрди рдХрд░рдиреЗ рдХрд╛ рдХрд╛рдо рдерд╛ред рд╕рд┐рд╕реНрдЯрдо рдХреЛ рдирд┐рд╡рд╛рд╕рд┐рдпреЛрдВ рдкрд░ рдбреЗрдЯрд╛ рджрд░реНрдЬ рдХрд░рдиреЗ, рдкрд╛рд╕ рдХрд░рдиреЗ рдФрд░ рдкреБрдирд░реНрд╡рд┐рддреНрдд рдЬрд╛рд░реА рдХрд░рдиреЗ, рдкрд╛рд╕ рдмрдврд╝рд╛рдиреЗ, рдЕрдкрдиреА рдЧрддрд┐рд╡рд┐рдзрд┐рдпреЛрдВ, рдЬреБрд░реНрдорд╛рдирд╛ рдФрд░ рдХрдИ рдЕрдиреНрдп рдЫреЛрдЯреА рдЪреАрдЬреЛрдВ рдХреЛ рд╕рдорд╛рдкреНрдд рдХрд░рдиреЗ рдХреЗ рд▓рд┐рдП рдирд┐рдпрдорд┐рдд рдмреИрдардХреЗрдВ рдЖрдпреЛрдЬрд┐рдд рдХрд░рдиреЗ рдХреЗ рд▓рд┐рдП рдбрд┐рдЬрд╝рд╛рдЗрди рдХрд┐рдпрд╛ рдЧрдпрд╛ рдерд╛ред рдЕрдм рд╕рд┐рд╕реНрдЯрдо рдХреЗ рдХреЛрд░ рдХреЛ рдЕрдзрд┐рдХрд╛рдВрд╢ рднрд╛рдЧ рдХреЗ рд▓рд┐рдП рдлрд┐рд░ рд╕реЗ рд▓рд┐рдЦрд╛ рдЧрдпрд╛ рд╣реИ, рдЧреЛрд╡рдиреЛрдХреЙрдб рдЧрд╛рдпрдм рд╣реЛ рдЧрдпрд╛ рд╣реИ, рдирдИ рдФрд░ рдирд╡реАрдирддрдо рддрдХрдиреАрдХреЛрдВ, рдкреНрд▓реЗрдЯрдлрд╛рд░реНрдореЛрдВ рдХрд╛ рдЙрдкрдпреЛрдЧ рдХрд┐рдпрд╛ рдЧрдпрд╛ рд╣реИред
рддреЛ рдЪрд▓рд┐рдП рдЪрд▓рддреЗ рд╣реИрдВред
1. рдХреЛрдб рдкреБрдирд░рд╛рд╡реГрддреНрддрд┐ рд╕реЗ рдЫреБрдЯрдХрд╛рд░рд╛ рдкрд╛рдиреЗ рдХреА рдЗрдЪреНрдЫрд╛ рдЙрдЪрд┐рдд рд╣реЛрдиреА рдЪрд╛рд╣рд┐рдП
рдпрд╣ рдкрддрд╛ рдЪрд▓рд╛ рдХрд┐ рджреЛ рдЕрд▓рдЧ-рдЕрд▓рдЧ рд╡рд┐рдзрд╛рдирд╕рднрд╛рдУрдВ рдореЗрдВ (рдЗрдВрдЯрд░рдлрд╝реЗрд╕ рдХреА рдмрд╛рдд - рджреЛ рдЕрд▓рдЧ-рдЕрд▓рдЧ рд╕рд┐рд╕реНрдЯрдо рдореЙрдбреНрдпреВрд▓ рдЬрд┐рдиреНрд╣реЗрдВ рд╕рдордп рдореЗрдВ рдЕрд▓рдЧ-рдЕрд▓рдЧ рдмрд┐рдВрджреБрдУрдВ рдкрд░ рдХрд╣рд╛ рдЬрд╛рддрд╛ рд╣реИ), рдбреЗрдЯрд╛рдмреЗрд╕ рд╕реЗ рд╕рдВрд╕реНрдерд╛рдУрдВ рдХреА рдПрдХ рд╕рдорд╛рди рд╕реВрдЪреА рдХрд╛ рдЪрдпрди рдХрд░рдирд╛ рдЖрд╡рд╢реНрдпрдХ рдерд╛,
GetComissions()
рд╡рд┐рдзрд┐ рдХрд╛ рдЙрдкрдпреЛрдЧ рдХрд░рдХреЗ рдХрд╣рддреЗ рд╣реИрдВред рдкреНрд░реЛрдЧреНрд░рд╛рдорд░
GetComissions()
, рдкреНрд░реЛрдЧреНрд░рд╛рдорд░
GetComissions()
рдкрд╣рд▓реЗ рд╕реЗ рд╣реА рд╕реЗрд╡рд╛ рдкрд░ рдкрд╣рд▓реЗ рд╕реЗ рд╣реА рд▓рд┐рдЦреА рдЧрдИ
GetComissions()
рд╡рд┐рдзрд┐
GetComissions()
(рдФрд░ рдлрд┐рд░ рд╣рдорд╛рд░реЗ рдкрд╛рд╕ рдПрдХ рд╕реЗрд╡рд╛ рдереА рдПрдХ рд╕рдорд╛рдкрди рдмрд┐рдВрджреБ рдХреЗ рд╕рд╛рде), рджреЛ рдмрд╛рд░ рдмрд┐рдирд╛ рд╕реЛрдЪреЗ рд╕рдордЭреЗ рдЗрд╕реЗ рд▓реЗ рд▓рд┐рдпрд╛ рдФрд░ рдЗрд╕рдХрд╛ рдЗрд╕реНрддреЗрдорд╛рд▓ рдХрд┐рдпрд╛ред рд╕рдм рдХреБрдЫ рдареАрдХ рд╣реЛрдЧрд╛, рдХреЗрд╡рд▓ рдХреБрдЫ рд╣рдлрд╝реНрддреЗ рдХреЗ рдмрд╛рдж рдЧреНрд░рд╛рд╣рдХ рдХреЛ рдЕрдкрдиреЗ рдЖрдВрдХрдбрд╝реЗ, рд╕реНрдерд┐рддрд┐, рдирд┐рд░реНрдгрдп, рдФрд░ рдЖрдпреЛрдЧреЛрдВ рдХреЗ рдЕрд▓рд╛рд╡рд╛ рдПрдХ рд╕реНрдерд╛рди рдкрд░ рдмрд╣реБрдд рдХреБрдЫ рджрд┐рдЦрд╛рдиреЗ рдХреА рдЖрд╡рд╢реНрдпрдХрддрд╛ рдереАред рдирддреАрдЬрддрди, рджреВрд╕рд░рд╛ рдореЙрдбреНрдпреВрд▓ рддреБрд░рдВрдд рдПрдХ рддреНрд░реБрдЯрд┐ рдХреЗ рд╕рд╛рде рдЧрд┐рд░рдирд╛ рд╢реБрд░реВ рд╣реЛ рдЧрдпрд╛ред
рдХрд╛рд╢, рдРрд╕реЗ рд╕реНрдкрд╖реНрдЯ рд░реВрдк рд╕реЗ рдПрдХ рд╕реЗ рдЕрдзрд┐рдХ рдорд╛рдорд▓реЗ рдереЗ, рдФрд░ рдмрд╛рдж рдореЗрдВ, рд╕реЗрд╡рд╛ рдХреЗ рддрд░реАрдХреЛрдВ рдХреЛ рдЕрд▓рдЧ-рдЕрд▓рдЧ рд╕реЗрд╡рд╛ рд╕рдорд╛рдкрди рдмрд┐рдВрджреБрдУрдВ рдореЗрдВ, рдпрд╛ рдХрдо рд╕реЗ рдХрдо рд╡реНрдпрдХреНрддрд┐рдЧрдд рдЖрдВрд╢рд┐рдХ рд╡рд░реНрдЧреЛрдВ (рдПрдХ рд╕реЗрд╡рд╛ рдХреЗ рдорд╛рдорд▓реЗ рдореЗрдВ) рдХреЛ рдЕрд▓рдЧ рдХрд░рдиреЗ рдХреЗ рд▓рд┐рдП рдмрд╣реБрдд рдкреНрд░рдпрд╛рд╕ рдХрд░рдирд╛ рдкрдбрд╝рд╛ред
рдирд┐рд╖реНрдХрд░реНрд╖: рджреЛ рдкрд░рд┐рдпреЛрдЬрдирд╛рдПрдВ рд╕реЗрд╡рд╛ рдкрд░ рдПрдХ рд╣реА рдлрд╝рдВрдХреНрд╢рди рдХрд╛ рдЙрдкрдпреЛрдЧ рдХрд░ рд╕рдХрддреА рд╣реИрдВ рдпрджрд┐ рдФрд░ рдХреЗрд╡рд▓ рдЕрдЧрд░ рдпрд╣ рдкрд╣рд▓реЗ рд╕реЗ рд╣реА рдЬреНрдЮрд╛рдд рд╣реИ рдХрд┐ рдпреЗ рдкрд░рд┐рдпреЛрдЬрдирд╛рдПрдВ рд╣рдореЗрд╢рд╛ рдЗрд╕ рдлрд╝рдВрдХреНрд╢рди рдХреЗ рд╕рд╛рде рдЙрд╕реА рддрд░рд╣ рдХрд╛рдо рдХрд░реЗрдВрдЧреАред рдЗрд╕ рдорд╛рдорд▓реЗ рдореЗрдВ, рд╡рд┐рдзрд┐ рдХреЛ рдПрдХ рд╕рд╛рдорд╛рдиреНрдп рд╡рд░реНрдЧ рдореЗрдВ рд░рдЦрд╛ рдЬрд╛рдирд╛ рдЪрд╛рд╣рд┐рдП, рдЬреЛ рдкреНрд░рддреНрдпреЗрдХ рдкрд░рд┐рдпреЛрдЬрдирд╛ рд╕реЗ рдЬреБрдбрд╝рд╛ рд╣реБрдЖ рд╣реИред
рдЕрдиреНрдп рд╕рднреА рдорд╛рдорд▓реЛрдВ рдореЗрдВ, рд╕рд░реНрд╡рд░ рдкрд░ рдХреЛрдб рд▓рд┐рдЦрдиреЗ рдХрд╛
рд╕рд┐рджреНрдзрд╛рдВрдд рдПрдХрд▓ рдЬрд┐рдореНрдореЗрджрд╛рд░реА рд╕рд┐рджреНрдзрд╛рдВрдд (
SOLID рдХреЗ рд╕рд┐рджреНрдзрд╛рдВрддреЛрдВ рдореЗрдВ рд╕реЗ рдПрдХ) рдХреЗ рд╕рдорд╛рди рдХреБрдЫ рдХрд╛ рдкрд╛рд▓рди рдХрд░рдирд╛ рдЪрд╛рд╣рд┐рдПред
2. рдХреЛрд╢рд┐рд╢ рдХрд░реЗрдВ рдХрд┐ рдбреЗрдЯрд╛ рдХреЙрдиреНрдЯреНрд░реИрдХреНрдЯ рдореЗрдВ рддрд░реНрдХ рди рд▓рд┐рдЦреЗрдВ
рдореЗрд░реЗ рдЕрдиреБрднрд╡ рдореЗрдВ, рд╕рдорд╛рдзрд╛рди рд╣рдореЗрд╢рд╛ рд╣рдореЗрд╢рд╛ рдЖрд╕рд╛рди рд╣реЛрддрд╛ рд╣реИ рдпрджрд┐ рд╕рднреА рдбреЗрдЯрд╛ рдЕрдиреБрдмрдВрдз (RiaServices - рдирд┐рдХрд╛рдп рд╡рд░реНрдЧреЛрдВ рдХреЗ рдорд╛рдорд▓реЗ рдореЗрдВ) рд╣рдореЗрд╢рд╛ рдкреНрд░рд╛рдЪреАрди рд░рд╣реЗрдВ рдФрд░ рдбреЗрдЯрд╛рдмреЗрд╕ рд╕реНрдХреАрдорд╛ рдХреЗ рд╕рд╛рде 1k1 рдХрд╛ рдорд┐рд▓рд╛рди рдХрд░реЗрдВред рдпрд╣ рд╕рдм рдПрдХ рдХрд░реНрдордЪрд╛рд░реА рдХреЗ рдкреВрд░реЗ рдирд╛рдо рдХреЛ рдПрдХ рдЪрд░ рдореЗрдВ рд╕рдореЗрдЯрдиреЗ рдХреЗ рд▓рд┐рдП рдПрдХ рд╣рд╛рдирд┐рд░рд╣рд┐рдд рдХреЛрдб рдХреЗ рд╕рд╛рде рд╢реБрд░реВ рд╣реЛ рд╕рдХрддрд╛ рд╣реИ, рдФрд░ рдпрд╣ рдХреБрдЫ рдЕрд╕реНрдкрд╖реНрдЯ рдЧреБрдгрд╛рдВрдХ (рдЖрдорддреМрд░ рдкрд░ рдХреЗрд╡рд▓ рдПрдХ рд╕реНрдерд╛рди рдкрд░ рдЖрд╡рд╢реНрдпрдХ) рдХреА рд╡рд┐рд╢рд╛рд▓ рдЧрдгрдирд╛ рдХреЗ рд╕рд╛рде рд╕рдорд╛рдкреНрдд рд╣реЛрддрд╛ рд╣реИред рдирддреАрдЬрддрди, рдбреЗрдЯрд╛ рдЕрдиреБрдмрдВрдзреЛрдВ рдореЗрдВ рдпрд╛ рддреЛ рддрд░реАрдХреЛрдВ рдХрд╛ 80% рд╢рд╛рдорд┐рд▓ рд╣реЛрдирд╛ рд╢реБрд░реВ рд╣реБрдЖ (рд╣рд╛рдВ, рдЕрдЧрд░ рд╕рдВрдкрддреНрддрд┐ рдХреЗ рдЧреЗрдЯреНрдЯрд░ рдореЗрдВ рдХреБрдЫ рдХреЛрдб рд▓рд┐рдЦрд╛ рдЧрдпрд╛ рд╣реИ, рддреЛ рдореИрдВ рднреА рдЗрд╕ рдкрджреНрдзрддрд┐ рдкрд░ рд╡рд┐рдЪрд╛рд░ рдХрд░рддрд╛ рд╣реВрдВ), рдпрд╛ рдЕрдиреНрдп рддрд╛рд▓рд┐рдХрд╛рдУрдВ рдХреЗ рдХреНрд╖реЗрддреНрд░реЛрдВ рдореЗрдВ рдЬреЛ рдХрд┐рд╕реА рдХреЛ рдПрдХ рдмрд┐рдВрджреБ рдкрд░ рдЪрд╛рд╣рд┐рдПред рд╕реЗрд╡рд╛ рдпрд╛ рдХреНрд▓рд╛рдЗрдВрдЯ (рдХрд╛рд░реНрдп рдХреЗ рдЖрдзрд╛рд░ рдкрд░) рдкрд░ рд╡рд╛рд░рд┐рд╕ рдпрд╛ рд░реИрдкрд░ рдмрдирд╛рдирд╛ рд╣рдореЗрд╢рд╛ рдмреЗрд╣рддрд░ рд╣реЛрддрд╛ рд╣реИ, рдЬрд┐рд╕рдХрд╛ рдЙрдкрдпреЛрдЧ рд╢реБрджреНрдз рд░реВрдк рд╕реЗ рдЗрд╕ рдореЙрдбреНрдпреВрд▓ рдХреЗ рдЙрджреНрджреЗрд╢реНрдпреЛрдВ рдХреЗ рд▓рд┐рдП рдХрд┐рдпрд╛ рдЬрд╛рдПрдЧрд╛ред рдЙрдирдХреЗ рд╕рд╛рде рд╕рдорд╕реНрдпрд╛рдУрдВ рдХреЗ рдмрд╛рд░реЗ рдореЗрдВ - рдЕрдЧрд▓реЗ рдкреИрд░рд╛рдЧреНрд░рд╛рдл рдореЗрдВред
3. рдЧреНрд░рд╛рд╣рдХ рдкрд░ рдмреЗрд╣рддрд░ рдХреНрдпрд╛ рд╣реИ - рд╡рд╛рд░рд┐рд╕, рдЖрдВрд╢рд┐рдХ?
рдХрд╛рд╢, рд╣рдо рдХрднреА рд╕рд╣реА рд╕рдорд╛рдзрд╛рди рдирд╣реАрдВ рдкрд╛рддреЗред рдХрдИ рдорд╛рдорд▓реЛрдВ рдкрд░ рд╡рд┐рдЪрд╛рд░ рдХрд░реЗрдВ:
a) рдореЙрдбреНрдпреВрд▓ рдкреНрд░рддрд┐ рд╕реЗрд╡рд╛ рдПрдХ рдЧреНрд░рд╛рд╣рдХ рд╕рдВрджрд░реНрдн рдХреЗ рд╕рд╛рде рдХрд╛рдо рдХрд░рддреЗ рд╣реИрдВред рд╕рд░реНрд╡рд░ рдкрд░ рдХрдХреНрд╖рд╛рдПрдВ рдПрдХ рд╕реЗрд╡рд╛ рд╕реЗ рдЖрдВрд╢рд┐рдХ рдХрдХреНрд╖рд╛рдУрдВ рдореЗрдВ рд╡рд┐рднрд╛рдЬрд┐рдд рд╣реИрдВред
рд╡рд┐рдкрдХреНрд╖:
- рдПрдХ рдореЙрдбреНрдпреВрд▓ рдХреЗ рд▓рд┐рдП рдмрдирд╛рдП рдЧрдП рдХреНрд▓рд╛рдЗрдВрдЯ рднрд╛рдЧ рд╣рд░ рдЬрдЧрд╣ рджрд┐рдЦрд╛рдИ рджреЗрддреЗ рд╣реИрдВред
- рдПрдХ рдореЙрдбреНрдпреВрд▓ рдХреЗ рд▓рд┐рдП рдмрдирд╛рдП рдЧрдП рдЧреНрд░рд╛рд╣рдХ рд╡рд╛рд░рд┐рд╕ рд╣рд░ рдЬрдЧрд╣ рджрд┐рдЦрд╛рдИ рджреЗрддреЗ рд╣реИрдВ (рдпрд╣ рдЙрдирдХреЗ рд╕рд╛рде рд╕рд░рд▓ рд╣реИ - рдЖрдк рдЙрдирдХрд╛ рдЙрдкрдпреЛрдЧ рдирд╣реАрдВ рдХрд░ рд╕рдХрддреЗ рд╣реИрдВ рдЬрд╣рд╛рдБ рдЖрдкрдХреЛ рдЖрд╡рд╢реНрдпрдХрддрд╛ рдирд╣реАрдВ рд╣реИ)
- рдЧреНрд░рд╛рд╣рдХ рд╕реЗрд╡рд╛ рдХреЗ рд╕рд╛рде рдкрд░рд┐рдпреЛрдЬрдирд╛ рдХреЗ рд╕рдВрджрд░реНрднреЛрдВ рдХреА
copy local
рдорд╛рдкрджрдВрдбреЛрдВ copy local
рд╕реНрдерд╛рдкрдирд╛ рдХреЗ рд╕рд╛рде рдмрд╡рд╛рд╕реАрд░ (рдЬрдм MEF рдХреЗ рд╕рд╛рде рдХрд╛рдо рдХрд░рдирд╛ рдФрд░ рд╕реЗрд╡рд╛ рд▓реЛрдХреЗрдЯрд░ рдореЗрдВ рдХреБрдЫ рд╡рд░реНрдЧ рдХреА рдПрдХ рдЗрдХрд╛рдИ рдХреА рдЖрд╡рд╢реНрдпрдХрддрд╛ рд╣реЛрддреА рд╣реИ)ред - рджреЛ рд▓реЛрдЧреЛрдВ рджреНрд╡рд╛рд░рд╛ рдПрдХ рд╕рд╛рде рдЙрддреНрдерд╛рди рдХреЗ рд╕рд╛рде, рдиреЗрдЯрд╡рд░реНрдХ рдореЗрдВ рд╕реЗрд╡рд╛рдУрдВ рдХреЗ рд╡рд┐рд▓рдп рдХреЗ рд╕рд╛рде рдмрд╡рд╛рд╕реАрд░ред
рдкреЗрд╢реЗрд╡рд░реЛрдВ:
- рдХреНрд▓рд╛рдЗрдВрдЯ рдореЙрдбреНрдпреВрд▓ рдХреЗ рдмреАрдЪ рдбреЗрдЯрд╛ рдЕрдиреБрдмрдВрдз рд╡рд╕реНрддреБрдУрдВ рдХреЛ рд╕реНрдерд╛рдирд╛рдВрддрд░рд┐рдд рдХрд░рдиреЗ рдХреА рдХреНрд╖рдорддрд╛ред
рдмреА) рдкреНрд░рддреНрдпреЗрдХ рдореЙрдбреНрдпреВрд▓ рд╕реНрд╡рддрдВрддреНрд░ рд░реВрдк рд╕реЗ рд╕реЗрд╡рд╛ рдХреЗ рд▓рд┐рдП рдПрдХ рдЧреНрд░рд╛рд╣рдХ рд╕рдВрджрд░реНрдн рдмрдирд╛рддрд╛ рд╣реИред
рд╡рд┐рдкрдХреНрд╖:
- рдХреНрд▓рд╛рдЗрдВрдЯ рдореЙрдбреНрдпреВрд▓ рдХреЗ рдмреАрдЪ рдбреЗрдЯрд╛ рдЕрдиреБрдмрдВрдз рдХреЛ рд╕реНрдерд╛рдирд╛рдВрддрд░рд┐рдд рдХрд░рдиреЗ рдХреА рд╕рдВрднрд╛рд╡рдирд╛ рдХреЗ рдмреАрдЪ рдПрдХ рд╡рд┐рдХрд▓реНрдк (рдЗрд╕ рдорд╛рдорд▓реЗ рдореЗрдВ, рдХреНрд▓рд╛рдЗрдВрдЯ рдбреЗрдЯрд╛ рдЕрдиреБрдмрдВрдзреЛрдВ рдХреА рдПрдХ рдкрд░рд┐рдпреЛрдЬрдирд╛ рдмрдирд╛рдИ рдЧрдИ рд╣реИ, рдЕрдВрдЬреАрд░ рджреЗрдЦреЗрдВ) рдФрд░ рдХреНрд▓рд╛рдЗрдВрдЯ рд╡рд╛рд░рд┐рд╕ рдФрд░ рднрд╛рдЧ рдмрдирд╛рдиреЗ рдХреА рдХреНрд╖рдорддрд╛ (рдЕрдВрдЬреАрд░ рдореЗрдВ рд╕рдВрд╕реНрдХрд░рдг рдореЗрдВред рдпрд╣ рдмрд╣реБрдд рдЕрд╕реБрд╡рд┐рдзрд╛рдЬрдирдХ рд╣реИ)ред
рд╣рдо рдЕрдХреНрд╕рд░ рд╡рд┐рдХрд▓реНрдк a) рдЪреБрдирддреЗ рд╣реИрдВ, рдХреНрдпреЛрдВрдХрд┐ рдореЙрдбреНрдпреВрд▓ рдХреЗ рдмреАрдЪ рд╡рд╕реНрддреБрдУрдВ рдХреЛ рдкрд╛рд░рд┐рдд рдХрд░рдирд╛ рдПрдХ рдмрд╣реБрдд рд╣реА рдЙрдкрдпреЛрдЧреА рдЪреАрдЬ рд╣реИред рдЖрдЗрдП рд╣рдо рд╢реАрд░реНрд╖рдХ рдкрд░ рд▓реМрдЯрддреЗ рд╣реИрдВ: рдпрд╣ рд╡рд┐рдХрд▓реНрдк (рдХ) рдореЗрдВ рд╣реИ рдХрд┐ рд╡рд╛рд░рд┐рд╕ рдФрд░ рднрд╛рдЧ рдХреЗ рдмреАрдЪ рдЕрдВрддрд░ рдмрд╣реБрдд рдзреНрдпрд╛рди рджреЗрдиреЗ рдпреЛрдЧреНрдп рд╣реЛ рдЬрд╛рддрд╛ рд╣реИред
рдорд╛рди рд▓реАрдЬрд┐рдП рдХрд┐ рд╣рдорд╛рд░реЗ рдкрд╛рд╕ рдбреЗрдЯрд╛рдмреЗрд╕ рдореЗрдВ рдкреНрд▓реЗрдЯреЗрдВ
Person
рдФрд░
Document
ред рдХреИрдирди рдХреЗ рдЕрдиреБрд╕рд╛рд░, рдбреЗрдЯрд╛ рдЕрдиреБрдмрдВрдз рдореЗрдВ,
Person
рд╡рд░реНрдЧ рдХреА
List, .. Document Person
. Person
Documents
, . , Person
List.
, , (, , Person
Document
), PersonEx
DocumentEx
, PersonEx
List! , тАУ , . -, , - , .. .
4. , , -
, , . , , - , , тАУ .
, тАУ , - , , ( тАУ ).
- , , .
Hint: date_insert
date_update
, - .
5. ,
, , -, - . , . , ..:
, - . - , , , , . , .. .
тАУ ┬л ┬╗, - .
, ┬л┬╗ () , - ( ) .
6.
.
, - ( - ). , ParentDiapason
, ChildDiapason
- .
, .. 245 300 400. , quantity
, , quantity
(startSeries, endSeries, startNumber, endNumber)
. , :
:
:
, тАУ .
.
Hint: MsSQL Server 2012 - , -, .
7.
- , . , :
, ( тАУ , тАУ )
public class Users { public class Status : StatusBase<Status> { /// <summary> /// ( ) /// </summary> [StringStatus("")] public const int Active = 1; /// <summary> /// ( ) /// </summary> [StringStatus("")] public const int Inactive = 0; } }
StatusBase тАУ , (-),
public class StatusBase<T> where T : class { private static Dictionary<int, string> statusesDictionary; public static string GetStringStatus(int key) { if (statusesDictionary == null) { CreateStatusDictionary(); } string result = statusesDictionary.ContainsKey(key) ? statusesDictionary[key] : " "; return result; } private static void CreateStatusDictionary() { statusesDictionary = new Dictionary<int, string>(); FieldInfo[] fields = typeof(T).GetFields(); foreach (FieldInfo field in fields) { string TextStatus = ((StringStatusAttribute)field.GetCustomAttributes(typeof(StringStatusAttribute), false)[0]). TextStatus; int statusKey = (int)field.GetValue(null); statusesDictionary.Add(statusKey, TextStatus); } } }
, , ,
public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) { string result = Data.Statuses.Users.Status.GetStringStatus((int)value); return result; }
, , , .
. , - .
рд╣реЛрдЧреА
List, .. Document Person
. Person
Documents
, . , Person
List.
, , (, , Person
Document
), PersonEx
DocumentEx
, PersonEx
List! , тАУ , . -, , - , .. .
4. , , -
, , . , , - , , тАУ .
, тАУ , - , , ( тАУ ).
- , , .
Hint: date_insert
date_update
, - .
5. ,
, , -, - . , . , ..:
, - . - , , , , . , .. .
тАУ ┬л ┬╗, - .
, ┬л┬╗ () , - ( ) .
6.
.
, - ( - ). , ParentDiapason
, ChildDiapason
- .
, .. 245 300 400. , quantity
, , quantity
(startSeries, endSeries, startNumber, endNumber)
. , :
:
:
, тАУ .
.
Hint: MsSQL Server 2012 - , -, .
7.
- , . , :
, ( тАУ , тАУ )
public class Users { public class Status : StatusBase<Status> { /// <summary> /// ( ) /// </summary> [StringStatus("")] public const int Active = 1; /// <summary> /// ( ) /// </summary> [StringStatus("")] public const int Inactive = 0; } }
StatusBase тАУ , (-),
public class StatusBase<T> where T : class { private static Dictionary<int, string> statusesDictionary; public static string GetStringStatus(int key) { if (statusesDictionary == null) { CreateStatusDictionary(); } string result = statusesDictionary.ContainsKey(key) ? statusesDictionary[key] : " "; return result; } private static void CreateStatusDictionary() { statusesDictionary = new Dictionary<int, string>(); FieldInfo[] fields = typeof(T).GetFields(); foreach (FieldInfo field in fields) { string TextStatus = ((StringStatusAttribute)field.GetCustomAttributes(typeof(StringStatusAttribute), false)[0]). TextStatus; int statusKey = (int)field.GetValue(null); statusesDictionary.Add(statusKey, TextStatus); } } }
, , ,
public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) { string result = Data.Statuses.Users.Status.GetStringStatus((int)value); return result; }
, , , .
. , - .
List, .. Document
Person
. Person
Documents
, . , Person
List.
, , (, , Person
Document
), PersonEx
DocumentEx
, PersonEx
List! , тАУ , . -, , - , .. .
4. , , -
, , . , , - , , тАУ .
, тАУ , - , , ( тАУ ).
- , , .
Hint: date_insert
date_update
, - .
5. ,
, , -, - . , . , ..:
, - . - , , , , . , .. .
тАУ ┬л ┬╗, - .
, ┬л┬╗ () , - ( ) .
6.
.
, - ( - ). , ParentDiapason
, ChildDiapason
- .
, .. 245 300 400. , quantity
, , quantity
(startSeries, endSeries, startNumber, endNumber)
. , :
:
:
, тАУ .
.
Hint: MsSQL Server 2012 - , -, .
7.
- , . , :
, ( тАУ , тАУ )
public class Users { public class Status : StatusBase<Status> { /// <summary> /// ( ) /// </summary> [StringStatus("")] public const int Active = 1; /// <summary> /// ( ) /// </summary> [StringStatus("")] public const int Inactive = 0; } }
StatusBase тАУ , (-),
public class StatusBase<T> where T : class { private static Dictionary<int, string> statusesDictionary; public static string GetStringStatus(int key) { if (statusesDictionary == null) { CreateStatusDictionary(); } string result = statusesDictionary.ContainsKey(key) ? statusesDictionary[key] : " "; return result; } private static void CreateStatusDictionary() { statusesDictionary = new Dictionary<int, string>(); FieldInfo[] fields = typeof(T).GetFields(); foreach (FieldInfo field in fields) { string TextStatus = ((StringStatusAttribute)field.GetCustomAttributes(typeof(StringStatusAttribute), false)[0]). TextStatus; int statusKey = (int)field.GetValue(null); statusesDictionary.Add(statusKey, TextStatus); } } }
, , ,
public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) { string result = Data.Statuses.Users.Status.GetStringStatus((int)value); return result; }
, , , .
. , - .
List, .. Document
Person
. Person
Documents
, . , Person
List.
, , (, , Person
Document
), PersonEx
DocumentEx
, PersonEx
List! , тАУ , . -, , - , .. .
4. , , -
, , . , , - , , тАУ .
, тАУ , - , , ( тАУ ).
- , , .
Hint: date_insert date_update
, - .
5. ,
, , -, - . , . , ..:
, - . - , , , , . , .. .
тАУ ┬л ┬╗, - .
, ┬л┬╗ () , - ( ) .
6.
.
, - ( - ). , ParentDiapason
, ChildDiapason
- .
, .. 245 300 400. , quantity
, , quantity
(startSeries, endSeries, startNumber, endNumber)
. , :
:
:
, тАУ .
.
Hint: MsSQL Server 2012 - , -, .
7.
- , . , :
, ( тАУ , тАУ )
public class Users { public class Status : StatusBase<Status> { /// <summary> /// ( ) /// </summary> [StringStatus("")] public const int Active = 1; /// <summary> /// ( ) /// </summary> [StringStatus("")] public const int Inactive = 0; } }
StatusBase тАУ , (-),
public class StatusBase<T> where T : class { private static Dictionary<int, string> statusesDictionary; public static string GetStringStatus(int key) { if (statusesDictionary == null) { CreateStatusDictionary(); } string result = statusesDictionary.ContainsKey(key) ? statusesDictionary[key] : " "; return result; } private static void CreateStatusDictionary() { statusesDictionary = new Dictionary<int, string>(); FieldInfo[] fields = typeof(T).GetFields(); foreach (FieldInfo field in fields) { string TextStatus = ((StringStatusAttribute)field.GetCustomAttributes(typeof(StringStatusAttribute), false)[0]). TextStatus; int statusKey = (int)field.GetValue(null); statusesDictionary.Add(statusKey, TextStatus); } } }
, , ,
public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) { string result = Data.Statuses.Users.Status.GetStringStatus((int)value); return result; }
, , , .
. , - .
List, .. Document
Person
. Person
Documents
, . , Person
List.
, , (, , Person
Document
), PersonEx
DocumentEx
, PersonEx
List! , тАУ , . -, , - , .. .
4. , , -
, , . , , - , , тАУ .
, тАУ , - , , ( тАУ ).
- , , .
Hint: date_insert
date_update
, - .
5. ,
, , -, - . , . , ..:
, - . - , , , , . , .. .
тАУ ┬л ┬╗, - .
, ┬л┬╗ () , - ( ) .
6.
.
, - ( - ). , ParentDiapason
, ChildDiapason
- .
, .. 245 300 400. , quantity
, , quantity
(startSeries, endSeries, startNumber, endNumber)
. , :
:
:
, тАУ .
.
Hint: MsSQL Server 2012 - , -, .
7.
- , . , :
, ( тАУ , тАУ )
public class Users { public class Status : StatusBase<Status> { /// <summary> /// ( ) /// </summary> [StringStatus("")] public const int Active = 1; /// <summary> /// ( ) /// </summary> [StringStatus("")] public const int Inactive = 0; } }
StatusBase тАУ , (-),
public class StatusBase<T> where T : class { private static Dictionary<int, string> statusesDictionary; public static string GetStringStatus(int key) { if (statusesDictionary == null) { CreateStatusDictionary(); } string result = statusesDictionary.ContainsKey(key) ? statusesDictionary[key] : " "; return result; } private static void CreateStatusDictionary() { statusesDictionary = new Dictionary<int, string>(); FieldInfo[] fields = typeof(T).GetFields(); foreach (FieldInfo field in fields) { string TextStatus = ((StringStatusAttribute)field.GetCustomAttributes(typeof(StringStatusAttribute), false)[0]). TextStatus; int statusKey = (int)field.GetValue(null); statusesDictionary.Add(statusKey, TextStatus); } } }
, , ,
public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) { string result = Data.Statuses.Users.Status.GetStringStatus((int)value); return result; }
, , , .
. , - .
List, .. Document
Person
. Person
Documents
, . , Person
List.
, , (, , Person
Document
), PersonEx
DocumentEx
, PersonEx
List! , тАУ , . -, , - , .. .
4. , , -
, , . , , - , , тАУ .
, тАУ , - , , ( тАУ ).
- , , .
Hint: date_insert
date_update
, - .
5. ,
, , -, - . , . , ..:
, - . - , , , , . , .. .
тАУ ┬л ┬╗, - .
, ┬л┬╗ () , - ( ) .
6.
.
, - ( - ). , ParentDiapason
, ChildDiapason
- .
, .. 245 300 400. , quantity
, , quantity
(startSeries, endSeries, startNumber, endNumber)
. , :
:
:
, тАУ .
.
Hint: MsSQL Server 2012 - , -, .
7.
- , . , :
, ( тАУ , тАУ )
public class Users { public class Status : StatusBase<Status> { /// <summary> /// ( ) /// </summary> [StringStatus("")] public const int Active = 1; /// <summary> /// ( ) /// </summary> [StringStatus("")] public const int Inactive = 0; } }
StatusBase тАУ , (-),
public class StatusBase<T> where T : class { private static Dictionary<int, string> statusesDictionary; public static string GetStringStatus(int key) { if (statusesDictionary == null) { CreateStatusDictionary(); } string result = statusesDictionary.ContainsKey(key) ? statusesDictionary[key] : " "; return result; } private static void CreateStatusDictionary() { statusesDictionary = new Dictionary<int, string>(); FieldInfo[] fields = typeof(T).GetFields(); foreach (FieldInfo field in fields) { string TextStatus = ((StringStatusAttribute)field.GetCustomAttributes(typeof(StringStatusAttribute), false)[0]). TextStatus; int statusKey = (int)field.GetValue(null); statusesDictionary.Add(statusKey, TextStatus); } } }
, , ,
public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) { string result = Data.Statuses.Users.Status.GetStringStatus((int)value); return result; }
, , , .
. , - .
List, .. Document
Person
. Person
Documents
, . , Person
List.
, , (, , Person
Document
), PersonEx
DocumentEx
, PersonEx
List! , тАУ , . -, , - , .. .
4. , , -
, , . , , - , , тАУ .
, тАУ , - , , ( тАУ ).
- , , .
Hint: date_insert
date_update
, - .
5. ,
, , -, - . , . , ..:
, - . - , , , , . , .. .
тАУ ┬л ┬╗, - .
, ┬л┬╗ () , - ( ) .
6.
.
, - ( - ). , ParentDiapason
, ChildDiapason
- .
, .. 245 300 400. , quantity
, , quantity
(startSeries, endSeries, startNumber, endNumber)
. , :
:
:
, тАУ .
.
Hint: MsSQL Server 2012 - , -, .
7.
- , . , :
, ( тАУ , тАУ )
public class Users { public class Status : StatusBase<Status> { /// <summary> /// ( ) /// </summary> [StringStatus("")] public const int Active = 1; /// <summary> /// ( ) /// </summary> [StringStatus("")] public const int Inactive = 0; } }
StatusBase тАУ , (-),
public class StatusBase<T> where T : class { private static Dictionary<int, string> statusesDictionary; public static string GetStringStatus(int key) { if (statusesDictionary == null) { CreateStatusDictionary(); } string result = statusesDictionary.ContainsKey(key) ? statusesDictionary[key] : " "; return result; } private static void CreateStatusDictionary() { statusesDictionary = new Dictionary<int, string>(); FieldInfo[] fields = typeof(T).GetFields(); foreach (FieldInfo field in fields) { string TextStatus = ((StringStatusAttribute)field.GetCustomAttributes(typeof(StringStatusAttribute), false)[0]). TextStatus; int statusKey = (int)field.GetValue(null); statusesDictionary.Add(statusKey, TextStatus); } } }
, , ,
public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) { string result = Data.Statuses.Users.Status.GetStringStatus((int)value); return result; }
, , , .
. , - .
List, .. Document
Person
. Person
Documents
, . , Person
List.
, , (, , Person
Document
), PersonEx
DocumentEx
, PersonEx
List! , тАУ , . -, , - , .. .
4. , , -
, , . , , - , , тАУ .
, тАУ , - , , ( тАУ ).
- , , .
Hint: date_insert
date_update
, - .
5. ,
, , -, - . , . , ..:
, - . - , , , , . , .. .
тАУ ┬л ┬╗, - .
, ┬л┬╗ () , - ( ) .
6.
.
, - ( - ). , ParentDiapason
, ChildDiapason
- .
, .. 245 300 400. , quantity
, , quantity
(startSeries, endSeries, startNumber, endNumber)
. , :
:
:
, тАУ .
.
Hint: MsSQL Server 2012 - , -, .
7.
- , . , :
, ( тАУ , тАУ )
public class Users { public class Status : StatusBase<Status> { /// <summary> /// ( ) /// </summary> [StringStatus("")] public const int Active = 1; /// <summary> /// ( ) /// </summary> [StringStatus("")] public const int Inactive = 0; } }
StatusBase тАУ , (-),
public class StatusBase<T> where T : class { private static Dictionary<int, string> statusesDictionary; public static string GetStringStatus(int key) { if (statusesDictionary == null) { CreateStatusDictionary(); } string result = statusesDictionary.ContainsKey(key) ? statusesDictionary[key] : " "; return result; } private static void CreateStatusDictionary() { statusesDictionary = new Dictionary<int, string>(); FieldInfo[] fields = typeof(T).GetFields(); foreach (FieldInfo field in fields) { string TextStatus = ((StringStatusAttribute)field.GetCustomAttributes(typeof(StringStatusAttribute), false)[0]). TextStatus; int statusKey = (int)field.GetValue(null); statusesDictionary.Add(statusKey, TextStatus); } } }
, , ,
public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) { string result = Data.Statuses.Users.Status.GetStringStatus((int)value); return result; }
, , , .
. , - .
List, .. Document
Person
. Person
Documents
, . , Person
List.
, , (, , Person
Document
), PersonEx
DocumentEx
, PersonEx
List! , тАУ , . -, , - , .. .
4. , , -
, , . , , - , , тАУ .
, тАУ , - , , ( тАУ ).
- , , .
Hint: date_insert
date_update
, - .
5. ,
, , -, - . , . , ..:
, - . - , , , , . , .. .
тАУ ┬л ┬╗, - .
, ┬л┬╗ () , - ( ) .
6.
.
, - ( - ). , ParentDiapason
, ChildDiapason
- .
, .. 245 300 400. , quantity
, , quantity
(startSeries, endSeries, startNumber, endNumber)
. , :
:
:
, тАУ .
.
Hint: MsSQL Server 2012 - , -, .
7.
- , . , :
, ( тАУ , тАУ )
public class Users { public class Status : StatusBase<Status> { /// <summary> /// ( ) /// </summary> [StringStatus("")] public const int Active = 1; /// <summary> /// ( ) /// </summary> [StringStatus("")] public const int Inactive = 0; } }
StatusBase тАУ , (-),
public class StatusBase<T> where T : class { private static Dictionary<int, string> statusesDictionary; public static string GetStringStatus(int key) { if (statusesDictionary == null) { CreateStatusDictionary(); } string result = statusesDictionary.ContainsKey(key) ? statusesDictionary[key] : " "; return result; } private static void CreateStatusDictionary() { statusesDictionary = new Dictionary<int, string>(); FieldInfo[] fields = typeof(T).GetFields(); foreach (FieldInfo field in fields) { string TextStatus = ((StringStatusAttribute)field.GetCustomAttributes(typeof(StringStatusAttribute), false)[0]). TextStatus; int statusKey = (int)field.GetValue(null); statusesDictionary.Add(statusKey, TextStatus); } } }
, , ,
public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) { string result = Data.Statuses.Users.Status.GetStringStatus((int)value); return result; }
, , , .
. , - .
List, .. Document
Person
. Person
Documents
, . , Person
List.
, , (, , Person
Document
), PersonEx
DocumentEx
, PersonEx
List! , тАУ , . -, , - , .. .
4. , , -
, , . , , - , , тАУ .
, тАУ , - , , ( тАУ ).
- , , .
Hint: date_insert
date_update
, - .
5. ,
, , -, - . , . , ..:
, - . - , , , , . , .. .
тАУ ┬л ┬╗, - .
, ┬л┬╗ () , - ( ) .
6.
.
, - ( - ). , ParentDiapason
, ChildDiapason
- .
, .. 245 300 400. , quantity
, , quantity
(startSeries, endSeries, startNumber, endNumber)
. , :
:
:
, тАУ .
.
Hint: MsSQL Server 2012 - , -, .
7.
- , . , :
, ( тАУ , тАУ )
public class Users { public class Status : StatusBase<Status> { /// <summary> /// ( ) /// </summary> [StringStatus("")] public const int Active = 1; /// <summary> /// ( ) /// </summary> [StringStatus("")] public const int Inactive = 0; } }
StatusBase тАУ , (-),
public class StatusBase<T> where T : class { private static Dictionary<int, string> statusesDictionary; public static string GetStringStatus(int key) { if (statusesDictionary == null) { CreateStatusDictionary(); } string result = statusesDictionary.ContainsKey(key) ? statusesDictionary[key] : " "; return result; } private static void CreateStatusDictionary() { statusesDictionary = new Dictionary<int, string>(); FieldInfo[] fields = typeof(T).GetFields(); foreach (FieldInfo field in fields) { string TextStatus = ((StringStatusAttribute)field.GetCustomAttributes(typeof(StringStatusAttribute), false)[0]). TextStatus; int statusKey = (int)field.GetValue(null); statusesDictionary.Add(statusKey, TextStatus); } } }
, , ,
public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) { string result = Data.Statuses.Users.Status.GetStringStatus((int)value); return result; }
, , , .
. , - .
List, .. Document
Person
. Person
Documents
, . , Person
List.
, , (, , Person
Document
), PersonEx
DocumentEx
, PersonEx
List! , тАУ , . -, , - , .. .
4. , , -
, , . , , - , , тАУ .
, тАУ , - , , ( тАУ ).
- , , .
Hint: date_insert
date_update
, - .
5. ,
, , -, - . , . , ..:
, - . - , , , , . , .. .
тАУ ┬л ┬╗, - .
, ┬л┬╗ () , - ( ) .
6.
.
, - ( - ). , ParentDiapason
, ChildDiapason
- .
, .. 245 300 400. , quantity
, , quantity
(startSeries, endSeries, startNumber, endNumber)
. , :
:
:
, тАУ .
.
Hint: MsSQL Server 2012 - , -, .
7.
- , . , :
, ( тАУ , тАУ )
public class Users { public class Status : StatusBase<Status> { /// <summary> /// ( ) /// </summary> [StringStatus("")] public const int Active = 1; /// <summary> /// ( ) /// </summary> [StringStatus("")] public const int Inactive = 0; } }
StatusBase тАУ , (-),
public class StatusBase<T> where T : class { private static Dictionary<int, string> statusesDictionary; public static string GetStringStatus(int key) { if (statusesDictionary == null) { CreateStatusDictionary(); } string result = statusesDictionary.ContainsKey(key) ? statusesDictionary[key] : " "; return result; } private static void CreateStatusDictionary() { statusesDictionary = new Dictionary<int, string>(); FieldInfo[] fields = typeof(T).GetFields(); foreach (FieldInfo field in fields) { string TextStatus = ((StringStatusAttribute)field.GetCustomAttributes(typeof(StringStatusAttribute), false)[0]). TextStatus; int statusKey = (int)field.GetValue(null); statusesDictionary.Add(statusKey, TextStatus); } } }
, , ,
public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) { string result = Data.Statuses.Users.Status.GetStringStatus((int)value); return result; }
, , , .
. , - .
List, .. Document
Person
. Person
Documents
, . , Person
List.
, , (, , Person
Document
), PersonEx
DocumentEx
, PersonEx
List! , тАУ , . -, , - , .. .
4. , , -
, , . , , - , , тАУ .
, тАУ , - , , ( тАУ ).
- , , .
Hint: date_insert
date_update
, - .
5. ,
, , -, - . , . , ..:
, - . - , , , , . , .. .
тАУ ┬л ┬╗, - .
, ┬л┬╗ () , - ( ) .
6.
.
, - ( - ). , ParentDiapason
, ChildDiapason
- .
, .. 245 300 400. , quantity
, , quantity
(startSeries, endSeries, startNumber, endNumber)
. , :
:
:
, тАУ .
.
Hint: MsSQL Server 2012 - , -, .
7.
- , . , :
, ( тАУ , тАУ )
public class Users { public class Status : StatusBase<Status> { /// <summary> /// ( ) /// </summary> [StringStatus("")] public const int Active = 1; /// <summary> /// ( ) /// </summary> [StringStatus("")] public const int Inactive = 0; } }
StatusBase тАУ , (-),
public class StatusBase<T> where T : class { private static Dictionary<int, string> statusesDictionary; public static string GetStringStatus(int key) { if (statusesDictionary == null) { CreateStatusDictionary(); } string result = statusesDictionary.ContainsKey(key) ? statusesDictionary[key] : " "; return result; } private static void CreateStatusDictionary() { statusesDictionary = new Dictionary<int, string>(); FieldInfo[] fields = typeof(T).GetFields(); foreach (FieldInfo field in fields) { string TextStatus = ((StringStatusAttribute)field.GetCustomAttributes(typeof(StringStatusAttribute), false)[0]). TextStatus; int statusKey = (int)field.GetValue(null); statusesDictionary.Add(statusKey, TextStatus); } } }
, , ,
public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) { string result = Data.Statuses.Users.Status.GetStringStatus((int)value); return result; }
, , , .
. , - .
List, .. Document
Person
. Person
Documents
, . , Person
List.
, , (, , Person
Document
), PersonEx
DocumentEx
, PersonEx
List! , тАУ , . -, , - , .. .
4. , , -
, , . , , - , , тАУ .
, тАУ , - , , ( тАУ ).
- , , .
Hint: date_insert
date_update
, - .
5. ,
, , -, - . , . , ..:
, - . - , , , , . , .. .
тАУ ┬л ┬╗, - .
, ┬л┬╗ () , - ( ) .
6.
.
, - ( - ). , ParentDiapason
, ChildDiapason
- .
, .. 245 300 400. , quantity
, , quantity
(startSeries, endSeries, startNumber, endNumber)
. , :
:
:
, тАУ .
.
Hint: MsSQL Server 2012 - , -, .
7.
- , . , :
, ( тАУ , тАУ )
public class Users { public class Status : StatusBase<Status> { /// <summary> /// ( ) /// </summary> [StringStatus("")] public const int Active = 1; /// <summary> /// ( ) /// </summary> [StringStatus("")] public const int Inactive = 0; } }
StatusBase тАУ , (-),
public class StatusBase<T> where T : class { private static Dictionary<int, string> statusesDictionary; public static string GetStringStatus(int key) { if (statusesDictionary == null) { CreateStatusDictionary(); } string result = statusesDictionary.ContainsKey(key) ? statusesDictionary[key] : " "; return result; } private static void CreateStatusDictionary() { statusesDictionary = new Dictionary<int, string>(); FieldInfo[] fields = typeof(T).GetFields(); foreach (FieldInfo field in fields) { string TextStatus = ((StringStatusAttribute)field.GetCustomAttributes(typeof(StringStatusAttribute), false)[0]). TextStatus; int statusKey = (int)field.GetValue(null); statusesDictionary.Add(statusKey, TextStatus); } } }
, , ,
public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) { string result = Data.Statuses.Users.Status.GetStringStatus((int)value); return result; }
, , , .
. , - .
List, .. Document
Person
. Person
Documents
, . , Person
List.
, , (, , Person
Document
), PersonEx
DocumentEx
, PersonEx
List! , тАУ , . -, , - , .. .
4. , , -
, , . , , - , , тАУ .
, тАУ , - , , ( тАУ ).
- , , .
Hint: date_insert
date_update
, - .
5. ,
, , -, - . , . , ..:
, - . - , , , , . , .. .
тАУ ┬л ┬╗, - .
, ┬л┬╗ () , - ( ) .
6.
.
, - ( - ). , ParentDiapason
, ChildDiapason
- .
, .. 245 300 400. , quantity
, , quantity
(startSeries, endSeries, startNumber, endNumber)
. , :
:
:
, тАУ .
.
Hint: MsSQL Server 2012 - , -, .
7.
- , . , :
, ( тАУ , тАУ )
public class Users { public class Status : StatusBase<Status> { /// <summary> /// ( ) /// </summary> [StringStatus("")] public const int Active = 1; /// <summary> /// ( ) /// </summary> [StringStatus("")] public const int Inactive = 0; } }
StatusBase тАУ , (-),
public class StatusBase<T> where T : class { private static Dictionary<int, string> statusesDictionary; public static string GetStringStatus(int key) { if (statusesDictionary == null) { CreateStatusDictionary(); } string result = statusesDictionary.ContainsKey(key) ? statusesDictionary[key] : " "; return result; } private static void CreateStatusDictionary() { statusesDictionary = new Dictionary<int, string>(); FieldInfo[] fields = typeof(T).GetFields(); foreach (FieldInfo field in fields) { string TextStatus = ((StringStatusAttribute)field.GetCustomAttributes(typeof(StringStatusAttribute), false)[0]). TextStatus; int statusKey = (int)field.GetValue(null); statusesDictionary.Add(statusKey, TextStatus); } } }
, , ,
public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) { string result = Data.Statuses.Users.Status.GetStringStatus((int)value); return result; }
, , , .
. , - .
List, .. Document
Person
. Person
Documents
, . , Person
List.
, , (, , Person
Document
), PersonEx
DocumentEx
, PersonEx
List! , тАУ , . -, , - , .. .
4. , , -
, , . , , - , , тАУ .
, тАУ , - , , ( тАУ ).
- , , .
Hint: date_insert
date_update
, - .
5. ,
, , -, - . , . , ..:
, - . - , , , , . , .. .
тАУ ┬л ┬╗, - .
, ┬л┬╗ () , - ( ) .
6.
.
, - ( - ). , ParentDiapason
, ChildDiapason
- .
, .. 245 300 400. , quantity
, , quantity
(startSeries, endSeries, startNumber, endNumber)
. , :
:
:
, тАУ .
.
Hint: MsSQL Server 2012 - , -, .
7.
- , . , :
, ( тАУ , тАУ )
public class Users { public class Status : StatusBase<Status> { /// <summary> /// ( ) /// </summary> [StringStatus("")] public const int Active = 1; /// <summary> /// ( ) /// </summary> [StringStatus("")] public const int Inactive = 0; } }
StatusBase тАУ , (-),
public class StatusBase<T> where T : class { private static Dictionary<int, string> statusesDictionary; public static string GetStringStatus(int key) { if (statusesDictionary == null) { CreateStatusDictionary(); } string result = statusesDictionary.ContainsKey(key) ? statusesDictionary[key] : " "; return result; } private static void CreateStatusDictionary() { statusesDictionary = new Dictionary<int, string>(); FieldInfo[] fields = typeof(T).GetFields(); foreach (FieldInfo field in fields) { string TextStatus = ((StringStatusAttribute)field.GetCustomAttributes(typeof(StringStatusAttribute), false)[0]). TextStatus; int statusKey = (int)field.GetValue(null); statusesDictionary.Add(statusKey, TextStatus); } } }
, , ,
public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) { string result = Data.Statuses.Users.Status.GetStringStatus((int)value); return result; }
, , , .
. , - .
List, .. Document
Person
. Person
Documents
, . , Person
List.
, , (, , Person
Document
), PersonEx
DocumentEx
, PersonEx
List! , тАУ , . -, , - , .. .
4. , , -
, , . , , - , , тАУ .
, тАУ , - , , ( тАУ ).
- , , .
Hint: date_insert
date_update
, - .
5. ,
, , -, - . , . , ..:
, - . - , , , , . , .. .
тАУ ┬л ┬╗, - .
, ┬л┬╗ () , - ( ) .
6.
.
, - ( - ). , ParentDiapason
, ChildDiapason
- .
, .. 245 300 400. , quantity
, , quantity
(startSeries, endSeries, startNumber, endNumber)
. , :
:
:
, тАУ .
.
Hint: MsSQL Server 2012 - , -, .
7.
- , . , :
, ( тАУ , тАУ )
public class Users { public class Status : StatusBase<Status> { /// <summary> /// ( ) /// </summary> [StringStatus("")] public const int Active = 1; /// <summary> /// ( ) /// </summary> [StringStatus("")] public const int Inactive = 0; } }
StatusBase тАУ , (-),
public class StatusBase<T> where T : class { private static Dictionary<int, string> statusesDictionary; public static string GetStringStatus(int key) { if (statusesDictionary == null) { CreateStatusDictionary(); } string result = statusesDictionary.ContainsKey(key) ? statusesDictionary[key] : " "; return result; } private static void CreateStatusDictionary() { statusesDictionary = new Dictionary<int, string>(); FieldInfo[] fields = typeof(T).GetFields(); foreach (FieldInfo field in fields) { string TextStatus = ((StringStatusAttribute)field.GetCustomAttributes(typeof(StringStatusAttribute), false)[0]). TextStatus; int statusKey = (int)field.GetValue(null); statusesDictionary.Add(statusKey, TextStatus); } } }
, , ,
public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) { string result = Data.Statuses.Users.Status.GetStringStatus((int)value); return result; }
, , , .
. , - .
List, .. Document
Person
. Person
Documents
, . , Person
List.
, , (, , Person
Document
), PersonEx
DocumentEx
, PersonEx
List! , тАУ , . -, , - , .. .
4. , , -
, , . , , - , , тАУ .
, тАУ , - , , ( тАУ ).
- , , .
Hint: date_insert
date_update
, - .
5. ,
, , -, - . , . , ..:
, - . - , , , , . , .. .
тАУ ┬л ┬╗, - .
, ┬л┬╗ () , - ( ) .
6.
.
, - ( - ). , ParentDiapason
, ChildDiapason
- .
, .. 245 300 400. , quantity
, , quantity
(startSeries, endSeries, startNumber, endNumber)
. , :
:
:
, тАУ .
.
Hint: MsSQL Server 2012 - , -, .
7.
- , . , :
, ( тАУ , тАУ )
public class Users { public class Status : StatusBase<Status> { /// <summary> /// ( ) /// </summary> [StringStatus("")] public const int Active = 1; /// <summary> /// ( ) /// </summary> [StringStatus("")] public const int Inactive = 0; } }
StatusBase тАУ , (-),
public class StatusBase<T> where T : class { private static Dictionary<int, string> statusesDictionary; public static string GetStringStatus(int key) { if (statusesDictionary == null) { CreateStatusDictionary(); } string result = statusesDictionary.ContainsKey(key) ? statusesDictionary[key] : " "; return result; } private static void CreateStatusDictionary() { statusesDictionary = new Dictionary<int, string>(); FieldInfo[] fields = typeof(T).GetFields(); foreach (FieldInfo field in fields) { string TextStatus = ((StringStatusAttribute)field.GetCustomAttributes(typeof(StringStatusAttribute), false)[0]). TextStatus; int statusKey = (int)field.GetValue(null); statusesDictionary.Add(statusKey, TextStatus); } } }
, , ,
public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) { string result = Data.Statuses.Users.Status.GetStringStatus((int)value); return result; }
, , , .
. , - .
List, .. Document
Person
. Person
Documents
, . , Person
List.
, , (, , Person
Document
), PersonEx
DocumentEx
, PersonEx
List! , тАУ , . -, , - , .. .
4. , , -
, , . , , - , , тАУ .
, тАУ , - , , ( тАУ ).
- , , .
Hint: date_insert
date_update
, - .
5. ,
, , -, - . , . , ..:
, - . - , , , , . , .. .
тАУ ┬л ┬╗, - .
, ┬л┬╗ () , - ( ) .
6.
.
, - ( - ). , ParentDiapason
, ChildDiapason
- .
, .. 245 300 400. , quantity
, , quantity
(startSeries, endSeries, startNumber, endNumber)
. , :
:
:
, тАУ .
.
Hint: MsSQL Server 2012 - , -, .
7.
- , . , :
, ( тАУ , тАУ )
public class Users { public class Status : StatusBase<Status> { /// <summary> /// ( ) /// </summary> [StringStatus("")] public const int Active = 1; /// <summary> /// ( ) /// </summary> [StringStatus("")] public const int Inactive = 0; } }
StatusBase тАУ , (-),
public class StatusBase<T> where T : class { private static Dictionary<int, string> statusesDictionary; public static string GetStringStatus(int key) { if (statusesDictionary == null) { CreateStatusDictionary(); } string result = statusesDictionary.ContainsKey(key) ? statusesDictionary[key] : " "; return result; } private static void CreateStatusDictionary() { statusesDictionary = new Dictionary<int, string>(); FieldInfo[] fields = typeof(T).GetFields(); foreach (FieldInfo field in fields) { string TextStatus = ((StringStatusAttribute)field.GetCustomAttributes(typeof(StringStatusAttribute), false)[0]). TextStatus; int statusKey = (int)field.GetValue(null); statusesDictionary.Add(statusKey, TextStatus); } } }
, , ,
public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) { string result = Data.Statuses.Users.Status.GetStringStatus((int)value); return result; }
, , , .
. , - .
List, .. Document
Person
. Person
Documents
, . , Person
List.
, , (, , Person
Document
), PersonEx
DocumentEx
, PersonEx
List! , тАУ , . -, , - , .. .
4. , , -
, , . , , - , , тАУ .
, тАУ , - , , ( тАУ ).
- , , .
Hint: date_insert
date_update
, - .
5. ,
, , -, - . , . , ..:
, - . - , , , , . , .. .
тАУ ┬л ┬╗, - .
, ┬л┬╗ () , - ( ) .
6.
.
, - ( - ). , ParentDiapason
, ChildDiapason
- .
, .. 245 300 400. , quantity
, , quantity
(startSeries, endSeries, startNumber, endNumber)
. , :
:
:
, тАУ .
.
Hint: MsSQL Server 2012 - , -, .
7.
- , . , :
, ( тАУ , тАУ )
public class Users { public class Status : StatusBase<Status> { /// <summary> /// ( ) /// </summary> [StringStatus("")] public const int Active = 1; /// <summary> /// ( ) /// </summary> [StringStatus("")] public const int Inactive = 0; } }
StatusBase тАУ , (-),
public class StatusBase<T> where T : class { private static Dictionary<int, string> statusesDictionary; public static string GetStringStatus(int key) { if (statusesDictionary == null) { CreateStatusDictionary(); } string result = statusesDictionary.ContainsKey(key) ? statusesDictionary[key] : " "; return result; } private static void CreateStatusDictionary() { statusesDictionary = new Dictionary<int, string>(); FieldInfo[] fields = typeof(T).GetFields(); foreach (FieldInfo field in fields) { string TextStatus = ((StringStatusAttribute)field.GetCustomAttributes(typeof(StringStatusAttribute), false)[0]). TextStatus; int statusKey = (int)field.GetValue(null); statusesDictionary.Add(statusKey, TextStatus); } } }
, , ,
public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) { string result = Data.Statuses.Users.Status.GetStringStatus((int)value); return result; }
, , , .
. , - .
List, .. Document
Person
. Person
Documents
, . , Person
List.
, , (, , Person
Document
), PersonEx
DocumentEx
, PersonEx
List! , тАУ , . -, , - , .. .
4. , , -
, , . , , - , , тАУ .
, тАУ , - , , ( тАУ ).
- , , .
Hint: date_insert
date_update
, - .
5. ,
, , -, - . , . , ..:
, - . - , , , , . , .. .
тАУ ┬л ┬╗, - .
, ┬л┬╗ () , - ( ) .
6.
.
, - ( - ). , ParentDiapason
, ChildDiapason
- .
, .. 245 300 400. , quantity
, , quantity
(startSeries, endSeries, startNumber, endNumber)
. , :
:
:
, тАУ .
.
Hint: MsSQL Server 2012 - , -, .
7.
- , . , :
, ( тАУ , тАУ )
public class Users { public class Status : StatusBase<Status> { /// <summary> /// ( ) /// </summary> [StringStatus("")] public const int Active = 1; /// <summary> /// ( ) /// </summary> [StringStatus("")] public const int Inactive = 0; } }
StatusBase тАУ , (-),
public class StatusBase<T> where T : class { private static Dictionary<int, string> statusesDictionary; public static string GetStringStatus(int key) { if (statusesDictionary == null) { CreateStatusDictionary(); } string result = statusesDictionary.ContainsKey(key) ? statusesDictionary[key] : " "; return result; } private static void CreateStatusDictionary() { statusesDictionary = new Dictionary<int, string>(); FieldInfo[] fields = typeof(T).GetFields(); foreach (FieldInfo field in fields) { string TextStatus = ((StringStatusAttribute)field.GetCustomAttributes(typeof(StringStatusAttribute), false)[0]). TextStatus; int statusKey = (int)field.GetValue(null); statusesDictionary.Add(statusKey, TextStatus); } } }
, , ,
public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) { string result = Data.Statuses.Users.Status.GetStringStatus((int)value); return result; }
, , , .
. , - .
List, .. Document
Person
. Person
Documents
, . , Person
List.
, , (, , Person
Document
), PersonEx
DocumentEx
, PersonEx
List! , тАУ , . -, , - , .. .
4. , , -
, , . , , - , , тАУ .
, тАУ , - , , ( тАУ ).
- , , .
Hint: date_insert
date_update
, - .
5. ,
, , -, - . , . , ..:
, - . - , , , , . , .. .
тАУ ┬л ┬╗, - .
, ┬л┬╗ () , - ( ) .
6.
.
, - ( - ). , ParentDiapason
, ChildDiapason
- .
, .. 245 300 400. , quantity
, , quantity
(startSeries, endSeries, startNumber, endNumber)
. , :
:
:
, тАУ .
.
Hint: MsSQL Server 2012 - , -, .
7.
- , . , :
, ( тАУ , тАУ )
public class Users { public class Status : StatusBase<Status> { /// <summary> /// ( ) /// </summary> [StringStatus("")] public const int Active = 1; /// <summary> /// ( ) /// </summary> [StringStatus("")] public const int Inactive = 0; } }
StatusBase тАУ , (-),
public class StatusBase<T> where T : class { private static Dictionary<int, string> statusesDictionary; public static string GetStringStatus(int key) { if (statusesDictionary == null) { CreateStatusDictionary(); } string result = statusesDictionary.ContainsKey(key) ? statusesDictionary[key] : " "; return result; } private static void CreateStatusDictionary() { statusesDictionary = new Dictionary<int, string>(); FieldInfo[] fields = typeof(T).GetFields(); foreach (FieldInfo field in fields) { string TextStatus = ((StringStatusAttribute)field.GetCustomAttributes(typeof(StringStatusAttribute), false)[0]). TextStatus; int statusKey = (int)field.GetValue(null); statusesDictionary.Add(statusKey, TextStatus); } } }
, , ,
public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) { string result = Data.Statuses.Users.Status.GetStringStatus((int)value); return result; }
, , , .
. , - .
List, .. Document
Person
. Person
Documents
, . , Person
List.
, , (, , Person
Document
), PersonEx
DocumentEx
, PersonEx
List! , тАУ , . -, , - , .. .
4. , , -
, , . , , - , , тАУ .
, тАУ , - , , ( тАУ ).
- , , .
Hint: date_insert
date_update
, - .
5. ,
, , -, - . , . , ..:
, - . - , , , , . , .. .
тАУ ┬л ┬╗, - .
, ┬л┬╗ () , - ( ) .
6.
.
, - ( - ). , ParentDiapason
, ChildDiapason
- .
, .. 245 300 400. , quantity
, , quantity
(startSeries, endSeries, startNumber, endNumber)
. , :
:
:
, тАУ .
.
Hint: MsSQL Server 2012 - , -, .
7.
- , . , :
, ( тАУ , тАУ )
public class Users { public class Status : StatusBase<Status> { /// <summary> /// ( ) /// </summary> [StringStatus("")] public const int Active = 1; /// <summary> /// ( ) /// </summary> [StringStatus("")] public const int Inactive = 0; } }
StatusBase тАУ , (-),
public class StatusBase<T> where T : class { private static Dictionary<int, string> statusesDictionary; public static string GetStringStatus(int key) { if (statusesDictionary == null) { CreateStatusDictionary(); } string result = statusesDictionary.ContainsKey(key) ? statusesDictionary[key] : " "; return result; } private static void CreateStatusDictionary() { statusesDictionary = new Dictionary<int, string>(); FieldInfo[] fields = typeof(T).GetFields(); foreach (FieldInfo field in fields) { string TextStatus = ((StringStatusAttribute)field.GetCustomAttributes(typeof(StringStatusAttribute), false)[0]). TextStatus; int statusKey = (int)field.GetValue(null); statusesDictionary.Add(statusKey, TextStatus); } } }
, , ,
public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) { string result = Data.Statuses.Users.Status.GetStringStatus((int)value); return result; }
, , , .
. , - .
List, .. Document
Person
. Person
Documents
, . , Person
List.
, , (, , Person
Document
), PersonEx
DocumentEx
, PersonEx
List! , тАУ , . -, , - , .. .
4. , , -
, , . , , - , , тАУ .
, тАУ , - , , ( тАУ ).
- , , .
Hint: date_insert
date_update
, - .
5. ,
, , -, - . , . , ..:
, - . - , , , , . , .. .
тАУ ┬л ┬╗, - .
, ┬л┬╗ () , - ( ) .
6.
.
, - ( - ). , ParentDiapason
, ChildDiapason
- .
, .. 245 300 400. , quantity
, , quantity
(startSeries, endSeries, startNumber, endNumber)
. , :
:
:
, тАУ .
.
Hint: MsSQL Server 2012 - , -, .
7.
- , . , :
, ( тАУ , тАУ )
public class Users { public class Status : StatusBase<Status> { /// <summary> /// ( ) /// </summary> [StringStatus("")] public const int Active = 1; /// <summary> /// ( ) /// </summary> [StringStatus("")] public const int Inactive = 0; } }
StatusBase тАУ , (-),
public class StatusBase<T> where T : class { private static Dictionary<int, string> statusesDictionary; public static string GetStringStatus(int key) { if (statusesDictionary == null) { CreateStatusDictionary(); } string result = statusesDictionary.ContainsKey(key) ? statusesDictionary[key] : " "; return result; } private static void CreateStatusDictionary() { statusesDictionary = new Dictionary<int, string>(); FieldInfo[] fields = typeof(T).GetFields(); foreach (FieldInfo field in fields) { string TextStatus = ((StringStatusAttribute)field.GetCustomAttributes(typeof(StringStatusAttribute), false)[0]). TextStatus; int statusKey = (int)field.GetValue(null); statusesDictionary.Add(statusKey, TextStatus); } } }
, , ,
public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) { string result = Data.Statuses.Users.Status.GetStringStatus((int)value); return result; }
, , , .
. , - .
List, .. Document
Person
. Person
Documents
, . , Person
List.
, , (, , Person
Document
), PersonEx
DocumentEx
, PersonEx
List! , тАУ , . -, , - , .. .
4. , , -
, , . , , - , , тАУ .
, тАУ , - , , ( тАУ ).
- , , .
Hint: date_insert
date_update
, - .
5. ,
, , -, - . , . , ..:
, - . - , , , , . , .. .
тАУ ┬л ┬╗, - .
, ┬л┬╗ () , - ( ) .
6.
.
, - ( - ). , ParentDiapason
, ChildDiapason
- .
, .. 245 300 400. , quantity
, , quantity
(startSeries, endSeries, startNumber, endNumber)
. , :
:
:
, тАУ .
.
Hint: MsSQL Server 2012 - , -, .
7.
- , . , :
, ( тАУ , тАУ )
public class Users { public class Status : StatusBase<Status> { /// <summary> /// ( ) /// </summary> [StringStatus("")] public const int Active = 1; /// <summary> /// ( ) /// </summary> [StringStatus("")] public const int Inactive = 0; } }
StatusBase тАУ , (-),
public class StatusBase<T> where T : class { private static Dictionary<int, string> statusesDictionary; public static string GetStringStatus(int key) { if (statusesDictionary == null) { CreateStatusDictionary(); } string result = statusesDictionary.ContainsKey(key) ? statusesDictionary[key] : " "; return result; } private static void CreateStatusDictionary() { statusesDictionary = new Dictionary<int, string>(); FieldInfo[] fields = typeof(T).GetFields(); foreach (FieldInfo field in fields) { string TextStatus = ((StringStatusAttribute)field.GetCustomAttributes(typeof(StringStatusAttribute), false)[0]). TextStatus; int statusKey = (int)field.GetValue(null); statusesDictionary.Add(statusKey, TextStatus); } } }
, , ,
public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) { string result = Data.Statuses.Users.Status.GetStringStatus((int)value); return result; }
, , , .
. , - .
List, .. Document
Person
. Person
Documents
, . , Person
List.
, , (, , Person
Document
), PersonEx
DocumentEx
, PersonEx
List! , тАУ , . -, , - , .. .
4. , , -
, , . , , - , , тАУ .
, тАУ , - , , ( тАУ ).
- , , .
Hint: date_insert
date_update
, - .
5. ,
, , -, - . , . , ..:
, - . - , , , , . , .. .
тАУ ┬л ┬╗, - .
, ┬л┬╗ () , - ( ) .
6.
.
, - ( - ). , ParentDiapason
, ChildDiapason
- .
, .. 245 300 400. , quantity
, , quantity
(startSeries, endSeries, startNumber, endNumber)
. , :
:
:
, тАУ .
.
Hint: MsSQL Server 2012 - , -, .
7.
- , . , :
, ( тАУ , тАУ )
public class Users { public class Status : StatusBase<Status> { /// <summary> /// ( ) /// </summary> [StringStatus("")] public const int Active = 1; /// <summary> /// ( ) /// </summary> [StringStatus("")] public const int Inactive = 0; } }
StatusBase тАУ , (-),
public class StatusBase<T> where T : class { private static Dictionary<int, string> statusesDictionary; public static string GetStringStatus(int key) { if (statusesDictionary == null) { CreateStatusDictionary(); } string result = statusesDictionary.ContainsKey(key) ? statusesDictionary[key] : " "; return result; } private static void CreateStatusDictionary() { statusesDictionary = new Dictionary<int, string>(); FieldInfo[] fields = typeof(T).GetFields(); foreach (FieldInfo field in fields) { string TextStatus = ((StringStatusAttribute)field.GetCustomAttributes(typeof(StringStatusAttribute), false)[0]). TextStatus; int statusKey = (int)field.GetValue(null); statusesDictionary.Add(statusKey, TextStatus); } } }
, , ,
public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) { string result = Data.Statuses.Users.Status.GetStringStatus((int)value); return result; }
, , , .
. , - .
List, .. Document
Person
. Person
Documents
, . , Person
List.
, , (, , Person
Document
), PersonEx
DocumentEx
, PersonEx
List! , тАУ , . -, , - , .. .
4. , , -
, , . , , - , , тАУ .
, тАУ , - , , ( тАУ ).
- , , .
Hint: date_insert
date_update
, - .
5. ,
, , -, - . , . , ..:
, - . - , , , , . , .. .
тАУ ┬л ┬╗, - .
, ┬л┬╗ () , - ( ) .
6.
.
, - ( - ). , ParentDiapason
, ChildDiapason
- .
, .. 245 300 400. , quantity
, , quantity
(startSeries, endSeries, startNumber, endNumber)
. , :
:
:
, тАУ .
.
Hint: MsSQL Server 2012 - , -, .
7.
- , . , :
, ( тАУ , тАУ )
public class Users { public class Status : StatusBase<Status> { /// <summary> /// ( ) /// </summary> [StringStatus("")] public const int Active = 1; /// <summary> /// ( ) /// </summary> [StringStatus("")] public const int Inactive = 0; } }
StatusBase тАУ , (-),
public class StatusBase<T> where T : class { private static Dictionary<int, string> statusesDictionary; public static string GetStringStatus(int key) { if (statusesDictionary == null) { CreateStatusDictionary(); } string result = statusesDictionary.ContainsKey(key) ? statusesDictionary[key] : " "; return result; } private static void CreateStatusDictionary() { statusesDictionary = new Dictionary<int, string>(); FieldInfo[] fields = typeof(T).GetFields(); foreach (FieldInfo field in fields) { string TextStatus = ((StringStatusAttribute)field.GetCustomAttributes(typeof(StringStatusAttribute), false)[0]). TextStatus; int statusKey = (int)field.GetValue(null); statusesDictionary.Add(statusKey, TextStatus); } } }
, , ,
public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) { string result = Data.Statuses.Users.Status.GetStringStatus((int)value); return result; }
, , , .
. , - .
List, .. Document
Person
. Person
Documents
, . , Person
List.
, , (, , Person
Document
), PersonEx
DocumentEx
, PersonEx
List! , тАУ , . -, , - , .. .
4. , , -
, , . , , - , , тАУ .
, тАУ , - , , ( тАУ ).
- , , .
Hint: date_insert
date_update
, - .
5. ,
, , -, - . , . , ..:
, - . - , , , , . , .. .
тАУ ┬л ┬╗, - .
, ┬л┬╗ () , - ( ) .
6.
.
, - ( - ). , ParentDiapason
, ChildDiapason
- .
, .. 245 300 400. , quantity
, , quantity
(startSeries, endSeries, startNumber, endNumber)
. , :
:
:
, тАУ .
.
Hint: MsSQL Server 2012 - , -, .
7.
- , . , :
, ( тАУ , тАУ )
public class Users { public class Status : StatusBase<Status> { /// <summary> /// ( ) /// </summary> [StringStatus("")] public const int Active = 1; /// <summary> /// ( ) /// </summary> [StringStatus("")] public const int Inactive = 0; } }
StatusBase тАУ , (-),
public class StatusBase<T> where T : class { private static Dictionary<int, string> statusesDictionary; public static string GetStringStatus(int key) { if (statusesDictionary == null) { CreateStatusDictionary(); } string result = statusesDictionary.ContainsKey(key) ? statusesDictionary[key] : " "; return result; } private static void CreateStatusDictionary() { statusesDictionary = new Dictionary<int, string>(); FieldInfo[] fields = typeof(T).GetFields(); foreach (FieldInfo field in fields) { string TextStatus = ((StringStatusAttribute)field.GetCustomAttributes(typeof(StringStatusAttribute), false)[0]). TextStatus; int statusKey = (int)field.GetValue(null); statusesDictionary.Add(statusKey, TextStatus); } } }
, , ,
public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) { string result = Data.Statuses.Users.Status.GetStringStatus((int)value); return result; }
, , , .
. , - .
List, .. Document
Person
. Person
Documents
, . , Person
List.
, , (, , Person
Document
), PersonEx
DocumentEx
, PersonEx
List! , тАУ , . -, , - , .. .
4. , , -
, , . , , - , , тАУ .
, тАУ , - , , ( тАУ ).
- , , .
Hint: date_insert
date_update
, - .
5. ,
, , -, - . , . , ..:
, - . - , , , , . , .. .
тАУ ┬л ┬╗, - .
, ┬л┬╗ () , - ( ) .
6.
.
, - ( - ). , ParentDiapason
, ChildDiapason
- .
, .. 245 300 400. , quantity
, , quantity
(startSeries, endSeries, startNumber, endNumber)
. , :
:
:
, тАУ .
.
Hint: MsSQL Server 2012 - , -, .
7.
- , . , :
, ( тАУ , тАУ )
public class Users { public class Status : StatusBase<Status> { /// <summary> /// ( ) /// </summary> [StringStatus("")] public const int Active = 1; /// <summary> /// ( ) /// </summary> [StringStatus("")] public const int Inactive = 0; } }
StatusBase тАУ , (-),
public class StatusBase<T> where T : class { private static Dictionary<int, string> statusesDictionary; public static string GetStringStatus(int key) { if (statusesDictionary == null) { CreateStatusDictionary(); } string result = statusesDictionary.ContainsKey(key) ? statusesDictionary[key] : " "; return result; } private static void CreateStatusDictionary() { statusesDictionary = new Dictionary<int, string>(); FieldInfo[] fields = typeof(T).GetFields(); foreach (FieldInfo field in fields) { string TextStatus = ((StringStatusAttribute)field.GetCustomAttributes(typeof(StringStatusAttribute), false)[0]). TextStatus; int statusKey = (int)field.GetValue(null); statusesDictionary.Add(statusKey, TextStatus); } } }
, , ,
public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) { string result = Data.Statuses.Users.Status.GetStringStatus((int)value); return result; }
, , , .
. , - .
List, .. Document
Person
. Person
Documents
, . , Person
List.
, , (, , Person
Document
), PersonEx
DocumentEx
, PersonEx
List! , тАУ , . -, , - , .. .
4. , , -
, , . , , - , , тАУ .
, тАУ , - , , ( тАУ ).
- , , .
Hint: date_insert
date_update
, - .
5. ,
, , -, - . , . , ..:
, - . - , , , , . , .. .
тАУ ┬л ┬╗, - .
, ┬л┬╗ () , - ( ) .
6.
.
, - ( - ). , ParentDiapason
, ChildDiapason
- .
, .. 245 300 400. , quantity
, , quantity
(startSeries, endSeries, startNumber, endNumber)
. , :
:
:
, тАУ .
.
Hint: MsSQL Server 2012 - , -, .
7.
- , . , :
, ( тАУ , тАУ )
public class Users { public class Status : StatusBase<Status> { /// <summary> /// ( ) /// </summary> [StringStatus("")] public const int Active = 1; /// <summary> /// ( ) /// </summary> [StringStatus("")] public const int Inactive = 0; } }
StatusBase тАУ , (-),
public class StatusBase<T> where T : class { private static Dictionary<int, string> statusesDictionary; public static string GetStringStatus(int key) { if (statusesDictionary == null) { CreateStatusDictionary(); } string result = statusesDictionary.ContainsKey(key) ? statusesDictionary[key] : " "; return result; } private static void CreateStatusDictionary() { statusesDictionary = new Dictionary<int, string>(); FieldInfo[] fields = typeof(T).GetFields(); foreach (FieldInfo field in fields) { string TextStatus = ((StringStatusAttribute)field.GetCustomAttributes(typeof(StringStatusAttribute), false)[0]). TextStatus; int statusKey = (int)field.GetValue(null); statusesDictionary.Add(statusKey, TextStatus); } } }
, , ,
public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) { string result = Data.Statuses.Users.Status.GetStringStatus((int)value); return result; }
, , , .
. , - .
List, .. Document
Person
. Person
Documents
, . , Person
List.
, , (, , Person
Document
), PersonEx
DocumentEx
, PersonEx
List! , тАУ , . -, , - , .. .
4. , , -
, , . , , - , , тАУ .
, тАУ , - , , ( тАУ ).
- , , .
Hint: date_insert
date_update
, - .
5. ,
, , -, - . , . , ..:
, - . - , , , , . , .. .
тАУ ┬л ┬╗, - .
, ┬л┬╗ () , - ( ) .
6.
.
, - ( - ). , ParentDiapason
, ChildDiapason
- .
, .. 245 300 400. , quantity
, , quantity
(startSeries, endSeries, startNumber, endNumber)
. , :
:
:
, тАУ .
.
Hint: MsSQL Server 2012 - , -, .
7.
- , . , :
, ( тАУ , тАУ )
public class Users { public class Status : StatusBase<Status> { /// <summary> /// ( ) /// </summary> [StringStatus("")] public const int Active = 1; /// <summary> /// ( ) /// </summary> [StringStatus("")] public const int Inactive = 0; } }
StatusBase тАУ , (-),
public class StatusBase<T> where T : class { private static Dictionary<int, string> statusesDictionary; public static string GetStringStatus(int key) { if (statusesDictionary == null) { CreateStatusDictionary(); } string result = statusesDictionary.ContainsKey(key) ? statusesDictionary[key] : " "; return result; } private static void CreateStatusDictionary() { statusesDictionary = new Dictionary<int, string>(); FieldInfo[] fields = typeof(T).GetFields(); foreach (FieldInfo field in fields) { string TextStatus = ((StringStatusAttribute)field.GetCustomAttributes(typeof(StringStatusAttribute), false)[0]). TextStatus; int statusKey = (int)field.GetValue(null); statusesDictionary.Add(statusKey, TextStatus); } } }
, , ,
public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) { string result = Data.Statuses.Users.Status.GetStringStatus((int)value); return result; }
, , , .
. , - .
List, .. Document
Person
. Person
Documents
, . , Person
List.
, , (, , Person
Document
), PersonEx
DocumentEx
, PersonEx
List! , тАУ , . -, , - , .. .
4. , , -
, , . , , - , , тАУ .
, тАУ , - , , ( тАУ ).
- , , .
Hint: date_insert
date_update
, - .
5. ,
, , -, - . , . , ..:
, - . - , , , , . , .. .
тАУ ┬л ┬╗, - .
, ┬л┬╗ () , - ( ) .
6.
.
, - ( - ). , ParentDiapason
, ChildDiapason
- .
, .. 245 300 400. , quantity
, , quantity
(startSeries, endSeries, startNumber, endNumber)
. , :
:
:
, тАУ .
.
Hint: MsSQL Server 2012 - , -, .
7.
- , . , :
, ( тАУ , тАУ )
public class Users { public class Status : StatusBase<Status> { /// <summary> /// ( ) /// </summary> [StringStatus("")] public const int Active = 1; /// <summary> /// ( ) /// </summary> [StringStatus("")] public const int Inactive = 0; } }
StatusBase тАУ , (-),
public class StatusBase<T> where T : class { private static Dictionary<int, string> statusesDictionary; public static string GetStringStatus(int key) { if (statusesDictionary == null) { CreateStatusDictionary(); } string result = statusesDictionary.ContainsKey(key) ? statusesDictionary[key] : " "; return result; } private static void CreateStatusDictionary() { statusesDictionary = new Dictionary<int, string>(); FieldInfo[] fields = typeof(T).GetFields(); foreach (FieldInfo field in fields) { string TextStatus = ((StringStatusAttribute)field.GetCustomAttributes(typeof(StringStatusAttribute), false)[0]). TextStatus; int statusKey = (int)field.GetValue(null); statusesDictionary.Add(statusKey, TextStatus); } } }
, , ,
public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) { string result = Data.Statuses.Users.Status.GetStringStatus((int)value); return result; }
, , , .
. , - .
List, .. Document
Person
. Person
Documents
, . , Person
List.
, , (, , Person
Document
), PersonEx
DocumentEx
, PersonEx
List! , тАУ , . -, , - , .. .
4. , , -
, , . , , - , , тАУ .
, тАУ , - , , ( тАУ ).
- , , .
Hint: date_insert
date_update
, - .
5. ,
, , -, - . , . , ..:
, - . - , , , , . , .. .
тАУ ┬л ┬╗, - .
, ┬л┬╗ () , - ( ) .
6.
.
, - ( - ). , ParentDiapason
, ChildDiapason
- .
, .. 245 300 400. , quantity
, , quantity
(startSeries, endSeries, startNumber, endNumber)
. , :
:
:
, тАУ .
.
Hint: MsSQL Server 2012 - , -, .
7.
- , . , :
, ( тАУ , тАУ )
public class Users { public class Status : StatusBase<Status> { /// <summary> /// ( ) /// </summary> [StringStatus("")] public const int Active = 1; /// <summary> /// ( ) /// </summary> [StringStatus("")] public const int Inactive = 0; } }
StatusBase тАУ , (-),
public class StatusBase<T> where T : class { private static Dictionary<int, string> statusesDictionary; public static string GetStringStatus(int key) { if (statusesDictionary == null) { CreateStatusDictionary(); } string result = statusesDictionary.ContainsKey(key) ? statusesDictionary[key] : " "; return result; } private static void CreateStatusDictionary() { statusesDictionary = new Dictionary<int, string>(); FieldInfo[] fields = typeof(T).GetFields(); foreach (FieldInfo field in fields) { string TextStatus = ((StringStatusAttribute)field.GetCustomAttributes(typeof(StringStatusAttribute), false)[0]). TextStatus; int statusKey = (int)field.GetValue(null); statusesDictionary.Add(statusKey, TextStatus); } } }
, , ,
public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) { string result = Data.Statuses.Users.Status.GetStringStatus((int)value); return result; }
, , , .
. , - .
List, .. Document
Person
. Person
Documents
, . , Person
List.
, , (, , Person
Document
), PersonEx
DocumentEx
, PersonEx
List! , тАУ , . -, , - , .. .
4. , , -
, , . , , - , , тАУ .
, тАУ , - , , ( тАУ ).
- , , .
Hint: date_insert
date_update
, - .
5. ,
, , -, - . , . , ..:
, - . - , , , , . , .. .
тАУ ┬л ┬╗, - .
, ┬л┬╗ () , - ( ) .
6.
.
, - ( - ). , ParentDiapason
, ChildDiapason
- .
, .. 245 300 400. , quantity
, , quantity
(startSeries, endSeries, startNumber, endNumber)
. , :
:
:
, тАУ .
.
Hint: MsSQL Server 2012 - , -, .
7.
- , . , :
, ( тАУ , тАУ )
public class Users { public class Status : StatusBase<Status> { /// <summary> /// ( ) /// </summary> [StringStatus("")] public const int Active = 1; /// <summary> /// ( ) /// </summary> [StringStatus("")] public const int Inactive = 0; } }
StatusBase тАУ , (-),
public class StatusBase<T> where T : class { private static Dictionary<int, string> statusesDictionary; public static string GetStringStatus(int key) { if (statusesDictionary == null) { CreateStatusDictionary(); } string result = statusesDictionary.ContainsKey(key) ? statusesDictionary[key] : " "; return result; } private static void CreateStatusDictionary() { statusesDictionary = new Dictionary<int, string>(); FieldInfo[] fields = typeof(T).GetFields(); foreach (FieldInfo field in fields) { string TextStatus = ((StringStatusAttribute)field.GetCustomAttributes(typeof(StringStatusAttribute), false)[0]). TextStatus; int statusKey = (int)field.GetValue(null); statusesDictionary.Add(statusKey, TextStatus); } } }
, , ,
public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) { string result = Data.Statuses.Users.Status.GetStringStatus((int)value); return result; }
, , , .
. , - .
List, .. Document
Person
. Person
Documents
, . , Person
List.
, , (, , Person
Document
), PersonEx
DocumentEx
, PersonEx
List! , тАУ , . -, , - , .. .
4. , , -
, , . , , - , , тАУ .
, тАУ , - , , ( тАУ ).
- , , .
Hint: date_insert
date_update
, - .
5. ,
, , -, - . , . , ..:
, - . - , , , , . , .. .
тАУ ┬л ┬╗, - .
, ┬л┬╗ () , - ( ) .
6.
.
, - ( - ). , ParentDiapason
, ChildDiapason
- .
, .. 245 300 400. , quantity
, , quantity
(startSeries, endSeries, startNumber, endNumber)
. , :
:
:
, тАУ .
.
Hint: MsSQL Server 2012 - , -, .
7.
- , . , :
, ( тАУ , тАУ )
public class Users { public class Status : StatusBase<Status> { /// <summary> /// ( ) /// </summary> [StringStatus("")] public const int Active = 1; /// <summary> /// ( ) /// </summary> [StringStatus("")] public const int Inactive = 0; } }
StatusBase тАУ , (-),
public class StatusBase<T> where T : class { private static Dictionary<int, string> statusesDictionary; public static string GetStringStatus(int key) { if (statusesDictionary == null) { CreateStatusDictionary(); } string result = statusesDictionary.ContainsKey(key) ? statusesDictionary[key] : " "; return result; } private static void CreateStatusDictionary() { statusesDictionary = new Dictionary<int, string>(); FieldInfo[] fields = typeof(T).GetFields(); foreach (FieldInfo field in fields) { string TextStatus = ((StringStatusAttribute)field.GetCustomAttributes(typeof(StringStatusAttribute), false)[0]). TextStatus; int statusKey = (int)field.GetValue(null); statusesDictionary.Add(statusKey, TextStatus); } } }
, , ,
public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) { string result = Data.Statuses.Users.Status.GetStringStatus((int)value); return result; }
, , , .
. , - .