Browse Source

标签获取描述不区分大小写

master
lvzb 4 years ago
parent
commit
8b018ac3a3
  1. 3
      Controller/SCP_PO_CONTROLLER.cs
  2. 2
      Models/ScpCache.cs
  3. 4
      Models/UniApiEntity/xxwms_rc_det.cs
  4. 4
      SCP/Web.config

3
Controller/SCP_PO_CONTROLLER.cs

@ -1772,7 +1772,7 @@ namespace CK.SCP.Controller
_PO_Detail.CreateUser = p_creator; _PO_Detail.CreateUser = p_creator;
_PO_Detail.PartCode = itm..ToUpper(); _PO_Detail.PartCode = itm..ToUpper();
_PO_Detail.BeginTime = p_time; _PO_Detail.BeginTime = p_time;
_PO_Detail.EndTime = DateTime.Parse(_entity.); _PO_Detail.EndTime = DateTime.Parse(itm.);
_PO_Detail.PlanQty = decimal.Parse(itm.); _PO_Detail.PlanQty = decimal.Parse(itm.);
_PO_Detail.IsDeleted = false; _PO_Detail.IsDeleted = false;
_PO_Detail.LocUnit = itm.; _PO_Detail.LocUnit = itm.;
@ -1781,6 +1781,7 @@ namespace CK.SCP.Controller
_PO_Detail.State = (int)PoState.Open; _PO_Detail.State = (int)PoState.Open;
_PO_Detail.Price = string.IsNullOrEmpty(itm.) ? 0 : decimal.Parse(itm.); _PO_Detail.Price = string.IsNullOrEmpty(itm.) ? 0 : decimal.Parse(itm.);
_PO_Detail.GUID = Guid.NewGuid(); _PO_Detail.GUID = Guid.NewGuid();
_PO_Detail.Site = site;
db.TB_PO_DETAIL.Add(_PO_Detail); db.TB_PO_DETAIL.Add(_PO_Detail);
// _number++; // _number++;
}); });

2
Models/ScpCache.cs

@ -286,7 +286,7 @@ namespace CK.SCP.Models
public static string GetPartDesc1(string partCode,string p_site) public static string GetPartDesc1(string partCode,string p_site)
{ {
var _ta = PartList.SingleOrDefault(p => p.PartCode == partCode && p.Site==p_site); var _ta = PartList.SingleOrDefault(p => p.PartCode == partCode && p.Site.ToUpper()==p_site.ToUpper());
if (_ta != null) if (_ta != null)
{ {
return _ta.PartDesc1 + _ta.PartDesc2; return _ta.PartDesc1 + _ta.PartDesc2;

4
Models/UniApiEntity/xxwms_rc_det.cs

@ -51,11 +51,11 @@ namespace CK.SCP.Models.UniApiEntity
public string xxwms_rc_loc { get; set; } public string xxwms_rc_loc { get; set; }
[Required(AllowEmptyStrings = true)] [Required(AllowEmptyStrings = true)]
[StringLength(2)] [StringLength(8)]
public string xxwms_rc_po_um { get; set; } public string xxwms_rc_po_um { get; set; }
[Required(AllowEmptyStrings = true)] [Required(AllowEmptyStrings = true)]
[StringLength(2)] [StringLength(8)]
public string xxwms_rc_loc_um { get; set; } public string xxwms_rc_loc_um { get; set; }
public decimal xxwms_rc_conv { get; set; } public decimal xxwms_rc_conv { get; set; }

4
SCP/Web.config

@ -28,12 +28,12 @@
<add key="MailPort" value="25"/> <add key="MailPort" value="25"/>
<add key="ResetPassWord" value="localhost:62030"/>--> <add key="ResetPassWord" value="localhost:62030"/>-->
<add key="MailSender" value="supplier@caai-china.com" /> <!--<add key="MailSender" value="supplier@caai-china.com" />
<add key="MailServer" value="smtp.qiye.aliyun.com" /> <add key="MailServer" value="smtp.qiye.aliyun.com" />
<add key="MailUserName" value="supplier@caai-china.com" /> <add key="MailUserName" value="supplier@caai-china.com" />
<add key="MailPassword" value="Yumiao123" /> <add key="MailPassword" value="Yumiao123" />
<add key="MailPort" value="25" /> <add key="MailPort" value="25" />
<add key="ResetPassWord" value="221.224.43.141:8888" /> <add key="ResetPassWord" value="221.224.43.141:8888" />-->

Loading…
Cancel
Save