...
This commit is contained in:
@@ -41,10 +41,12 @@
|
||||
<label class="col-sm-4 col-form-label" style="color:red" for="inputcustomertype">نوع مشتری</label>
|
||||
<select @bind="ItemSearchCustomertype" class="form-control" aria-label="Default select example" id="inputcustomertype">
|
||||
<option value="0" style="color: #b5b5b5" selected>انتخاب کنید...</option>
|
||||
<option value="1">حقیقی</option>
|
||||
<option value="1">حقیقی با کد اقتصادی</option>
|
||||
<option value="5">حقیقی با شناسه ملی</option>
|
||||
<option value="2">حقوقی</option>
|
||||
<option value="3">مشارکت مدنی</option>
|
||||
<option value="4">اتباع غیر ایرانی</option>
|
||||
<option value="4">اتباع غیر ایرانی با کد اقتصادی</option>
|
||||
<option value="6">اتباع غیر ایرانی با شناسه ملی</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
@@ -70,14 +72,19 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="row g-3">
|
||||
<div class="col-md-6">
|
||||
<label class="col-sm-4 col-form-label">کد اقتصادی</label>
|
||||
<InputText @bind-Value="Cus.EconomicCode" type="number" style="text-align:center" dir="ltr" class="form-control" id="inputEconomicCode" placeholder="کد اقتصادی" />
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<label class="col-sm-4 col-form-label">کد/شناسه ملی</label>
|
||||
<InputText @bind-Value="Cus.MeliCode" type="number" style="text-align:center" dir="ltr" class="form-control" id="inputMeliCode" placeholder="کدملی / شناسه ملی" />
|
||||
</div>
|
||||
|
||||
<div class="col-md-6">
|
||||
<label class="col-sm-4 col-form-label">کد اقتصادی</label>
|
||||
<InputText @bind-Value="Cus.EconomicCode" type="number" style="text-align:center" dir="ltr" class="form-control" id="inputEconomicCode" placeholder="کد اقتصادی" />
|
||||
</div>
|
||||
|
||||
<div class="col-md-6">
|
||||
<label class="col-sm-4 col-form-label">کد/شناسه ملی</label>
|
||||
<InputText @bind-Value="Cus.MeliCode" type="number" style="text-align:center" dir="ltr" class="form-control" id="inputMeliCode" placeholder="کدملی / شناسه ملی" />
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="row g-3">
|
||||
@@ -267,6 +274,16 @@ else
|
||||
}
|
||||
public async Task OnClickAdd()
|
||||
{
|
||||
if ((ItemSearchCustomertype == 1 || ItemSearchCustomertype == 2 || ItemSearchCustomertype == 3 || ItemSearchCustomertype == 4) && string.IsNullOrEmpty(Cus.EconomicCode))
|
||||
{
|
||||
ShowDangerAlert("در این نوع خریدار کد اقتصادی الزامی می باشد");
|
||||
return;
|
||||
}
|
||||
if ((ItemSearchCustomertype == 5 || ItemSearchCustomertype == 6) && (string.IsNullOrEmpty(Cus.MeliCode) || string.IsNullOrEmpty(Cus.ZipCode)))
|
||||
{
|
||||
ShowDangerAlert("در این نوع خریدار شناسه ملی با کد پستی الزامی می باشد");
|
||||
return;
|
||||
}
|
||||
SpinnerVisible = !SpinnerVisible;
|
||||
if (ItemSearchCustomertype > 0 && !string.IsNullOrEmpty(Cus.FullName))
|
||||
{
|
||||
|
Reference in New Issue
Block a user