username@email.com
2022-09-21 d4f1d60996bcec152e100b231c37589270c5fae6
优化拜访客户
6个文件已修改
70 ■■■■■ 已修改文件
zhengcaioa/DTO/CooperVisitDTO.cs 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zhengcaioa/DTO/IntentionVisitDTO.cs 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zhengcaioa/zhengcaioa/Controllers/Customer/CooperVisitController.cs 18 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zhengcaioa/zhengcaioa/Controllers/Customer/IntentionVisitController.cs 16 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zhengcaioa/zhengcaioa/Views/CooperVisit/Edit.cshtml 12 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zhengcaioa/zhengcaioa/Views/IntentionVisit/Edit.cshtml 21 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zhengcaioa/DTO/CooperVisitDTO.cs
@@ -12,6 +12,8 @@
        public string VisType { get; set; }
        public string VisTypeName { get; set; }
        public string Viscustomer { get; set; }
        public string ViscustomerName { get; set; }
        public string Jtype { get; set; }
        public string JtypeName { get; set; }
        public string Jdr { get; set; }
zhengcaioa/DTO/IntentionVisitDTO.cs
@@ -12,6 +12,7 @@
        public string VisType { get; set; }
        public string VisTypeName { get; set; }
        public string Viscustomer { get; set; }
        public string ViscustomerName { get; set; }
        public string Jtype { get; set; }
        public string JtypeName { get; set; }
        public string Jdr { get; set; }
zhengcaioa/zhengcaioa/Controllers/Customer/CooperVisitController.cs
@@ -134,9 +134,25 @@
            {
                dto.Viscustomer = Viscustomer;
                dto.Vistime = DateTime.Now;
                if (!string.IsNullOrWhiteSpace(Viscustomer))
                {
                    var cooperatecustomCustomerDTO = _cooperatecustomCustomerService.Get(Viscustomer);
                    if (cooperatecustomCustomerDTO != null)
                    {
                        dto.ViscustomerName = cooperatecustomCustomerDTO.Name;
                    }
                }
            }
            if (!string.IsNullOrWhiteSpace(Viscustomer))
            {
                ViewData["customer"] = new List<CooperatecustomCustomerDTO>();
            }
            else
            {
                ViewData["customer"] = _cooperatecustomCustomerService.GetList();
            }
            ViewData["customer"] = _cooperatecustomCustomerService.GetList();
zhengcaioa/zhengcaioa/Controllers/Customer/IntentionVisitController.cs
@@ -149,6 +149,11 @@
                if (!string.IsNullOrWhiteSpace(Viscustomer))
                {
                    dto.Viscustomer = Viscustomer;
                   var intentionCustomerDTO = _intentionCustomerService.Get(Viscustomer);
                    if (intentionCustomerDTO != null)
                    {
                        dto.ViscustomerName = intentionCustomerDTO.Name;
                    }
                    IntentionVisitDTOSearch searchEntity = new IntentionVisitDTOSearch();
                    searchEntity.page = 1;
                    searchEntity.rows = 1000;
@@ -173,9 +178,16 @@
            }
            if (!string.IsNullOrWhiteSpace(Viscustomer))
            {
                ViewData["customer"] = new List<IntentionCustomerDTO>();
            }
            else
            {
            ViewData["customer"] = _intentionCustomerService.GetList();
            }
 
          
zhengcaioa/zhengcaioa/Views/CooperVisit/Edit.cshtml
@@ -111,6 +111,8 @@
                                    <label class="text-right col-sm-1 col-md-1 control-label">合作客户<i class="red">*</i></label>
                                    <div class="col-sm-2 col-md-2">
                                        @if (customer.Count > 0)
                                        {
                                        <select id="Viscustomer" class="form-control" name="Viscustomer" data-placeholder="选择 序列 ..." style="font-weight:normal;">
                                            <option value="" hassubinfo="true">请选择</option>
                                            @foreach (var item in customer)
@@ -132,6 +134,13 @@
                                            }
                                        </select>
                                        }
                                        else
                                        {
                                            @Model.ViscustomerName
                                            <input type="hidden" id="Viscustomer" name="Viscustomer" value="@Model.Viscustomer" />
                                        }
                                        <input type="hidden" id="Id" name="Id" value="@Model.Id" />
                                    </div>
                                </div>
@@ -346,7 +355,10 @@
        };
        laydate({ elem: "#Vistime", format: 'YYYY/MM/DD', istime: true, event: "focus" });
        if ( @customer.Count > 0)
            {
        $("#Viscustomer").chosen();
            }
        var id = '@Model.Id';
        var bUpload = false;
        var bAdd = false; // 新增操作
zhengcaioa/zhengcaioa/Views/IntentionVisit/Edit.cshtml
@@ -135,6 +135,8 @@
                                    <label class="text-right col-sm-1 col-md-1 control-label">意向客户<i class="red">*</i></label>
                                    <div class="col-sm-2 col-md-2">
                                        @if (customer.Count > 0)
                                        {
                                        <select id="Viscustomer" class="form-control" name="Viscustomer" data-placeholder="选择 序列 ..." style="font-weight:normal;">
                                            <option value="" hassubinfo="true">请选择</option>
                                            @foreach (var item in customer)
@@ -153,9 +155,23 @@
                                                }
                                            }
                                            }
                                        </select>
                                        }
                                        else
                                        {
                                            @Model.ViscustomerName
                                            <input type="hidden" id="Viscustomer" name="Viscustomer" value="@Model.Viscustomer" />
                                        }
                                        <input type="hidden" id="Id" name="Id" value="@Model.Id" />
                                        <input type="hidden" id="IsYwjl" name="IsYwjl" value="@IsYwjl" />
                                    </div>
@@ -444,7 +460,12 @@
        };
        laydate({ elem: "#Vistime", format: 'YYYY/MM/DD', istime: true, event: "focus" });
            if ( @customer.Count > 0)
            {
        $("#Viscustomer").chosen();
            }
        var id = '@Model.Id';
        var bUpload = false;
        var bAdd = false; // 新增操作