Commit 9ddf6614 by Mac Stephens

items buttons disabled, close removed, ini updated with correct refresh token

parent facf79ff
...@@ -186,8 +186,6 @@ object fViewAddItem: TfViewAddItem ...@@ -186,8 +186,6 @@ object fViewAddItem: TfViewAddItem
ScrollMode = scmItemScrolling ScrollMode = scmItemScrolling
DesignTimeSampleData = True DesignTimeSampleData = True
OnCellClick = TMSFNCGrid1CellClick OnCellClick = TMSFNCGrid1CellClick
ExplicitLeft = -125
ExplicitWidth = 765
end end
object btnCancel: TWebButton object btnCancel: TWebButton
Left = 544 Left = 544
......
...@@ -10,7 +10,7 @@ uses ...@@ -10,7 +10,7 @@ uses
Data.DB, XData.Web.JsonDataset, XData.Web.Dataset, WEBLib.DB, VCL.TMSFNCTypes, VCL.TMSFNCUtils, Data.DB, XData.Web.JsonDataset, XData.Web.Dataset, WEBLib.DB, VCL.TMSFNCTypes, VCL.TMSFNCUtils,
VCL.TMSFNCGraphics, VCL.TMSFNCGraphicsTypes, VCL.TMSFNCGridCell, VCL.TMSFNCGraphics, VCL.TMSFNCGraphicsTypes, VCL.TMSFNCGridCell,
VCL.TMSFNCGridOptions, VCL.TMSFNCCustomControl, VCL.TMSFNCCustomScrollControl, VCL.TMSFNCGridOptions, VCL.TMSFNCCustomControl, VCL.TMSFNCCustomScrollControl,
VCL.TMSFNCGridData, VCL.TMSFNCCustomGrid, VCL.TMSFNCGrid; VCL.TMSFNCGridData, VCL.TMSFNCCustomGrid, VCL.TMSFNCGrid, Utils;
type type
TfViewAddItem = class(TWebForm) TfViewAddItem = class(TWebForm)
...@@ -132,6 +132,7 @@ begin ...@@ -132,6 +132,7 @@ begin
finally finally
TMSFNCGrid1.EndUpdate; TMSFNCGrid1.EndUpdate;
end; end;
Utils.HideSpinner('spinner');
end; end;
procedure TfViewAddItem.TMSFNCGrid1CellClick(Sender: TObject; ACol, procedure TfViewAddItem.TMSFNCGrid1CellClick(Sender: TObject; ACol,
......
...@@ -50,6 +50,7 @@ object FViewItems: TFViewItems ...@@ -50,6 +50,7 @@ object FViewItems: TFViewItems
ChildOrder = 7 ChildOrder = 7
ElementID = 'btnadd' ElementID = 'btnadd'
ElementFont = efCSS ElementFont = efCSS
Enabled = False
HeightStyle = ssAuto HeightStyle = ssAuto
HeightPercent = 100.000000000000000000 HeightPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000 WidthPercent = 100.000000000000000000
...@@ -151,6 +152,7 @@ object FViewItems: TFViewItems ...@@ -151,6 +152,7 @@ object FViewItems: TFViewItems
ElementID = 'btnconfirm' ElementID = 'btnconfirm'
ElementFont = efCSS ElementFont = efCSS
ElementPosition = epRelative ElementPosition = epRelative
Enabled = False
HeightStyle = ssAuto HeightStyle = ssAuto
HeightPercent = 100.000000000000000000 HeightPercent = 100.000000000000000000
Role = 'null' Role = 'null'
...@@ -167,6 +169,7 @@ object FViewItems: TFViewItems ...@@ -167,6 +169,7 @@ object FViewItems: TFViewItems
ElementID = 'btncancel' ElementID = 'btncancel'
ElementFont = efCSS ElementFont = efCSS
ElementPosition = epRelative ElementPosition = epRelative
Enabled = False
HeightStyle = ssAuto HeightStyle = ssAuto
HeightPercent = 100.000000000000000000 HeightPercent = 100.000000000000000000
Role = 'null' Role = 'null'
...@@ -182,6 +185,7 @@ object FViewItems: TFViewItems ...@@ -182,6 +185,7 @@ object FViewItems: TFViewItems
ChildOrder = 79 ChildOrder = 79
ElementID = 'btndelete' ElementID = 'btndelete'
ElementFont = efCSS ElementFont = efCSS
Enabled = False
HeightStyle = ssAuto HeightStyle = ssAuto
HeightPercent = 100.000000000000000000 HeightPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000 WidthPercent = 100.000000000000000000
...@@ -196,6 +200,7 @@ object FViewItems: TFViewItems ...@@ -196,6 +200,7 @@ object FViewItems: TFViewItems
ChildOrder = 83 ChildOrder = 83
ElementID = 'btnedit' ElementID = 'btnedit'
ElementFont = efCSS ElementFont = efCSS
Enabled = False
HeightStyle = ssAuto HeightStyle = ssAuto
HeightPercent = 100.000000000000000000 HeightPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000 WidthPercent = 100.000000000000000000
......
...@@ -21,9 +21,6 @@ ...@@ -21,9 +21,6 @@
<li class="nav-item pe-2"> <li class="nav-item pe-2">
<button id="btncancel" class="btn btn-danger btn-sm">Cancel</button> <button id="btncancel" class="btn btn-danger btn-sm">Cancel</button>
</li> </li>
<li class="nav-item">
<button id="btnclose" class="btn btn-primary btn-sm">Close</button>
</li>
</ul> </ul>
</div> </div>
</nav> </nav>
......
...@@ -143,7 +143,7 @@ begin ...@@ -143,7 +143,7 @@ begin
Rows := TBody.children; Rows := TBody.children;
for I := 0 to Rows.length - 1 do for I := 0 to Rows.length - 1 do
begin begin
RowElem := TJSHTMLElement(Rows.item(I)); // ? cast Node ? HTMLElement RowElem := TJSHTMLElement(Rows.item(I)); // cast Node HTMLElement
RowElem.classList.remove('table-primary'); RowElem.classList.remove('table-primary');
end; end;
...@@ -408,14 +408,6 @@ var ...@@ -408,14 +408,6 @@ var
itemOptions: string; itemOptions: string;
newform: TFViewAddItem; newform: TFViewAddItem;
begin begin
{PageNumber := 1;
PageSize := StrToInt(wcbPageSize.Text);
itemOptions := '&name=' + edtName.Text +
'&description=' + edtDescription.Text +
'&status=' + BoolToStr(cbStatus.Checked);
console.log('GetItems');
AddItem(itemOptions); }
newform := TFViewAddItem.CreateNew; newform := TFViewAddItem.CreateNew;
newform.Caption := 'Select Customer and Order Type'; newform.Caption := 'Select Customer and Order Type';
...@@ -428,7 +420,7 @@ begin ...@@ -428,7 +420,7 @@ begin
newform.ShowModal( newform.ShowModal(
procedure(AValue: TModalResult) procedure(AValue: TModalResult)
begin begin
getItems(generateSearchOptions());
end end
); );
end; end;
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
MemoLogLevel=3 MemoLogLevel=3
FileLogLevel=5 FileLogLevel=5
webClientVersion=0.9.4 webClientVersion=0.9.4
LogFileNum=721 LogFileNum=722
[Database] [Database]
--Server=192.168.159.131 --Server=192.168.159.131
...@@ -17,6 +17,7 @@ Password=emsys01 ...@@ -17,6 +17,7 @@ Password=emsys01
CompanyID=9341454272655710 CompanyID=9341454272655710
ClientID=ABgO14uvjh8XqLud7spQ8lkb98AUpcdA7HbyMJfCAtl65sQ5yy ClientID=ABgO14uvjh8XqLud7spQ8lkb98AUpcdA7HbyMJfCAtl65sQ5yy
ClientSecret=bQ06TRemHeAGFzVHRaTUvUoBU9jpU9itK6MOMgqN ClientSecret=bQ06TRemHeAGFzVHRaTUvUoBU9jpU9itK6MOMgqN
RefreshToken=RT1-60-H0-1758811104981v5rmhboxz6ul6wqho --RefreshToken=RT1-60-H0-1758811104981v5rmhboxz6ul6wqho
AccessToken=eyJhbGciOiJkaXIiLCJlbmMiOiJBMTI4Q0JDLUhTMjU2IiwieC5vcmciOiJIMCJ9..hI-QSxEZMoG2Qi45pLU5OA.ywVfm3qU2BZG9FxKwt53lhdw_kKqWffGCx94ZnQTEKllmirgRjz4s-Ws6xWCeqXFEls_3Sd88hqn-XPIimc2R7xsVfrN4DODE65-dEgE1XnoyGldakGFrtY3zRRFt0A_9ZcHhEDKvEvI2ZAGfwS0yLZjz1TQxmzYtMK4TDopQf_jXHRills8oLfj5wK9S0rVEFOZTk3jJ43AYOBPWd2JyRSQlvn-PrsEZiqdbUH6PAEveGTfob9geAMScSJXQFzikUNwJlJPNjgBCOpROZU1Jy-QQF1Y3lw5wRJYakCILC3X85jORuCkXv4-ujrWLStUPt2bDGokwXW2ulg3yuhurlnhVsc5VAQDtANdWcMBWEFsm86iTjEe6UZajlN3EPrR8Ekp3qBz4YrGnAvUcJuKd89zYSQZroTTyBINHQcNJEtBRo_ZQCjLRi8go5IbC9puG52tA7DayT6AqBv2Bz8c0zX22Avx_lM82aAHrM5oOgNoTAn6wrXv10xbrUfdTBcb8zwLpegquTO78P48SPNHk1fO1ZNtB_4DDno6IvfYBBn42HfjV6HbUOjIi5HQz_Yov3UgVKIxQoZg5qfjHO1P-exWh194MjCp_qZpVjG1lZUHRDLs8ZMPTZTbqRSk9C2k.nuB0qgHOuT70EE0d3Cs6rA RefreshToken=RT1-7-H0-1758919884sgbdvdaawcewm26l9f9k
LastRefresh=6/17/2025 10:30:26 AM AccessToken=eyJhbGciOiJkaXIiLCJlbmMiOiJBMTI4Q0JDLUhTMjU2IiwieC5vcmciOiJIMCJ9..Q1yKDxuYmNYv1PNqLpzz8w.hfXO29ZyxrCqr-pQ0UIcY8a_La4lXl5J_epGEtBrAowc4OGuScGt3hFDDrRrhqzuvSa4pyLfbxNj_lJ_fBrdy7gSdD9Wx_gN6w4klZOVOV1IGRxvW5Z2sUFIk1IENZMCiv3nUXGY0pCBBtfjsL_O-2-wL6gJ61hY29smmcaIsCVVOt1T1Gd3pHTlDcvcW9wYV2iSbZ_rxd14qhMDj06G0fnVMNvIp-tjuBICdRSRvM2anF6QdUpHGgIjNzJEeNWNnfXqfJFkNqMqf6tMdjXHf1lNwYQl28_0YP3V4nixwYdQomILqdA-hxj6Jz9R8J_1WpY3JSDUi4ER9zsSdGr5l6RHj2ELB6m7eBb_7yBbGZ7eM6xkXchsyFv8dETFTT1mmimP6gVgfpJfMajSds5eUTTTHKiMUH4iGpmnoxPGo_2N0w6XmevTCiyyzAbP9PaR37IKwdPRtz0-4SrSFeWTUfA_M3NXRg1T0YdHa9JBXJvXCOZWxP18akgxhEgXb35YLIIQqXGk_wJ6DRWIsOKi8NCNBz5Xi2Dn7ODI6dYmrqLwMut0yVdllPpFd1ZvhC1FRNin-GzNyLqFE2KzbfZVHjD98EgxtNvTilQx5wThRIIRRd68pyfikoJPflVDcOaT.70MhUoq7L8jsbIJynOCpYQ
LastRefresh=6/18/2025 10:13:24 AM
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment