Format Specifier
|
Description
|
Sample Format String
|
Sample Output
|
c or C
|
The number is converted to a string that
represents a currency amount. The precision specifier indicates the desired
number of decimal places. If the precision specifier is omitted, the default
currency precision from the current regional options is used.
|
c2
|
$1,234.00
|
e or E
|
The number is converted to a string of
the form "-d.ddd...E+ddd" or "-d.ddd...e+ddd", where each
'd' indicates a digit (0-9). The string starts with a minus sign if the
number is negative. One digit always precedes the decimal point. The
precision specifier indicates the desired number of digits after the decimal
point. If the precision specifier is omitted, a default of six digits after
the decimal point is used. The case of the format specifier indicates whether
to prefix the exponent with an 'E' or an 'e'. The exponent always consists of
a plus or minus sign and a minimum of three digits. The exponent is padded
with zeros to meet this minimum if required.
|
E1
|
1.2E+003
|
n or N
|
The number is converted to a string of
the form "-d,ddd,ddd.ddd...", where each 'd' indicates a digit
(0-9). The string starts with a minus sign if the number is negative. Thousand
separators are inserted between each group of three digits to the left of the
decimal point. The precision specifier indicates the desired number of
decimal places. If the precision specifier is omitted, the default currency
precision from the current regional options is used.
|
n0
|
1,234
|
x or X
|
The number is converted to a string of
hexadecimal digits. The case of the format specifier indicates whether
uppercase or lowercase characters are used for hexadecimal digits greater
than 9. The precision specifier indicates the minimum number of digits in the
resulting string. If required, the number is padded with zeros to its left to
produce the number of digits given by the precision specifier. This format is
supported for integral types only.
|
X8
|
000004D2
|
Devexpress'te Sayı, Tarih, Alfanümerik format tabloları
C Sharp, Formdaki tüm Texbox'ların içeriğini silmek
Formdaki tüm Texbox'ların içeriğini silmek için aşağıdaki metodu kullanabilirsiniz. this.Controls[t].GetType().Name karşılığına "TextBox" dışında ComboBox, CheckBox gibi diğer arayüz öğelerini de ekleyebilirsiniz.
public void TextBoxSil()
Logo Tiger, Yeni Yıl numaralama şablonlarını kopyalama sorgusu
Logo Tiger veya Unity'de yeni yıl şablonları L_LDOCNUM tablosunda tutulur. Kayıt numaralarını yıl bazında tutuyorsanız her bir fiş türü için yeni bir şablon üretmeniz gerekmektedir. Aşağıdaki örnekte 2012'de kullanılan fiş şablonları 2013 için yeniden üretiliyor.
INSERT INTO L_LDOCNUM (
Logo Bordro Plus Personel Listesi SQL scripti
Bordro Plus üzerinde aktif ve pasif durumdaki personellere ait bilgilerin listesini aşağıdaki sorguyu kullanarak alabilirsiniz.
SELECT
CASE WHEN LGMAIN.TYP = 1 THEN 'AKTİF ÇALIŞAN' ELSE 'PASİF' END AS PERSONELDURUMU ,
LGMAIN.LREF,
LGMAIN.CODE As SicilNo,
LGMAIN.NAME as Adi,
LGMAIN.SURNAME as Soyadi,
LGMAIN.GROUPINDATE as GrubaGirisTarihi,
LGMAIN.INDATE as IseGirisTarihi,
LGMAIN.FIRMNR as KurumNo,
LGMAIN.UNITNR as BirimNo,
L_CAPIUNIT.NAME AS BirimAdi,
ASSG.TITLE as Gorevi,
LGMAIN.PREFIX AS AkademikUnvani,
CASE LAW.SSKSTATUS
WHEN 1 THEN '4/a Normal'
WHEN 2 THEN '4/a Emekli'
WHEN 3 THEN '4/a Çırak'
WHEN 4 THEN '4/a Stajyer'
WHEN 5 THEN '4/a Yabancı'
WHEN 6 THEN '4/b Bağ-kur(çalışan)'
WHEN 7 THEN '4/b Bağ-kur(emekli)'
WHEN 8 THEN 'Diğer'
else 'Tanımsız'
end as SosyalGuvenlikStatusu,
ASSG.WAGE_WAGE as Ucreti,
Case ASSG.WAGE_CLCTYPE
WHEN 1 THEN 'Net'
WHEN 2 THEN 'Brüt'
ELSE 'Tanımsız'
END AS HesaplamaSekli,
'' as SozlesmeSekli,
INF.DADDY as BabaAdi,
INF.BIRTHPLACE AS DogumYeri,
INF.BIRTHDATE as DogumTarihi,
CASE INF.STATUS
WHEN 1 THEN 'Evli'
WHEN 2 THEN 'Bekar'
else 'Tanımsız'
end as MedeniHali,
CASE LGMAIN.SEX
WHEN 1 THEN 'Erkek'
WHEN 2 THEN 'Kadın'
ELSE 'Tanımsız'
END AS Cinsiyeti,
CASE LGMAIN.EDUCATION
WHEN 1 THEN 'İlkokul' WHEN 2 THEN 'Ortaokul' WHEN 3 THEN 'Lise' WHEN 4 THEN 'Yüksek' WHEN 5 THEN 'Yüksek Lisans' WHEN 6 THEN 'Doktora' ELSE 'Tanımsız'
END AS OgretimDurumu,
FINI.IbanNo as IbanNo,
ISNULL (ADRES.EXP1,' ') + ISNULL (ADRES.EXP2,' ') AS Adres,
ISNULL (GSMNO.EXP1,' ') + ISNULL (GSMNO.EXP2,' ') AS CepNo,
LGMAIN.OUTDATE as CikisTarihi,
LGMAIN.SPECODE as OzelKod,
INF.IDTCNO as TcKimlikNo,
'1' AS CalismaAlani
FROM
LH_001_PERSON LGMAIN WITH(NOLOCK)
LEFT OUTER JOIN LH_001_ASSIGN ASSG WITH(NOLOCK) ON (LGMAIN.LREF = ASSG.PERREF) AND (ASSG.ENDDATE IS NULL)
LEFT OUTER JOIN LH_001_PERFIN FINI WITH(NOLOCK) ON (LGMAIN.LREF = FINI.PERREF)
LEFT OUTER JOIN LH_001_FAMILY FAM ON LGMAIN.LREF = FAM.PERREF AND RELATION = 0
LEFT OUTER JOIN LH_001_PERIDINF INF ON INF.LREF = FAM.IDREF
LEFT OUTER JOIN LH_001_LAWCHG LAW ON (LGMAIN.LREF = LAW.PERREF)
LEFT OUTER JOIN LH_001_CONTACT ADRES (nolock) ON INF.[LREF] = ADRES.CARDREF AND ADRES.TYP = 1
LEFT OUTER JOIN LH_001_CONTACT GSMNO (nolock) ON INF.[LREF] = GSMNO.CARDREF AND GSMNO.TYP = 3
LEFT OUTER JOIN [dbo].L_CAPIUNIT (nolock) on L_CAPIUNIT.FIRMNR = 2 AND LGMAIN.UNITNR = L_CAPIUNIT.NR
Sonuç :
SELECT
CASE WHEN LGMAIN.TYP = 1 THEN 'AKTİF ÇALIŞAN' ELSE 'PASİF' END AS PERSONELDURUMU ,
LGMAIN.LREF,
LGMAIN.CODE As SicilNo,
LGMAIN.NAME as Adi,
LGMAIN.SURNAME as Soyadi,
LGMAIN.GROUPINDATE as GrubaGirisTarihi,
LGMAIN.INDATE as IseGirisTarihi,
LGMAIN.FIRMNR as KurumNo,
LGMAIN.UNITNR as BirimNo,
L_CAPIUNIT.NAME AS BirimAdi,
ASSG.TITLE as Gorevi,
LGMAIN.PREFIX AS AkademikUnvani,
CASE LAW.SSKSTATUS
WHEN 1 THEN '4/a Normal'
WHEN 2 THEN '4/a Emekli'
WHEN 3 THEN '4/a Çırak'
WHEN 4 THEN '4/a Stajyer'
WHEN 5 THEN '4/a Yabancı'
WHEN 6 THEN '4/b Bağ-kur(çalışan)'
WHEN 7 THEN '4/b Bağ-kur(emekli)'
WHEN 8 THEN 'Diğer'
else 'Tanımsız'
end as SosyalGuvenlikStatusu,
ASSG.WAGE_WAGE as Ucreti,
Case ASSG.WAGE_CLCTYPE
WHEN 1 THEN 'Net'
WHEN 2 THEN 'Brüt'
ELSE 'Tanımsız'
END AS HesaplamaSekli,
'' as SozlesmeSekli,
INF.DADDY as BabaAdi,
INF.BIRTHPLACE AS DogumYeri,
INF.BIRTHDATE as DogumTarihi,
CASE INF.STATUS
WHEN 1 THEN 'Evli'
WHEN 2 THEN 'Bekar'
else 'Tanımsız'
end as MedeniHali,
CASE LGMAIN.SEX
WHEN 1 THEN 'Erkek'
WHEN 2 THEN 'Kadın'
ELSE 'Tanımsız'
END AS Cinsiyeti,
CASE LGMAIN.EDUCATION
WHEN 1 THEN 'İlkokul' WHEN 2 THEN 'Ortaokul' WHEN 3 THEN 'Lise' WHEN 4 THEN 'Yüksek' WHEN 5 THEN 'Yüksek Lisans' WHEN 6 THEN 'Doktora' ELSE 'Tanımsız'
END AS OgretimDurumu,
FINI.IbanNo as IbanNo,
ISNULL (ADRES.EXP1,' ') + ISNULL (ADRES.EXP2,' ') AS Adres,
ISNULL (GSMNO.EXP1,' ') + ISNULL (GSMNO.EXP2,' ') AS CepNo,
LGMAIN.OUTDATE as CikisTarihi,
LGMAIN.SPECODE as OzelKod,
INF.IDTCNO as TcKimlikNo,
'1' AS CalismaAlani
FROM
LH_001_PERSON LGMAIN WITH(NOLOCK)
LEFT OUTER JOIN LH_001_ASSIGN ASSG WITH(NOLOCK) ON (LGMAIN.LREF = ASSG.PERREF) AND (ASSG.ENDDATE IS NULL)
LEFT OUTER JOIN LH_001_PERFIN FINI WITH(NOLOCK) ON (LGMAIN.LREF = FINI.PERREF)
LEFT OUTER JOIN LH_001_FAMILY FAM ON LGMAIN.LREF = FAM.PERREF AND RELATION = 0
LEFT OUTER JOIN LH_001_PERIDINF INF ON INF.LREF = FAM.IDREF
LEFT OUTER JOIN LH_001_LAWCHG LAW ON (LGMAIN.LREF = LAW.PERREF)
LEFT OUTER JOIN LH_001_CONTACT ADRES (nolock) ON INF.[LREF] = ADRES.CARDREF AND ADRES.TYP = 1
LEFT OUTER JOIN LH_001_CONTACT GSMNO (nolock) ON INF.[LREF] = GSMNO.CARDREF AND GSMNO.TYP = 3
LEFT OUTER JOIN [dbo].L_CAPIUNIT (nolock) on L_CAPIUNIT.FIRMNR = 2 AND LGMAIN.UNITNR = L_CAPIUNIT.NR
Sonuç :
Kaydol:
Yorumlar (Atom)
BlackListIP control on Serenity platform (.NET Core)
In the Serenity platform, if you want to block IPs that belong to people you do not want to come from outside in the .net core web project,...
-
Logo Tiger programında kullanılan veritabanı tabloları aşağıdadır. 1. XXX olarak üç digit ile gösterilen bölüm firma numarasını belirtir....
-
Devexpress AspxGridView kolonlarında filtre türünü değiştirmek için grid üzerindeki ilgili kolonda Settings--> AutoFilterCondition = defa...
-
TABLO ADI AÇIKLAMA L_PERSONEL Çalışma Alanı Tanımları L_SYSLOG Kullanıcı Kaydı İzleme L_L...
