Grid Column Format
This commit is contained in:
parent
b436f53480
commit
d0bfbbd811
5 changed files with 12 additions and 9 deletions
|
|
@ -154,8 +154,8 @@
|
|||
{
|
||||
"resourceName": "Platform",
|
||||
"key": "App.SupplyChain",
|
||||
"en": "Supply",
|
||||
"tr": "Tedarik"
|
||||
"en": "Supply Chain",
|
||||
"tr": "Satın Alma"
|
||||
},
|
||||
{
|
||||
"resourceName": "Platform",
|
||||
|
|
@ -5824,7 +5824,7 @@
|
|||
{
|
||||
"resourceName": "Platform",
|
||||
"key": "App.Orders",
|
||||
"tr": "Satınalma",
|
||||
"tr": "Satın Alma",
|
||||
"en": "Buy"
|
||||
},
|
||||
{
|
||||
|
|
@ -9280,7 +9280,7 @@
|
|||
{
|
||||
"resourceName": "Platform",
|
||||
"key": "App.SupplyChain.PurchaseOrder",
|
||||
"tr": "Satınalma Siparişleri",
|
||||
"tr": "Satın Alma Siparişleri",
|
||||
"en": "Purchase Orders"
|
||||
},
|
||||
{
|
||||
|
|
|
|||
|
|
@ -2773,7 +2773,7 @@ public class ListFormSeeder_Crm : IDataSeedContributor, ITransientDependency
|
|||
new EditingFormItemDto { Order = 1, DataField="MaterialId", ColSpan = 1, IsRequired = true, EditorType2 = EditorTypes.dxSelectBox, EditorScript = EditorScriptValues.MaterialOnChange },
|
||||
new EditingFormItemDto { Order = 2, DataField="Quantity", ColSpan = 1, EditorType2 = EditorTypes.dxNumberBox, EditorOptions = EditorOptionValues.NumberStandartFormat(), EditorScript = EditorScriptValues.CalcTotalAmount },
|
||||
new EditingFormItemDto { Order = 3, DataField="UnitPrice", ColSpan = 1, EditorType2 = EditorTypes.dxNumberBox, EditorOptions = EditorOptionValues.NumberStandartFormat(), EditorScript = EditorScriptValues.CalcTotalAmount },
|
||||
new EditingFormItemDto { Order = 4, DataField="TotalAmount", ColSpan = 1, EditorType2 = EditorTypes.dxNumberBox, EditorOptions = "{ \"format\": { \"type\": \"fixedPoint\", \"precision\": 2 }, \"useMaskBehavior\": true, \"showSpinButtons\": false, \"disabled\" : true }" },
|
||||
new EditingFormItemDto { Order = 4, DataField="TotalAmount", ColSpan = 1, EditorType2 = EditorTypes.dxNumberBox, EditorOptions = "{ \"format\": { \"type\": \"fixedPoint\", \"precision\": 1 }, \"useMaskBehavior\": true, \"showSpinButtons\": true, \"disabled\" : true }" },
|
||||
new EditingFormItemDto { Order = 5, DataField="UomId", ColSpan = 1, EditorType2 = EditorTypes.dxSelectBox },
|
||||
new EditingFormItemDto { Order = 6, DataField="DiscountRate", ColSpan = 1, EditorType2 = EditorTypes.dxNumberBox, EditorOptions = EditorOptionValues.NumberStandartFormat() },
|
||||
new EditingFormItemDto { Order = 7, DataField="DiscountAmount", ColSpan = 1, EditorType2 = EditorTypes.dxNumberBox, EditorOptions = EditorOptionValues.NumberStandartFormat() },
|
||||
|
|
|
|||
|
|
@ -21,8 +21,8 @@ public static class PlatformConsts
|
|||
public static string HtmlEditorOptions = "{ \"mediaResizing\": { \"enabled\": true }, \"imageUpload\": { \"tabs\": [\"file\", \"url\"], \"fileUploadMode\": \"base64\" }, \"toolbar\": { \"multiline\": true, \"items\": [ { \"name\": \"undo\" }, { \"name\": \"redo\" }, { \"name\": \"separator\" }, { \"name\": \"size\", \"acceptedValues\": [\"8pt\", \"10pt\", \"12pt\", \"14pt\", \"18pt\", \"24pt\", \"36pt\"], \"options\": { \"inputAttr\": { \"aria-label\": \"Font size\" } } }, { \"name\": \"font\", \"acceptedValues\": [\"Arial\", \"Courier New\", \"Georgia\", \"Impact\", \"Lucida Console\", \"Tahoma\", \"Times New Roman\", \"Verdana\"], \"options\": { \"inputAttr\": { \"aria-label\": \"Font family\" } } }, { \"name\": \"separator\" }, { \"name\": \"bold\" }, { \"name\": \"italic\" }, { \"name\": \"strike\" }, { \"name\": \"underline\" }, { \"name\": \"separator\" }, { \"name\": \"alignLeft\" }, { \"name\": \"alignCenter\" }, { \"name\": \"alignRight\" }, { \"name\": \"alignJustify\" }, { \"name\": \"separator\" }, { \"name\": \"orderedList\" }, { \"name\": \"bulletList\" }, { \"name\": \"separator\" }, { \"name\": \"header\", \"acceptedValues\": [false, 1, 2, 3, 4, 5] }, { \"name\": \"separator\" }, { \"name\": \"color\" }, { \"name\": \"background\" }, { \"name\": \"separator\" }, { \"name\": \"link\" }, { \"name\": \"image\" }, { \"name\": \"separator\" }, { \"name\": \"clear\" }, { \"name\": \"codeBlock\" }, { \"name\": \"blockquote\" }, { \"name\": \"separator\" }, { \"name\": \"insertTable\" }, { \"name\": \"deleteTable\" }, { \"name\": \"insertRowAbove\" }, { \"name\": \"insertRowBelow\" }, { \"name\": \"deleteRow\" }, { \"name\": \"insertColumnLeft\" }, { \"name\": \"insertColumnRight\" }, { \"name\": \"deleteColumn\" }, { \"name\": \"cellProperties\" }, { \"name\": \"tableProperties\" } ] } }";
|
||||
public static string PhoneEditorOptions = "{\"format\": \"phoneGlobal\", \"mask\":\"(000) 000-0000\", \"maskInvalidMessage\":\"Lütfen geçerli bir telefon numarası girin\", \"useMaskedValue\":false, \"maskRules\": { \"X\": \"[0-9]\" }, \"placeholder\": \"(555) 123-4567\" }";
|
||||
public static string TimeSpanOptions = "{\"type\":\"time\",\"pickerType\":\"list\",\"displayFormat\":\"HH:mm\",\"dateSerializationFormat\":\"yyyy-MM-ddTHH:mm:ss\",\"interval\":5,\"width\":\"100%\"}";
|
||||
public static string NumberStandartFormat(int precision = 2) => "{ \"format\": { \"type\": \"fixedPoint\", \"precision\": " + precision + " }, \"useMaskBehavior\": true, \"showSpinButtons\": false }";
|
||||
public static string NumberPercentFormat = "{ \"format\": \"#0.##'%'\", \"useMaskBehavior\": true, \"showSpinButtons\": false }";
|
||||
public static string NumberStandartFormat(int precision = 2) => "{ \"format\": { \"type\": \"fixedPoint\", \"precision\": " + precision + " }, \"useMaskBehavior\": true, \"showSpinButtons\": true }";
|
||||
public static string NumberPercentFormat = "{ \"format\": \"#0.##'%'\", \"useMaskBehavior\": true, \"showSpinButtons\": true }";
|
||||
public static string DateFormat = "{ \"format\": \"dd/MM/yyyy\", \"displayFormat\" : \"dd/MM/yyyy\" }";
|
||||
public static string DateTimeFormat = "{ \"format\": \"dd/MM/yyyy HH:mm\", \"displayFormat\" : \"dd/MM/yyyy HH:mm\" }";
|
||||
public static string SliderOptions = "{\"tooltip\": { \"enabled\": true }}";
|
||||
|
|
|
|||
|
|
@ -214,9 +214,9 @@ const DropdownItem = forwardRef<HTMLElement, DropdownItemProps>(
|
|||
>
|
||||
<span>{children}</span>
|
||||
{direction === 'rtl' ? (
|
||||
<FaChevronLeft />
|
||||
<FaChevronLeft size={8} />
|
||||
) : (
|
||||
<FaChevronRight />
|
||||
<FaChevronRight size={8} />
|
||||
)}
|
||||
</MenuItem>
|
||||
{renderSubmenu()}
|
||||
|
|
|
|||
|
|
@ -431,8 +431,11 @@ const useListFormColumns = ({
|
|||
|
||||
column.editorOptions = { ...editorOptions }
|
||||
|
||||
// Format bilgisini öncelik sırasına göre ata
|
||||
if (column.editorOptions.displayFormat) {
|
||||
column.format = column.editorOptions.displayFormat
|
||||
} else if (column.editorOptions.format) {
|
||||
column.format = column.editorOptions.format
|
||||
}
|
||||
|
||||
// columnCustomizationDto
|
||||
|
|
|
|||
Loading…
Reference in a new issue