/// <summary>
/// 厂家信息
/// </summary>
public class Manufacturer : OperatedModel
{
[Key]
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public int ID { get; set; }
/// <summary>
/// 信用代码/注册号
/// </summary>
[Required(ErrorMessage = "信用代码/注册号不能为空")]
[MaxLength(30)]
public string EnterpriseNo { get; set; }
/// <summary>
/// 企业名称
/// </summary>
[Required(ErrorMessage = "企业名称不能为空")]
public string EnterpriseName { get; set; }
/// <summary>
/// 注册地址
/// </summary>
[Required(ErrorMessage = "注册地址不能为空")]
public string RegisteredAddress { get; set; }
/// <summary>
/// 法人
/// </summary>
[Required(ErrorMessage = "法人不能为空")]
public string ArtificialPerson { get; set; }
/// <summary>
/// person in charge 负责人
/// </summary>
[Required(ErrorMessage = "负责人不能为空")]
public string PIC { get; set; }
[Required(ErrorMessage = "手机号不能为空")]
[RegularExpression(RegexLib.Mobile, ErrorMessage = "手机号码格式不正确")]
public string Mobile { get; set; }
[EmailAddress]
public string Email { get; set; }
/// <summary>
/// 商铺号
/// </summary>
public string ShopNumber { get; set; }
/// <summary>
/// 店铺管理员姓名
/// </summary>
public string StoreManagerName { get; set; }
/// <summary>
/// 店铺管理员联系方式
/// </summary>
[RegularExpression(RegexLib.Mobile, ErrorMessage="手机号码格式不正确")]
public string StoreManagerNumber { get; set; }
/// <summary>
/// 主要执照, 三证合一营业执照
/// </summary>
public string MainLicence { get; set; }
/// <summary>
/// json, 其他执照,如生产许可证
/// </summary>
public string OtherLicence { get; set; }
/// <summary>
/// 入驻日期
/// </summary>
[Required(ErrorMessage = "入驻日期不能为空")]
public DateTime EnterDate { get; set; }
/// <summary>
/// 离场日期
/// </summary>
[Required(ErrorMessage = "截止日期不能为空")]
public DateTime QuitDate { get; set; }
/// <summary>
/// 厂家可提现余额
/// </summary>
public decimal Balance { get; set; }
}
require.config({
baseUrl: '/scripts',
paths: {
"jquery": 'jquery-2.2.3.min',
"knockout":'knockout-3.4.0',
"bootstrap":'../components/bootstrap/3.3.6/js/bootstrap.min','validate':'jquery.validate',
'validateunobtrusive':'jquery.validate.unobtrusive.min'
},
shim : {
'bootstrap' : {
deps : [ 'jquery' ],
exports : 'bootstrap'
},
'validateunobtrusive':{
deps:['validate'],
exports: 'validateunobtrusive'
}
}
});
define(['validateunobtrusive'], function () {
function TooltipValidator() {}
TooltipValidator.prototype = {
init: function (validatorOptions, tooltipOptions) {
tooltipOptions = tooltipOptions || {};
validatorOptions = validatorOptions || {};
this._tooltipOptions = $.extend({}, {
placement: 'top'
}, tooltipOptions, { animation: false });
this._validatorOptions = $.extend({}, {
//errorPlacement: function (error, element) {
// // do nothing
//},
showErrors: function (errorMap, errorList) {
for (var i = 0; i < this.successList.length; i++) {
var success = this.successList[i];
$(this.successList[i]).tooltip('destroy');
$(this.successList[i]).parents('div.form-group').removeClass('has-error');
}
for (var i = 0; i < errorList.length; i++) {
var errorElement = $(errorList[i].element);
errorElement.parents('div.form-group').addClass('has-error');
errorElement.attr('data-original-title', errorList[i].message).tooltip('show');
}
},
submitHandler: function (form) {
return false;
}
}, validatorOptions)
this._configTooltip();
this._configValidator();
},
_configTooltip: function () {
$('[data-val="true"]').tooltip(this._tooltipOptions);
},
_configValidator: function () {
$.validator.setDefaults(this._validatorOptions);
$.validator.unobtrusive.parse(document);
}
}
return new TooltipValidator();
});
机械节能产品生产企业官网模板...
大气智能家居家具装修装饰类企业通用网站模板...
礼品公司网站模板
宽屏简约大气婚纱摄影影楼模板...
蓝白WAP手机综合医院类整站源码(独立后台)...苏ICP备2024110244号-2 苏公网安备32050702011978号 增值电信业务经营许可证编号:苏B2-20251499 | Copyright 2018 - 2025 源码网商城 (www.ymwmall.com) 版权所有