@qubesense/customer-farm 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/lib/customer-farm.component.mjs +40 -56
- package/fesm2015/qubesense-customer-farm.mjs +41 -55
- package/fesm2015/qubesense-customer-farm.mjs.map +1 -1
- package/fesm2020/qubesense-customer-farm.mjs +39 -55
- package/fesm2020/qubesense-customer-farm.mjs.map +1 -1
- package/lib/customer-farm.component.d.ts +12 -6
- package/package.json +1 -1
|
@@ -20,9 +20,6 @@ export class CustomerFarmComponent {
|
|
|
20
20
|
}
|
|
21
21
|
ngOnInit() {
|
|
22
22
|
this.DeclareForm();
|
|
23
|
-
if (this.customerFarmConfiguration.customerData != null) {
|
|
24
|
-
this.EditData();
|
|
25
|
-
}
|
|
26
23
|
}
|
|
27
24
|
DeclareForm() {
|
|
28
25
|
this.customerFarmForm = this.formBuilder.group({
|
|
@@ -57,21 +54,22 @@ export class CustomerFarmComponent {
|
|
|
57
54
|
*
|
|
58
55
|
* edit data list item using data item GUID
|
|
59
56
|
*
|
|
60
|
-
* @param
|
|
57
|
+
* @param customerId
|
|
61
58
|
*
|
|
62
59
|
* gets customer GUID from gridData and passes it to this function
|
|
63
60
|
*/
|
|
64
|
-
async EditData() {
|
|
61
|
+
async EditData(customerId) {
|
|
65
62
|
try {
|
|
66
|
-
this.
|
|
67
|
-
this.customerFarmForm.controls['
|
|
68
|
-
this.customerFarmForm.controls['
|
|
69
|
-
this.customerFarmForm.controls['
|
|
70
|
-
this.customerFarmForm.controls['
|
|
71
|
-
this.customerFarmForm.controls['
|
|
72
|
-
this.customerFarmForm.controls['
|
|
73
|
-
this.customerFarmForm.controls['
|
|
74
|
-
this.customerFarmForm.controls['
|
|
63
|
+
const getResponse = await this.customerFarmService.GetDataById(customerId);
|
|
64
|
+
this.customerFarmForm.controls['recordId'].setValue(getResponse.apiData.recordId);
|
|
65
|
+
this.customerFarmForm.controls['customerId'].setValue(getResponse.apiData.customerId);
|
|
66
|
+
this.customerFarmForm.controls['customerName'].setValue(getResponse.apiData.customerName);
|
|
67
|
+
this.customerFarmForm.controls['defaultWarehouse'].setValue(getResponse.apiData.defaultWarehouse);
|
|
68
|
+
this.customerFarmForm.controls['personInCharge'].setValue(getResponse.apiData.personInCharge);
|
|
69
|
+
this.customerFarmForm.controls['displayName'].setValue(getResponse.apiData.displayName);
|
|
70
|
+
this.customerFarmForm.controls['primaryVetId'].setValue(getResponse.apiData.primaryVetId);
|
|
71
|
+
this.customerFarmForm.controls['PICTattoo'].setValue(getResponse.apiData.PICTattoo);
|
|
72
|
+
this.customerFarmForm.controls['isActive'].setValue(getResponse.apiData.isActive);
|
|
75
73
|
}
|
|
76
74
|
catch (error) {
|
|
77
75
|
this.errorLogService.saveError(error);
|
|
@@ -111,30 +109,17 @@ export class CustomerFarmComponent {
|
|
|
111
109
|
this.customerFarmData.emit(customerFarmModel);
|
|
112
110
|
}
|
|
113
111
|
/**
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
112
|
+
* @description
|
|
113
|
+
*
|
|
114
|
+
* Insert customer data into database
|
|
115
|
+
*/
|
|
118
116
|
async InsertData() {
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
if (this.customerFarmConfiguration.userMessages) {
|
|
126
|
-
this.toastr.ShowSuccess(this.userMessages.toString());
|
|
127
|
-
}
|
|
128
|
-
this.ClearForm();
|
|
129
|
-
}
|
|
130
|
-
else {
|
|
131
|
-
this.customerFarmForm.markAllAsTouched();
|
|
132
|
-
this.toastr.ShowWarning("Please enter valid data!");
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
catch (error) {
|
|
136
|
-
this.errorLogService.saveError(error);
|
|
137
|
-
this.toastr.ShowAllErrors(error.error.message.userMessage);
|
|
117
|
+
let customerFarmModel = new CustomerFarmModel();
|
|
118
|
+
customerFarmModel = this.ConvertFormToModel();
|
|
119
|
+
const getResponse = await this.customerFarmService.InsertData(customerFarmModel);
|
|
120
|
+
this.userMessages = getResponse.message.userMessage;
|
|
121
|
+
if (this.customerFarmConfiguration.userMessages) {
|
|
122
|
+
this.toastr.ShowSuccess(this.userMessages.toString());
|
|
138
123
|
}
|
|
139
124
|
}
|
|
140
125
|
/**
|
|
@@ -143,25 +128,24 @@ export class CustomerFarmComponent {
|
|
|
143
128
|
* update customer data into database
|
|
144
129
|
*/
|
|
145
130
|
async UpdateData() {
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
if (this.customerFarmConfiguration.userMessages) {
|
|
153
|
-
this.toastr.ShowSuccess(this.userMessages.toString());
|
|
154
|
-
}
|
|
155
|
-
this.ClearForm();
|
|
156
|
-
}
|
|
157
|
-
else {
|
|
158
|
-
this.customerFarmForm.markAllAsTouched();
|
|
159
|
-
this.toastr.ShowWarning("Please enter valid data!");
|
|
160
|
-
}
|
|
131
|
+
let customerFarmModel = new CustomerFarmModel();
|
|
132
|
+
customerFarmModel = this.ConvertFormToModel();
|
|
133
|
+
const getResponse = await this.customerFarmService.UpdateData(customerFarmModel);
|
|
134
|
+
this.userMessages = getResponse.message.userMessage;
|
|
135
|
+
if (this.customerFarmConfiguration.userMessages) {
|
|
136
|
+
this.toastr.ShowSuccess(this.userMessages.toString());
|
|
161
137
|
}
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
138
|
+
}
|
|
139
|
+
/**
|
|
140
|
+
* @description
|
|
141
|
+
*
|
|
142
|
+
* Delete customer data into database
|
|
143
|
+
*/
|
|
144
|
+
async DeleteData(value) {
|
|
145
|
+
const getResponse = await this.customerFarmService.DeleteData(value);
|
|
146
|
+
this.userMessages = getResponse.message.userMessage;
|
|
147
|
+
if (this.customerFarmConfiguration.userMessages) {
|
|
148
|
+
this.toastr.ShowSuccess(this.userMessages.toString());
|
|
165
149
|
}
|
|
166
150
|
}
|
|
167
151
|
}
|
|
@@ -175,4 +159,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImpor
|
|
|
175
159
|
}], customerFarmConfiguration: [{
|
|
176
160
|
type: Input
|
|
177
161
|
}] } });
|
|
178
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY3VzdG9tZXItZmFybS5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wcm9qZWN0cy9jdXN0b21lci1mYXJtL3NyYy9saWIvY3VzdG9tZXItZmFybS5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi9wcm9qZWN0cy9jdXN0b21lci1mYXJtL3NyYy9saWIvY3VzdG9tZXItZmFybS5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLFlBQVksRUFBRSxLQUFLLEVBQVUsTUFBTSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQy9FLE9BQU8sRUFBMEIsVUFBVSxFQUFFLE1BQU0sZ0JBQWdCLENBQUM7QUFDcEUsT0FBTyxFQUFFLDZCQUE2QixFQUFFLGlCQUFpQixFQUFFLE1BQU0sb0NBQW9DLENBQUM7Ozs7Ozs7O0FBU3RHLE1BQU0sT0FBTyxxQkFBcUI7SUFNaEMsWUFBb0IsbUJBQXdDLEVBQ2xELFdBQXdCLEVBQ3hCLGVBQWdDLEVBQ2hDLE1BQWlDO1FBSHZCLHdCQUFtQixHQUFuQixtQkFBbUIsQ0FBcUI7UUFDbEQsZ0JBQVcsR0FBWCxXQUFXLENBQWE7UUFDeEIsb0JBQWUsR0FBZixlQUFlLENBQWlCO1FBQ2hDLFdBQU0sR0FBTixNQUFNLENBQTJCO1FBUmpDLHFCQUFnQixHQUFHLElBQUksWUFBWSxFQUFPLENBQUM7UUFD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PVwiY3VzdG9tZXJGYXJtRm9ybVwiPlxyXG4gICAgICAgICAgICA8IS0tIEN1c3RvbWVyIEZhcm0gc2VjdGlvbiBzdGFydCAgLS0+XHJcblxyXG4gICAgICAgICAgICA8ZGl2IGNsYXNzPVwic206ZmxleFwiPlxyXG4gICAgICAgICAgICAgICAgPGRpdiBjbGFzcz1cInctZnVsbFwiPlxyXG4gICAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9XCJzbTpmbGV4IHB4LTggcHQtNFwiPlxyXG4gICAgICAgICAgICAgICAgICAgICAgICA8bWF0LWZvcm0tZmllbGQgY2xhc3M9XCJmbGV4LWF1dG8gdy1mdWxsIG1yLTRcIlxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgKm5nSWY9XCJjdXN0b21lckZhcm1Db25maWd1cmF0aW9uLmFsbG93ZWRDdXN0b21lckZhcm1GaWVsZHMuY3VzdG9tZXJOYW1lXCI+XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8bWF0LWxhYmVsPkNsaWVudCBOYW1lPC9tYXQtbGFiZWw+XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8aW5wdXQgbWF0SW5wdXQgaWQ9XCJjdXN0b21lck5hbWVcIiBwbGFjZWhvbGRlcj1cIkNsaWVudCBOYW1lXCIgcGF0dGVybj1cIl5bYS16QS1aIF0qJFwiXHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgbWlubGVuZ3RoPVwiM1wiIFtmb3JtQ29udHJvbE5hbWVdPVwiJ2N1c3RvbWVyTmFtZSdcIiAoY2hhbmdlKT1cImVtaXREYXRhVG9QYXJlbnQoKVwiPlxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgPG1hdC1lcnJvclxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICpuZ0lmPVwiY3VzdG9tZXJGYXJtRm9ybS5nZXQoJ2N1c3RvbWVyTmFtZScpLmhhc0Vycm9yKCdyZXF1aXJlZCcpICYmIGN1c3RvbWVyRmFybUNvbmZpZ3VyYXRpb24ucmVxdWlyZWRDdXN0b21lckZhcm1GaWVsZHMuY3VzdG9tZXJOYW1lIFwiPlxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIENsaWVudCBOYW1lIGlzIHJlcXVpcmVkXHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L21hdC1lcnJvcj5cclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxtYXQtZXJyb3IgKm5nSWY9XCJjdXN0b21lckZhcm1Gb3JtLmdldCgnY3VzdG9tZXJOYW1lJykuaGFzRXJyb3IoJ3BhdHRlcm4nKVwiPlxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFBsZWFzZSBlbnRlciB2YWxpZCBDbGllbnQgbmFtZVxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgPC9tYXQtZXJyb3I+XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8bWF0LWVycm9yICpuZ0lmPVwiY3VzdG9tZXJGYXJtRm9ybS5nZXQoJ2N1c3RvbWVyTmFtZScpLmhhc0Vycm9yKCdtaW5sZW5ndGgnKVwiPlxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIENsaWVudCBuYW1lIG11c3QgYmUgb2YgYXRsZWFzdCAzIGNoYXJhY3RlcnNcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvbWF0LWVycm9yPlxyXG4gICAgICAgICAgICAgICAgICAgICAgICA8L21hdC1mb3JtLWZpZWxkPlxyXG5cclxuICAgICAgICAgICAgICAgICAgICAgICAgPG1hdC1mb3JtLWZpZWxkIGNsYXNzPVwiZmxleC1hdXRvIHctZnVsbFwiXHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAqbmdJZj1cImN1c3RvbWVyRmFybUNvbmZpZ3VyYXRpb24uYWxsb3dlZEN1c3RvbWVyRmFybUZpZWxkcy5kZWZhdWx0V2FyZWhvdXNlXCI+XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8bWF0LWxhYmVsPkRlZmF1bHQgV2FyZWhvdXNlPC9tYXQtbGFiZWw+XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8aW5wdXQgbWF0SW5wdXQgaWQ9XCJkZWZhdWx0V2FyZWhvdXNlXCIgcGxhY2Vob2xkZXI9XCJEZWZhdWx0IFdhcmVob3VzZVwiXHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgW2Zvcm1Db250cm9sTmFtZV09XCInZGVmYXVsdFdhcmVob3VzZSdcIiAoY2hhbmdlKT1cImVtaXREYXRhVG9QYXJlbnQoKVwiPlxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgPG1hdC1lcnJvclxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICpuZ0lmPVwiY3VzdG9tZXJGYXJtRm9ybS5nZXQoJ2RlZmF1bHRXYXJlaG91c2UnKS5oYXNFcnJvcigncmVxdWlyZWQnKSAmJiBjdXN0b21lckZhcm1Db25maWd1cmF0aW9uLnJlcXVpcmVkQ3VzdG9tZXJGYXJtRmllbGRzLmRlZmF1bHRXYXJlaG91c2VcIj5cclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBEZWZhdWx0IFdhcmVob3VzZSBpcyByZXF1aXJlZFxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgPC9tYXQtZXJyb3I+XHJcbiAgICAgICAgICAgICAgICAgICAgICAgIDwvbWF0LWZvcm0tZmllbGQ+XHJcbiAgICAgICAgICAgICAgICAgICAgPC9kaXY+XHJcblxyXG4gICAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9XCJzbTpmbGV4IHB4LTggcHQtNFwiPlxyXG4gICAgICAgICAgICAgICAgICAgICAgICA8bWF0LWZvcm0tZmllbGQgY2xhc3M9XCJmbGV4LWF1dG8gdy1mdWxsIG1yLTRcIlxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgKm5nSWY9XCJjdXN0b21lckZhcm1Db25maWd1cmF0aW9uLmFsbG93ZWRDdXN0b21lckZhcm1GaWVsZHMucGVyc29uSW5DaGFyZ2VcIj5cclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxtYXQtbGFiZWw+UGVyc29uIEluIENoYXJnZTwvbWF0LWxhYmVsPlxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgPGlucHV0IG1hdElucHV0IGlkPVwicGVyc29uSW5DaGFyZ2VcIiBwbGFjZWhvbGRlcj1cIlBlcnNvbiBJbiBDaGFyZ2VcIlxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFtmb3JtQ29udHJvbE5hbWVdPVwiJ3BlcnNvbkluQ2hhcmdlJ1wiIChjaGFuZ2UpPVwiZW1pdERhdGFUb1BhcmVudCgpXCI+XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8bWF0LWVycm9yXHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKm5nSWY9XCJjdXN0b21lckZhcm1Gb3JtLmdldCgncGVyc29uSW5DaGFyZ2UnKS5oYXNFcnJvcigncmVxdWlyZWQnKSAmJiBjdXN0b21lckZhcm1Db25maWd1cmF0aW9uLnJlcXVpcmVkQ3VzdG9tZXJGYXJtRmllbGRzLnBlcnNvbkluQ2hhcmdlXCI+XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgUGVyc29uIEluIENoYXJnZSBpcyByZXF1aXJlZFxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgPC9tYXQtZXJyb3I+XHJcbiAgICAgICAgICAgICAgICAgICAgICAgIDwvbWF0LWZvcm0tZmllbGQ+XHJcblxyXG4gICAgICAgICAgICAgICAgICAgICAgICA8bWF0LWZvcm0tZmllbGQgY2xhc3M9XCJmbGV4LWF1dG8gdy1mdWxsXCJcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICpuZ0lmPVwiY3VzdG9tZXJGYXJtQ29uZmlndXJhdGlvbi5hbGxvd2VkQ3VzdG9tZXJGYXJtRmllbGRzLmRpc3BsYXlOYW1lXCI+XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8bWF0LWxhYmVsPkRpc3BsYXkgTmFtZTwvbWF0LWxhYmVsPlxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgPGlucHV0IG1hdElucHV0IGlkPVwiZGlzcGxheU5hbWVcIiBwbGFjZWhvbGRlcj1cIkRpc3BsYXkgTmFtZVwiXHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgW2Zvcm1Db250cm9sTmFtZV09XCInZGlzcGxheU5hbWUnXCIgKGNoYW5nZSk9XCJlbWl0RGF0YVRvUGFyZW50KClcIj5cclxuICAgICAgICAgICAgICAgICAgICAgICAgPC9tYXQtZm9ybS1maWVsZD5cclxuICAgICAgICAgICAgICAgICAgICA8L2Rpdj5cclxuXHJcbiAgICAgICAgICAgICAgICAgICAgPGRpdiBjbGFzcz1cInNtOmZsZXggcHgtOCBwdC00XCI+XHJcbiAgICAgICAgICAgICAgICAgICAgICAgIDxtYXQtZm9ybS1maWVsZCBjbGFzcz1cImZsZXgtYXV0byB3LWZ1bGwgbXItNFwiXHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAqbmdJZj1cImN1c3RvbWVyRmFybUNvbmZpZ3VyYXRpb24uYWxsb3dlZEN1c3RvbWVyRmFybUZpZWxkcy5wcmltYXJ5VmV0SWRcIj5cclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxtYXQtbGFiZWw+UHJpbWFyeSBWZXQ8L21hdC1sYWJlbD5cclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxpbnB1dCBtYXRJbnB1dCBpZD1cInByaW1hcnlWZXRJZFwiIHBsYWNlaG9sZGVyPVwiUHJpbWFyeSBWZXRcIlxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFtmb3JtQ29udHJvbE5hbWVdPVwiJ3ByaW1hcnlWZXRJZCdcIiAoY2hhbmdlKT1cImVtaXREYXRhVG9QYXJlbnQoKVwiPlxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgPG1hdC1lcnJvclxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICpuZ0lmPVwiY3VzdG9tZXJGYXJtRm9ybS5nZXQoJ3ByaW1hcnlWZXRJZCcpLmhhc0Vycm9yKCdyZXF1aXJlZCcpICYmIGN1c3RvbWVyRmFybUNvbmZpZ3VyYXRpb24ucmVxdWlyZWRDdXN0b21lckZhcm1GaWVsZHMucHJpbWFyeVZldElkXCI+XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgUHJpbWFyeSBWZXQgaXMgcmVxdWlyZWRcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvbWF0LWVycm9yPlxyXG4gICAgICAgICAgICAgICAgICAgICAgICA8L21hdC1mb3JtLWZpZWxkPlxyXG5cclxuICAgICAgICAgICAgICAgICAgICAgICAgPG1hdC1mb3JtLWZpZWxkIGNsYXNzPVwiZmxleC1hdXRvIHctZnVsbFwiXHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAqbmdJZj1cImN1c3RvbWVyRmFybUNvbmZpZ3VyYXRpb24uYWxsb3dlZEN1c3RvbWVyRmFybUZpZWxkcy5QSUNUYXR0b29cIj5cclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxtYXQtbGFiZWw+UElDL1RhdHRvbyAoaWYgYXBwbGljYWJsZSk8L21hdC1sYWJlbD5cclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxpbnB1dCBtYXRJbnB1dCBpZD1cIlBJQ1RhdHRvb1wiIHBsYWNlaG9sZGVyPVwiUElDL1RhdHRvb1wiIFtmb3JtQ29udHJvbE5hbWVdPVwiJ1BJQ1RhdHRvbydcIlxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIChjaGFuZ2UpPVwiZW1pdERhdGFUb1BhcmVudCgp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AgICAgICAqbmdJZj1cImN1c3RvbWVyRmFybUNvbmZpZ3VyYXRpb24uYWxsb3dlZEN1c3RvbWVyRmFybUZpZWxkcy5jdXN0b21lck5hbWVcIj5cclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxtYXQtbGFiZWw+Q2xpZW50IE5hbWU8L21hdC1sYWJlbD5cclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxpbnB1dCBtYXRJbnB1dCBpZD1cImN1c3RvbWVyTmFtZVwiIHBsYWNlaG9sZGVyPVwiQ2xpZW50IE5hbWVcIiBwYXR0ZXJuPVwiXlthLXpBLVogXSokXCJcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBtaW5sZW5ndGg9XCIzXCIgW2Zvcm1Db250cm9sTmFtZV09XCInY3VzdG9tZXJOYW1lJ1wiIChjaGFuZ2UpPVwiZW1pdERhdGFUb1BhcmVudCgpXCI+XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8bWF0LWVycm9yXHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKm5nSWY9XCJjdXN0b21lckZhcm1Gb3JtLmdldCgnY3VzdG9tZXJOYW1lJykuaGFzRXJyb3IoJ3JlcXVpcmVkJykgJiYgY3VzdG9tZXJGYXJtQ29uZmlndXJhdGlvbi5yZXF1aXJlZEN1c3RvbWVyRmFybUZpZWxkcy5jdXN0b21lck5hbWUgXCI+XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgQ2xpZW50IE5hbWUgaXMgcmVxdWlyZWRcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvbWF0LWVycm9yPlxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgPG1hdC1lcnJvciAqbmdJZj1cImN1c3RvbWVyRmFybUZvcm0uZ2V0KCdjdXN0b21lck5hbWUnKS5oYXNFcnJvcigncGF0dGVybicpXCI+XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgUGxlYXNlIGVudGVyIHZhbGlkIENsaWVudCBuYW1lXHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L21hdC1lcnJvcj5cclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxtYXQtZXJyb3IgKm5nSWY9XCJjdXN0b21lckZhcm1Gb3JtLmdldCgnY3VzdG9tZXJOYW1lJykuaGFzRXJyb3IoJ21pbmxlbmd0aCcpXCI+XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgQ2xpZW50IG5hbWUgbXVzdCBiZSBvZiBhdGxlYXN0IDMgY2hhcmFjdGVyc1xyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgPC9tYXQtZXJyb3I+XHJcbiAgICAgICAgICAgICAgICAgICAgICAgIDwvbWF0LWZvcm0tZmllbGQ+XHJcblxyXG4gICAgICAgICAgICAgICAgICAgICAgICA8bWF0LWZvcm0tZmllbGQgY2xhc3M9XCJmbGV4LWF1dG8gdy1mdWxsXCJcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICpuZ0lmPVwiY3VzdG9tZXJGYXJtQ29uZmlndXJhdGlvbi5hbGxvd2VkQ3VzdG9tZXJGYXJtRmllbGRzLmRlZmF1bHRXYXJlaG91c2VcIj5cclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxtYXQtbGFiZWw+RGVmYXVsdCBXYXJlaG91c2U8L21hdC1sYWJlbD5cclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxpbnB1dCBtYXRJbnB1dCBpZD1cImRlZmF1bHRXYXJlaG91c2VcIiBwbGFjZWhvbGRlcj1cIkRlZmF1bHQgV2FyZWhvdXNlXCJcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBbZm9ybUNvbnRyb2xOYW1lXT1cIidkZWZhdWx0V2FyZWhvdXNlJ1wiIChjaGFuZ2UpPVwiZW1pdERhdGFUb1BhcmVudCgpXCI+XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8bWF0LWVycm9yXHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKm5nSWY9XCJjdXN0b21lckZhcm1Gb3JtLmdldCgnZGVmYXVsdFdhcmVob3VzZScpLmhhc0Vycm9yKCdyZXF1aXJlZCcpICYmIGN1c3RvbWVyRmFybUNvbmZpZ3VyYXRpb24ucmVxdWlyZWRDdXN0b21lckZhcm1GaWVsZHMuZGVmYXVsdFdhcmVob3VzZVwiPlxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIERlZmF1bHQgV2FyZWhvdXNlIGlzIHJlcXVpcmVkXHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L21hdC1lcnJvcj5cclxuICAgICAgICAgICAgICAgICAgICAgICAgPC9tYXQtZm9ybS1maWVsZD5cclxuICAgICAgICAgICAgICAgICAgICA8L2Rpdj5cclxuXHJcbiAgICAgICAgICAgICAgICAgICAgPGRpdiBjbGFzcz1cInNtOmZsZXggcHgtOCBwdC00XCI+XHJcbiAgICAgICAgICAgICAgICAgICAgICAgIDxtYXQtZm9ybS1maWVsZCBjbGFzcz1cImZsZXgtYXV0byB3LWZ1bGwgbXItNFwiXHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAqbmdJZj1cImN1c3RvbWVyRmFybUNvbmZpZ3VyYXRpb24uYWxsb3dlZEN1c3RvbWVyRmFybUZpZWxkcy5wZXJzb25JbkNoYXJnZVwiPlxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgPG1hdC1sYWJlbD5QZXJzb24gSW4gQ2hhcmdlPC9tYXQtbGFiZWw+XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8aW5wdXQgbWF0SW5wdXQgaWQ9XCJwZXJzb25JbkNoYXJnZVwiIHBsYWNlaG9sZGVyPVwiUGVyc29uIEluIENoYXJnZVwiXHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgW2Zvcm1Db250cm9sTmFtZV09XCIncGVyc29uSW5DaGFyZ2UnXCIgKGNoYW5nZSk9XCJlbWl0RGF0YVRvUGFyZW50KClcIj5cclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxtYXQtZXJyb3JcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAqbmdJZj1cImN1c3RvbWVyRmFybUZvcm0uZ2V0KCdwZXJzb25JbkNoYXJnZScpLmhhc0Vycm9yKCdyZXF1aXJlZCcpICYmIGN1c3RvbWVyRmFybUNvbmZpZ3VyYXRpb24ucmVxdWlyZWRDdXN0b21lckZhcm1GaWVsZHMucGVyc29uSW5DaGFyZ2VcIj5cclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBQZXJzb24gSW4gQ2hhcmdlIGlzIHJlcXVpcmVkXHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L21hdC1lcnJvcj5cclxuICAgICAgICAgICAgICAgICAgICAgICAgPC9tYXQtZm9ybS1maWVsZD5cclxuXHJcbiAgICAgICAgICAgICAgICAgICAgICAgIDxtYXQtZm9ybS1maWVsZCBjbGFzcz1cImZsZXgtYXV0byB3LWZ1bGxcIlxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgKm5nSWY9XCJjdXN0b21lckZhcm1Db25maWd1cmF0aW9uLmFsbG93ZWRDdXN0b21lckZhcm1GaWVsZHMuZGlzcGxheU5hbWVcIj5cclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxtYXQtbGFiZWw+RGlzcGxheSBOYW1lPC9tYXQtbGFiZWw+XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8aW5wdXQgbWF0SW5wdXQgaWQ9XCJkaXNwbGF5TmFtZVwiIHBsYWNlaG9sZGVyPVwiRGlzcGxheSBOYW1lXCJcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBbZm9ybUNvbnRyb2xOYW1lXT1cIidkaXNwbGF5TmFtZSdcIiAoY2hhbmdlKT1cImVtaXREYXRhVG9QYXJlbnQoKVwiPlxyXG4gICAgICAgICAgICAgICAgICAgICAgICA8L21hdC1mb3JtLWZpZWxkPlxyXG4gICAgICAgICAgICAgICAgICAgIDwvZGl2PlxyXG5cclxuICAgICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPVwic206ZmxleCBweC04IHB0LTRcIj5cclxuICAgICAgICAgICAgICAgICAgICAgICAgPG1hdC1mb3JtLWZpZWxkIGNsYXNzPVwiZmxleC1hdXRvIHctZnVsbCBtci00XCJcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICpuZ0lmPVwiY3VzdG9tZXJGYXJtQ29uZmlndXJhdGlvbi5hbGxvd2VkQ3VzdG9tZXJGYXJtRmllbGRzLnByaW1hcnlWZXRJZFwiPlxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgPG1hdC1sYWJlbD5QcmltYXJ5IFZldDwvbWF0LWxhYmVsPlxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgPGlucHV0IG1hdElucHV0IGlkPVwicHJpbWFyeVZldElkXCIgcGxhY2Vob2xkZXI9XCJQcmltYXJ5IFZldFwiXHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgW2Zvcm1Db250cm9sTmFtZV09XCIncHJpbWFyeVZldElkJ1wiIChjaGFuZ2UpPVwiZW1pdERhdGFUb1BhcmVudCgpXCI+XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8bWF0LWVycm9yXHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKm5nSWY9XCJjdXN0b21lckZhcm1Gb3JtLmdldCgncHJpbWFyeVZldElkJykuaGFzRXJyb3IoJ3JlcXVpcmVkJykgJiYgY3VzdG9tZXJGYXJtQ29uZmlndXJhdGlvbi5yZXF1aXJlZEN1c3RvbWVyRmFybUZpZWxkcy5wcmltYXJ5VmV0SWRcIj5cclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBQcmltYXJ5IFZldCBpcyByZXF1aXJlZFxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgPC9tYXQtZXJyb3I+XHJcbiAgICAgICAgICAgICAgICAgICAgICAgIDwvbWF0LWZvcm0tZmllbGQ+XHJcblxyXG4gICAgICAgICAgICAgICAgICAgICAgICA8bWF0LWZvcm0tZmllbGQgY2xhc3M9XCJmbGV4LWF1dG8gdy1mdWxsXCJcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICpuZ0lmPVwiY3VzdG9tZXJGYXJtQ29uZmlndXJhdGlvbi5hbGxvd2VkQ3VzdG9tZXJGYXJtRmllbGRzLlBJQ1RhdHRvb1wiPlxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgPG1hdC1sYWJlbD5QSUMvVGF0dG9vIChpZiBhcHBsaWNhYmxlKTwvbWF0LWxhYmVsPlxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgPGlucHV0IG1hdElucHV0IGlkPVwiUElDVGF0dG9vXCIgcGxhY2Vob2xkZXI9XCJQSUMvVGF0dG9vXCIgW2Zvcm1Db250cm9sTmFtZV09XCInUElDVGF0dG9vJ1wiXHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKGNoYW5nZSk9XCJlbWl0RGF0YVRvUGFyZW50KClcIj5cclxuICAgICAgICAgICAgICAgICAgICAgICAgPC9tYXQtZm9ybS1maWVsZD5cclxuICAgICAgICAgICAgICAgICAgICA8L2Rpdj5cclxuICAgICAgICAgICAgICAgIDwvZGl2PlxyXG5cclxuICAgICAgICAgICAgPC9kaXY+XHJcbiAgICAgICAgICAgIDwhLS0gQ3VzdG9tZXIgRmFybSBzZWN0aW9uIEVuZCAgLS0+XHJcblxyXG4gICAgICAgIDwvZm9ybT5cclxuICAgIDwvZGl2PlxyXG4gICAgPCEtLSBmb3JtIGNvZGUgZW5kcyBoZXJlIC0tPlxyXG5cclxuPC9kaXY+Il19
|
|
@@ -235,9 +235,6 @@ class CustomerFarmComponent {
|
|
|
235
235
|
}
|
|
236
236
|
ngOnInit() {
|
|
237
237
|
this.DeclareForm();
|
|
238
|
-
if (this.customerFarmConfiguration.customerData != null) {
|
|
239
|
-
this.EditData();
|
|
240
|
-
}
|
|
241
238
|
}
|
|
242
239
|
DeclareForm() {
|
|
243
240
|
this.customerFarmForm = this.formBuilder.group({
|
|
@@ -272,22 +269,23 @@ class CustomerFarmComponent {
|
|
|
272
269
|
*
|
|
273
270
|
* edit data list item using data item GUID
|
|
274
271
|
*
|
|
275
|
-
* @param
|
|
272
|
+
* @param customerId
|
|
276
273
|
*
|
|
277
274
|
* gets customer GUID from gridData and passes it to this function
|
|
278
275
|
*/
|
|
279
|
-
EditData() {
|
|
276
|
+
EditData(customerId) {
|
|
280
277
|
return __awaiter(this, void 0, void 0, function* () {
|
|
281
278
|
try {
|
|
282
|
-
this.
|
|
283
|
-
this.customerFarmForm.controls['
|
|
284
|
-
this.customerFarmForm.controls['
|
|
285
|
-
this.customerFarmForm.controls['
|
|
286
|
-
this.customerFarmForm.controls['
|
|
287
|
-
this.customerFarmForm.controls['
|
|
288
|
-
this.customerFarmForm.controls['
|
|
289
|
-
this.customerFarmForm.controls['
|
|
290
|
-
this.customerFarmForm.controls['
|
|
279
|
+
const getResponse = yield this.customerFarmService.GetDataById(customerId);
|
|
280
|
+
this.customerFarmForm.controls['recordId'].setValue(getResponse.apiData.recordId);
|
|
281
|
+
this.customerFarmForm.controls['customerId'].setValue(getResponse.apiData.customerId);
|
|
282
|
+
this.customerFarmForm.controls['customerName'].setValue(getResponse.apiData.customerName);
|
|
283
|
+
this.customerFarmForm.controls['defaultWarehouse'].setValue(getResponse.apiData.defaultWarehouse);
|
|
284
|
+
this.customerFarmForm.controls['personInCharge'].setValue(getResponse.apiData.personInCharge);
|
|
285
|
+
this.customerFarmForm.controls['displayName'].setValue(getResponse.apiData.displayName);
|
|
286
|
+
this.customerFarmForm.controls['primaryVetId'].setValue(getResponse.apiData.primaryVetId);
|
|
287
|
+
this.customerFarmForm.controls['PICTattoo'].setValue(getResponse.apiData.PICTattoo);
|
|
288
|
+
this.customerFarmForm.controls['isActive'].setValue(getResponse.apiData.isActive);
|
|
291
289
|
}
|
|
292
290
|
catch (error) {
|
|
293
291
|
this.errorLogService.saveError(error);
|
|
@@ -328,31 +326,18 @@ class CustomerFarmComponent {
|
|
|
328
326
|
this.customerFarmData.emit(customerFarmModel);
|
|
329
327
|
}
|
|
330
328
|
/**
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
329
|
+
* @description
|
|
330
|
+
*
|
|
331
|
+
* Insert customer data into database
|
|
332
|
+
*/
|
|
335
333
|
InsertData() {
|
|
336
334
|
return __awaiter(this, void 0, void 0, function* () {
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
if (this.customerFarmConfiguration.userMessages) {
|
|
344
|
-
this.toastr.ShowSuccess(this.userMessages.toString());
|
|
345
|
-
}
|
|
346
|
-
this.ClearForm();
|
|
347
|
-
}
|
|
348
|
-
else {
|
|
349
|
-
this.customerFarmForm.markAllAsTouched();
|
|
350
|
-
this.toastr.ShowWarning("Please enter valid data!");
|
|
351
|
-
}
|
|
352
|
-
}
|
|
353
|
-
catch (error) {
|
|
354
|
-
this.errorLogService.saveError(error);
|
|
355
|
-
this.toastr.ShowAllErrors(error.error.message.userMessage);
|
|
335
|
+
let customerFarmModel = new CustomerFarmModel();
|
|
336
|
+
customerFarmModel = this.ConvertFormToModel();
|
|
337
|
+
const getResponse = yield this.customerFarmService.InsertData(customerFarmModel);
|
|
338
|
+
this.userMessages = getResponse.message.userMessage;
|
|
339
|
+
if (this.customerFarmConfiguration.userMessages) {
|
|
340
|
+
this.toastr.ShowSuccess(this.userMessages.toString());
|
|
356
341
|
}
|
|
357
342
|
});
|
|
358
343
|
}
|
|
@@ -363,25 +348,26 @@ class CustomerFarmComponent {
|
|
|
363
348
|
*/
|
|
364
349
|
UpdateData() {
|
|
365
350
|
return __awaiter(this, void 0, void 0, function* () {
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
if (this.customerFarmConfiguration.userMessages) {
|
|
373
|
-
this.toastr.ShowSuccess(this.userMessages.toString());
|
|
374
|
-
}
|
|
375
|
-
this.ClearForm();
|
|
376
|
-
}
|
|
377
|
-
else {
|
|
378
|
-
this.customerFarmForm.markAllAsTouched();
|
|
379
|
-
this.toastr.ShowWarning("Please enter valid data!");
|
|
380
|
-
}
|
|
351
|
+
let customerFarmModel = new CustomerFarmModel();
|
|
352
|
+
customerFarmModel = this.ConvertFormToModel();
|
|
353
|
+
const getResponse = yield this.customerFarmService.UpdateData(customerFarmModel);
|
|
354
|
+
this.userMessages = getResponse.message.userMessage;
|
|
355
|
+
if (this.customerFarmConfiguration.userMessages) {
|
|
356
|
+
this.toastr.ShowSuccess(this.userMessages.toString());
|
|
381
357
|
}
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
358
|
+
});
|
|
359
|
+
}
|
|
360
|
+
/**
|
|
361
|
+
* @description
|
|
362
|
+
*
|
|
363
|
+
* Delete customer data into database
|
|
364
|
+
*/
|
|
365
|
+
DeleteData(value) {
|
|
366
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
367
|
+
const getResponse = yield this.customerFarmService.DeleteData(value);
|
|
368
|
+
this.userMessages = getResponse.message.userMessage;
|
|
369
|
+
if (this.customerFarmConfiguration.userMessages) {
|
|
370
|
+
this.toastr.ShowSuccess(this.userMessages.toString());
|
|
385
371
|
}
|
|
386
372
|
});
|
|
387
373
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"qubesense-customer-farm.mjs","sources":["../../../projects/customer-farm/src/lib/dependencies/customer-farm-api-urls.ts","../../../projects/customer-farm/src/lib/customer-farm.service.ts","../../../projects/customer-farm/src/lib/dependencies/customer-farm-model.ts","../../../projects/customer-farm/src/lib/customer-farm.component.ts","../../../projects/customer-farm/src/lib/customer-farm.component.html","../../../projects/customer-farm/src/lib/customer-farm.module.ts","../../../projects/customer-farm/src/public-api.ts","../../../projects/customer-farm/src/qubesense-customer-farm.ts"],"sourcesContent":["export class CustomerFarmApiUrls {\r\n //api Url string for get data by Id\r\n getCustomerFarmByIdUrl: string = 'api/CustomerFarm/GetById';\r\n \r\n //api Url string for insert Customer data\r\n insertCustomerFarmDataUrl: string = 'api/CustomerFarm/Create';\r\n\r\n //api Url string for update Customer record\r\n updateCustomerFarmDataUrl: string = 'api/CustomerFarm/Update';\r\n\r\n //api Url string for delete Customer record\r\n deleteCustomerFarmDataUrl: string = 'api/CustomerFarm/Delete';\r\n\r\n //api Url string for get Customer list\r\n getCustomerFarmListUrl: string = 'api/CustomerFarm/GetAll';\r\n \r\n //api Url string for get Customer dropdown list\r\n getCustomerFarmDropdownListUrl: string = 'api/CustomerFarm/GetDropdownList';\r\n}","import { Injectable } from '@angular/core';\r\nimport { DataAccessService, WebApiResult } from '@qubesense/base-services';\r\nimport { CustomerFarmApiUrls } from './dependencies/customer-farm-api-urls';\r\nimport { CustomerFarmModel } from './dependencies/customer-farm-model';\r\n\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class CustomerFarmService {\r\n\r\n constructor(private dataAccessService: DataAccessService) { }\r\n\r\n customerFarmApiUrls = new CustomerFarmApiUrls();\r\n\r\n /**\r\n * service for get customer data by Id\r\n * \r\n * @param customerGUID \r\n * \r\n * @returns Response Data from Database\r\n */\r\n public async GetDataById(customerGUID: string): Promise<WebApiResult> {\r\n try {\r\n const url = this.customerFarmApiUrls.getCustomerFarmByIdUrl + '/' + customerGUID;\r\n const resultResponse = await this.dataAccessService.GetDataById(url);\r\n return resultResponse;\r\n } catch (error) {\r\n throw error;\r\n }\r\n }\r\n\r\n /**\r\n * service for inserting customer data into database\r\n * \r\n * @param customerFarmModel \r\n * \r\n * @returns Response message from Database\r\n */\r\n public async InsertData(customerFarmModel: CustomerFarmModel) {\r\n try {\r\n const url = this.customerFarmApiUrls.insertCustomerFarmDataUrl;\r\n const resultResponse = await this.dataAccessService.InsertData(url, customerFarmModel);\r\n return resultResponse;\r\n } catch (error) {\r\n throw error;\r\n }\r\n }\r\n\r\n /**\r\n * service for update customer Data\r\n * \r\n * @param customerFarmModel \r\n * \r\n * @returns Response message from Database\r\n */\r\n public async UpdateData(customerFarmModel: CustomerFarmModel) {\r\n try {\r\n const url = this.customerFarmApiUrls.updateCustomerFarmDataUrl;\r\n const resultResponse = await this.dataAccessService.UpdateData(url, customerFarmModel);\r\n return resultResponse;\r\n } catch (error) {\r\n throw error;\r\n }\r\n }\r\n\r\n /**\r\n * service for delete customer data by GUID\r\n * \r\n * @param customerFarmModel \r\n * \r\n * @returns Response message from Database\r\n */\r\n public async DeleteData(recordId: any) {\r\n try {\r\n const url = this.customerFarmApiUrls.deleteCustomerFarmDataUrl + '/' + recordId;\r\n const resultResponse = await this.dataAccessService.DeleteData(url);\r\n return resultResponse;\r\n }\r\n catch (error) {\r\n throw error;\r\n }\r\n }\r\n\r\n /**\r\n * service for get data for customer grid \r\n * \r\n * @param customerFarmModel \r\n * \r\n * @returns Response Data from Database\r\n */\r\n public async GetListData(customerDataModel: CustomerFarmModel) {\r\n try {\r\n const url = this.customerFarmApiUrls.getCustomerFarmListUrl;\r\n const resultResponse = await this.dataAccessService.GetListData(url, customerDataModel);\r\n return resultResponse;\r\n } catch (error) {\r\n throw error;\r\n }\r\n }\r\n\r\n /**\r\n * service for get data for customer DropDown List\r\n * \r\n * @returns \r\n */\r\n public async GetCustomersDropdownList() {\r\n try {\r\n const url = this.customerFarmApiUrls.getCustomerFarmDropdownListUrl;\r\n const resultResponse = await this.dataAccessService.GetDropdownListData(url);\r\n return resultResponse;\r\n } catch (error) {\r\n throw error;\r\n }\r\n }\r\n}\r\n","export class CustomerFarmModel {\r\n formCode: string = null;\r\n formId: string = '';\r\n recordId: string = null;\r\n customerId: string = null;\r\n customerName: string = '';\r\n defaultWarehouse: string = '';\r\n personInCharge: string = '';\r\n displayName: string = '';\r\n primaryVetId: string = '';\r\n PICTattoo: string = '';\r\n isActive: boolean = true;\r\n isDeleted: boolean = false;\r\n}\r\n\r\nexport class CustomerFarmConfigrationModel {\r\n formCode: string = null;\r\n customerId: string = null;\r\n defaultView: boolean = false;\r\n showModal: boolean = false;\r\n isSearchable: boolean = false;\r\n showClientData: boolean = false;\r\n customerData: CustomerFarmModel = null;\r\n userMessages: boolean = false;\r\n requiredCustomerFarmSection: boolean = false;\r\n allowedCustomerFarmSection: boolean = false;\r\n requiredCustomerFarmFields: RequiredCustomerFarmFields = new RequiredCustomerFarmFields();\r\n allowedCustomerFarmFields: AllowedCustomerFarmFields = new AllowedCustomerFarmFields();\r\n}\r\n\r\nexport class RequiredCustomerFarmFields {\r\n customerName: boolean = true;\r\n customerId: boolean = true;\r\n defaultWarehouse: boolean = true;\r\n personInCharge: boolean = true;\r\n primaryVetId: boolean = true;\r\n displayName: boolean = true;\r\n PICTattoo: boolean = false;\r\n profileImageURL: boolean = false;\r\n}\r\n\r\nexport class AllowedCustomerFarmFields {\r\n customerName: boolean = true;\r\n defaultWarehouse: boolean = true;\r\n personInCharge: boolean = true;\r\n primaryVetId: boolean = true;\r\n PICTattoo: boolean = true;\r\n displayName: boolean = true;\r\n profileImageURL: boolean = false;\r\n\r\n}\r\n","import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core';\nimport { FormBuilder, FormGroup, Validators } from '@angular/forms';\nimport { CustomerFarmConfigrationModel, CustomerFarmModel } from './dependencies/customer-farm-model';\nimport { ErrorLogService, ToastrNotificationService } from '@qubesense/base-services';\nimport { CustomerFarmService } from './customer-farm.service';\n\n@Component({\n selector: 'lib-customer-farm',\n templateUrl: './customer-farm.component.html',\n styleUrls: ['./customer-farm.component.scss']\n})\nexport class CustomerFarmComponent implements OnInit {\n @Output() customerFarmData = new EventEmitter<any>();\n @Input() public customerFarmConfiguration: CustomerFarmConfigrationModel = new CustomerFarmConfigrationModel();\n customerFarmForm: FormGroup;\n userMessages: string[] = [];\n\n constructor(private customerFarmService: CustomerFarmService,\n private formBuilder: FormBuilder,\n private errorLogService: ErrorLogService,\n private toastr: ToastrNotificationService\n ) { }\n\n ngOnInit() {\n this.DeclareForm();\n if (this.customerFarmConfiguration.customerData != null) {\n this.EditData();\n }\n }\n\n DeclareForm() {\n this.customerFarmForm = this.formBuilder.group({\n recordId : [null],\n customerId : [null],\n customerName : [null],\n defaultWarehouse : [null],\n personInCharge : [null],\n displayName : [null],\n primaryVetId : [null],\n PICTattoo : [null],\n isActive : [true]\n });\n if (this.customerFarmConfiguration.requiredCustomerFarmFields.customerName) {\n this.customerFarmForm.get('customerName').addValidators(Validators.required);\n this.customerFarmForm.get('customerName').addValidators(Validators.pattern('^[a-zA-Z ]*$'));\n this.customerFarmForm.get('customerName').addValidators(Validators.minLength(3));\n }\n if (this.customerFarmConfiguration.requiredCustomerFarmFields.defaultWarehouse) {\n this.customerFarmForm.get('defaultWarehouse').addValidators(Validators.required);\n }\n if (this.customerFarmConfiguration.requiredCustomerFarmFields.personInCharge) {\n this.customerFarmForm.get('personInCharge').addValidators(Validators.required);\n }\n if (this.customerFarmConfiguration.requiredCustomerFarmFields.primaryVetId) {\n this.customerFarmForm.get('primaryVetId').addValidators(Validators.required);\n }\n\n }\n\n ///////////////////////////////////standard methods/////////////////////////////////////////////////////\n\n /**\n * @description\n *\n * edit data list item using data item GUID\n *\n * @param recordId\n *\n * gets customer GUID from gridData and passes it to this function\n */\n async EditData() {\n try {\n this.customerFarmForm.controls['recordId'].setValue(this.customerFarmConfiguration.customerData.recordId);\n this.customerFarmForm.controls['customerId'].setValue(this.customerFarmConfiguration.customerData.customerId);\n this.customerFarmForm.controls['customerName'].setValue(this.customerFarmConfiguration.customerData.customerName);\n this.customerFarmForm.controls['defaultWarehouse'].setValue(this.customerFarmConfiguration.customerData.defaultWarehouse);\n this.customerFarmForm.controls['personInCharge'].setValue(this.customerFarmConfiguration.customerData.personInCharge);\n this.customerFarmForm.controls['displayName'].setValue(this.customerFarmConfiguration.customerData.displayName);\n this.customerFarmForm.controls['primaryVetId'].setValue(this.customerFarmConfiguration.customerData.primaryVetId);\n this.customerFarmForm.controls['PICTattoo'].setValue(this.customerFarmConfiguration.customerData.PICTattoo);\n this.customerFarmForm.controls['isActive'].setValue(this.customerFarmConfiguration.customerData.isActive);\n\n }\n catch (error) {\n this.errorLogService.saveError(error);\n this.toastr.ShowAllErrors(error.error.message.userMessage);\n }\n }\n\n\n\n /**\n * @description\n *\n * this method converts all form inputs into model class\n *\n * @returns model with new form values\n */\n ConvertFormToModel() {\n const customerFarmModel = new CustomerFarmModel();\n customerFarmModel.recordId = this.customerFarmForm.value.recordId;\n customerFarmModel.customerId = this.customerFarmForm.value.customerId;\n customerFarmModel.customerName = this.customerFarmForm.value.customerName;\n customerFarmModel.defaultWarehouse = this.customerFarmForm.value.defaultWarehouse;\n customerFarmModel.personInCharge = this.customerFarmForm.value.personInCharge;\n customerFarmModel.displayName = this.customerFarmForm.value.displayName;\n customerFarmModel.primaryVetId = this.customerFarmForm.value.primaryVetId;\n customerFarmModel.PICTattoo = this.customerFarmForm.value.PICTattoo;\n customerFarmModel.formCode = this.customerFarmConfiguration.formCode;\n\n return customerFarmModel;\n }\n\n /**\n * @description\n * clear form data\n */\n ClearForm() {\n this.DeclareForm();\n }\n\n emitDataToParent() {\n let customerFarmModel = new CustomerFarmModel();\n customerFarmModel = this.ConvertFormToModel();\n this.customerFarmData.emit(customerFarmModel);\n }\n\n\n /**\n * @description\n *\n * Insert customer data into database\n */\n public async InsertData() {\n try {\n let customerFarmModel = new CustomerFarmModel();\n customerFarmModel = this.ConvertFormToModel();\n if (!this.customerFarmForm.invalid) {\n const getResponse = await this.customerFarmService.InsertData(customerFarmModel);\n this.userMessages = getResponse.message.userMessage;\n if (this.customerFarmConfiguration.userMessages) {\n this.toastr.ShowSuccess(this.userMessages.toString());\n }\n this.ClearForm();\n } else {\n this.customerFarmForm.markAllAsTouched();\n this.toastr.ShowWarning(\"Please enter valid data!\");\n }\n } catch (error) {\n this.errorLogService.saveError(error);\n this.toastr.ShowAllErrors(error.error.message.userMessage);\n }\n }\n \n /**\n * @description\n *\n * update customer data into database\n */\n public async UpdateData() {\n try {\n let customerFarmModel = new CustomerFarmModel();\n customerFarmModel = this.ConvertFormToModel();\n if (!this.customerFarmForm.invalid) {\n const getResponse = await this.customerFarmService.UpdateData(customerFarmModel);\n this.userMessages = getResponse.message.userMessage;\n if (this.customerFarmConfiguration.userMessages) {\n this.toastr.ShowSuccess(this.userMessages.toString());\n }\n this.ClearForm();\n } else {\n this.customerFarmForm.markAllAsTouched();\n this.toastr.ShowWarning(\"Please enter valid data!\");\n }\n } catch (error) {\n this.errorLogService.saveError(error);\n this.toastr.ShowAllErrors(error.error.message.userMessage);\n }\n }\n\n}\n","<div class=\"flex flex-col flex-auto min-w-0 w-full\">\r\n <!-- form code starts here -->\r\n <!--content-->\r\n <div class=\"sm:w-full overflow-hidden\" *ngIf=\"customerFarmConfiguration.showModal\">\r\n\r\n <!--form body-->\r\n <form class=\"flex flex-col overflow-hidden\" [formGroup]=\"customerFarmForm\">\r\n <!-- Customer Farm section start -->\r\n\r\n <div class=\"sm:flex\">\r\n <div class=\"w-full\">\r\n <div class=\"sm:flex px-8 pt-4\">\r\n <mat-form-field class=\"flex-auto w-full mr-4\"\r\n *ngIf=\"customerFarmConfiguration.allowedCustomerFarmFields.customerName\">\r\n <mat-label>Client Name</mat-label>\r\n <input matInput id=\"customerName\" placeholder=\"Client Name\" pattern=\"^[a-zA-Z ]*$\"\r\n minlength=\"3\" [formControlName]=\"'customerName'\" (change)=\"emitDataToParent()\">\r\n <mat-error\r\n *ngIf=\"customerFarmForm.get('customerName').hasError('required') && customerFarmConfiguration.requiredCustomerFarmFields.customerName \">\r\n Client Name is required\r\n </mat-error>\r\n <mat-error *ngIf=\"customerFarmForm.get('customerName').hasError('pattern')\">\r\n Please enter valid Client name\r\n </mat-error>\r\n <mat-error *ngIf=\"customerFarmForm.get('customerName').hasError('minlength')\">\r\n Client name must be of atleast 3 characters\r\n </mat-error>\r\n </mat-form-field>\r\n\r\n <mat-form-field class=\"flex-auto w-full\"\r\n *ngIf=\"customerFarmConfiguration.allowedCustomerFarmFields.defaultWarehouse\">\r\n <mat-label>Default Warehouse</mat-label>\r\n <input matInput id=\"defaultWarehouse\" placeholder=\"Default Warehouse\"\r\n [formControlName]=\"'defaultWarehouse'\" (change)=\"emitDataToParent()\">\r\n <mat-error\r\n *ngIf=\"customerFarmForm.get('defaultWarehouse').hasError('required') && customerFarmConfiguration.requiredCustomerFarmFields.defaultWarehouse\">\r\n Default Warehouse is required\r\n </mat-error>\r\n </mat-form-field>\r\n </div>\r\n\r\n <div class=\"sm:flex px-8 pt-4\">\r\n <mat-form-field class=\"flex-auto w-full mr-4\"\r\n *ngIf=\"customerFarmConfiguration.allowedCustomerFarmFields.personInCharge\">\r\n <mat-label>Person In Charge</mat-label>\r\n <input matInput id=\"personInCharge\" placeholder=\"Person In Charge\"\r\n [formControlName]=\"'personInCharge'\" (change)=\"emitDataToParent()\">\r\n <mat-error\r\n *ngIf=\"customerFarmForm.get('personInCharge').hasError('required') && customerFarmConfiguration.requiredCustomerFarmFields.personInCharge\">\r\n Person In Charge is required\r\n </mat-error>\r\n </mat-form-field>\r\n\r\n <mat-form-field class=\"flex-auto w-full\"\r\n *ngIf=\"customerFarmConfiguration.allowedCustomerFarmFields.displayName\">\r\n <mat-label>Display Name</mat-label>\r\n <input matInput id=\"displayName\" placeholder=\"Display Name\"\r\n [formControlName]=\"'displayName'\" (change)=\"emitDataToParent()\">\r\n </mat-form-field>\r\n </div>\r\n\r\n <div class=\"sm:flex px-8 pt-4\">\r\n <mat-form-field class=\"flex-auto w-full mr-4\"\r\n *ngIf=\"customerFarmConfiguration.allowedCustomerFarmFields.primaryVetId\">\r\n <mat-label>Primary Vet</mat-label>\r\n <input matInput id=\"primaryVetId\" placeholder=\"Primary Vet\"\r\n [formControlName]=\"'primaryVetId'\" (change)=\"emitDataToParent()\">\r\n <mat-error\r\n *ngIf=\"customerFarmForm.get('primaryVetId').hasError('required') && customerFarmConfiguration.requiredCustomerFarmFields.primaryVetId\">\r\n Primary Vet is required\r\n </mat-error>\r\n </mat-form-field>\r\n\r\n <mat-form-field class=\"flex-auto w-full\"\r\n *ngIf=\"customerFarmConfiguration.allowedCustomerFarmFields.PICTattoo\">\r\n <mat-label>PIC/Tattoo (if applicable)</mat-label>\r\n <input matInput id=\"PICTattoo\" placeholder=\"PIC/Tattoo\" [formControlName]=\"'PICTattoo'\"\r\n (change)=\"emitDataToParent()\">\r\n </mat-form-field>\r\n </div>\r\n </div>\r\n\r\n </div>\r\n <!-- Customer Farm section End -->\r\n\r\n </form>\r\n </div>\r\n <!-- form code ends here -->\r\n\r\n</div>","import { NgModule } from '@angular/core';\nimport { CustomerFarmComponent } from './customer-farm.component';\nimport { MatCheckboxModule } from '@angular/material/checkbox';\nimport { CdkStepperModule } from '@angular/cdk/stepper';\nimport { CommonModule } from '@angular/common';\nimport { ReactiveFormsModule, FormsModule } from '@angular/forms';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatOptionModule, MatNativeDateModule } from '@angular/material/core';\nimport { MatDatepickerModule } from '@angular/material/datepicker';\nimport { MatFormFieldModule } from '@angular/material/form-field';\nimport { MatGridListModule } from '@angular/material/grid-list';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatInputModule } from '@angular/material/input';\nimport { MatSelectModule } from '@angular/material/select';\nimport { MatStepperModule } from '@angular/material/stepper';\nimport { MatToolbarModule } from '@angular/material/toolbar';\nimport { ButtonsModule } from '@progress/kendo-angular-buttons';\nimport { GridModule, SharedModule, ExcelModule } from '@progress/kendo-angular-grid';\n\n@NgModule({\n declarations: [\n CustomerFarmComponent\n ],\n imports: [\n MatIconModule,\n MatInputModule,\n MatToolbarModule,\n ReactiveFormsModule,\n FormsModule,\n CommonModule,\n GridModule,\n ButtonsModule,\n MatGridListModule,\n MatFormFieldModule,\n ReactiveFormsModule,\n MatInputModule,\n MatOptionModule,\n MatSelectModule,\n MatCheckboxModule,\n SharedModule,\n MatButtonModule,\n MatDatepickerModule,\n MatNativeDateModule,\n ExcelModule,\n MatStepperModule,\n CdkStepperModule,\n ],\n exports: [\n CustomerFarmComponent\n ]\n})\nexport class CustomerFarmModule { }\n","/*\n * Public API Surface of customer-farm\n */\n\nexport * from './lib/customer-farm.service';\nexport * from './lib/customer-farm.component';\nexport * from './lib/customer-farm.module';\nexport * from './lib/dependencies/customer-farm-api-urls';\nexport * from './lib/dependencies/customer-farm-model';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i1","i1.CustomerFarmService"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;MAAa,mBAAmB,CAAA;AAAhC,IAAA,WAAA,GAAA;;AAEI,QAAA,IAAsB,CAAA,sBAAA,GAAW,0BAA0B,CAAC;;AAG5D,QAAA,IAAyB,CAAA,yBAAA,GAAW,yBAAyB,CAAC;;AAG9D,QAAA,IAAyB,CAAA,yBAAA,GAAW,yBAAyB,CAAC;;AAG9D,QAAA,IAAyB,CAAA,yBAAA,GAAW,yBAAyB,CAAC;;AAG9D,QAAA,IAAsB,CAAA,sBAAA,GAAW,yBAAyB,CAAC;;AAG3D,QAAA,IAA8B,CAAA,8BAAA,GAAW,kCAAkC,CAAC;KAC/E;AAAA;;MCTY,mBAAmB,CAAA;AAE5B,IAAA,WAAA,CAAoB,iBAAoC,EAAA;AAApC,QAAA,IAAiB,CAAA,iBAAA,GAAjB,iBAAiB,CAAmB;AAExD,QAAA,IAAA,CAAA,mBAAmB,GAAG,IAAI,mBAAmB,EAAE,CAAC;KAFa;AAI7D;;;;;;AAMG;AACU,IAAA,WAAW,CAAC,YAAoB,EAAA;;YACzC,IAAI;gBACA,MAAM,GAAG,GAAG,IAAI,CAAC,mBAAmB,CAAC,sBAAsB,GAAG,GAAG,GAAG,YAAY,CAAC;gBACjF,MAAM,cAAc,GAAG,MAAM,IAAI,CAAC,iBAAiB,CAAC,WAAW,CAAC,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ACjB,YAAY;QACZ,eAAe;QACf,mBAAmB;QACnB,mBAAmB;QACnB,WAAW;QACX,gBAAgB;QAChB,gBAAgB,aAGpB,qBAAqB,CAAA,EAAA,CAAA,CAAA;AAGZ,kBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,kBAAkB,YA3B3B,aAAa;QACT,cAAc;QACd,gBAAgB;QAChB,mBAAmB;QACnB,WAAW;QACX,YAAY;QACZ,UAAU;QACV,aAAa;QACb,iBAAiB;QACjB,kBAAkB;QAClB,mBAAmB;QACnB,cAAc;QACd,eAAe;QACf,eAAe;QACf,iBAAiB;QACjB,YAAY;QACZ,eAAe;QACf,mBAAmB;QACnB,mBAAmB;QACnB,WAAW;QACX,gBAAgB;QAChB,gBAAgB,CAAA,EAAA,CAAA,CAAA;2FAMX,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAhC9B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE;wBACZ,qBAAqB;AACtB,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,aAAa;wBACT,cAAc;wBACd,gBAAgB;wBAChB,mBAAmB;wBACnB,WAAW;wBACX,YAAY;wBACZ,UAAU;wBACV,aAAa;wBACb,iBAAiB;wBACjB,kBAAkB;wBAClB,mBAAmB;wBACnB,cAAc;wBACd,eAAe;wBACf,eAAe;wBACf,iBAAiB;wBACjB,YAAY;wBACZ,eAAe;wBACf,mBAAmB;wBACnB,mBAAmB;wBACnB,WAAW;wBACX,gBAAgB;wBAChB,gBAAgB;AACrB,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,qBAAqB;AACtB,qBAAA;iBACF,CAAA;;;AClDD;;AAEG;;ACFH;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"qubesense-customer-farm.mjs","sources":["../../../projects/customer-farm/src/lib/dependencies/customer-farm-api-urls.ts","../../../projects/customer-farm/src/lib/customer-farm.service.ts","../../../projects/customer-farm/src/lib/dependencies/customer-farm-model.ts","../../../projects/customer-farm/src/lib/customer-farm.component.ts","../../../projects/customer-farm/src/lib/customer-farm.component.html","../../../projects/customer-farm/src/lib/customer-farm.module.ts","../../../projects/customer-farm/src/public-api.ts","../../../projects/customer-farm/src/qubesense-customer-farm.ts"],"sourcesContent":["export class CustomerFarmApiUrls {\r\n //api Url string for get data by Id\r\n getCustomerFarmByIdUrl: string = 'api/CustomerFarm/GetById';\r\n \r\n //api Url string for insert Customer data\r\n insertCustomerFarmDataUrl: string = 'api/CustomerFarm/Create';\r\n\r\n //api Url string for update Customer record\r\n updateCustomerFarmDataUrl: string = 'api/CustomerFarm/Update';\r\n\r\n //api Url string for delete Customer record\r\n deleteCustomerFarmDataUrl: string = 'api/CustomerFarm/Delete';\r\n\r\n //api Url string for get Customer list\r\n getCustomerFarmListUrl: string = 'api/CustomerFarm/GetAll';\r\n \r\n //api Url string for get Customer dropdown list\r\n getCustomerFarmDropdownListUrl: string = 'api/CustomerFarm/GetDropdownList';\r\n}","import { Injectable } from '@angular/core';\r\nimport { DataAccessService, WebApiResult } from '@qubesense/base-services';\r\nimport { CustomerFarmApiUrls } from './dependencies/customer-farm-api-urls';\r\nimport { CustomerFarmModel } from './dependencies/customer-farm-model';\r\n\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class CustomerFarmService {\r\n\r\n constructor(private dataAccessService: DataAccessService) { }\r\n\r\n customerFarmApiUrls = new CustomerFarmApiUrls();\r\n\r\n /**\r\n * service for get customer data by Id\r\n * \r\n * @param customerGUID \r\n * \r\n * @returns Response Data from Database\r\n */\r\n public async GetDataById(customerGUID: string): Promise<WebApiResult> {\r\n try {\r\n const url = this.customerFarmApiUrls.getCustomerFarmByIdUrl + '/' + customerGUID;\r\n const resultResponse = await this.dataAccessService.GetDataById(url);\r\n return resultResponse;\r\n } catch (error) {\r\n throw error;\r\n }\r\n }\r\n\r\n /**\r\n * service for inserting customer data into database\r\n * \r\n * @param customerFarmModel \r\n * \r\n * @returns Response message from Database\r\n */\r\n public async InsertData(customerFarmModel: CustomerFarmModel) {\r\n try {\r\n const url = this.customerFarmApiUrls.insertCustomerFarmDataUrl;\r\n const resultResponse = await this.dataAccessService.InsertData(url, customerFarmModel);\r\n return resultResponse;\r\n } catch (error) {\r\n throw error;\r\n }\r\n }\r\n\r\n /**\r\n * service for update customer Data\r\n * \r\n * @param customerFarmModel \r\n * \r\n * @returns Response message from Database\r\n */\r\n public async UpdateData(customerFarmModel: CustomerFarmModel) {\r\n try {\r\n const url = this.customerFarmApiUrls.updateCustomerFarmDataUrl;\r\n const resultResponse = await this.dataAccessService.UpdateData(url, customerFarmModel);\r\n return resultResponse;\r\n } catch (error) {\r\n throw error;\r\n }\r\n }\r\n\r\n /**\r\n * service for delete customer data by GUID\r\n * \r\n * @param customerFarmModel \r\n * \r\n * @returns Response message from Database\r\n */\r\n public async DeleteData(recordId: any) {\r\n try {\r\n const url = this.customerFarmApiUrls.deleteCustomerFarmDataUrl + '/' + recordId;\r\n const resultResponse = await this.dataAccessService.DeleteData(url);\r\n return resultResponse;\r\n }\r\n catch (error) {\r\n throw error;\r\n }\r\n }\r\n\r\n /**\r\n * service for get data for customer grid \r\n * \r\n * @param customerFarmModel \r\n * \r\n * @returns Response Data from Database\r\n */\r\n public async GetListData(customerDataModel: CustomerFarmModel) {\r\n try {\r\n const url = this.customerFarmApiUrls.getCustomerFarmListUrl;\r\n const resultResponse = await this.dataAccessService.GetListData(url, customerDataModel);\r\n return resultResponse;\r\n } catch (error) {\r\n throw error;\r\n }\r\n }\r\n\r\n /**\r\n * service for get data for customer DropDown List\r\n * \r\n * @returns \r\n */\r\n public async GetCustomersDropdownList() {\r\n try {\r\n const url = this.customerFarmApiUrls.getCustomerFarmDropdownListUrl;\r\n const resultResponse = await this.dataAccessService.GetDropdownListData(url);\r\n return resultResponse;\r\n } catch (error) {\r\n throw error;\r\n }\r\n }\r\n}\r\n","export class CustomerFarmModel {\r\n formCode: string = null;\r\n formId: string = '';\r\n recordId: string = null;\r\n customerId: string = null;\r\n customerName: string = '';\r\n defaultWarehouse: string = '';\r\n personInCharge: string = '';\r\n displayName: string = '';\r\n primaryVetId: string = '';\r\n PICTattoo: string = '';\r\n isActive: boolean = true;\r\n isDeleted: boolean = false;\r\n}\r\n\r\nexport class CustomerFarmConfigrationModel {\r\n formCode: string = null;\r\n customerId: string = null;\r\n defaultView: boolean = false;\r\n showModal: boolean = false;\r\n isSearchable: boolean = false;\r\n showClientData: boolean = false;\r\n customerData: CustomerFarmModel = null;\r\n userMessages: boolean = false;\r\n requiredCustomerFarmSection: boolean = false;\r\n allowedCustomerFarmSection: boolean = false;\r\n requiredCustomerFarmFields: RequiredCustomerFarmFields = new RequiredCustomerFarmFields();\r\n allowedCustomerFarmFields: AllowedCustomerFarmFields = new AllowedCustomerFarmFields();\r\n}\r\n\r\nexport class RequiredCustomerFarmFields {\r\n customerName: boolean = true;\r\n customerId: boolean = true;\r\n defaultWarehouse: boolean = true;\r\n personInCharge: boolean = true;\r\n primaryVetId: boolean = true;\r\n displayName: boolean = true;\r\n PICTattoo: boolean = false;\r\n profileImageURL: boolean = false;\r\n}\r\n\r\nexport class AllowedCustomerFarmFields {\r\n customerName: boolean = true;\r\n defaultWarehouse: boolean = true;\r\n personInCharge: boolean = true;\r\n primaryVetId: boolean = true;\r\n PICTattoo: boolean = true;\r\n displayName: boolean = true;\r\n profileImageURL: boolean = false;\r\n\r\n}\r\n","import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core';\nimport { FormBuilder, FormGroup, Validators } from '@angular/forms';\nimport { CustomerFarmConfigrationModel, CustomerFarmModel } from './dependencies/customer-farm-model';\nimport { ErrorLogService, ToastrNotificationService } from '@qubesense/base-services';\nimport { CustomerFarmService } from './customer-farm.service';\n\n@Component({\n selector: 'lib-customer-farm',\n templateUrl: './customer-farm.component.html',\n styleUrls: ['./customer-farm.component.scss']\n})\nexport class CustomerFarmComponent implements OnInit {\n @Output() customerFarmData = new EventEmitter<any>();\n @Input() public customerFarmConfiguration: CustomerFarmConfigrationModel = new CustomerFarmConfigrationModel();\n customerFarmForm: FormGroup;\n userMessages: string[] = [];\n\n constructor(private customerFarmService: CustomerFarmService,\n private formBuilder: FormBuilder,\n private errorLogService: ErrorLogService,\n private toastr: ToastrNotificationService\n ) { }\n\n ngOnInit() {\n this.DeclareForm();\n }\n\n DeclareForm() {\n this.customerFarmForm = this.formBuilder.group({\n recordId : [null],\n customerId : [null],\n customerName : [null],\n defaultWarehouse : [null],\n personInCharge : [null],\n displayName : [null],\n primaryVetId : [null],\n PICTattoo : [null],\n isActive : [true]\n });\n if (this.customerFarmConfiguration.requiredCustomerFarmFields.customerName) {\n this.customerFarmForm.get('customerName').addValidators(Validators.required);\n this.customerFarmForm.get('customerName').addValidators(Validators.pattern('^[a-zA-Z ]*$'));\n this.customerFarmForm.get('customerName').addValidators(Validators.minLength(3));\n }\n if (this.customerFarmConfiguration.requiredCustomerFarmFields.defaultWarehouse) {\n this.customerFarmForm.get('defaultWarehouse').addValidators(Validators.required);\n }\n if (this.customerFarmConfiguration.requiredCustomerFarmFields.personInCharge) {\n this.customerFarmForm.get('personInCharge').addValidators(Validators.required);\n }\n if (this.customerFarmConfiguration.requiredCustomerFarmFields.primaryVetId) {\n this.customerFarmForm.get('primaryVetId').addValidators(Validators.required);\n }\n\n }\n\n ///////////////////////////////////standard methods/////////////////////////////////////////////////////\n\n /**\n * @description\n *\n * edit data list item using data item GUID\n *\n * @param customerId\n *\n * gets customer GUID from gridData and passes it to this function\n */\n async EditData(customerId:string) {\n try {\n const getResponse = await this.customerFarmService.GetDataById(customerId);\n this.customerFarmForm.controls['recordId'].setValue(getResponse.apiData.recordId);\n this.customerFarmForm.controls['customerId'].setValue(getResponse.apiData.customerId);\n this.customerFarmForm.controls['customerName'].setValue(getResponse.apiData.customerName);\n this.customerFarmForm.controls['defaultWarehouse'].setValue(getResponse.apiData.defaultWarehouse);\n this.customerFarmForm.controls['personInCharge'].setValue(getResponse.apiData.personInCharge);\n this.customerFarmForm.controls['displayName'].setValue(getResponse.apiData.displayName);\n this.customerFarmForm.controls['primaryVetId'].setValue(getResponse.apiData.primaryVetId);\n this.customerFarmForm.controls['PICTattoo'].setValue(getResponse.apiData.PICTattoo);\n this.customerFarmForm.controls['isActive'].setValue(getResponse.apiData.isActive);\n }\n catch (error) {\n this.errorLogService.saveError(error);\n this.toastr.ShowAllErrors(error.error.message.userMessage);\n }\n }\n\n /**\n * @description\n *\n * this method converts all form inputs into model class\n *\n * @returns model with new form values\n */\n ConvertFormToModel() {\n const customerFarmModel = new CustomerFarmModel();\n customerFarmModel.recordId = this.customerFarmForm.value.recordId;\n customerFarmModel.customerId = this.customerFarmForm.value.customerId;\n customerFarmModel.customerName = this.customerFarmForm.value.customerName;\n customerFarmModel.defaultWarehouse = this.customerFarmForm.value.defaultWarehouse;\n customerFarmModel.personInCharge = this.customerFarmForm.value.personInCharge;\n customerFarmModel.displayName = this.customerFarmForm.value.displayName;\n customerFarmModel.primaryVetId = this.customerFarmForm.value.primaryVetId;\n customerFarmModel.PICTattoo = this.customerFarmForm.value.PICTattoo;\n customerFarmModel.formCode = this.customerFarmConfiguration.formCode;\n\n return customerFarmModel;\n }\n\n /**\n * @description\n * clear form data\n */\n ClearForm() {\n this.DeclareForm();\n }\n\n emitDataToParent() {\n let customerFarmModel = new CustomerFarmModel();\n customerFarmModel = this.ConvertFormToModel();\n this.customerFarmData.emit(customerFarmModel);\n }\n\n /**\n * @description\n *\n * Insert customer data into database\n */\n public async InsertData() {\n let customerFarmModel = new CustomerFarmModel();\n customerFarmModel = this.ConvertFormToModel();\n const getResponse = await this.customerFarmService.InsertData(customerFarmModel);\n this.userMessages = getResponse.message.userMessage;\n if (this.customerFarmConfiguration.userMessages) {\n this.toastr.ShowSuccess(this.userMessages.toString());\n }\n }\n\n /**\n * @description\n *\n * update customer data into database\n */\n public async UpdateData() {\n let customerFarmModel = new CustomerFarmModel();\n customerFarmModel = this.ConvertFormToModel();\n const getResponse = await this.customerFarmService.UpdateData(customerFarmModel);\n this.userMessages = getResponse.message.userMessage;\n if (this.customerFarmConfiguration.userMessages) {\n this.toastr.ShowSuccess(this.userMessages.toString());\n }\n }\n\n /**\n * @description\n *\n * Delete customer data into database\n */\n public async DeleteData(value) {\n const getResponse = await this.customerFarmService.DeleteData(value);\n this.userMessages = getResponse.message.userMessage;\n if (this.customerFarmConfiguration.userMessages) {\n this.toastr.ShowSuccess(this.userMessages.toString());\n }\n }\n}\n","<div class=\"flex flex-col flex-auto min-w-0 w-full\">\r\n <!-- form code starts here -->\r\n <!--content-->\r\n <div class=\"sm:w-full overflow-hidden\" *ngIf=\"customerFarmConfiguration.showModal\">\r\n\r\n <!--form body-->\r\n <form class=\"flex flex-col overflow-hidden\" [formGroup]=\"customerFarmForm\">\r\n <!-- Customer Farm section start -->\r\n\r\n <div class=\"sm:flex\">\r\n <div class=\"w-full\">\r\n <div class=\"sm:flex px-8 pt-4\">\r\n <mat-form-field class=\"flex-auto w-full mr-4\"\r\n *ngIf=\"customerFarmConfiguration.allowedCustomerFarmFields.customerName\">\r\n <mat-label>Client Name</mat-label>\r\n <input matInput id=\"customerName\" placeholder=\"Client Name\" pattern=\"^[a-zA-Z ]*$\"\r\n minlength=\"3\" [formControlName]=\"'customerName'\" (change)=\"emitDataToParent()\">\r\n <mat-error\r\n *ngIf=\"customerFarmForm.get('customerName').hasError('required') && customerFarmConfiguration.requiredCustomerFarmFields.customerName \">\r\n Client Name is required\r\n </mat-error>\r\n <mat-error *ngIf=\"customerFarmForm.get('customerName').hasError('pattern')\">\r\n Please enter valid Client name\r\n </mat-error>\r\n <mat-error *ngIf=\"customerFarmForm.get('customerName').hasError('minlength')\">\r\n Client name must be of atleast 3 characters\r\n </mat-error>\r\n </mat-form-field>\r\n\r\n <mat-form-field class=\"flex-auto w-full\"\r\n *ngIf=\"customerFarmConfiguration.allowedCustomerFarmFields.defaultWarehouse\">\r\n <mat-label>Default Warehouse</mat-label>\r\n <input matInput id=\"defaultWarehouse\" placeholder=\"Default Warehouse\"\r\n [formControlName]=\"'defaultWarehouse'\" (change)=\"emitDataToParent()\">\r\n <mat-error\r\n *ngIf=\"customerFarmForm.get('defaultWarehouse').hasError('required') && customerFarmConfiguration.requiredCustomerFarmFields.defaultWarehouse\">\r\n Default Warehouse is required\r\n </mat-error>\r\n </mat-form-field>\r\n </div>\r\n\r\n <div class=\"sm:flex px-8 pt-4\">\r\n <mat-form-field class=\"flex-auto w-full mr-4\"\r\n *ngIf=\"customerFarmConfiguration.allowedCustomerFarmFields.personInCharge\">\r\n <mat-label>Person In Charge</mat-label>\r\n <input matInput id=\"personInCharge\" placeholder=\"Person In Charge\"\r\n [formControlName]=\"'personInCharge'\" (change)=\"emitDataToParent()\">\r\n <mat-error\r\n *ngIf=\"customerFarmForm.get('personInCharge').hasError('required') && customerFarmConfiguration.requiredCustomerFarmFields.personInCharge\">\r\n Person In Charge is required\r\n </mat-error>\r\n </mat-form-field>\r\n\r\n <mat-form-field class=\"flex-auto w-full\"\r\n *ngIf=\"customerFarmConfiguration.allowedCustomerFarmFields.displayName\">\r\n <mat-label>Display Name</mat-label>\r\n <input matInput id=\"displayName\" placeholder=\"Display Name\"\r\n [formControlName]=\"'displayName'\" (change)=\"emitDataToParent()\">\r\n </mat-form-field>\r\n </div>\r\n\r\n <div class=\"sm:flex px-8 pt-4\">\r\n <mat-form-field class=\"flex-auto w-full mr-4\"\r\n *ngIf=\"customerFarmConfiguration.allowedCustomerFarmFields.primaryVetId\">\r\n <mat-label>Primary Vet</mat-label>\r\n <input matInput id=\"primaryVetId\" placeholder=\"Primary Vet\"\r\n [formControlName]=\"'primaryVetId'\" (change)=\"emitDataToParent()\">\r\n <mat-error\r\n *ngIf=\"customerFarmForm.get('primaryVetId').hasError('required') && customerFarmConfiguration.requiredCustomerFarmFields.primaryVetId\">\r\n Primary Vet is required\r\n </mat-error>\r\n </mat-form-field>\r\n\r\n <mat-form-field class=\"flex-auto w-full\"\r\n *ngIf=\"customerFarmConfiguration.allowedCustomerFarmFields.PICTattoo\">\r\n <mat-label>PIC/Tattoo (if applicable)</mat-label>\r\n <input matInput id=\"PICTattoo\" placeholder=\"PIC/Tattoo\" [formControlName]=\"'PICTattoo'\"\r\n (change)=\"emitDataToParent()\">\r\n </mat-form-field>\r\n </div>\r\n </div>\r\n\r\n </div>\r\n <!-- Customer Farm section End -->\r\n\r\n </form>\r\n </div>\r\n <!-- form code ends here -->\r\n\r\n</div>","import { NgModule } from '@angular/core';\nimport { CustomerFarmComponent } from './customer-farm.component';\nimport { MatCheckboxModule } from '@angular/material/checkbox';\nimport { CdkStepperModule } from '@angular/cdk/stepper';\nimport { CommonModule } from '@angular/common';\nimport { ReactiveFormsModule, FormsModule } from '@angular/forms';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatOptionModule, MatNativeDateModule } from '@angular/material/core';\nimport { MatDatepickerModule } from '@angular/material/datepicker';\nimport { MatFormFieldModule } from '@angular/material/form-field';\nimport { MatGridListModule } from '@angular/material/grid-list';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatInputModule } from '@angular/material/input';\nimport { MatSelectModule } from '@angular/material/select';\nimport { MatStepperModule } from '@angular/material/stepper';\nimport { MatToolbarModule } from '@angular/material/toolbar';\nimport { ButtonsModule } from '@progress/kendo-angular-buttons';\nimport { GridModule, SharedModule, ExcelModule } from '@progress/kendo-angular-grid';\n\n@NgModule({\n declarations: [\n CustomerFarmComponent\n ],\n imports: [\n MatIconModule,\n MatInputModule,\n MatToolbarModule,\n ReactiveFormsModule,\n FormsModule,\n CommonModule,\n GridModule,\n ButtonsModule,\n MatGridListModule,\n MatFormFieldModule,\n ReactiveFormsModule,\n MatInputModule,\n MatOptionModule,\n MatSelectModule,\n MatCheckboxModule,\n SharedModule,\n MatButtonModule,\n MatDatepickerModule,\n MatNativeDateModule,\n ExcelModule,\n MatStepperModule,\n CdkStepperModule,\n ],\n exports: [\n CustomerFarmComponent\n ]\n})\nexport class CustomerFarmModule { }\n","/*\n * Public API Surface of customer-farm\n */\n\nexport * from './lib/customer-farm.service';\nexport * from './lib/customer-farm.component';\nexport * from './lib/customer-farm.module';\nexport * from './lib/dependencies/customer-farm-api-urls';\nexport * from './lib/dependencies/customer-farm-model';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i1","i1.CustomerFarmService"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;MAAa,mBAAmB,CAAA;AAAhC,IAAA,WAAA,GAAA;;AAEI,QAAA,IAAsB,CAAA,sBAAA,GAAW,0BAA0B,CAAC;;AAG5D,QAAA,IAAyB,CAAA,yBAAA,GAAW,yBAAyB,CAAC;;AAG9D,QAAA,IAAyB,CAAA,yBAAA,GAAW,yBAAyB,CAAC;;AAG9D,QAAA,IAAyB,CAAA,yBAAA,GAAW,yBAAyB,CAAC;;AAG9D,QAAA,IAAsB,CAAA,sBAAA,GAAW,yBAAyB,CAAC;;AAG3D,QAAA,IAA8B,CAAA,8BAAA,GAAW,kCAAkC,CAAC;KAC/E;AAAA;;MCTY,mBAAmB,CAAA;AAE5B,IAAA,WAAA,CAAoB,iBAAoC,EAAA;AAApC,QAAA,IAAiB,CAAA,iBAAA,GAAjB,iBAAiB,CAAmB;AAExD,QAAA,IAAA,CAAA,mBAAmB,GAAG,IAAI,mBAAmB,EAAE,CAAC;KAFa;AAI7D;;;;;;AAMG;AACU,IAAA,WAAW,CAAC,YAAoB,EAAA;;YACzC,IAAI;gBACA,MAAM,GAAG,GAAG,IAAI,CAAC,mBAAmB,CAAC,sBAAsB,GAAG,GAAG,GAAG,YAAY,CAAC;gBACjF,MAAM,cAAc,GAAG,MAAM,IAAI,CAAC,iBAAiB,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;AACrE,gBAAA,OAAO,cAAc,CAAC;AACzB,aAAA;AAAC,YAAA,OAAO,KAAK,EAAE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,aAAa;wBACb,iBAAiB;wBACjB,kBAAkB;wBAClB,mBAAmB;wBACnB,cAAc;wBACd,eAAe;wBACf,eAAe;wBACf,iBAAiB;wBACjB,YAAY;wBACZ,eAAe;wBACf,mBAAmB;wBACnB,mBAAmB;wBACnB,WAAW;wBACX,gBAAgB;wBAChB,gBAAgB;AACrB,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,qBAAqB;AACtB,qBAAA;iBACF,CAAA;;;AClDD;;AAEG;;ACFH;;AAEG;;;;"}
|
|
@@ -222,9 +222,6 @@ class CustomerFarmComponent {
|
|
|
222
222
|
}
|
|
223
223
|
ngOnInit() {
|
|
224
224
|
this.DeclareForm();
|
|
225
|
-
if (this.customerFarmConfiguration.customerData != null) {
|
|
226
|
-
this.EditData();
|
|
227
|
-
}
|
|
228
225
|
}
|
|
229
226
|
DeclareForm() {
|
|
230
227
|
this.customerFarmForm = this.formBuilder.group({
|
|
@@ -259,21 +256,22 @@ class CustomerFarmComponent {
|
|
|
259
256
|
*
|
|
260
257
|
* edit data list item using data item GUID
|
|
261
258
|
*
|
|
262
|
-
* @param
|
|
259
|
+
* @param customerId
|
|
263
260
|
*
|
|
264
261
|
* gets customer GUID from gridData and passes it to this function
|
|
265
262
|
*/
|
|
266
|
-
async EditData() {
|
|
263
|
+
async EditData(customerId) {
|
|
267
264
|
try {
|
|
268
|
-
this.
|
|
269
|
-
this.customerFarmForm.controls['
|
|
270
|
-
this.customerFarmForm.controls['
|
|
271
|
-
this.customerFarmForm.controls['
|
|
272
|
-
this.customerFarmForm.controls['
|
|
273
|
-
this.customerFarmForm.controls['
|
|
274
|
-
this.customerFarmForm.controls['
|
|
275
|
-
this.customerFarmForm.controls['
|
|
276
|
-
this.customerFarmForm.controls['
|
|
265
|
+
const getResponse = await this.customerFarmService.GetDataById(customerId);
|
|
266
|
+
this.customerFarmForm.controls['recordId'].setValue(getResponse.apiData.recordId);
|
|
267
|
+
this.customerFarmForm.controls['customerId'].setValue(getResponse.apiData.customerId);
|
|
268
|
+
this.customerFarmForm.controls['customerName'].setValue(getResponse.apiData.customerName);
|
|
269
|
+
this.customerFarmForm.controls['defaultWarehouse'].setValue(getResponse.apiData.defaultWarehouse);
|
|
270
|
+
this.customerFarmForm.controls['personInCharge'].setValue(getResponse.apiData.personInCharge);
|
|
271
|
+
this.customerFarmForm.controls['displayName'].setValue(getResponse.apiData.displayName);
|
|
272
|
+
this.customerFarmForm.controls['primaryVetId'].setValue(getResponse.apiData.primaryVetId);
|
|
273
|
+
this.customerFarmForm.controls['PICTattoo'].setValue(getResponse.apiData.PICTattoo);
|
|
274
|
+
this.customerFarmForm.controls['isActive'].setValue(getResponse.apiData.isActive);
|
|
277
275
|
}
|
|
278
276
|
catch (error) {
|
|
279
277
|
this.errorLogService.saveError(error);
|
|
@@ -313,30 +311,17 @@ class CustomerFarmComponent {
|
|
|
313
311
|
this.customerFarmData.emit(customerFarmModel);
|
|
314
312
|
}
|
|
315
313
|
/**
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
314
|
+
* @description
|
|
315
|
+
*
|
|
316
|
+
* Insert customer data into database
|
|
317
|
+
*/
|
|
320
318
|
async InsertData() {
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
if (this.customerFarmConfiguration.userMessages) {
|
|
328
|
-
this.toastr.ShowSuccess(this.userMessages.toString());
|
|
329
|
-
}
|
|
330
|
-
this.ClearForm();
|
|
331
|
-
}
|
|
332
|
-
else {
|
|
333
|
-
this.customerFarmForm.markAllAsTouched();
|
|
334
|
-
this.toastr.ShowWarning("Please enter valid data!");
|
|
335
|
-
}
|
|
336
|
-
}
|
|
337
|
-
catch (error) {
|
|
338
|
-
this.errorLogService.saveError(error);
|
|
339
|
-
this.toastr.ShowAllErrors(error.error.message.userMessage);
|
|
319
|
+
let customerFarmModel = new CustomerFarmModel();
|
|
320
|
+
customerFarmModel = this.ConvertFormToModel();
|
|
321
|
+
const getResponse = await this.customerFarmService.InsertData(customerFarmModel);
|
|
322
|
+
this.userMessages = getResponse.message.userMessage;
|
|
323
|
+
if (this.customerFarmConfiguration.userMessages) {
|
|
324
|
+
this.toastr.ShowSuccess(this.userMessages.toString());
|
|
340
325
|
}
|
|
341
326
|
}
|
|
342
327
|
/**
|
|
@@ -345,25 +330,24 @@ class CustomerFarmComponent {
|
|
|
345
330
|
* update customer data into database
|
|
346
331
|
*/
|
|
347
332
|
async UpdateData() {
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
if (this.customerFarmConfiguration.userMessages) {
|
|
355
|
-
this.toastr.ShowSuccess(this.userMessages.toString());
|
|
356
|
-
}
|
|
357
|
-
this.ClearForm();
|
|
358
|
-
}
|
|
359
|
-
else {
|
|
360
|
-
this.customerFarmForm.markAllAsTouched();
|
|
361
|
-
this.toastr.ShowWarning("Please enter valid data!");
|
|
362
|
-
}
|
|
333
|
+
let customerFarmModel = new CustomerFarmModel();
|
|
334
|
+
customerFarmModel = this.ConvertFormToModel();
|
|
335
|
+
const getResponse = await this.customerFarmService.UpdateData(customerFarmModel);
|
|
336
|
+
this.userMessages = getResponse.message.userMessage;
|
|
337
|
+
if (this.customerFarmConfiguration.userMessages) {
|
|
338
|
+
this.toastr.ShowSuccess(this.userMessages.toString());
|
|
363
339
|
}
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
340
|
+
}
|
|
341
|
+
/**
|
|
342
|
+
* @description
|
|
343
|
+
*
|
|
344
|
+
* Delete customer data into database
|
|
345
|
+
*/
|
|
346
|
+
async DeleteData(value) {
|
|
347
|
+
const getResponse = await this.customerFarmService.DeleteData(value);
|
|
348
|
+
this.userMessages = getResponse.message.userMessage;
|
|
349
|
+
if (this.customerFarmConfiguration.userMessages) {
|
|
350
|
+
this.toastr.ShowSuccess(this.userMessages.toString());
|
|
367
351
|
}
|
|
368
352
|
}
|
|
369
353
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"qubesense-customer-farm.mjs","sources":["../../../projects/customer-farm/src/lib/dependencies/customer-farm-api-urls.ts","../../../projects/customer-farm/src/lib/customer-farm.service.ts","../../../projects/customer-farm/src/lib/dependencies/customer-farm-model.ts","../../../projects/customer-farm/src/lib/customer-farm.component.ts","../../../projects/customer-farm/src/lib/customer-farm.component.html","../../../projects/customer-farm/src/lib/customer-farm.module.ts","../../../projects/customer-farm/src/public-api.ts","../../../projects/customer-farm/src/qubesense-customer-farm.ts"],"sourcesContent":["export class CustomerFarmApiUrls {\r\n //api Url string for get data by Id\r\n getCustomerFarmByIdUrl: string = 'api/CustomerFarm/GetById';\r\n \r\n //api Url string for insert Customer data\r\n insertCustomerFarmDataUrl: string = 'api/CustomerFarm/Create';\r\n\r\n //api Url string for update Customer record\r\n updateCustomerFarmDataUrl: string = 'api/CustomerFarm/Update';\r\n\r\n //api Url string for delete Customer record\r\n deleteCustomerFarmDataUrl: string = 'api/CustomerFarm/Delete';\r\n\r\n //api Url string for get Customer list\r\n getCustomerFarmListUrl: string = 'api/CustomerFarm/GetAll';\r\n \r\n //api Url string for get Customer dropdown list\r\n getCustomerFarmDropdownListUrl: string = 'api/CustomerFarm/GetDropdownList';\r\n}","import { Injectable } from '@angular/core';\r\nimport { DataAccessService, WebApiResult } from '@qubesense/base-services';\r\nimport { CustomerFarmApiUrls } from './dependencies/customer-farm-api-urls';\r\nimport { CustomerFarmModel } from './dependencies/customer-farm-model';\r\n\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class CustomerFarmService {\r\n\r\n constructor(private dataAccessService: DataAccessService) { }\r\n\r\n customerFarmApiUrls = new CustomerFarmApiUrls();\r\n\r\n /**\r\n * service for get customer data by Id\r\n * \r\n * @param customerGUID \r\n * \r\n * @returns Response Data from Database\r\n */\r\n public async GetDataById(customerGUID: string): Promise<WebApiResult> {\r\n try {\r\n const url = this.customerFarmApiUrls.getCustomerFarmByIdUrl + '/' + customerGUID;\r\n const resultResponse = await this.dataAccessService.GetDataById(url);\r\n return resultResponse;\r\n } catch (error) {\r\n throw error;\r\n }\r\n }\r\n\r\n /**\r\n * service for inserting customer data into database\r\n * \r\n * @param customerFarmModel \r\n * \r\n * @returns Response message from Database\r\n */\r\n public async InsertData(customerFarmModel: CustomerFarmModel) {\r\n try {\r\n const url = this.customerFarmApiUrls.insertCustomerFarmDataUrl;\r\n const resultResponse = await this.dataAccessService.InsertData(url, customerFarmModel);\r\n return resultResponse;\r\n } catch (error) {\r\n throw error;\r\n }\r\n }\r\n\r\n /**\r\n * service for update customer Data\r\n * \r\n * @param customerFarmModel \r\n * \r\n * @returns Response message from Database\r\n */\r\n public async UpdateData(customerFarmModel: CustomerFarmModel) {\r\n try {\r\n const url = this.customerFarmApiUrls.updateCustomerFarmDataUrl;\r\n const resultResponse = await this.dataAccessService.UpdateData(url, customerFarmModel);\r\n return resultResponse;\r\n } catch (error) {\r\n throw error;\r\n }\r\n }\r\n\r\n /**\r\n * service for delete customer data by GUID\r\n * \r\n * @param customerFarmModel \r\n * \r\n * @returns Response message from Database\r\n */\r\n public async DeleteData(recordId: any) {\r\n try {\r\n const url = this.customerFarmApiUrls.deleteCustomerFarmDataUrl + '/' + recordId;\r\n const resultResponse = await this.dataAccessService.DeleteData(url);\r\n return resultResponse;\r\n }\r\n catch (error) {\r\n throw error;\r\n }\r\n }\r\n\r\n /**\r\n * service for get data for customer grid \r\n * \r\n * @param customerFarmModel \r\n * \r\n * @returns Response Data from Database\r\n */\r\n public async GetListData(customerDataModel: CustomerFarmModel) {\r\n try {\r\n const url = this.customerFarmApiUrls.getCustomerFarmListUrl;\r\n const resultResponse = await this.dataAccessService.GetListData(url, customerDataModel);\r\n return resultResponse;\r\n } catch (error) {\r\n throw error;\r\n }\r\n }\r\n\r\n /**\r\n * service for get data for customer DropDown List\r\n * \r\n * @returns \r\n */\r\n public async GetCustomersDropdownList() {\r\n try {\r\n const url = this.customerFarmApiUrls.getCustomerFarmDropdownListUrl;\r\n const resultResponse = await this.dataAccessService.GetDropdownListData(url);\r\n return resultResponse;\r\n } catch (error) {\r\n throw error;\r\n }\r\n }\r\n}\r\n","export class CustomerFarmModel {\r\n formCode: string = null;\r\n formId: string = '';\r\n recordId: string = null;\r\n customerId: string = null;\r\n customerName: string = '';\r\n defaultWarehouse: string = '';\r\n personInCharge: string = '';\r\n displayName: string = '';\r\n primaryVetId: string = '';\r\n PICTattoo: string = '';\r\n isActive: boolean = true;\r\n isDeleted: boolean = false;\r\n}\r\n\r\nexport class CustomerFarmConfigrationModel {\r\n formCode: string = null;\r\n customerId: string = null;\r\n defaultView: boolean = false;\r\n showModal: boolean = false;\r\n isSearchable: boolean = false;\r\n showClientData: boolean = false;\r\n customerData: CustomerFarmModel = null;\r\n userMessages: boolean = false;\r\n requiredCustomerFarmSection: boolean = false;\r\n allowedCustomerFarmSection: boolean = false;\r\n requiredCustomerFarmFields: RequiredCustomerFarmFields = new RequiredCustomerFarmFields();\r\n allowedCustomerFarmFields: AllowedCustomerFarmFields = new AllowedCustomerFarmFields();\r\n}\r\n\r\nexport class RequiredCustomerFarmFields {\r\n customerName: boolean = true;\r\n customerId: boolean = true;\r\n defaultWarehouse: boolean = true;\r\n personInCharge: boolean = true;\r\n primaryVetId: boolean = true;\r\n displayName: boolean = true;\r\n PICTattoo: boolean = false;\r\n profileImageURL: boolean = false;\r\n}\r\n\r\nexport class AllowedCustomerFarmFields {\r\n customerName: boolean = true;\r\n defaultWarehouse: boolean = true;\r\n personInCharge: boolean = true;\r\n primaryVetId: boolean = true;\r\n PICTattoo: boolean = true;\r\n displayName: boolean = true;\r\n profileImageURL: boolean = false;\r\n\r\n}\r\n","import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core';\nimport { FormBuilder, FormGroup, Validators } from '@angular/forms';\nimport { CustomerFarmConfigrationModel, CustomerFarmModel } from './dependencies/customer-farm-model';\nimport { ErrorLogService, ToastrNotificationService } from '@qubesense/base-services';\nimport { CustomerFarmService } from './customer-farm.service';\n\n@Component({\n selector: 'lib-customer-farm',\n templateUrl: './customer-farm.component.html',\n styleUrls: ['./customer-farm.component.scss']\n})\nexport class CustomerFarmComponent implements OnInit {\n @Output() customerFarmData = new EventEmitter<any>();\n @Input() public customerFarmConfiguration: CustomerFarmConfigrationModel = new CustomerFarmConfigrationModel();\n customerFarmForm: FormGroup;\n userMessages: string[] = [];\n\n constructor(private customerFarmService: CustomerFarmService,\n private formBuilder: FormBuilder,\n private errorLogService: ErrorLogService,\n private toastr: ToastrNotificationService\n ) { }\n\n ngOnInit() {\n this.DeclareForm();\n if (this.customerFarmConfiguration.customerData != null) {\n this.EditData();\n }\n }\n\n DeclareForm() {\n this.customerFarmForm = this.formBuilder.group({\n recordId : [null],\n customerId : [null],\n customerName : [null],\n defaultWarehouse : [null],\n personInCharge : [null],\n displayName : [null],\n primaryVetId : [null],\n PICTattoo : [null],\n isActive : [true]\n });\n if (this.customerFarmConfiguration.requiredCustomerFarmFields.customerName) {\n this.customerFarmForm.get('customerName').addValidators(Validators.required);\n this.customerFarmForm.get('customerName').addValidators(Validators.pattern('^[a-zA-Z ]*$'));\n this.customerFarmForm.get('customerName').addValidators(Validators.minLength(3));\n }\n if (this.customerFarmConfiguration.requiredCustomerFarmFields.defaultWarehouse) {\n this.customerFarmForm.get('defaultWarehouse').addValidators(Validators.required);\n }\n if (this.customerFarmConfiguration.requiredCustomerFarmFields.personInCharge) {\n this.customerFarmForm.get('personInCharge').addValidators(Validators.required);\n }\n if (this.customerFarmConfiguration.requiredCustomerFarmFields.primaryVetId) {\n this.customerFarmForm.get('primaryVetId').addValidators(Validators.required);\n }\n\n }\n\n ///////////////////////////////////standard methods/////////////////////////////////////////////////////\n\n /**\n * @description\n *\n * edit data list item using data item GUID\n *\n * @param recordId\n *\n * gets customer GUID from gridData and passes it to this function\n */\n async EditData() {\n try {\n this.customerFarmForm.controls['recordId'].setValue(this.customerFarmConfiguration.customerData.recordId);\n this.customerFarmForm.controls['customerId'].setValue(this.customerFarmConfiguration.customerData.customerId);\n this.customerFarmForm.controls['customerName'].setValue(this.customerFarmConfiguration.customerData.customerName);\n this.customerFarmForm.controls['defaultWarehouse'].setValue(this.customerFarmConfiguration.customerData.defaultWarehouse);\n this.customerFarmForm.controls['personInCharge'].setValue(this.customerFarmConfiguration.customerData.personInCharge);\n this.customerFarmForm.controls['displayName'].setValue(this.customerFarmConfiguration.customerData.displayName);\n this.customerFarmForm.controls['primaryVetId'].setValue(this.customerFarmConfiguration.customerData.primaryVetId);\n this.customerFarmForm.controls['PICTattoo'].setValue(this.customerFarmConfiguration.customerData.PICTattoo);\n this.customerFarmForm.controls['isActive'].setValue(this.customerFarmConfiguration.customerData.isActive);\n\n }\n catch (error) {\n this.errorLogService.saveError(error);\n this.toastr.ShowAllErrors(error.error.message.userMessage);\n }\n }\n\n\n\n /**\n * @description\n *\n * this method converts all form inputs into model class\n *\n * @returns model with new form values\n */\n ConvertFormToModel() {\n const customerFarmModel = new CustomerFarmModel();\n customerFarmModel.recordId = this.customerFarmForm.value.recordId;\n customerFarmModel.customerId = this.customerFarmForm.value.customerId;\n customerFarmModel.customerName = this.customerFarmForm.value.customerName;\n customerFarmModel.defaultWarehouse = this.customerFarmForm.value.defaultWarehouse;\n customerFarmModel.personInCharge = this.customerFarmForm.value.personInCharge;\n customerFarmModel.displayName = this.customerFarmForm.value.displayName;\n customerFarmModel.primaryVetId = this.customerFarmForm.value.primaryVetId;\n customerFarmModel.PICTattoo = this.customerFarmForm.value.PICTattoo;\n customerFarmModel.formCode = this.customerFarmConfiguration.formCode;\n\n return customerFarmModel;\n }\n\n /**\n * @description\n * clear form data\n */\n ClearForm() {\n this.DeclareForm();\n }\n\n emitDataToParent() {\n let customerFarmModel = new CustomerFarmModel();\n customerFarmModel = this.ConvertFormToModel();\n this.customerFarmData.emit(customerFarmModel);\n }\n\n\n /**\n * @description\n *\n * Insert customer data into database\n */\n public async InsertData() {\n try {\n let customerFarmModel = new CustomerFarmModel();\n customerFarmModel = this.ConvertFormToModel();\n if (!this.customerFarmForm.invalid) {\n const getResponse = await this.customerFarmService.InsertData(customerFarmModel);\n this.userMessages = getResponse.message.userMessage;\n if (this.customerFarmConfiguration.userMessages) {\n this.toastr.ShowSuccess(this.userMessages.toString());\n }\n this.ClearForm();\n } else {\n this.customerFarmForm.markAllAsTouched();\n this.toastr.ShowWarning(\"Please enter valid data!\");\n }\n } catch (error) {\n this.errorLogService.saveError(error);\n this.toastr.ShowAllErrors(error.error.message.userMessage);\n }\n }\n \n /**\n * @description\n *\n * update customer data into database\n */\n public async UpdateData() {\n try {\n let customerFarmModel = new CustomerFarmModel();\n customerFarmModel = this.ConvertFormToModel();\n if (!this.customerFarmForm.invalid) {\n const getResponse = await this.customerFarmService.UpdateData(customerFarmModel);\n this.userMessages = getResponse.message.userMessage;\n if (this.customerFarmConfiguration.userMessages) {\n this.toastr.ShowSuccess(this.userMessages.toString());\n }\n this.ClearForm();\n } else {\n this.customerFarmForm.markAllAsTouched();\n this.toastr.ShowWarning(\"Please enter valid data!\");\n }\n } catch (error) {\n this.errorLogService.saveError(error);\n this.toastr.ShowAllErrors(error.error.message.userMessage);\n }\n }\n\n}\n","<div class=\"flex flex-col flex-auto min-w-0 w-full\">\r\n <!-- form code starts here -->\r\n <!--content-->\r\n <div class=\"sm:w-full overflow-hidden\" *ngIf=\"customerFarmConfiguration.showModal\">\r\n\r\n <!--form body-->\r\n <form class=\"flex flex-col overflow-hidden\" [formGroup]=\"customerFarmForm\">\r\n <!-- Customer Farm section start -->\r\n\r\n <div class=\"sm:flex\">\r\n <div class=\"w-full\">\r\n <div class=\"sm:flex px-8 pt-4\">\r\n <mat-form-field class=\"flex-auto w-full mr-4\"\r\n *ngIf=\"customerFarmConfiguration.allowedCustomerFarmFields.customerName\">\r\n <mat-label>Client Name</mat-label>\r\n <input matInput id=\"customerName\" placeholder=\"Client Name\" pattern=\"^[a-zA-Z ]*$\"\r\n minlength=\"3\" [formControlName]=\"'customerName'\" (change)=\"emitDataToParent()\">\r\n <mat-error\r\n *ngIf=\"customerFarmForm.get('customerName').hasError('required') && customerFarmConfiguration.requiredCustomerFarmFields.customerName \">\r\n Client Name is required\r\n </mat-error>\r\n <mat-error *ngIf=\"customerFarmForm.get('customerName').hasError('pattern')\">\r\n Please enter valid Client name\r\n </mat-error>\r\n <mat-error *ngIf=\"customerFarmForm.get('customerName').hasError('minlength')\">\r\n Client name must be of atleast 3 characters\r\n </mat-error>\r\n </mat-form-field>\r\n\r\n <mat-form-field class=\"flex-auto w-full\"\r\n *ngIf=\"customerFarmConfiguration.allowedCustomerFarmFields.defaultWarehouse\">\r\n <mat-label>Default Warehouse</mat-label>\r\n <input matInput id=\"defaultWarehouse\" placeholder=\"Default Warehouse\"\r\n [formControlName]=\"'defaultWarehouse'\" (change)=\"emitDataToParent()\">\r\n <mat-error\r\n *ngIf=\"customerFarmForm.get('defaultWarehouse').hasError('required') && customerFarmConfiguration.requiredCustomerFarmFields.defaultWarehouse\">\r\n Default Warehouse is required\r\n </mat-error>\r\n </mat-form-field>\r\n </div>\r\n\r\n <div class=\"sm:flex px-8 pt-4\">\r\n <mat-form-field class=\"flex-auto w-full mr-4\"\r\n *ngIf=\"customerFarmConfiguration.allowedCustomerFarmFields.personInCharge\">\r\n <mat-label>Person In Charge</mat-label>\r\n <input matInput id=\"personInCharge\" placeholder=\"Person In Charge\"\r\n [formControlName]=\"'personInCharge'\" (change)=\"emitDataToParent()\">\r\n <mat-error\r\n *ngIf=\"customerFarmForm.get('personInCharge').hasError('required') && customerFarmConfiguration.requiredCustomerFarmFields.personInCharge\">\r\n Person In Charge is required\r\n </mat-error>\r\n </mat-form-field>\r\n\r\n <mat-form-field class=\"flex-auto w-full\"\r\n *ngIf=\"customerFarmConfiguration.allowedCustomerFarmFields.displayName\">\r\n <mat-label>Display Name</mat-label>\r\n <input matInput id=\"displayName\" placeholder=\"Display Name\"\r\n [formControlName]=\"'displayName'\" (change)=\"emitDataToParent()\">\r\n </mat-form-field>\r\n </div>\r\n\r\n <div class=\"sm:flex px-8 pt-4\">\r\n <mat-form-field class=\"flex-auto w-full mr-4\"\r\n *ngIf=\"customerFarmConfiguration.allowedCustomerFarmFields.primaryVetId\">\r\n <mat-label>Primary Vet</mat-label>\r\n <input matInput id=\"primaryVetId\" placeholder=\"Primary Vet\"\r\n [formControlName]=\"'primaryVetId'\" (change)=\"emitDataToParent()\">\r\n <mat-error\r\n *ngIf=\"customerFarmForm.get('primaryVetId').hasError('required') && customerFarmConfiguration.requiredCustomerFarmFields.primaryVetId\">\r\n Primary Vet is required\r\n </mat-error>\r\n </mat-form-field>\r\n\r\n <mat-form-field class=\"flex-auto w-full\"\r\n *ngIf=\"customerFarmConfiguration.allowedCustomerFarmFields.PICTattoo\">\r\n <mat-label>PIC/Tattoo (if applicable)</mat-label>\r\n <input matInput id=\"PICTattoo\" placeholder=\"PIC/Tattoo\" [formControlName]=\"'PICTattoo'\"\r\n (change)=\"emitDataToParent()\">\r\n </mat-form-field>\r\n </div>\r\n </div>\r\n\r\n </div>\r\n <!-- Customer Farm section End -->\r\n\r\n </form>\r\n </div>\r\n <!-- form code ends here -->\r\n\r\n</div>","import { NgModule } from '@angular/core';\nimport { CustomerFarmComponent } from './customer-farm.component';\nimport { MatCheckboxModule } from '@angular/material/checkbox';\nimport { CdkStepperModule } from '@angular/cdk/stepper';\nimport { CommonModule } from '@angular/common';\nimport { ReactiveFormsModule, FormsModule } from '@angular/forms';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatOptionModule, MatNativeDateModule } from '@angular/material/core';\nimport { MatDatepickerModule } from '@angular/material/datepicker';\nimport { MatFormFieldModule } from '@angular/material/form-field';\nimport { MatGridListModule } from '@angular/material/grid-list';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatInputModule } from '@angular/material/input';\nimport { MatSelectModule } from '@angular/material/select';\nimport { MatStepperModule } from '@angular/material/stepper';\nimport { MatToolbarModule } from '@angular/material/toolbar';\nimport { ButtonsModule } from '@progress/kendo-angular-buttons';\nimport { GridModule, SharedModule, ExcelModule } from '@progress/kendo-angular-grid';\n\n@NgModule({\n declarations: [\n CustomerFarmComponent\n ],\n imports: [\n MatIconModule,\n MatInputModule,\n MatToolbarModule,\n ReactiveFormsModule,\n FormsModule,\n CommonModule,\n GridModule,\n ButtonsModule,\n MatGridListModule,\n MatFormFieldModule,\n ReactiveFormsModule,\n MatInputModule,\n MatOptionModule,\n MatSelectModule,\n MatCheckboxModule,\n SharedModule,\n MatButtonModule,\n MatDatepickerModule,\n MatNativeDateModule,\n ExcelModule,\n MatStepperModule,\n CdkStepperModule,\n ],\n exports: [\n CustomerFarmComponent\n ]\n})\nexport class CustomerFarmModule { }\n","/*\n * Public API Surface of customer-farm\n */\n\nexport * from './lib/customer-farm.service';\nexport * from './lib/customer-farm.component';\nexport * from './lib/customer-farm.module';\nexport * from './lib/dependencies/customer-farm-api-urls';\nexport * from './lib/dependencies/customer-farm-model';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i1","i1.CustomerFarmService"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;MAAa,mBAAmB,CAAA;AAAhC,IAAA,WAAA,GAAA;;QAEI,IAAsB,CAAA,sBAAA,GAAW,0BAA0B,CAAC;;QAG5D,IAAyB,CAAA,yBAAA,GAAW,yBAAyB,CAAC;;QAG9D,IAAyB,CAAA,yBAAA,GAAW,yBAAyB,CAAC;;QAG9D,IAAyB,CAAA,yBAAA,GAAW,yBAAyB,CAAC;;QAG9D,IAAsB,CAAA,sBAAA,GAAW,yBAAyB,CAAC;;QAG3D,IAA8B,CAAA,8BAAA,GAAW,kCAAkC,CAAC;KAC/E;AAAA;;MCTY,mBAAmB,CAAA;AAE5B,IAAA,WAAA,CAAoB,iBAAoC,EAAA;QAApC,IAAiB,CAAA,iBAAA,GAAjB,iBAAiB,CAAmB;AAExD,QAAA,IAAA,CAAA,mBAAmB,GAAG,IAAI,mBAAmB,EAAE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AA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,kBAAkB,YA3B3B,aAAa;QACT,cAAc;QACd,gBAAgB;QAChB,mBAAmB;QACnB,WAAW;QACX,YAAY;QACZ,UAAU;QACV,aAAa;QACb,iBAAiB;QACjB,kBAAkB;QAClB,mBAAmB;QACnB,cAAc;QACd,eAAe;QACf,eAAe;QACf,iBAAiB;QACjB,YAAY;QACZ,eAAe;QACf,mBAAmB;QACnB,mBAAmB;QACnB,WAAW;QACX,gBAAgB;QAChB,gBAAgB,CAAA,EAAA,CAAA,CAAA;2FAMX,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAhC9B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE;wBACZ,qBAAqB;AACtB,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,aAAa;wBACT,cAAc;wBACd,gBAAgB;wBAChB,mBAAmB;wBACnB,WAAW;wBACX,YAAY;wBACZ,UAAU;wBACV,aAAa;wBACb,iBAAiB;wBACjB,kBAAkB;wBAClB,mBAAmB;wBACnB,cAAc;wBACd,eAAe;wBACf,eAAe;wBACf,iBAAiB;wBACjB,YAAY;wBACZ,eAAe;wBACf,mBAAmB;wBACnB,mBAAmB;wBACnB,WAAW;wBACX,gBAAgB;wBAChB,gBAAgB;AACrB,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,qBAAqB;AACtB,qBAAA;AACF,iBAAA,CAAA;;;AClDD;;AAEG;;ACFH;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"qubesense-customer-farm.mjs","sources":["../../../projects/customer-farm/src/lib/dependencies/customer-farm-api-urls.ts","../../../projects/customer-farm/src/lib/customer-farm.service.ts","../../../projects/customer-farm/src/lib/dependencies/customer-farm-model.ts","../../../projects/customer-farm/src/lib/customer-farm.component.ts","../../../projects/customer-farm/src/lib/customer-farm.component.html","../../../projects/customer-farm/src/lib/customer-farm.module.ts","../../../projects/customer-farm/src/public-api.ts","../../../projects/customer-farm/src/qubesense-customer-farm.ts"],"sourcesContent":["export class CustomerFarmApiUrls {\r\n //api Url string for get data by Id\r\n getCustomerFarmByIdUrl: string = 'api/CustomerFarm/GetById';\r\n \r\n //api Url string for insert Customer data\r\n insertCustomerFarmDataUrl: string = 'api/CustomerFarm/Create';\r\n\r\n //api Url string for update Customer record\r\n updateCustomerFarmDataUrl: string = 'api/CustomerFarm/Update';\r\n\r\n //api Url string for delete Customer record\r\n deleteCustomerFarmDataUrl: string = 'api/CustomerFarm/Delete';\r\n\r\n //api Url string for get Customer list\r\n getCustomerFarmListUrl: string = 'api/CustomerFarm/GetAll';\r\n \r\n //api Url string for get Customer dropdown list\r\n getCustomerFarmDropdownListUrl: string = 'api/CustomerFarm/GetDropdownList';\r\n}","import { Injectable } from '@angular/core';\r\nimport { DataAccessService, WebApiResult } from '@qubesense/base-services';\r\nimport { CustomerFarmApiUrls } from './dependencies/customer-farm-api-urls';\r\nimport { CustomerFarmModel } from './dependencies/customer-farm-model';\r\n\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class CustomerFarmService {\r\n\r\n constructor(private dataAccessService: DataAccessService) { }\r\n\r\n customerFarmApiUrls = new CustomerFarmApiUrls();\r\n\r\n /**\r\n * service for get customer data by Id\r\n * \r\n * @param customerGUID \r\n * \r\n * @returns Response Data from Database\r\n */\r\n public async GetDataById(customerGUID: string): Promise<WebApiResult> {\r\n try {\r\n const url = this.customerFarmApiUrls.getCustomerFarmByIdUrl + '/' + customerGUID;\r\n const resultResponse = await this.dataAccessService.GetDataById(url);\r\n return resultResponse;\r\n } catch (error) {\r\n throw error;\r\n }\r\n }\r\n\r\n /**\r\n * service for inserting customer data into database\r\n * \r\n * @param customerFarmModel \r\n * \r\n * @returns Response message from Database\r\n */\r\n public async InsertData(customerFarmModel: CustomerFarmModel) {\r\n try {\r\n const url = this.customerFarmApiUrls.insertCustomerFarmDataUrl;\r\n const resultResponse = await this.dataAccessService.InsertData(url, customerFarmModel);\r\n return resultResponse;\r\n } catch (error) {\r\n throw error;\r\n }\r\n }\r\n\r\n /**\r\n * service for update customer Data\r\n * \r\n * @param customerFarmModel \r\n * \r\n * @returns Response message from Database\r\n */\r\n public async UpdateData(customerFarmModel: CustomerFarmModel) {\r\n try {\r\n const url = this.customerFarmApiUrls.updateCustomerFarmDataUrl;\r\n const resultResponse = await this.dataAccessService.UpdateData(url, customerFarmModel);\r\n return resultResponse;\r\n } catch (error) {\r\n throw error;\r\n }\r\n }\r\n\r\n /**\r\n * service for delete customer data by GUID\r\n * \r\n * @param customerFarmModel \r\n * \r\n * @returns Response message from Database\r\n */\r\n public async DeleteData(recordId: any) {\r\n try {\r\n const url = this.customerFarmApiUrls.deleteCustomerFarmDataUrl + '/' + recordId;\r\n const resultResponse = await this.dataAccessService.DeleteData(url);\r\n return resultResponse;\r\n }\r\n catch (error) {\r\n throw error;\r\n }\r\n }\r\n\r\n /**\r\n * service for get data for customer grid \r\n * \r\n * @param customerFarmModel \r\n * \r\n * @returns Response Data from Database\r\n */\r\n public async GetListData(customerDataModel: CustomerFarmModel) {\r\n try {\r\n const url = this.customerFarmApiUrls.getCustomerFarmListUrl;\r\n const resultResponse = await this.dataAccessService.GetListData(url, customerDataModel);\r\n return resultResponse;\r\n } catch (error) {\r\n throw error;\r\n }\r\n }\r\n\r\n /**\r\n * service for get data for customer DropDown List\r\n * \r\n * @returns \r\n */\r\n public async GetCustomersDropdownList() {\r\n try {\r\n const url = this.customerFarmApiUrls.getCustomerFarmDropdownListUrl;\r\n const resultResponse = await this.dataAccessService.GetDropdownListData(url);\r\n return resultResponse;\r\n } catch (error) {\r\n throw error;\r\n }\r\n }\r\n}\r\n","export class CustomerFarmModel {\r\n formCode: string = null;\r\n formId: string = '';\r\n recordId: string = null;\r\n customerId: string = null;\r\n customerName: string = '';\r\n defaultWarehouse: string = '';\r\n personInCharge: string = '';\r\n displayName: string = '';\r\n primaryVetId: string = '';\r\n PICTattoo: string = '';\r\n isActive: boolean = true;\r\n isDeleted: boolean = false;\r\n}\r\n\r\nexport class CustomerFarmConfigrationModel {\r\n formCode: string = null;\r\n customerId: string = null;\r\n defaultView: boolean = false;\r\n showModal: boolean = false;\r\n isSearchable: boolean = false;\r\n showClientData: boolean = false;\r\n customerData: CustomerFarmModel = null;\r\n userMessages: boolean = false;\r\n requiredCustomerFarmSection: boolean = false;\r\n allowedCustomerFarmSection: boolean = false;\r\n requiredCustomerFarmFields: RequiredCustomerFarmFields = new RequiredCustomerFarmFields();\r\n allowedCustomerFarmFields: AllowedCustomerFarmFields = new AllowedCustomerFarmFields();\r\n}\r\n\r\nexport class RequiredCustomerFarmFields {\r\n customerName: boolean = true;\r\n customerId: boolean = true;\r\n defaultWarehouse: boolean = true;\r\n personInCharge: boolean = true;\r\n primaryVetId: boolean = true;\r\n displayName: boolean = true;\r\n PICTattoo: boolean = false;\r\n profileImageURL: boolean = false;\r\n}\r\n\r\nexport class AllowedCustomerFarmFields {\r\n customerName: boolean = true;\r\n defaultWarehouse: boolean = true;\r\n personInCharge: boolean = true;\r\n primaryVetId: boolean = true;\r\n PICTattoo: boolean = true;\r\n displayName: boolean = true;\r\n profileImageURL: boolean = false;\r\n\r\n}\r\n","import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core';\nimport { FormBuilder, FormGroup, Validators } from '@angular/forms';\nimport { CustomerFarmConfigrationModel, CustomerFarmModel } from './dependencies/customer-farm-model';\nimport { ErrorLogService, ToastrNotificationService } from '@qubesense/base-services';\nimport { CustomerFarmService } from './customer-farm.service';\n\n@Component({\n selector: 'lib-customer-farm',\n templateUrl: './customer-farm.component.html',\n styleUrls: ['./customer-farm.component.scss']\n})\nexport class CustomerFarmComponent implements OnInit {\n @Output() customerFarmData = new EventEmitter<any>();\n @Input() public customerFarmConfiguration: CustomerFarmConfigrationModel = new CustomerFarmConfigrationModel();\n customerFarmForm: FormGroup;\n userMessages: string[] = [];\n\n constructor(private customerFarmService: CustomerFarmService,\n private formBuilder: FormBuilder,\n private errorLogService: ErrorLogService,\n private toastr: ToastrNotificationService\n ) { }\n\n ngOnInit() {\n this.DeclareForm();\n }\n\n DeclareForm() {\n this.customerFarmForm = this.formBuilder.group({\n recordId : [null],\n customerId : [null],\n customerName : [null],\n defaultWarehouse : [null],\n personInCharge : [null],\n displayName : [null],\n primaryVetId : [null],\n PICTattoo : [null],\n isActive : [true]\n });\n if (this.customerFarmConfiguration.requiredCustomerFarmFields.customerName) {\n this.customerFarmForm.get('customerName').addValidators(Validators.required);\n this.customerFarmForm.get('customerName').addValidators(Validators.pattern('^[a-zA-Z ]*$'));\n this.customerFarmForm.get('customerName').addValidators(Validators.minLength(3));\n }\n if (this.customerFarmConfiguration.requiredCustomerFarmFields.defaultWarehouse) {\n this.customerFarmForm.get('defaultWarehouse').addValidators(Validators.required);\n }\n if (this.customerFarmConfiguration.requiredCustomerFarmFields.personInCharge) {\n this.customerFarmForm.get('personInCharge').addValidators(Validators.required);\n }\n if (this.customerFarmConfiguration.requiredCustomerFarmFields.primaryVetId) {\n this.customerFarmForm.get('primaryVetId').addValidators(Validators.required);\n }\n\n }\n\n ///////////////////////////////////standard methods/////////////////////////////////////////////////////\n\n /**\n * @description\n *\n * edit data list item using data item GUID\n *\n * @param customerId\n *\n * gets customer GUID from gridData and passes it to this function\n */\n async EditData(customerId:string) {\n try {\n const getResponse = await this.customerFarmService.GetDataById(customerId);\n this.customerFarmForm.controls['recordId'].setValue(getResponse.apiData.recordId);\n this.customerFarmForm.controls['customerId'].setValue(getResponse.apiData.customerId);\n this.customerFarmForm.controls['customerName'].setValue(getResponse.apiData.customerName);\n this.customerFarmForm.controls['defaultWarehouse'].setValue(getResponse.apiData.defaultWarehouse);\n this.customerFarmForm.controls['personInCharge'].setValue(getResponse.apiData.personInCharge);\n this.customerFarmForm.controls['displayName'].setValue(getResponse.apiData.displayName);\n this.customerFarmForm.controls['primaryVetId'].setValue(getResponse.apiData.primaryVetId);\n this.customerFarmForm.controls['PICTattoo'].setValue(getResponse.apiData.PICTattoo);\n this.customerFarmForm.controls['isActive'].setValue(getResponse.apiData.isActive);\n }\n catch (error) {\n this.errorLogService.saveError(error);\n this.toastr.ShowAllErrors(error.error.message.userMessage);\n }\n }\n\n /**\n * @description\n *\n * this method converts all form inputs into model class\n *\n * @returns model with new form values\n */\n ConvertFormToModel() {\n const customerFarmModel = new CustomerFarmModel();\n customerFarmModel.recordId = this.customerFarmForm.value.recordId;\n customerFarmModel.customerId = this.customerFarmForm.value.customerId;\n customerFarmModel.customerName = this.customerFarmForm.value.customerName;\n customerFarmModel.defaultWarehouse = this.customerFarmForm.value.defaultWarehouse;\n customerFarmModel.personInCharge = this.customerFarmForm.value.personInCharge;\n customerFarmModel.displayName = this.customerFarmForm.value.displayName;\n customerFarmModel.primaryVetId = this.customerFarmForm.value.primaryVetId;\n customerFarmModel.PICTattoo = this.customerFarmForm.value.PICTattoo;\n customerFarmModel.formCode = this.customerFarmConfiguration.formCode;\n\n return customerFarmModel;\n }\n\n /**\n * @description\n * clear form data\n */\n ClearForm() {\n this.DeclareForm();\n }\n\n emitDataToParent() {\n let customerFarmModel = new CustomerFarmModel();\n customerFarmModel = this.ConvertFormToModel();\n this.customerFarmData.emit(customerFarmModel);\n }\n\n /**\n * @description\n *\n * Insert customer data into database\n */\n public async InsertData() {\n let customerFarmModel = new CustomerFarmModel();\n customerFarmModel = this.ConvertFormToModel();\n const getResponse = await this.customerFarmService.InsertData(customerFarmModel);\n this.userMessages = getResponse.message.userMessage;\n if (this.customerFarmConfiguration.userMessages) {\n this.toastr.ShowSuccess(this.userMessages.toString());\n }\n }\n\n /**\n * @description\n *\n * update customer data into database\n */\n public async UpdateData() {\n let customerFarmModel = new CustomerFarmModel();\n customerFarmModel = this.ConvertFormToModel();\n const getResponse = await this.customerFarmService.UpdateData(customerFarmModel);\n this.userMessages = getResponse.message.userMessage;\n if (this.customerFarmConfiguration.userMessages) {\n this.toastr.ShowSuccess(this.userMessages.toString());\n }\n }\n\n /**\n * @description\n *\n * Delete customer data into database\n */\n public async DeleteData(value) {\n const getResponse = await this.customerFarmService.DeleteData(value);\n this.userMessages = getResponse.message.userMessage;\n if (this.customerFarmConfiguration.userMessages) {\n this.toastr.ShowSuccess(this.userMessages.toString());\n }\n }\n}\n","<div class=\"flex flex-col flex-auto min-w-0 w-full\">\r\n <!-- form code starts here -->\r\n <!--content-->\r\n <div class=\"sm:w-full overflow-hidden\" *ngIf=\"customerFarmConfiguration.showModal\">\r\n\r\n <!--form body-->\r\n <form class=\"flex flex-col overflow-hidden\" [formGroup]=\"customerFarmForm\">\r\n <!-- Customer Farm section start -->\r\n\r\n <div class=\"sm:flex\">\r\n <div class=\"w-full\">\r\n <div class=\"sm:flex px-8 pt-4\">\r\n <mat-form-field class=\"flex-auto w-full mr-4\"\r\n *ngIf=\"customerFarmConfiguration.allowedCustomerFarmFields.customerName\">\r\n <mat-label>Client Name</mat-label>\r\n <input matInput id=\"customerName\" placeholder=\"Client Name\" pattern=\"^[a-zA-Z ]*$\"\r\n minlength=\"3\" [formControlName]=\"'customerName'\" (change)=\"emitDataToParent()\">\r\n <mat-error\r\n *ngIf=\"customerFarmForm.get('customerName').hasError('required') && customerFarmConfiguration.requiredCustomerFarmFields.customerName \">\r\n Client Name is required\r\n </mat-error>\r\n <mat-error *ngIf=\"customerFarmForm.get('customerName').hasError('pattern')\">\r\n Please enter valid Client name\r\n </mat-error>\r\n <mat-error *ngIf=\"customerFarmForm.get('customerName').hasError('minlength')\">\r\n Client name must be of atleast 3 characters\r\n </mat-error>\r\n </mat-form-field>\r\n\r\n <mat-form-field class=\"flex-auto w-full\"\r\n *ngIf=\"customerFarmConfiguration.allowedCustomerFarmFields.defaultWarehouse\">\r\n <mat-label>Default Warehouse</mat-label>\r\n <input matInput id=\"defaultWarehouse\" placeholder=\"Default Warehouse\"\r\n [formControlName]=\"'defaultWarehouse'\" (change)=\"emitDataToParent()\">\r\n <mat-error\r\n *ngIf=\"customerFarmForm.get('defaultWarehouse').hasError('required') && customerFarmConfiguration.requiredCustomerFarmFields.defaultWarehouse\">\r\n Default Warehouse is required\r\n </mat-error>\r\n </mat-form-field>\r\n </div>\r\n\r\n <div class=\"sm:flex px-8 pt-4\">\r\n <mat-form-field class=\"flex-auto w-full mr-4\"\r\n *ngIf=\"customerFarmConfiguration.allowedCustomerFarmFields.personInCharge\">\r\n <mat-label>Person In Charge</mat-label>\r\n <input matInput id=\"personInCharge\" placeholder=\"Person In Charge\"\r\n [formControlName]=\"'personInCharge'\" (change)=\"emitDataToParent()\">\r\n <mat-error\r\n *ngIf=\"customerFarmForm.get('personInCharge').hasError('required') && customerFarmConfiguration.requiredCustomerFarmFields.personInCharge\">\r\n Person In Charge is required\r\n </mat-error>\r\n </mat-form-field>\r\n\r\n <mat-form-field class=\"flex-auto w-full\"\r\n *ngIf=\"customerFarmConfiguration.allowedCustomerFarmFields.displayName\">\r\n <mat-label>Display Name</mat-label>\r\n <input matInput id=\"displayName\" placeholder=\"Display Name\"\r\n [formControlName]=\"'displayName'\" (change)=\"emitDataToParent()\">\r\n </mat-form-field>\r\n </div>\r\n\r\n <div class=\"sm:flex px-8 pt-4\">\r\n <mat-form-field class=\"flex-auto w-full mr-4\"\r\n *ngIf=\"customerFarmConfiguration.allowedCustomerFarmFields.primaryVetId\">\r\n <mat-label>Primary Vet</mat-label>\r\n <input matInput id=\"primaryVetId\" placeholder=\"Primary Vet\"\r\n [formControlName]=\"'primaryVetId'\" (change)=\"emitDataToParent()\">\r\n <mat-error\r\n *ngIf=\"customerFarmForm.get('primaryVetId').hasError('required') && customerFarmConfiguration.requiredCustomerFarmFields.primaryVetId\">\r\n Primary Vet is required\r\n </mat-error>\r\n </mat-form-field>\r\n\r\n <mat-form-field class=\"flex-auto w-full\"\r\n *ngIf=\"customerFarmConfiguration.allowedCustomerFarmFields.PICTattoo\">\r\n <mat-label>PIC/Tattoo (if applicable)</mat-label>\r\n <input matInput id=\"PICTattoo\" placeholder=\"PIC/Tattoo\" [formControlName]=\"'PICTattoo'\"\r\n (change)=\"emitDataToParent()\">\r\n </mat-form-field>\r\n </div>\r\n </div>\r\n\r\n </div>\r\n <!-- Customer Farm section End -->\r\n\r\n </form>\r\n </div>\r\n <!-- form code ends here -->\r\n\r\n</div>","import { NgModule } from '@angular/core';\nimport { CustomerFarmComponent } from './customer-farm.component';\nimport { MatCheckboxModule } from '@angular/material/checkbox';\nimport { CdkStepperModule } from '@angular/cdk/stepper';\nimport { CommonModule } from '@angular/common';\nimport { ReactiveFormsModule, FormsModule } from '@angular/forms';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatOptionModule, MatNativeDateModule } from '@angular/material/core';\nimport { MatDatepickerModule } from '@angular/material/datepicker';\nimport { MatFormFieldModule } from '@angular/material/form-field';\nimport { MatGridListModule } from '@angular/material/grid-list';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatInputModule } from '@angular/material/input';\nimport { MatSelectModule } from '@angular/material/select';\nimport { MatStepperModule } from '@angular/material/stepper';\nimport { MatToolbarModule } from '@angular/material/toolbar';\nimport { ButtonsModule } from '@progress/kendo-angular-buttons';\nimport { GridModule, SharedModule, ExcelModule } from '@progress/kendo-angular-grid';\n\n@NgModule({\n declarations: [\n CustomerFarmComponent\n ],\n imports: [\n MatIconModule,\n MatInputModule,\n MatToolbarModule,\n ReactiveFormsModule,\n FormsModule,\n CommonModule,\n GridModule,\n ButtonsModule,\n MatGridListModule,\n MatFormFieldModule,\n ReactiveFormsModule,\n MatInputModule,\n MatOptionModule,\n MatSelectModule,\n MatCheckboxModule,\n SharedModule,\n MatButtonModule,\n MatDatepickerModule,\n MatNativeDateModule,\n ExcelModule,\n MatStepperModule,\n CdkStepperModule,\n ],\n exports: [\n CustomerFarmComponent\n ]\n})\nexport class CustomerFarmModule { }\n","/*\n * Public API Surface of customer-farm\n */\n\nexport * from './lib/customer-farm.service';\nexport * from './lib/customer-farm.component';\nexport * from './lib/customer-farm.module';\nexport * from './lib/dependencies/customer-farm-api-urls';\nexport * from './lib/dependencies/customer-farm-model';\n","/**\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QACjB,kBAAkB;QAClB,mBAAmB;QACnB,cAAc;QACd,eAAe;QACf,eAAe;QACf,iBAAiB;QACjB,YAAY;QACZ,eAAe;QACf,mBAAmB;QACnB,mBAAmB;QACnB,WAAW;QACX,gBAAgB;QAChB,gBAAgB,CAAA,EAAA,CAAA,CAAA;2FAMX,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAhC9B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE;wBACZ,qBAAqB;AACtB,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,aAAa;wBACT,cAAc;wBACd,gBAAgB;wBAChB,mBAAmB;wBACnB,WAAW;wBACX,YAAY;wBACZ,UAAU;wBACV,aAAa;wBACb,iBAAiB;wBACjB,kBAAkB;wBAClB,mBAAmB;wBACnB,cAAc;wBACd,eAAe;wBACf,eAAe;wBACf,iBAAiB;wBACjB,YAAY;wBACZ,eAAe;wBACf,mBAAmB;wBACnB,mBAAmB;wBACnB,WAAW;wBACX,gBAAgB;wBAChB,gBAAgB;AACrB,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,qBAAqB;AACtB,qBAAA;AACF,iBAAA,CAAA;;;AClDD;;AAEG;;ACFH;;AAEG;;;;"}
|
|
@@ -21,11 +21,11 @@ export declare class CustomerFarmComponent implements OnInit {
|
|
|
21
21
|
*
|
|
22
22
|
* edit data list item using data item GUID
|
|
23
23
|
*
|
|
24
|
-
* @param
|
|
24
|
+
* @param customerId
|
|
25
25
|
*
|
|
26
26
|
* gets customer GUID from gridData and passes it to this function
|
|
27
27
|
*/
|
|
28
|
-
EditData(): Promise<void>;
|
|
28
|
+
EditData(customerId: string): Promise<void>;
|
|
29
29
|
/**
|
|
30
30
|
* @description
|
|
31
31
|
*
|
|
@@ -41,10 +41,10 @@ export declare class CustomerFarmComponent implements OnInit {
|
|
|
41
41
|
ClearForm(): void;
|
|
42
42
|
emitDataToParent(): void;
|
|
43
43
|
/**
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
44
|
+
* @description
|
|
45
|
+
*
|
|
46
|
+
* Insert customer data into database
|
|
47
|
+
*/
|
|
48
48
|
InsertData(): Promise<void>;
|
|
49
49
|
/**
|
|
50
50
|
* @description
|
|
@@ -52,6 +52,12 @@ export declare class CustomerFarmComponent implements OnInit {
|
|
|
52
52
|
* update customer data into database
|
|
53
53
|
*/
|
|
54
54
|
UpdateData(): Promise<void>;
|
|
55
|
+
/**
|
|
56
|
+
* @description
|
|
57
|
+
*
|
|
58
|
+
* Delete customer data into database
|
|
59
|
+
*/
|
|
60
|
+
DeleteData(value: any): Promise<void>;
|
|
55
61
|
static ɵfac: i0.ɵɵFactoryDeclaration<CustomerFarmComponent, never>;
|
|
56
62
|
static ɵcmp: i0.ɵɵComponentDeclaration<CustomerFarmComponent, "lib-customer-farm", never, { "customerFarmConfiguration": "customerFarmConfiguration"; }, { "customerFarmData": "customerFarmData"; }, never, never, false>;
|
|
57
63
|
}
|