Have you checked the code? We are still stuck on this issue. Please check asap.
Thanks!
Hi, Any update on this??
Hi, Did you get my mail?? Any question related to project run?
Thanks!
Hi musa.demir
Please find the code file below:
http://103.89.253.21:420/PatientBillingRequestsAppService.cs
Regards, Harshit
Hi, Please check your inbox.
I tried toString() also but did not worked, Here is my HTML code and Js code
HTML Code
@using System.Globalization
@using Ksoft.Web.Areas.App.Models.Common.Modals
@using Ksoft.Web.Areas.App.Models.FinancialYears
@model CreateOrEditFinancialYearModalViewModel
@await Html.PartialAsync("~/Areas/App/Views/Common/Modals/_ModalHeader.cshtml", new ModalHeaderViewModel(Model.IsEditMode ? (L("EditFinancialYear")) : L("CreateNewFinancialYear")))
<div class="modal-body">
<div id="FinancialYearInformationsTab">
<form name="FinancialYearInformationsForm" role="form" novalidate class="form-validation">
@if (Model.IsEditMode)
{
<input type="hidden" name="id" value="@Model.FinancialYear.Id" />
}
<div class="form-group">
<label for="FinancialYear_YearName">@L("YearName")</label>
<input class="form-control" id="FinancialYear_YearName" value="@Model.FinancialYear.YearName" type="text" name="yearName" maxlength="@Ksoft.Configuration.FinancialYearConsts.MaxYearNameLength" minlength="@Ksoft.Configuration.FinancialYearConsts.MinYearNameLength" />
</div>
<div class="form-group">
<label for="FinancialYear_FromMonth">@L("FromMonth")</label>
<input class="form-control m-input date-picker" id="FinancialYear_FromMonth" type="text" name="fromMonth" value="@Model.FinancialYear.FromMonth.ToString()"/>
</div>
<div class="form-group">
<label for="FinancialYear_EndMonth">@L("EndMonth")</label>
<input class="form-control m-input date-picker" id="FinancialYear_EndMonth" type="text" name="endMonth" value=" @Model.FinancialYear.EndMonth.ToString()"/>
</div>
</form>
</div>
</div>
@await Html.PartialAsync("~/Areas/App/Views/Common/Modals/_ModalFooterWithSaveAndCancel.cshtml")
Js code
(function ($) {
app.modals.CreateOrEditFinancialYearModal = function () {
var _financialYearsService = abp.services.app.financialYears;
var _modalManager;
var _$financialYearInformationForm = null;
this.init = function (modalManager) {
_modalManager = modalManager;
alert(abp.localization.currentLanguage.name);
var modal = _modalManager.getModal();
modal.find('.date-picker').datetimepicker({
locale: abp.localization.currentLanguage.name,
format: 'L'
});
_$financialYearInformationForm = _modalManager.getModal().find('form[name=FinancialYearInformationsForm]');
_$financialYearInformationForm.validate();
};
var getDateFilter = function (element) {
if (element.data("DateTimePicker").date() == null) {
return null;
}
return element.data("DateTimePicker").date().format("YYYY-MM-DDT00:00:00Z");
}
this.save = function () {
if (!_$financialYearInformationForm.valid()) {
return;
}
var financialYear = _$financialYearInformationForm.serializeFormToObject();
financialYear.fromMonth = ($("#FinancialYear_FromMonth").val() == "" || $("#FinancialYear_FromMonth").val() == null ? null : getDateFilter($('#FinancialYear_FromMonth'))),
financialYear.endMonth = ($("#FinancialYear_EndMonth").val() == "" || $("#FinancialYear_EndMonth").val() == null ? null : getDateFilter($('#FinancialYear_EndMonth'))),
_modalManager.setBusy(true);
_financialYearsService.createOrEdit(
financialYear
).done(function () {
abp.notify.info(app.localize('SavedSuccessfully'));
_modalManager.close();
abp.event.trigger('app.createOrEditFinancialYearModalSaved');
}).always(function () {
_modalManager.setBusy(false);
});
};
};
})(jQuery);
Hi, Any update on this??
Thanks That worked.
But, Now We are getting following error at several places Please help
Request: { "input": { "registrationNumber": "", "registrationDate": "2021-05-17T10:39:11.116Z", "registrationAmount": 1000, "registrationDiscount": 0, "registrationNetAmount": 1000, "requestedDate": "2021-05-17T10:39:11.116Z", "registrationRemark": "", "discountRemark": "", "billingRemark": "", "nextFollowUpDate": "2021-05-17T10:39:11.116Z", "registrationStatusId": 1, "requestedBy": null, "billedBy": null, "registrationDoneBy": null, "patientAccountId": 4386, "assignTypeIdBilling": 1, "userGroupIdBilling": 8, "userIdBilling": 0, "clinicId": 4, "uhid": "${uhid)", "fileCreationId": null, "opdId": null, "tokenHdrId": null, "opdNumber": "", "opdDate": "2021-05-17T10:39:11.116Z", "tokenNumber": "", "registrationStatusName": "Registered", "isBiometricVerified": true, "isImageVerified": true, "biometricVerifiedLogId": null, "imageVerifiedLogId": null, "registrationChargesId": null, "tokenHdrIdBilling": null, "isOldPatient": false, "pA_IsOldPatient": false, "tempId": null, "isFailureApp": false, "id": null } }
Response:
System.ArgumentException: must be reducible node at System.Linq.Expressions.Expression.ReduceAndCheck() at System.Linq.Expressions.Expression.ReduceExtensions() at System.Linq.Expressions.Compiler.StackSpiller.RewriteExtensionExpression(Expression expr, Stack stack) at System.Linq.Expressions.Compiler.StackSpiller.RewriteExpression(Expression node, Stack stack) at System.Linq.Expressions.Compiler.StackSpiller.ChildRewriter.Add(Expression expression) at System.Linq.Expressions.Compiler.StackSpiller.ChildRewriter.AddArguments(IArgumentProvider expressions) at System.Linq.Expressions.Compiler.StackSpiller.RewriteMethodCallExpression(Expression expr, Stack stack) at System.Linq.Expressions.Compiler.StackSpiller.RewriteExpression(Expression node, Stack stack) at System.Linq.Expressions.Compiler.StackSpiller.ChildRewriter.Add(Expression expression) at System.Linq.Expressions.Compiler.StackSpiller.ChildRewriter.AddArguments(IArgumentProvider expressions) at System.Linq.Expressions.Compiler.StackSpiller.RewriteMethodCallExpression(Expression expr, Stack stack) at System.Linq.Expressions.Compiler.StackSpiller.RewriteExpression(Expression node, Stack stack) at System.Linq.Expressions.Compiler.StackSpiller.RewriteExpressionFreeTemps(Expression expression, Stack stack) at System.Linq.Expressions.Compiler.StackSpiller.Rewrite[T](Expression1 lambda) at System.Linq.Expressions.Compiler.LambdaCompiler.Compile(LambdaExpression lambda) at System.Linq.EnumerableQuery
1.GetEnumerator() at Ksoft.Account.PatientBillingRequestsAppService.Create(CreateOrEditPatientBillingRequestDto input) in D:\Projects\IndiraIVF\branches\Embryology\src\Ksoft.Application\Account\PatientBillingRequestsAppService.cs:line 602 at Abp.Authorization.AuthorizationInterceptor.InternalInterceptAsynchronous[TResult](IInvocation invocation) at Ksoft.Account.PatientBillingRequestsAppService.CreateOrEdit(CreateOrEditPatientBillingRequestDto...